const agGuideBasePath = '/guide/';

const agGuidePaths = {
    Root: '',
    ContactUs: 'about-us/',
    FrequentlyAskedQuestions: 'frequently-asked-questions/',
    EstablishingList: 'register-your-institution/',
    EstablishingListSchools: 'register-your-institution/schools/',
    EstablishingListOnlineSchools: 'register-your-institution/schools/',
    EstablishingListIndependentStudySchools: 'register-your-institution/schools/',
    EstablishingListSchoolNetwork: 'register-your-institution/school-networks/',
    EstablishingListOnlineCoursePublisher: 'register-your-institution/online-course-publishers/',
    EstablishingListProgram: 'register-your-institution/programs/',
    EstablishingListExtendedLearningProgram: 'register-your-institution/uccsu-extended-learning-programs/',
    RequirementsForOnlineCourses: 'update-your-a-g-list/online-courses/',
    InstitutionalExpectationsForOnlineLearning: 'update-your-a-g-list/online-courses/',
    SubjectAreaA: 'a-g-subject-requirements/a-history-social-science/',
    SubjectAreaB: 'a-g-subject-requirements/b-english/',
    SubjectAreaC: 'a-g-subject-requirements/c-mathematics/',
    SubjectAreaD: 'a-g-subject-requirements/d-science/',
    SubjectAreaF: 'a-g-subject-requirements/f-visual-performing-arts/',
    HonorsDesignation: 'register-your-institution/',
    CareerTechnicalEducation: 'update-your-a-g-list/',
    SubmittingCourses: 'update-your-a-g-list/submitting-courses/'
};

AgGuideUrls = {};

for(var property in agGuidePaths) {
    AgGuideUrls[property] = agGuideBasePath + agGuidePaths[property];
}

!function(e){function r(r){for(var n,l,f=r[0],i=r[1],p=r[2],c=0,s=[];c<f.length;c++)l=f[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(a&&a(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++)0!==o[t[f]]&&(n=!1);n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={0:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,(function(r){return e[r]}).bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="";var f=window.webpackJsonp=window.webpackJsonp||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var p=0;p<f.length;p++)r(f[p]);var a=i;t()}([]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1:function(e,t,n){e.exports=n("hN/g")},"hN/g":function(e,t,n){"use strict";n.r(t),n("pDpN")},pDpN:function(e,t,n){var o,r;void 0===(r="function"==typeof(o=function(){"use strict";!function(e){const t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function o(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");const r=e.__Zone_symbol_prefix||"__zone_symbol__";function s(e){return r+e}const a=!0===e[s("forceDuplicateZoneCheck")];if(e.Zone){if(a||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}class i{constructor(e,t){this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(e.Promise!==C.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=i.current;for(;e.parent;)e=e.parent;return e}static get current(){return z.zone}static get currentTask(){return j}static __load_patch(t,r){if(C.hasOwnProperty(t)){if(a)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const s="Zone:"+t;n(s),C[t]=r(e,i,O),o(s,s)}}get parent(){return this._parent}get name(){return this._name}get(e){const t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const n=this._zoneDelegate.intercept(this,e,t),o=this;return function(){return o.runGuarded(n,this,arguments,t)}}run(e,t,n,o){z={parent:z,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,o)}finally{z=z.parent}}runGuarded(e,t=null,n,o){z={parent:z,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,o)}catch(r){if(this._zoneDelegate.handleError(this,r))throw r}}finally{z=z.parent}}runTask(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");if(e.state===v&&(e.type===P||e.type===D))return;const o=e.state!=E;o&&e._transitionTo(E,T),e.runCount++;const r=j;j=e,z={parent:z,zone:this};try{e.type==D&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{e.state!==v&&e.state!==Z&&(e.type==P||e.data&&e.data.isPeriodic?o&&e._transitionTo(T,E):(e.runCount=0,this._updateTaskCount(e,-1),o&&e._transitionTo(v,E,v))),z=z.parent,j=r}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}}e._transitionTo(b,v);const t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(n){throw e._transitionTo(Z,b,v),this._zoneDelegate.handleError(this,n),n}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==b&&e._transitionTo(T,b),e}scheduleMicroTask(e,t,n,o){return this.scheduleTask(new u(S,e,t,n,o,void 0))}scheduleMacroTask(e,t,n,o,r){return this.scheduleTask(new u(D,e,t,n,o,r))}scheduleEventTask(e,t,n,o,r){return this.scheduleTask(new u(P,e,t,n,o,r))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");e._transitionTo(w,T,E);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(Z,w),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(v,w),e.runCount=0,e}_updateTaskCount(e,t){const n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let o=0;o<n.length;o++)n[o]._updateTaskCount(e.type,t)}}i.__symbol__=s;const c={name:"",onHasTask:(e,t,n,o)=>e.hasTask(n,o),onScheduleTask:(e,t,n,o)=>e.scheduleTask(n,o),onInvokeTask:(e,t,n,o,r,s)=>e.invokeTask(n,o,r,s),onCancelTask:(e,t,n,o)=>e.cancelTask(n,o)};class l{constructor(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const o=n&&n.onHasTask;(o||t&&t._hasTaskZS)&&(this._hasTaskZS=o?n:c,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new i(e,t)}intercept(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}invoke(e,t,n,o,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,o,r):t.apply(n,o)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t),n||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=S)throw new Error("Task is missing scheduleFn.");k(t)}return n}invokeTask(e,t,n,o){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,o):t.callback.apply(n,o)}cancelTask(e,t){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}_updateTaskCount(e,t){const n=this._taskCounts,o=n[e],r=n[e]=o+t;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=o&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}class u{constructor(t,n,o,r,s,a){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=n,this.data=r,this.scheduleFn=s,this.cancelFn=a,!o)throw new Error("callback is not defined");this.callback=o;const i=this;this.invoke=t===P&&r&&r.useG?u.invokeTask:function(){return u.invokeTask.call(e,i,this,arguments)}}static invokeTask(e,t,n){e||(e=this),I++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==I&&m(),I--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(v,b)}_transitionTo(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=e,e==v&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const h=s("setTimeout"),p=s("Promise"),f=s("then");let d,g=[],_=!1;function k(t){if(0===I&&0===g.length)if(d||e[p]&&(d=e[p].resolve(0)),d){let e=d[f];e||(e=d.then),e.call(d,m)}else e[h](m,0);t&&g.push(t)}function m(){if(!_){for(_=!0;g.length;){const t=g;g=[];for(let n=0;n<t.length;n++){const o=t[n];try{o.zone.runTask(o,null,null)}catch(e){O.onUnhandledError(e)}}}O.microtaskDrainDone(),_=!1}}const y={name:"NO ZONE"},v="notScheduled",b="scheduling",T="scheduled",E="running",w="canceling",Z="unknown",S="microTask",D="macroTask",P="eventTask",C={},O={symbol:s,currentZoneFrame:()=>z,onUnhandledError:N,microtaskDrainDone:N,scheduleMicroTask:k,showUncaughtError:()=>!i[s("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:N,patchMethod:()=>N,bindArguments:()=>[],patchThen:()=>N,patchMacroTask:()=>N,setNativePromise:e=>{e&&"function"==typeof e.resolve&&(d=e.resolve(0))},patchEventPrototype:()=>N,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>N,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>N,wrapWithCurrentZone:()=>N,filterProperties:()=>[],attachOriginToPatched:()=>N,_redefineProperty:()=>N,patchCallbacks:()=>N};let z={parent:null,zone:new i(null,null)},j=null,I=0;function N(){}o("Zone","Zone"),e.Zone=i}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",(e,t,n)=>{const o=Object.getOwnPropertyDescriptor,r=Object.defineProperty,s=n.symbol,a=[],i=!0===e[s("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],c=s("Promise"),l=s("then");n.onUnhandledError=e=>{if(n.showUncaughtError()){const t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=()=>{for(;a.length;){const t=a.shift();try{t.zone.runGuarded(()=>{throw t})}catch(e){h(e)}}};const u=s("unhandledPromiseRejectionHandler");function h(e){n.onUnhandledError(e);try{const n=t[u];"function"==typeof n&&n.call(this,e)}catch(o){}}function p(e){return e&&e.then}function f(e){return e}function d(e){return D.reject(e)}const g=s("state"),_=s("value"),k=s("finally"),m=s("parentPromiseValue"),y=s("parentPromiseState");function v(e,t){return n=>{try{T(e,t,n)}catch(o){T(e,!1,o)}}}const b=s("currentTaskTrace");function T(e,o,s){const c=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}}();if(e===s)throw new TypeError("Promise resolved with itself");if(null===e[g]){let h=null;try{"object"!=typeof s&&"function"!=typeof s||(h=s&&s.then)}catch(u){return c(()=>{T(e,!1,u)})(),e}if(!1!==o&&s instanceof D&&s.hasOwnProperty(g)&&s.hasOwnProperty(_)&&null!==s[g])w(s),T(e,s[g],s[_]);else if(!1!==o&&"function"==typeof h)try{h.call(s,c(v(e,o)),c(v(e,!1)))}catch(u){c(()=>{T(e,!1,u)})()}else{e[g]=o;const c=e[_];if(e[_]=s,e[k]===k&&!0===o&&(e[g]=e[y],e[_]=e[m]),!1===o&&s instanceof Error){const e=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;e&&r(s,b,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let t=0;t<c.length;)Z(e,c[t++],c[t++],c[t++],c[t++]);if(0==c.length&&0==o){e[g]=0;let o=s;if(!i)try{throw new Error("Uncaught (in promise): "+((l=s)&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l))+(s&&s.stack?"\n"+s.stack:""))}catch(u){o=u}o.rejection=s,o.promise=e,o.zone=t.current,o.task=t.currentTask,a.push(o),n.scheduleMicroTask()}}}var l;return e}const E=s("rejectionHandledHandler");function w(e){if(0===e[g]){try{const n=t[E];n&&"function"==typeof n&&n.call(this,{rejection:e[_],promise:e})}catch(n){}e[g]=!1;for(let t=0;t<a.length;t++)e===a[t].promise&&a.splice(t,1)}}function Z(e,t,n,o,r){w(e);const s=e[g],a=s?"function"==typeof o?o:f:"function"==typeof r?r:d;t.scheduleMicroTask("Promise.then",()=>{try{const o=e[_],r=!!n&&k===n[k];r&&(n[m]=o,n[y]=s);const i=t.run(a,void 0,r&&a!==d&&a!==f?[]:[o]);T(n,!0,i)}catch(o){T(n,!1,o)}},n)}const S=function(){};class D{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return T(new this(null),!0,e)}static reject(e){return T(new this(null),!1,e)}static race(e){let t,n,o=new this((e,o)=>{t=e,n=o});function r(e){t(e)}function s(e){n(e)}for(let a of e)p(a)||(a=this.resolve(a)),a.then(r,s);return o}static all(e){return D.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof D?this:D).allWithCallback(e,{thenCallback:e=>({status:"fulfilled",value:e}),errorCallback:e=>({status:"rejected",reason:e})})}static allWithCallback(e,t){let n,o,r=new this((e,t)=>{n=e,o=t}),s=2,a=0;const i=[];for(let l of e){p(l)||(l=this.resolve(l));const e=a;try{l.then(o=>{i[e]=t?t.thenCallback(o):o,s--,0===s&&n(i)},r=>{t?(i[e]=t.errorCallback(r),s--,0===s&&n(i)):o(r)})}catch(c){o(c)}s++,a++}return s-=2,0===s&&n(i),r}constructor(e){const t=this;if(!(t instanceof D))throw new Error("Must be an instanceof Promise.");t[g]=null,t[_]=[];try{e&&e(v(t,!0),v(t,!1))}catch(n){T(t,!1,n)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return D}then(e,n){let o=this.constructor[Symbol.species];o&&"function"==typeof o||(o=this.constructor||D);const r=new o(S),s=t.current;return null==this[g]?this[_].push(s,r,e,n):Z(this,s,r,e,n),r}catch(e){return this.then(null,e)}finally(e){let n=this.constructor[Symbol.species];n&&"function"==typeof n||(n=D);const o=new n(S);o[k]=k;const r=t.current;return null==this[g]?this[_].push(r,o,e,e):Z(this,r,o,e,e),o}}D.resolve=D.resolve,D.reject=D.reject,D.race=D.race,D.all=D.all;const P=e[c]=e.Promise,C=t.__symbol__("ZoneAwarePromise");let O=o(e,"Promise");O&&!O.configurable||(O&&delete O.writable,O&&delete O.value,O||(O={configurable:!0,enumerable:!0}),O.get=function(){return e[C]?e[C]:e[c]},O.set=function(t){t===D?e[C]=t:(e[c]=t,t.prototype[l]||j(t),n.setNativePromise(t))},r(e,"Promise",O)),e.Promise=D;const z=s("thenPatched");function j(e){const t=e.prototype,n=o(t,"then");if(n&&(!1===n.writable||!n.configurable))return;const r=t.then;t[l]=r,e.prototype.then=function(e,t){return new D((e,t)=>{r.call(this,e,t)}).then(e,t)},e[z]=!0}if(n.patchThen=j,P){j(P);const t=e.fetch;"function"==typeof t&&(e[n.symbol("fetch")]=t,e.fetch=(I=t,function(){let e=I.apply(this,arguments);if(e instanceof D)return e;let t=e.constructor;return t[z]||j(t),e}))}var I;return Promise[t.__symbol__("uncaughtPromiseErrors")]=a,D});const e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,o=Object.create,r=Array.prototype.slice,s=Zone.__symbol__("addEventListener"),a=Zone.__symbol__("removeEventListener"),i=Zone.__symbol__("");function c(e,t){return Zone.current.wrap(e,t)}function l(e,t,n,o,r){return Zone.current.scheduleMacroTask(e,t,n,o,r)}const u=Zone.__symbol__,h="undefined"!=typeof window,p=h?window:void 0,f=h&&p||"object"==typeof self&&self||global,d=[null];function g(e,t){for(let n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=c(e[n],t+"_"+n));return e}function _(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const k="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,m=!("nw"in f)&&void 0!==f.process&&"[object process]"==={}.toString.call(f.process),y=!m&&!k&&!(!h||!p.HTMLElement),v=void 0!==f.process&&"[object process]"==={}.toString.call(f.process)&&!k&&!(!h||!p.HTMLElement),b={},T=function(e){if(!(e=e||f.event))return;let t=b[e.type];t||(t=b[e.type]=u("ON_PROPERTY"+e.type));const n=this||e.target||f,o=n[t];let r;if(y&&n===p&&"error"===e.type){const t=e;r=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===r&&e.preventDefault()}else r=o&&o.apply(this,arguments),null==r||r||e.preventDefault();return r};function E(n,o,r){let s=e(n,o);if(!s&&r&&e(r,o)&&(s={enumerable:!0,configurable:!0}),!s||!s.configurable)return;const a=u("on"+o+"patched");if(n.hasOwnProperty(a)&&n[a])return;delete s.writable,delete s.value;const i=s.get,c=s.set,l=o.substr(2);let h=b[l];h||(h=b[l]=u("ON_PROPERTY"+l)),s.set=function(e){let t=this;t||n!==f||(t=f),t&&(t[h]&&t.removeEventListener(l,T),c&&c.apply(t,d),"function"==typeof e?(t[h]=e,t.addEventListener(l,T,!1)):t[h]=null)},s.get=function(){let e=this;if(e||n!==f||(e=f),!e)return null;const t=e[h];if(t)return t;if(i){let t=i&&i.call(this);if(t)return s.set.call(this,t),"function"==typeof e.removeAttribute&&e.removeAttribute(o),t}return null},t(n,o,s),n[a]=!0}function w(e,t,n){if(t)for(let o=0;o<t.length;o++)E(e,"on"+t[o],n);else{const t=[];for(const n in e)"on"==n.substr(0,2)&&t.push(n);for(let o=0;o<t.length;o++)E(e,t[o],n)}}const Z=u("originalInstance");function S(e){const n=f[e];if(!n)return;f[u(e)]=n,f[e]=function(){const t=g(arguments,e);switch(t.length){case 0:this[Z]=new n;break;case 1:this[Z]=new n(t[0]);break;case 2:this[Z]=new n(t[0],t[1]);break;case 3:this[Z]=new n(t[0],t[1],t[2]);break;case 4:this[Z]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},C(f[e],n);const o=new n((function(){}));let r;for(r in o)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof o[n]?f[e].prototype[n]=function(){return this[Z][n].apply(this[Z],arguments)}:t(f[e].prototype,n,{set:function(t){"function"==typeof t?(this[Z][n]=c(t,e+"."+n),C(this[Z][n],t)):this[Z][n]=t},get:function(){return this[Z][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(f[e][r]=n[r])}function D(t,o,r){let s=t;for(;s&&!s.hasOwnProperty(o);)s=n(s);!s&&t[o]&&(s=t);const a=u(o);let i=null;if(s&&!(i=s[a])&&(i=s[a]=s[o],_(s&&e(s,o)))){const e=r(i,a,o);s[o]=function(){return e(this,arguments)},C(s[o],i)}return i}function P(e,t,n){let o=null;function r(e){const t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},o.apply(t.target,t.args),e}o=D(e,t,e=>function(t,o){const s=n(t,o);return s.cbIdx>=0&&"function"==typeof o[s.cbIdx]?l(s.name,o[s.cbIdx],s,r):e.apply(t,o)})}function C(e,t){e[u("OriginalDelegate")]=t}let O=!1,z=!1;function j(){try{const e=p.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}function I(){if(O)return z;O=!0;try{const e=p.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(z=!0)}catch(e){}return z}Zone.__load_patch("toString",e=>{const t=Function.prototype.toString,n=u("OriginalDelegate"),o=u("Promise"),r=u("Error"),s=function(){if("function"==typeof this){const s=this[n];if(s)return"function"==typeof s?t.call(s):Object.prototype.toString.call(s);if(this===Promise){const n=e[o];if(n)return t.call(n)}if(this===Error){const n=e[r];if(n)return t.call(n)}}return t.call(this)};s[n]=t,Function.prototype.toString=s;const a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}});let N=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){N=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(ie){N=!1}const R={useG:!0},x={},L={},M=new RegExp("^"+i+"(\\w+)(true|false)$"),A=u("propagationStopped");function H(e,t){const n=(t?t(e):e)+"false",o=(t?t(e):e)+"true",r=i+n,s=i+o;x[e]={},x[e].false=r,x[e].true=s}function F(e,t,o){const r=o&&o.add||"addEventListener",s=o&&o.rm||"removeEventListener",a=o&&o.listeners||"eventListeners",c=o&&o.rmAll||"removeAllListeners",l=u(r),h="."+r+":",p=function(e,t,n){if(e.isRemoved)return;const o=e.callback;"object"==typeof o&&o.handleEvent&&(e.callback=e=>o.handleEvent(e),e.originalDelegate=o),e.invoke(e,t,[n]);const r=e.options;r&&"object"==typeof r&&r.once&&t[s].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,r)},f=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[x[t.type].false];if(o)if(1===o.length)p(o[0],n,t);else{const e=o.slice();for(let o=0;o<e.length&&(!t||!0!==t[A]);o++)p(e[o],n,t)}},d=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[x[t.type].true];if(o)if(1===o.length)p(o[0],n,t);else{const e=o.slice();for(let o=0;o<e.length&&(!t||!0!==t[A]);o++)p(e[o],n,t)}};function g(t,o){if(!t)return!1;let p=!0;o&&void 0!==o.useG&&(p=o.useG);const g=o&&o.vh;let _=!0;o&&void 0!==o.chkDup&&(_=o.chkDup);let k=!1;o&&void 0!==o.rt&&(k=o.rt);let y=t;for(;y&&!y.hasOwnProperty(r);)y=n(y);if(!y&&t[r]&&(y=t),!y)return!1;if(y[l])return!1;const v=o&&o.eventNameToString,b={},T=y[l]=y[r],E=y[u(s)]=y[s],w=y[u(a)]=y[a],Z=y[u(c)]=y[c];let S;function D(e,t){return!N&&"object"==typeof e&&e?!!e.capture:N&&t?"boolean"==typeof e?{capture:e,passive:!0}:e?"object"==typeof e&&!1!==e.passive?Object.assign(Object.assign({},e),{passive:!0}):e:{passive:!0}:e}o&&o.prepend&&(S=y[u(o.prepend)]=y[o.prepend]);const P=p?function(e){if(!b.isExisting)return T.call(b.target,b.eventName,b.capture?d:f,b.options)}:function(e){return T.call(b.target,b.eventName,e.invoke,b.options)},O=p?function(e){if(!e.isRemoved){const t=x[e.eventName];let n;t&&(n=t[e.capture?"true":"false"]);const o=n&&e.target[n];if(o)for(let r=0;r<o.length;r++)if(o[r]===e){o.splice(r,1),e.isRemoved=!0,0===o.length&&(e.allRemoved=!0,e.target[n]=null);break}}if(e.allRemoved)return E.call(e.target,e.eventName,e.capture?d:f,e.options)}:function(e){return E.call(e.target,e.eventName,e.invoke,e.options)},z=o&&o.diff?o.diff:function(e,t){const n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},j=Zone[u("BLACK_LISTED_EVENTS")],I=e[u("PASSIVE_EVENTS")],A=function(t,n,r,s,a=!1,i=!1){return function(){const c=this||e;let l=arguments[0];o&&o.transferEventName&&(l=o.transferEventName(l));let u=arguments[1];if(!u)return t.apply(this,arguments);if(m&&"uncaughtException"===l)return t.apply(this,arguments);let h=!1;if("function"!=typeof u){if(!u.handleEvent)return t.apply(this,arguments);h=!0}if(g&&!g(t,u,c,arguments))return;const f=N&&!!I&&-1!==I.indexOf(l),d=D(arguments[2],f);if(j)for(let e=0;e<j.length;e++)if(l===j[e])return f?t.call(c,l,u,d):t.apply(this,arguments);const k=!!d&&("boolean"==typeof d||d.capture),y=!(!d||"object"!=typeof d)&&d.once,T=Zone.current;let E=x[l];E||(H(l,v),E=x[l]);const w=E[k?"true":"false"];let Z,S=c[w],P=!1;if(S){if(P=!0,_)for(let e=0;e<S.length;e++)if(z(S[e],u))return}else S=c[w]=[];const C=c.constructor.name,O=L[C];O&&(Z=O[l]),Z||(Z=C+n+(v?v(l):l)),b.options=d,y&&(b.options.once=!1),b.target=c,b.capture=k,b.eventName=l,b.isExisting=P;const M=p?R:void 0;M&&(M.taskData=b);const A=T.scheduleEventTask(Z,u,M,r,s);return b.target=null,M&&(M.taskData=null),y&&(d.once=!0),(N||"boolean"!=typeof A.options)&&(A.options=d),A.target=c,A.capture=k,A.eventName=l,h&&(A.originalDelegate=u),i?S.unshift(A):S.push(A),a?c:void 0}};return y[r]=A(T,h,P,O,k),S&&(y.prependListener=A(S,".prependListener:",(function(e){return S.call(b.target,b.eventName,e.invoke,b.options)}),O,k,!0)),y[s]=function(){const t=this||e;let n=arguments[0];o&&o.transferEventName&&(n=o.transferEventName(n));const r=arguments[2],s=!!r&&("boolean"==typeof r||r.capture),a=arguments[1];if(!a)return E.apply(this,arguments);if(g&&!g(E,a,t,arguments))return;const c=x[n];let l;c&&(l=c[s?"true":"false"]);const u=l&&t[l];if(u)for(let e=0;e<u.length;e++){const o=u[e];if(z(o,a))return u.splice(e,1),o.isRemoved=!0,0===u.length&&(o.allRemoved=!0,t[l]=null,"string"==typeof n)&&(t[i+"ON_PROPERTY"+n]=null),o.zone.cancelTask(o),k?t:void 0}return E.apply(this,arguments)},y[a]=function(){const t=this||e;let n=arguments[0];o&&o.transferEventName&&(n=o.transferEventName(n));const r=[],s=G(t,v?v(n):n);for(let e=0;e<s.length;e++){const t=s[e];r.push(t.originalDelegate?t.originalDelegate:t.callback)}return r},y[c]=function(){const t=this||e;let n=arguments[0];if(n){o&&o.transferEventName&&(n=o.transferEventName(n));const e=x[n];if(e){const o=t[e.false],r=t[e.true];if(o){const e=o.slice();for(let t=0;t<e.length;t++){const o=e[t];this[s].call(this,n,o.originalDelegate?o.originalDelegate:o.callback,o.options)}}if(r){const e=r.slice();for(let t=0;t<e.length;t++){const o=e[t];this[s].call(this,n,o.originalDelegate?o.originalDelegate:o.callback,o.options)}}}}else{const e=Object.keys(t);for(let t=0;t<e.length;t++){const n=M.exec(e[t]);let o=n&&n[1];o&&"removeListener"!==o&&this[c].call(this,o)}this[c].call(this,"removeListener")}if(k)return this},C(y[r],T),C(y[s],E),Z&&C(y[c],Z),w&&C(y[a],w),!0}let _=[];for(let n=0;n<t.length;n++)_[n]=g(t[n],o);return _}function G(e,t){if(!t){const n=[];for(let o in e){const r=M.exec(o);let s=r&&r[1];if(s&&(!t||s===t)){const t=e[o];if(t)for(let e=0;e<t.length;e++)n.push(t[e])}}return n}let n=x[t];n||(H(t),n=x[t]);const o=e[n.false],r=e[n.true];return o?r?o.concat(r):o.slice():r?r.slice():[]}function B(e,t){const n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",e=>function(t,n){t[A]=!0,e&&e.apply(t,n)})}function q(e,t,n,o,r){const s=Zone.__symbol__(o);if(t[s])return;const a=t[s]=t[o];t[o]=function(s,i,c){return i&&i.prototype&&r.forEach((function(t){const r=`${n}.${o}::`+t,s=i.prototype;if(s.hasOwnProperty(t)){const n=e.ObjectGetOwnPropertyDescriptor(s,t);n&&n.value?(n.value=e.wrapWithCurrentZone(n.value,r),e._redefineProperty(i.prototype,t,n)):s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],r))}else s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],r))})),a.call(t,s,i,c)},e.attachOriginToPatched(t[o],a)}const W=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],U=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],V=["load"],$=["blur","error","focus","load","resize","scroll","messageerror"],X=["bounce","finish","start"],J=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Y=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],K=["close","error","open","message"],Q=["error","message"],ee=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],W,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function te(e,t,n){if(!n||0===n.length)return t;const o=n.filter(t=>t.target===e);if(!o||0===o.length)return t;const r=o[0].ignoreProperties;return t.filter(e=>-1===r.indexOf(e))}function ne(e,t,n,o){e&&w(e,te(e,t,n),o)}function oe(e,t){if(m&&!v)return;if(Zone[e.symbol("patchEvents")])return;const o="undefined"!=typeof WebSocket,r=t.__Zone_ignore_on_properties;if(y){const e=window,t=j?[{target:e,ignoreProperties:["error"]}]:[];ne(e,ee.concat(["messageerror"]),r?r.concat(t):r,n(e)),ne(Document.prototype,ee,r),void 0!==e.SVGElement&&ne(e.SVGElement.prototype,ee,r),ne(Element.prototype,ee,r),ne(HTMLElement.prototype,ee,r),ne(HTMLMediaElement.prototype,U,r),ne(HTMLFrameSetElement.prototype,W.concat($),r),ne(HTMLBodyElement.prototype,W.concat($),r),ne(HTMLFrameElement.prototype,V,r),ne(HTMLIFrameElement.prototype,V,r);const o=e.HTMLMarqueeElement;o&&ne(o.prototype,X,r);const s=e.Worker;s&&ne(s.prototype,Q,r)}const s=t.XMLHttpRequest;s&&ne(s.prototype,J,r);const a=t.XMLHttpRequestEventTarget;a&&ne(a&&a.prototype,J,r),"undefined"!=typeof IDBIndex&&(ne(IDBIndex.prototype,Y,r),ne(IDBRequest.prototype,Y,r),ne(IDBOpenDBRequest.prototype,Y,r),ne(IDBDatabase.prototype,Y,r),ne(IDBTransaction.prototype,Y,r),ne(IDBCursor.prototype,Y,r)),o&&ne(WebSocket.prototype,K,r)}Zone.__load_patch("util",(n,s,a)=>{a.patchOnProperties=w,a.patchMethod=D,a.bindArguments=g,a.patchMacroTask=P;const l=s.__symbol__("BLACK_LISTED_EVENTS"),u=s.__symbol__("UNPATCHED_EVENTS");n[u]&&(n[l]=n[u]),n[l]&&(s[l]=s[u]=n[l]),a.patchEventPrototype=B,a.patchEventTarget=F,a.isIEOrEdge=I,a.ObjectDefineProperty=t,a.ObjectGetOwnPropertyDescriptor=e,a.ObjectCreate=o,a.ArraySlice=r,a.patchClass=S,a.wrapWithCurrentZone=c,a.filterProperties=te,a.attachOriginToPatched=C,a._redefineProperty=Object.defineProperty,a.patchCallbacks=q,a.getGlobalObjects=()=>({globalSources:L,zoneSymbolEventNames:x,eventNames:ee,isBrowser:y,isMix:v,isNode:m,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:i,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"})});const re=u("zoneTask");function se(e,t,n,o){let r=null,s=null;n+=o;const a={};function i(t){const n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[re]=null))}},n.handleId=r.apply(e,n.args),t}function c(e){return s(e.data.handleId)}r=D(e,t+=o,n=>function(r,s){if("function"==typeof s[0]){const e=l(t,s[0],{isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?s[1]||0:void 0,args:s},i,c);if(!e)return e;const n=e.data.handleId;return"number"==typeof n?a[n]=e:n&&(n[re]=e),n&&n.ref&&n.unref&&"function"==typeof n.ref&&"function"==typeof n.unref&&(e.ref=n.ref.bind(n),e.unref=n.unref.bind(n)),"number"==typeof n||n?n:e}return n.apply(e,s)}),s=D(e,n,t=>function(n,o){const r=o[0];let s;"number"==typeof r?s=a[r]:(s=r&&r[re],s||(s=r)),s&&"string"==typeof s.type?"notScheduled"!==s.state&&(s.cancelFn&&s.data.isPeriodic||0===s.runCount)&&("number"==typeof r?delete a[r]:r&&(r[re]=null),s.zone.cancelTask(s)):t.apply(e,o)})}function ae(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:o,TRUE_STR:r,FALSE_STR:s,ZONE_SYMBOL_PREFIX:a}=t.getGlobalObjects();for(let c=0;c<n.length;c++){const e=n[c],t=a+(e+s),i=a+(e+r);o[e]={},o[e][s]=t,o[e][r]=i}const i=e.EventTarget;return i&&i.prototype?(t.patchEventTarget(e,[i&&i.prototype]),!0):void 0}Zone.__load_patch("legacy",e=>{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("timers",e=>{se(e,"set","clear","Timeout"),se(e,"set","clear","Interval"),se(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{se(e,"request","cancel","AnimationFrame"),se(e,"mozRequest","mozCancel","AnimationFrame"),se(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,t)=>{const n=["alert","prompt","confirm"];for(let o=0;o<n.length;o++)D(e,n[o],(n,o,r)=>function(o,s){return t.current.run(n,e,s,r)})}),Zone.__load_patch("EventTarget",(e,t,n)=>{!function(e,t){t.patchEventPrototype(e,t)}(e,n),ae(e,n);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(e,[o.prototype]),S("MutationObserver"),S("WebKitMutationObserver"),S("IntersectionObserver"),S("FileReader")}),Zone.__load_patch("on_property",(e,t,n)=>{oe(n,e)}),Zone.__load_patch("customElements",(e,t,n)=>{!function(e,t){const{isBrowser:n,isMix:o}=t.getGlobalObjects();(n||o)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",(e,t)=>{!function(e){const p=e.XMLHttpRequest;if(!p)return;const f=p.prototype;let d=f[s],g=f[a];if(!d){const t=e.XMLHttpRequestEventTarget;if(t){const e=t.prototype;d=e[s],g=e[a]}}function _(e){const o=e.data,c=o.target;c[i]=!1,c[h]=!1;const l=c[r];d||(d=c[s],g=c[a]),l&&g.call(c,"readystatechange",l);const u=c[r]=()=>{if(c.readyState===c.DONE)if(!o.aborted&&c[i]&&"scheduled"===e.state){const n=c[t.__symbol__("loadfalse")];if(n&&n.length>0){const r=e.invoke;e.invoke=function(){const n=c[t.__symbol__("loadfalse")];for(let t=0;t<n.length;t++)n[t]===e&&n.splice(t,1);o.aborted||"scheduled"!==e.state||r.call(e)},n.push(e)}else e.invoke()}else o.aborted||!1!==c[i]||(c[h]=!0)};return d.call(c,"readystatechange",u),c[n]||(c[n]=e),T.apply(c,o.args),c[i]=!0,e}function k(){}function m(e){const t=e.data;return t.aborted=!0,E.apply(t.target,t.args)}const y=D(f,"open",()=>function(e,t){return e[o]=0==t[2],e[c]=t[1],y.apply(e,t)}),v=u("fetchTaskAborting"),b=u("fetchTaskScheduling"),T=D(f,"send",()=>function(e,n){if(!0===t.current[b])return T.apply(e,n);if(e[o])return T.apply(e,n);{const t={target:e,url:e[c],isPeriodic:!1,args:n,aborted:!1},o=l("XMLHttpRequest.send",k,t,_,m);e&&!0===e[h]&&!t.aborted&&"scheduled"===o.state&&o.invoke()}}),E=D(f,"abort",()=>function(e,o){const r=e[n];if(r&&"string"==typeof r.type){if(null==r.cancelFn||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}else if(!0===t.current[v])return E.apply(e,o)})}(e);const n=u("xhrTask"),o=u("xhrSync"),r=u("xhrListener"),i=u("xhrScheduled"),c=u("xhrURL"),h=u("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function(t,n){const o=t.constructor.name;for(let r=0;r<n.length;r++){const s=n[r],a=t[s];if(a){if(!_(e(t,s)))continue;t[s]=(e=>{const t=function(){return e.apply(this,g(arguments,o+"."+s))};return C(t,e),t})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(t){return function(n){G(e,t).forEach(o=>{const r=e.PromiseRejectionEvent;if(r){const e=new r(t,{promise:n.promise,reason:n.rejection});o.invoke(e)}})}}e.PromiseRejectionEvent&&(t[u("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[u("rejectionHandledHandler")]=n("rejectionhandled"))})})?o.call(t,n,t,e):o)||(e.exports=r)}},[[1,0]]]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{"2QA8":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("XNiG"),s=n("9ppp");class i extends r.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));let r=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("quSY");class s extends r.a{constructor(t,e){super()}schedule(t,e=0){return this}}class i extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,r=void 0;try{this.work(t)}catch(s){n=!0,r=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return bt})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return v})),n.d(e,"e",(function(){return w})),n.d(e,"f",(function(){return lt})),n.d(e,"g",(function(){return gt})),n.d(e,"h",(function(){return yt}));var r=n("fXoL"),s=n("ofXK"),i=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const l=new r.q("NgValueAccessor"),c={provide:l,useExisting:Object(r.S)(()=>u),multi:!0};let u=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.D),r.Jb(r.l))},t.\u0275dir=r.Eb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&r.Vb("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[r.wb([c])]}),t})();const h={provide:l,useExisting:Object(r.S)(()=>p),multi:!0},d=new r.q("CompositionEventMode");let p=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(s.r)()?Object(s.r)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.D),r.Jb(r.l),r.Jb(d,8))},t.\u0275dir=r.Eb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&r.Vb("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[r.wb([h])]}),t})(),f=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Eb({type:t}),t})(),m=(()=>{class t extends f{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return g(e||t)},t.\u0275dir=r.Eb({type:t,features:[r.ub]}),t})();const g=r.Qb(m);function y(){throw new Error("unimplemented")}class _ extends f{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return y()}get asyncValidator(){return y()}}class b{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let v=(()=>{class t extends b{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(_,2))},t.\u0275dir=r.Eb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Bb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r.ub]}),t})(),w=(()=>{class t extends b{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(m,2))},t.\u0275dir=r.Eb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Bb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r.ub]}),t})();function S(t){return null==t||0===t.length}function C(t){return null!=t&&"number"==typeof t.length}const E=new r.q("NgValidators"),O=new r.q("NgAsyncValidators"),T=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class x{static min(t){return e=>{if(S(e.value)||S(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(S(e.value)||S(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return S(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return S(t.value)||T.test(t.value)?null:{email:!0}}static minLength(t){return e=>S(e.value)||!C(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}static maxLength(t){return e=>C(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return x.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(S(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(k);return 0==e.length?null:function(t){return j(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(k);return 0==e.length?null:function(t){const n=function(t,e){return e.map(e=>e(t))}(t,e).map(A);return Object(i.a)(n).pipe(Object(a.a)(j))}}}function k(t){return null!=t}function A(t){const e=Object(r.pb)(t)?Object(o.a)(t):t;if(!Object(r.ob)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function j(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function R(t){return t.validate?e=>t.validate(e):t}function N(t){return t.validate?e=>t.validate(e):t}const I={provide:l,useExisting:Object(r.S)(()=>P),multi:!0};let P=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.D),r.Jb(r.l))},t.\u0275dir=r.Eb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&r.Vb("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[r.wb([I])]}),t})();const D={provide:l,useExisting:Object(r.S)(()=>M),multi:!0};let F=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t{constructor(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(_),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.D),r.Jb(r.l),r.Jb(F),r.Jb(r.r))},t.\u0275dir=r.Eb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&r.Vb("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r.wb([D])]}),t})();const V={provide:l,useExisting:Object(r.S)(()=>L),multi:!0};let L=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.D),r.Jb(r.l))},t.\u0275dir=r.Eb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&r.Vb("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[r.wb([V])]}),t})();const U='\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',H='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',q={provide:l,useExisting:Object(r.S)(()=>$),multi:!0};let $=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.D),r.Jb(r.l))},t.\u0275dir=r.Eb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&r.Vb("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r.wb([q])]}),t})();const B={provide:l,useExisting:Object(r.S)(()=>z),multi:!0};let z=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const r=t.item(e),s=this._getOptionValue(r.value);n.push(s)}}else{const t=e.options;for(let e=0;e<t.length;e++){const r=t.item(e);if(r.selected){const t=this._getOptionValue(r.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.D),r.Jb(r.l))},t.\u0275dir=r.Eb({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&r.Vb("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r.wb([B])]}),t})();function G(t,e){return[...e.path,t]}function W(t,e){t||K(e,"Cannot find control with"),e.valueAccessor||K(e,"No value accessor for form control with"),t.validator=x.compose([t.validator,e.validator]),t.asyncValidator=x.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&J(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&J(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function J(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function K(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function Q(t){return null!=t?x.compose(t.map(R)):null}function Z(t){return null!=t?x.composeAsync(t.map(N)):null}const X=[u,L,P,$,z,M];function Y(t){const e=et(t)?t.validators:t;return Array.isArray(e)?Q(e):e||null}function tt(t,e){const n=et(e)?e.asyncValidators:t;return Array.isArray(n)?Z(n):n||null}function et(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class nt{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=Y(t)}setAsyncValidators(t){this.asyncValidator=tt(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=A(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let r=t;return e.forEach(t=>{r=r instanceof st?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof it&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new r.n,this.statusChanges=new r.n}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){et(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class rt extends nt{constructor(t=null,e,n){super(Y(e),tt(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class st extends nt{constructor(t,e,n){super(Y(e),tt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof rt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class it extends nt{constructor(t,e,n){super(Y(e),tt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof rt?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const ot={provide:m,useExisting:Object(r.S)(()=>lt)},at=(()=>Promise.resolve(null))();let lt=(()=>{class t extends m{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.n,this.form=new st({},Q(t),Z(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){at.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),W(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){at.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this._directives,t)})}addFormGroup(t){at.then(()=>{const e=this._findContainer(t.path),n=new st({});(function(t,e){null==t&&K(e,"Cannot find control with"),t.validator=x.compose([t.validator,e.validator]),t.asyncValidator=x.composeAsync([t.asyncValidator,e.asyncValidator])})(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){at.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){at.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(E,10),r.Jb(O,10))},t.\u0275dir=r.Eb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&r.Vb("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.wb([ot]),r.ub]}),t})(),ct=(()=>{class t extends m{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return G(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Q(this._validators)}get asyncValidator(){return Z(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return ut(e||t)},t.\u0275dir=r.Eb({type:t,features:[r.ub]}),t})();const ut=r.Qb(ct);class ht{static modelParentException(){throw new Error('\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup\'s partner directive "formControlName" instead.  Example:\n\n      \n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });\n\n      Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n      Example:\n\n      \n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  ')}static formGroupNameException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      ${U}\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ${H}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      ${U}\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ${H}`)}}const dt={provide:m,useExisting:Object(r.S)(()=>pt)};let pt=(()=>{class t extends ct{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof lt||ht.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(m,5),r.Jb(E,10),r.Jb(O,10))},t.\u0275dir=r.Eb({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r.wb([dt]),r.ub]}),t})();const ft={provide:_,useExisting:Object(r.S)(()=>gt)},mt=(()=>Promise.resolve(null))();let gt=(()=>{class t extends _{constructor(t,e,n,s){super(),this.control=new rt,this._registered=!1,this.update=new r.n,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||K(t,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,s=void 0;return e.forEach(e=>{var i;e.constructor===p?n=e:(i=e,X.some(t=>i.constructor===t)?(r&&K(t,"More than one built-in value accessor matches form control with"),r=e):(s&&K(t,"More than one custom value accessor matches form control with"),s=e))}),s||r||n||(K(t,"No valid value accessor for form control with"),null)}(this,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?G(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Q(this._rawValidators)}get asyncValidator(){return Z(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){W(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof pt)&&this._parent instanceof ct?ht.formGroupNameException():this._parent instanceof pt||this._parent instanceof lt||ht.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||ht.missingNameException()}_updateValue(t){mt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;mt.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(m,9),r.Jb(E,10),r.Jb(O,10),r.Jb(l,10))},t.\u0275dir=r.Eb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r.wb([ft]),r.ub,r.vb]}),t})(),yt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Eb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),_t=(()=>{class t{}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)}}),t})(),bt=(()=>{class t{}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},providers:[F],imports:[_t]}),t})()},"3XJ7":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("fXoL"),s=n("lUod"),i=n("WyaX");class o{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}class a{constructor(t,e,n,s,i,o,a,l){this._viewContainerRef=t,this._renderer=e,this._elementRef=n,this._injector=s,this._componentFactoryResolver=i,this._ngZone=o,this._applicationRef=a,this._posService=l,this.onBeforeShow=new r.n,this.onShown=new r.n,this.onBeforeHide=new r.n,this.onHidden=new r.n,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(t){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(t),this}to(t){return this.container=t||this.container,this}position(t){return this.attachment=t.attachment||this.attachment,this._elementRef=t.target||this._elementRef,this}provide(t){return this._providers.push(t),this}show(t={}){if(this._subscribePositioning(),this._innerComponent=null,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(t.content,t.context,t.initialState);const e=r.r.create({providers:this._providers,parent:this._injector});this._componentRef=this._componentFactory.create(e,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,t),this.container instanceof r.l&&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(this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(){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._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(),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(t){this.triggers=t.triggers||this.triggers,this._listenOpts.outsideClick=t.outsideClick,this._listenOpts.outsideEsc=t.outsideEsc,t.target=t.target||this._elementRef.nativeElement;const e=this._listenOpts.hide=()=>t.hide?t.hide():void this.hide(),n=this._listenOpts.show=e=>{t.show?t.show(e):this.show(e),e()};return this._unregisterListenersFn=Object(s.b)(this._renderer,{target:t.target,triggers:t.triggers,show:n,hide:e,toggle:t=>{this.isShown?e():n(t)}}),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=null)}attachInline(t,e){return this._inlineViewRef=t.createEmbeddedView(e),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const t=this._componentRef.location.nativeElement;setTimeout(()=>{this._globalListener=Object(s.e)(this._renderer,{targets:[t,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide()})})}if(this._listenOpts.outsideEsc){const t=this._componentRef.location.nativeElement;this._globalListener=Object(s.d)(this._renderer,{targets:[t,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide()})}}}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(t,e,n){if(!t)return new o([]);if(t instanceof r.K){if(this._viewContainerRef){const n=this._viewContainerRef.createEmbeddedView(t,e);return n.markForCheck(),new o([n.rootNodes],n)}const n=t.createEmbeddedView({});return this._applicationRef.attachView(n),new o([n.rootNodes],n)}if("function"==typeof t){const e=this._componentFactoryResolver.resolveComponentFactory(t),s=r.r.create({providers:this._providers,parent:this._injector}),i=e.create(s);return Object.assign(i.instance,n),this._applicationRef.attachView(i.hostView),new o([[i.location.nativeElement]],i.hostView,i)}return new o([[this._renderer.createText(""+t)]])}}let l=(()=>{class t{constructor(t,e,n,r,s){this._componentFactoryResolver=t,this._ngZone=e,this._injector=n,this._posService=r,this._applicationRef=s}createLoader(t,e,n){return new a(e,n,t,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(r.j),r.Sb(r.z),r.Sb(r.r),r.Sb(i.a),r.Sb(r.g))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("ZUHj"),s=n("l7GE"),i=n("51Dv"),o=n("lJxs"),a=n("Cfvw");function l(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(l((n,r)=>Object(a.a)(t(n,r)).pipe(Object(o.a)((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new c(t,n)))}class c{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new u(t,this.project,this.concurrent))}}class u extends s.a{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)}_innerSub(t,e,n){const s=new i.a(this,e,n),o=this.destination;o.add(s);const a=Object(r.a)(this,t,void 0,void 0,s);a!==s&&o.add(a)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,r,s){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q");class s extends r.a{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"5yfJ":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("HDdC"),s=n("KqfI");const i=new r.a(s.a)},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("n6bG"),s=n("gRHU"),i=n("quSY"),o=n("2QA8"),a=n("2fFW"),l=n("NJ4a");class c extends i.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!t){this.destination=s.a;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.a](){return this}static create(t,e,n){const r=new c(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends c{constructor(t,e,n,i){let o;super(),this._parentSubscriber=t;let a=this;Object(r.a)(e)?o=e:e&&(o=e.next,n=e.error,i=e.complete,e!==s.a&&(a=Object.create(e),Object(r.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(l.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(l.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(l.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"9ppp":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},Cfvw:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n("HDdC"),s=n("SeVD"),i=n("quSY"),o=n("kJWO"),a=n("jZKg"),l=n("Lhse"),c=n("c2HN"),u=n("I55L");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new r.a(n=>{const r=new i.a;return r.add(e.schedule(()=>{const s=t[o.a]();r.add(s.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(Object(c.a)(t))return function(t,e){return new r.a(n=>{const r=new i.a;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(Object(u.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[l.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new i.a;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[l.a](),r.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())})))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof r.a?t:new r.a(Object(s.a)(t))}},D0XW:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("3N8a");const s=new(n("IjjT").a)(r.a)},DH7j:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},EDFS:function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return b}));var r=n("3XJ7"),s=n("lUod"),i=n("WyaX"),o=n("HDdC"),a=n("D0XW"),l=n("DH7j");function c(t){return!Object(l.a)(t)&&t-parseFloat(t)+1>=0}var u=n("z+Ro");function h(t){const{index:e,period:n,subscriber:r}=t;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}var d=n("ofXK"),p=n("fXoL");function f(t,e){if(1&t&&(p.Ob(0,"h3",3),p.wc(1),p.Nb()),2&t){const t=p.Zb();p.xb(1),p.xc(t.title)}}const m=["*"];let g=(()=>{class t{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="click",this.outsideClick=!1,this.delay=0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=p.Fb({token:t,factory:t.\u0275fac}),t})(),y=(()=>{class t{constructor(t){Object.assign(this,t)}get isBs3(){return Object(s.a)()}}return t.\u0275fac=function(e){return new(e||t)(p.Jb(g))},t.\u0275cmp=p.Db({type:t,selectors:[["popover-container"]],hostAttrs:["role","tooltip",2,"display","block"],hostVars:6,hostBindings:function(t,e){2&t&&(p.zb("popover in popover-"+e.placement+" bs-popover-"+e.placement+" "+e.placement+" "+e.containerClass),p.Bb("show",!e.isBs3)("bs3",e.isBs3))},inputs:{placement:"placement",title:"title"},ngContentSelectors:m,decls:4,vars:1,consts:[[1,"popover-arrow","arrow"],["class","popover-title popover-header",4,"ngIf"],[1,"popover-content","popover-body"],[1,"popover-title","popover-header"]],template:function(t,e){1&t&&(p.ec(),p.Kb(0,"div",0),p.uc(1,f,2,1,"h3",1),p.Ob(2,"div",2),p.dc(3),p.Nb()),2&t&&(p.xb(1),p.fc("ngIf",e.title))},directives:[d.j],styles:[".bs3.popover-top[_nghost-%COMP%] {\n      margin-bottom: 10px;\n    }\n    .bs3.popover.top[_nghost-%COMP%] > .arrow[_ngcontent-%COMP%] {\n      margin-left: -2px;\n    }\n    .bs3.popover.top[_nghost-%COMP%] {\n      margin-bottom: 10px;\n    }\n    .popover.bottom[_nghost-%COMP%] > .arrow[_ngcontent-%COMP%] {\n      margin-left: -4px;\n    }\n    .bs3.bs-popover-left[_nghost-%COMP%] {\n      margin-right: .5rem;\n    }\n    .bs3.bs-popover-right[_nghost-%COMP%]   .arrow[_ngcontent-%COMP%], .bs3.bs-popover-left[_nghost-%COMP%]   .arrow[_ngcontent-%COMP%]{\n      margin: .3rem 0;\n    }"],changeDetection:0}),t})(),_=(()=>{class t{constructor(t,e,n,r,s,i){this._elementRef=e,this._renderer=n,this._positionService=i,this.outsideClick=!1,this.containerClass="",this._isInited=!1,this._popover=s.createLoader(e,r,n).provide({provide:g,useValue:t}),Object.assign(this,t),this.onShown=this._popover.onShown,this.onHidden=this._popover.onHidden,"undefined"!=typeof window&&e.nativeElement.addEventListener("click",(function(){try{e.nativeElement.focus()}catch(t){return}}))}get isOpen(){return this._popover.isShown}set isOpen(t){t?this.show():this.hide()}show(){if(this._popover.isShown||!this.popover||this._delayTimeoutId)return;this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition}}});const t=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._popover.attach(y).to(this.container).position({attachment:this.placement}).show({content:this.popover,context:this.popoverContext,placement:this.placement,title:this.popoverTitle,containerClass:this.containerClass}),this.adaptivePosition||(this._positionService.calcPosition(),this._positionService.deletePositionElement(this._popover._componentRef.location)),this.isOpen=!0},e=()=>{this._popoverCancelShowFn&&this._popoverCancelShowFn()};if(this.delay){const n=function(t=0,e,n){let r=-1;return c(e)?r=Number(e)<1?1:Number(e):Object(u.a)(e)&&(n=e),Object(u.a)(n)||(n=a.a),new o.a(e=>{const s=c(t)?t:+t-n.now();return n.schedule(h,s,{index:0,period:r,subscriber:e})})}(this.delay).subscribe(()=>{t(),e()});this.triggers&&Object(s.c)(this.triggers).forEach(t=>{this._popoverCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,t.close,()=>{n.unsubscribe(),e()})})}else t()}hide(){this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this.isOpen&&(this._popover.hide(),this.isOpen=!1)}toggle(){if(this.isOpen)return this.hide();this.show()}ngOnInit(){this._isInited||(this._isInited=!0,this._popover.listen({triggers:this.triggers,outsideClick:this.outsideClick,show:()=>this.show()}))}ngOnDestroy(){this._popover.dispose()}}return t.\u0275fac=function(e){return new(e||t)(p.Jb(g),p.Jb(p.l),p.Jb(p.D),p.Jb(p.O),p.Jb(r.a),p.Jb(i.a))},t.\u0275dir=p.Eb({type:t,selectors:[["","popover",""]],inputs:{outsideClick:"outsideClick",containerClass:"containerClass",isOpen:"isOpen",adaptivePosition:"adaptivePosition",popover:"popover",popoverContext:"popoverContext",popoverTitle:"popoverTitle",placement:"placement",triggers:"triggers",container:"container",delay:"delay"},outputs:{onShown:"onShown",onHidden:"onHidden"},exportAs:["bs-popover"]}),t})(),b=(()=>{class t{static forRoot(){return{ngModule:t,providers:[g,r.a,i.a]}}}return t.\u0275mod=p.Hb({type:t}),t.\u0275inj=p.Gb({factory:function(e){return new(e||t)},imports:[[d.b]]}),t})()},EY2u:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return i}));var r=n("HDdC");const s=new r.a(t=>t.complete());function i(t){return t?function(t){return new r.a(e=>t.schedule(()=>e.complete()))}(t):s}},HDdC:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("7o/Q"),s=n("2QA8"),i=n("gRHU"),o=n("kJWO"),a=n("SpAZ"),l=n("2fFW");let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[s.a])return t[s.a]()}return t||e||n?new r.a(t,e,n):new r.a(i.a)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof r.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.a](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.a:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=l.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},I55L:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>t&&"number"==typeof t.length&&"function"!=typeof t},Iab2:function(t,e,n){var r,s;void 0===(s="function"==typeof(r=function(){"use strict";function e(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){o(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function n(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function r(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,i=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(t,i,o){var a=s.URL||s.webkitURL,l=document.createElement("a");l.download=i=i||t.name||"download",l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?r(l):n(l.href)?e(t,i,o):r(l,l.target="_blank")):(l.href=a.createObjectURL(t),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,s,i){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,i),s);else if(n(t))e(t,s,i);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){r(o)}))}}:function(t,n,r,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,r);var a="application/octet-stream"===t.type,l=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&l||i)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},u.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);o?o.location=d:location.href=d,o=null,setTimeout((function(){h.revokeObjectURL(d)}),4e4)}});s.saveAs=o.saveAs=o,t.exports=o})?r.apply(e,[]):r)||(t.exports=s)},IjjT:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));let r=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class s extends r{constructor(t,e=r.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},JIr8:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("l7GE"),s=n("51Dv"),i=n("ZUHj");function o(t){return function(e){const n=new a(t),r=e.lift(n);return n.caught=r}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new l(t,this.selector,this.caught))}}class l extends r.a{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new s.a(this,void 0,void 0);this.add(r);const o=Object(i.a)(this,n,void 0,void 0,r);o!==r&&this.add(o)}}}},KqfI:function(t,e,n){"use strict";function r(){}n.d(e,"a",(function(){return r}))},LRne:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("z+Ro"),s=n("yCtX"),i=n("jZKg");function o(...t){let e=t[t.length-1];return Object(r.a)(e)?(t.pop(),Object(i.a)(t,e)):Object(s.a)(t)}},Lhse:function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return s}));const s=r()},NJ4a:function(t,e,n){"use strict";function r(t){setTimeout(()=>{throw t},0)}n.d(e,"a",(function(){return r}))},R0Ic:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"g",(function(){return l})),n.d(e,"h",(function(){return h})),n.d(e,"i",(function(){return d}));class r{}class s{}const i="*";function o(t,e=null){return{type:4,styles:e,timings:t}}function a(t,e=null){return{type:2,steps:t,options:e}}function l(t){return{type:6,styles:t,offset:null}}function c(t){Promise.resolve(null).then(t)}class u{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){c(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class h{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0;const s=this.players.length;0==s?c(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const d="!"},R1ws:function(t,e,n){"use strict";n.d(e,"a",(function(){return ge}));var r=n("fXoL"),s=n("jhN1"),i=n("R0Ic");function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new i.d;case 1:return t[0];default:return new i.h(t)}}function l(t,e,n,r,s={},o={}){const a=[],l=[];let c=-1,u=null;if(r.forEach(t=>{const n=t.offset,r=n==c,h=r&&u||{};Object.keys(t).forEach(n=>{let r=n,l=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),l){case i.i:l=s[n];break;case i.a:l=o[n];break;default:l=e.normalizeStyleValue(n,r,l,a)}h[r]=l}),r||l.push(h),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function c(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&u(n,"start",t)));break;case"done":t.onDone(()=>r(n&&u(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&u(n,"destroy",t)))}}function u(t,e,n){const r=n.totalTime,s=h(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),i=t._data;return null!=i&&(s._data=i),s}function h(t,e,n,r,s="",i=0,o){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:s,totalTime:i,disabled:!!o}}function d(t,e,n){let r;return t instanceof Map?(r=t.get(e),r||t.set(e,r=n)):(r=t[e],r||(r=t[e]=n)),r}function p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,m=(t,e)=>!1,g=(t,e,n)=>[];const y=o();(y||"undefined"!=typeof Element)&&(f=(t,e)=>t.contains(e),m=(()=>{if(y||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):m}})(),g=(t,e,n)=>{let r=[];if(n)r.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&r.push(n)}return r});let _=null,b=!1;function v(t){_||(_=("undefined"!=typeof document?document.body:null)||{},b=!!_.style&&"WebkitAppearance"in _.style);let e=!0;return _.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in _.style,!e&&b)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in _.style),e}const w=m,S=f,C=g;function E(t){const e={};return Object.keys(t).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}let O=(()=>{class t{validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return S(t,e)}query(t,e,n){return C(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,s,o=[],a){return new i.d(n,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),T=(()=>{class t{}return t.NOOP=new O,t})();function x(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:k(parseFloat(e[1]),e[2])}function k(t,e){switch(e){case"s":return 1e3*t;default:return t}}function A(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let r,s=0,i="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};r=k(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=k(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else r=t;if(!n){let n=!1,i=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(i,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:s,easing:i}}(t,e,n)}function j(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function R(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else j(t,n);return n}function N(t,e,n){return n?e+":"+n+";":""}function I(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style.item(n);e+=N(0,r,t.style.getPropertyValue(r))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=N(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function P(t,e,n){t.style&&(Object.keys(e).forEach(r=>{const s=q(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[s]),t.style[s]=e[r]}),o()&&I(t))}function D(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=q(e);t.style[n]=""}),o()&&I(t))}function F(t){return Array.isArray(t)?1==t.length?t[0]:Object(i.f)(t):t}const M=new RegExp("{{\\s*(.+?)\\s*}}","g");function V(t){let e=[];if("string"==typeof t){let n;for(;n=M.exec(t);)e.push(n[1]);M.lastIndex=0}return e}function L(t,e,n){const r=t.toString(),s=r.replace(M,(t,r)=>{let s=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),s=""),s.toString()});return s==r?t:s}function U(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const H=/-+([a-z0-9])/g;function q(t){return t.replace(H,(...t)=>t[1].toUpperCase())}function $(t,e){return 0===t||0===e}function B(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let i=e[0],o=[];if(r.forEach(t=>{i.hasOwnProperty(t)||o.push(t),i[t]=n[t]}),o.length)for(var s=1;s<e.length;s++){let n=e[s];o.forEach((function(e){n[e]=G(t,e)}))}}return e}function z(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function G(t,e){return window.getComputedStyle(t)[e]}function W(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}const r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=r[1],i=r[2],o=r[3];e.push(Q(s,o)),"<"!=i[0]||"*"==s&&"*"==o||e.push(Q(o,s))}(t,n,e)):n.push(t),n}const J=new Set(["true","1"]),K=new Set(["false","0"]);function Q(t,e){const n=J.has(t)||K.has(t),r=J.has(e)||K.has(e);return(s,i)=>{let o="*"==t||t==s,a="*"==e||e==i;return!o&&n&&"boolean"==typeof s&&(o=s?J.has(t):K.has(t)),!a&&r&&"boolean"==typeof i&&(a=i?J.has(e):K.has(e)),o&&a}}const Z=new RegExp("s*:selfs*,?","g");function X(t,e,n){return new Y(t).build(e,n)}class Y{constructor(t){this._driver=t}build(t,e){const n=new tt(e);return this._resetContextStyleTimingState(n),z(this,F(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0;const s=[],i=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,r=n.name;r.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=r}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,r+=s.depCount,i.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:i,queryCount:n,depCount:r,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,i=r||{};if(n.styles.forEach(t=>{if(et(t)){const e=t;Object.keys(e).forEach(t=>{V(e[t]).forEach(t=>{i.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=U(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=z(this,F(t.animation),e);return{type:1,matchers:W(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:nt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>z(this,t,e)),options:nt(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const s=t.steps.map(t=>{e.currentTime=n;const s=z(this,t,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:s,options:nt(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return rt(A(t,e).duration,0,"");const r=t;if(r.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=rt(0,0,"");return t.dynamic=!0,t.strValue=r,t}return n=n||A(r,e),rt(n.duration,n.delay,n.easing)}(t.timings,e.errors);let r;e.currentAnimateTimings=n;let s=t.styles?t.styles:Object(i.g)({});if(5==s.type)r=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};n.easing&&(t.easing=n.easing),s=Object(i.g)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,e);a.isEmptyStep=o,r=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==i.a?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let r=!1,s=null;return n.forEach(t=>{if(et(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!r)for(let t in e)if(e[t].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=e.collectedStyles[e.currentQuerySelector],o=i[n];let a=!0;o&&(s!=r&&s>=o.startTime&&r<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),a=!1),s=o.startTime),a&&(i[n]={startTime:s,endTime:r}),e.options&&function(t,e,n){const r=e.params||{},s=V(t);s.length&&s.forEach(t=>{r.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const s=[];let i=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(et(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(et(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(r++,c=n.offset=l),o=o||c<0||c>1,i=i||c<a,a=c,s.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),i&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let u=0;r>0&&r<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(u=1/(c-1));const h=c-1,d=e.currentTime,p=e.currentAnimateTimings,f=p.duration;return l.forEach((t,r)=>{const i=u>0?r==h?1:u*r:s[r],o=i*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=i,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:z(this,F(t.animation),e),options:nt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:nt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:nt(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,i]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Z,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,d(e.collectedStyles,e.currentQuerySelector,{});const o=z(this,F(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:i,animation:o,originalSelector:t.selector,options:nt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:A(t.timings,e.errors,!0);return{type:12,animation:z(this,F(t.animation),e),timings:n,options:null}}}class tt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function et(t){return!Array.isArray(t)&&"object"==typeof t}function nt(t){var e;return t?(t=j(t)).params&&(t.params=(e=t.params)?j(e):null):t={},t}function rt(t,e,n){return{duration:t,delay:e,easing:n}}function st(t,e,n,r,s,i,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:s,delay:i,totalTime:s+i,easing:o,subTimeline:a}}class it{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ot=new RegExp(":enter","g"),at=new RegExp(":leave","g");function lt(t,e,n,r,s,i={},o={},a,l,c=[]){return(new ct).buildKeyframes(t,e,n,r,s,i,o,a,l,c)}class ct{buildKeyframes(t,e,n,r,s,i,o,a,l,c=[]){l=l||new it;const u=new ht(t,e,l,r,s,c,[]);u.options=a,u.currentTimeline.setStyles([i],null,u.errors,a),z(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[st(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);s!=i&&e.transformIntoNewTimeline(i)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let r=e.currentTimeline.currentTime;const s=null!=n.duration?x(n.duration):null,i=null!=n.delay?x(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,i);r=Math.max(r,n.duration+n.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),z(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ut);const t=x(s.delay);r.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>z(this,t,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?x(t.options.delay):0;t.steps.forEach(i=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),z(this,i,o),r=Math.max(r,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return A(e.params?L(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,s=n.duration,i=e.createSubContext().currentTimeline;i.easing=n.easing,t.styles.forEach(t=>{i.forwardTime((t.offset||0)*s),i.setStyles(t.styles,t.easing,e.errors,e.options),i.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(i),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?x(r.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ut);let i=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,r)=>{e.currentQueryIndex=r;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),z(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(i),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,s=t.timings,i=Math.abs(s.duration),o=i*(e.currentQueryTotal-1);let a=i*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;z(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}const ut={};class ht{constructor(t,e,n,r,s,i,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ut,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new dt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=x(n.duration)),null!=n.delay&&(r.delay=x(n.delay));const s=n.params;if(s){let t=r.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=L(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const r=e||this.element,s=new ht(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=ut,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new pt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,s,i){let o=[];if(r&&o.push(this.element),t.length>0){t=(t=t.replace(ot,"."+this._enterClassName)).replace(at,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||i.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class dt{constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new dt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||i.a,this._currentKeyframe[t]=i.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function(t,e){const n={};let r;return t.forEach(t=>{"*"===t?(r=r||Object.keys(e),r.forEach(t=>{n[t]=i.a})):R(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=L(o[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:i.a),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],r=t._styleSummary[e];(!n||r.time>n.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,o)=>{const a=R(s,!0);Object.keys(a).forEach(n=>{const r=a[n];r==i.i?t.add(n):r==i.a&&e.add(n)}),n||(a.offset=o/this.duration),r.push(a)});const s=t.size?U(t.values()):[],o=e.size?U(e.values()):[];if(n){const t=r[0],e=j(t);t.offset=0,e.offset=1,r=[t,e]}return st(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class pt extends dt{constructor(t,e,n,r,s,i,o=!1){super(t,e,i.delay),this.element=e,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],i=n+e,o=e/i,a=R(t[0],!1);a.offset=0,s.push(a);const l=R(t[0],!1);l.offset=ft(o),s.push(l);const c=t.length-1;for(let r=1;r<=c;r++){let o=R(t[r],!1);o.offset=ft((e+o.offset*n)/i),s.push(o)}n=i,e=0,r="",t=s}return st(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function ft(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class mt{}class gt extends mt{normalizePropertyName(t,e){return q(t)}normalizeStyleValue(t,e,n,r){let s="";const i=n.toString().trim();if(yt[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&r.push(`Please provide a CSS unit value for ${t}:${n}`)}return i+s}}const yt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function _t(t,e,n,r,s,i,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:i,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const bt={};class vt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function(t,e,n,r,s){return t.some(t=>t(e,n,r,s))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){const r=this._stateStyles["*"],s=this._stateStyles[t],i=r?r.buildStyles(e,n):{};return s?s.buildStyles(e,n):i}build(t,e,n,r,s,i,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||bt,p=this.buildStyles(n,o&&o.params||bt,u),f=a&&a.params||bt,m=this.buildStyles(r,f,u),g=new Set,y=new Map,_=new Map,b="void"===r,v={params:Object.assign(Object.assign({},h),f)},w=c?[]:lt(t,e,this.ast.animation,s,i,p,m,v,l,u);let S=0;if(w.forEach(t=>{S=Math.max(t.duration+t.delay,S)}),u.length)return _t(e,this._triggerName,n,r,b,p,m,[],[],y,_,S,u);w.forEach(t=>{const n=t.element,r=d(y,n,{});t.preStyleProps.forEach(t=>r[t]=!0);const s=d(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&g.add(n)});const C=U(g.values());return _t(e,this._triggerName,n,r,b,p,m,w,C,y,_,S)}}class wt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},r=j(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let i=s[t];i.length>1&&(i=L(i,r,e)),n[t]=i})}}),n}}class St{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new wt(t.style,t.options&&t.options.params||{})}),Ct(this.states,"true","1"),Ct(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new vt(t,e,this.states))}),this.fallbackTransition=new vt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(s=>s.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Ct(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Et=new it;class Ot{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],r=X(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r}_buildPlayer(t,e,n){const r=t.element,s=l(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],s=this._animations[t];let o;const l=new Map;if(s?(o=lt(this._driver,e,s,"ng-enter","ng-leave",{},{},n,Et,r),o.forEach(t=>{const e=d(l,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));l.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,i.a)})});const c=a(o.map(t=>{const e=l.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,r){const s=h(e,"","","");return c(this._getPlayer(t),n,s,r),()=>{}}command(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const Tt=[],xt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},kt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class At{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(r=n?t.value:t)?r:null,n){const e=j(t);delete e.value,this.options=e}else this.options={};var r;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const jt=new At("void");class Rt{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Vt(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const i=d(this._elementListeners,t,[]),o={name:e,phase:n,callback:r};i.push(o);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Vt(t,"ng-trigger"),Vt(t,"ng-trigger-"+e),a[e]=jt),()=>{this._engine.afterFlush(()=>{const t=i.indexOf(o);t>=0&&i.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,r=!0){const s=this._getTrigger(e),i=new It(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Vt(t,"ng-trigger"),Vt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new At(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=jt),"void"!==l.value&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let s=0;s<n.length;s++){const r=n[s];if(!e.hasOwnProperty(r)||t[r]!==e[r])return!1}return!0}(a.params,l.params)){const e=[],n=s.matchStyles(a.value,a.params,e),r=s.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{D(t,n),P(t,r)})}return}const c=d(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!r)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(Vt(t,"ng-animate-queued"),i.onStart(()=>{Lt(t,"ng-animate-queued")})),i.onDone(()=>{let e=this.players.indexOf(i);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(i);t>=0&&n.splice(t,1)}}),this.players.push(i),c.push(i),i}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,r){const s=this._engine.statesByElement.get(t);if(s){const i=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",r);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&a(i).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const r=e.name;if(n.has(r))return;n.add(r);const s=this._triggers[r].fallbackTransition,i=this._engine.statesByElement.get(t)[r]||jt,o=new At("void"),a=new It(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:s,fromState:i,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)r=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{const r=t.__ng_removed;r&&r!==xt||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Vt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const s=n.element,i=this._elementListeners.get(s);i&&i.forEach(e=>{if(e.name==n.triggerName){const r=h(s,n.triggerName,n.fromState.value,n.toState.value);r._data=t,c(n.player,e.phase,r,e.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,r=e.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Nt{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Rt(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let r=0;r<t.length;r++){const s=n[t[r]].namespaceId;if(s){const t=this._fetchNamespace(s);t&&e.add(t)}}}return e}trigger(t,e,n,r){if(Pt(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,n,r),!0}return!1}insertNode(t,e,n,r){if(!Pt(e))return;const s=e.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const r=this._fetchNamespace(t);r&&r.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Vt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Lt(t,"ng-animate-disabled"))}removeNode(t,e,n,r){if(Pt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,n,r){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,r,s){return Pt(e)?this._fetchNamespace(t).listen(e,n,r,s):()=>{}}_buildInstruction(t,e,n,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return a(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=xt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Vt(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?a(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new it,r=[],s=new Map,o=[],l=new Map,c=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)h.add(e[n])});const p=this.bodyNode,f=Array.from(this.statesByElement.keys()),m=Mt(f,this.collectedEnterElements),g=new Map;let y=0;m.forEach((t,e)=>{const n="ng-enter"+y++;g.set(e,n),t.forEach(t=>Vt(t,n))});const _=[],b=new Set,v=new Set;for(let i=0;i<this.collectedLeaveElements.length;i++){const t=this.collectedLeaveElements[i],e=t.__ng_removed;e&&e.setForRemoval&&(_.push(t),b.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>b.add(t)):v.add(t))}const w=new Map,S=Mt(f,Array.from(b));S.forEach((t,e)=>{const n="ng-leave"+y++;w.set(e,n),t.forEach(t=>Vt(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Lt(t,n))}),S.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Lt(t,n))}),_.forEach(t=>{this.processLeaveNode(t)})});const C=[],E=[];for(let i=this._namespaceList.length-1;i>=0;i--)this._namespaceList[i].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(C.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const i=!p||!this.driver.containsElement(p,s),a=w.get(s),h=g.get(s),f=this._buildInstruction(t,n,h,a,i);if(f.errors&&f.errors.length)E.push(f);else{if(i)return e.onStart(()=>D(s,f.fromStyles)),e.onDestroy(()=>P(s,f.toStyles)),void r.push(e);if(t.isFallbackTransition)return e.onStart(()=>D(s,f.fromStyles)),e.onDestroy(()=>P(s,f.toStyles)),void r.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),o.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>d(l,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let r=u.get(e);r||u.set(e,r=new Set),n.forEach(t=>r.add(t))})}});if(E.length){const t=[];E.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),C.forEach(t=>t.destroy()),this.reportError(t)}const O=new Map,T=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(T.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),r.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(O,e,[]).push(t),t.destroy()})});const x=_.filter(t=>Ht(t,c,u)),k=new Map;Ft(k,this.driver,v,u,i.a).forEach(t=>{Ht(t,c,u)&&x.push(t)});const A=new Map;m.forEach((t,e)=>{Ft(A,this.driver,new Set(t),c,i.i)}),x.forEach(t=>{const e=k.get(t),n=A.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const j=[],R=[],N={};o.forEach(t=>{const{element:e,player:i,instruction:o}=t;if(n.has(e)){if(h.has(e))return i.onDestroy(()=>P(e,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void r.push(i);let t=N;if(T.size>1){let n=e;const r=[];for(;n=n.parentNode;){const e=T.get(n);if(e){t=e;break}r.push(n)}r.forEach(e=>T.set(e,t))}const n=this._buildAnimation(i.namespaceId,o,O,s,A,k);if(i.setRealPlayer(n),t===N)j.push(i);else{const e=this.playersByElement.get(t);e&&e.length&&(i.parentPlayer=a(e)),r.push(i)}}else D(e,o.fromStyles),i.onDestroy(()=>P(e,o.toStyles)),R.push(i),h.has(e)&&r.push(i)}),R.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=a(e);t.setRealPlayer(n)}}),r.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let i=0;i<_.length;i++){const t=_[i],e=t.__ng_removed;if(Lt(t,"ng-leave"),e&&e.hasAnimation)continue;let n=[];if(l.size){let e=l.get(t);e&&e.length&&n.push(...e);let r=this.driver.query(t,".ng-animating",!0);for(let t=0;t<r.length;t++){let e=l.get(r[t]);e&&e.length&&n.push(...e)}}const r=n.filter(t=>!t.destroyed);r.length?Ut(this,t,r):this.processLeaveNode(t)}return _.length=0,j.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),j}elementContainsData(t,e){let n=!1;const r=e.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,s){let i=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(i=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==r)&&i.push(e)})}}return(n||r)&&(i=i.filter(t=>!(n&&n!=t.namespaceId||r&&r!=t.triggerName))),i}_beforeAnimationBuild(t,e,n){const r=e.element,s=e.isRemovalTransition?void 0:t,i=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==r,l=d(n,t,[]);this._getPreviousPlayers(t,a,s,i,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}D(r,e.fromStyles)}_buildAnimation(t,e,n,r,s,o){const c=e.triggerName,u=e.element,h=[],p=new Set,f=new Set,m=e.timelines.map(e=>{const a=e.element;p.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new i.d(e.duration,e.delay);const m=a!==u,g=function(t){const e=[];return function t(e,n){for(let r=0;r<e.length;r++){const s=e[r];s instanceof i.h?t(s.players,n):n.push(s)}}(t,e),e}((n.get(a)||Tt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===a),y=s.get(a),_=o.get(a),b=l(0,this._normalizer,0,e.keyframes,y,_),v=this._buildPlayer(e,b,g);if(e.subTimeline&&r&&f.add(a),m){const e=new It(t,c,a);e.setRealPlayer(v),h.push(e)}return v});h.forEach(t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let r;if(t instanceof Map){if(r=t.get(e),r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&t.delete(e)}}else if(r=t[e],r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&delete t[e]}return r}(this.playersByQueriedElement,t.element,t))}),p.forEach(t=>Vt(t,"ng-animating"));const g=a(m);return g.onDestroy(()=>{p.forEach(t=>Lt(t,"ng-animating")),P(u,e.toStyles)}),f.forEach(t=>{d(r,t,[]).push(g)}),g}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new i.d(t.duration,t.delay)}}class It{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new i.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>c(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){d(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Pt(t){return t&&1===t.nodeType}function Dt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Ft(t,e,n,r,s){const i=[];n.forEach(t=>i.push(Dt(t)));const o=[];r.forEach((n,r)=>{const i={};n.forEach(t=>{const n=i[t]=e.computeStyle(r,t,s);n&&0!=n.length||(r.__ng_removed=kt,o.push(r))}),t.set(r,i)});let a=0;return n.forEach(t=>Dt(t,i[a++])),o}function Mt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const r=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let i=s.get(e);if(i)return i;const o=e.parentNode;return i=n.has(o)?o:r.has(o)?1:t(o),s.set(e,i),i}(t);1!==e&&n.get(e).push(t)}),n}function Vt(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Lt(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Ut(t,e,n){a(n).onDone(()=>t.processLeaveNode(e))}function Ht(t,e,n){const r=n.get(t);if(!r)return!1;let s=e.get(t);return s?r.forEach(t=>s.add(t)):e.set(t,r),n.delete(t),!0}class qt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Nt(t,e,n),this._timelineEngine=new Ot(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,r,s){const i=t+"-"+r;let o=this._triggerCache[i];if(!o){const t=[],e=X(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new St(t,e)}(r,e),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(e,r,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if("@"==n.charAt(0)){const[t,s]=p(n);this._timelineEngine.command(t,e,s,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,s){if("@"==n.charAt(0)){const[t,r]=p(n);return this._timelineEngine.listen(t,e,r,s)}return this._transitionEngine.listen(t,e,n,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function $t(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=zt(e[0]),e.length>1&&(r=zt(e[e.length-1]))):e&&(n=zt(e)),n||r?new Bt(t,n,r):null}let Bt=(()=>{class t{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&P(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(P(this._element,this._initialStyles),this._endStyles&&(P(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(D(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(D(this._element,this._endStyles),this._endStyles=null),P(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function zt(t){let e=null;const n=Object.keys(t);for(let r=0;r<n.length;r++){const s=n[r];Gt(s)&&(e=e||{},e[s]=t[s])}return e}function Gt(t){return"display"===t||"position"===t}class Wt{constructor(t,e,n,r,s,i,o){this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=s,this._fillMode=i,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Yt(t,"").trim();n.length&&(function(t,e){let n=0;for(let r=0;r<t.length;r++)","===t.charAt(r)&&n++}(n),e=`${n}, ${e}`),Xt(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Zt(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Jt(this._element,this._name,"paused")}resume(){Jt(this._element,this._name,"running")}setPosition(t){const e=Kt(this._element,this._name);this._position=t*this._duration,Xt(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Zt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Yt(t,"").split(","),r=Qt(n,e);r>=0&&(n.splice(r,1),Xt(t,"",n.join(",")))}(this._element,this._name))}}function Jt(t,e,n){Xt(t,"PlayState",n,Kt(t,e))}function Kt(t,e){const n=Yt(t,"");return n.indexOf(",")>0?Qt(n.split(","),e):Qt([n],e)}function Qt(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Zt(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Xt(t,e,n,r){const s="animation"+e;if(null!=r){const e=t.style[s];if(e.length){const t=e.split(",");t[r]=n,n=t.join(",")}}t.style[s]=n}function Yt(t,e){return t.style["animation"+e]}class te{constructor(t,e,n,r,s,i,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||"linear",this.totalTime=r+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Wt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:G(this.element,n))})}this.currentSnapshot=t}}class ee extends i.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=E(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ne{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return S(t,e)}query(t,e,n){return C(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>E(t));let r=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);r+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=`${s}animation-timing-function: ${n};\n`));default:return void(r+=`${s}${e}: ${n};\n`)}}),r+=s+"}\n"}),r+="}\n";const i=document.createElement("style");return i.innerHTML=r,i}animate(t,e,n,r,s,i=[],o){o&&this._notifyFaultyScrubber();const a=i.filter(t=>t instanceof te),l={};$(n,r)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=B(t,e,l));if(0==n)return new ee(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=$t(t,e),p=new te(t,e,u,n,r,s,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n","  visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class re{constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:G(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class se{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ie().toString()),this._cssKeyframesDriver=new ne}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return S(t,e)}query(t,e,n){return C(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,r,s,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,s,i);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};s&&(a.easing=s);const l={},c=i.filter(t=>t instanceof re);$(n,r)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=$t(t,e=B(t,e=e.map(t=>R(t,!1)),l));return new re(t,e,a,u)}}function ie(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var oe=n("ofXK");let ae=(()=>{class t extends i.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:r.P.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Object(i.f)(t):t;return ue(this._renderer,null,e,"register",[n]),new le(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(r.E),r.Sb(oe.c))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();class le extends i.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ce(this._id,t,e||{},this._renderer)}}class ce{constructor(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return ue(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function ue(t,e,n,r,s){return t.setProperty(e,`@@${n}:${r}`,s)}let he=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new de("",n,this.engine),this._rendererCache.set(n,t)),t}const r=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const i=e=>{Array.isArray(e)?e.forEach(i):this.engine.registerTrigger(r,s,t,e.name,e)};return e.data.animation.forEach(i),new pe(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(r.E),r.Sb(qt),r.Sb(r.z))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();class de{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class pe extends de{constructor(t,e,n,r){super(e,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const r=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),i="";return"@"!=s.charAt(0)&&([s,i]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,i,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let fe=(()=>{class t extends qt{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(oe.c),r.Sb(T),r.Sb(mt))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();const me=[{provide:T,useFactory:function(){return"function"==typeof ie()?new se:new ne}},{provide:new r.q("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:i.b,useClass:ae},{provide:mt,useFactory:function(){return new gt}},{provide:qt,useClass:fe},{provide:r.E,useFactory:function(t,e,n){return new he(t,e,n)},deps:[s.c,qt,r.z]}];let ge=(()=>{class t{}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},providers:me,imports:[s.a]}),t})()},RK3m:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("fXoL"),s=n("wQXg");class i{constructor(){this.additionalAccountNames=[],this.userId=null,this.transport="",this.anonymizeIp=!1}}let o=(()=>{let t=class{constructor(t){this.angulartics2=t,this.dimensionsAndMetrics=[];const e=new i;this.angulartics2.settings.ga=Object.assign(Object.assign({},e),this.angulartics2.settings.ga),this.settings=this.angulartics2.settings.ga,this.angulartics2.setUsername.subscribe(t=>this.setUsername(t)),this.angulartics2.setUserProperties.subscribe(t=>this.setUserProperties(t))}startTracking(){this.angulartics2.pageTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(t=>this.pageTrack(t.path)),this.angulartics2.eventTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(t=>this.eventTrack(t.action,t.properties)),this.angulartics2.exceptionTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(t=>this.exceptionTrack(t)),this.angulartics2.userTimings.pipe(this.angulartics2.filterDeveloperMode()).subscribe(t=>this.userTimings(t))}pageTrack(t){if("undefined"!=typeof _gaq&&_gaq){_gaq.push(["_trackPageview",t]);for(const e of this.angulartics2.settings.ga.additionalAccountNames)_gaq.push([e+"._trackPageview",t])}if("undefined"!=typeof ga&&ga){if(this.angulartics2.settings.ga.userId){ga("set","&uid",this.angulartics2.settings.ga.userId);for(const t of this.angulartics2.settings.ga.additionalAccountNames)ga(t+".set","&uid",this.angulartics2.settings.ga.userId)}if(this.angulartics2.settings.ga.anonymizeIp){ga("set","anonymizeIp",!0);for(const t of this.angulartics2.settings.ga.additionalAccountNames)ga(t+".set","anonymizeIp",!0)}ga("send","pageview",t);for(const e of this.angulartics2.settings.ga.additionalAccountNames)ga(e+".send","pageview",t)}}eventTrack(t,e){if(e&&e.category||((e=e||{}).category="Event"),e.value){const t=parseInt(e.value,10);e.value=isNaN(t)?0:t}if("undefined"!=typeof ga){const n=Object.assign({eventCategory:e.category,eventAction:t,eventLabel:e.label,eventValue:e.value,nonInteraction:e.noninteraction,page:e.page||location.hash.substring(1)||location.pathname,userId:this.angulartics2.settings.ga.userId,hitCallback:e.hitCallback},this.angulartics2.settings.ga.transport&&{transport:this.angulartics2.settings.ga.transport});this.setDimensionsAndMetrics(e),ga("send","event",n);for(const t of this.angulartics2.settings.ga.additionalAccountNames)ga(t+".send","event",n)}else"undefined"!=typeof _gaq&&_gaq.push(["_trackEvent",e.category,t,e.label,e.value,e.noninteraction])}exceptionTrack(t){void 0===t.fatal&&(console.log('No "fatal" provided, sending with fatal=true'),t.fatal=!0),t.exDescription=t.description;const e={exFatal:t.fatal,exDescription:t.description};ga("send","exception",e);for(const n of this.angulartics2.settings.ga.additionalAccountNames)ga(n+".send","exception",e)}userTimings(t){if(t&&t.timingCategory&&t.timingVar&&t.timingValue){if("undefined"!=typeof ga){ga("send","timing",t);for(const e of this.angulartics2.settings.ga.additionalAccountNames)ga(e+".send","timing",t)}}else console.error("Properties timingCategory, timingVar, and timingValue are required to be set.")}setUsername(t){this.angulartics2.settings.ga.userId=t,"undefined"!=typeof ga&&ga("set","userId",t)}setUserProperties(t){this.setDimensionsAndMetrics(t)}setDimensionsAndMetrics(t){"undefined"!=typeof ga&&(this.dimensionsAndMetrics.forEach(e=>{t.hasOwnProperty(e)||(ga("set",e,void 0),this.angulartics2.settings.ga.additionalAccountNames.forEach(t=>{ga(t+".set",e,void 0)}))}),this.dimensionsAndMetrics=[],Object.keys(t).forEach(e=>{0!==e.lastIndexOf("dimension",0)&&0!==e.lastIndexOf("metric",0)||(ga("set",e,t[e]),this.angulartics2.settings.ga.additionalAccountNames.forEach(n=>{ga(n+".set",e,t[e])}),this.dimensionsAndMetrics.push(e))}))}};return t.\u0275fac=function(e){return new(e||t)(r.Sb(s.a))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(s.a))},token:t,providedIn:"root"}),t})()},S8xs:function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return b})),n.d(e,"c",(function(){return _}));var r=n("fXoL"),s=n("lUod"),i=n("ofXK"),o=n("R0Ic");const a=[Object(o.g)({height:0,visibility:"hidden"}),Object(o.e)("400ms cubic-bezier(0.4,0.0,0.2,1)",Object(o.g)({height:"*",visibility:"visible"}))],l=[Object(o.g)({height:"*",visibility:"visible"}),Object(o.e)("400ms cubic-bezier(0.4,0.0,0.2,1)",Object(o.g)({height:0,visibility:"hidden"}))];let c=(()=>{class t{constructor(t,e,n){this._el=t,this._renderer=e,this.collapsed=new r.n,this.collapses=new r.n,this.expanded=new r.n,this.expands=new r.n,this.isExpanded=!0,this.collapseNewValue=!0,this.isCollapsed=!1,this.isCollapse=!0,this.isCollapsing=!1,this.isAnimated=!1,this._display="block",this._stylesLoaded=!1,this._COLLAPSE_ACTION_NAME="collapse",this._EXPAND_ACTION_NAME="expand",this._factoryCollapseAnimation=n.build(l),this._factoryExpandAnimation=n.build(a)}set display(t){this.isAnimated?(this._display=t,"none"!==t?this.show():this.hide()):this._renderer.setStyle(this._el.nativeElement,"display",t)}set collapse(t){this.collapseNewValue=t,this._player&&!this._isAnimationDone||(this.isExpanded=t,this.toggle())}get collapse(){return this.isExpanded}ngAfterViewChecked(){this._stylesLoaded=!0,this._player&&this._isAnimationDone&&(this._player.reset(),this._renderer.setStyle(this._el.nativeElement,"height","*"))}toggle(){this.isExpanded?this.hide():this.show()}hide(){this.isCollapsing=!0,this.isExpanded=!1,this.isCollapsed=!0,this.isCollapsing=!1,this.collapses.emit(this),this._isAnimationDone=!1,this.animationRun(this.isAnimated,this._COLLAPSE_ACTION_NAME)(()=>{this._isAnimationDone=!0,this.collapseNewValue!==this.isCollapsed&&this.isAnimated?this.show():(this.collapsed.emit(this),this._renderer.setStyle(this._el.nativeElement,"display","none"))})}show(){this._renderer.setStyle(this._el.nativeElement,"display",this._display),this.isCollapsing=!0,this.isExpanded=!0,this.isCollapsed=!1,this.isCollapsing=!1,this.expands.emit(this),this._isAnimationDone=!1,this.animationRun(this.isAnimated,this._EXPAND_ACTION_NAME)(()=>{this._isAnimationDone=!0,this.collapseNewValue!==this.isCollapsed&&this.isAnimated?this.hide():(this.expanded.emit(this),this._renderer.removeStyle(this._el.nativeElement,"overflow"))})}animationRun(t,e){if(!t||!this._stylesLoaded)return t=>t();this._renderer.setStyle(this._el.nativeElement,"overflow","hidden"),this._renderer.addClass(this._el.nativeElement,"collapse");const n=e===this._EXPAND_ACTION_NAME?this._factoryExpandAnimation:this._factoryCollapseAnimation;return this._player&&this._player.destroy(),this._player=n.create(this._el.nativeElement),this._player.play(),t=>this._player.onDone(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.l),r.Jb(r.D),r.Jb(o.b))},t.\u0275dir=r.Eb({type:t,selectors:[["","collapse",""]],hostVars:10,hostBindings:function(t,e){2&t&&(r.yb("aria-expanded",e.isExpanded)("aria-hidden",e.isCollapsed),r.Bb("collapse",e.isCollapse)("in",e.isExpanded)("show",e.isExpanded)("collapsing",e.isCollapsing))},inputs:{isAnimated:"isAnimated",display:"display",collapse:"collapse"},outputs:{collapsed:"collapsed",collapses:"collapses",expanded:"expanded",expands:"expands"},exportAs:["bs-collapse"]}),t})(),u=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)}}),t})();const h=["*"],d=function(t){return{"text-muted":t}};function p(t,e){if(1&t&&(r.Ob(0,"button",7),r.wc(1),r.Nb()),2&t){const t=r.Zb();r.fc("ngClass",r.kc(2,d,t.isDisabled)),r.xb(1),r.yc(" ",t.heading," ")}}const f=[[["","accordion-heading",""]],"*"],m=["[accordion-heading]","*"];let g=(()=>{class t{constructor(){this.closeOthers=!1,this.isAnimated=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),y=(()=>{class t{constructor(t){this.isAnimated=!1,this.groups=[],Object.assign(this,t)}closeOtherPanels(t){this.closeOthers&&this.groups.forEach(e=>{e!==t&&(e.isOpen=!1)})}addGroup(t){t.isAnimated=this.isAnimated,this.groups.push(t)}removeGroup(t){const e=this.groups.indexOf(t);-1!==e&&this.groups.splice(e,1)}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(g))},t.\u0275cmp=r.Db({type:t,selectors:[["accordion"]],hostAttrs:["role","tablist",1,"panel-group",2,"display","block"],hostVars:1,hostBindings:function(t,e){2&t&&r.yb("aria-multiselectable",e.closeOthers)},inputs:{isAnimated:"isAnimated",closeOthers:"closeOthers"},ngContentSelectors:h,decls:1,vars:0,template:function(t,e){1&t&&(r.ec(),r.dc(0))},encapsulation:2}),t})(),_=(()=>{class t{constructor(t){this.isAnimated=!1,this.isOpenChange=new r.n,this._isOpen=!1,this.accordion=t}get isOpen(){return this._isOpen}set isOpen(t){t!==this.isOpen&&(t&&this.accordion.closeOtherPanels(this),this._isOpen=t,Promise.resolve(null).then(()=>{this.isOpenChange.emit(t)}).catch(t=>{console.log(t)}))}get isBs3(){return Object(s.a)()}ngOnInit(){this.panelClass=this.panelClass||"panel-default",this.accordion.addGroup(this)}ngOnDestroy(){this.accordion.removeGroup(this)}toggleOpen(){this.isDisabled||(this.isOpen=!this.isOpen)}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(y))},t.\u0275cmp=r.Db({type:t,selectors:[["accordion-group"],["accordion-panel"]],hostAttrs:[1,"panel",2,"display","block"],hostVars:2,hostBindings:function(t,e){2&t&&r.Bb("panel-open",e.isOpen)},inputs:{isOpen:"isOpen",panelClass:"panelClass",heading:"heading",isDisabled:"isDisabled"},outputs:{isOpenChange:"isOpenChange"},ngContentSelectors:m,decls:9,vars:6,consts:[[1,"panel","card",3,"ngClass"],["role","tab",1,"panel-heading","card-header",3,"ngClass","click"],[1,"panel-title"],["role","button",1,"accordion-toggle"],["class","btn btn-link","type","button",3,"ngClass",4,"ngIf"],["role","tabpanel",1,"panel-collapse","collapse",3,"collapse","isAnimated"],[1,"panel-body","card-block","card-body"],["type","button",1,"btn","btn-link",3,"ngClass"]],template:function(t,e){1&t&&(r.ec(f),r.Ob(0,"div",0),r.Ob(1,"div",1),r.Vb("click",(function(){return e.toggleOpen()})),r.Ob(2,"div",2),r.Ob(3,"div",3),r.uc(4,p,2,4,"button",4),r.dc(5),r.Nb(),r.Nb(),r.Nb(),r.Ob(6,"div",5),r.Ob(7,"div",6),r.dc(8,1),r.Nb(),r.Nb(),r.Nb()),2&t&&(r.fc("ngClass",e.panelClass),r.xb(1),r.fc("ngClass",e.isDisabled?"panel-disabled":"panel-enabled"),r.xb(2),r.yb("aria-expanded",e.isOpen),r.xb(1),r.fc("ngIf",e.heading),r.xb(2),r.fc("collapse",!e.isOpen)("isAnimated",e.isAnimated))},directives:[i.h,i.j,c],styles:["[_nghost-%COMP%]   .card-header.panel-enabled[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]   .card-header.panel-disabled[_ngcontent-%COMP%]   .btn.btn-link[_ngcontent-%COMP%]{cursor:default;text-decoration:none}"]}),t})(),b=(()=>{class t{static forRoot(){return{ngModule:t,providers:[g]}}}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},imports:[[i.b,u]]}),t})()},SeVD:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("ngJS"),s=n("NJ4a"),i=n("Lhse"),o=n("kJWO"),a=n("I55L"),l=n("c2HN"),c=n("XoHu");const u=t=>{if(t&&"function"==typeof t[o.a])return u=t,t=>{const e=u[o.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(r.a)(t);if(Object(l.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.a),t);if(t&&"function"==typeof t[i.a])return e=t,t=>{const n=e[i.a]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=Object(c.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,u}},SpAZ:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},VRyK:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),s=n("z+Ro"),i=n("bHdf"),o=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(s.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof r.a?t[0]:Object(i.a)(e)(Object(o.a)(t,n))}},WyaX:function(t,e,n){"use strict";n.d(e,"a",(function(){return z}));var r=n("fXoL"),s=n("ofXK"),i=n("XNiG"),o=n("VRyK"),a=n("xgIS"),l=n("LRne"),c=n("3N8a");class u extends c.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var h=n("IjjT");class d extends h.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,r=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,n){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw n}}}const p=new d(u);function f(t,e){if(1!==t.nodeType)return[];const n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function m(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function g(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:e,overflowX:n,overflowY:r}=f(t);return/(auto|scroll|overlay)/.test(String(e)+String(r)+String(n))?t:g(m(t))}const y="undefined"!=typeof window&&"undefined"!=typeof document,_=y&&!(!window.MSInputMethodContext||!document.documentMode),b=y&&!(!window.MSInputMethodContext||!/MSIE 10/.test(navigator.userAgent));function v(t){return 11===t?_:10===t?b:_||b}function w(t){if(!t)return document.documentElement;const e=v(10)?document.body:null;let n,r=t.offsetParent||null;for(;r===e&&t.nextElementSibling&&n!==t.nextElementSibling;)n=t.nextElementSibling,r=n.offsetParent;const s=r&&r.nodeName;return s&&"BODY"!==s&&"HTML"!==s?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===f(r,"position")?w(r):r:n?n.ownerDocument.documentElement:document.documentElement}function S(t){return null!==t.parentNode?S(t.parentNode):t}function C(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;const n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,s=n?e:t,i=document.createRange();i.setStart(r,0),i.setEnd(s,0);const{commonAncestorContainer:o}=i;if(t!==o&&e!==o||r.contains(s))return function(t){const{nodeName:e}=t;return"BODY"!==e&&("HTML"===e||w(t.firstElementChild)===t)}(o)?o:w(o);const a=S(t);return a.host?C(a.host,e):C(t,S(e).host)}function E(t,e){const n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t[`border${n}Width`])+parseFloat(t[`border${r}Width`])}function O(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],v(10)?parseInt(n["offset"+t],10)+parseInt(r["margin"+("Height"===t?"Top":"Left")],10)+parseInt(r["margin"+("Height"===t?"Bottom":"Right")],10):0)}function T(t){const e=t.body,n=t.documentElement,r=v(10)&&getComputedStyle(n);return{height:O("Height",e,n,r),width:O("Width",e,n,r)}}function x(t,e="top"){const n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){const e=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||e)[n]}return t[n]}function k(t){return Object.assign({},t,{right:t.left+t.width,bottom:t.top+t.height})}function A(t){let e={};try{if(v(10)){e=t.getBoundingClientRect();const n=x(t,"top"),r=x(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(o){return}const n={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?T(t.ownerDocument):{};let s=t.offsetWidth-(r.width||t.clientWidth||n.right-n.left),i=t.offsetHeight-(r.height||t.clientHeight||n.bottom-n.top);if(s||i){const e=f(t);s-=E(e,"x"),i-=E(e,"y"),n.width-=s,n.height-=i}return k(n)}function j(t,e,n=!1){const r=v(10),s="HTML"===e.nodeName,i=A(t),o=A(e),a=g(t),l=f(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&s&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));let h=k({top:i.top-o.top-c,left:i.left-o.left-u,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&s){const t=parseFloat(l.marginTop),e=parseFloat(l.marginLeft);h.top-=c-t,h.bottom-=c-t,h.left-=u-e,h.right-=u-e,h.marginTop=t,h.marginLeft=e}return(r&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(h=function(t,e,n=!1){const r=x(e,"top"),s=x(e,"left"),i=n?-1:1;return t.top+=r*i,t.bottom+=r*i,t.left+=s*i,t.right+=s*i,t}(h,e)),h}function R(t){if(!t||!t.parentElement||v())return document.documentElement;let e=t.parentElement;for(;e&&"none"===f(e,"transform");)e=e.parentElement;return e||document.documentElement}function N(t,e,n=0,r,s=!1){let i={top:0,left:0};const o=s?R(t):C(t,e);if("viewport"===r)i=function(t,e=!1){const n=t.ownerDocument.documentElement,r=j(t,n),s=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),o=e?0:x(n),a=e?0:x(n,"left");return k({top:o-Number(r.top)+Number(r.marginTop),left:a-Number(r.left)+Number(r.marginLeft),width:s,height:i})}(o,s);else{let n;"scrollParent"===r?(n=g(m(e)),"BODY"===n.nodeName&&(n=t.ownerDocument.documentElement)):n="window"===r?t.ownerDocument.documentElement:r;const a=j(n,o,s);if("HTML"!==n.nodeName||function t(e){const n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===f(e,"position")||t(m(e)))}(o))i=a;else{const{height:e,width:n}=T(t.ownerDocument);i.top+=a.top-a.marginTop,i.bottom=Number(e)+Number(a.top),i.left+=a.left-a.marginLeft,i.right=Number(n)+Number(a.left)}}return i.left+=n,i.top+=n,i.right-=n,i.bottom-=n,i}function I({width:t,height:e}){return t*e}function P(t,e,n,r,s=["top","bottom","right","left"],i="viewport",o=0){if(-1===t.indexOf("auto"))return t;const a=N(n,r,o,i),l={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},c=Object.keys(l).map(t=>Object.assign({key:t},l[t],{area:I(l[t])})).sort((t,e)=>e.area-t.area);let u=c.filter(({width:t,height:e})=>t>=n.clientWidth&&e>=n.clientHeight);u=u.filter(t=>s.some(e=>e===t.key));const h=u.length>0?u[0].key:c[0].key,d=t.split(" ")[1];return n.className=n.className.replace(/bs-tooltip-auto/g,"bs-tooltip-"+h),h+(d?"-"+d:"")}function D(t){const e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:Number(t.offsetWidth)+r,height:Number(t.offsetHeight)+n}}function F(t,e,n=null){return j(e,n?R(t):C(t,e),n)}function M(t,e,n){const r=n.split(" ")[0],s=D(t),i={width:s.width,height:s.height},o=-1!==["right","left"].indexOf(r),a=o?"top":"left",l=o?"left":"top",c=o?"height":"width",u=o?"width":"height";return i[a]=e[a]+e[c]/2-s[c]/2,i[l]=r===l?e[l]-s[u]:e[function(t){const e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,t=>e[t])}(l)],i}function V(t,e){return t&&t.modifiers&&t.modifiers[e]&&t.modifiers[e].enabled}function L(t,e,n){Object.keys(e).forEach(r=>{let s="";var i;-1!==["width","height","top","right","bottom","left"].indexOf(r)&&""!==(i=e[r])&&!isNaN(parseFloat(i))&&isFinite(i)&&(s="px"),n?n.setStyle(t,r,`${String(e[r])}${s}`):t.style[r]=String(e[r])+s})}function U(t){let e=t.offsets.target;const n=t.instance.target.querySelector(".arrow");if(!n)return t;const r=-1!==["left","right"].indexOf(t.placement.split(" ")[0]),s=r?"height":"width",i=r?"Top":"Left",o=i.toLowerCase(),a=r?"left":"top",l=r?"bottom":"right",c=D(n)[s],u=t.placement.split(" ")[1];t.offsets.host[l]-c<e[o]&&(e[o]-=e[o]-(t.offsets.host[l]-c)),Number(t.offsets.host[o])+Number(c)>e[l]&&(e[o]+=Number(t.offsets.host[o])+Number(c)-Number(e[l])),e=k(e);const h=f(t.instance.target),d=parseFloat(h["margin"+i]),p=parseFloat(h[`border${i}Width`]);let m;if(u){const e=parseFloat(h.borderRadius),n=Number(d+p+e);m=o===u?Number(t.offsets.host[o])+n:Number(t.offsets.host[o])+Number(t.offsets.host[s]-n)}else m=Number(t.offsets.host[o])+Number(t.offsets.host[s]/2-c/2);let g=m-e[o]-d-p;return g=Math.max(Math.min(e[s]-c,g),0),t.offsets.arrow={[o]:Math.round(g),[a]:""},t.instance.arrow=n,t}function H(t){if(t.offsets.target=k(t.offsets.target),!V(t.options,"flip"))return t.offsets.target=Object.assign({},t.offsets.target,M(t.instance.target,t.offsets.host,t.placement)),t;const e=N(t.instance.target,t.instance.host,0,"viewport",!1);let n=t.placement.split(" ")[0],r=t.placement.split(" ")[1]||"";const s=P("auto",t.offsets.host,t.instance.target,t.instance.host,t.options.allowedPositions),i=[n,s];return i.forEach((s,o)=>{if(n!==s||i.length===o+1)return t;n=t.placement.split(" ")[0];const a="left"===n&&Math.floor(t.offsets.target.right)>Math.floor(t.offsets.host.left)||"right"===n&&Math.floor(t.offsets.target.left)<Math.floor(t.offsets.host.right)||"top"===n&&Math.floor(t.offsets.target.bottom)>Math.floor(t.offsets.host.top)||"bottom"===n&&Math.floor(t.offsets.target.top)<Math.floor(t.offsets.host.bottom),l=Math.floor(t.offsets.target.left)<Math.floor(e.left),c=Math.floor(t.offsets.target.right)>Math.floor(e.right),u=Math.floor(t.offsets.target.top)<Math.floor(e.top),h=Math.floor(t.offsets.target.bottom)>Math.floor(e.bottom),d="left"===n&&l||"right"===n&&c||"top"===n&&u||"bottom"===n&&h,p=-1!==["top","bottom"].indexOf(n),f=p&&"left"===r&&l||p&&"right"===r&&c||!p&&"left"===r&&u||!p&&"right"===r&&h;(a||d||f)&&((a||d)&&(n=i[o+1]),f&&(r=function(t){return"right"===t?"left":"left"===t?"right":t}(r)),t.placement=n+(r?" "+r:""),t.offsets.target=Object.assign({},t.offsets.target,M(t.instance.target,t.offsets.host,t.placement)))}),t}function q(t){if(!V(t.options,"preventOverflow"))return t;const e="transform",n=t.instance.target.style,{top:r,left:s,[e]:i}=n;n.top="",n.left="",n[e]="";const o=N(t.instance.target,t.instance.host,0,"scrollParent",!1);n.top=r,n.left=s,n[e]=i;const a={primary(e){let n=t.offsets.target[e];return t.offsets.target[e]<o[e]&&(n=Math.max(t.offsets.target[e],o[e])),{[e]:n}},secondary(e){const n="right"===e?"left":"top";let r=t.offsets.target[n];return t.offsets.target[e]>o[e]&&(r=Math.min(t.offsets.target[n],o[e]-("right"===e?t.offsets.target.width:t.offsets.target.height))),{[n]:r}}};let l;return["left","right","top","bottom"].forEach(e=>{l=-1!==["left","top"].indexOf(e)?"primary":"secondary",t.offsets.target=Object.assign({},t.offsets.target,a[l](e))}),t}function $(t){const e=t.placement,n=e.split(" ")[0],r=e.split(" ")[1];if(r){const{host:e,target:s}=t.offsets,i=-1!==["bottom","top"].indexOf(n),o=i?"left":"top",a=i?"width":"height",l={start:{[o]:e[o]},end:{[o]:e[o]+e[a]-s[a]}};t.offsets.target=Object.assign({},s,{[o]:o===r?l.start[o]:l.end[o]})}return t}const B=new class{position(t,e,n=!0){return this.offset(t,e,!1)}offset(t,e,n=!0){return F(e,t)}positionElements(t,e,n,r,s){return[H,$,q,U].reduce((t,e)=>e(t),function(t,e,n,r){const s=F(t,e);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=M(t,s,o);return o=P(o,s,t,e,r?r.allowedPositions:void 0),{options:r,instance:{target:t,host:e,arrow:null},offsets:{target:l,host:s,arrow:null},positionFixed:!1,placement:o,placementAuto:i}}(e,t,n,s))}};let z=(()=>{class t{constructor(t,e,n){this.update$$=new i.a,this.positionElements=new Map,this.isDisabled=!1,Object(s.o)(n)&&t.runOutsideAngular(()=>{this.triggerEvent$=Object(o.a)(Object(a.a)(window,"scroll",{passive:!0}),Object(a.a)(window,"resize",{passive:!0}),Object(l.a)(0,p),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(t=>{!function(t,e,n,r,s,i){const o=B.positionElements(t,e,n,r,s),a=function(t){return{width:t.offsets.target.width,height:t.offsets.target.height,left:Math.floor(t.offsets.target.left),top:Math.round(t.offsets.target.top),bottom:Math.round(t.offsets.target.bottom),right:Math.floor(t.offsets.target.right)}}(o);L(e,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${a.left}px, ${a.top}px, 0px)`},i),o.instance.arrow&&L(o.instance.arrow,o.offsets.arrow,i),function(t,e){const n=t.instance.target;let r=n.className;t.placementAuto&&(r=r.replace(/bs-popover-auto/g,"bs-popover-"+t.placement),r=r.replace(/bs-tooltip-auto/g,"bs-tooltip-"+t.placement),r=r.replace(/\sauto/g," "+t.placement),-1!==r.indexOf("popover")&&-1===r.indexOf("popover-auto")&&(r+=" popover-auto"),-1!==r.indexOf("tooltip")&&-1===r.indexOf("tooltip-auto")&&(r+=" tooltip-auto")),r=r.replace(/left|right|top|bottom/g,""+t.placement.split(" ")[0]),e?e.setAttribute(n,"class",r):n.className=r}(o,i)}(G(t.target),G(t.element),t.attachment,t.appendToBody,this.options,e.createRenderer(null,null))})})})}position(t){this.addPositionElement(t)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(t){this.positionElements.set(G(t.element),t)}calcPosition(){this.update$$.next()}deletePositionElement(t){this.positionElements.delete(G(t))}setOptions(t){this.options=t}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(r.z),r.Sb(r.E),r.Sb(r.B))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();function G(t){return"string"==typeof t?document.querySelector(t):t instanceof r.l?t.nativeElement:t}},XNiG:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return u}));var r=n("HDdC"),s=n("7o/Q"),i=n("quSY"),o=n("9ppp"),a=n("Ylt2"),l=n("2QA8");class c extends s.a{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;s<n;s++)r[s].next(t)}}error(t){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;s<n;s++)r[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new o.a;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let r=0;r<e;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new o.a;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new o.a;return this.hasError?(t.error(this.thrownError),i.a.EMPTY):this.isStopped?(t.complete(),i.a.EMPTY):(this.observers.push(t),new a.a(this,t))}asObservable(){const t=new r.a;return t.source=this,t}}return t.create=(t,e)=>new h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):i.a.EMPTY}}},XoHu:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},Ylt2:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("quSY");class s extends r.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},ZUHj:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("51Dv"),s=n("SeVD"),i=n("HDdC");function o(t,e,n,o,a=new r.a(t,n,o)){if(!a.closed)return e instanceof i.a?e.subscribe(a):Object(s.a)(e)(a)}},bHdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("5+tZ"),s=n("SpAZ");function i(t=Number.POSITIVE_INFINITY){return Object(r.a)(s.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("5+tZ");function s(t,e){return Object(r.a)(t,e,1)}},c2HN:function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},cp0P:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("HDdC"),s=n("DH7j"),i=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function l(...t){if(1===t.length){const e=t[0];if(Object(s.a)(e))return c(e,null);if(Object(o.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&Object(s.a)(t[0])?t[0]:t,null).pipe(Object(i.a)(t=>e(...t)))}return c(t,null)}function c(t,e){return new r.a(n=>{const r=t.length;if(0===r)return void n.complete();const s=new Array(r);let i=0,o=0;for(let l=0;l<r;l++){const c=Object(a.a)(t[l]);let u=!1;n.add(c.subscribe({next:t=>{u||(u=!0,o++),s[l]=t},error:t=>n.error(t),complete:()=>{i++,i!==r&&u||(o===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}},dZIy:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return m})),n.d(e,"c",(function(){return y})),n.d(e,"d",(function(){return g}));var r=n("fXoL"),s=n("pLZG"),i=n("3XJ7"),o=n("lUod"),a=n("R0Ic"),l=n("WyaX");const c=["*"];let u=(()=>{class t{constructor(){this.autoClose=!0,this.insideClick=!1,this.isAnimated=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),h=(()=>{class t{constructor(){this.direction="down",this.isOpenChange=new r.n,this.isDisabledChange=new r.n,this.toggleClick=new r.n,this.dropdownMenu=new Promise(t=>{this.resolveDropdownMenu=t})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();const d=[Object(a.g)({height:0,overflow:"hidden"}),Object(a.e)("220ms cubic-bezier(0, 0, 0.2, 1)",Object(a.g)({height:"*",overflow:"hidden"}))];let p=(()=>{class t{constructor(t,e,n,r,s){this._state=t,this.cd=e,this._renderer=n,this._element=r,this.isOpen=!1,this._factoryDropDownAnimation=s.build(d),this._subscription=t.isOpenChange.subscribe(t=>{this.isOpen=t;const e=this._element.nativeElement.querySelector(".dropdown-menu");this._renderer.addClass(this._element.nativeElement.querySelector("div"),"open"),e&&!Object(o.a)()&&(this._renderer.addClass(e,"show"),e.classList.contains("dropdown-menu-right")&&(this._renderer.setStyle(e,"left","auto"),this._renderer.setStyle(e,"right","0")),"up"===this.direction&&(this._renderer.setStyle(e,"top","auto"),this._renderer.setStyle(e,"transform","translateY(-101%)"))),e&&this._state.isAnimated&&this._factoryDropDownAnimation.create(e).play(),this.cd.markForCheck(),this.cd.detectChanges()})}get direction(){return this._state.direction}_contains(t){return this._element.nativeElement.contains(t)}ngOnDestroy(){this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(h),r.Jb(r.h),r.Jb(r.D),r.Jb(r.l),r.Jb(a.b))},t.\u0275cmp=r.Db({type:t,selectors:[["bs-dropdown-container"]],hostAttrs:[2,"display","block","position","absolute","z-index","1040"],ngContentSelectors:c,decls:2,vars:8,template:function(t,e){1&t&&(r.ec(),r.Ob(0,"div"),r.dc(1),r.Nb()),2&t&&r.Bb("dropup","up"===e.direction)("dropdown","down"===e.direction)("show",e.isOpen)("open",e.isOpen)},directives:function(){return[f]},encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{constructor(t,e,n,r,s,i,o){this._elementRef=t,this._renderer=e,this._viewContainerRef=n,this._cis=r,this._state=s,this._config=i,this._isInlineOpen=!1,this._subscriptions=[],this._isInited=!1,this._state.autoClose=this._config.autoClose,this._state.insideClick=this._config.insideClick,this._state.isAnimated=this._config.isAnimated,this._factoryDropDownAnimation=o.build(d),this._dropdown=this._cis.createLoader(this._elementRef,this._viewContainerRef,this._renderer).provide({provide:h,useValue:this._state}),this.onShown=this._dropdown.onShown,this.onHidden=this._dropdown.onHidden,this.isOpenChange=this._state.isOpenChange}set autoClose(t){this._state.autoClose=t}get autoClose(){return this._state.autoClose}set isAnimated(t){this._state.isAnimated=t}get isAnimated(){return this._state.isAnimated}set insideClick(t){this._state.insideClick=t}get insideClick(){return this._state.insideClick}set isDisabled(t){this._isDisabled=t,this._state.isDisabledChange.emit(t),t&&this.hide()}get isDisabled(){return this._isDisabled}get isOpen(){return this._showInline?this._isInlineOpen:this._dropdown.isShown}set isOpen(t){t?this.show():this.hide()}get isBs4(){return!Object(o.a)()}get _showInline(){return!this.container}ngOnInit(){this._isInited||(this._isInited=!0,this._dropdown.listen({outsideClick:!1,triggers:this.triggers,show:()=>this.show()}),this._subscriptions.push(this._state.toggleClick.subscribe(t=>this.toggle(t))),this._subscriptions.push(this._state.isDisabledChange.pipe(Object(s.a)(t=>t)).subscribe(t=>this.hide())))}show(){if(!this.isOpen&&!this.isDisabled)return this._showInline?(this._inlinedMenu||this._state.dropdownMenu.then(t=>{this._dropdown.attachInline(t.viewContainer,t.templateRef),this._inlinedMenu=this._dropdown._inlineViewRef,this.addBs4Polyfills(),this._renderer.addClass(this._inlinedMenu.rootNodes[0].parentNode,"open"),this.playAnimation()}).catch(),this.addBs4Polyfills(),this._isInlineOpen=!0,this.onShown.emit(!0),this._state.isOpenChange.emit(!0),void this.playAnimation()):void this._state.dropdownMenu.then(t=>{const e=this.dropup||void 0!==this.dropup&&this.dropup;this._state.direction=e?"up":"down";const n=this.placement||(e?"top start":"bottom start");this._dropdown.attach(p).to(this.container).position({attachment:n}).show({content:t.templateRef,placement:n}),this._state.isOpenChange.emit(!0)}).catch()}hide(){this.isOpen&&(this._showInline?(this.removeShowClass(),this.removeDropupStyles(),this._isInlineOpen=!1,this.onHidden.emit(!0)):this._dropdown.hide(),this._state.isOpenChange.emit(!1))}toggle(t){return this.isOpen||!t?this.hide():this.show()}_contains(t){return this._elementRef.nativeElement.contains(t.target)||this._dropdown.instance&&this._dropdown.instance._contains(t.target)}ngOnDestroy(){for(const t of this._subscriptions)t.unsubscribe();this._dropdown.dispose()}addBs4Polyfills(){Object(o.a)()||(this.addShowClass(),this.checkRightAlignment(),this.addDropupStyles())}playAnimation(){this._state.isAnimated&&this._inlinedMenu&&this._factoryDropDownAnimation.create(this._inlinedMenu.rootNodes[0]).play()}addShowClass(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.addClass(this._inlinedMenu.rootNodes[0],"show")}removeShowClass(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.removeClass(this._inlinedMenu.rootNodes[0],"show")}checkRightAlignment(){if(this._inlinedMenu&&this._inlinedMenu.rootNodes[0]){const t=this._inlinedMenu.rootNodes[0].classList.contains("dropdown-menu-right");this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"left",t?"auto":"0"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"right",t?"0":"auto")}}addDropupStyles(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"top",this.dropup?"auto":"100%"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"transform",this.dropup?"translateY(-101%)":"translateY(0)"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"bottom","auto"))}removeDropupStyles(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"top"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"transform"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"bottom"))}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.l),r.Jb(r.D),r.Jb(r.O),r.Jb(i.a),r.Jb(h),r.Jb(u),r.Jb(a.b))},t.\u0275dir=r.Eb({type:t,selectors:[["","bsDropdown",""],["","dropdown",""]],hostVars:6,hostBindings:function(t,e){2&t&&r.Bb("dropup",e.dropup)("open",e.isOpen)("show",e.isOpen&&e.isBs4)},inputs:{autoClose:"autoClose",isAnimated:"isAnimated",insideClick:"insideClick",isDisabled:"isDisabled",isOpen:"isOpen",placement:"placement",triggers:"triggers",container:"container",dropup:"dropup"},outputs:{onShown:"onShown",onHidden:"onHidden",isOpenChange:"isOpenChange"},exportAs:["bs-dropdown"],features:[r.wb([h])]}),t})(),m=(()=>{class t{constructor(t,e,n){t.resolveDropdownMenu({templateRef:n,viewContainer:e})}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(h),r.Jb(r.O),r.Jb(r.K))},t.\u0275dir=r.Eb({type:t,selectors:[["","bsDropdownMenu",""],["","dropdownMenu",""]],exportAs:["bs-dropdown-menu"]}),t})(),g=(()=>{class t{constructor(t,e,n,r,s){this._changeDetectorRef=t,this._dropdown=e,this._element=n,this._renderer=r,this._state=s,this.isDisabled=null,this._subscriptions=[],this._subscriptions.push(this._state.isOpenChange.subscribe(t=>{this.isOpen=t,t?(this._documentClickListener=this._renderer.listen("document","click",t=>{!this._state.autoClose||2===t.button||this._element.nativeElement.contains(t.target)||this._state.insideClick&&this._dropdown._contains(t)||(this._state.toggleClick.emit(!1),this._changeDetectorRef.detectChanges())}),this._escKeyUpListener=this._renderer.listen(this._element.nativeElement,"keyup.esc",()=>{this._state.autoClose&&(this._state.toggleClick.emit(!1),this._changeDetectorRef.detectChanges())})):(this._documentClickListener(),this._escKeyUpListener())})),this._subscriptions.push(this._state.isDisabledChange.subscribe(t=>this.isDisabled=t||null))}onClick(){this.isDisabled||this._state.toggleClick.emit(!0)}ngOnDestroy(){this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener();for(const t of this._subscriptions)t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.h),r.Jb(f),r.Jb(r.l),r.Jb(r.D),r.Jb(h))},t.\u0275dir=r.Eb({type:t,selectors:[["","bsDropdownToggle",""],["","dropdownToggle",""]],hostVars:3,hostBindings:function(t,e){1&t&&r.Vb("click",(function(){return e.onClick()})),2&t&&r.yb("aria-haspopup",!0)("disabled",e.isDisabled)("aria-expanded",e.isOpen)},exportAs:["bs-dropdown-toggle"]}),t})(),y=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[i.a,l.a,h,{provide:u,useValue:e||{autoClose:!0,insideClick:!1}}]}}}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)}}),t})()},dlKe:function(t,e,n){"use strict";n.d(e,"a",(function(){return A})),n.d(e,"b",(function(){return j}));var r=n("fXoL"),s=n("LRne"),i=n("xgIS"),o=n("5+tZ"),a=n("lJxs"),l=n("vkgz"),c=n("pLZG"),u=n("7o/Q"),h=n("D0XW");class d{constructor(t,e){this.period=t,this.scheduler=e}call(t,e){return e.subscribe(new p(t,this.period,this.scheduler))}}class p extends u.a{constructor(t,e,n){super(t),this.period=e,this.scheduler=n,this.hasValue=!1,this.add(n.schedule(f,e,{subscriber:this,period:e}))}_next(t){this.lastValue=t,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function f(t){let{subscriber:e,period:n}=t;e.notifyNext(),this.schedule(t,n)}function m(t,e,n,r){const s=window&&!!window.document&&window.document.documentElement;let i=s&&e?window:n;if(t&&(i=t&&s&&"string"==typeof t?function(t,e,n){return(n?window.document:e).querySelector(t)}(t,n.nativeElement,r):t,!i))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return i}function g(t){return t&&!t.firstChange}const y={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},_={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class b{constructor(t=!0){this.vertical=t,this.propsMap=t?y:_}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function v(t){return["Window","global"].some(e=>Object.prototype.toString.call(t).includes(e))}function w(t,e){return t?e.document.documentElement:null}function S(t,e){const n=function({container:t,isWindow:e,axis:n}){const{offsetHeightKey:r,clientHeightKey:s}=C(n);return E(t,e,r,s)}(e);return e.isWindow?function(t,e,n){const{axis:r,container:s,isWindow:i}=n,{offsetHeightKey:o,clientHeightKey:a}=C(r),l=t+O(w(i,s),r,i),c=E(e.nativeElement,i,o,a);return{height:t,scrolled:l,totalToScroll:function(t,e,n){const r=e.topKey();if(t.getBoundingClientRect)return t.getBoundingClientRect()[r]+O(t,e,n)}(e.nativeElement,r,i)+c,isWindow:i}}(n,t,e):function(t,e,n){const{axis:r,container:s}=n;return{height:t,scrolled:s[r.scrollTopKey()],totalToScroll:s[r.scrollHeightKey()],isWindow:!1}}(n,0,e)}function C(t){return{offsetHeightKey:t.offsetHeightKey(),clientHeightKey:t.clientHeightKey()}}function E(t,e,n,r){if(isNaN(t[n])){const n=w(e,t);return n?n[r]:0}return t[n]}function O(t,e,n){const r=e.pageYOffsetKey(),s=e.scrollTopKey(),i=e.offsetTopKey();return isNaN(window.pageYOffset)?w(n,t)[s]:t.ownerDocument?t.ownerDocument.defaultView[r]:t[i]}function T(t,e,n){let r,s;if(t.totalToScroll<=0)return!1;const i=t.isWindow?t.scrolled:t.height+t.scrolled;return n?(r=(t.totalToScroll-i)/t.totalToScroll,s=e.down/10):(r=t.scrolled/(t.scrolled+(t.totalToScroll-i)),s=e.up/10),r<=s}class x{constructor({totalToScroll:t}){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=t}updateScrollPosition(t){return this.lastScrollPosition=t}updateTotalToScroll(t){this.lastTotalToScroll!==t&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=t)}updateScroll(t,e){this.updateScrollPosition(t),this.updateTotalToScroll(e)}updateTriggeredFlag(t,e){e?this.triggered.down=t:this.triggered.up=t}isTriggeredScroll(t,e){return e?this.triggered.down===t:this.triggered.up===t}}function k(t){const{scrollDown:e,stats:{scrolled:n}}=t;return{type:e?"[NGX_ISE] DOWN":"[NGX_ISE] UP",payload:{currentScrollPosition:n}}}let A=(()=>{class t{constructor(t,e){this.element=t,this.zone=e,this.scrolled=new r.n,this.scrolledUp=new r.n,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:t,infiniteScrollDisabled:e,infiniteScrollDistance:n}){const r=g(t),s=g(e),i=g(n),o=!s&&!this.infiniteScrollDisabled||s&&!e.currentValue||i;(r||s||i)&&(this.destroyScroller(),o&&this.setup())}setup(){"undefined"!=typeof window&&this.zone.runOutsideAngular(()=>{this.disposeScroller=function(t){const{scrollContainer:e,scrollWindow:n,element:r,fromRoot:u}=t,p=function({windowElement:t,axis:e}){return function(t,e){const n=t.isWindow||e&&!e.nativeElement?e:e.nativeElement;return Object.assign(Object.assign({},t),{container:n})}({axis:e,isWindow:v(t)},t)}({axis:new b(!t.horizontal),windowElement:m(e,n,r,u)}),f=new x({totalToScroll:S(r,p)}),g={up:t.upDistance,down:t.downDistance};return function(t){let e=Object(i.a)(t.container,"scroll");return t.throttle&&(e=e.pipe(function(t,e=h.a){return n=>n.lift(new d(t,e))}(t.throttle))),e}({container:p.container,throttle:t.throttle}).pipe(Object(o.a)(()=>Object(s.a)(S(r,p))),Object(a.a)(t=>function(t,e,n){const{scrollDown:r,fire:s}=function(t,e,n){const r=function(t,e){return t<e.scrolled}(t,e);return{fire:T(e,n,r),scrollDown:r}}(t,e,n);return{scrollDown:r,fire:s,stats:e}}(f.lastScrollPosition,t,g)),Object(l.a)(({stats:t})=>f.updateScroll(t.scrolled,t.totalToScroll)),Object(c.a)(({fire:e,scrollDown:n,stats:{totalToScroll:r}})=>function(t,e,n){return!(!t||!e)||!(n||!e)}(t.alwaysCallback,e,f.isTriggeredScroll(r,n))),Object(l.a)(({scrollDown:t,stats:{totalToScroll:e}})=>{f.updateTriggeredFlag(e,t)}),Object(a.a)(k))}({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollContainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(t=>this.zone.run(()=>this.handleOnScroll(t)))})}handleOnScroll({type:t,payload:e}){switch(t){case"[NGX_ISE] DOWN":return this.scrolled.emit(e);case"[NGX_ISE] UP":return this.scrolledUp.emit(e);default:return}}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.l),r.Jb(r.z))},t.\u0275dir=r.Eb({type:t,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[r.vb]}),t})(),j=(()=>{class t{}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},providers:[],imports:[[]]}),t})()},fXoL:function(t,e,n){"use strict";n.d(e,"a",(function(){return ji})),n.d(e,"b",(function(){return Vl})),n.d(e,"c",(function(){return Il})),n.d(e,"d",(function(){return Rl})),n.d(e,"e",(function(){return Nl})),n.d(e,"f",(function(){return kc})),n.d(e,"g",(function(){return _c})),n.d(e,"h",(function(){return di})),n.d(e,"i",(function(){return Kl})),n.d(e,"j",(function(){return aa})),n.d(e,"k",(function(){return Hl})),n.d(e,"l",(function(){return la})),n.d(e,"m",(function(){return kn})),n.d(e,"n",(function(){return fl})),n.d(e,"o",(function(){return Y})),n.d(e,"p",(function(){return y})),n.d(e,"q",(function(){return X})),n.d(e,"r",(function(){return Ai})),n.d(e,"s",(function(){return xa})),n.d(e,"t",(function(){return ka})),n.d(e,"u",(function(){return Ul})),n.d(e,"v",(function(){return pt})),n.d(e,"w",(function(){return vc})),n.d(e,"x",(function(){return dt})),n.d(e,"y",(function(){return pc})),n.d(e,"z",(function(){return Xl})),n.d(e,"A",(function(){return _})),n.d(e,"B",(function(){return Ml})),n.d(e,"C",(function(){return Fl})),n.d(e,"D",(function(){return da})),n.d(e,"E",(function(){return ua})),n.d(e,"F",(function(){return ha})),n.d(e,"G",(function(){return fa})),n.d(e,"H",(function(){return gr})),n.d(e,"I",(function(){return v})),n.d(e,"J",(function(){return Cc})),n.d(e,"K",(function(){return Na})),n.d(e,"L",(function(){return oc})),n.d(e,"M",(function(){return fi})),n.d(e,"N",(function(){return ma})),n.d(e,"O",(function(){return Pa})),n.d(e,"P",(function(){return St})),n.d(e,"Q",(function(){return fc})),n.d(e,"R",(function(){return Gn})),n.d(e,"S",(function(){return M})),n.d(e,"T",(function(){return zn})),n.d(e,"U",(function(){return Tc})),n.d(e,"V",(function(){return cc})),n.d(e,"W",(function(){return Ll})),n.d(e,"X",(function(){return mi})),n.d(e,"Y",(function(){return Qa})),n.d(e,"Z",(function(){return fr})),n.d(e,"ab",(function(){return Zn})),n.d(e,"bb",(function(){return Fn})),n.d(e,"cb",(function(){return Vn})),n.d(e,"db",(function(){return qn})),n.d(e,"eb",(function(){return Un})),n.d(e,"fb",(function(){return Ln})),n.d(e,"gb",(function(){return Hn})),n.d(e,"hb",(function(){return Ga})),n.d(e,"ib",(function(){return Oc})),n.d(e,"jb",(function(){return Wa})),n.d(e,"kb",(function(){return Ja})),n.d(e,"lb",(function(){return Mn})),n.d(e,"mb",(function(){return B})),n.d(e,"nb",(function(){return Di})),n.d(e,"ob",(function(){return ro})),n.d(e,"pb",(function(){return no})),n.d(e,"qb",(function(){return za})),n.d(e,"rb",(function(){return Gt})),n.d(e,"sb",(function(){return P})),n.d(e,"tb",(function(){return Dn})),n.d(e,"ub",(function(){return qo})),n.d(e,"vb",(function(){return Jo})),n.d(e,"wb",(function(){return sa})),n.d(e,"xb",(function(){return Lr})),n.d(e,"yb",(function(){return Hi})),n.d(e,"zb",(function(){return Co})),n.d(e,"Ab",(function(){return Lo})),n.d(e,"Bb",(function(){return So})),n.d(e,"Cb",(function(){return Tl})),n.d(e,"Db",(function(){return Tt})),n.d(e,"Eb",(function(){return It})),n.d(e,"Fb",(function(){return E})),n.d(e,"Gb",(function(){return O})),n.d(e,"Hb",(function(){return jt})),n.d(e,"Ib",(function(){return Pt})),n.d(e,"Jb",(function(){return Gi})),n.d(e,"Kb",(function(){return Xi})),n.d(e,"Lb",(function(){return to})),n.d(e,"Mb",(function(){return Yi})),n.d(e,"Nb",(function(){return Zi})),n.d(e,"Ob",(function(){return Qi})),n.d(e,"Pb",(function(){return eo})),n.d(e,"Qb",(function(){return En})),n.d(e,"Rb",(function(){return Uo})),n.d(e,"Sb",(function(){return lt})),n.d(e,"Tb",(function(){return Wi})),n.d(e,"Ub",(function(){return jl})),n.d(e,"Vb",(function(){return so})),n.d(e,"Wb",(function(){return xl})),n.d(e,"Xb",(function(){return Ve})),n.d(e,"Yb",(function(){return Me})),n.d(e,"Zb",(function(){return ao})),n.d(e,"ac",(function(){return cl})),n.d(e,"bc",(function(){return ul})),n.d(e,"cc",(function(){return hl})),n.d(e,"dc",(function(){return uo})),n.d(e,"ec",(function(){return co})),n.d(e,"fc",(function(){return Ji})),n.d(e,"gc",(function(){return ho})),n.d(e,"hc",(function(){return po})),n.d(e,"ic",(function(){return fo})),n.d(e,"jc",(function(){return nl})),n.d(e,"kc",(function(){return rl})),n.d(e,"lc",(function(){return sl})),n.d(e,"mc",(function(){return il})),n.d(e,"nc",(function(){return Ol})),n.d(e,"oc",(function(){return zi})),n.d(e,"pc",(function(){return sn})),n.d(e,"qc",(function(){return de})),n.d(e,"rc",(function(){return yr})),n.d(e,"sc",(function(){return _r})),n.d(e,"tc",(function(){return Rt})),n.d(e,"uc",(function(){return Bi})),n.d(e,"vc",(function(){return Al})),n.d(e,"wc",(function(){return Po})),n.d(e,"xc",(function(){return Do})),n.d(e,"yc",(function(){return Fo})),n.d(e,"zc",(function(){return Mo})),n.d(e,"Ac",(function(){return Vo}));var r=n("XNiG"),s=n("quSY"),i=n("HDdC"),o=n("VRyK"),a=n("7o/Q");function l(){return function(t){return t.lift(new c(t))}}class c{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new u(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class u extends a.a{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class h extends i.a{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new s.a,t.add(this.source.subscribe(new p(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t}refCount(){return l()(this)}}const d=(()=>{const t=h.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class p extends r.b{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function f(){return new r.a}function m(t){return{toString:t}.toString()}function g(t,e,n){return m(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const y=g("Inject",t=>({token:t})),_=g("Optional"),b=g("Self"),v=g("SkipSelf");var w=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function S(t){for(let e in t)if(t[e]===S)return e;throw Error("Could not find renamed property on target object.")}function C(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function E(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function O(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function T(t){return x(t,t[A])||x(t,t[N])}function x(t,e){return e&&e.token===t?e:null}function k(t){return t&&(t.hasOwnProperty(j)||t.hasOwnProperty(I))?t[j]:null}const A=S({"\u0275prov":S}),j=S({"\u0275inj":S}),R=S({"\u0275provFallback":S}),N=S({ngInjectableDef:S}),I=S({ngInjectorDef:S});function P(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(P).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function D(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const F=S({__forward_ref__:S});function M(t){return t.__forward_ref__=M,t.toString=function(){return P(this())},t}function V(t){return L(t)?t():t}function L(t){return"function"==typeof t&&t.hasOwnProperty(F)&&t.__forward_ref__===M}const U="undefined"!=typeof globalThis&&globalThis,H="undefined"!=typeof window&&window,q="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,$="undefined"!=typeof global&&global,B=U||$||H||q,z=S({"\u0275cmp":S}),G=S({"\u0275dir":S}),W=S({"\u0275pipe":S}),J=S({"\u0275mod":S}),K=S({"\u0275loc":S}),Q=S({"\u0275fac":S}),Z=S({__NG_ELEMENT_ID__:S});class X{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=E({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Y=new X("INJECTOR",-1),tt={},et=/\n/gm,nt=S({provide:String,useValue:S});let rt,st=void 0;function it(t){const e=st;return st=t,e}function ot(t){const e=rt;return rt=t,e}function at(t,e=w.Default){if(void 0===st)throw new Error("inject() must be called from an injection context");return null===st?ct(t,void 0,e):st.get(t,e&w.Optional?null:void 0,e)}function lt(t,e=w.Default){return(rt||at)(V(t),e)}function ct(t,e,n){const r=T(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&w.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${P(t)}]`)}function ut(t){const e=[];for(let n=0;n<t.length;n++){const r=V(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=w.Default;for(let e=0;e<r.length;e++){const s=r[e];s instanceof _||"Optional"===s.ngMetadataName||s===_?n|=w.Optional:s instanceof v||"SkipSelf"===s.ngMetadataName||s===v?n|=w.SkipSelf:s instanceof b||"Self"===s.ngMetadataName||s===b?n|=w.Self:t=s instanceof y||s===y?s.token:s}e.push(lt(t,n))}else e.push(lt(r))}return e}class ht{get(t,e=tt){if(e===tt){const e=new Error(`NullInjectorError: No provider for ${P(t)}!`);throw e.name="NullInjectorError",e}return e}}class dt{}class pt{}function ft(t,e){t.forEach(t=>Array.isArray(t)?ft(t,e):e(t))}function mt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function gt(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function yt(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}function _t(t,e,n){let r=vt(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let s=t.length;if(s==e)t.push(n,r);else if(1===s)t.push(r,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function bt(t,e){const n=vt(t,e);if(n>=0)return t[1|n]}function vt(t,e){return function(t,e,n){let r=0,s=t.length>>1;for(;s!==r;){const n=r+(s-r>>1),i=t[n<<1];if(e===i)return n<<1;i>e?s=n:r=n+1}return~(s<<1)}(t,e)}var wt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),St=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Ct={},Et=[];let Ot=0;function Tt(t){return m(()=>{const e=t.type,n=e.prototype,r={},s={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===wt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Et,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||St.Emulated,id:"c",styles:t.styles||Et,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,o=t.features,a=t.pipes;return s.id+=Ot++,s.inputs=Nt(t.inputs,r),s.outputs=Nt(t.outputs),o&&o.forEach(t=>t(s)),s.directiveDefs=i?()=>("function"==typeof i?i():i).map(xt):null,s.pipeDefs=a?()=>("function"==typeof a?a():a).map(kt):null,s})}function xt(t){return Dt(t)||function(t){return t[G]||null}(t)}function kt(t){return function(t){return t[W]||null}(t)}const At={};function jt(t){const e={type:t.type,bootstrap:t.bootstrap||Et,declarations:t.declarations||Et,imports:t.imports||Et,exports:t.exports||Et,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&m(()=>{At[t.id]=t.type}),e}function Rt(t,e){return m(()=>{const n=Mt(t,!0);n.declarations=e.declarations||Et,n.imports=e.imports||Et,n.exports=e.exports||Et})}function Nt(t,e){if(null==t)return Ct;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,e&&(e[s]=i)}return n}const It=Tt;function Pt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Dt(t){return t[z]||null}function Ft(t,e){return t.hasOwnProperty(Q)?t[Q]:null}function Mt(t,e){const n=t[J]||null;if(!n&&!0===e)throw new Error(`Type ${P(t)} does not have '\u0275mod' property.`);return n}function Vt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Lt(t){return Array.isArray(t)&&!0===t[1]}function Ut(t){return 0!=(8&t.flags)}function Ht(t){return 2==(2&t.flags)}function qt(t){return 1==(1&t.flags)}function $t(t){return null!==t.template}function Bt(t){return 0!=(512&t[2])}let zt=void 0;function Gt(t){zt=t}function Wt(){return void 0!==zt?zt:"undefined"!=typeof document?document:void 0}function Jt(t){return!!t.listen}const Kt={createRenderer:(t,e)=>Wt()};function Qt(t){for(;Array.isArray(t);)t=t[0];return t}function Zt(t,e){return Qt(e[t+20])}function Xt(t,e){return Qt(e[t.index])}function Yt(t,e){return t.data[e+20]}function te(t,e){return t[e+20]}function ee(t,e){const n=e[t];return Vt(n)?n:n[0]}function ne(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function re(t){return 4==(4&t[2])}function se(t){return 128==(128&t[2])}function ie(t,e){return null===t||null==e?null:t[e]}function oe(t){t[18]=0}function ae(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const le={lFrame:je(null),bindingsEnabled:!0,checkNoChangesMode:!1};function ce(){return le.bindingsEnabled}function ue(){return le.lFrame.lView}function he(){return le.lFrame.tView}function de(t){le.lFrame.contextLView=t}function pe(){return le.lFrame.previousOrParentTNode}function fe(t,e){le.lFrame.previousOrParentTNode=t,le.lFrame.isParent=e}function me(){return le.lFrame.isParent}function ge(){le.lFrame.isParent=!1}function ye(){return le.checkNoChangesMode}function _e(t){le.checkNoChangesMode=t}function be(){const t=le.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ve(){return le.lFrame.bindingIndex}function we(){return le.lFrame.bindingIndex++}function Se(t){const e=le.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Ce(t,e){const n=le.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ee(e)}function Ee(t){le.lFrame.currentDirectiveIndex=t}function Oe(){return le.lFrame.currentQueryIndex}function Te(t){le.lFrame.currentQueryIndex=t}function xe(t,e){const n=Ae();le.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function ke(t,e){const n=Ae(),r=t[1];le.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function Ae(){const t=le.lFrame,e=null===t?null:t.child;return null===e?je(t):e}function je(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Re(){const t=le.lFrame;return le.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const Ne=Re;function Ie(){const t=Re();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Pe(){return le.lFrame.selectedIndex}function De(t){le.lFrame.selectedIndex=t}function Fe(){const t=le.lFrame;return Yt(t.tView,t.selectedIndex)}function Me(){le.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Ve(){le.lFrame.currentNamespace=null}function Le(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const e=t.data[n];e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-n,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,e.afterContentChecked)),e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-n,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,e.afterViewChecked)),null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)}}function Ue(t,e,n){$e(t,e,3,n)}function He(t,e,n,r){(3&t[2])===n&&$e(t,e,n,r)}function qe(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function $e(t,e,n,r){const s=null!=r?r:-1;let i=0;for(let o=void 0!==r?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(i=e[o],null!=r&&i>=r)break}else e[o]<0&&(t[18]+=65536),(i<s||-1==s)&&(Be(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Be(t,e,n,r){const s=n[r]<0,i=n[r+1],o=t[s?-n[r]:n[r]];s?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,i.call(o)):i.call(o)}class ze{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ge(t,e,n){const r=Jt(t);let s=0;for(;s<n.length;){const i=n[s];if("number"==typeof i){if(0!==i)break;s++;const o=n[s++],a=n[s++],l=n[s++];r?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=i,a=n[++s];Je(o)?r&&t.setProperty(e,o,a):r?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function We(t){return 3===t||4===t||6===t}function Je(t){return 64===t.charCodeAt(0)}function Ke(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const s=e[r];"number"==typeof s?n=s:0===n||Qe(t,n,s,null,-1===n||2===n?e[++r]:null)}}return t}function Qe(t,e,n,r,s){let i=0,o=t.length;if(-1===e)o=-1;else for(;i<t.length;){const n=t[i++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=i-1;break}}}for(;i<t.length;){const e=t[i];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==s&&(t[i+1]=s));if(r===t[i+1])return void(t[i+2]=s)}i++,null!==r&&i++,null!==s&&i++}-1!==o&&(t.splice(o,0,e),i=o+1),t.splice(i++,0,n),null!==r&&t.splice(i++,0,r),null!==s&&t.splice(i++,0,s)}function Ze(t){return-1!==t}function Xe(t){return 32767&t}function Ye(t){return t>>16}function tn(t,e){let n=Ye(t),r=e;for(;n>0;)r=r[15],n--;return r}function en(t){return"string"==typeof t?t:null==t?"":""+t}function nn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():en(t)}const rn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B))();function sn(t){return{name:"window",target:t.ownerDocument.defaultView}}function on(t){return t instanceof Function?t():t}let an=!0;function ln(t){const e=an;return an=t,e}let cn=0;function un(t,e){const n=dn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,hn(r.data,t),hn(e,null),hn(r.blueprint,null));const s=pn(t,e),i=t.injectorIndex;if(Ze(s)){const t=Xe(s),n=tn(s,e),r=n[1].data;for(let s=0;s<8;s++)e[i+s]=n[t+s]|r[t+s]}return e[i+8]=s,i}function hn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function dn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function pn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],r=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function fn(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Z)&&(r=n[Z]),null==r&&(r=n[Z]=cn++);const s=255&r,i=1<<s,o=64&s,a=32&s,l=e.data;128&s?o?a?l[t+7]|=i:l[t+6]|=i:a?l[t+5]|=i:l[t+4]|=i:o?a?l[t+3]|=i:l[t+2]|=i:a?l[t+1]|=i:l[t]|=i}(t,e,n)}function mn(t,e,n,r=w.Default,s){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Z)?t[Z]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof s){xe(e,t);try{const t=s();if(null!=t||r&w.Optional)return t;throw new Error(`No provider for ${nn(n)}!`)}finally{Ne()}}else if("number"==typeof s){if(-1===s)return new Sn(t,e);let i=null,o=dn(t,e),a=-1,l=r&w.Host?e[16][6]:null;for((-1===o||r&w.SkipSelf)&&(a=-1===o?pn(t,e):e[o+8],wn(r,!1)?(i=e[1],o=Xe(a),e=tn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(vn(s,o,t.data)){const t=yn(o,e,n,i,r,l);if(t!==gn)return t}wn(r,e[1].data[o+8]===l)&&vn(s,o,e)?(i=t,o=Xe(a),e=tn(a,e)):o=-1}}}if(r&w.Optional&&void 0===s&&(s=null),0==(r&(w.Self|w.Host))){const t=e[9],i=ot(void 0);try{return t?t.get(n,s,r&w.Optional):ct(n,s,r&w.Optional)}finally{ot(i)}}if(r&w.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${nn(n)}]`)}const gn={};function yn(t,e,n,r,s,i){const o=e[1],a=o.data[t+8],l=_n(a,o,n,null==r?Ht(a)&&an:r!=o&&3===a.type,s&w.Host&&i===a);return null!==l?bn(e,o,l,a):gn}function _n(t,e,n,r,s){const i=t.providerIndexes,o=e.data,a=65535&i,l=t.directiveStart,c=i>>16,u=s?a+c:t.directiveEnd;for(let h=r?a:a+c;h<u;h++){const t=o[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(s){const t=o[l];if(t&&$t(t)&&t.type===n)return l}return null}function bn(t,e,n,r){let s=t[n];const i=e.data;if(s instanceof ze){const o=s;if(o.resolving)throw new Error("Circular dep for "+nn(i[n]));const a=ln(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=ot(o.injectImpl)),xe(t,r);try{s=t[n]=o.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{onChanges:r,onInit:s,doCheck:i}=e;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)),s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{o.injectImpl&&ot(l),ln(a),o.resolving=!1,Ne()}}return s}function vn(t,e,n){const r=64&t,s=32&t;let i;return i=128&t?r?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:r?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(i&1<<t)}function wn(t,e){return!(t&w.Self||t&w.Host&&e)}class Sn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return mn(this._tNode,this._lView,t,void 0,e)}}function Cn(t){const e=t;if(L(t))return()=>{const t=Cn(V(e));return t?t():null};let n=Ft(e);if(null===n){const t=k(e);n=t&&t.factory}return n||null}function En(t){return m(()=>{const e=t.prototype.constructor,n=e[Q]||Cn(e),r=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==r;){const t=s[Q]||Cn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function On(t){return t.ngDebugContext}function Tn(t){return t.ngOriginalError}function xn(t,...e){t.error(...e)}class kn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||xn}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?On(t)?On(t):this._findContext(Tn(t)):null}_findOriginalError(t){let e=Tn(t);for(;e&&Tn(e);)e=Tn(e);return e}}class An{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class jn extends An{getTypeName(){return"HTML"}}class Rn extends An{getTypeName(){return"Style"}}class Nn extends An{getTypeName(){return"Script"}}class In extends An{getTypeName(){return"URL"}}class Pn extends An{getTypeName(){return"ResourceURL"}}function Dn(t){return t instanceof An?t.changingThisBreaksApplicationSecurity:t}function Fn(t,e){const n=Mn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Mn(t){return t instanceof An&&t.getTypeName()||null}function Vn(t){return new jn(t)}function Ln(t){return new Rn(t)}function Un(t){return new Nn(t)}function Hn(t){return new In(t)}function qn(t){return new Pn(t)}let $n=!0,Bn=!1;function zn(){return Bn=!0,$n}function Gn(){if(Bn)throw new Error("Cannot enable prod mode after platform setup.");$n=!1}class Wn{getInertBodyElement(t){t="<body><remove></remove>"+t+"</body>";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Jn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const n=e.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Kn=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Qn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Zn(t){return(t=String(t)).match(Kn)||t.match(Qn)?t:(zn()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Xn(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Yn(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const tr=Xn("area,br,col,hr,img,wbr"),er=Xn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),nr=Xn("rp,rt"),rr=Yn(nr,er),sr=Yn(tr,Yn(er,Xn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Yn(nr,Xn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),rr),ir=Xn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),or=Xn("srcset"),ar=Yn(ir,or,Xn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Xn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),lr=Xn("script,style,template");class cr{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!sr.hasOwnProperty(e))return this.sanitizedSomething=!0,!lr.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let s=0;s<n.length;s++){const t=n.item(s),e=t.name,i=e.toLowerCase();if(!ar.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=t.value;ir[i]&&(o=Zn(o)),or[i]&&(r=o,o=(r=String(r)).split(",").map(t=>Zn(t.trim())).join(", ")),this.buf.push(" ",e,'="',dr(o),'"')}var r;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();sr.hasOwnProperty(e)&&!tr.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(dr(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const ur=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hr=/([^\#-~ |!])/g;function dr(t){return t.replace(/&/g,"&amp;").replace(ur,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(hr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let pr;function fr(t,e){let n=null;try{pr=pr||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Wn:new Jn(t)}(t);let r=e?String(e):"";n=pr.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=pr.getInertBodyElement(r)}while(r!==i);const o=new cr,a=o.sanitizeChildren(mr(n)||n);return zn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=mr(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function mr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var gr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function yr(t){const e=br();return e?e.sanitize(gr.HTML,t)||"":Fn(t,"HTML")?Dn(t):fr(Wt(),en(t))}function _r(t){const e=br();return e?e.sanitize(gr.URL,t)||"":Fn(t,"URL")?Dn(t):Zn(en(t))}function br(){const t=ue();return t&&t[12]}function vr(t,e){t.__ngContext__=e}function wr(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function Sr(){throw new Error("Cannot mix multi providers and regular providers")}function Cr(t,e,n){let r=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===r||t.charCodeAt(s+n)<=32)return s}n=s+1}}function Er(t,e,n){let r=0;for(;r<t.length;){let s=t[r++];if(n&&"class"===s){if(s=t[r],-1!==Cr(s.toLowerCase(),e,0))return!0}else if(1===s){for(;r<t.length&&"string"==typeof(s=t[r++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function Or(t){return 0===t.type&&"ng-template"!==t.tagName}function Tr(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function xr(t,e,n){let r=4;const s=t.attrs||[],i=function(t){for(let e=0;e<t.length;e++)if(We(t[e]))return e;return t.length}(s);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!Tr(t,l,n)||""===l&&1===e.length){if(kr(r))return!1;o=!0}}else{const c=8&r?l:e[++a];if(8&r&&null!==t.attrs){if(!Er(t.attrs,c,n)){if(kr(r))return!1;o=!0}continue}const u=Ar(8&r?"class":l,s,Or(t),n);if(-1===u){if(kr(r))return!1;o=!0;continue}if(""!==c){let t;t=u>i?"":s[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==Cr(e,c,0)||2&r&&c!==t){if(kr(r))return!1;o=!0}}}}else{if(!o&&!kr(r)&&!kr(l))return!1;if(o&&kr(l))continue;o=!1,r=l|1&r}}return kr(r)||o}function kr(t){return 0==(1&t)}function Ar(t,e,n,r){if(null===e)return-1;let s=0;if(r||!n){let n=!1;for(;s<e.length;){const r=e[s];if(r===t)return s;if(3===r||6===r)n=!0;else{if(1===r||2===r){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===r)break;if(0===r){s+=4;continue}}s+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function jr(t,e,n=!1){for(let r=0;r<e.length;r++)if(xr(t,e[r],n))return!0;return!1}function Rr(t,e){t:for(let n=0;n<e.length;n++){const r=e[n];if(t.length===r.length){for(let e=0;e<t.length;e++)if(t[e]!==r[e])continue t;return!0}}return!1}function Nr(t,e){return t?":not("+e.trim()+")":e}function Ir(t){let e=t[0],n=1,r=2,s="",i=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&r){const e=t[++n];s+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""===s||kr(o)||(e+=Nr(i,s),s=""),r=o,i=i||!kr(r);n++}return""!==s&&(e+=Nr(i,s)),e}const Pr={};function Dr(t){const e=t[3];return Lt(e)?e[3]:e}function Fr(t){return Vr(t[13])}function Mr(t){return Vr(t[4])}function Vr(t){for(;null!==t&&!Lt(t);)t=t[4];return t}function Lr(t){Ur(he(),ue(),Pe()+t,ye())}function Ur(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&Ue(e,r,n)}else{const r=t.preOrderHooks;null!==r&&He(e,r,0,n)}De(n)}function Hr(t,e){return t<<17|e<<2}function qr(t){return t>>17&32767}function $r(t){return 2|t}function Br(t){return(131068&t)>>2}function zr(t,e){return-131069&t|e<<2}function Gr(t){return 1|t}function Wr(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const s=n[r],i=n[r+1];if(-1!==i){const n=t.data[i];Te(s),n.contentQueries(2,e[i],i)}}}function Jr(t,e,n){return Jt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Kr(t,e,n,r,s,i,o,a,l,c){const u=e.blueprint.slice();return u[0]=s,u[2]=140|r,oe(u),u[3]=u[15]=t,u[8]=n,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=i,u[16]=2==e.type?t[16]:u,u}function Qr(t,e,n,r,s,i){const o=n+20,a=t.data[o]||function(t,e,n,r,s,i){const o=pe(),a=me(),l=a?o:o&&o.parent,c=t.data[n]=as(0,l&&l!==e?l:null,r,n,s,i);return null===t.firstChild&&(t.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(t,e,o,r,s,i);return fe(a,!0),a}function Zr(t,e,n){ke(e,e[6]);try{const r=t.viewQuery;null!==r&&As(1,r,n);const s=t.template;null!==s&&ts(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Wr(t,e),t.staticViewQueries&&As(2,t.viewQuery,n);const i=t.components;null!==i&&function(t,e){for(let n=0;n<e.length;n++)Es(t,e[n])}(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),r}finally{e[2]&=-5,Ie()}}function Xr(t,e,n,r){const s=e[2];if(256==(256&s))return;ke(e,e[6]);const i=ye();try{oe(e),le.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&ts(t,e,n,2,r);const o=3==(3&s);if(!i)if(o){const n=t.preOrderCheckHooks;null!==n&&Ue(e,n,null)}else{const n=t.preOrderHooks;null!==n&&He(e,n,0,null),qe(e,0)}if(function(t){for(let e=Fr(t);null!==e;e=Mr(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],r=n[3];0==(1024&n[2])&&ae(r,1),n[2]|=1024}}}(e),function(t){for(let e=Fr(t);null!==e;e=Mr(e))for(let t=10;t<e.length;t++){const n=e[t],r=n[1];se(n)&&Xr(r,n,r.template,n[8])}}(e),null!==t.contentQueries&&Wr(t,e),!i)if(o){const n=t.contentCheckHooks;null!==n&&Ue(e,n)}else{const n=t.contentHooks;null!==n&&He(e,n,1),qe(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let r=t.expandoStartIndex,s=-1,i=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(i=0-o,De(i),r+=9+n[++t],s=r):r+=o:(null!==o&&(Ce(r,s),o(2,e[s])),s++)}}}finally{De(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)Cs(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&As(2,l,r),!i)if(o){const n=t.viewCheckHooks;null!==n&&Ue(e,n)}else{const n=t.viewHooks;null!==n&&He(e,n,2),qe(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,ae(e[3],-1))}finally{Ie()}}function Yr(t,e,n,r){const s=e[10],i=!ye(),o=re(e);try{i&&!o&&s.begin&&s.begin(),o&&Zr(t,e,r),Xr(t,e,n,r)}finally{i&&!o&&s.end&&s.end()}}function ts(t,e,n,r,s){const i=Pe();try{De(-1),2&r&&e.length>20&&Ur(t,e,0,ye()),n(r,s)}finally{De(i)}}function es(t,e,n){if(Ut(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,n[s],s)}}}function ns(t,e,n){ce()&&(function(t,e,n,r){const s=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||un(n,e),vr(r,e);const o=n.initialInputs;for(let a=s;a<i;a++){const r=t.data[a],i=$t(r);i&&bs(e,n,r);const l=bn(e,t,a,n);vr(l,e),null!==o&&vs(0,a-s,l,r,0,o),i&&(ee(n.index,e)[8]=l)}}(t,e,n,Xt(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,s=n.directiveEnd,i=t.expandoInstructions,o=t.firstCreatePass,a=n.index-20,l=le.lFrame.currentDirectiveIndex;try{De(a);for(let n=r;n<s;n++){const r=t.data[n],s=e[n];Ee(n),null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?ps(r,s):o&&i.push(null)}}finally{De(-1),Ee(l)}}(t,e,n))}function rs(t,e,n=Xt){const r=e.localNames;if(null!==r){let s=e.index+1;for(let i=0;i<r.length;i+=2){const o=r[i+1],a=-1===o?n(e,t):t[o];t[s++]=a}}}function ss(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=is(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function is(t,e,n,r,s,i,o,a,l,c){const u=20+r,h=u+s,d=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:Pr);return n}(u,h);return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:c,incompleteFirstPass:!1}}function os(t,e,n,r){const s=Rs(e);s.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(r,s.length-1)}function as(t,e,n,r,s,i){return{type:n,index:r,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:s,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function ls(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const s=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,s):n[r]=[e,s]}return n}function cs(t,e,n,r,s,i,o,a){const l=Xt(e,n);let c,u=e.inputs;var h;!a&&null!=u&&(c=u[r])?(Is(t,n,c,r,s),Ht(e)&&function(t,e){const n=ee(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(r="class"===(h=r)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,s=null!=o?o(s,e.tagName||"",r):s,Jt(i)?i.setProperty(l,r,s):Je(r)||(l.setProperty?l.setProperty(r,s):l[r]=s))}function us(t,e,n,r){let s=!1;if(ce()){const i=function(t,e,n){const r=t.directiveRegistry;let s=null;if(r)for(let i=0;i<r.length;i++){const o=r[i];jr(n,o.selectors,!1)&&(s||(s=[]),fn(un(n,e),t,o.type),$t(o)?(2&n.flags&&wr(n),ms(t,n),s.unshift(o)):s.push(o))}return s}(t,e,n),o=null===r?null:{"":-1};if(null!==i){let r=0;s=!0,ys(n,t.data.length,i.length);for(let t=0;t<i.length;t++){const e=i[t];e.providersResolver&&e.providersResolver(e)}fs(t,n,i.length);let a=!1,l=!1;for(let s=0;s<i.length;s++){const c=i[s];n.mergedAttrs=Ke(n.mergedAttrs,c.hostAttrs),_s(t,e,c),gs(t.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128),!a&&(c.onChanges||c.onInit||c.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-20),a=!0),l||!c.onChanges&&!c.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-20),l=!0),hs(t,c),r+=c.hostVars}!function(t,e){const n=e.directiveEnd,r=t.data,s=e.attrs,i=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=r[l],n=t.inputs,c=null===s||Or(e)?null:ws(n,s);i.push(c),o=ls(n,l,o),a=ls(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=i,e.inputs=o,e.outputs=a}(t,n),ds(t,e,r)}o&&function(t,e,n){if(e){const r=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new Error(`Export of name '${e[t+1]}' not found!`);r.push(e[t],s)}}}(n,r,o)}return n.mergedAttrs=Ke(n.mergedAttrs,n.attrs),s}function hs(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function ds(t,e,n){for(let r=0;r<n;r++)e.push(Pr),t.blueprint.push(Pr),t.data.push(null)}function ps(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function fs(t,e,n){const r=20-e.index,s=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,s,n)}function ms(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function gs(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;$t(e)&&(n[""]=t)}}function ys(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function _s(t,e,n){t.data.push(n);const r=n.factory||(n.factory=Ft(n.type)),s=new ze(r,$t(n),null);t.blueprint.push(s),e.push(s)}function bs(t,e,n){const r=Xt(e,t),s=ss(n),i=t[10],o=Os(t,Kr(t,s,null,n.onPush?64:16,r,e,i,i.createRenderer(r,n)));t[e.index]=o}function vs(t,e,n,r,s,i){const o=i[e];if(null!==o){const t=r.setInput;for(let e=0;e<o.length;){const s=o[e++],i=o[e++],a=o[e++];null!==t?r.setInput(n,a,s,i):n[i]=a}}}function ws(t,e){let n=null,r=0;for(;r<e.length;){const s=e[r];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[r+1])),r+=2}else r+=2;else r+=4}return n}function Ss(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function Cs(t,e){const n=ee(e,t);if(se(n)){const t=n[1];80&n[2]?Xr(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let r=Fr(e);null!==r;r=Mr(r))for(let e=10;e<r.length;e++){const n=r[e];if(1024&n[2]){const t=n[1];Xr(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const s=ee(n[r],e);se(s)&&s[5]>0&&t(s)}}(n)}}function Es(t,e){const n=ee(e,t),r=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(r,n),Zr(r,n,n[8])}function Os(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Ts(t){for(;t;){t[2]|=64;const e=Dr(t);if(Bt(t)&&!e)return t;t=e}return null}function xs(t,e,n){const r=e[10];r.begin&&r.begin();try{Xr(t,e,t.template,n)}catch(s){throw Ns(e,s),s}finally{r.end&&r.end()}}function ks(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=ne(n),s=r[1];Yr(s,r,s.template,n)}}(t[8])}function As(t,e,n){Te(0),e(t,n)}const js=(()=>Promise.resolve(null))();function Rs(t){return t[7]||(t[7]=[])}function Ns(t,e){const n=t[9],r=n?n.get(kn,null):null;r&&r.handleError(e)}function Is(t,e,n,r,s){for(let i=0;i<n.length;){const o=n[i++],a=n[i++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,r,a):l[a]=s}}function Ps(t,e,n){const r=Zt(e,t),s=t[11];Jt(s)?s.setValue(r,n):r.textContent=n}function Ds(t,e){const n=e[3];return-1===t.index?Lt(n)?n:null:n}function Fs(t,e){const n=Ds(t,e);return n?Js(e[11],n[7]):null}function Ms(t,e,n,r,s){if(null!=r){let i,o=!1;Lt(r)?i=r:Vt(r)&&(o=!0,r=r[0]);const a=Qt(r);0===t&&null!==n?null==s?Gs(e,n,a):zs(e,n,a,s||null):1===t&&null!==n?zs(e,n,a,s||null):2===t?function(t,e,n){const r=Js(t,e);r&&function(t,e,n,r){Jt(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,s){const i=n[7];i!==Qt(n)&&Ms(e,t,r,i,s);for(let o=10;o<n.length;o++){const s=n[o];Ys(s[1],s,t,e,r,i)}}(e,t,i,n,s)}}function Vs(t,e,n,r){const s=Fs(t.node,e);s&&Ys(t,e,e[11],n?1:2,s,r)}function Ls(t,e){const n=t[9],r=n.indexOf(e);1024&e[2]&&ae(e[3],-1),n.splice(r,1)}function Us(t,e){if(t.length<=10)return;const n=10+e,r=t[n];if(r){const s=r[17];null!==s&&s!==t&&Ls(s,r),e>0&&(t[n-1][4]=r[4]);const i=gt(t,10+e);Vs(r[1],r,!1,null);const o=i[19];null!==o&&o.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Hs(t,e){if(!(256&e[2])){const n=e[11];Jt(n)&&n.destroyNode&&Ys(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return $s(t[1],t);for(;e;){let n=null;if(Vt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Vt(e)&&$s(e[1],e),e=qs(e,t);null===e&&(e=t),Vt(e)&&$s(e[1],e),n=e&&e[4]}e=n}}(e)}}function qs(t,e){let n;return Vt(t)&&(n=t[6])&&2===n.type?Ds(n,t):t[3]===e?null:t[3]}function $s(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const t=e[n[r]];if(!(t instanceof ze)){const e=n[r+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const s=n[r+1],i="function"==typeof s?s(e):Qt(e[s]),o=t[n[r+2]],a=n[r+3];"boolean"==typeof a?i.removeEventListener(n[r],o,a):a>=0?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Jt(e[11])&&e[11].destroy();const r=e[17];if(null!==r&&Lt(e[3])){r!==e[3]&&Ls(r,e);const n=e[19];null!==n&&n.detachView(t)}}}function Bs(t,e,n){let r=e.parent;for(;null!=r&&(4===r.type||5===r.type);)r=(e=r).parent;if(null==r){const t=n[6];return 2===t.type?Fs(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return Xt(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==St.ShadowDom&&n!==St.Native)return null}return Xt(r,n)}function zs(t,e,n,r){Jt(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Gs(t,e,n){Jt(t)?t.appendChild(e,n):e.appendChild(n)}function Ws(t,e,n,r){null!==r?zs(t,e,n,r):Gs(t,e,n)}function Js(t,e){return Jt(t)?t.parentNode(e):e.parentNode}function Ks(t,e){if(2===t.type){const n=Ds(t,e);return null===n?null:Zs(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?Xt(t,e):null}function Qs(t,e,n,r){const s=Bs(t,r,e);if(null!=s){const t=e[11],i=Ks(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Ws(t,s,n[e],i);else Ws(t,s,n,i)}}function Zs(t,e){const n=10+t+1;if(n<e.length){const t=e[n],r=t[1].firstChild;if(null!==r)return function t(e,n){if(null!==n){const r=n.type;if(3===r)return Xt(n,e);if(0===r)return Zs(-1,e[n.index]);if(4===r||5===r){const r=n.child;if(null!==r)return t(e,r);{const t=e[n.index];return Lt(t)?Zs(-1,t):Qt(t)}}{const r=e[16],s=r[6],i=Dr(r),o=s.projection[n.projection];return null!=o?t(i,o):t(e,n.next)}}return null}(t,r)}return e[7]}function Xs(t,e,n,r,s,i,o){for(;null!=n;){const a=r[n.index],l=n.type;o&&0===e&&(a&&vr(Qt(a),r),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Xs(t,e,n.child,r,s,i,!1),Ms(e,t,s,a,i)):1===l?ti(t,e,r,n,s,i):Ms(e,t,s,a,i)),n=o?n.projectionNext:n.next}}function Ys(t,e,n,r,s,i){Xs(n,r,t.node.child,e,s,i,!1)}function ti(t,e,n,r,s,i){const o=n[16],a=o[6].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Ms(e,t,s,a[l],i);else Xs(t,e,a,o[3],s,i,!0)}function ei(t,e,n){Jt(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function ni(t,e,n){Jt(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class ri{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,r,s,i=!1){for(;null!==r;){const o=n[r.index];if(null!==o&&s.push(Qt(o)),Lt(o))for(let e=10;e<o.length;e++){const n=o[e],r=n[1].firstChild;null!==r&&t(n[1],n,r,s)}const a=r.type;if(4===a||5===a)t(e,n,r.child,s);else if(1===a){const e=n[16],i=e[6].projection[r.projection];if(Array.isArray(i))s.push(...i);else{const n=Dr(e);t(n[1],n,i,s,!0)}}r=i?r.projectionNext:r.next}return s}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Hs(this._lView[1],this._lView)}onDestroy(t){os(this._lView[1],this._lView,null,t)}markForCheck(){Ts(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){xs(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){_e(!0);try{xs(t,e,n)}finally{_e(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Ys(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class si extends ri{constructor(t){super(t),this._view=t}detectChanges(){ks(this._view)}checkNoChanges(){!function(t){_e(!0);try{ks(t)}finally{_e(!1)}}(this._view)}get context(){return null}}let ii,oi,ai;function li(t,e,n){return ii||(ii=class extends t{}),new ii(Xt(e,n))}function ci(t,e,n,r){return oi||(oi=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Kr(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Zr(e,n,t),new ri(n)}}),0===n.type?new oi(r,n,li(e,n,r)):null}function ui(t,e,n,r){let s;ai||(ai=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return li(e,this._hostTNode,this._hostView)}get injector(){return new Sn(this._hostTNode,this._hostView)}get parentInjector(){const t=pn(this._hostTNode,this._hostView),e=tn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let r=Ye(t),s=e,i=e[6];for(;r>1;)s=s[15],i=s[6],r--;return i}(t,this._hostView,this._hostTNode);return Ze(t)&&null!=n?new Sn(n,e):new Sn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const i=n||this.parentInjector;if(!s&&null==t.ngModule&&i){const t=i.get(dt,null);t&&(s=t)}const o=t.create(i,r,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Lt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new ai(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e);return function(t,e,n,r){const s=10+r,i=n.length;r>0&&(n[s-1][4]=e),r<i-10?(e[4]=n[s],mt(n,10+r,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(r,n,this._lContainer,s),Vs(r,n,!0,Zs(s,this._lContainer)),t.attachToViewContainerRef(this),mt(this._lContainer[8],s,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1);!function(t,e){const n=Us(t,e);n&&Hs(n[1],n)}(this._lContainer,e),gt(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=Us(this._lContainer,e);return n&&null!=gt(this._lContainer[8],e)?new ri(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const i=r[n.index];if(Lt(i))s=i;else{let t;if(4===n.type)t=Qt(i);else if(t=r[11].createComment(""),Bt(r)){const e=r[11],s=Xt(n,r);zs(e,Js(e,s),t,function(t,e){return Jt(t)?t.nextSibling(e):e.nextSibling}(e,s))}else Qs(r[1],r,t,n);r[n.index]=s=Ss(i,r,t,n),Os(r,s)}return new ai(s,n,r)}function hi(t=!1){return function(t,e,n){if(!n&&Ht(t)){const n=ee(t.index,e);return new ri(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new ri(e[16],e):null}(pe(),ue(),t)}let di=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>pi(),t})();const pi=hi,fi=Function,mi=new X("Set Injector scope."),gi={},yi={},_i=[];let bi=void 0;function vi(){return void 0===bi&&(bi=new ht),bi}function wi(t,e=null,n=null,r){return new Si(t,n,e||vi(),r)}class Si{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&ft(e,n=>this.processProvider(n,t,e)),ft([t],t=>this.processInjectorType(t,[],s)),this.records.set(Y,Oi(void 0,this));const i=this.records.get(mi);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof t?null:P(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=tt,n=w.Default){this.assertNotDestroyed();const r=it(this);try{if(!(n&w.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof X)&&T(t);e=n&&this.injectableDefInScope(n)?Oi(Ci(t),gi):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&w.Self?vi():this.parent).get(t,e=n&w.Optional&&e===tt?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(P(t)),r)throw i;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=P(e);if(Array.isArray(e))s=e.map(P).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):P(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(et,"\n  ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{it(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(P(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=V(t)))return!1;let r=k(t);const s=null==r&&t.ngModule||void 0,i=void 0===s?t:s,o=-1!==n.indexOf(i);if(void 0!==s&&(r=k(s)),null==r)return!1;if(null!=r.imports&&!o){let t;n.push(i);try{ft(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:r}=t[e];ft(r,t=>this.processProvider(t,n,r||_i))}}this.injectorDefTypes.add(i),this.records.set(i,Oi(r.factory,gi));const a=r.providers;if(null!=a&&!o){const e=t;ft(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=xi(t=V(t))?t:V(t&&t.provide);const s=function(t,e,n){return Ti(t)?Oi(void 0,t.useValue):Oi(Ei(t,e,n),gi)}(t,e,n);if(xi(t)||!0!==t.multi){const t=this.records.get(r);t&&void 0!==t.multi&&Sr()}else{let e=this.records.get(r);e?void 0===e.multi&&Sr():(e=Oi(void 0,gi,!0),e.factory=()=>ut(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,s)}hydrate(t,e){var n;return e.value===yi?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(P(t)):e.value===gi&&(e.value=yi,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Ci(t){const e=T(t),n=null!==e?e.factory:Ft(t);if(null!==n)return n;const r=k(t);if(null!==r)return r.factory;if(t instanceof X)throw new Error(`Token ${P(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=yt(e,"?");throw new Error(`Can't resolve all parameters for ${P(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[A]||t[N]||t[R]&&t[R]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Ei(t,e,n){let r=void 0;if(xi(t)){const e=V(t);return Ft(e)||Ci(e)}if(Ti(t))r=()=>V(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...ut(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>lt(V(t.useExisting));else{const s=V(t&&(t.useClass||t.provide));if(s||function(t,e,n){let r="";throw t&&e&&(r=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${P(t)}'`+r)}(e,n,t),!function(t){return!!t.deps}(t))return Ft(s)||Ci(s);r=()=>new s(...ut(t.deps))}var s;return r}function Oi(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Ti(t){return null!==t&&"object"==typeof t&&nt in t}function xi(t){return"function"==typeof t}const ki=function(t,e,n){return function(t,e=null,n=null,r){const s=wi(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let Ai=(()=>{class t{static create(t,e){return Array.isArray(t)?ki(t,e,""):ki(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=tt,t.NULL=new ht,t.\u0275prov=E({token:t,providedIn:"any",factory:()=>lt(Y)}),t.__NG_ELEMENT_ID__=-1,t})();const ji=new X("AnalyzeForEntryComponents");function Ri(t,e,n){let r=n?t.styles:null,s=n?t.classes:null,i=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?i=t:1==i?s=D(s,t):2==i&&(r=D(r,t+": "+e[++o]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=s:t.classesWithoutHost=s}let Ni=null;function Ii(){if(!Ni){const t=B.Symbol;if(t&&t.iterator)Ni=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Ni=n)}}}return Ni}class Pi{constructor(t){this.wrapped=t}static wrap(t){return new Pi(t)}static unwrap(t){return Pi.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Pi}}function Di(t){return!!Fi(t)&&(Array.isArray(t)||!(t instanceof Map)&&Ii()in t)}function Fi(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Mi(t,e,n){return t[e]=n}function Vi(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Li(t,e,n,r){const s=Vi(t,e,n);return Vi(t,e+1,r)||s}function Ui(t,e,n,r,s){const i=Li(t,e,n,r);return Vi(t,e+2,s)||i}function Hi(t,e,n,r){const s=ue();return Vi(s,we(),e)&&(he(),function(t,e,n,r,s,i){const o=Xt(t,e),a=e[11];if(null==r)Jt(a)?a.removeAttribute(o,n,i):o.removeAttribute(n);else{const e=null==s?en(r):s(r,t.tagName||"",n);Jt(a)?a.setAttribute(o,n,e,i):i?o.setAttributeNS(i,n,e):o.setAttribute(n,e)}}(Fe(),s,t,e,n,r)),Hi}function qi(t,e,n,r){return Vi(t,we(),n)?e+en(n)+r:Pr}function $i(t,e,n,r,s,i){const o=Li(t,ve(),n,s);return Se(2),o?e+en(n)+r+en(s)+i:Pr}function Bi(t,e,n,r,s,i,o,a){const l=ue(),c=he(),u=t+20,h=c.firstCreatePass?function(t,e,n,r,s,i,o,a,l){const c=e.consts,u=Qr(e,n[6],t,0,o||null,ie(c,a));us(e,n,u,ie(c,l)),Le(e,u);const h=u.tViews=is(2,-1,r,s,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=as(0,null,2,-1,null,null);return d.injectorIndex=u.injectorIndex,h.node=d,null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(t,c,l,e,n,r,s,i,o):c.data[u];fe(h,!1);const d=l[11].createComment("");Qs(c,l,d,h),vr(d,l),Os(l,l[u]=Ss(d,l,d,h)),qt(h)&&ns(c,l,h),null!=o&&rs(l,h,a)}function zi(t){return te(le.lFrame.contextLView,t)}function Gi(t,e=w.Default){const n=ue();return null==n?lt(t,e):mn(pe(),n,V(t),e)}function Wi(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let r=0;for(;r<t;){const s=n[r];if(We(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<t&&"string"==typeof n[r];)r++;else{if(s===e)return n[r+1];r+=2}}}return null}(pe(),t)}function Ji(t,e,n){const r=ue();return Vi(r,we(),e)&&cs(he(),Fe(),r,t,e,r[11],n,!1),Ji}function Ki(t,e,n,r,s){const i=s?"class":"style";Is(t,n,e.inputs[i],i,r)}function Qi(t,e,n,r){const s=ue(),i=he(),o=20+t,a=s[11],l=s[o]=Jr(e,a,le.lFrame.currentNamespace),c=i.firstCreatePass?function(t,e,n,r,s,i,o){const a=e.consts,l=ie(a,i),c=Qr(e,n[6],t,3,s,l);return us(e,n,c,ie(a,o)),null!==c.attrs&&Ri(c,c.attrs,!1),null!==c.mergedAttrs&&Ri(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,i,s,0,e,n,r):i.data[o];fe(c,!0);const u=c.mergedAttrs;null!==u&&Ge(a,l,u);const h=c.classes;null!==h&&ni(a,l,h);const d=c.styles;null!==d&&ei(a,l,d),Qs(i,s,l,c),0===le.lFrame.elementDepthCount&&vr(l,s),le.lFrame.elementDepthCount++,qt(c)&&(ns(i,s,c),es(i,c,s)),null!==r&&rs(s,c)}function Zi(){let t=pe();me()?ge():(t=t.parent,fe(t,!1));const e=t;le.lFrame.elementDepthCount--;const n=he();n.firstCreatePass&&(Le(n,t),Ut(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Ki(n,e,ue(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Ki(n,e,ue(),e.stylesWithoutHost,!1)}function Xi(t,e,n,r){Qi(t,e,n,r),Zi()}function Yi(t,e,n){const r=ue(),s=he(),i=t+20,o=s.firstCreatePass?function(t,e,n,r,s){const i=e.consts,o=ie(i,r),a=Qr(e,n[6],t,4,"ng-container",o);return null!==o&&Ri(a,o,!0),us(e,n,a,ie(i,s)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,s,r,e,n):s.data[i];fe(o,!0);const a=r[i]=r[11].createComment("");Qs(s,r,a,o),vr(a,r),qt(o)&&(ns(s,r,o),es(s,o,r)),null!=n&&rs(r,o)}function to(){let t=pe();const e=he();me()?ge():(t=t.parent,fe(t,!1)),e.firstCreatePass&&(Le(e,t),Ut(t)&&e.queries.elementEnd(t))}function eo(){return ue()}function no(t){return!!t&&"function"==typeof t.then}function ro(t){return!!t&&"function"==typeof t.subscribe}function so(t,e,n=!1,r){const s=ue(),i=he(),o=pe();return function(t,e,n,r,s,i,o=!1,a){const l=qt(r),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=Rs(e);let h=!0;if(3===r.type){const d=Xt(r,e),p=a?a(d):Ct,f=p.target||d,m=u.length,g=a?t=>a(Qt(t[r.index])).target:r.index;if(Jt(n)){let o=null;if(!a&&l&&(o=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let i=0;i<s.length-1;i+=2){const t=s[i];if(t===n&&s[i+1]===r){const t=e[7],n=s[i+2];return t.length>n?t[n]:null}"string"==typeof t&&(i+=2)}return null}(t,e,s,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=oo(r,e,i,!1);const t=n.listen(p.name||f,s,i);u.push(i,t),c&&c.push(s,g,m,m+1)}}else i=oo(r,e,i,!0),f.addEventListener(s,i,o),u.push(i),c&&c.push(s,g,m,o)}const d=r.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(i),o=u.length;u.push(i,t),c&&c.push(s,r.index,o,-(o+1))}}}(i,s,s[11],o,t,e,n,r),so}function io(t,e,n){try{return!1!==e(n)}catch(r){return Ns(t,r),!1}}function oo(t,e,n,r){return function s(i){if(i===Function)return n;const o=2&t.flags?ee(t.index,e):e;0==(32&e[2])&&Ts(o);let a=io(e,n,i),l=s.__ngNextListenerFn__;for(;l;)a=io(e,l,i)&&a,l=l.__ngNextListenerFn__;return r&&!1===a&&(i.preventDefault(),i.returnValue=!1),a}}function ao(t=1){return function(t){return(le.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,le.lFrame.contextLView))[8]}(t)}function lo(t,e){let n=null;const r=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s<e.length;s++){const i=e[s];if("*"!==i){if(null===r?jr(t,i,!0):Rr(r,i))return s}else n=s}return n}function co(t){const e=ue()[16][6];if(!e.projection){const n=e.projection=yt(t?t.length:1,null),r=n.slice();let s=e.child;for(;null!==s;){const e=t?lo(s,t):0;null!==e&&(r[e]?r[e].projectionNext=s:n[e]=s,r[e]=s),s=s.next}}}function uo(t,e=0,n){const r=ue(),s=he(),i=Qr(s,r[6],t,1,null,n||null);null===i.projection&&(i.projection=e),ge(),function(t,e,n){ti(e[11],0,e,n,Bs(t,n,e),Ks(n.parent||e[6],e))}(s,r,i)}function ho(t,e,n){return po(t,"",e,"",n),ho}function po(t,e,n,r,s){const i=ue(),o=qi(i,e,n,r);return o!==Pr&&cs(he(),Fe(),i,t,o,i[11],s,!1),po}function fo(t,e,n,r,s,i,o){const a=ue(),l=$i(a,e,n,r,s,i);return l!==Pr&&cs(he(),Fe(),a,t,l,a[11],o,!1),fo}const mo=[];function go(t,e,n,r,s){const i=t[n+1],o=null===e;let a=r?qr(i):Br(i),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];yo(t[a],e)&&(l=!0,t[a+1]=r?Gr(n):$r(n)),a=r?qr(n):Br(n)}l&&(t[n+1]=r?$r(i):Gr(i))}function yo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&vt(t,e)>=0}const _o={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function bo(t){return t.substring(_o.key,_o.keyEnd)}function vo(t,e){const n=_o.textEnd;return n===e?-1:(e=_o.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,_o.key=e,n),wo(t,e,n))}function wo(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function So(t,e){return function(t,e,n,r){const s=ue(),i=he(),o=Se(2);i.firstUpdatePass&&xo(i,t,o,!0),e!==Pr&&Vi(s,o,e)&&jo(i,i.data[Pe()+20],s,s[11],t,s[o+1]=function(t,e){return null==t||"object"==typeof t&&(t=P(Dn(t))),t}(e),!0,o)}(t,e),So}function Co(t){Oo(_t,Eo,t,!0)}function Eo(t,e){for(let n=function(t){return function(t){_o.key=0,_o.keyEnd=0,_o.value=0,_o.valueEnd=0,_o.textEnd=t.length}(t),vo(t,wo(t,0,_o.textEnd))}(e);n>=0;n=vo(e,n))_t(t,bo(e),!0)}function Oo(t,e,n,r){const s=he(),i=Se(2);s.firstUpdatePass&&xo(s,null,i,r);const o=ue();if(n!==Pr&&Vi(o,i,n)){const a=s.data[Pe()+20];if(Io(a,r)&&!To(s,i)){let t=r?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=D(t,n||"")),Ki(s,a,o,n,r)}else!function(t,e,n,r,s,i,o,a){s===Pr&&(s=mo);let l=0,c=0,u=0<s.length?s[0]:null,h=0<i.length?i[0]:null;for(;null!==u||null!==h;){const d=l<s.length?s[l+1]:void 0,p=c<i.length?i[c+1]:void 0;let f=null,m=void 0;u===h?(l+=2,c+=2,d!==p&&(f=h,m=p)):null===h||null!==u&&u<h?(l+=2,f=u):(c+=2,f=h,m=p),null!==f&&jo(t,e,n,r,f,m,o,a),u=l<s.length?s[l]:null,h=c<i.length?i[c]:null}}(s,a,o,o[11],o[i+1],o[i+1]=function(t,e,n){if(null==n||""===n)return mo;const r=[],s=Dn(n);if(Array.isArray(s))for(let i=0;i<s.length;i++)t(r,s[i],!0);else if("object"==typeof s)for(const i in s)s.hasOwnProperty(i)&&t(r,i,s[i]);else"string"==typeof s&&e(r,s);return r}(t,e,n),r,i)}}function To(t,e){return e>=t.expandoStartIndex}function xo(t,e,n,r){const s=t.data;if(null===s[n+1]){const i=s[Pe()+20],o=To(t,n);Io(i,r)&&null===e&&!o&&(e=!1),e=function(t,e,n,r){const s=function(t){const e=le.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=r?e.residualClasses:e.residualStyles;if(null===s)0===(r?e.classBindings:e.styleBindings)&&(n=Ao(n=ko(null,t,e,n,r),e.attrs,r),i=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=ko(s,t,e,n,r),null===i){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Br(r))return t[qr(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=ko(null,t,e,n[1],r),n=Ao(n,e.attrs,r),function(t,e,n,r){t[qr(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else i=function(t,e,n){let r=void 0;const s=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<s;i++)r=Ao(r,t[i].hostAttrs,n);return Ao(r,e.attrs,n)}(t,e,r)}return void 0!==i&&(r?e.residualClasses=i:e.residualStyles=i),n}(s,i,e,r),function(t,e,n,r,s,i){let o=i?e.classBindings:e.styleBindings,a=qr(o),l=Br(o);t[r]=n;let c,u=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||vt(t,c)>0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=qr(t[a+1]);t[r+1]=Hr(e,a),0!==e&&(t[e+1]=zr(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=Hr(a,0),0!==a&&(t[a+1]=zr(t[a+1],r)),a=r;else t[r+1]=Hr(l,0),0===a?a=r:t[l+1]=zr(t[l+1],r),l=r;u&&(t[r+1]=$r(t[r+1])),go(t,c,r,!0),go(t,c,r,!1),function(t,e,n,r,s){const i=s?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&vt(i,e)>=0&&(n[r+1]=Gr(n[r+1]))}(e,c,t,r,i),o=Hr(a,l),i?e.classBindings=o:e.styleBindings=o}(s,i,e,n,o,r)}}function ko(t,e,n,r,s){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(i=e[a],r=Ao(r,i.hostAttrs,s),i!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Ao(t,e,n){const r=n?1:2;let s=-1;if(null!==e)for(let i=0;i<e.length;i++){const o=e[i];"number"==typeof o?s=o:s===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),_t(t,o,!!n||e[++i]))}return void 0===t?null:t}function jo(t,e,n,r,s,i,o,a){if(3!==e.type)return;const l=t.data,c=l[a+1];No(1==(1&c)?Ro(l,e,n,s,Br(c),o):void 0)||(No(i)||function(t){return 2==(2&t)}(c)&&(i=Ro(l,null,n,s,a,o)),function(t,e,n,r,s){const i=Jt(t);if(e)s?i?t.addClass(n,r):n.classList.add(r):i?t.removeClass(n,r):n.classList.remove(r);else{const e=-1==r.indexOf("-")?void 0:2;null==s?i?t.removeStyle(n,r,e):n.style.removeProperty(r):i?t.setStyle(n,r,s,e):n.style.setProperty(r,s)}}(r,o,Zt(Pe(),n),s,i))}function Ro(t,e,n,r,s,i){const o=null===e;let a=void 0;for(;s>0;){const e=t[s],i=Array.isArray(e),l=i?e[1]:e,c=null===l;let u=n[s+1];u===Pr&&(u=c?mo:void 0);let h=c?bt(u,r):l===r?u:void 0;if(i&&!No(h)&&(h=bt(e,r)),No(h)&&(a=h,o))return a;const d=t[s+1];s=o?qr(d):Br(d)}if(null!==e){let t=i?e.residualClasses:e.residualStyles;null!=t&&(a=bt(t,r))}return a}function No(t){return void 0!==t}function Io(t,e){return 0!=(t.flags&(e?16:32))}function Po(t,e=""){const n=ue(),r=he(),s=t+20,i=r.firstCreatePass?Qr(r,n[6],t,3,null,null):r.data[s],o=n[s]=function(t,e){return Jt(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Qs(r,n,o,i),fe(i,!1)}function Do(t){return Fo("",t,""),Do}function Fo(t,e,n){const r=ue(),s=qi(r,t,e,n);return s!==Pr&&Ps(r,Pe(),s),Fo}function Mo(t,e,n,r,s){const i=ue(),o=$i(i,t,e,n,r,s);return o!==Pr&&Ps(i,Pe(),o),Mo}function Vo(t,e,n,r,s,i,o){const a=ue(),l=function(t,e,n,r,s,i,o,a){const l=Ui(t,ve(),n,s,o);return Se(3),l?e+en(n)+r+en(s)+i+en(o)+a:Pr}(a,t,e,n,r,s,i,o);return l!==Pr&&Ps(a,Pe(),l),Vo}function Lo(t,e,n){Oo(_t,Eo,qi(ue(),t,e,n),!0)}function Uo(t,e,n){const r=ue();return Vi(r,we(),e)&&cs(he(),Fe(),r,t,e,r[11],n,!0),Uo}function Ho(t,e){const n=ne(t)[1],r=n.data.length-1;Le(n,{directiveStart:r,directiveEnd:r+1})}function qo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let s=void 0;if($t(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){r.push(s);const e=t;e.inputs=$o(t.inputs),e.declaredInputs=$o(t.declaredInputs),e.outputs=$o(t.outputs);const n=s.hostBindings;n&&Go(t,n);const i=s.viewQuery,o=s.contentQueries;if(i&&Bo(t,i),o&&zo(t,o),C(t.inputs,s.inputs),C(t.declaredInputs,s.declaredInputs),C(t.outputs,s.outputs),$t(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}e.afterContentChecked=e.afterContentChecked||s.afterContentChecked,e.afterContentInit=t.afterContentInit||s.afterContentInit,e.afterViewChecked=t.afterViewChecked||s.afterViewChecked,e.afterViewInit=t.afterViewInit||s.afterViewInit,e.doCheck=t.doCheck||s.doCheck,e.onDestroy=t.onDestroy||s.onDestroy,e.onInit=t.onInit||s.onInit}const e=s.features;if(e)for(let r=0;r<e.length;r++){const s=e[r];s&&s.ngInherit&&s(t),s===qo&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){const s=t[r];s.hostVars=e+=s.hostVars,s.hostAttrs=Ke(s.hostAttrs,n=Ke(n,s.hostAttrs))}}(r)}function $o(t){return t===Ct?{}:t===Et?[]:t}function Bo(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function zo(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,s)=>{e(t,r,s),n(t,r,s)}:e}function Go(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}class Wo{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Jo(t){t.type.prototype.ngOnChanges&&(t.setInput=Ko,t.onChanges=function(){const t=Qo(this),e=t&&t.current;if(e){const n=t.previous;if(n===Ct)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function Ko(t,e,n,r){const s=Qo(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Ct,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];i[a]=new Wo(l&&l.currentValue,e,o===Ct),t[r]=e}function Qo(t){return t.__ngSimpleChanges__||null}function Zo(t,e,n,r,s){if(t=V(t),Array.isArray(t))for(let i=0;i<t.length;i++)Zo(t[i],e,n,r,s);else{const i=he(),o=ue();let a=xi(t)?t:V(t.provide),l=Ei(t);const c=pe(),u=65535&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>16;if(xi(t)||!t.multi){const r=new ze(l,s,Gi),p=ta(a,e,s?u:u+d,h);-1===p?(fn(un(c,o),i,a),Xo(i,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(r),o.push(r)):(n[p]=r,o[p]=r)}else{const p=ta(a,e,u+d,h),f=ta(a,e,u,u+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){fn(un(c,o),i,a);const u=function(t,e,n,r,s){const i=new ze(t,n,Gi);return i.multi=[],i.index=e,i.componentProviders=0,Yo(i,s,r&&!n),i}(s?na:ea,n.length,s,r,l);!s&&g&&(n[f].providerFactory=u),Xo(i,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(u),o.push(u)}else Xo(i,t,p>-1?p:f,Yo(n[s?f:p],l,!s&&r));!s&&r&&g&&n[f].componentProviders++}}}function Xo(t,e,n,r){const s=xi(e);if(s||e.useClass){const i=(e.useClass||e).prototype.ngOnDestroy;if(i){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[r,i]):o[t+1].push(r,i)}else o.push(n,i)}}}function Yo(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ta(t,e,n,r){for(let s=n;s<r;s++)if(e[s]===t)return s;return-1}function ea(t,e,n,r){return ra(this.multi,[])}function na(t,e,n,r){const s=this.multi;let i;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=bn(n,n[1],this.providerFactory.index,r);i=e.slice(0,t),ra(s,i);for(let n=t;n<e.length;n++)i.push(e[n])}else i=[],ra(s,i);return i}function ra(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function sa(t,e=[]){return n=>{n.providersResolver=(n,r)=>function(t,e,n){const r=he();if(r.firstCreatePass){const s=$t(t);Zo(n,r.data,r.blueprint,s,!0),Zo(e,r.data,r.blueprint,s,!1)}}(n,r?r(t):t,e)}}Jo.ngInherit=!0;class ia{}class oa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${P(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let aa=(()=>{class t{}return t.NULL=new oa,t})(),la=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>ca(t),t})();const ca=function(t){return li(t,pe(),ue())};class ua{}var ha=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let da=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>pa(),t})();const pa=function(){const t=ue(),e=ee(pe().index,t);return function(t){const e=t[11];if(Jt(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Vt(e)?e:t)};let fa=(()=>{class t{}return t.\u0275prov=E({token:t,providedIn:"root",factory:()=>null}),t})();class ma{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const ga=new ma("10.0.2");class ya{constructor(){}supports(t){return Di(t)}create(t){return new ba(t)}}const _a=(t,e)=>e;class ba{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||_a}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const i=!n||e&&e.currentIndex<Ca(n,r,s)?e:n,o=Ca(i,r,s),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)r++;else{s||(s=[]);const t=o-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<s.length?s[n]:s[n]=0,i=r+n;e<=i&&i<t&&(s[n]=r+1)}s[i.previousIndex]=e-t}}o!==a&&t(i,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Di(t))throw new Error(`Error trying to diff '${P(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,r,s=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],r=this._trackByFn(e,n),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,n,r,e)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,e),i=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[Ii()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,t,r,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),i=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):t=this._addAfter(new va(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Sa),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Sa),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class va{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class wa{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Sa{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new wa,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ca(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+e+s}class Ea{constructor(){}supports(t){return t instanceof Map||Fi(t)}create(){return new Oa}}class Oa{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Fi(t)))throw new Error(`Error trying to diff '${P(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new Ta(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Ta{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let xa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new v,new _]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=E({token:t,providedIn:"root",factory:()=>new t([new ya])}),t})(),ka=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new v,new _]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=E({token:t,providedIn:"root",factory:()=>new t([new Ea])}),t})();const Aa=[new Ea],ja=new xa([new ya]),Ra=new ka(Aa);let Na=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ia(t,la),t})();const Ia=function(t,e){return ci(t,e,pe(),ue())};let Pa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Da(t,la),t})();const Da=function(t,e){return ui(t,e,pe(),ue())},Fa={};class Ma extends aa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Dt(t);return new Ua(e,this.ngModule)}}function Va(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const La=new X("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>rn});class Ua extends ia{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Ir).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Va(this.componentDef.inputs)}get outputs(){return Va(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const i=t.get(n,Fa,s);return i!==Fa||r===Fa?i:e.get(n,r,s)}}}(t,r.injector):t,i=s.get(ua,Kt),o=s.get(fa,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Jt(t))return t.selectRootElement(e,n===St.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Jr(l,i.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:rn,clean:js,playerHandler:null,flags:0},d=is(0,-1,null,1,0,null,null,null,null,null),p=Kr(null,d,h,u,null,null,i,a,o,s);let f,m;ke(p,null);try{const t=function(t,e,n,r,s,i){const o=n[1];n[20]=t;const a=Qr(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Ri(a,l,!0),null!==t&&(Ge(s,t,l),null!==a.classes&&ni(s,t,a.classes),null!==a.styles&&ei(s,t,a.styles)));const c=r.createRenderer(t,e),u=Kr(n,ss(e),null,e.onPush?64:16,n[20],a,r,c,void 0);return o.firstCreatePass&&(fn(un(a,n),o,e.type),ms(o,a),ys(a,n.length,1)),Os(n,u),n[20]=u}(c,this.componentDef,p,i,a);if(c)if(n)Ge(a,c,["ng-version",ga.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r<t.length;){let i=t[r];if("string"==typeof i)2===s?""!==i&&e.push(i,t[++r]):8===s&&n.push(i);else{if(!kr(s))break;s=i}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Ge(a,c,t),e&&e.length>0&&ni(a,c,e.join(" "))}if(m=Yt(d,0),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const r=e[n];t.push(null!=r?Array.from(r):null)}}f=function(t,e,n,r,s){const i=n[1],o=function(t,e,n){const r=pe();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),fs(t,r,1),_s(t,e,n));const s=bn(e,t,e.length-1,r);vr(s,e);const i=Xt(r,e);return i&&vr(i,e),s}(i,n,e);r.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=pe();if(i.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){De(a.index-20);const t=n[1];hs(t,e),ds(t,n,e.hostVars),ps(e,o)}return o}(t,this.componentDef,p,h,[Ho]),Zr(d,p,null)}finally{Ie()}const g=new Ha(this.componentType,f,li(la,m,p),p,m);return d.node.child=m,g}}class Ha extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new si(r),function(t,e,n,r){let s=t.node;null==s&&(t.node=s=as(0,null,2,-1,null,null)),r[6]=s}(r[1],0,0,r),this.componentType=t}get injector(){return new Sn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const qa=void 0;var $a=["en",[["a","p"],["AM","PM"],qa],[["AM","PM"],qa,qa],[["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"]],qa,[["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"]],qa,[["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}",qa,"{1} 'at' {0}",qa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Ba={};function za(t,e,n){"string"!=typeof e&&(n=e,e=t[Qa.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Ba[e]=t,n&&(Ba[e][Qa.ExtraData]=n)}function Ga(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Ka(e);if(n)return n;const r=e.split("-")[0];if(n=Ka(r),n)return n;if("en"===r)return $a;throw new Error(`Missing locale data for the locale "${t}".`)}function Wa(t){return Ga(t)[Qa.CurrencyCode]||null}function Ja(t){return Ga(t)[Qa.PluralCase]}function Ka(t){return t in Ba||(Ba[t]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[t]),Ba[t]}var Qa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let Za="en-US";function Xa(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Za=t.toLowerCase().replace(/_/g,"-"))}const Ya=new Map;class tl extends dt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ma(this);const n=Mt(t),r=t[K]||null;r&&Xa(r),this._bootstrapComponents=on(n.bootstrap),this._r3Injector=wi(t,e,[{provide:dt,useValue:this},{provide:aa,useValue:this.componentFactoryResolver}],P(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ai.THROW_IF_NOT_FOUND,n=w.Default){return t===Ai||t===dt||t===Y?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class el extends pt{constructor(t){super(),this.moduleType=t,null!==Mt(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${P(e)} vs ${P(e.name)}`)})(t,Ya.get(t),e),Ya.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new tl(this.moduleType,t)}}function nl(t,e,n){const r=be()+t,s=ue();return s[r]===Pr?Mi(s,r,n?e.call(n):e()):function(t,e){return t[e]}(s,r)}function rl(t,e,n,r){return al(ue(),be(),t,e,n,r)}function sl(t,e,n,r,s){return ll(ue(),be(),t,e,n,r,s)}function il(t,e,n,r,s,i){return function(t,e,n,r,s,i,o,a){const l=e+n;return Ui(t,l,s,i,o)?Mi(t,l+3,a?r.call(a,s,i,o):r(s,i,o)):ol(t,l+3)}(ue(),be(),t,e,n,r,s,i)}function ol(t,e){const n=t[e];return n===Pr?void 0:n}function al(t,e,n,r,s,i){const o=e+n;return Vi(t,o,s)?Mi(t,o+1,i?r.call(i,s):r(s)):ol(t,o+1)}function ll(t,e,n,r,s,i,o){const a=e+n;return Li(t,a,s,i)?Mi(t,a+2,o?r.call(o,s,i):r(s,i)):ol(t,a+2)}function cl(t,e){const n=he();let r;const s=t+20;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const i=r.factory||(r.factory=Ft(r.type)),o=ot(Gi),a=ln(!1),l=i();return ln(a),ot(o),function(t,e,n,r){const s=n+20;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=r}(n,ue(),t,l),l}function ul(t,e,n){const r=ue(),s=te(r,t);return pl(r,dl(r,t)?al(r,be(),e,s.transform,n,s):s.transform(n))}function hl(t,e,n,r){const s=ue(),i=te(s,t);return pl(s,dl(s,t)?ll(s,be(),e,i.transform,n,r,i):i.transform(n,r))}function dl(t,e){return t[1].data[e+20].pure}function pl(t,e){return Pi.isWrapped(e)&&(e=Pi.unwrap(e),t[ve()]=Pr),e}const fl=class extends r.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,i=t=>null,o=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(r,i,o);return t instanceof s.a&&t.add(a),a}};function ml(){return this._results[Ii()]()}class gl{constructor(){this.dirty=!0,this._results=[],this.changes=new fl,this.length=0;const t=Ii(),e=gl.prototype;e[t]||(e[t]=ml)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?(n===e&&(n=e.slice(0,r)),t(s,n)):n!==e&&n.push(s)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class yl{constructor(t){this.queryList=t,this.matches=null}clone(){return new yl(this.queryList)}setDirty(){this.queryList.setDirty()}}class _l{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);r.push(this.queries[n.indexInDeclarationView].clone())}return new _l(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==kl(t,e).matches&&this.queries[e].setDirty()}}class bl{constructor(t,e,n,r=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=r}}class vl{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const r=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(t,r);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new vl(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class wl{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new wl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){if(Array.isArray(this.metadata.predicate)){const n=this.metadata.predicate;for(let r=0;r<n.length;r++)this.matchTNodeWithReadOption(t,e,Sl(e,n[r]))}else{const n=this.metadata.predicate;n===Na?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,_n(e,t,n,!1,!1))}}matchTNodeWithReadOption(t,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===la||r===Pa||r===Na&&0===e.type)this.addMatch(e.index,-2);else{const n=_n(e,t,r,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Sl(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function Cl(t,e,n,r){return-1===n?function(t,e){return 3===t.type||4===t.type?li(la,t,e):0===t.type?ci(Na,la,t,e):null}(e,t):-2===n?function(t,e,n){return n===la?li(la,e,t):n===Na?ci(Na,la,e,t):n===Pa?ui(Pa,la,e,t):void 0}(t,e,r):bn(t,t[1],n,e)}function El(t,e,n,r){const s=e[19].queries[r];if(null===s.matches){const r=t.data,i=n.matches,o=[];for(let t=0;t<i.length;t+=2){const s=i[t];o.push(s<0?null:Cl(e,r[s],i[t+1],n.metadata.read))}s.matches=o}return s.matches}function Ol(t){const e=ue(),n=he(),r=Oe();Te(r+1);const s=kl(n,r);if(t.dirty&&re(e)===s.metadata.isStatic){if(null===s.matches)t.reset([]);else{const i=s.crossesNgTemplate?function t(e,n,r,s){const i=e.queries.getByIndex(r),o=i.matches;if(null!==o){const a=El(e,n,i,r);for(let e=0;e<o.length;e+=2){const r=o[e];if(r>0)s.push(a[e/2]);else{const i=o[e+1],a=n[-r];for(let e=10;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,i,s)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const r=e[n];t(r[1],r,i,s)}}}}}return s}(n,e,r,[]):El(n,e,s,r);t.reset(i),t.notifyOnChanges()}return!0}return!1}function Tl(t,e,n,r){!function(t,e,n,r,s,i,o,a){t.firstCreatePass&&(function(t,e,n){null===t.queries&&(t.queries=new vl),t.queries.track(new wl(e,n))}(t,new bl(n,r,!1,s),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a)),function(t,e){const n=new gl;os(t,e,n,n.destroy),null===e[19]&&(e[19]=new _l),e[19].queries.push(new yl(n))}(t,e)}(he(),ue(),e,n,r,0,pe(),t)}function xl(){return t=ue(),e=Oe(),t[19].queries[e].queryList;var t,e}function kl(t,e){return t.queries.getByIndex(e)}function Al(t,e){return ci(Na,la,t,e)}function jl(t=w.Default){const e=hi(!0);if(null!=e||t&w.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}const Rl=new X("Application Initializer");let Nl=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();no(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(lt(Rl,8))},t.\u0275prov=E({token:t,factory:t.\u0275fac}),t})();const Il=new X("AppId"),Pl={provide:Il,useFactory:function(){return`${Dl()}${Dl()}${Dl()}`},deps:[]};function Dl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Fl=new X("Platform Initializer"),Ml=new X("Platform ID"),Vl=new X("appBootstrapListener");let Ll=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=E({token:t,factory:t.\u0275fac}),t})();const Ul=new X("LocaleId"),Hl=new X("DefaultCurrencyCode");class ql{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const $l=function(t){return new el(t)},Bl=$l,zl=function(t){return Promise.resolve($l(t))},Gl=function(t){const e=$l(t),n=on(Mt(t).declarations).reduce((t,e)=>{const n=Dt(e);return n&&t.push(new Ua(n)),t},[]);return new ql(e,n)},Wl=Gl,Jl=function(t){return Promise.resolve(Gl(t))};let Kl=(()=>{class t{constructor(){this.compileModuleSync=Bl,this.compileModuleAsync=zl,this.compileModuleAndAllComponentsSync=Wl,this.compileModuleAndAllComponentsAsync=Jl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=E({token:t,factory:t.\u0275fac}),t})();const Ql=(()=>Promise.resolve(0))();function Zl(t){"undefined"==typeof Zone?Ql.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Xl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!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(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=B.requestAnimationFrame,e=B.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(B,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,nc(t),ec(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),nc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,s,i,o,a)=>{try{return rc(t),n.invokeTask(s,i,o,a)}finally{e&&"eventTask"===i.type&&e(),sc(t)}},onInvoke:(e,n,r,s,i,o,a)=>{try{return rc(t),e.invoke(r,s,i,o,a)}finally{sc(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,nc(t),ec(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Xl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Xl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,t,tc,Yl,Yl);try{return s.runTask(i,e,n)}finally{s.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Yl(){}const tc={};function ec(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function nc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function rc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function sc(t){t._nesting--,ec(t)}class ic{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(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let oc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Xl.assertNotInAngularZone(),Zl(()=>{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())Zl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(lt(Xl))},t.\u0275prov=E({token:t,factory:t.\u0275fac}),t})(),ac=(()=>{class t{constructor(){this._applications=new Map,hc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return hc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=E({token:t,factory:t.\u0275fac}),t})();class lc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function cc(t){hc=t}let uc,hc=new lc;const dc=new X("AllowMultipleToken");class pc{constructor(t,e){this.name=t,this.token=e}}function fc(t,e,n=[]){const r="Platform: "+e,s=new X(r);return(e=[])=>{let i=mc();if(!i||i.injector.get(dc,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:mi,useValue:"platform"});!function(t){if(uc&&!uc.destroyed&&!uc.injector.get(dc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");uc=t.get(gc);const e=t.get(Fl,null);e&&e.forEach(t=>t())}(Ai.create({providers:t,name:r}))}return function(t){const e=mc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function mc(){return uc&&!uc.destroyed?uc:null}let gc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new ic:("zone.js"===t?void 0:t)||new Xl({enableLongStackTrace:zn(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:Xl,useValue:n}];return n.run(()=>{const e=Ai.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),i=s.injector.get(kn,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>bc(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{i.handleError(t)}})),function(t,e,n){try{const r=n();return no(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(i,n,()=>{const t=s.injector.get(Nl);return t.runInitializers(),t.donePromise.then(()=>(Xa(s.injector.get(Ul,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=yc({},e);return function(t,e,n){const r=new el(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(_c);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${P(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(lt(Ai))},t.\u0275prov=E({token:t,factory:t.\u0275fac}),t})();function yc(t,e){return Array.isArray(e)?e.reduce(yc,t):Object.assign(Object.assign({},t),e)}let _c=(()=>{class t{constructor(t,e,n,r,s,a){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=zn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new i.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new i.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Xl.assertNotInAngularZone(),Zl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Xl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(c,u.pipe(t=>{return l()((e=f,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,d);return r.source=t,r.subjectFactory=n,r})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof ia?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(dt),s=n.create(Ai.NULL,[],e||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(oc,null);return i&&s.injector.get(ac).registerApplication(s.location.nativeElement,i),this._loadComponent(s),zn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;bc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Vl,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),bc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(lt(Xl),lt(Ll),lt(Ai),lt(kn),lt(aa),lt(Nl))},t.\u0275prov=E({token:t,factory:t.\u0275fac}),t})();function bc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class vc{}class wc{}const Sc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Cc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Sc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("zn8P")(e).then(t=>t[r]).then(t=>Ec(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+s]).then(t=>Ec(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(lt(Kl),lt(wc,8))},t.\u0275prov=E({token:t,factory:t.\u0275fac}),t})();function Ec(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Oc=function(t){return null},Tc=fc(null,"core",[{provide:Ml,useValue:"unknown"},{provide:gc,deps:[Ai]},{provide:ac,deps:[]},{provide:Ll,deps:[]}]),xc=[{provide:_c,useClass:_c,deps:[Xl,Ll,Ai,kn,aa,Nl]},{provide:La,deps:[Xl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Nl,useClass:Nl,deps:[[new _,Rl]]},{provide:Kl,useClass:Kl,deps:[]},Pl,{provide:xa,useFactory:function(){return ja},deps:[]},{provide:ka,useFactory:function(){return Ra},deps:[]},{provide:Ul,useFactory:function(t){return Xa(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new y(Ul),new _,new v]]},{provide:Hl,useValue:"USD"}];let kc=(()=>{class t{constructor(t){}}return t.\u0275mod=jt({type:t}),t.\u0275inj=O({factory:function(e){return new(e||t)(lt(_c))},providers:xc}),t})()},gRHU:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("2fFW"),s=n("NJ4a");const i={closed:!0,next(t){},error(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(s.a)(t)},complete(){}}},jZKg:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("HDdC"),s=n("quSY");function i(t,e){return new r.a(n=>{const r=new s.a;let i=0;return r.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}},jhN1:function(t,e,n){"use strict";n.d(e,"a",(function(){return P})),n.d(e,"b",(function(){return N})),n.d(e,"c",(function(){return w}));var r=n("ofXK"),s=n("fXoL");class i extends r.p{constructor(){super()}supportsDOMEvents(){return!0}}class o extends i{static makeCurrent(){Object(r.t)(new o)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=l||(l=document.querySelector("base"),l)?l.getAttribute("href"):null;return null==e?null:(n=e,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(r.s)(document.cookie,t)}}let a,l=null;const c=new s.q("TRANSITION_ID"),u=[{provide:s.d,useFactory:function(t,e,n){return()=>{n.get(s.e).donePromise.then(()=>{const n=Object(r.r)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[c,r.c,s.r],multi:!0}];class h{static init(){Object(s.V)(new h)}addToWindow(t){s.mb.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},s.mb.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.mb.getAllAngularRootElements=()=>t.getAllRootElements(),s.mb.frameworkStabilizers||(s.mb.frameworkStabilizers=[]),s.mb.frameworkStabilizers.push(t=>{const e=s.mb.getAllAngularTestabilities();let n=e.length,r=!1;const i=function(e){r=r||e,n--,0==n&&t(r)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?Object(r.r)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new s.q("EventManagerPlugins");let p=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r<n.length;r++){const e=n[r];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(d),s.Sb(s.z))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();class f{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const s=Object(r.r)().getGlobalEventTarget(this._doc,t);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,n)}}let m=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})(),g=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(r.r)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(r.c))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();const y={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/"},_=/%COMP%/g;function b(t,e,n){for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?b(t,s,n):(s=s.replace(_,t),n.push(s))}return n}function v(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let w=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new S(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.P.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new C(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case s.P.Native:case s.P.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=b(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(p),s.Sb(g),s.Sb(s.c))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();class S{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(y[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=y[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=y[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&s.F.DashCase?t.style.setProperty(e,n,r&s.F.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.F.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(n)):this.eventManager.addEventListener(t,e,v(n))}}class C extends S{constructor(t,e,n,r){super(t),this.component=n;const s=b(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(_,r+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(_,t)}(r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class E extends S{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===s.P.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=b(r.id,r.styles,[]);for(let s=0;s<i.length;s++){const t=document.createElement("style");t.textContent=i[s],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let O=(()=>{class t extends f{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(r.c))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();const T=["alt","control","meta","shift"],x={"\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"},k={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"},A={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let j=(()=>{class t extends f{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const i=t.parseEventName(n),o=t.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(r.r)().onAndCancel(e,i.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(n.pop());let i="";if(T.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&k.hasOwnProperty(e)&&(e=k[e]))}return x[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),T.forEach(r=>{r!=n&&(0,A[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(r.c))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();const R=[{provide:s.B,useValue:r.q},{provide:s.C,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:r.c,useFactory:function(){return Object(s.rb)(document),document},deps:[]}],N=Object(s.Q)(s.U,"browser",R),I=[[],{provide:s.X,useValue:"root"},{provide:s.m,useFactory:function(){return new s.m},deps:[]},{provide:d,useClass:O,multi:!0,deps:[r.c,s.z,s.B]},{provide:d,useClass:j,multi:!0,deps:[r.c]},[],{provide:w,useClass:w,deps:[p,g,s.c]},{provide:s.E,useExisting:w},{provide:m,useExisting:g},{provide:g,useClass:g,deps:[r.c]},{provide:s.L,useClass:s.L,deps:[s.z]},{provide:p,useClass:p,deps:[d,s.z]},[]];let P=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.c,useValue:e.appId},{provide:c,useExisting:s.c},u]}}}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)(s.Sb(t,12))},providers:I,imports:[r.b,s.f]}),t})();"undefined"!=typeof window&&window},kJWO:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},l7GE:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q");class s extends r.a{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},lJxs:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q");function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new i(t,e))}}class i{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends r.a{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},lUod:function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return a})),n("fXoL");class r{constructor(t,e){this.open=t,this.close=e||t}isManual(){return"manual"===this.open||"manual"===this.close}}const s={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function i(t,e=s){const n=(t||"").trim();if(0===n.length)return[];const i=n.split(/\s+/).map(t=>t.split(":")).map(t=>{const n=e[t[0]]||t;return new r(n[0],n[1])}),o=i.filter(t=>t.isManual());if(o.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===o.length&&i.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return i}function o(t,e){const n=i(e.triggers),r=e.target;if(1===n.length&&n[0].isManual())return Function.prototype;const s=[],o=[],a=()=>{o.forEach(t=>s.push(t())),o.length=0};return n.forEach(n=>{const i=n.open===n.close,l=i?e.toggle:e.show;i||o.push(()=>t.listen(r,n.close,e.hide)),s.push(t.listen(r,n.open,()=>l(a)))}),()=>{s.forEach(t=>t())}}function a(t,e){return e.outsideClick?t.listen("document","click",t=>{e.target&&e.target.contains(t.target)||e.targets&&e.targets.some(e=>e.contains(t.target))||e.hide()}):Function.prototype}function l(t,e){return e.outsideEsc?t.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}const c="undefined"!=typeof window&&window||{};let u;function h(){return void 0===c||(void 0===c.__theme?(u||(u=function(){if("undefined"==typeof document)return null;const t=document.createElement("span");t.innerText="test bs version",document.body.appendChild(t),t.classList.add("d-none");const e=t.getBoundingClientRect();return document.body.removeChild(t),e&&0===e.top?"bs4":"bs3"}()),"bs3"===u):"bs4"!==c.__theme)}"undefined"==typeof console||console},n6bG:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},ngJS:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}},ofXK:function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return L})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return S})),n.d(e,"e",(function(){return h})),n.d(e,"f",(function(){return C})),n.d(e,"g",(function(){return _})),n.d(e,"h",(function(){return R})),n.d(e,"i",(function(){return I})),n.d(e,"j",(function(){return D})),n.d(e,"k",(function(){return V})),n.d(e,"l",(function(){return w})),n.d(e,"m",(function(){return c})),n.d(e,"n",(function(){return q})),n.d(e,"o",(function(){return H})),n.d(e,"p",(function(){return a})),n.d(e,"q",(function(){return U})),n.d(e,"r",(function(){return i})),n.d(e,"s",(function(){return j})),n.d(e,"t",(function(){return o}));var r=n("fXoL");let s=null;function i(){return s}function o(t){s||(s=t)}class a{}const l=new r.q("DocumentToken");let c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Fb)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return Object(r.Sb)(d)}const h=new r.q("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=i().getLocation(),this._history=i().getHistory()}getBaseHrefFromDOM(){return i().getBaseHref(this._doc)}onPopState(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(l))},t.\u0275prov=Object(r.Fb)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d(Object(r.Sb)(l))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function y(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Fb)({factory:b,token:t,providedIn:"root"}),t})();function b(t){const e=Object(r.Sb)(l).location;return new w(Object(r.Sb)(c),e&&e.origin||"")}const v=new r.q("appBaseHref");let w=(()=>{class t extends _{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+y(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+y(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+y(r));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(c),r.Sb(v,8))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),S=(()=>{class t extends _{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+y(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+y(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(c),r.Sb(v,8))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new r.n,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(O(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+y(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,O(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+y(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+y(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(_),r.Sb(c))},t.normalizeQueryParams=y,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=Object(r.Fb)({factory:E,token:t,providedIn:"root"}),t})();function E(){return new C(Object(r.Sb)(_),Object(r.Sb)(c))}function O(t){return t.replace(/\/index.html$/,"")}var T=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});const x=r.kb;class k{}let A=(()=>{class t extends k{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(x(e||this.locale)(t)){case T.Zero:return"zero";case T.One:return"one";case T.Two:return"two";case T.Few:return"few";case T.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(r.u))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();function j(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}let R=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(r.nb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r.sb)(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.s),r.Jb(r.t),r.Jb(r.l),r.Jb(r.D))},t.\u0275dir=r.Eb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class N{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let I=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Object(r.T)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new N(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new P(t,n);e.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new P(t,s);e.push(i)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=r,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.O),r.Jb(r.K),r.Jb(r.s))},t.\u0275dir=r.Eb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class P{constructor(t,e){this.record=t,this.view=e}}let D=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new F,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){M("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){M("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.O),r.Jb(r.K))},t.\u0275dir=r.Eb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class F{constructor(){this.$implicit=null,this.ngIf=null}}function M(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(r.sb)(e)}'.`)}let V=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,r]=t.split(".");null!=(e=null!=e&&r?`${e}${r}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.l),r.Jb(r.t),r.Jb(r.D))},t.\u0275dir=r.Eb({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),L=(()=>{class t{}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},providers:[{provide:k,useClass:A}]}),t})();const U="browser";function H(t){return t===U}let q=(()=>{class t{}return t.\u0275prov=Object(r.Fb)({token:t,providedIn:"root",factory:()=>new $(Object(r.Sb)(l),window,Object(r.Sb)(r.m))}),t})();class ${constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}},pLZG:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q");function s(t,e){return function(n){return n.lift(new i(t,e))}}class i{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends r.a{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},quSY:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("DH7j"),s=n("XoHu"),i=n("n6bG");const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:a,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(Object(i.a)(a))try{a.call(this)}catch(u){e=u instanceof o?l(u.errors):[u]}if(Object(r.a)(c)){let t=-1,n=c.length;for(;++t<n;){const n=c[t];if(Object(s.a)(n))try{n.unsubscribe()}catch(u){e=e||[],u instanceof o?e=e.concat(l(u.errors)):e.push(u)}}}if(e)throw new o(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof t){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var e;return t.EMPTY=((e=new t).closed=!0,e),t})();function l(t){return t.reduce((t,e)=>t.concat(e instanceof o?e.errors:e),[])}},s3T5:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return h}));var r=n("fXoL"),s=n("3Pt+");const i={provide:s.c,useExisting:Object(r.S)(()=>o),multi:!0};let o=(()=>{class t{constructor(){this.btnCheckboxTrue=!0,this.btnCheckboxFalse=!1,this.state=!1,this.onChange=Function.prototype,this.onTouched=Function.prototype}onClick(){this.isDisabled||(this.toggle(!this.state),this.onChange(this.value))}ngOnInit(){this.toggle(this.trueValue===this.value)}get trueValue(){return void 0===this.btnCheckboxTrue||this.btnCheckboxTrue}get falseValue(){return void 0!==this.btnCheckboxFalse&&this.btnCheckboxFalse}toggle(t){this.state=t,this.value=this.state?this.trueValue:this.falseValue}writeValue(t){this.state=this.trueValue===t,this.value=t?this.trueValue:this.falseValue}setDisabledState(t){this.isDisabled=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Eb({type:t,selectors:[["","btnCheckbox",""]],hostVars:3,hostBindings:function(t,e){1&t&&r.Vb("click",(function(){return e.onClick()})),2&t&&(r.yb("aria-pressed",e.state),r.Bb("active",e.state))},inputs:{btnCheckboxTrue:"btnCheckboxTrue",btnCheckboxFalse:"btnCheckboxFalse"},features:[r.wb([i])]}),t})();const a={provide:s.c,useExisting:Object(r.S)(()=>l),multi:!0};let l=(()=>{class t{constructor(t,e,n,r){this.el=t,this.cdr=e,this.group=n,this.renderer=r,this.onChange=Function.prototype,this.onTouched=Function.prototype}get value(){return this.group?this.group.value:this._value}set value(t){this.group?this.group.value=t:this._value=t}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this.setDisabledState(t)}get isActive(){return this.btnRadio===this.value}onClick(){this.el.nativeElement.attributes.disabled||!this.uncheckable&&this.btnRadio===this.value||(this.value=this.uncheckable&&this.btnRadio===this.value?void 0:this.btnRadio,this._onChange(this.value))}ngOnInit(){this.uncheckable=void 0!==this.uncheckable}onBlur(){this.onTouched()}_onChange(t){if(this.group)return this.group.onTouched(),void this.group.onChange(t);this.onTouched(),this.onChange(t)}writeValue(t){this.value=t,this.cdr.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){t?this.renderer.setAttribute(this.el.nativeElement,"disabled","disabled"):this.renderer.removeAttribute(this.el.nativeElement,"disabled")}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.l),r.Jb(r.h),r.Jb(u,8),r.Jb(r.D))},t.\u0275dir=r.Eb({type:t,selectors:[["","btnRadio",""]],hostVars:3,hostBindings:function(t,e){1&t&&r.Vb("click",(function(){return e.onClick()})),2&t&&(r.yb("aria-pressed",e.isActive),r.Bb("active",e.isActive))},inputs:{value:"value",disabled:"disabled",uncheckable:"uncheckable",btnRadio:"btnRadio"},features:[r.wb([a])]}),t})();const c={provide:s.c,useExisting:Object(r.S)(()=>u),multi:!0};let u=(()=>{class t{constructor(t){this.cdr=t,this.onChange=Function.prototype,this.onTouched=Function.prototype}get value(){return this._value}set value(t){this._value=t}writeValue(t){this._value=t,this.cdr.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.radioButtons&&this.radioButtons.forEach(e=>{e.setDisabledState(t)})}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.h))},t.\u0275dir=r.Eb({type:t,selectors:[["","btnRadioGroup",""]],contentQueries:function(t,e,n){var s;1&t&&r.Cb(n,l,!1),2&t&&r.nc(s=r.Wb())&&(e.radioButtons=s)},features:[r.wb([c])]}),t})(),h=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)}}),t})()},"tk/3":function(t,e,n){"use strict";n.d(e,"a",(function(){return T})),n.d(e,"b",(function(){return H})),n.d(e,"c",(function(){return d}));var r=n("fXoL"),s=n("LRne"),i=n("HDdC"),o=n("bOdf"),a=n("pLZG"),l=n("lJxs"),c=n("ofXK");class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const r=t.indexOf("="),[s,i]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function g(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function y(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _(t){return"undefined"!=typeof FormData&&t instanceof FormData}class b{constructor(t,e,n,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new m,this.urlWithParams=e}serializeBody(){return null===this.body?null:g(this.body)||y(this.body)||_(this.body)||"string"==typeof this.body?this.body:this.body instanceof m?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||_(this.body)?null:y(this.body)?this.body.type||null:g(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof m?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,r=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,i=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new b(e,n,s,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:i})}}var v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class w{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class S extends w{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new S({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class C extends w{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new C({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class E extends w{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function O(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let T=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof b)r=t;else{let s=void 0;s=n.headers instanceof d?n.headers:new d(n.headers);let i=void 0;n.params&&(i=n.params instanceof m?n.params:new m({fromObject:n.params})),r=new b(t,e,void 0!==n.body?n.body:null,{headers:s,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Object(s.a)(r).pipe(Object(o.a)(t=>this.handler.handle(t)));if(t instanceof b||"events"===n.observe)return i;const c=i.pipe(Object(a.a)(t=>t instanceof C));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return c.pipe(Object(l.a)(t=>t.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,O(n,e))}post(t,e,n={}){return this.request("POST",t,O(n,e))}put(t,e,n={}){return this.request("PUT",t,O(n,e))}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(u))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();class x{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const k=new r.q("HTTP_INTERCEPTORS");let A=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();const j=/^\)\]\}',?\n/;class R{}let N=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new i.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,r=n.statusText||"OK",i=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new S({headers:i,status:e,statusText:r,url:o}),s},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(j,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new C({body:l,headers:r,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new E({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:r}=i(),s=new E({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(s)};let l=!1;const c=r=>{l||(e.next(i()),l=!0);let s={type:v.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(R))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();const P=new r.q("XSRF_COOKIE_NAME"),D=new r.q("XSRF_HEADER_NAME");class F{}let M=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(c.s)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(c.c),r.Sb(r.B),r.Sb(P))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(F),r.Sb(D))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(k,[]);this.chain=t.reduceRight((t,e)=>new x(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(h),r.Sb(r.r))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),U=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:V,useClass:A}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:P,useValue:e.cookieName}:[],e.headerName?{provide:D,useValue:e.headerName}:[]]}}}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},providers:[V,{provide:k,useExisting:V,multi:!0},{provide:F,useClass:M},{provide:P,useValue:"XSRF-TOKEN"},{provide:D,useValue:"X-XSRF-TOKEN"}]}),t})(),H=(()=>{class t{}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},providers:[T,{provide:u,useClass:L},I,{provide:h,useExisting:I},N,{provide:R,useExisting:N}],imports:[[U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tyNb:function(t,e,n){"use strict";n.d(e,"a",(function(){return he})),n.d(e,"b",(function(){return at})),n.d(e,"c",(function(){return ot})),n.d(e,"d",(function(){return lt})),n.d(e,"e",(function(){return it})),n.d(e,"f",(function(){return wn})),n.d(e,"g",(function(){return Sn})),n.d(e,"h",(function(){return Cn})),n.d(e,"i",(function(){return Dn})),n.d(e,"j",(function(){return On}));var r=n("ofXK"),s=n("fXoL"),i=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),l=n("HDdC");const c=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var u=n("z+Ro"),h=n("DH7j"),d=n("l7GE"),p=n("ZUHj"),f=n("yCtX");const m={};class g{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new y(t,this.resultSelector))}}class y extends d.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(m),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++){const e=t[n];this.add(Object(p.a)(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,r,s){const i=this.values,o=this.toRespond?i[n]===m?--this.toRespond:this.toRespond:0;i[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}var _=n("EY2u");function b(t){return new l.a(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?Object(o.a)(n):Object(_.b)()).subscribe(e)})}var v=n("XNiG"),w=n("lJxs"),S=n("bHdf");function C(){return Object(S.a)(1)}var E=n("pLZG"),O=n("7o/Q");const T=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function x(t){return function(e){return 0===t?Object(_.b)():e.lift(new k(t))}}class k{constructor(t){if(this.total=t,this.total<0)throw new T}call(t,e){return e.subscribe(new A(t,this.total))}}class A extends O.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<n;s++){const s=e++%n;t.next(r[s])}}t.complete()}}function j(t=I){return e=>e.lift(new R(t))}class R{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new N(t,this.errorFactory))}}class N extends O.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function I(){return new c}function P(t=null){return e=>e.lift(new D(t))}class D{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new F(t,this.defaultValue))}}class F extends O.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var M=n("SpAZ"),V=n("JIr8");function L(t){return e=>0===t?Object(_.b)():e.lift(new U(t))}class U{constructor(t){if(this.total=t,this.total<0)throw new T}call(t,e){return e.subscribe(new H(t,this.total))}}class H extends O.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function q(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Object(E.a)((e,n)=>t(e,n,r)):M.a,L(1),n?P(e):j(()=>new c))}var $=n("5+tZ"),B=n("vkgz");class z{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new G(t,this.predicate,this.thisArg,this.source))}}class G extends O.a{constructor(t,e,n,r){super(t),this.predicate=e,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var W=n("51Dv");function J(t,e){return"function"==typeof e?n=>n.pipe(J((n,r)=>Object(o.a)(t(n,r)).pipe(Object(w.a)((t,s)=>e(n,t,r,s))))):e=>e.lift(new K(t))}class K{constructor(t){this.project=t}call(t,e){return e.subscribe(new Q(t,this.project))}}class Q extends d.a{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)}_innerSub(t,e,n){const r=this.innerSubscription;r&&r.unsubscribe();const s=new W.a(this,e,n),i=this.destination;i.add(s),this.innerSubscription=Object(p.a)(this,t,void 0,void 0,s),this.innerSubscription!==s&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,r,s){this.destination.next(e)}}function Z(...t){return C()(Object(i.a)(...t))}class X{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new Y(t,this.accumulator,this.seed,this.hasSeed))}}class Y extends O.a{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}var tt=n("bOdf"),et=n("quSY");class nt{constructor(t){this.callback=t}call(t,e){return e.subscribe(new rt(t,this.callback))}}class rt extends O.a{constructor(t,e){super(t),this.add(new et.a(e))}}class st{constructor(t,e){this.id=t,this.url=e}}class it extends st{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ot extends st{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class at extends st{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class lt extends st{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ct extends st{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ut extends st{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ht extends st{constructor(t,e,n,r,s){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class dt extends st{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pt extends st{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ft{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class mt{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class gt{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yt{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _t{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bt{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vt{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Db({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Kb(0,"router-outlet")},directives:function(){return[On]},encapsulation:2}),t})();class St{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ct(t){return new St(t)}function Et(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ot(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;const s={};for(let i=0;i<r.length;i++){const e=r[i],n=t[i];if(e.startsWith(":"))s[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,r.length),posParams:s}}class Tt{constructor(t,e){this.routes=t,this.module=e}}function xt(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];kt(r,At(e,r))}}function kt(t,e){if(!t)throw new Error(`\n      Invalid configuration of route '${e}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&xt(t.children,e)}function At(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function jt(t){const e=t.children&&t.children.map(jt),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=wt),n}function Rt(t,e){const n=Object.keys(t),r=Object.keys(e);if(!n||!r||n.length!=r.length)return!1;let s;for(let i=0;i<n.length;i++)if(s=n[i],!Nt(t[s],e[s]))return!1;return!0}function Nt(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function It(t){return Array.prototype.concat.apply([],t)}function Pt(t){return t.length>0?t[t.length-1]:null}function Dt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Ft(t){return Object(s.ob)(t)?t:Object(s.pb)(t)?Object(o.a)(Promise.resolve(t)):Object(i.a)(t)}function Mt(t,e,n){return n?function(t,e){return Rt(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Ht(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Nt(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,s){if(n.segments.length>s.length)return!!Ht(n.segments.slice(0,s.length),s)&&!r.hasChildren();if(n.segments.length===s.length){if(!Ht(n.segments,s))return!1;for(const e in r.children){if(!n.children[e])return!1;if(!t(n.children[e],r.children[e]))return!1}return!0}{const t=s.slice(0,n.segments.length),i=s.slice(n.segments.length);return!!Ht(n.segments,t)&&!!n.children.primary&&e(n.children.primary,r,i)}}(e,n,n.segments)}(t.root,e.root)}class Vt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ct(this.queryParams)),this._queryParamMap}toString(){return zt.serialize(this)}}class Lt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Dt(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gt(this)}}class Ut{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ct(this.parameters)),this._parameterMap}toString(){return Xt(this)}}function Ht(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function qt(t,e){let n=[];return Dt(t.children,(t,r)=>{"primary"===r&&(n=n.concat(e(t,r)))}),Dt(t.children,(t,r)=>{"primary"!==r&&(n=n.concat(e(t,r)))}),n}class $t{}class Bt{parse(t){const e=new re(t);return new Vt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return Gt(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",r=[];return Dt(e.children,(e,n)=>{"primary"!==n&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=qt(e,(n,r)=>"primary"===r?[t(e.children.primary,!1)]:[`${r}:${t(n,!1)}`]);return`${Gt(e)}/(${n.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Jt(e)}=${Jt(t)}`).join("&"):`${Jt(e)}=${Jt(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const zt=new Bt;function Gt(t){return t.segments.map(t=>Xt(t)).join("/")}function Wt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jt(t){return Wt(t).replace(/%3B/gi,";")}function Kt(t){return Wt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qt(t){return decodeURIComponent(t)}function Zt(t){return Qt(t.replace(/\+/g,"%20"))}function Xt(t){return`${Kt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Kt(t)}=${Kt(e[t])}`).join("")}`;var e}const Yt=/^[^\/()?;=#]+/;function te(t){const e=t.match(Yt);return e?e[0]:""}const ee=/^[^=?&#]+/,ne=/^[^?&#]+/;class re{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Lt([],{}):new Lt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Lt(t,e)),n}parseSegment(){const t=te(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Ut(Qt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=te(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=te(this.remaining);t&&(n=t,this.capture(n))}t[Qt(e)]=Qt(n)}parseQueryParam(t){const e=function(t){const e=t.match(ee);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(ne);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=Zt(e),s=Zt(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=te(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const i=this.parseChildren();e[s]=1===Object.keys(i).length?i.primary:new Lt([],i),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class se{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=ie(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=ie(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=oe(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return oe(t,this._root).map(t=>t.value)}}function ie(t,e){if(t===e.value)return e;for(const n of e.children){const e=ie(t,n);if(e)return e}return null}function oe(t,e){if(t===e.value)return[e];for(const n of e.children){const r=oe(t,n);if(r.length)return r.unshift(e),r}return[]}class ae{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function le(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class ce extends se{constructor(t,e){super(t),this.snapshot=e,me(this,t)}toString(){return this.snapshot.toString()}}function ue(t,e){const n=function(t,e){const n=new pe([],{},{},"",{},"primary",e,null,t.root,-1,{});return new fe("",new ae(n,[]))}(t,e),r=new a.a([new Ut("",{})]),s=new a.a({}),i=new a.a({}),o=new a.a({}),l=new a.a(""),c=new he(r,s,o,l,i,"primary",e,n.root);return c.snapshot=n.root,new ce(new ae(c,[]),n)}class he{constructor(t,e,n,r,s,i,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,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(Object(w.a)(t=>Ct(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(w.a)(t=>Ct(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function de(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class pe{constructor(t,e,n,r,s,i,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,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=Ct(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ct(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class fe extends se{constructor(t,e){super(e),this.url=t,me(this,e)}toString(){return ge(this._root)}}function me(t,e){e.value._routerState=t,e.children.forEach(e=>me(t,e))}function ge(t){const e=t.children.length>0?` { ${t.children.map(ge).join(", ")} } `:"";return`${t.value}${e}`}function ye(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Rt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Rt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!Rt(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Rt(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function _e(t,e){var n,r;return Rt(t.params,e.params)&&Ht(n=t.url,r=e.url)&&n.every((t,e)=>Rt(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||_e(t.parent,e.parent))}function be(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ve(t,e,n,r,s){let i={};return r&&Dt(r,(t,e)=>{i[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new Vt(n.root===t?e:function t(e,n,r){const s={};return Dt(e.children,(e,i)=>{s[i]=e===n?r:t(e,n,r)}),new Lt(e.segments,s)}(n.root,t,e),i,s)}class we{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&be(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(r&&r!==Pt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Se{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Ce(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function Ee(t,e,n){if(t||(t=new Lt([],{})),0===t.segments.length&&t.hasChildren())return Oe(t,e,n);const r=function(t,e,n){let r=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(r>=n.length)return i;const e=t.segments[s],o=Ce(n[r]),a=r<n.length-1?n[r+1]:null;if(s>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!Ae(o,a,e))return i;r+=2}else{if(!Ae(o,{},e))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(t,e,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const e=new Lt(t.segments.slice(0,r.pathIndex),{});return e.children.primary=new Lt(t.segments.slice(r.pathIndex),t.children),Oe(e,0,s)}return r.match&&0===s.length?new Lt(t.segments,{}):r.match&&!t.hasChildren()?Te(t,e,n):r.match?Oe(t,0,s):Te(t,e,n)}function Oe(t,e,n){if(0===n.length)return new Lt(t.segments,{});{const r=function(t){return"object"==typeof t[0]&&null!==t[0]&&t[0].outlets?t[0].outlets:{primary:t}}(n),s={};return Dt(r,(n,r)=>{null!==n&&(s[r]=Ee(t.children[r],e,n))}),Dt(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new Lt(t.segments,s)}}function Te(t,e,n){const r=t.segments.slice(0,e);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&null!==n[s]&&void 0!==n[s].outlets){const t=xe(n[s].outlets);return new Lt(r,t)}if(0===s&&be(n[0])){r.push(new Ut(t.segments[e].path,n[0])),s++;continue}const i=Ce(n[s]),o=s<n.length-1?n[s+1]:null;i&&o&&be(o)?(r.push(new Ut(i,ke(o))),s+=2):(r.push(new Ut(i,{})),s++)}return new Lt(r,{})}function xe(t){const e={};return Dt(t,(t,n)=>{null!==t&&(e[n]=Te(new Lt([],{}),0,t))}),e}function ke(t){const e={};return Dt(t,(t,n)=>e[n]=""+t),e}function Ae(t,e,n){return t==n.path&&Rt(e,n.parameters)}class je{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),ye(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=le(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),Dt(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const r=le(t),s=t.value.component?n.children:e;Dt(r,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=le(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new bt(t.value.snapshot))}),t.children.length&&this.forwardEvent(new yt(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(ye(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Re(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=s,e.outlet&&e.outlet.activateWith(r,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Re(t){ye(t.value),t.children.forEach(Re)}function Ne(t){return"function"==typeof t}function Ie(t){return t instanceof Vt}class Pe{constructor(t){this.segmentGroup=t||null}}class De{constructor(t){this.urlTree=t}}function Fe(t){return new l.a(e=>e.error(new Pe(t)))}function Me(t){return new l.a(e=>e.error(new De(t)))}function Ve(t){return new l.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Le{constructor(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(s.x)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(w.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(V.a)(t=>{if(t instanceof De)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Pe)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(w.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(V.a)(t=>{if(t instanceof Pe)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new Lt([],{primary:t}):t;return new Vt(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(w.a)(t=>new Lt([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Object(i.a)({});const n=[],r=[],s={};return Dt(t,(t,i)=>{const o=e(i,t).pipe(Object(w.a)(t=>s[i]=t));"primary"===i?n.push(o):r.push(o)}),i.a.apply(null,n.concat(r)).pipe(C(),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Object(E.a)((e,n)=>t(e,n,r)):M.a,x(1),n?P(e):j(()=>new c))}(),Object(w.a)(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,s,o){return Object(i.a)(...n).pipe(Object(w.a)(a=>this.expandSegmentAgainstRoute(t,e,n,a,r,s,o).pipe(Object(V.a)(t=>{if(t instanceof Pe)return Object(i.a)(null);throw t}))),C(),q(t=>!!t),Object(V.a)((t,n)=>{if(t instanceof c||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,s))return Object(i.a)(new Lt([],{}));throw new Pe(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,s,i,o){return $e(r)!==i?Fe(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i):Fe(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Me(s):this.lineralizeSegments(n,s).pipe(Object($.a)(n=>{const s=new Lt(n,{});return this.expandSegment(t,s,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Ue(e,r,s);if(!o)return Fe(e);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?Me(u):this.lineralizeSegments(r,u).pipe(Object($.a)(r=>this.expandSegment(t,e,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(w.a)(t=>(n._loadedConfig=t,new Lt(r,{})))):Object(i.a)(new Lt(r,{}));const{matched:s,consumedSegments:o,lastChild:a}=Ue(e,n,r);if(!s)return Fe(e);const l=r.slice(a);return this.getChildConfig(t,n,r).pipe(Object($.a)(t=>{const n=t.module,r=t.routes,{segmentGroup:s,slicedSegments:a}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>qe(t,e,n)&&"primary"!==$e(n))}(t,n,r)?{segmentGroup:He(new Lt(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&"primary"!==$e(r)&&(n[$e(r)]=new Lt([],{}));return n}(r,new Lt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>qe(t,e,n))}(t,n,r)?{segmentGroup:He(new Lt(t.segments,function(t,e,n,r){const s={};for(const i of n)qe(t,e,i)&&!r[$e(i)]&&(s[$e(i)]=new Lt([],{}));return Object.assign(Object.assign({},r),s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,l,r);return 0===a.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(Object(w.a)(t=>new Lt(o,t))):0===r.length&&0===a.length?Object(i.a)(new Lt(o,{})):this.expandSegment(n,s,r,a,"primary",!0).pipe(Object(w.a)(t=>new Lt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(i.a)(new Tt(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(i.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object($.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(w.a)(t=>(e._loadedConfig=t,t))):function(t){return new l.a(e=>e.error(Et(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(i.a)(new Tt([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?Object(o.a)(r).pipe(Object(w.a)(r=>{const s=t.get(r);let i;if(function(t){return t&&Ne(t.canLoad)}(s))i=s.canLoad(e,n);else{if(!Ne(s))throw new Error("Invalid CanLoad guard");i=s(e,n)}return Ft(i)})).pipe(C(),Object(B.a)(t=>{if(!Ie(t))return;const e=Et(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(s=t=>!0===t,t=>t.lift(new z(s,void 0,t)))):Object(i.a)(!0);var s}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(i.a)(n);if(r.numberOfChildren>1||!r.children.primary)return Ve(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new Vt(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Dt(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[r]=e[s]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let i={};return Dt(e.children,(e,s)=>{i[s]=this.createSegmentGroup(t,e,n,r)}),new Lt(s,i)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function Ue(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(e.matcher||Ot)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function He(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Lt(t.segments.concat(e.segments),e.children)}return t}function qe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function $e(t){return t.outlet||"primary"}class Be{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class ze{constructor(t,e){this.component=t,this.route=e}}function Ge(t,e,n){const r=t._root;return function t(e,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=le(n);return e.children.forEach(e=>{!function(e,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,l=r?r.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Ht(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ht(t.url,e.url)||!Rt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!_e(t,e)||!Rt(t.queryParams,e.queryParams);case"paramsChange":default:return!_e(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Be(s)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?l?l.children:null:r,s,i),c&&i.canDeactivateChecks.push(new ze(l&&l.outlet&&l.outlet.component||null,a))}else a&&Je(n,l,i),i.canActivateChecks.push(new Be(s)),t(e,null,o.component?l?l.children:null:r,s,i)}(e,o[e.value.outlet],r,s.concat([e.value]),i),delete o[e.value.outlet]}),Dt(o,(t,e)=>Je(t,r.getContext(e),i)),i}(r,e?e._root:null,n,[r.value])}function We(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Je(t,e,n){const r=le(t),s=t.value;Dt(r,(t,r)=>{Je(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new ze(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const Ke=Symbol("INITIAL_VALUE");function Qe(){return J(t=>function(...t){let e=null,n=null;return Object(u.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(h.a)(t[0])&&(t=t[0]),Object(f.a)(t,n).lift(new g(e))}(...t.map(t=>t.pipe(L(1),function(...t){const e=t[t.length-1];return Object(u.a)(e)?(t.pop(),n=>Z(t,n,e)):e=>Z(t,e)}(Ke)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new X(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==Ke)return t;if(r===Ke&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||Ie(r))return r}return t},t)},Ke),Object(E.a)(t=>t!==Ke),Object(w.a)(t=>Ie(t)?t:!0===t),L(1)))}function Ze(t,e){return null!==t&&e&&e(new _t(t)),Object(i.a)(!0)}function Xe(t,e){return null!==t&&e&&e(new gt(t)),Object(i.a)(!0)}function Ye(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(i.a)(!0);const s=r.map(r=>b(()=>{const s=We(r,e,n);let i;if(function(t){return t&&Ne(t.canActivate)}(s))i=Ft(s.canActivate(e,t));else{if(!Ne(s))throw new Error("Invalid CanActivate guard");i=Ft(s(e,t))}return i.pipe(q())}));return Object(i.a)(s).pipe(Qe())}function tn(t,e,n){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>b(()=>{const s=e.guards.map(s=>{const i=We(s,e.node,n);let o;if(function(t){return t&&Ne(t.canActivateChild)}(i))o=Ft(i.canActivateChild(r,t));else{if(!Ne(i))throw new Error("Invalid CanActivateChild guard");o=Ft(i(r,t))}return o.pipe(q())});return Object(i.a)(s).pipe(Qe())}));return Object(i.a)(s).pipe(Qe())}class en{}class nn{constructor(t,e,n,r,s,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const t=on(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new pe([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ae(n,e),s=new fe(this.url,r);return this.inheritParamsAndData(s._root),Object(i.a)(s)}catch(t){return new l.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=de(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=qt(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const i of t)try{return this.processSegmentAgainstRoute(i,e,n,r)}catch(s){if(!(s instanceof en))throw s}if(this.noLeftoversInUrl(e,n,r))return[];throw new en}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new en;if((t.outlet||"primary")!==r)throw new en;let s,i=[],o=[];if("**"===t.path){const i=n.length>0?Pt(n).parameters:{};s=new pe(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cn(t),r,t.component,t,rn(e),sn(e)+n.length,un(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new en;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||Ot)(n,t,e);if(!r)throw new en;const s={};Dt(r.posParams,(t,e)=>{s[e]=t.path});const i=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(e,t,n);i=a.consumedSegments,o=n.slice(a.lastChild),s=new pe(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cn(t),r,t.component,t,rn(e),sn(e)+i.length,un(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=on(e,i,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new ae(s,t)]}if(0===a.length&&0===c.length)return[new ae(s,[])];const u=this.processSegment(a,l,c,"primary");return[new ae(s,u)]}}function rn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function sn(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function on(t,e,n,r,s){if(n.length>0&&function(t,e,n){return n.some(n=>an(t,e,n)&&"primary"!==ln(n))}(t,n,r)){const s=new Lt(e,function(t,e,n,r){const s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&"primary"!==ln(i)){const n=new Lt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[ln(i)]=n}return s}(t,e,r,new Lt(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>an(t,e,n))}(t,n,r)){const i=new Lt(t.segments,function(t,e,n,r,s,i){const o={};for(const a of r)if(an(t,n,a)&&!s[ln(a)]){const n=new Lt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[ln(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,r,t.children,s));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new Lt(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function an(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function ln(t){return t.outlet||"primary"}function cn(t){return t.data||{}}function un(t){return t.resolve||{}}function hn(t){return function(e){return e.pipe(J(e=>{const n=t(e);return n?Object(o.a)(n).pipe(Object(w.a)(()=>e)):Object(o.a)([e])}))}}class dn{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const pn=new s.q("ROUTES");class fn{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(w.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new Tt(It(r.injector.get(pn)).map(jt),r)}))}loadModuleFactory(t){return"string"==typeof t?Object(o.a)(this.loader.load(t)):Ft(t()).pipe(Object($.a)(t=>t instanceof s.v?Object(i.a)(t):Object(o.a)(this.compiler.compileModuleAsync(t))))}}class mn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new gn,this.attachRef=null}}class gn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new mn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class yn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function _n(t){throw t}function bn(t,e,n){return e.parse("/")}function vn(t,e){return Object(i.a)(null)}let wn=(()=>{class t{constructor(t,e,n,r,i,o,l,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new v.a,this.errorHandler=_n,this.malformedUriErrorHandler=bn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:vn,afterPreactivation:vn},this.urlHandlingStrategy=new yn,this.routeReuseStrategy=new dn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(s.x),this.console=i.get(s.W);const u=i.get(s.z);this.isNgZoneEnabled=u instanceof s.z,this.resetConfig(c),this.currentUrlTree=new Vt(new Lt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new fn(o,l,t=>this.triggerEvent(new ft(t)),t=>this.triggerEvent(new mt(t))),this.routerState=ue(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Object(E.a)(t=>0!==t.id),Object(w.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),J(t=>{let n=!1,r=!1;return Object(i.a)(t).pipe(Object(B.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),J(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(i.a)(t).pipe(J(t=>{const n=this.transitions.getValue();return e.next(new it(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?_.a:[t]}),J(t=>Promise.resolve(t)),(r=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,a=this.config,function(t){return t.pipe(J(t=>function(t,e,n,r,s){return new Le(t,e,n,r,s).apply()}(r,s,o,t.extractedUrl,a).pipe(Object(w.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(B.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return function(i){return i.pipe(Object($.a)(i=>function(t,e,n,r,s="emptyOnly",i="legacy"){return new nn(t,e,n,r,s,i).recognize()}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(Object(w.a)(t=>Object.assign(Object.assign({},i),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(B.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Object(B.a)(t=>{const n=new ct(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,s,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:o,extras:a}=t,l=new it(n,this.serializeUrl(r),s,o);e.next(l);const c=ue(r,this.rootComponentType).snapshot;return Object(i.a)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:r,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),_.a}),hn(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Object(B.a)(t=>{const e=new ut(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(w.a)(t=>Object.assign(Object.assign({},t),{guards:Ge(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object($.a)(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:l}}=n;return 0===l.length&&0===a.length?Object(i.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Object(o.a)(t).pipe(Object($.a)(t=>function(t,e,n,r,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(i.a)(!0);const a=o.map(i=>{const o=We(i,e,s);let a;if(function(t){return t&&Ne(t.canDeactivate)}(o))a=Ft(o.canDeactivate(t,e,n,r));else{if(!Ne(o))throw new Error("Invalid CanDeactivate guard");a=Ft(o(t,e,n,r))}return a.pipe(q())});return Object(i.a)(a).pipe(Qe())}(t.component,t.route,n,e,r)),q(t=>!0!==t,!0))}(l,r,s,t).pipe(Object($.a)(n=>n&&"boolean"==typeof n?function(t,e,n,r){return Object(o.a)(e).pipe(Object(tt.a)(e=>Object(o.a)([Xe(e.route.parent,r),Ze(e.route,r),tn(t,e.path,n),Ye(t,e.route,n)]).pipe(C(),q(t=>!0!==t,!0))),q(t=>!0!==t,!0))}(r,a,t,e):Object(i.a)(n)),Object(w.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(B.a)(t=>{if(Ie(t.guardsResult)){const e=Et(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(B.a)(t=>{const e=new ht(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(E.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new at(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),hn(t=>{if(t.guards.canActivateChecks.length)return Object(i.a)(t).pipe(Object(B.a)(t=>{const e=new dt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),J(t=>{let n=!1;return Object(i.a)(t).pipe((r=this.paramsInheritanceStrategy,s=this.ngModule.injector,function(t){return t.pipe(Object($.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(i.a)(t);let a=0;return Object(o.a)(n).pipe(Object(tt.a)(t=>function(t,e,n,r){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return Object(i.a)({});const a={};return Object(o.a)(s).pipe(Object($.a)(s=>function(t,e,n,r){const s=We(t,e,r);return Ft(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,r).pipe(Object(B.a)(t=>{a[s]=t}))),x(1),Object($.a)(()=>Object.keys(a).length===s.length?Object(i.a)(a):_.a))}(t._resolve,t,e,r).pipe(Object(w.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),de(t,n).resolve),null)))}(t.route,e,r,s)),Object(B.a)(()=>a++),x(1),Object($.a)(e=>a===n.length?Object(i.a)(t):_.a))}))}),Object(B.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new at(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var r,s}),Object(B.a)(t=>{const e=new pt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),hn(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Object(w.a)(t=>{const e=function(t,e,n){const r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const i=function(e,n,r){return n.children.map(n=>{for(const s of r.children)if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s);return t(e,n)})}(e,n,r);return new ae(s,i)}{const r=e.retrieve(n.value);if(r){const t=r.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,t),t}{const r=new he(new a.a((s=n.value).url),new a.a(s.params),new a.a(s.queryParams),new a.a(s.fragment),new a.a(s.data),s.outlet,s.component,s),i=n.children.map(n=>t(e,n));return new ae(r,i)}}var s}(t,e._root,n?n._root:void 0);return new ce(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(B.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(l=this.rootContexts,c=this.routeReuseStrategy,u=t=>this.triggerEvent(t),Object(w.a)(t=>(new je(c,t.targetRouterState,t.currentRouterState,u).activate(l),t))),Object(B.a)({next(){n=!0},complete(){n=!0}}),(s=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new at(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new nt(s))),Object(V.a)(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=Ie(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new at(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new lt(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var s;return _.a}));var s,l,c,u}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",r=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){xt(t),this.config=t.map(jt),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:i,preserveQueryParams:o,queryParamsHandling:a,preserveFragment:l}=e;Object(s.T)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=n||this.routerState.root,u=l?this.currentUrlTree.fragment:i;let h=null;if(a)switch(a){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=o?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,s){if(0===n.length)return ve(e.root,e.root,e,r,s);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new we(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return Dt(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new we(n,e,r)}(n);if(i.toRoot())return ve(e.root,new Lt([],{}),e,r,s);const o=function(t,e,n){if(t.isAbsolute)return new Se(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Se(t,t===e.root,0)}const r=be(t.commands[0])?0:1;return function(t,e,n){let r=t,s=e,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new Se(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?Oe(o.segmentGroup,o.index,i.commands):Ee(o.segmentGroup,o.index,i.commands);return ve(o.segmentGroup,a,e,r,s)}(c,this.currentUrlTree,t,h,u)}navigateByUrl(t,e={skipLocationChange:!1}){Object(s.T)()&&this.isNgZoneEnabled&&!s.z.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Ie(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(Ie(t))return Mt(this.currentUrlTree,t,e);const n=this.parseUrl(t);return Mt(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new ot(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,s){const i=this.getTransition();if(i&&"imperative"!==e&&"imperative"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"hashchange"==e&&"popstate"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"popstate"==e&&"hashchange"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,l;s?(o=s.resolve,a=s.reject,l=s.promise):l=new Promise((t,e)=>{o=t,a=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:o,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const s=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(s.M),s.Sb($t),s.Sb(gn),s.Sb(r.f),s.Sb(s.r),s.Sb(s.w),s.Sb(s.i),s.Sb(void 0))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})(),Sn=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.T)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:En(this.skipLocationChange),replaceUrl:En(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:En(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:En(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(wn),s.Jb(he),s.Tb("tabindex"),s.Jb(s.D),s.Jb(s.l))},t.\u0275dir=s.Eb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.Vb("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),Cn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof ot&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.T)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:En(this.skipLocationChange),replaceUrl:En(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:En(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:En(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(wn),s.Jb(he),s.Jb(r.g))},t.\u0275dir=s.Eb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.Vb("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(s.Rb("href",e.href,s.sc),s.yb("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.vb]}),t})();function En(t){return""===t||!!t}let On=(()=>{class t{constructor(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.n,this.deactivateEvents=new s.n,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new Tn(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(gn),s.Jb(s.O),s.Jb(s.j),s.Tb("name"),s.Jb(s.h))},t.\u0275dir=s.Eb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Tn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===he?this.route:t===gn?this.childContexts:this.parent.get(t,e)}}class xn{}class kn{preload(t,e){return Object(i.a)(null)}}let An=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new fn(e,n,e=>t.triggerEvent(new ft(e)),e=>t.triggerEvent(new mt(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(E.a)(t=>t instanceof ot),Object(tt.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.x);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return Object(o.a)(n).pipe(Object(S.a)(),Object(w.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object($.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(wn),s.Sb(s.w),s.Sb(s.i),s.Sb(s.r),s.Sb(xn))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})(),jn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof it?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ot&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof vt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new vt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(wn),s.Sb(r.n),s.Sb(void 0))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();const Rn=new s.q("ROUTER_CONFIGURATION"),Nn=new s.q("ROUTER_FORROOT_GUARD"),In=[r.f,{provide:$t,useClass:Bt},{provide:wn,useFactory:function(t,e,n,s,i,o,a,l={},c,u){const h=new wn(null,t,e,n,s,i,o,It(a));if(c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),l.errorHandler&&(h.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(h.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){const t=Object(r.r)();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return l.onSameUrlNavigation&&(h.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(h.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(h.relativeLinkResolution=l.relativeLinkResolution),h},deps:[$t,gn,r.f,s.r,s.w,s.i,pn,Rn,[class{},new s.A],[class{},new s.A]]},gn,{provide:he,useFactory:function(t){return t.routerState.root},deps:[wn]},{provide:s.w,useClass:s.J},An,kn,class{preload(t,e){return e().pipe(Object(V.a)(()=>Object(i.a)(null)))}},{provide:Rn,useValue:{enableTracing:!1}}];function Pn(){return new s.y("Router",wn)}let Dn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[In,Ln(e),{provide:Nn,useFactory:Vn,deps:[[wn,new s.A,new s.I]]},{provide:Rn,useValue:n||{}},{provide:r.g,useFactory:Mn,deps:[r.m,[new s.p(r.a),new s.A],Rn]},{provide:jn,useFactory:Fn,deps:[wn,r.n,Rn]},{provide:xn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:kn},{provide:s.y,multi:!0,useFactory:Pn},[Un,{provide:s.d,multi:!0,useFactory:Hn,deps:[Un]},{provide:$n,useFactory:qn,deps:[Un]},{provide:s.b,multi:!0,useExisting:$n}]]}}static forChild(e){return{ngModule:t,providers:[Ln(e)]}}}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)(s.Sb(Nn,8),s.Sb(wn,8))}}),t})();function Fn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new jn(t,e,n)}function Mn(t,e,n={}){return n.useHash?new r.d(t,e):new r.l(t,e)}function Vn(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ln(t){return[{provide:s.a,multi:!0,useValue:t},{provide:pn,multi:!0,useValue:t}]}let Un=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new v.a}appInitializer(){return this.injector.get(r.e,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(wn),r=this.injector.get(Rn);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(i.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Rn),n=this.injector.get(An),r=this.injector.get(jn),i=this.injector.get(wn),o=this.injector.get(s.g);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(s.r))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();function Hn(t){return t.appInitializer.bind(t)}function qn(t){return t.bootstrapListener.bind(t)}const $n=new s.q("Router Initializer")},vkgz:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),s=n("KqfI"),i=n("n6bG");function o(t,e,n){return function(r){return r.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends r.a{constructor(t,e,n,r){super(t),this._tapNext=s.a,this._tapError=s.a,this._tapComplete=s.a,this._tapError=n||s.a,this._tapComplete=r||s.a,Object(i.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s.a,this._tapError=e.error||s.a,this._tapComplete=e.complete||s.a)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},wQXg:function(t,e,n){"use strict";n.d(e,"a",(function(){return P})),n.d(e,"b",(function(){return V}));var r=n("fXoL"),s=n("2Vo4"),i=n("XNiG"),o=n("3N8a");class a extends o.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var l=n("IjjT");class c extends l.a{}const u=new c(a);var h=n("quSY"),d=n("7o/Q"),p=n("EY2u"),f=n("LRne"),m=n("z6cu");let g=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(f.a)(this.value);case"E":return Object(m.a)(this.error);case"C":return Object(p.b)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class y extends d.a{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(y.dispatch,this.delay,new _(t,this.destination)))}_next(t){this.scheduleMessage(g.createNext(t))}_error(t){this.scheduleMessage(g.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(g.createComplete()),this.unsubscribe()}}class _{constructor(t,e){this.notification=t,this.destination=e}}var b=n("9ppp"),v=n("Ylt2");class w extends i.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new S(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=n.length;let i;if(this.closed)throw new b.a;if(this.isStopped||this.hasError?i=h.a.EMPTY:(this.observers.push(t),i=new v.a(this,t)),r&&t.add(t=new y(t,r)),e)for(let o=0;o<s&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<s&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),i}_getNow(){return(this.scheduler||u).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,s=r.length;let i=0;for(;i<s&&!(t-r[i].time<n);)i++;return s>e&&(i=Math.max(i,s-e)),i>0&&r.splice(0,i),r}}class S{constructor(t,e){this.time=t,this.value=e}}var C=n("pLZG"),E=n("lJxs"),O=n("D0XW");class T{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new x(t,this.delay,this.scheduler))}}class x extends d.a{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,r=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-r.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(x.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new k(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(g.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(g.createComplete()),this.unsubscribe()}}class k{constructor(t,e){this.time=t,this.notification=e}}var A=n("ofXK"),j=n("tyNb");class R{constructor(){this.pageTracking={autoTrackVirtualPages:!0,basePath:"",excludedRoutes:[],clearIds:!1,clearHash:!1,clearQueryParams:!1,idsRegExp:/^\d+$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/},this.developerMode=!1,this.ga={},this.appInsights={},this.gtm={},this.gst={}}}const N=new r.q("ANGULARTICS2");class I{trackLocation(t){return new s.a({url:"/"})}prepareExternalUrl(t){return t}}let P=(()=>{let t=class{constructor(t,e){this.tracker=t,this.pageTrack=new w(10),this.eventTrack=new w(10),this.exceptionTrack=new w(10),this.setAlias=new w(10),this.setUsername=new w(10),this.setUserProperties=new w(10),this.setUserPropertiesOnce=new w(10),this.setSuperProperties=new w(10),this.setSuperPropertiesOnce=new w(10),this.userTimings=new w(10),this.unsetUserProperties=new w(10);const n=new R;this.settings=Object.assign(Object.assign({},n),e.settings),this.settings.pageTracking=Object.assign(Object.assign({},n.pageTracking),e.settings.pageTracking),this.tracker.trackLocation(this.settings).subscribe(t=>this.trackUrlChange(t.url))}filterDeveloperMode(){return Object(C.a)((t,e)=>!this.settings.developerMode)}trackUrlChange(t){if(this.settings.pageTracking.autoTrackVirtualPages&&!this.matchesExcludedRoute(t)){const e=this.clearUrl(t);let n;n=this.settings.pageTracking.basePath.length?this.settings.pageTracking.basePath+e:this.tracker.prepareExternalUrl(e),this.pageTrack.next({path:n})}}matchesExcludedRoute(t){for(const e of this.settings.pageTracking.excludedRoutes)if(e instanceof RegExp&&e.test(t)||-1!==t.indexOf(e))return!0;return!1}clearUrl(t){return this.settings.pageTracking.clearIds||this.settings.pageTracking.clearQueryParams||this.settings.pageTracking.clearHash?t.split("/").map(t=>this.settings.pageTracking.clearQueryParams?t.split("?")[0]:t).map(t=>this.settings.pageTracking.clearHash?t.split("#")[0]:t).filter(t=>!this.settings.pageTracking.clearIds||!t.match(this.settings.pageTracking.idsRegExp)).join("/"):t}};return t.\u0275fac=function(e){return new(e||t)(r.Sb(I),r.Sb(N))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(I),Object(r.Sb)(N))},token:t,providedIn:"root"}),t})(),D=(()=>{let t=class{constructor(t,e){this.router=t,this.location=e}trackLocation(t){return this.router.events.pipe(Object(C.a)(t=>t instanceof j.c),Object(C.a)(()=>!t.developerMode),Object(E.a)(t=>({url:t.urlAfterRedirects})),function(t,e=O.a){var n;const r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new T(r,e))}(0))}prepareExternalUrl(t){return this.location.prepareExternalUrl(t)}};return t.\u0275fac=function(e){return new(e||t)(r.Sb(j.f),r.Sb(A.f))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(j.f),Object(r.Sb)(A.f))},token:t,providedIn:"root"}),t})(),F=(()=>{let t=class{};return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)}}),t})();var M;let V=(()=>{let t=M=class{static forRoot(t={}){return{ngModule:M,providers:[{provide:N,useValue:{settings:t}},{provide:I,useClass:D},P]}}};return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},imports:[[F]]}),t})()},xgIS:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),s=n("DH7j"),i=n("n6bG"),o=n("lJxs");function a(t,e,n,l){return Object(i.a)(n)&&(l=n,n=void 0),l?a(t,e,n).pipe(Object(o.a)(t=>Object(s.a)(t)?l(...t):l(t))):new r.a(r=>{!function t(e,n,r,s,i){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,r,i),o=()=>t.removeEventListener(n,r,i)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,r),o=()=>t.off(n,r)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,r),o=()=>t.removeListener(n,r)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,r,s,i)}s.add(o)}(t,e,(function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),r,n)})}},yCtX:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("HDdC"),s=n("ngJS"),i=n("jZKg");function o(t,e){return e?Object(i.a)(t,e):new r.a(Object(s.a)(t))}},"z+Ro":function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},z6cu:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("HDdC");function s(t,e){return new r.a(e?n=>e.schedule(i,0,{error:t,subscriber:n}):e=>e.error(t))}function i({error:t,subscriber:e}){e.error(t)}}}]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,i){e.exports=i("zUnb")},zUnb:function(e,t,i){"use strict";i.r(t);var s=i("fXoL"),r=i("ofXK"),n=i("tk/3"),c=i("3Pt+"),o=i("jhN1"),a=i("R1ws"),l=i("wQXg"),u=i("EDFS"),b=i("S8xs"),f=i("s3T5"),d=i("dZIy"),h=i("dlKe"),p=i("tyNb");let g=(()=>{class e{constructor(){}get(){return AgGuideUrls}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=s.Fb({token:e,factory:e.\u0275fac}),e})(),v=new s.q("AgGuideUrls");var m=i("RK3m");function O(e,t){1&e&&(s.Yb(),s.Xb(),s.Ob(0,"div",10),s.Kb(1,"i",11),s.wc(2," Loading... "),s.Nb())}let y=(()=>{class e{constructor(e,t,i){this.agGuideUrls=e,this.router=i,this.loading=!0,this.routeEventsSubscription=i.events.subscribe(e=>{this.navigationInterceptor(e)})}navigationInterceptor(e){e instanceof p.e&&e.url&&e.url.match(/#/)&&this.router.navigate([e.url.replace("/#","").replace("#","")]),(e instanceof p.c||e instanceof p.b||e instanceof p.d)&&(this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(s.Jb(v),s.Jb(m.a),s.Jb(p.f))},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-root"]],decls:19,vars:3,consts:[[1,"content"],["xmlns","http://www.w3.org/2000/svg",1,"defs-only"],["viewBox","0 0 20 20","id","icon-check-circle"],["fill","none","fill-rule","evenodd"],["d","M-2-2h24v24H-2z"],["fill","currentColor","fill-rule","nonzero","d","M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zM8 15l-5-5 1.41-1.41L8 12.17l7.59-7.59L17 6l-9 9z"],["viewBox","0 0 14 17","id","icon-question"],["fill","currentColor","d","M14.25,1.5 L3.75,1.5 C2.9175,1.5 2.25,2.175 2.25,3 L2.25,13.5 C2.25,14.325 2.9175,15 3.75,15 L6.75,15 L9,17.25 L11.25,15 L14.25,15 C15.075,15 15.75,14.325 15.75,13.5 L15.75,3 C15.75,2.175 15.075,1.5 14.25,1.5 Z M9.75,13.5 L8.25,13.5 L8.25,12 L9.75,12 L9.75,13.5 Z M11.3025,7.6875 L10.6275,8.3775 C10.0875,8.925 9.75,9.375 9.75,10.5 L8.25,10.5 L8.25,10.125 C8.25,9.3 8.5875,8.55 9.1275,8.0025 L10.0575,7.0575 C10.335,6.7875 10.5,6.4125 10.5,6 C10.5,5.175 9.825,4.5 9,4.5 C8.175,4.5 7.5,5.175 7.5,6 L6,6 C6,4.3425 7.3425,3 9,3 C10.6575,3 12,4.3425 12,6 C12,6.66 11.73,7.26 11.3025,7.6875 Z","transform","translate(-2 -1)"],["class","loadingSpinner",4,"ngIf"],["target","_blank",3,"href"],[1,"loadingSpinner"],[1,"fas","fa-spin","fa-spinner"]],template:function(e,t){1&e&&(s.Ob(0,"div",0),s.Yb(),s.Ob(1,"svg",1),s.Ob(2,"symbol",2),s.Ob(3,"g",3),s.Kb(4,"path",4),s.Kb(5,"path",5),s.Nb(),s.Nb(),s.Ob(6,"symbol",6),s.Kb(7,"path",7),s.Nb(),s.Nb(),s.uc(8,O,3,0,"div",8),s.Xb(),s.Kb(9,"router-outlet"),s.Nb(),s.Ob(10,"footer"),s.Ob(11,"div"),s.wc(12,"\xa92023 Regents of the University of California"),s.Nb(),s.Ob(13,"div"),s.Ob(14,"a",9),s.wc(15,"A-G Policy Resource Guide"),s.Nb(),s.wc(16," | "),s.Ob(17,"a",9),s.wc(18,"Contact Us"),s.Nb(),s.Nb(),s.Nb()),2&e&&(s.xb(8),s.fc("ngIf",t.loading),s.xb(6),s.gc("href",t.agGuideUrls.Root,s.sc),s.xb(3),s.gc("href",t.agGuideUrls.ContactUs,s.sc))},directives:[r.j,p.j],encapsulation:2}),e})();var w=i("z6cu"),I=i("JIr8");const x={headers:new n.c({"Content-Type":"application/json"})};let N=(()=>{class e{constructor(e){this.httpService=e}post(e,t){return this.httpService.post(e,t,x).pipe(Object(I.a)(this.handleError))}get(e){return this.httpService.get(e,x).pipe(Object(I.a)(this.handleError))}getBlob(e,t){return this.httpService.post(e,t,{responseType:"blob"}).pipe(Object(I.a)(this.handleError))}handleError(e){return e.error instanceof ErrorEvent?console.error("An error occurred:",e.error.message):console.error(`Backend returned code ${e.status}, body was: `+e.error),Object(w.a)("Something bad happened; please try again later.")}}return e.\u0275fac=function(t){return new(t||e)(s.Sb(n.a))},e.\u0275prov=s.Fb({token:e,factory:e.\u0275fac}),e})(),C=(()=>{class e{constructor(e){this.dataService=e}get(e,t){return this.dataService.get(t?`/api/public/course/${e}/${t}`:"/api/public/course/"+e)}}return e.\u0275fac=function(t){return new(t||e)(s.Sb(N))},e.\u0275prov=s.Fb({token:e,factory:e.\u0275fac}),e})(),L=(()=>{class e{constructor(){this.content=ContentManagement}getSubjectAreaDefinitions(){return this.subjectAreaDefinitions||this.loadSubjectAreaDefinitions(),this.subjectAreaDefinitions}getHelpContent(){return{referenceListHelp:this.getContent("pcl:ReferenceList:Help"),courseListHelp:this.getContent("pcl:Search:Help")}}getReferenceListSearchWarning(){return this.getContent("pcl:ReferenceList:SearchWarning")}getReferenceListGradeLevelHelp(){return this.getContent("pcl:ReferenceList:GradeLevelHelp")}getReferenceListProgramWarning(){return this.getContent("pcl:ReferenceList:ProgramWarning")}getReferenceListCommunityCollegeWarning(){return this.getContent("pcl:ReferenceList:CommunityCollegeWarning")}getInstitutionInactiveMessaging(e){return e?"A-G list closed starting "+e:""}getContent(e){return this.content[e]?this.content[e].content:""}loadSubjectAreaDefinitions(){this.subjectAreaDefinitions={a:{title:"History / Social Science",yearsRequired:"2 years required",detailHtml:this.content["cmp:CourseList:SubjectAreaA"].content},b:{title:"English",yearsRequired:"4 years required",detailHtml:this.content["cmp:CourseList:SubjectAreaB"].content},c:{title:"Mathematics ",yearsRequired:"3 years required, 4 years recommended",detailHtml:this.content["cmp:CourseList:SubjectAreaC"].content},d:{title:"Science",yearsRequired:"2 years required, 3 years recommended",detailHtml:this.content["cmp:CourseList:SubjectAreaD"].content},e:{title:"Language Other than English",yearsRequired:"2 years required, 3 years recommended",detailHtml:this.content["cmp:CourseList:SubjectAreaE"].content},f:{title:"Visual & Performing Arts",yearsRequired:"1 year required",detailHtml:this.content["cmp:CourseList:SubjectAreaF"].content},g:{title:"College-Preparatory Elective",yearsRequired:"1 year required",detailHtml:this.content["cmp:CourseList:SubjectAreaG"].content}}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=s.Fb({token:e,factory:e.\u0275fac}),e})(),S=(()=>{class e{constructor(){this.FilterDelimiter="|",this.FacetDelimiter="_-_"}parseRouteFilters(e){let t=[];if(e)for(let i of e.split(this.FacetDelimiter))if(i){let e=i.split(this.FilterDelimiter);t.push({field:e[0],selectedItems:e[1].split(",")})}return t}createRouteFilters(e){return e&&0!==e.length?e.map(e=>e.field+this.FilterDelimiter+e.selectedItems.join(",")+this.FacetDelimiter).reduce((e,t)=>e+t):""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=s.Fb({token:e,factory:e.\u0275fac}),e})(),k=(()=>{class e{constructor(e){this.dataService=e,ga((function(e){this.clientId=e.get("clientId")}).bind(this))}create(e){return this.dataService.post("/api/public/feedback",{googleAnalyticsClientId:this.clientId,message:e})}}return e.\u0275fac=function(t){return new(t||e)(s.Sb(N))},e.\u0275prov=s.Fb({token:e,factory:e.\u0275fac}),e})();var F=i("cp0P"),A=i("lJxs"),R=function(e){return e[e.Course=1]="Course",e[e.Institution=2]="Institution",e}({});new n.c({"Content-Type":"application/json"});let j=(()=>{class e{constructor(e,t,i,s){this.dataService=e,this.contentService=t,this.router=i,this.routeDataService=s,this.currentSearch=[],this.ApiPublicSearchCourse="/api/public/search/course",this.ApiPublicSearchInstitution="/api/public/search/institution",this.ApiPublicSearchCourseReference="/api/public/search/course?isReferenceSearch=true",this.ApiPublicSearchInstitutionReference="/api/public/search/institution?isReferenceSearch=true",this.ApiPublicSearchCourseFilters="/api/public/search/course/filters",this.ApiPublicSearchInstitutionFilters="/api/public/search/institution/filters",this.ApiPublicSearchCourseReferenceFilters="/api/public/search/course/filters?isReferenceSearch=true",this.ApiPublicSearchInstitutionReferenceFilters="/api/public/search/institution/filters?isReferenceSearch=true"}navigateToPreviousResults(){this.router.navigate(null!=this.currentSearch&&this.currentSearch.length>0?this.currentSearch:[""])}navigateToNewResults(e){let t={searchType:e.searchType};e.query&&(t.query=e.query),e.filters&&e.filters.length>0&&(t.filters=this.routeDataService.createRouteFilters(e.filters)),this.currentSearch=[e.isReferenceListSearch?"agcourselist/referencelist/results":"agcourselist/results",t],this.router.navigate(this.currentSearch)}getSchoolsInDistrict(e,t){return e.filters=[],e.filters.push({field:"institutionType.id",selected:"5"},{field:"district.id",selected:t.toString()}),this.getInstitutionResult(e)}getSchoolsOfferingCourse(e,t){return this.dataService.post(`/api/public/search/course/${t}/adoptedbyschool`,e).pipe(Object(A.a)(e=>({totalPages:e.totalPages,institutions:e.results&&e.results.length>0?e.results.map(e=>({name:e.institutionName,institutionId:e.institutionId,location:e.institutionLocation,courseId:e.courseId,isOnline:e.isOnline,isClassroomBased:e.isClassroomBased,institutionTypeId:e.institutionTypeId})):[]})))}getResult(e){return e.searchType===R.Institution?this.getInstitutionResult(e):this.getCourseResult(e)}getCourseFacets(){return this.getFacets(this.ApiPublicSearchCourseFilters)}getCourseReferenceFacets(){return this.getFacets(this.ApiPublicSearchCourseReferenceFilters)}getInstitutionFacets(){return this.getFacets(this.ApiPublicSearchInstitutionFilters)}getInstitutionReferenceFacets(){return this.getFacets(this.ApiPublicSearchInstitutionReferenceFilters)}getFacets(e){return this.dataService.get(e)}getCourseResult(e){return this.dataService.post(e.isReferenceListSearch?this.ApiPublicSearchCourseReference:this.ApiPublicSearchCourse,e).pipe(Object(A.a)(e=>({totalPages:e.totalPages,courses:e.results&&e.results.length>0?e.results:[]})))}getInstitutionResult(e){return this.dataService.post(e.isReferenceListSearch?this.ApiPublicSearchInstitutionReference:this.ApiPublicSearchInstitution,e).pipe(Object(A.a)(e=>this.mapResultToInstitutionResult(e)))}mapResultToInstitutionResult(e){return{totalPages:e.totalPages,institutions:e.results&&e.results.length>0?e.results.map(e=>({name:e.name,institutionId:e.id,institutionType:e.details.institutionType,location:e.details.address?e.details.address.city+", "+e.details.address.state:"",isClosed:e.details.isClosed,closedAsOf:e.details.closedAsOf,closedMessaging:this.contentService.getInstitutionInactiveMessaging(e.details.closedAsOf)})):[]}}downloadCourseListExport(e,t){return this.dataService.getBlob("/api/public/institution/exportcourselist/",{institutionId:e,academicYearId:t,format:1})}}return e.\u0275fac=function(t){return new(t||e)(s.Sb(N),s.Sb(L),s.Sb(p.f),s.Sb(S))},e.\u0275prov=s.Fb({token:e,factory:e.\u0275fac}),e})(),T=(()=>{class e{constructor(e){this.searchService=e}resolve(e,t){return Object(F.a)(this.searchService.getCourseReferenceFacets(),this.searchService.getInstitutionReferenceFacets()).pipe(Object(A.a)(e=>({courseFacets:this.adaptCourseFacets(e[0].facetGroups),institutionFacets:e[1].facetGroups})))}adaptCourseFacets(e){let t=e.find(e=>"categories.subjectArea"===e.key);if(!t)return e;t.hidden=!0;for(let i of e)i.subjectAreaId&&(i.allSubjectFilter=t.items.find(e=>e.key===i.subjectAreaId.toString()));return e}}return e.\u0275fac=function(t){return new(t||e)(s.Sb(j))},e.\u0275prov=s.Fb({token:e,factory:e.\u0275fac}),e})(),P=(()=>{class e{constructor(e){this.searchService=e}resolve(e,t){return Object(F.a)(this.searchService.getCourseFacets(),this.searchService.getInstitutionFacets()).pipe(Object(A.a)(e=>({courseFacets:this.adaptCourseFacets(e[0].facetGroups),institutionFacets:e[1].facetGroups})))}adaptCourseFacets(e){let t=e.find(e=>"categories.subjectArea"===e.key);if(!t)return e;t.hidden=!0;for(let i of e)i.subjectAreaId&&(i.allSubjectFilter=t.items.find(e=>e.key===i.subjectAreaId.toString()));return e}}return e.\u0275fac=function(t){return new(t||e)(s.Sb(j))},e.\u0275prov=s.Fb({token:e,factory:e.\u0275fac}),e})(),q=(()=>{class e{constructor(e){this.dataService=e}get(e){return this.dataService.get("/api/public/institution/"+e)}getOnlinePublishers(){return this.dataService.get("/api/public/institution/publishers/")}}return e.\u0275fac=function(t){return new(t||e)(s.Sb(N))},e.\u0275prov=s.Fb({token:e,factory:e.\u0275fac}),e})(),Z=(()=>{class e{constructor(e){this.dataService=e}getAcademicYears(e){return this.dataService.get(`/api/public/courselist/institution/${e}/list/academicYears`)}get(e){return this.dataService.get(`/api/public/courselist/institution/${e}/list/`)}getByAcademicYear(e,t){return this.dataService.get(`/api/public/courselist/institution/${e}/list/${t}`)}getIsOnlinePublisher(e){return this.dataService.get("/api/public/institution/isOnlinePublisher/"+e)}}return e.\u0275fac=function(t){return new(t||e)(s.Sb(N))},e.\u0275prov=s.Fb({token:e,factory:e.\u0275fac}),e})(),M=(()=>{class e{constructor(e){this.courseListService=e}resolve(e,t){return this.courseListService.getAcademicYears(e.params.institutionId)}}return e.\u0275fac=function(t){return new(t||e)(s.Sb(Z))},e.\u0275prov=s.Fb({token:e,factory:e.\u0275fac}),e})(),H=(()=>{class e{constructor(){}applyFilters(e,t){return e.filter(e=>!this.isFilterApplied(t.subjectAreas)||-1!==t.subjectAreas.indexOf(e.subjectAreaCode.toLowerCase())).filter(e=>!this.isKeywordFilterApplied(t)||e.transcriptAbbreviations&&-1!==e.transcriptAbbreviations.toLowerCase().indexOf(t.keyword.toLowerCase())||-1!==e.title.toLowerCase().indexOf(t.keyword.toLowerCase())).filter(e=>!this.isFilterApplied(t.courseLengths)||-1!==t.courseLengths.indexOf(e.courseLengthId)).filter(e=>!this.isFilterApplied(t.isOnlines)||-1!==t.isOnlines.indexOf(!1)&&e.isClassroomBased||-1!==t.isOnlines.indexOf(!0)&&e.isOnline).filter(e=>!this.isFilterApplied(t.isHonors)||-1!==t.isHonors.indexOf(e.isHonors))}isFilterApplied(e){return e&&e.length>0}isKeywordFilterApplied(e){return e.keyword&&""!==e.keyword}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=s.Fb({token:e,factory:e.\u0275fac}),e})();new n.c({"Content-Type":"application/json"});let D=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-offline"]],decls:5,vars:0,consts:[[2,"border-top","solid 12px rgba(0, 85, 129, 0.8)","background-color","#ffffff","width","800px","height","400px","padding","26px"]],template:function(e,t){1&e&&(s.Ob(0,"div",0),s.Ob(1,"h3"),s.wc(2,"University of California A-G Course List"),s.Nb(),s.Ob(3,"h4"),s.wc(4,"Maintenance in Progress. The public course list is not available right now."),s.Nb(),s.Nb())},encapsulation:2}),e})();function Y(e,t){if(1&e&&s.Kb(0,"div",6),2&e){const e=s.Zb();s.fc("innerHTML",e.model.referenceListHelp,s.rc)}}function K(e,t){if(1&e&&s.Kb(0,"div",6),2&e){const e=s.Zb();s.fc("innerHTML",e.model.courseListHelp,s.rc)}}let E=(()=>{class e{constructor(e){this.service=e,this.close=new s.n,this.model={}}ngOnInit(){this.model=this.service.getHelpContent()}emitClose(){this.close.emit()}}return e.\u0275fac=function(t){return new(t||e)(s.Jb(L))},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-help"]],inputs:{isReferenceList:"isReferenceList"},outputs:{close:"close"},decls:9,vars:2,consts:[[1,"help-row"],[1,"panelClose"],[1,"fas","fa-times-circle","fa-lg",3,"click"],[1,"panel-heading"],[1,"panel-body","pad-20"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(e,t){1&e&&(s.Ob(0,"div",0),s.Ob(1,"div",1),s.Ob(2,"i",2),s.Vb("click",(function(){return t.emitClose()})),s.Nb(),s.Nb(),s.Ob(3,"div",3),s.wc(4,"Search Instructions"),s.Nb(),s.Ob(5,"div",4),s.Ob(6,"div"),s.uc(7,Y,1,1,"div",5),s.uc(8,K,1,1,"div",5),s.Nb(),s.Nb(),s.Nb()),2&e&&(s.xb(7),s.fc("ngIf",t.isReferenceList),s.xb(1),s.fc("ngIf",!t.isReferenceList))},directives:[r.j],encapsulation:2}),e})(),V=(()=>{class e{transform(e,t){return(t&&t.prefix?t.prefix:"tag")+e.toUpperCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=s.Ib({name:"subjectTag",type:e,pure:!0}),e})();function B(e,t){if(1&e&&(s.Ob(0,"div",36),s.Ob(1,"a",37,38),s.Kb(3,"i",39),s.Nb(),s.Nb()),2&e){s.Zb();const e=s.oc(52);s.xb(1),s.fc("popover",e)("outsideClick",!0)}}function $(e,t){1&e&&(s.Ob(0,"div",36),s.Ob(1,"a",40),s.Kb(2,"i",41),s.wc(3," Back to school course search"),s.Nb(),s.Nb())}function G(e,t){if(1&e&&(s.Ob(0,"div"),s.ac(1,"subjectTag"),s.wc(2),s.Nb()),2&e){const e=s.Zb().$implicit;s.Ab("subject-tag ",s.bc(1,4,e.subjectAreaCode),""),s.xb(2),s.yc(" ",e.subjectAreaCode.toUpperCase()," ")}}function U(e,t){if(1&e){const e=s.Pb();s.Ob(0,"span"),s.Ob(1,"button",44),s.Vb("click",(function(){s.qc(e);const i=t.$implicit;return s.Zb(2).removeFilter(i)})),s.wc(2),s.Kb(3,"i",45),s.Nb(),s.Ob(4,"div",46),s.wc(5),s.uc(6,G,3,6,"div",47),s.Nb(),s.Nb()}if(2&e){const e=t.$implicit;s.xb(2),s.yc(" ",e.title," "),s.xb(3),s.yc(" ",e.groupTitle," "),s.xb(1),s.fc("ngIf",e.subjectAreaCode)}}function J(e,t){if(1&e&&(s.Ob(0,"div",42),s.uc(1,U,7,3,"span",43),s.Nb()),2&e){const e=s.Zb();s.xb(1),s.fc("ngForOf",e.selectedFilters)}}function W(e,t){if(1&e&&(s.Ob(0,"span"),s.ac(1,"subjectTag"),s.wc(2),s.Nb()),2&e){const e=s.Zb().$implicit;s.Ab("subject-tag ",s.bc(1,4,e.subjectAreaCode),""),s.xb(2),s.yc("",e.subjectAreaCode.toUpperCase()," ")}}const _=function(e){return{"background-color":e}};function z(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div"),s.Ob(1,"a",51),s.Vb("click",(function(){s.qc(e);const t=s.Zb().$implicit;return s.Zb().toggleSubjectArea(t)})),s.wc(2),s.Nb(),s.Nb()}if(2&e){const e=s.Zb().$implicit;s.xb(1),s.fc("ngStyle",s.kc(2,_,e.allSubjectFilter.selected?"#FFE552":"")),s.xb(1),s.yc("All ",e.title,"")}}function Q(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div"),s.Ob(1,"a",52),s.Vb("click",(function(){s.qc(e);const i=t.$implicit,r=s.Zb().$implicit;return s.Zb().toggle(i,r)})),s.wc(2),s.Nb(),s.Nb()}if(2&e){const e=t.$implicit;s.xb(1),s.fc("ngStyle",s.kc(2,_,e.selected?"#FFE552":"")),s.xb(1),s.xc(e.title)}}function X(e,t){if(1&e&&(s.Ob(0,"accordion-group",48),s.Ob(1,"div",49),s.wc(2),s.uc(3,W,3,6,"span",47),s.Nb(),s.uc(4,z,3,4,"div",50),s.uc(5,Q,3,4,"div",43),s.Nb()),2&e){const e=t.$implicit,i=s.Zb();s.zb(i.getContentSizeClass(e)),s.fc("panelClass",e.subjectAreaCode?"cardDiscipline filter-accordion":"filter-accordion"),s.xb(2),s.yc(" ",e.title," "),s.xb(1),s.fc("ngIf",e.subjectAreaCode),s.xb(1),s.fc("ngIf",e.subjectAreaCode),s.xb(1),s.fc("ngForOf",e.items)}}function ee(e,t){1&e&&(s.Ob(0,"div",53),s.Ob(1,"a",54),s.Kb(2,"i",55),s.wc(3," Search program courses "),s.Nb(),s.Nb(),s.Ob(4,"div",53),s.Ob(5,"a",56),s.Kb(6,"i",57),s.wc(7," Online publisher directory "),s.Nb(),s.Nb())}const te=function(e){return{"search-widget-ref":e}};let ie=(()=>{class e{constructor(e,t){this.angulartics2=e,this.routeDataService=t,this.search=new s.n,this.clearResults=new s.n,this.collapse="closed",this.showAdvanced=!1,this.showHelp=!1,this.showBeginNewSearch=!1}set searchType(e){this.byCourses=e===R.Course,this.byInstitutions=e===R.Institution}get searchType(){return this.byInstitutions?R.Institution:R.Course}get facetGroups(){return this.byInstitutions?this.searchFacets.institutionFacets:this.searchFacets.courseFacets}get visibleFacetGroups(){return this.facetGroups.filter(e=>!e.hidden)}get placeholderText(){return this.byInstitutions?this.isReferenceList?"Program Name":"School Name or College Board Code":"Course Title"}get selectedFilters(){return this.getSelectedFilters()}ngOnInit(){this.hasSelectedFilters=this.selectedFilters.length>0,this.buttonShowFilters=document.getElementById("button-show-filters"),this.showBeginNewSearch=this.hasSearchQuery()}setByCourses(){this.byCourses=!0,this.byInstitutions&&(this.byInstitutions=!1,this.clearFilters(),this.notifySubscribers())}setByInstitutions(){this.byInstitutions=!0,this.byCourses&&(this.byCourses=!1,this.clearFilters(),this.notifySubscribers())}toggleHelpDisplay(){this.showHelp=!this.showHelp,this.showHelp&&this.angulartics2.eventTrack.next({action:this.isReferenceList?"Reference Search":"Course Search",properties:{category:"Display Help"}})}toggleSubjectArea(e){this.toggle(e.allSubjectFilter,this.facetGroups.find(e=>"categories.subjectArea"===e.key))}toggle(e,t){let i={title:e.title,key:e.key,selected:e.selected,groupKey:t.key,groupTitle:t.title,subjectAreaCode:t.subjectAreaCode};i.selected?this.removeFilter(i):this.addFilter(i)}addFilter(e){this.setSelected(e,!0),this.hasSelectedFilters=!0}removeFilter(e){this.setSelected(e,!1),this.hasSelectedFilters=this.selectedFilters.length>0}emitSearch(){this.showAdvanced&&this.buttonShowFilters.click(),this.query&&(this.query=this.query.trim());let e=this.facetGroups.filter(e=>e.items.some(e=>e.selected)).map(e=>({field:e.key,selectedItems:e.items.filter(e=>e.selected).map(e=>e.key)}));this.showBeginNewSearch=this.hasSearchQuery(),this.search.emit({filters:e,query:this.query,searchType:this.searchType,isReferenceListSearch:this.isReferenceList}),this.filtersDirty=!1;let t="filters="+this.routeDataService.createRouteFilters(e);this.angulartics2.eventTrack.next({action:"search="+(this.query?this.query:""),properties:{category:"Search "+(this.searchType===R.Course?"Courses":"Institutions"),label:t}})}getContentSizeClass(e){return(e.subjectAreaCode?e.items.length+1:e.items.length)<=3?"small-content-area":"categories.language.name"===e.key?"large-content-area":""}beginNewSearch(){this.clearFilters(),this.query="",this.emitClearResults()}setSelected(e,t){this.filtersDirty=!0,e.selected=t,e.groupKey&&(this.facetGroups.find(t=>t.key===e.groupKey).items.find(t=>t.key===e.key).selected=t)}getSelectedFilters(){return this.facetGroups.map(e=>e.items.filter(e=>!0===e.selected).map(t=>({title:t.title,key:t.key,groupKey:e.key,groupTitle:e.title,subjectAreaCode:e.subjectAreaCode}))).reduce((e,t)=>e.concat(t),[])}clearFilters(){this.facetGroups.forEach(e=>{e.items.forEach(e=>{e.selected=!1})}),this.hasSelectedFilters=!1,this.filtersDirty=!1}emitClearResults(){this.showBeginNewSearch=!1,this.clearResults.emit(1)}hasSearchQuery(){return this.query&&""!==this.query||this.selectedFilters&&this.selectedFilters.length>0}notifySubscribers(){this.query&&""!==this.query?this.emitSearch():this.emitClearResults()}}return e.\u0275fac=function(t){return new(t||e)(s.Jb(l.a),s.Jb(S))},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-search"]],inputs:{searchFacets:"searchFacets",query:"query",searchType:"searchType",isReferenceList:"isReferenceList"},outputs:{search:"search",clearResults:"clearResults"},decls:53,vars:18,consts:[[1,"search-widget",3,"ngClass"],[1,"brand"],[1,"title"],[1,"credit"],[1,"partner-logos"],["src","/images/logo-uc.svg","alt","University of California"],["src","/images/logo-csu.svg","alt","California State University"],[1,"search"],[1,"reference-list-main"],["class","reference-list-link",4,"ngIf"],[1,"input-lead"],[1,"form-check-main"],[1,"form-check","svg-check","check-courses"],["type","checkbox","value","","id","search-check-courses",1,"form-check-input",3,"checked"],[1,"form-check-label",3,"click"],[1,"fas","fa-check-circle"],[1,"form-check","svg-check","check-institutions"],["type","checkbox","value","","id","search-check-institutions",1,"form-check-input",3,"checked"],[1,"form-group","search-input"],["id","search-input-label","for","search-input",1,"sr-only"],["name","query","autocomplete","off",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["type","submit",1,"btn","btn-primary","submit-search",3,"click"],[1,"sr-only"],["src","/images/icon-search.svg","alt","Search"],["class","search-rem-filter",4,"ngIf"],[1,"toggle-advanced-filters"],["id","button-show-filters","data-toggle","collapse","href","#search-advanced-filters","role","button","aria-expanded","false","aria-controls","search-advanced-filters",1,"btn","btn-primary","btn-toggle-filters",3,"click"],["data-hide","collapse","href","#search-advanced-filters","role","button",1,"btn","btn-primary","btn-apply-filters",3,"hidden","click"],["role","button",1,"btn","btn-primary","btn-apply-filters","btn-new-search",3,"hidden","click"],[1,"filter-container"],["id","search-advanced-filters",1,"collapse"],["id","filter-accordion",3,"closeOthers"],[3,"class","panelClass",4,"ngFor","ngForOf"],[1,"search-results-grid",3,"hidden"],[3,"isReferenceList","close"],["popTemplate",""],[1,"reference-list-link"],["href","javascript:void(0)","placement","right","containerClass","context-menu",1,"popOverTrigger",3,"popover","outsideClick"],["pop","bs-popover"],[1,"fa","fa-ellipsis-v"],["routerLink","/agcourselist"],[1,"fa","fa-long-arrow-alt-left"],[1,"search-rem-filter"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-default",3,"click"],[1,"fas","fa-times-circle"],[1,"tagReference"],[3,"class",4,"ngIf"],[3,"panelClass"],["accordion-heading","",1,"filterAccordionHeading",2,"cursor","pointer"],[4,"ngIf"],[1,"btn","btn-sm","btn-default","font-weight-bold",3,"ngStyle","click"],[1,"btn","btn-sm","btn-default",3,"ngStyle","click"],[1,"context-menu-row"],["routerLink","/agcourselist/referencelist",1,"context-menu-item"],[1,"fa","fa-university"],["routerLink","/agcourselist/publisher-directory",1,"context-menu-item"],[1,"fa","fa-wifi"]],template:function(e,t){1&e&&(s.Ob(0,"div",0),s.Ob(1,"div",1),s.Ob(2,"div",2),s.wc(3),s.Nb(),s.Ob(4,"div",3),s.wc(5,"Brought to you by"),s.Nb(),s.Ob(6,"div",4),s.Kb(7,"img",5),s.Kb(8,"img",6),s.Nb(),s.Nb(),s.Ob(9,"div",7),s.Ob(10,"div",8),s.uc(11,B,4,2,"div",9),s.uc(12,$,4,0,"div",9),s.Nb(),s.Ob(13,"form"),s.Ob(14,"div",10),s.wc(15,"What can we help you find?"),s.Nb(),s.Ob(16,"div",11),s.Ob(17,"div",12),s.Kb(18,"input",13),s.Ob(19,"label",14),s.Vb("click",(function(){return t.setByCourses()})),s.Kb(20,"i",15),s.Ob(21,"span"),s.wc(22,"Courses"),s.Nb(),s.Nb(),s.Nb(),s.Ob(23,"div",16),s.Kb(24,"input",17),s.Ob(25,"label",14),s.Vb("click",(function(){return t.setByInstitutions()})),s.Kb(26,"i",15),s.Ob(27,"span"),s.wc(28),s.Nb(),s.Nb(),s.Nb(),s.Nb(),s.Ob(29,"div",18),s.Ob(30,"label",19),s.wc(31,"Search for courses or institutions"),s.Nb(),s.Ob(32,"input",20),s.Vb("ngModelChange",(function(e){return t.query=e})),s.Nb(),s.Ob(33,"button",21),s.Vb("click",(function(){return t.emitSearch()})),s.Ob(34,"span",22),s.wc(35,"Search"),s.Nb(),s.Kb(36,"img",23),s.Nb(),s.Nb(),s.uc(37,J,2,1,"div",24),s.Ob(38,"div",25),s.Ob(39,"a",26),s.Vb("click",(function(){return t.showAdvanced=!t.showAdvanced})),s.wc(40," Filters "),s.Nb(),s.Ob(41,"button",27),s.Vb("click",(function(){return t.emitSearch()})),s.wc(42,"Apply Filters"),s.Nb(),s.Ob(43,"button",28),s.Vb("click",(function(){return t.beginNewSearch()})),s.wc(44,"New Search"),s.Nb(),s.Nb(),s.Nb(),s.Nb(),s.Nb(),s.Ob(45,"div",29),s.Ob(46,"div",30),s.Ob(47,"accordion",31),s.uc(48,X,6,7,"accordion-group",32),s.Nb(),s.Nb(),s.Nb(),s.Ob(49,"div",33),s.Ob(50,"pcl-help",34),s.Vb("close",(function(){return t.showHelp=!1})),s.Nb(),s.Nb(),s.uc(51,ee,8,0,"ng-template",null,35,s.vc)),2&e&&(s.fc("ngClass",s.kc(16,te,t.isReferenceList)),s.xb(3),s.yc("A-G ",t.isReferenceList?"Reference":"Course"," List"),s.xb(8),s.fc("ngIf",!t.isReferenceList),s.xb(1),s.fc("ngIf",t.isReferenceList),s.xb(6),s.fc("checked",t.byCourses),s.xb(6),s.fc("checked",t.byInstitutions),s.xb(4),s.xc(t.isReferenceList?"Programs":"Institutions"),s.xb(4),s.fc("ngModel",t.query)("placeholder",t.placeholderText),s.xb(5),s.fc("ngIf",t.hasSelectedFilters),s.xb(4),s.fc("hidden",!t.filtersDirty),s.xb(2),s.fc("hidden",!t.showBeginNewSearch),s.xb(4),s.fc("closeOthers",!0),s.xb(1),s.fc("ngForOf",t.visibleFacetGroups),s.xb(1),s.fc("hidden",!t.showHelp),s.xb(1),s.fc("isReferenceList",t.isReferenceList))},directives:[r.h,r.j,c.h,c.e,c.f,c.a,c.d,c.g,b.a,r.i,E,u.a,p.h,b.c,r.k],pipes:[V],encapsulation:2}),e})();function se(e,t){1&e&&s.Kb(0,"pcl-offline")}function re(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div",0),s.Ob(1,"pcl-search",3),s.Vb("search",(function(t){return s.qc(e),s.Zb().postSearch(t)})),s.Nb(),s.Nb()}if(2&e){const e=s.Zb();s.xb(1),s.fc("searchFacets",e.facets)("searchType",e.defaultSearchType)("isReferenceList",e.isReferenceList)}}let ne=(()=>{class e{constructor(e,t){this.route=e,this.searchService=t,this.defaultSearchType=R.Institution}ngOnInit(){this.isOffline=!1,this.facets=this.route.snapshot.data.facets,this.isReferenceList=this.route.snapshot.data.isReferenceList}postSearch(e){this.searchService.navigateToNewResults(e)}}return e.\u0275fac=function(t){return new(t||e)(s.Jb(p.a),s.Jb(j))},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-home"]],decls:3,vars:2,consts:[[1,"application-wrapper"],[4,"ngIf"],["class","application-wrapper",4,"ngIf"],[3,"searchFacets","searchType","isReferenceList","search"]],template:function(e,t){1&e&&(s.Ob(0,"div",0),s.uc(1,se,1,0,"pcl-offline",1),s.uc(2,re,2,3,"div",2),s.Nb()),2&e&&(s.xb(1),s.fc("ngIf",t.isOffline),s.xb(1),s.fc("ngIf",!t.isOffline))},directives:[r.j,D,ie],encapsulation:2}),e})();var ce=i("Iab2"),oe=i("5yfJ");function ae(e,t){1&e&&s.Kb(0,"i",3)}function le(e,t){1&e&&s.Kb(0,"i",4)}let ue=(()=>{class e{constructor(e){this.service=e}ngOnInit(){}navigateToPreviousResults(){this.loading=!0,this.service.navigateToPreviousResults()}}return e.\u0275fac=function(t){return new(t||e)(s.Jb(j))},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-back-to-search"]],decls:5,vars:2,consts:[[1,"btn","btn-default","display-inline-block",3,"click"],["class","fas fa-spin fa-spinner",4,"ngIf"],["class","fas fa-less-than",4,"ngIf"],[1,"fas","fa-spin","fa-spinner"],[1,"fas","fa-less-than"]],template:function(e,t){1&e&&(s.Ob(0,"div"),s.Ob(1,"button",0),s.Vb("click",(function(){return t.navigateToPreviousResults()})),s.uc(2,ae,1,0,"i",1),s.uc(3,le,1,0,"i",2),s.wc(4," Back to Search "),s.Nb(),s.Nb()),2&e&&(s.xb(2),s.fc("ngIf",t.loading),s.xb(1),s.fc("ngIf",!t.loading))},directives:[r.j],encapsulation:2}),e})(),be=(()=>{class e{transform(e,t){return e&&-1===e.indexOf("+")&&-1===e.indexOf("-")?this.format(e,"(###) ###-####"):e}format(e,t){let i=0;return t.replace(/#/g,t=>e[i++])}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=s.Ib({name:"phoneNumber",type:e,pure:!0}),e})();function fe(e,t){if(1&e&&(s.Ob(0,"span",19),s.wc(1),s.Nb()),2&e){const e=s.Zb(2);s.xb(1),s.yc(" ",e.institution.atpCode," ")}}function de(e,t){if(1&e&&(s.Ob(0,"div",20),s.Kb(1,"i",21),s.wc(2),s.Nb()),2&e){const e=s.Zb(2);s.xb(2),s.yc(" ",e.institution.closedMessaging," ")}}function he(e,t){if(1&e&&(s.Ob(0,"div",22),s.wc(1),s.Nb()),2&e){const e=s.Zb(2);s.xb(1),s.yc(" A-G list activated in ",e.institution.academicYearOpened," ")}}function pe(e,t){if(1&e&&(s.Ob(0,"button",23),s.wc(1),s.Nb()),2&e){const e=s.Zb(2);s.hc("routerLink","/agcourselist/institution/",e.institution.institutionId,""),s.hc("title","View full ",e.institution.isReferenceList?"reference":"course"," list"),s.xb(1),s.yc(" ",e.institution.isReferenceList?"Reference":"Course"," List ")}}function ge(e,t){if(1&e&&(s.Ob(0,"button",24),s.wc(1," View Schools "),s.Nb()),2&e){const e=s.Zb(2);s.hc("routerLink","/agcourselist/institution/",e.institution.institutionId,"/schools")}}function ve(e,t){if(1&e&&(s.Ob(0,"div",26),s.wc(1),s.ac(2,"phoneNumber"),s.Nb()),2&e){const e=s.Zb(3);s.xb(1),s.yc("",s.bc(2,1,e.institution.courseListManager.phone.number)," ")}}function me(e,t){if(1&e&&(s.Ob(0,"div",25),s.Ob(1,"b"),s.wc(2),s.Nb(),s.Ob(3,"div",26),s.wc(4),s.Nb(),s.uc(5,ve,3,3,"div",27),s.Ob(6,"div",26),s.wc(7),s.Nb(),s.Nb()),2&e){const e=s.Zb(2);s.xb(2),s.yc("",e.institution.isReferenceList?"Reference":"Course"," List Manager"),s.xb(2),s.zc("",e.institution.courseListManager.firstName," ",e.institution.courseListManager.lastName," "),s.xb(1),s.fc("ngIf",e.institution.courseListManager.phone),s.xb(2),s.yc("",e.institution.courseListManager.email," ")}}function Oe(e,t){if(1&e&&(s.Ob(0,"div",28),s.wc(1),s.Nb()),2&e){const e=s.Zb(2);s.xb(1),s.yc(" Note: ",e.institution.notes," ")}}function ye(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div",3),s.Ob(1,"div"),s.Ob(2,"span",4),s.wc(3),s.Nb(),s.uc(4,fe,2,1,"span",5),s.uc(5,de,3,1,"div",6),s.uc(6,he,2,1,"div",7),s.Nb(),s.Ob(7,"h5",8),s.wc(8),s.Nb(),s.Ob(9,"div",9),s.Ob(10,"div",10),s.Ob(11,"h6"),s.wc(12),s.Nb(),s.Ob(13,"div",11),s.wc(14),s.Nb(),s.Ob(15,"div",12),s.uc(16,pe,2,3,"button",13),s.uc(17,ge,2,1,"button",14),s.Ob(18,"button",15),s.Vb("click",(function(){s.qc(e);const t=s.Zb();return t.openUrl(t.institution.website)})),s.wc(19,"Website"),s.Nb(),s.Nb(),s.Ob(20,"div"),s.wc(21),s.Nb(),s.Ob(22,"div",16),s.wc(23),s.Nb(),s.Nb(),s.uc(24,me,8,5,"div",17),s.uc(25,Oe,2,1,"div",18),s.Nb(),s.Nb()}if(2&e){const e=s.Zb();s.xb(3),s.yc(" ",e.institution.isSchool&&!e.institution.isExtendedLearning?e.institution.governance:e.institution.institutionType," "),s.xb(1),s.fc("ngIf",e.institution.isSchool),s.xb(1),s.fc("ngIf",e.institution.isClosed),s.xb(1),s.fc("ngIf",e.institution.isNew&&!e.institution.isClosed),s.xb(2),s.yc(" ",e.institution.name," "),s.xb(4),s.xc(e.institution.districtName),s.xb(2),s.yc(" ",e.institution.location," "),s.xb(2),s.fc("ngIf",!e.hideCourseListButton&&!e.institution.isDistrict),s.xb(1),s.fc("ngIf",!e.hideCourseListButton&&e.institution.isDistrict),s.xb(4),s.yc(" ",e.institution.schoolType," "),s.xb(2),s.yc(" ",e.institution.schoolSubTypes," "),s.xb(1),s.fc("ngIf",e.institution.courseListManager),s.xb(1),s.fc("ngIf",e.institution.notes)}}function we(e,t){1&e&&(s.Ob(0,"div"),s.Kb(1,"i",29),s.wc(2," Loading...\n"),s.Nb())}function Ie(e,t){1&e&&(s.Ob(0,"div",30),s.wc(1," Institution is unavailable...\n"),s.Nb())}let xe=(()=>{class e{constructor(e,t,i){this.service=e,this.contentService=t,this.searchService=i,this.hideCourseListButton=!1,this.loaded=new s.n}openUrl(e){window.open(e)}ngOnInit(){this.service.get(this.institutionId).subscribe(e=>{this.institution=e,this.institution.website&&!/https?:\/\//i.test(this.institution.website)&&(this.institution.website="http://"+this.institution.website),this.institution.closedMessaging=this.contentService.getInstitutionInactiveMessaging(this.institution.closedAsOf),this.loaded.emit(this.institution)},e=>{this.notFound=!0})}}return e.\u0275fac=function(t){return new(t||e)(s.Jb(q),s.Jb(L),s.Jb(j))},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-institution"]],inputs:{institutionId:"institutionId",hideCourseListButton:"hideCourseListButton"},outputs:{loaded:"loaded"},decls:3,vars:3,consts:[["class","mainInstInfo",4,"ngIf"],[4,"ngIf"],["class","alert alert-danger",4,"ngIf"],[1,"mainInstInfo"],[1,"instGovBadge"],["title","College Board Code","class","instATPcodeBadge",4,"ngIf"],["class","institutionStatusBadge inactive",4,"ngIf"],["class","institutionStatusBadge new",4,"ngIf"],[1,"instName"],[1,"subInstInfo"],[1,"subInstInfoLeft"],[1,"font-italic"],[1,"infoButtons"],["class","btn btn-sm btn-primary margin-right-5",3,"routerLink","title",4,"ngIf"],["class","btn btn-sm btn-primary",3,"routerLink",4,"ngIf"],[1,"btn","btn-sm","btn-default",3,"click"],[1,"font-italic","muted"],["class","courseListManager",4,"ngIf"],["class","alert alert-info",4,"ngIf"],["title","College Board Code",1,"instATPcodeBadge"],[1,"institutionStatusBadge","inactive"],[1,"fas","fa","fa-info-circle"],[1,"institutionStatusBadge","new"],[1,"btn","btn-sm","btn-primary","margin-right-5",3,"routerLink","title"],[1,"btn","btn-sm","btn-primary",3,"routerLink"],[1,"courseListManager"],[1,"muted"],["class","muted",4,"ngIf"],[1,"alert","alert-info"],[1,"fa","fa-spin","fa-spinner"],[1,"alert","alert-danger"]],template:function(e,t){1&e&&(s.uc(0,ye,26,13,"div",0),s.uc(1,we,3,0,"div",1),s.uc(2,Ie,2,0,"div",2)),2&e&&(s.fc("ngIf",t.institution),s.xb(1),s.fc("ngIf",!t.institution&&!t.notFound),s.xb(1),s.fc("ngIf",t.notFound))},directives:[r.j,p.g],pipes:[be],encapsulation:2}),e})();var Ne=function(e){return e[e.HalfYear=1]="HalfYear",e[e.FullYear=2]="FullYear",e[e.TwoYear=3]="TwoYear",e[e.LessThanHalf=4]="LessThanHalf",e}({});function Ce(e,t){1&e&&s.Kb(0,"i",5)}function Le(e,t){if(1&e){const e=s.Pb();s.Ob(0,"label",3),s.Vb("ngModelChange",(function(i){return s.qc(e),t.$implicit.checked=i}))("ngModelChange",(function(){return s.qc(e),s.Zb().emitChange()})),s.Ob(1,"span"),s.uc(2,Ce,1,0,"i",4),s.Nb(),s.Ob(3,"span"),s.wc(4),s.Nb(),s.Nb()}if(2&e){const e=t.$implicit;s.fc("ngModel",e.checked)("popover",e.tooltip),s.xb(2),s.fc("ngIf",e.checked),s.xb(2),s.xc(e.label)}}let Se=(()=>{class e{constructor(){this.modelChange=new s.n,this.model={}}ngOnInit(){}emitChange(){this.modelChange.emit(this.options.filter(e=>e.checked).map(e=>e.value))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-button-checkbox"]],inputs:{options:"options",label:"label"},outputs:{modelChange:"modelChange"},decls:4,vars:2,consts:[[1,"moreFiltersLabel"],[1,"btn-group"],["class","btn btn-default","btnCheckbox","","tabindex","0","placement","bottom","triggers","hover","role","button",3,"ngModel","popover","ngModelChange",4,"ngFor","ngForOf"],["btnCheckbox","","tabindex","0","placement","bottom","triggers","hover","role","button",1,"btn","btn-default",3,"ngModel","popover","ngModelChange"],["class","fas fa-check-circle",4,"ngIf"],[1,"fas","fa-check-circle"]],template:function(e,t){1&e&&(s.Ob(0,"label",0),s.wc(1),s.Nb(),s.Ob(2,"div",1),s.uc(3,Le,5,4,"label",2),s.Nb()),2&e&&(s.xb(1),s.xc(t.label),s.xb(2),s.fc("ngForOf",t.options))},directives:[r.i,f.a,c.d,c.g,u.a,r.j],encapsulation:2}),e})();const ke=function(e){return{hideFilters:e}},Fe=function(e){return{show:e}};let Ae=(()=>{class e{constructor(e){this.service=e,this.filtered=new s.n,this.courseLengthOptions=[{value:Ne.LessThanHalf,label:"Less than Half a Year"},{value:Ne.HalfYear,label:"Half Year"},{value:Ne.FullYear,label:"Full Year"},{value:Ne.TwoYear,label:"Two Years"}],this.subjectAreaOptions=[{value:"a",label:"A",tooltip:"History / Social Science"},{value:"b",label:"B",tooltip:"English"},{value:"c",label:"C",tooltip:"Mathematics"},{value:"d",label:"D",tooltip:"Science"},{value:"e",label:"E",tooltip:"Language Other than English"},{value:"f",label:"F",tooltip:"Visual & Performing Arts"},{value:"g",label:"G",tooltip:"College Prepatory Elective"}],this.isOnlineOptions=[{value:!1,label:"Classroom-based"},{value:!0,label:"Online / Hybrid"}],this.isHonorsOptions=[{value:1,label:"Yes"},{value:0,label:"No"}],this.showAllFilters=!1}set courses(e){this._courses=e,this._courses&&this.filter&&this.applyFilters()}get courses(){return this._courses}ngOnInit(){this.setDefaultFilter()}applySubjectAreaFilter(e){this.filter.subjectAreas=e,this.applyFilters()}applyCourseLengthFilter(e){this.filter.courseLengths=e,this.applyFilters()}applyLearningEnvironmentFilter(e){this.filter.isOnlines=e,this.applyFilters()}applyIsHonorsFilter(e){this.filter.isHonors=e,this.applyFilters()}applyFilters(){this.filtered.emit(this.service.applyFilters(this._courses,this.filter))}clearAll(){[...this.courseLengthOptions,...this.subjectAreaOptions,...this.isOnlineOptions,...this.isHonorsOptions].forEach(e=>{e.checked=!1}),this.setDefaultFilter(),this.filtered.emit(this._courses.filter(e=>!0))}setDefaultFilter(){this.filter={keyword:"",subjectAreas:[],courseLengths:[],isOnlines:[],isHonors:[]}}}return e.\u0275fac=function(t){return new(t||e)(s.Jb(H))},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-course-list-filter"]],inputs:{courses:"courses",isReferenceList:"isReferenceList"},outputs:{filtered:"filtered"},decls:15,vars:13,consts:[[1,"courseListFilterRows"],[1,"btn","btn-link","filterClearAll",3,"click"],[1,"form-group"],["id","transcript","type","text","placeholder","Course title or transcript abbreviations",1,"form-control",3,"ngModel","ngModelChange"],[1,"btn","btn-link","showFilters",3,"ngClass","click"],[1,"expand-in-from-0",3,"ngClass"],[1,"filter-grid"],["label","Subject Area",1,"filterGridSubject",3,"options","modelChange"],["label","Course Length",1,"filterGridCourseLength",3,"options","modelChange"],["label","Learning Environment",1,"filterGridEnvironment",3,"options","modelChange"],["label","Is UC Honors?",1,"filterGridHonors",3,"options","modelChange"]],template:function(e,t){1&e&&(s.Ob(0,"div",0),s.Ob(1,"h6"),s.wc(2),s.Nb(),s.Ob(3,"button",1),s.Vb("click",(function(){return t.clearAll()})),s.wc(4,"(Clear all)"),s.Nb(),s.Ob(5,"div",2),s.Ob(6,"input",3),s.Vb("ngModelChange",(function(e){return t.filter.keyword=e}))("ngModelChange",(function(){return t.applyFilters()})),s.Nb(),s.Ob(7,"button",4),s.Vb("click",(function(){return t.showAllFilters=!t.showAllFilters})),s.wc(8),s.Nb(),s.Nb(),s.Ob(9,"div",5),s.Ob(10,"div",6),s.Ob(11,"pcl-button-checkbox",7),s.Vb("modelChange",(function(e){return t.applySubjectAreaFilter(e)})),s.Nb(),s.Ob(12,"pcl-button-checkbox",8),s.Vb("modelChange",(function(e){return t.applyCourseLengthFilter(e)})),s.Nb(),s.Ob(13,"pcl-button-checkbox",9),s.Vb("modelChange",(function(e){return t.applyLearningEnvironmentFilter(e)})),s.Nb(),s.Ob(14,"pcl-button-checkbox",10),s.Vb("modelChange",(function(e){return t.applyIsHonorsFilter(e)})),s.Nb(),s.Nb(),s.Nb(),s.Nb()),2&e&&(s.xb(2),s.yc("Filter ",t.isReferenceList?"Reference":"Course"," List"),s.xb(4),s.fc("ngModel",t.filter.keyword),s.xb(1),s.fc("ngClass",s.kc(9,ke,t.showAllFilters)),s.xb(1),s.yc(" Show ",t.showAllFilters?"less":"more"," filter options "),s.xb(1),s.fc("ngClass",s.kc(11,Fe,t.showAllFilters)),s.xb(2),s.fc("options",t.subjectAreaOptions),s.xb(1),s.fc("options",t.courseLengthOptions),s.xb(1),s.fc("options",t.isOnlineOptions),s.xb(1),s.fc("options",t.isHonorsOptions))},directives:[c.a,c.d,c.g,r.h,Se],encapsulation:2}),e})();function Re(e,t){1&e&&(s.Ob(0,"div",9),s.Kb(1,"i",10),s.wc(2," UC Honors"),s.Nb())}function je(e,t){if(1&e&&(s.Ob(0,"div",11),s.wc(1),s.Nb()),2&e){const e=s.Zb(2);s.xb(1),s.yc(" ",e.course.adoptedFrom," ")}}const Te=function(){return{prefix:"text"}};function Pe(e,t){if(1&e&&(s.Ob(0,"div",12),s.wc(1),s.Ob(2,"span"),s.ac(3,"subjectTag"),s.wc(4),s.Nb(),s.Ob(5,"span"),s.ac(6,"subjectTag"),s.wc(7),s.Nb(),s.Nb()),2&e){const e=t.$implicit;s.xb(1),s.yc(" ",e.disciplineName," "),s.xb(1),s.Ab("subject-tag ",s.bc(3,9,e.subjectAreaCode),""),s.xb(2),s.yc("",e.subjectAreaCode.toUpperCase()," "),s.xb(1),s.Ab("subject-tag-text ",s.cc(6,11,e.subjectAreaCode,s.jc(14,Te)),""),s.xb(2),s.yc(" ",e.subjectAreaName," ")}}function qe(e,t){1&e&&(s.Ob(0,"div",13),s.wc(1," Science (D) courses listed under the engineering, computer science and applied science disciplines can only be used to fulfill the recommended third year of science (D). "),s.Nb())}function Ze(e,t){if(1&e&&(s.Ob(0,"span",20),s.wc(1),s.Nb()),2&e){const e=t.$implicit;s.xb(1),s.xc(e)}}function Me(e,t){if(1&e&&s.Kb(0,"div",21),2&e){const e=s.Zb(3);s.fc("innerHtml",e.gradeLevelHelp,s.rc)}}function He(e,t){if(1&e&&(s.Ob(0,"div",14),s.wc(1," Grade "),s.Ob(2,"a",15),s.Ob(3,"span",16),s.Kb(4,"i",17),s.Nb(),s.Nb(),s.uc(5,Ze,2,1,"span",18),s.uc(6,Me,1,1,"ng-template",null,19,s.vc),s.Nb()),2&e){const e=s.oc(7),t=s.Zb(2);s.xb(2),s.fc("popover",e),s.xb(3),s.fc("ngForOf",t.course.gradeLevels)}}function De(e,t){if(1&e&&(s.Ob(0,"div"),s.wc(1),s.Nb()),2&e){const e=s.Zb(2);s.xb(1),s.Ac(" ",e.course.ctePathway," ",e.course.ctePathway&&e.course.cteIndustry?"/":""," ",e.course.cteIndustry," ")}}function Ye(e,t){if(1&e&&(s.Ob(0,"span"),s.wc(1),s.Nb()),2&e){const e=s.Zb(2);s.xb(1),s.yc("",e.course.courseLength,", ")}}function Ke(e,t){1&e&&(s.Ob(0,"span"),s.wc(1,", "),s.Nb())}function Ee(e,t){if(1&e&&(s.Ob(0,"span"),s.Kb(1,"i",22),s.wc(2," Classroom-based"),s.uc(3,Ke,2,0,"span",1),s.Nb()),2&e){const e=s.Zb(2);s.xb(3),s.fc("ngIf",e.course.isOnline||e.course.hasLabs)}}function Ve(e,t){1&e&&(s.Ob(0,"span"),s.wc(1,", "),s.Nb())}function Be(e,t){if(1&e&&(s.Ob(0,"span"),s.Kb(1,"i",23),s.wc(2," Online"),s.uc(3,Ve,2,0,"span",1),s.Nb()),2&e){const e=s.Zb(2);s.xb(3),s.fc("ngIf",e.course.hasLabs)}}function $e(e,t){1&e&&(s.Ob(0,"span"),s.Kb(1,"i",24),s.wc(2," Labs"),s.Nb())}function Ge(e,t){if(1&e&&(s.Ob(0,"div",2),s.Ob(1,"div"),s.Ob(2,"h5"),s.wc(3),s.Nb(),s.uc(4,Re,3,0,"div",3),s.uc(5,je,2,1,"div",4),s.uc(6,Pe,8,15,"div",5),s.uc(7,qe,2,0,"div",6),s.Nb(),s.uc(8,He,8,2,"div",7),s.uc(9,De,2,3,"div",1),s.Ob(10,"div",8),s.uc(11,Ye,2,1,"span",1),s.uc(12,Ee,4,1,"span",1),s.uc(13,Be,4,1,"span",1),s.uc(14,$e,3,0,"span",1),s.Nb(),s.Nb()),2&e){const e=s.Zb();s.xb(3),s.yc(" ",e.course.title," "),s.xb(1),s.fc("ngIf","None"!==e.course.honorsTypeName),s.xb(1),s.fc("ngIf",e.course.adoptedFrom),s.xb(1),s.fc("ngForOf",e.course.disciplines),s.xb(1),s.fc("ngIf",e.isEngineeringOrAppliedScienceAreaD),s.xb(1),s.fc("ngIf",e.course.gradeLevels&&e.course.gradeLevels.length>0),s.xb(1),s.fc("ngIf",e.course.isCte),s.xb(2),s.fc("ngIf",e.course.courseLength),s.xb(1),s.fc("ngIf",e.course.isClassroomBased),s.xb(1),s.fc("ngIf",e.course.isOnline),s.xb(1),s.fc("ngIf",e.course.hasLabs)}}function Ue(e,t){if(1&e&&(s.Ob(0,"div",27),s.Kb(1,"i",28),s.wc(2,"\xa0 "),s.Ob(3,"a",29),s.wc(4,"View high schools offering this course for A-G fulfillment"),s.Nb(),s.Nb()),2&e){const e=s.Zb(2);s.xb(3),s.ic("routerLink","/agcourselist/institution/",e.course.ownerInstitutionId,"/course/",e.course.courseId,"")}}const Je=function(e,t,i){return{"one-col":e,"two-col":t,"three-col":i}};function We(e,t){if(1&e&&(s.Ob(0,"li",35),s.wc(1),s.Nb()),2&e){const e=t.$implicit,i=s.Zb(3);s.fc("ngClass",s.mc(2,Je,i.numberOfTranscriptAbbrevCols<=1,2===i.numberOfTranscriptAbbrevCols,i.numberOfTranscriptAbbrevCols>=3)),s.xb(1),s.yc(" ",e.abbreviation," ")}}function _e(e,t){if(1&e&&(s.Ob(0,"li",35),s.wc(1),s.Nb()),2&e){const e=t.$implicit,i=s.Zb(3);s.fc("ngClass",s.mc(2,Je,i.numberOfLocalCourseCols<=1,2===i.numberOfLocalCourseCols,i.numberOfLocalCourseCols>=3)),s.xb(1),s.yc(" ",e.code," ")}}function ze(e,t){if(1&e&&(s.Ob(0,"div",30),s.Ob(1,"div",31),s.Ob(2,"h6"),s.Kb(3,"i",32),s.wc(4,"Transcript Abbreviations"),s.Nb(),s.Ob(5,"ul"),s.uc(6,We,2,6,"li",33),s.Nb(),s.Nb(),s.Ob(7,"div",34),s.Ob(8,"h6"),s.Kb(9,"i",32),s.wc(10,"Local Course Codes"),s.Nb(),s.Ob(11,"ul"),s.uc(12,_e,2,6,"li",33),s.Nb(),s.Nb(),s.Nb()),2&e){const e=s.Zb(2);s.xb(6),s.fc("ngForOf",e.transcriptAbbrevs),s.xb(6),s.fc("ngForOf",e.localCourseCodes)}}function Qe(e,t){if(1&e&&(s.Ob(0,"div"),s.uc(1,Ue,5,2,"div",25),s.uc(2,ze,13,2,"div",26),s.Nb()),2&e){const e=s.Zb();s.xb(1),s.fc("ngIf",!e.course.isEnrollable&&!e.hideNotEnrollableWarning),s.xb(1),s.fc("ngIf",e.course.isEnrollable&&e.course.transcriptAbbreviations&&e.course.transcriptAbbreviations.length>0)}}function Xe(e,t){1&e&&(s.Ob(0,"div"),s.Kb(1,"i",36),s.wc(2," Loading..."),s.Nb())}let et=(()=>{class e{constructor(e,t){this.service=e,this.contentService=t,this.hideNotEnrollableWarning=!1,this.loaded=new s.n,this.numberOfTranscriptAbbrevCols=1,this.numberOfLocalCourseCols=1,this.isEngineeringOrAppliedScienceAreaD=!1}ngOnInit(){this.service.get(this.courseId,this.academicYearId).subscribe(e=>{this.course=e,this.preferredSubjectAreaCode&&""!==this.preferredSubjectAreaCode&&this.course.disciplines[0].subjectAreaCode.toUpperCase()!==this.preferredSubjectAreaCode.toUpperCase()&&this.course.disciplines.reverse(),this.transcriptAbbrevs=this.removeDuplicateAbbrevs(this.course.transcriptAbbreviations.filter(e=>e.abbreviation&&""!==e.abbreviation).sort((e,t)=>e.abbreviation<t.abbreviation?-1:e.abbreviation>t.abbreviation?1:0)),this.localCourseCodes=this.removeDuplicateCodes(this.course.transcriptAbbreviations.filter(e=>e.code&&""!==e.code).sort((e,t)=>e.code<t.code?-1:e.code>t.code?1:0)),this.transcriptAbbrevs&&(this.numberOfTranscriptAbbrevCols=Math.ceil(this.transcriptAbbrevs.length/14)),this.localCourseCodes&&(this.numberOfLocalCourseCols=Math.ceil(this.localCourseCodes.length/14)),this.course.disciplines.some((function(e){return!0===e.isEngineeringOrAppliedScience}))&&(this.isEngineeringOrAppliedScienceAreaD=!0),this.gradeLevelHelp=this.contentService.getReferenceListGradeLevelHelp(),this.loaded.emit(this.course)})}showAbbrev(e){return!0}showCode(){return!0}removeDuplicateAbbrevs(e){return e.reduce((e,t)=>(e.some(e=>e.abbreviation===t.abbreviation)||e.push(t),e),[])}removeDuplicateCodes(e){return e.reduce((e,t)=>(e.some(e=>e.code===t.code)||e.push(t),e),[])}}return e.\u0275fac=function(t){return new(t||e)(s.Jb(C),s.Jb(L))},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-course"]],inputs:{courseId:"courseId",academicYearId:"academicYearId",preferredSubjectAreaCode:"preferredSubjectAreaCode",hideNotEnrollableWarning:"hideNotEnrollableWarning"},outputs:{loaded:"loaded"},decls:3,vars:3,consts:[["class","mainCourseInfo",4,"ngIf"],[4,"ngIf"],[1,"mainCourseInfo"],["class","honors",4,"ngIf"],["class","font-italic",4,"ngIf"],["class","subjectLine muted",4,"ngFor","ngForOf"],["class","muted font-italic",4,"ngIf"],["class","grades",4,"ngIf"],[1,"yearLocationLine","muted"],[1,"honors"],[1,"fas","fa-star"],[1,"font-italic"],[1,"subjectLine","muted"],[1,"muted","font-italic"],[1,"grades"],["href","javascript:void(0);","placement","bottom","triggers","focus",1,"popOverTrigger",3,"popover"],[1,"gradeHelpIcon"],[1,"fas","fa-question-circle","text-primary-darkblue"],["class","grade",4,"ngFor","ngForOf"],["popTemplate",""],[1,"grade"],[1,"subjectPopover",3,"innerHtml"],[1,"fas","fa-building","fa-sm","text-primary-darkblue"],[1,"fas","fa-wifi","fa-sm","text-primary-lightblue"],[1,"fas","fa-flask","fa-sm","text-secondary-pink"],["class","alert alert-primary",4,"ngIf"],["class","transcriptPod",4,"ngIf"],[1,"alert","alert-primary"],[1,"fas","fa-info-circle"],["href","",1,"color-blue-dark",3,"routerLink"],[1,"transcriptPod"],[1,"abbrevPod"],[1,"fas","fa-list-ul"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"localCoursePod"],[3,"ngClass"],[1,"fas","fa-spin","fa-spinner"]],template:function(e,t){1&e&&(s.uc(0,Ge,15,11,"div",0),s.uc(1,Qe,3,2,"div",1),s.uc(2,Xe,3,0,"div",1)),2&e&&(s.fc("ngIf",t.course),s.xb(1),s.fc("ngIf",t.course),s.xb(1),s.fc("ngIf",!t.course))},directives:[r.j,r.i,u.a,p.h,r.h],pipes:[V],encapsulation:2}),e})();function tt(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div",7),s.Ob(1,"pcl-institution",8),s.Vb("loaded",(function(t){return s.qc(e),s.Zb().institutionLoaded(t)})),s.Nb(),s.Nb()}if(2&e){const e=s.Zb();s.xb(1),s.fc("institutionId",e.institutionId)}}const it=function(e){return{fixed:e}};function st(e,t){if(1&e&&(s.Ob(0,"div",16),s.Ob(1,"div",17),s.Kb(2,"i",18),s.Nb(),s.Kb(3,"div",19),s.Nb()),2&e){const e=s.Zb(2);s.fc("ngClass",s.kc(2,it,e.referenceListWarningFixed)),s.xb(3),s.fc("innerHTML",e.referenceListWarning,s.rc)}}function rt(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div",20),s.Ob(1,"pcl-course-list-filter",21),s.Vb("filtered",(function(t){return s.qc(e),s.Zb(2).filteredCourses=t})),s.Nb(),s.Nb()}if(2&e){const e=s.Zb(2);s.xb(1),s.fc("courses",e.courseList.courses)("isReferenceList",e.isReferenceList)}}function nt(e,t){1&e&&(s.Yb(),s.Ob(0,"svg",32),s.Kb(1,"use",33),s.Nb())}function ct(e,t){if(1&e){const e=s.Pb();s.Ob(0,"li",36),s.Ob(1,"a",37),s.Vb("click",(function(){s.qc(e);const i=t.$implicit;return s.Zb(5).navigateToYear(i)})),s.wc(2),s.Nb(),s.Nb()}if(2&e){const e=t.$implicit;s.xb(2),s.xc(e.year)}}function ot(e,t){if(1&e&&(s.Ob(0,"ul",34),s.uc(1,ct,3,1,"li",35),s.Nb()),2&e){const e=s.Zb(4);s.xb(1),s.fc("ngForOf",e.additionalYears)}}const at=function(e){return{btnActive:e}};function lt(e,t){if(1&e&&(s.Ob(0,"span",26),s.Ob(1,"div",27),s.Ob(2,"button",28),s.uc(3,nt,2,0,"svg",29),s.Ob(4,"span",30),s.wc(5),s.Nb(),s.Nb(),s.uc(6,ot,2,1,"ul",31),s.Nb(),s.Nb()),2&e){const e=s.Zb(3);s.xb(2),s.fc("ngClass",s.kc(3,at,e.olderYear())),s.xb(1),s.fc("ngIf",e.olderYear()),s.xb(2),s.xc(e.olderYear())}}function ut(e,t){1&e&&(s.Ob(0,"span"),s.Kb(1,"i",39),s.Nb())}function bt(e,t){if(1&e){const e=s.Pb();s.Ob(0,"span",26),s.Ob(1,"button",38),s.Vb("click",(function(){s.qc(e);const i=t.$implicit;return s.Zb(3).navigateToYear(i)})),s.uc(2,ut,2,0,"span",5),s.Ob(3,"span",30),s.wc(4),s.Nb(),s.Nb(),s.Nb()}if(2&e){const e=t.$implicit;s.xb(1),s.fc("ngClass",s.kc(3,at,e.isSelected)),s.xb(1),s.fc("ngIf",e.isSelected),s.xb(2),s.xc(e.year)}}function ft(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div",40),s.Ob(1,"button",41),s.Vb("click",(function(){s.qc(e);const t=s.Zb(3);return t.exportCourseListAsPdf(t.institutionId)})),s.wc(2),s.Nb(),s.Nb()}if(2&e){const e=s.Zb(3);s.xb(2),s.yc("Print ",e.selectedYear," Course List (pdf)")}}function dt(e,t){if(1&e&&(s.Ob(0,"div",22),s.uc(1,lt,7,5,"span",23),s.uc(2,bt,5,5,"span",24),s.uc(3,ft,3,1,"div",25),s.Nb()),2&e){const e=s.Zb(2);s.xb(1),s.fc("ngIf",e.additionalYears&&e.additionalYears.length>0),s.xb(1),s.fc("ngForOf",e.mostRecentThreeYears),s.xb(1),s.fc("ngIf",!e.isReferenceList&&e.courseList.courses&&e.courseList.courses.length>0)}}function ht(e,t){if(1&e&&s.Kb(0,"div",50),2&e){const e=s.Zb().$implicit,t=s.Zb(3);s.fc("innerHtml",t.subjectAreaDefinitions[e.subjectArea].detailHtml,s.rc)}}function pt(e,t){1&e&&s.Kb(0,"i",60)}function gt(e,t){1&e&&(s.Ob(0,"div"),s.Kb(1,"i",61),s.wc(2," Online"),s.Nb())}function vt(e,t){1&e&&(s.Ob(0,"div"),s.Kb(1,"i",62),s.wc(2," Classroom-based"),s.Nb())}const mt=function(e){return{honors:e}};function Ot(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div",53),s.Vb("click",(function(){s.qc(e);const t=s.Zb().$implicit;return t.expanded=!t.expanded})),s.Ob(1,"div",54),s.uc(2,pt,1,0,"i",55),s.Nb(),s.Ob(3,"div",56),s.Ob(4,"span"),s.Ob(5,"i",57),s.wc(6,"\xa0"),s.Nb(),s.Nb(),s.wc(7),s.Nb(),s.Ob(8,"div",58),s.Ob(9,"div"),s.wc(10),s.Nb(),s.Nb(),s.Ob(11,"div",59),s.uc(12,gt,3,0,"div",5),s.uc(13,vt,3,0,"div",5),s.Nb(),s.Nb()}if(2&e){const e=s.Zb().$implicit;s.xb(1),s.fc("ngClass",s.kc(6,mt,e.isHonors)),s.xb(1),s.fc("ngIf",e.isHonors),s.xb(5),s.yc(" ",e.title," "),s.xb(3),s.yc(" ",e.disciplineName," "),s.xb(2),s.fc("ngIf",e.isOnline),s.xb(1),s.fc("ngIf",e.isClassroomBased)}}function yt(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div",7),s.Ob(1,"a",63),s.Vb("click",(function(){s.qc(e);const t=s.Zb().$implicit;return s.Zb(4).closeRow(t)})),s.wc(2,"\xa0"),s.Nb(),s.Ob(3,"pcl-course",64),s.Vb("loaded",(function(){return s.qc(e),s.Zb().$implicit.loaded=!0})),s.Nb(),s.Nb()}if(2&e){const e=s.Zb().$implicit,t=s.Zb().$implicit,i=s.Zb(3);s.xb(3),s.fc("courseId",e.courseId)("academicYearId",i.courseList.academicYearId)("preferredSubjectAreaCode",t.subjectArea)}}const wt=function(e,t){return{show:e,transition:t}};function It(e,t){if(1&e&&(s.Ob(0,"div"),s.uc(1,Ot,14,8,"div",51),s.Ob(2,"div",52),s.uc(3,yt,4,3,"div",2),s.Nb(),s.Nb()),2&e){const e=t.$implicit;s.xb(1),s.fc("ngIf",!e.expanded),s.xb(1),s.fc("ngClass",s.lc(3,wt,e.loaded,!e.loaded&&e.expanded)),s.xb(1),s.fc("ngIf",e.expanded)}}const xt=function(){return{prefix:"section"}},Nt=function(){return{prefix:"tag"}};function Ct(e,t){if(1&e&&(s.Ob(0,"div"),s.Ob(1,"div"),s.ac(2,"subjectTag"),s.Ob(3,"div",45),s.Ob(4,"a",46),s.Ob(5,"span"),s.ac(6,"subjectTag"),s.wc(7),s.Nb(),s.wc(8),s.Ob(9,"span",47),s.wc(10),s.Kb(11,"i",48),s.Nb(),s.Nb(),s.Nb(),s.Nb(),s.uc(12,ht,1,1,"ng-template",null,49,s.vc),s.uc(14,It,4,6,"div",44),s.Nb()),2&e){const e=t.$implicit,i=s.oc(13),r=s.Zb(3);s.xb(1),s.Ab("grid-row-section-header ",s.cc(2,11,e.subjectArea,s.jc(17,xt)),""),s.xb(3),s.fc("popover",i),s.xb(1),s.Ab("subject-tag ",s.cc(6,14,e.subjectArea,s.jc(18,Nt)),""),s.xb(2),s.xc(e.subjectArea.toUpperCase()),s.xb(1),s.yc(" ",r.subjectAreaDefinitions[e.subjectArea].title," "),s.xb(2),s.yc("",r.subjectAreaDefinitions[e.subjectArea].yearsRequired," "),s.xb(4),s.fc("ngForOf",e.courses)}}function Lt(e,t){if(1&e&&(s.Ob(0,"div",42),s.Ob(1,"div",43),s.Kb(2,"div"),s.Ob(3,"div"),s.wc(4,"Course"),s.Nb(),s.Ob(5,"div"),s.wc(6,"Discipline"),s.Nb(),s.Ob(7,"div"),s.wc(8,"Learning Environment"),s.Nb(),s.Nb(),s.uc(9,Ct,15,19,"div",44),s.Nb()),2&e){const e=s.Zb(2);s.xb(9),s.fc("ngForOf",e.coursesBySubjectArea)}}function St(e,t){if(1&e&&(s.Ob(0,"div"),s.wc(1),s.Nb()),2&e){const e=s.Zb(4);s.xb(1),s.yc(" This course list is unavailable for the ",e.notAvailableForCurrentYear?"current":"selected"," year. If you have questions, please email hsarticulation@ucop.edu. ")}}function kt(e,t){1&e&&(s.Ob(0,"div"),s.wc(1," This school has yet to add any courses to their A-G list. If you have questions, please email hsarticulation@ucop.edu. "),s.Nb())}function Ft(e,t){1&e&&(s.Ob(0,"div"),s.Ob(1,"p"),s.wc(2,"There is no updated course list for this year. Please refer to the 2013-2014 A-G course list as a reference. "),s.Nb(),s.Ob(3,"p"),s.Ob(4,"strong"),s.wc(5,"Note"),s.Nb(),s.wc(6,": the 2013-2014 course list does not include all of the college's current course offerings that may fulfill the A-G subject requirements for UC/CSU freshman admission. You should also refer to the "),s.Ob(7,"a",68),s.wc(8,"ASSIST"),s.Nb(),s.wc(9," website to determine the transferability of this community college's courses. UC-transferable college courses of 3 semester/4 quarter units which clearly fall within A-G subject disciplines may be used to meet A-G subject requirements; some non-transferable courses of 3 semester/4 quarter units in English and Math only are also acceptable. Additional information on meeting A-G requirements with college courses is available on the "),s.Ob(10,"a",69),s.wc(11,"UC Admissions website"),s.Nb(),s.wc(12,". "),s.Nb(),s.Nb())}function At(e,t){if(1&e&&(s.Ob(0,"div",67),s.uc(1,St,2,1,"div",5),s.uc(2,kt,2,0,"div",5),s.uc(3,Ft,13,0,"div",5),s.Nb()),2&e){const e=s.Zb(3);s.xb(1),s.fc("ngIf",!e.courseList.showCommunityCollegeListAsUnavailable&&e.courseList.accreditationLapsed),s.xb(1),s.fc("ngIf",!e.courseList.showCommunityCollegeListAsUnavailable&&!e.courseList.accreditationLapsed),s.xb(1),s.fc("ngIf",e.courseList.showCommunityCollegeListAsUnavailable)}}function Rt(e,t){1&e&&(s.Ob(0,"div",67),s.wc(1," No courses match the selected filters. "),s.Nb())}function jt(e,t){if(1&e&&(s.Ob(0,"div",65),s.uc(1,At,4,3,"div",66),s.uc(2,Rt,2,0,"div",66),s.Nb()),2&e){const e=s.Zb(2);s.xb(1),s.fc("ngIf",!e.courseList.courses||0==e.courseList.courses.length),s.xb(1),s.fc("ngIf",e.filteredCourses&&0==e.filteredCourses.length&&e.courseList.courses&&e.courseList.courses.length>0)}}function Tt(e,t){if(1&e&&(s.Ob(0,"div"),s.Ob(1,"div",9),s.uc(2,st,4,4,"div",10),s.uc(3,rt,2,2,"div",11),s.Ob(4,"div",12),s.uc(5,dt,4,3,"div",13),s.Nb(),s.uc(6,Lt,10,1,"div",14),s.uc(7,jt,3,2,"div",15),s.Nb(),s.Nb()),2&e){const e=s.Zb();s.xb(2),s.fc("ngIf",e.isReferenceList),s.xb(1),s.fc("ngIf",e.courseList&&e.courseList.courses),s.xb(2),s.fc("ngIf",e.mostRecentThreeYears&&e.mostRecentThreeYears.length>0),s.xb(1),s.fc("ngIf",!e.loading),s.xb(1),s.fc("ngIf",!e.loading)}}function Pt(e,t){1&e&&(s.Ob(0,"div",70),s.Kb(1,"i",71),s.wc(2," Loading ... "),s.Nb())}const qt=function(e,t){return{"course-list":e,"course-ref-list":t}},Zt=function(e){return{show:e}};let Mt=(()=>{class e{constructor(e,t,i,s,r,n,c){this.route=e,this.doc=t,this.service=i,this.contentService=s,this.searchService=r,this.institutionService=n,this.router=c,this.mostRecentThreeYears=[],this.additionalYears=[],this.academicYears=[],this.loading=!0,this.coursesBySubjectArea=[]}get filteredCourses(){return this._filteredCourses}set filteredCourses(e){this._filteredCourses=e,this.updateCoursesBySubjectArea()}ngOnInit(){this.institutionId=this.route.snapshot.params.institutionId,this.institutionService.get(this.institutionId.toString()).subscribe(e=>{this.institution=e,this.isCommunityCollege="Community College"===e.institutionType,this.service.getAcademicYears(this.institutionId).subscribe(e=>{this.academicYears=e,this.isCommunityCollege&&(this.academicYears=this.academicYears.filter(e=>e.year<="2013-14")),this.mostRecentThreeYears=this.academicYears.splice(0,3).reverse(),this.academicYears.length>0&&(this.additionalYears=this.academicYears),this.route.params.subscribe(e=>{this.loadCourseList(+e.academicYearId)})})},e=>{this.notFound=!0}),this.subjectAreaDefinitions=this.contentService.getSubjectAreaDefinitions()}institutionLoaded(){this.referenceListWarning=this.contentService.getReferenceListProgramWarning()}loadCourseList(e){let t=this.mostRecentThreeYears.find(e=>e.isSelected)||this.additionalYears.find(e=>e.isSelected);if(t?t.isSelected=!1:(t=this.mostRecentThreeYears[this.mostRecentThreeYears.length-1],t&&(t.isSelected=!1,e=t.academicYearId)),t)if(this.loading=!0,this.notAvailableForCurrentYear=!1,e){let t=[...this.mostRecentThreeYears,...this.additionalYears].find(t=>t.academicYearId===e);t?(t.isSelected=!0,this.selectedYear=t.year,this.service.getByAcademicYear(this.institutionId,t.academicYearId).subscribe(e=>{this.courseList=e,this.filteredCourses=this.courseList.courses,this.isReferenceList=this.courseList.isReferenceList,this.loading=!1})):(this.loading=!1,this.courseList={courses:oe.a[0]},this.filteredCourses=[])}else this.service.get(this.institutionId).subscribe(e=>{this.courseList=e,this.filteredCourses=this.courseList.courses,this.isReferenceList=this.courseList.isReferenceList,this.loading=!1;let t=this.mostRecentThreeYears.find(t=>t.academicYearId===e.academicYearId);t?t.isSelected=!0:this.notAvailableForCurrentYear=!0});else this.loading=!1,this.courseList={courses:oe.a[0]},this.filteredCourses=[]}navigateToYear(e){this.router.navigate(["/agcourselist/institution/",this.institutionId,{academicYearId:e.academicYearId}])}olderYear(){let e=this.additionalYears.find(e=>e.isSelected);return null==e?"":e.year}updateCoursesBySubjectArea(){this.coursesBySubjectArea=[],this.filteredCourses&&this.filteredCourses.forEach(e=>{const t=e.subjectAreaCode;let i=this.coursesBySubjectArea.find(e=>e.subjectArea===t);i||(i={subjectArea:t,courses:[]},this.coursesBySubjectArea.push(i)),i.courses.push(e)})}exportCourseListAsPdf(e){this.searchService.downloadCourseListExport(this.institutionId.toString(),this.courseList.academicYearId.toString()).subscribe(e=>{Object(ce.saveAs)(e,"courselist-export.pdf")})}closeRow(e){e.loaded=!1,setTimeout(()=>e.expanded=!1,300)}onWindowScroll(){let e=window.scrollY||this.doc.documentElement.scrollTop||this.doc.body.scrollTop||0;e>290?this.referenceListWarningFixed=!0:this.referenceListWarningFixed&&e<240&&(this.referenceListWarningFixed=!1)}}return e.\u0275fac=function(t){return new(t||e)(s.Jb(p.a),s.Jb(r.c),s.Jb(Z),s.Jb(L),s.Jb(j),s.Jb(q),s.Jb(p.f))},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-course-list"]],hostBindings:function(e,t){1&e&&s.Vb("scroll",(function(){return t.onWindowScroll()}),!1,s.pc)},decls:8,vars:14,consts:[[2,"margin","15px 0"],[1,"gridInstitutions",3,"ngClass"],["class","grid-row-expanded",4,"ngIf"],[1,"gridCourses",3,"ngClass"],[1,"fade-in",3,"ngClass"],[4,"ngIf"],["class","loadingSpinner",4,"ngIf"],[1,"grid-row-expanded"],["hideCourseListButton","true",3,"institutionId","loaded"],["id","search-results"],["class","alertwithIcon margin-bottom-1-rem",3,"ngClass",4,"ngIf"],["class","courseListFilter",4,"ngIf"],[1,"gridButtonMain"],["class","grid-buttons",4,"ngIf"],["id","search-results","class","",4,"ngIf"],["class","margin-1-em-auto",4,"ngIf"],[1,"alertwithIcon","margin-bottom-1-rem",3,"ngClass"],[1,"icon"],[1,"fas","fa-info-circle"],[1,"alertContent",3,"innerHTML"],[1,"courseListFilter"],[3,"courses","isReferenceList","filtered"],[1,"grid-buttons"],["class","academicYear",4,"ngIf"],["class","academicYear",4,"ngFor","ngForOf"],["style","width: 100%;text-align: right; display: flex; margin-left: 50%;",4,"ngIf"],[1,"academicYear"],["dropdown","",1,"btn-group"],["id","button-basic","dropdownToggle","","type","button",1,"btn","btn-default","dropdown-toggle",2,"display","flex",3,"ngClass"],["viewBox","0 0 20 20","class","icon-check-circle",4,"ngIf"],[2,"padding-left","3px"],["id","dropdown-basic","class","dropdown-menu","role","menu","style","cursor:pointer;",4,"dropdownMenu"],["viewBox","0 0 20 20",1,"icon-check-circle"],[0,"xlink","href","#icon-check-circle"],["id","dropdown-basic","role","menu",1,"dropdown-menu",2,"cursor","pointer"],["role","menuitem",4,"ngFor","ngForOf"],["role","menuitem"],[1,"dropdown-item",3,"click"],[1,"btn","btn-default",2,"display","flex",3,"ngClass","click"],[1,"fas","fa-check-circle"],[2,"width","100%","text-align","right","display","flex","margin-left","50%"],[1,"btn","btn-sm","btn-warning",2,"display","block","text-align","right",3,"click"],["id","search-results",1,""],[1,"grid-row","resultsHeader"],[4,"ngFor","ngForOf"],[1,"courseListDisciplineHdr"],["href","javascript:void(0);","placement","bottom","triggers","focus",1,"popOverTrigger",3,"popover"],[1,"yearsRequired"],[1,"fas","fa-question-circle","fa-lg"],["popTemplate",""],[1,"subjectPopover",3,"innerHtml"],["class","grid-row",3,"click",4,"ngIf"],[1,"expand-in",3,"ngClass"],[1,"grid-row",3,"click"],[1,"courseNormal",3,"ngClass"],["title","UC Honors","class","fas fa-star",4,"ngIf"],[1,"resultsCourseTitle"],[1,"fas","fa-chevron-down","fa-sm"],[1,"resultsDiscipline"],[1,"resultsEnvironment"],["title","UC Honors",1,"fas","fa-star"],[1,"fas","fa-wifi","fa-sm","text-primary-lightblue"],[1,"fas","fa-building","fa-sm","text-primary-darkblue"],["href","javascript:void(0)",1,"hideResult",3,"click"],[3,"courseId","academicYearId","preferredSubjectAreaCode","loaded"],[1,"margin-1-em-auto"],["class","alert alert-warning margin-top-5",4,"ngIf"],[1,"alert","alert-warning","margin-top-5"],["href","http://www.assist.org/","target","_blank"],["href","http://admission.universityofcalifornia.edu/freshman/requirements/a-g-requirements/index.html","target","_blank"],[1,"loadingSpinner"],[1,"fas","fa-spin","fa-spinner"]],template:function(e,t){1&e&&(s.Ob(0,"div",0),s.Kb(1,"pcl-back-to-search"),s.Nb(),s.Ob(2,"div",1),s.uc(3,tt,2,1,"div",2),s.Nb(),s.Ob(4,"div",3),s.Ob(5,"div",4),s.uc(6,Tt,8,5,"div",5),s.Nb(),s.uc(7,Pt,3,0,"div",6),s.Nb()),2&e&&(s.xb(2),s.fc("ngClass",s.lc(6,qt,!t.isReferenceList,t.isReferenceList)),s.xb(1),s.fc("ngIf",t.institutionId),s.xb(1),s.fc("ngClass",s.lc(9,qt,!t.isReferenceList,t.isReferenceList)),s.xb(1),s.fc("ngClass",s.kc(12,Zt,t.courseList)),s.xb(1),s.fc("ngIf",t.courseList),s.xb(1),s.fc("ngIf",t.loading))},directives:[ue,r.h,r.j,xe,Ae,r.i,d.a,d.d,d.b,u.a,et],pipes:[V],encapsulation:2}),e})();var Ht=i("HDdC"),Dt=i("LRne");class Yt{constructor(){this.clearObservable=new Ht.a(e=>this.clearObserver=e)}clearResult(){return this.clearObservable}raiseClearResult(){this.clearObserver.next(1)}}class Kt extends Yt{constructor(e,t){super(),this.searchService=e,this.request=t}getResult(e){return this.request.filters&&0!==this.request.filters.length||this.request.query?this.searchService.getResult({page:e,pageSize:50,filters:this.request.filters,query:this.request.query,searchType:this.request.searchType,isReferenceListSearch:this.request.isReferenceListSearch,skipFacets:!0}):Object(Dt.a)({})}}class Et extends Yt{constructor(e,t,i){super(),this.searchService=e,this.courseId=t,this.query=i}getResult(e){return this.searchService.getSchoolsOfferingCourse({page:e,pageSize:50,skipFacets:!0,query:this.query},this.courseId)}}class Vt extends Yt{constructor(e,t){super(),this.searchService=e,this.districtId=t}getResult(e){return this.searchService.getSchoolsInDistrict({page:e,pageSize:50,skipFacets:!0},this.districtId)}}function Bt(e,t){1&e&&(s.Ob(0,"div",3),s.Kb(1,"i",4),s.wc(2," Loading..."),s.Nb())}const $t=function(e){return{fixed:e}};function Gt(e,t){if(1&e&&(s.Ob(0,"div",10),s.Ob(1,"div",11),s.Ob(2,"div",12),s.Kb(3,"i",13),s.Nb(),s.Kb(4,"div",14),s.Nb(),s.Nb()),2&e){const e=s.Zb(2);s.xb(1),s.fc("ngClass",s.kc(2,$t,e.referenceListWarningFixed)),s.xb(3),s.fc("innerHTML",e.referenceListWarning,s.rc)}}function Ut(e,t){1&e&&(s.Ob(0,"div"),s.wc(1,"Location"),s.Nb())}function Jt(e,t){1&e&&s.Kb(0,"i",29)}function Wt(e,t){if(1&e&&(s.Ob(0,"div",30),s.wc(1),s.Nb()),2&e){const e=s.Zb(2).$implicit;s.xb(1),s.xc(e.institutionLocation)}}const _t=function(e){return{honors:e}};function zt(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div",23),s.Vb("click",(function(){return s.qc(e),s.Zb().$implicit.expanded=!0})),s.Ob(1,"div",24),s.uc(2,Jt,1,0,"i",25),s.Nb(),s.Ob(3,"div",26),s.wc(4),s.Nb(),s.Ob(5,"div",27),s.wc(6),s.Nb(),s.uc(7,Wt,2,1,"div",28),s.Nb()}if(2&e){const e=s.Zb().$implicit,t=s.Zb(3);s.xb(1),s.fc("ngClass",s.kc(5,_t,e.isHonors)),s.xb(1),s.fc("ngIf",e.isHonors),s.xb(2),s.xc(e.courseTitle),s.xb(2),s.xc(e.institutionName),s.xb(1),s.fc("ngIf",!t.isReferenceList)}}function Qt(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div",31),s.Ob(1,"div",32),s.Ob(2,"a",33),s.Vb("click",(function(){s.qc(e);const t=s.Zb().$implicit;return s.Zb(3).closeRow(t)})),s.wc(3,"\xa0"),s.Nb(),s.Ob(4,"pcl-course",34),s.Vb("loaded",(function(){return s.qc(e),s.Zb().$implicit.loaded=!0})),s.Nb(),s.Nb(),s.Ob(5,"div",35),s.Ob(6,"pcl-institution",36),s.Vb("loaded",(function(){return s.qc(e),s.Zb().$implicit.loaded=!0})),s.Nb(),s.Nb(),s.Nb()}if(2&e){const e=s.Zb().$implicit;s.xb(4),s.fc("courseId",e.courseId)("hideNotEnrollableWarning",!0),s.xb(2),s.fc("institutionId",e.institutionId)}}function Xt(e,t){if(1&e&&(s.Ob(0,"div",37),s.Kb(1,"i",13),s.wc(2,"\xa0 "),s.Ob(3,"a",38),s.wc(4,"View high schools offering this course for A-G fulfillment"),s.Nb(),s.Nb()),2&e){const e=s.Zb().$implicit;s.xb(3),s.ic("routerLink","/agcourselist/institution/",e.institutionId,"/course/",e.courseId,"")}}const ei=function(e,t){return{show:e,transition:t}};function ti(e,t){if(1&e&&(s.Ob(0,"div"),s.uc(1,zt,8,7,"div",19),s.Ob(2,"div",20),s.uc(3,Qt,7,3,"div",21),s.uc(4,Xt,5,2,"div",22),s.Nb(),s.Nb()),2&e){const e=t.$implicit,i=s.Zb(3);s.xb(1),s.fc("ngIf",!e.expanded),s.xb(1),s.fc("ngClass",s.lc(4,ei,e.loaded,!e.loaded&&e.expanded)),s.xb(1),s.fc("ngIf",e.expanded),s.xb(1),s.fc("ngIf",i.isReferenceList&&e.expanded&&e.loaded)}}function ii(e,t){1&e&&(s.Ob(0,"div",39),s.Ob(1,"div"),s.wc(2,"No results found."),s.Nb(),s.Nb())}function si(e,t){if(1&e&&(s.Ob(0,"div",15),s.Ob(1,"div",16),s.Kb(2,"div"),s.Ob(3,"div"),s.wc(4,"Course"),s.Nb(),s.Ob(5,"div"),s.wc(6,"Institution"),s.Nb(),s.uc(7,Ut,2,0,"div",9),s.Nb(),s.uc(8,ti,5,7,"div",17),s.uc(9,ii,3,0,"div",18),s.Nb()),2&e){const e=s.Zb(2);s.xb(7),s.fc("ngIf",!e.isReferenceList),s.xb(1),s.fc("ngForOf",e.grid.courses),s.xb(1),s.fc("ngIf",0==e.grid.courses.length)}}function ri(e,t){if(1&e&&(s.Ob(0,"div",40),s.Ob(1,"div",10),s.Ob(2,"div",11),s.Ob(3,"div",12),s.Kb(4,"i",13),s.Nb(),s.Kb(5,"div",14),s.Nb(),s.Nb(),s.Nb()),2&e){const e=s.Zb(3);s.xb(2),s.fc("ngClass",s.kc(2,$t,e.referenceListWarningFixed)),s.xb(3),s.fc("innerHTML",e.communityCollegeHelp,s.rc)}}function ni(e,t){1&e&&(s.Ob(0,"div"),s.Kb(1,"i",43),s.wc(2," Online"),s.Nb())}function ci(e,t){1&e&&(s.Ob(0,"div"),s.Kb(1,"i",44),s.wc(2," Classroom-based"),s.Nb())}function oi(e,t){if(1&e&&(s.Ob(0,"div"),s.uc(1,ni,3,0,"div",9),s.uc(2,ci,3,0,"div",9),s.Nb()),2&e){const e=s.Zb(2).$implicit;s.xb(1),s.fc("ngIf",e.isOnline),s.xb(1),s.fc("ngIf",e.isClassroomBased)}}function ai(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div",23),s.Vb("click",(function(){return s.qc(e),s.Zb().$implicit.expanded=!0})),s.Ob(1,"div",27),s.Ob(2,"span"),s.Ob(3,"i",42),s.wc(4,"\xa0"),s.Nb(),s.Nb(),s.wc(5),s.Nb(),s.Ob(6,"div",30),s.wc(7),s.Nb(),s.uc(8,oi,3,2,"div",9),s.Nb()}if(2&e){const e=s.Zb().$implicit,t=s.Zb(3);s.xb(5),s.xc(e.name),s.xb(2),s.xc(e.location),s.xb(1),s.fc("ngIf",t.showLearningEnvironment)}}function li(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div",45),s.Ob(1,"a",33),s.Vb("click",(function(){s.qc(e);const t=s.Zb().$implicit;return s.Zb(3).closeRow(t)})),s.wc(2,"\xa0"),s.Nb(),s.Ob(3,"pcl-institution",36),s.Vb("loaded",(function(){return s.qc(e),s.Zb().$implicit.loaded=!0})),s.Nb(),s.Nb()}if(2&e){const e=s.Zb().$implicit;s.xb(3),s.fc("institutionId",e.institutionId)}}function ui(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div",32),s.Ob(1,"a",33),s.Vb("click",(function(){s.qc(e);const t=s.Zb(2).$implicit;return s.Zb(3).closeRow(t)})),s.wc(2,"\xa0"),s.Nb(),s.Ob(3,"pcl-course",48),s.Vb("loaded",(function(){return s.qc(e),s.Zb(2).$implicit.loaded=!0})),s.Nb(),s.Nb()}if(2&e){const e=s.Zb(2).$implicit;s.xb(3),s.fc("courseId",e.courseId)}}function bi(e,t){if(1&e&&(s.Ob(0,"div",31),s.uc(1,ui,4,1,"div",46),s.Ob(2,"div",35),s.Kb(3,"pcl-institution",47),s.Nb(),s.Nb()),2&e){const e=s.Zb().$implicit;s.xb(1),s.fc("ngIf",e.courseId),s.xb(2),s.fc("institutionId",e.institutionId)}}function fi(e,t){if(1&e&&(s.Ob(0,"div"),s.uc(1,ai,9,3,"div",19),s.Ob(2,"div",20),s.uc(3,li,4,1,"div",41),s.uc(4,bi,4,2,"div",21),s.Nb(),s.Nb()),2&e){const e=t.$implicit;s.xb(1),s.fc("ngIf",!e.expanded),s.xb(1),s.fc("ngClass",s.lc(4,ei,e.loaded,!e.loaded&&e.expanded)),s.xb(1),s.fc("ngIf",e.expanded&&!e.courseId),s.xb(1),s.fc("ngIf",e.expanded&&e.courseId)}}function di(e,t){1&e&&(s.Ob(0,"div",39),s.wc(1,"No results found."),s.Nb())}function hi(e,t){if(1&e&&(s.Ob(0,"div",40),s.uc(1,ri,6,4,"div",8),s.Ob(2,"div",16),s.Ob(3,"div"),s.wc(4,"Institution"),s.Nb(),s.Ob(5,"div"),s.wc(6,"Location"),s.Nb(),s.Ob(7,"div"),s.wc(8),s.Nb(),s.Nb(),s.uc(9,fi,5,7,"div",17),s.uc(10,di,2,0,"div",18),s.Nb()),2&e){const e=s.Zb(2);s.xb(1),s.fc("ngIf",e.showCommunityCollegeHelp()),s.xb(7),s.xc(e.showLearningEnvironment?"Learning Environment":""),s.xb(1),s.fc("ngForOf",e.grid.institutions),s.xb(1),s.fc("ngIf",0==e.grid.institutions.length)}}function pi(e,t){1&e&&(s.Ob(0,"div"),s.Kb(1,"i",4),s.wc(2," Loading more..."),s.Nb())}const gi=function(e){return{"search-results-grid-ref":e}};function vi(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div",5),s.Vb("scrolled",(function(){return s.qc(e),s.Zb().getMoreResults()})),s.uc(1,Gt,5,4,"div",6),s.uc(2,si,10,3,"div",7),s.uc(3,hi,11,4,"div",8),s.uc(4,pi,3,0,"div",9),s.Nb()}if(2&e){const e=s.Zb();s.fc("ngClass",s.kc(7,gi,e.isReferenceList))("infiniteScrollDisabled",e.isLoadingData)("infiniteScrollDistance",2),s.xb(1),s.fc("ngIf",e.isReferenceList),s.xb(1),s.fc("ngIf",e.grid.courses),s.xb(1),s.fc("ngIf",e.grid.institutions),s.xb(1),s.fc("ngIf",e.isLoadingData)}}const mi=function(e){return{show:e}};let Oi=(()=>{class e{constructor(e,t){this.contentService=e,this.doc=t,this.grid={}}set searchProvider(e){this._searchProvider=e,this.grid.courses=null,this.grid.institutions=null,this.currentPage=1,this._searchProvider.clearResult().subscribe(()=>this.clearResults()),this.performSearch()}get searchProvider(){return this._searchProvider}ngOnInit(){this.referenceListWarning=this.contentService.getReferenceListSearchWarning(),this.communityCollegeHelp=this.contentService.getReferenceListCommunityCollegeWarning()}getMoreResults(){this.isLoadingData||this.currentPage>this.grid.totalPages||this.performSearch()}performSearch(){this.isLoadingData=!0,this.searchProvider.getResult(this.currentPage).subscribe(e=>{this.isLoadingData=!1,this.currentPage++,this.grid.totalPages=e.totalPages,this.grid.institutions=this.grid.institutions?this.grid.institutions.concat(e.institutions):e.institutions,this.grid.courses=this.grid.courses?this.grid.courses.concat(e.courses):e.courses})}clearResults(){this.grid={}}closeRow(e){e.loaded=!1,setTimeout(()=>e.expanded=!1,300)}showCommunityCollegeHelp(){return this.grid.institutions.filter(e=>2==e.institutionType).length>0}onWindowScroll(){let e=window.scrollY||this.doc.documentElement.scrollTop||this.doc.body.scrollTop||0;e>290?this.referenceListWarningFixed=!0:this.referenceListWarningFixed&&e<240&&(this.referenceListWarningFixed=!1)}}return e.\u0275fac=function(t){return new(t||e)(s.Jb(L),s.Jb(r.c))},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-search-grid"]],hostBindings:function(e,t){1&e&&s.Vb("scroll",(function(){return t.onWindowScroll()}),!1,s.pc)},inputs:{searchProvider:"searchProvider",searchType:"searchType",isReferenceList:"isReferenceList",showLearningEnvironment:"showLearningEnvironment"},decls:3,vars:5,consts:[["class","loadingSpinner",4,"ngIf"],[1,"fade-in",3,"ngClass"],["id","search-results","class","search-results-grid","infiniteScroll","",3,"ngClass","infiniteScrollDisabled","infiniteScrollDistance","scrolled",4,"ngIf"],[1,"loadingSpinner"],[1,"fas","fa-spin","fa-spinner"],["id","search-results","infiniteScroll","",1,"search-results-grid",3,"ngClass","infiniteScrollDisabled","infiniteScrollDistance","scrolled"],["class","margin-bottom-1-rem",4,"ngIf"],["class","gridCourses",4,"ngIf"],["class","gridInstitutions",4,"ngIf"],[4,"ngIf"],[1,"margin-bottom-1-rem"],[1,"alertwithIcon",3,"ngClass"],[1,"icon"],[1,"fas","fa-info-circle"],[1,"alertContent",3,"innerHTML"],[1,"gridCourses"],[1,"grid-row","resultsHeader"],[4,"ngFor","ngForOf"],["class","grid-row noResults",4,"ngIf"],["class","grid-row",3,"click",4,"ngIf"],[1,"expand-in",3,"ngClass"],["class","grid-row grid-row-expanded",4,"ngIf"],["class","alert alert-primary",4,"ngIf"],[1,"grid-row",3,"click"],[1,"courseNormal",3,"ngClass"],["title","UC Honors","class","fas fa-star",4,"ngIf"],[1,"resultsCourseTitle"],[1,"resultsInstName"],["class","resultsInstLocation",4,"ngIf"],["title","UC Honors",1,"fas","fa-star"],[1,"resultsInstLocation"],[1,"grid-row","grid-row-expanded"],[1,"gridResultLeft"],["href","javascript:void(0)",1,"hideResult",3,"click"],[3,"courseId","hideNotEnrollableWarning","loaded"],[1,"gridResultRight"],[3,"institutionId","loaded"],[1,"alert","alert-primary"],["href","",1,"color-blue-dark",3,"routerLink"],[1,"grid-row","noResults"],[1,"gridInstitutions"],["class","grid-row-expanded",4,"ngIf"],[1,"fas","fa-chevron-down","fa-sm"],[1,"fas","fa-wifi","fa-sm","text-primary-lightblue"],[1,"fas","fa-building","fa-sm","text-primary-darkblue"],[1,"grid-row-expanded"],["class","gridResultLeft",4,"ngIf"],[3,"institutionId"],[3,"courseId","loaded"]],template:function(e,t){1&e&&(s.uc(0,Bt,3,0,"div",0),s.Ob(1,"div",1),s.uc(2,vi,5,9,"div",2),s.Nb()),2&e&&(s.fc("ngIf",t.isLoadingData&&!t.grid.courses&&!t.grid.institutions),s.xb(1),s.fc("ngClass",s.kc(3,mi,t.grid.courses||t.grid.institutions)),s.xb(1),s.fc("ngIf",t.grid.courses||t.grid.institutions))},directives:[r.j,r.h,h.a,r.i,et,xe,p.h],encapsulation:2}),e})();function yi(e,t){if(1&e&&(s.Ob(0,"div"),s.Kb(1,"pcl-search-grid",2),s.Nb()),2&e){const e=s.Zb();s.xb(1),s.fc("searchProvider",e.searchProvider)("isReferenceList",e.isReferenceList)}}let wi=(()=>{class e{constructor(e,t,i){this.route=e,this.searchService=t,this.routeDataService=i,this.grid={},this.searchProvider=null}ngOnInit(){this.filters=this.routeDataService.parseRouteFilters(this.route.snapshot.params.filters),this.isReferenceList=this.route.snapshot.data.isReferenceList,this.query=this.route.snapshot.params.query,this.searchType=+this.route.snapshot.params.searchType,this.searchProvider=new Kt(this.searchService,{query:this.query,filters:this.filters,searchType:this.searchType,isReferenceListSearch:this.isReferenceList}),this.facets=this.route.snapshot.data.facets,this.filters.forEach(e=>{e.selectedItems.forEach(t=>{(this.searchType===R.Institution?this.facets.institutionFacets:this.facets.courseFacets).find(t=>t.key===e.field).items.filter(e=>t===e.key).forEach(e=>{e.selected=!0})})})}postNewSearch(e){this.searchService.navigateToNewResults(e),this.filters=e.filters,this.query=e.query,this.searchType=e.searchType,this.searchProvider=new Kt(this.searchService,{query:this.query,filters:this.filters,searchType:this.searchType,isReferenceListSearch:this.isReferenceList})}clearResults(){this.searchProvider.raiseClearResult()}}return e.\u0275fac=function(t){return new(t||e)(s.Jb(p.a),s.Jb(j),s.Jb(S))},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-results"]],decls:2,vars:5,consts:[[3,"searchFacets","query","searchType","isReferenceList","search","clearResults"],[4,"ngIf"],[3,"searchProvider","isReferenceList"]],template:function(e,t){1&e&&(s.Ob(0,"pcl-search",0),s.Vb("search",(function(e){return t.postNewSearch(e)}))("clearResults",(function(){return t.clearResults()})),s.Nb(),s.uc(1,yi,2,2,"div",1)),2&e&&(s.fc("searchFacets",t.facets)("query",t.query)("searchType",t.searchType)("isReferenceList",t.isReferenceList),s.xb(1),s.fc("ngIf",t.searchProvider))},directives:[ie,r.j,Oi],encapsulation:2}),e})();function Ii(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div",4),s.Ob(1,"pcl-institution",5),s.Vb("loaded",(function(t){return s.qc(e),s.Zb().districtLoaded(t)})),s.Nb(),s.Nb()}if(2&e){const e=s.Zb();s.xb(1),s.fc("institutionId",e.institutionId)("hideCourseListButton",!0)}}function xi(e,t){if(1&e&&(s.Ob(0,"h3",9),s.wc(1),s.Nb()),2&e){const e=s.Zb(2);s.xb(1),s.yc("Schools in the ",e.district.name,"")}}function Ni(e,t){if(1&e&&(s.Ob(0,"div"),s.Ob(1,"div",6),s.uc(2,xi,2,1,"h3",7),s.Nb(),s.Kb(3,"pcl-search-grid",8),s.Nb()),2&e){const e=s.Zb();s.xb(2),s.fc("ngIf",e.district),s.xb(1),s.fc("searchProvider",e.searchProvider)}}let Ci=(()=>{class e{constructor(e,t){this.route=e,this.service=t}ngOnInit(){this.institutionId=this.route.snapshot.params.institutionId,this.searchProvider=new Vt(this.service,this.institutionId)}districtLoaded(e){this.district=e}}return e.\u0275fac=function(t){return new(t||e)(s.Jb(p.a),s.Jb(j))},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-school-list"]],decls:5,vars:2,consts:[[2,"margin","15px 0"],[1,"gridInstitutions","course-ref-list","course-district-list"],["class","grid-row-expanded",4,"ngIf"],[4,"ngIf"],[1,"grid-row-expanded"],[3,"institutionId","hideCourseListButton","loaded"],[1,"search-results-grid"],["class","searchResultsTitle",4,"ngIf"],[3,"searchProvider"],[1,"searchResultsTitle"]],template:function(e,t){1&e&&(s.Ob(0,"div",0),s.Kb(1,"pcl-back-to-search"),s.Nb(),s.Ob(2,"div",1),s.uc(3,Ii,2,2,"div",2),s.Nb(),s.uc(4,Ni,4,2,"div",3)),2&e&&(s.xb(3),s.fc("ngIf",t.institutionId),s.xb(1),s.fc("ngIf",t.searchProvider))},directives:[ue,r.j,xe,Oi],encapsulation:2}),e})();function Li(e,t){if(1&e&&(s.Ob(0,"h3",17),s.wc(1),s.Nb()),2&e){const e=s.Zb(2);s.xb(1),s.yc("Schools that offer ",e.course.title,"")}}function Si(e,t){if(1&e){const e=s.Pb();s.Ob(0,"div"),s.Ob(1,"div",8),s.uc(2,Li,2,1,"h3",9),s.Nb(),s.Ob(3,"form",10),s.Ob(4,"div",11),s.Ob(5,"h6"),s.wc(6,"Filter Schools"),s.Nb(),s.Ob(7,"button",12),s.Vb("click",(function(){return s.qc(e),s.Zb().clearAll()})),s.wc(8,"(Clear all)"),s.Nb(),s.Ob(9,"div",13),s.Ob(10,"input",14),s.Vb("ngModelChange",(function(t){return s.qc(e),s.Zb().searchText=t})),s.Nb(),s.Ob(11,"button",15),s.Vb("click",(function(){return s.qc(e),s.Zb().applyFilters()})),s.wc(12," Apply Filter "),s.Nb(),s.Nb(),s.Nb(),s.Nb(),s.Kb(13,"pcl-search-grid",16),s.Nb()}if(2&e){const e=s.Zb();s.xb(2),s.fc("ngIf",e.course),s.xb(5),s.fc("hidden",!e.showClearAll),s.xb(3),s.fc("ngModel",e.searchText),s.xb(3),s.fc("searchProvider",e.searchProvider)}}let ki=(()=>{class e{constructor(e,t){this.route=e,this.searchService=t,this.searchProvider=null}ngOnInit(){let e=this.route.snapshot.params;this.institutionId=e.institutionId,this.courseId=e.courseId,this.searchProvider=new Et(this.searchService,this.courseId,this.searchText)}clearAll(){this.searchText=null,this.applyFilters()}applyFilters(){this.searchProvider=new Et(this.searchService,this.courseId,this.searchText),this.showClearAll=null!==this.searchText&&""!==this.searchText}}return e.\u0275fac=function(t){return new(t||e)(s.Jb(p.a),s.Jb(j))},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-schools-offering-course"]],decls:9,vars:4,consts:[[2,"margin","15px 0"],[1,"schools-offering-list","gridCourses"],[1,"grid-row","grid-row-expanded"],[1,"gridResultLeft"],[3,"courseId","hideNotEnrollableWarning","loaded"],[1,"gridResultRight"],[3,"institutionId"],[4,"ngIf"],[1,"search-results-grid"],["class","searchResultsTitle",4,"ngIf"],[1,"schoolsOfferingFilter"],[1,"schoolsOfferingRows"],["type","button",1,"btn","btn-link","filterClearAll",3,"hidden","click"],[1,"form-group"],["id","transcript","type","text","name","searchText","autocomplete","off","placeholder","Institution name",1,"form-control",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-primary","submit-search",3,"click"],["showLearningEnvironment","true",3,"searchProvider"],[1,"searchResultsTitle"]],template:function(e,t){1&e&&(s.Ob(0,"div",0),s.Kb(1,"pcl-back-to-search"),s.Nb(),s.Ob(2,"div",1),s.Ob(3,"div",2),s.Ob(4,"div",3),s.Ob(5,"pcl-course",4),s.Vb("loaded",(function(e){return t.course=e})),s.Nb(),s.Nb(),s.Ob(6,"div",5),s.Kb(7,"pcl-institution",6),s.Nb(),s.Nb(),s.Nb(),s.uc(8,Si,14,4,"div",7)),2&e&&(s.xb(5),s.fc("courseId",t.courseId)("hideNotEnrollableWarning",!0),s.xb(2),s.fc("institutionId",t.institutionId),s.xb(1),s.fc("ngIf",t.searchProvider))},directives:[ue,et,xe,r.j,c.h,c.e,c.f,c.a,c.d,c.g,Oi],encapsulation:2}),e})();function Fi(e,t){1&e&&s.Kb(0,"image",24)}function Ai(e,t){if(1&e&&(s.Ob(0,"span",25),s.Ob(1,"a",26),s.Kb(2,"i",27),s.Kb(3,"i",28),s.Nb(),s.Nb()),2&e){const e=s.Zb().$implicit;s.xb(1),s.gc("href",e.qualityMattersUrl,s.sc)}}function Ri(e,t){1&e&&(s.Ob(0,"span",29),s.Kb(1,"i",27),s.Kb(2,"i",28),s.Nb())}function ji(e,t){if(1&e&&(s.Mb(0),s.Ob(1,"div",18),s.wc(2),s.Nb(),s.Ob(3,"div",18),s.Ob(4,"a",19),s.wc(5),s.Nb(),s.Nb(),s.Ob(6,"div",18),s.Ob(7,"div",20),s.uc(8,Fi,1,0,"image",21),s.Nb(),s.Nb(),s.Ob(9,"div",18),s.Ob(10,"div",20),s.uc(11,Ai,4,1,"span",22),s.uc(12,Ri,3,0,"span",23),s.Nb(),s.Nb(),s.Lb()),2&e){const e=t.$implicit,i=s.Zb();s.xb(2),s.xc(e.institutionName),s.xb(2),s.fc("href",e.websiteUrl,s.sc),s.xb(1),s.yc("",e.domainName," "),s.xb(3),s.fc("ngIf",e.isInstructorProvider),s.xb(3),s.fc("ngIf",e.isQualityMattersCertified&&i.isQualityMattersLinkVisible(e)),s.xb(1),s.fc("ngIf",e.isQualityMattersCertified&&!i.isQualityMattersLinkVisible(e))}}const Ti=function(){return["/agcourselist"]};let Pi=[{path:"",pathMatch:"full",component:ne},{path:"results",pathMatch:"full",component:wi}];const qi="agcourselist",Zi=[{path:"",pathMatch:"full",redirectTo:qi},{path:qi,resolve:{facets:P},children:Pi},{path:qi+"/referencelist",children:Pi,data:{isReferenceList:!0},resolve:{facets:T}},{path:qi+"/publisher-directory",pathMatch:"full",component:(()=>{class e{constructor(e,t){this.agGuideUrls=t,this.allPublishers=e.snapshot.data.publishers,this.publishers=this.allPublishers}ngOnInit(){}filterDirectory(e){if(this.query&&this.query.length>0){const e=this.query.toLowerCase(),t=this.allPublishers.filter(t=>t.institutionName.toLowerCase().indexOf(e)>-1);this.publishers=t}else this.publishers=this.allPublishers}isQualityMattersLinkVisible(e){return null!==e.qualityMattersUrl&&e.qualityMattersUrl.length>0}}return e.\u0275fac=function(t){return new(t||e)(s.Jb(p.a),s.Jb(v))},e.\u0275cmp=s.Db({type:e,selectors:[["pcl-publisher-directory"]],decls:32,vars:5,consts:[[1,"publisher-directory"],[1,"publisher-directory-header"],[1,"publisher-directory-actions"],[1,"back-to-pcl"],[1,"btn",3,"routerLink"],[1,"fa","fa-arrow-left"],[1,"directory-search-entry"],[1,"fa","fa-search"],["name","search","placeholder","Online Publisher Directory Search","type","search",3,"ngModel","ngModelChange","change"],[1,"directory-help"],["target","_blank","rel","noopener",1,"btn",3,"href"],[1,"fa","fa-question-circle"],[1,"publisher-grid"],[1,"grid-header"],[1,"centered"],["href","https://www.qualitymatters.org/","title","Visit the Quality Matters website to learn more.","target","_blank","rel","noopener"],[1,"fa","fa-external-link-alt"],[4,"ngFor","ngForOf"],[1,"grid-value"],["target","_blank",3,"href"],[1,"grid-cell-centered"],["class","fa fa-university","title","Offers instructors for publisher courses","placement","top","triggers","mouseenter:mouseleave",4,"ngIf"],["class","fa-stack","placement","top","triggers","mouseenter:mouseleave",4,"ngIf"],["class","fa-stack","title","Offers courses certified by Quality Matters","placement","top","triggers","mouseenter:mouseleave",4,"ngIf"],["title","Offers instructors for publisher courses","placement","top","triggers","mouseenter:mouseleave",1,"fa","fa-university"],["placement","top","triggers","mouseenter:mouseleave",1,"fa-stack"],["target","_blank","title","Click to view publisher information on Quality Matters website.","rel","noopener",3,"href"],[1,"fa","fa-certificate","fa-stack-2x"],[1,"fa","fa-check","fa-stack-1x"],["title","Offers courses certified by Quality Matters","placement","top","triggers","mouseenter:mouseleave",1,"fa-stack"]],template:function(e,t){1&e&&(s.Ob(0,"div",0),s.Ob(1,"div",1),s.Ob(2,"h3"),s.wc(3,"Online Publisher Directory"),s.Nb(),s.Nb(),s.Ob(4,"div",2),s.Ob(5,"div",3),s.Ob(6,"a",4),s.Kb(7,"i",5),s.wc(8," Back to A-G Course List "),s.Nb(),s.Nb(),s.Ob(9,"div",6),s.Kb(10,"i",7),s.Ob(11,"input",8),s.Vb("ngModelChange",(function(e){return t.query=e}))("change",(function(e){return t.filterDirectory(e)})),s.Nb(),s.Nb(),s.Ob(12,"div",9),s.Ob(13,"a",10),s.Kb(14,"i",11),s.wc(15," Help"),s.Nb(),s.Nb(),s.Nb(),s.Ob(16,"div",12),s.Ob(17,"div",13),s.Ob(18,"span"),s.wc(19,"Institution"),s.Nb(),s.Nb(),s.Ob(20,"div",13),s.Ob(21,"span"),s.wc(22,"Website"),s.Nb(),s.Nb(),s.Ob(23,"div",13),s.Ob(24,"span",14),s.wc(25,"Offers Instructors"),s.Nb(),s.Nb(),s.Ob(26,"div",13),s.Ob(27,"span",14),s.Ob(28,"a",15),s.wc(29," Quality Matters Certification "),s.Kb(30,"i",16),s.Nb(),s.Nb(),s.Nb(),s.uc(31,ji,13,6,"ng-container",17),s.Nb(),s.Nb()),2&e&&(s.xb(6),s.fc("routerLink",s.jc(4,Ti)),s.xb(5),s.fc("ngModel",t.query),s.xb(2),s.gc("href",t.agGuideUrls.EstablishingListOnlineCoursePublisher,s.sc),s.xb(18),s.fc("ngForOf",t.publishers))},directives:[p.h,c.a,c.d,c.g,r.i,r.j],encapsulation:2}),e})(),resolve:{publishers:(()=>{class e{constructor(e){this.dataService=e}resolve(e,t){return this.dataService.getOnlinePublishers()}}return e.\u0275fac=function(t){return new(t||e)(s.Sb(q))},e.\u0275prov=s.Fb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()}},{path:qi+"/institution/:institutionId",canActivate:[(()=>{class e{constructor(e,t){this.router=e,this.service=t}canActivate(e){return this.service.getIsOnlinePublisher(e.params.institutionId).subscribe(e=>{if(e)return this.router.navigate([""]),!1}),!0}}return e.\u0275fac=function(t){return new(t||e)(s.Sb(p.f),s.Sb(Z))},e.\u0275prov=s.Fb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()],children:[{path:"",pathMatch:"full",component:Mt},{path:"schools",pathMatch:"full",component:Ci},{path:"course/:courseId",pathMatch:"full",component:ki}]},{path:qi+"/list/details/:institutionId",redirectTo:qi+"/institution/:institutionId",pathMatch:"full"},{path:qi+"/list/details/:institutionId/:academicYearId",redirectTo:qi+"/institution/:institutionId;academicYearId=:academicYearId",pathMatch:"full"},{path:"**",redirectTo:qi,pathMatch:"full"}];let Mi=(()=>{class e{}return e.\u0275mod=s.Hb({type:e}),e.\u0275inj=s.Gb({factory:function(t){return new(t||e)},imports:[[p.i.forRoot(Zi)],p.i]}),e})();function Hi(e){return e.get()}let Di=(()=>{class e{}return e.\u0275mod=s.Hb({type:e,bootstrap:[y]}),e.\u0275inj=s.Gb({factory:function(t){return new(t||e)},providers:[M,g,L,H,C,Z,k,q,S,j,T,P,{provide:r.a,useValue:"/"},{provide:N,useClass:N},{provide:v,useFactory:Hi,deps:[g]}],imports:[[Mi,b.b.forRoot(),l.b.forRoot(),d.c.forRoot(),f.b,c.b,o.a,a.a,r.b,n.b,h.b,u.b.forRoot()]]}),e})();Object(s.R)(),o.b().bootstrapModule(Di).catch(e=>console.error(e))},zn8P:function(e,t){function i(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}i.keys=function(){return[]},i.resolve=i,e.exports=i,i.id="zn8P"}},[[0,0,4]]]);
