!function(){"use strict";var r,n={},e={};function t(r){var o=e[r];if(void 0!==o)return o.exports;var u=e[r]={exports:{}};return n[r].call(u.exports,u,u.exports,t),u.exports}t.m=n,r=[],t.O=function(n,e,o,u){if(!e){var i=1/0;for(a=0;a<r.length;a++){e=r[a][0],o=r[a][1],u=r[a][2];for(var f=!0,c=0;c<e.length;c++)(!1&u||i>=u)&&Object.keys(t.O).every(function(r){return t.O[r](e[c])})?e.splice(c--,1):(f=!1,u<i&&(i=u));f&&(r.splice(a--,1),n=o())}return n}u=u||0;for(var a=r.length;a>0&&r[a-1][2]>u;a--)r[a]=r[a-1];r[a]=[e,o,u]},t.n=function(r){var n=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(n,{a:n}),n},t.d=function(r,n){for(var e in n)t.o(n,e)&&!t.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:n[e]})},t.o=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)},function(){var r={666:0};t.O.j=function(n){return 0===r[n]};var n=function(n,e){var o,u,i=e[0],f=e[1],c=e[2],a=0;for(o in f)t.o(f,o)&&(t.m[o]=f[o]);if(c)var l=c(t);for(n&&n(e);a<i.length;a++)t.o(r,u=i[a])&&r[u]&&r[u][0](),r[i[a]]=0;return t.O(l)},e=self.webpackChunkexpert_tiles=self.webpackChunkexpert_tiles||[];e.forEach(n.bind(null,0)),e.push=n.bind(null,e.push.bind(e))}()}();
(self.webpackChunkexpert_tiles=self.webpackChunkexpert_tiles||[]).push([[429],{2167:function(){"use strict";
/**
 * @license Angular v12.0.0-next.0
 * (c) 2010-2020 Google LLC. https://angular.io/
 * License: MIT
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */!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!==O.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,s=!1){if(O.hasOwnProperty(t)){if(!s&&a)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const s="Zone:"+t;n(s),O[t]=r(e,i,C),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,b),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(b,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(T,v);const t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(n){throw e._transitionTo(Z,T,v),this._zoneDelegate.handleError(this,n),n}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==T&&e._transitionTo(b,T),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,b,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,T)}_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){C.onUnhandledError(e)}}}C.microtaskDrainDone(),_=!1}}const y={name:"NO ZONE"},v="notScheduled",T="scheduling",b="scheduled",E="running",w="canceling",Z="unknown",S="microTask",D="macroTask",P="eventTask",O={},C={symbol:s,currentZoneFrame:()=>z,onUnhandledError:R,microtaskDrainDone:R,scheduleMicroTask:k,showUncaughtError:()=>!i[s("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:R,patchMethod:()=>R,bindArguments:()=>[],patchThen:()=>R,patchMacroTask:()=>R,patchEventPrototype:()=>R,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>R,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>R,wrapWithCurrentZone:()=>R,filterProperties:()=>[],attachOriginToPatched:()=>R,_redefineProperty:()=>R,patchCallbacks:()=>R};let z={parent:null,zone:new i(null,null)},j=null,I=0;function R(){}o("Zone","Zone"),e.Zone=i}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);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__("");
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */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),T={},b=function(e){if(!(e=e||f.event))return;let t=T[e.type];t||(t=T[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=T[l];h||(h=T[l]=u("ON_PROPERTY"+l)),s.set=function(e){let t=this;t||n!==f||(t=f),t&&(t[h]&&t.removeEventListener(l,b),c&&c.apply(t,d),"function"==typeof e?(t[h]=e,t.addEventListener(l,b,!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.")}},O(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),O(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])||!s.hasOwnProperty(a))&&(i=s[a]=s[o],_(s&&e(s,o)))){const e=r(i,a,o);s[o]=function(){return e(this,arguments)},O(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 O(e,t){e[u("OriginalDelegate")]=t}let C=!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(C)return z;C=!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}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */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(()=>{if(t.throwOriginal)throw t.rejection;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 P.reject(e)}const g=s("state"),_=s("value"),k=s("finally"),m=s("parentPromiseValue"),y=s("parentPromiseState");function v(e,t){return n=>{try{b(e,t,n)}catch(o){b(e,!1,o)}}}const T=s("currentTaskTrace");function b(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(()=>{b(e,!1,u)})(),e}if(!1!==o&&s instanceof P&&s.hasOwnProperty(g)&&s.hasOwnProperty(_)&&null!==s[g])w(s),b(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(()=>{b(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,T,{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;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}i&&(o.throwOriginal=!0),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]);b(n,!0,i)}catch(o){b(n,!1,o)}},n)}const S=function(){};class P{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return b(new this(null),!0,e)}static reject(e){return b(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 P.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof P?this:P).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 P))throw new Error("Must be an instanceof Promise.");t[g]=null,t[_]=[];try{e&&e(v(t,!0),v(t,!1))}catch(n){b(t,!1,n)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return P}then(e,n){let o=this.constructor[Symbol.species];o&&"function"==typeof o||(o=this.constructor||P);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=P);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}}P.resolve=P.resolve,P.reject=P.reject,P.race=P.race,P.all=P.all;const O=e[c]=e.Promise;e.Promise=P;const C=s("thenPatched");function z(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 P((e,t)=>{r.call(this,e,t)}).then(e,t)},e[C]=!0}return n.patchThen=z,O&&(z(O),D(e,"fetch",e=>{return t=e,function(e,n){let o=t.apply(e,n);if(o instanceof P)return o;let r=o.constructor;return r[C]||z(r),o};var t})),Promise[t.__symbol__("uncaughtPromiseErrors")]=a,P}),
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
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"function"==typeof Promise&&this instanceof Promise?"[object Promise]":a.call(this)}});
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */let R=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){R=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(ie){R=!1}const M={useG:!0},x={},N={},L=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,T={},b=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!R&&"object"==typeof e&&e?!!e.capture:R&&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(!T.isExisting)return b.call(T.target,T.eventName,T.capture?d:f,T.options)}:function(e){return b.call(T.target,T.eventName,e.invoke,T.options)},C=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("UNPATCHED_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=R&&!!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,b=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 O=c.constructor.name,C=N[O];C&&(Z=C[l]),Z||(Z=O+n+(v?v(l):l)),T.options=d,y&&(T.options.once=!1),T.target=c,T.capture=k,T.eventName=l,T.isExisting=P;const L=p?M:void 0;L&&(L.taskData=T);const A=b.scheduleEventTask(Z,u,L,r,s);return T.target=null,L&&(L.taskData=null),y&&(d.once=!0),(R||"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(b,h,P,C,k),S&&(y.prependListener=A(S,".prependListener:",function(e){return S.call(T.target,T.eventName,e.invoke,T.options)},C,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=q(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=L.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},O(y[r],b),O(y[s],E),Z&&O(y[c],Z),w&&O(y[a],w),!0}let _=[];for(let n=0;n<t.length;n++)_[n]=g(t[n],o);return _}function q(e,t){if(!t){const n=[];for(let o in e){const r=L.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 G(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)})}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function B(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)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */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"],Y=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],J=["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,Y,r);const a=t.XMLHttpRequestEventTarget;a&&ne(a&&a.prototype,Y,r),"undefined"!=typeof IDBIndex&&(ne(IDBIndex.prototype,J,r),ne(IDBRequest.prototype,J,r),ne(IDBOpenDBRequest.prototype,J,r),ne(IDBDatabase.prototype,J,r),ne(IDBTransaction.prototype,J,r),ne(IDBCursor.prototype,J,r)),o&&ne(WebSocket.prototype,K,r)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */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=G,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=O,a._redefineProperty=Object.defineProperty,a.patchCallbacks=B,a.getGlobalObjects=()=>({globalSources:N,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"})});
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */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(){return t.invoke.apply(this,arguments)},n.handleId=r.apply(e,n.args),t}function c(t){return s.call(e,t.data.handleId)}r=D(e,t+=o,n=>function(r,s){if("function"==typeof s[0]){const e={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?s[1]||0:void 0,args:s},n=s[0];s[0]=function(){try{return n.apply(this,arguments)}finally{e.isPeriodic||("number"==typeof e.handleId?delete a[e.handleId]:e.handleId&&(e.handleId[re]=null))}};const r=l(t,s[0],e,i,c);if(!r)return r;const u=r.data.handleId;return"number"==typeof u?a[u]=r:u&&(u[re]=r),u&&u.ref&&u.unref&&"function"==typeof u.ref&&"function"==typeof u.unref&&(r.ref=u.ref.bind(u),r.unref=u.unref.bind(u)),"number"==typeof u||u?u:r}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)})}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */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}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */Zone.__load_patch("legacy",e=>{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("queueMicrotask",(e,t,n)=>{n.patchMethod(e,"queueMicrotask",e=>function(e,n){t.current.scheduleMicroTask("queueMicrotask",n[0])})}),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])}),Zone.__load_patch("MutationObserver",(e,t,n)=>{S("MutationObserver"),S("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,t,n)=>{S("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,t,n)=>{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(0!==c.status&&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),b.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"),T=u("fetchTaskScheduling"),b=D(f,"send",()=>function(e,n){if(!0===t.current[T])return b.apply(e,n);if(e[o])return b.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 O(t,e),t})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(t){return function(n){q(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"))})},1796:function(e,t,n){"use strict";n(2167)}},function(e){"use strict";e(e.s=1796)}]);
(self.webpackChunkexpert_tiles=self.webpackChunkexpert_tiles||[]).push([[179],{8255:function(e){function t(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=function(){return[]},t.resolve=t,t.id=8255,e.exports=t},4173:function(e,t){var n;
/*!
 * jQuery JavaScript Library v3.6.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2021-03-02T17:08Z
 */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(i,s){"use strict";var r=[],o=Object.getPrototypeOf,a=r.slice,l=r.flat?function(e){return r.flat.call(e)}:function(e){return r.concat.apply([],e)},u=r.push,c=r.indexOf,h={},d=h.toString,p=h.hasOwnProperty,f=p.toString,m=f.call(Object),g={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},v=function(e){return null!=e&&e===e.window},b=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function C(e,t,n){var i,s,r=(n=n||b).createElement("script");if(r.text=e,t)for(i in w)(s=t[i]||t.getAttribute&&t.getAttribute(i))&&r.setAttribute(i,s);n.head.appendChild(r).parentNode.removeChild(r)}function _(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?h[d.call(e)]||"object":typeof e}var x=function(e,t){return new x.fn.init(e,t)};function S(e){var t=!!e&&"length"in e&&e.length,n=_(e);return!y(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}x.fn=x.prototype={jquery:"3.6.0",constructor:x,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(x.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:r.sort,splice:r.splice},x.extend=x.fn.extend=function(){var e,t,n,i,s,r,o=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[a]||{},a++),"object"==typeof o||y(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&o!==i&&(u&&i&&(x.isPlainObject(i)||(s=Array.isArray(i)))?(n=o[t],r=s&&!Array.isArray(n)?[]:s||x.isPlainObject(n)?n:{},s=!1,o[t]=x.extend(u,r,i)):void 0!==i&&(o[t]=i));return o},x.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e)||(t=o(e))&&("function"!=typeof(n=p.call(t,"constructor")&&t.constructor)||f.call(n)!==m))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){C(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(S(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?x.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,s=e.length;i<n;i++)e[s++]=t[i];return e.length=s,e},grep:function(e,t,n){for(var i=[],s=0,r=e.length,o=!n;s<r;s++)!t(e[s],s)!==o&&i.push(e[s]);return i},map:function(e,t,n){var i,s,r=0,o=[];if(S(e))for(i=e.length;r<i;r++)null!=(s=t(e[r],r,n))&&o.push(s);else for(r in e)null!=(s=t(e[r],r,n))&&o.push(s);return l(o)},guid:1,support:g}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=r[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){h["[object "+t+"]"]=t.toLowerCase()});var E=
/*!
 * Sizzle CSS Selector Engine v2.3.6
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2021-02-16
 */
function(e){var t,n,i,s,r,o,a,l,u,c,h,d,p,f,m,g,y,v,b,w="sizzle"+1*new Date,C=e.document,_=0,x=0,S=le(),E=le(),I=le(),T=le(),k=function(e,t){return e===t&&(h=!0),0},O={}.hasOwnProperty,A=[],P=A.pop,D=A.push,N=A.push,R=A.slice,F=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",V="\\[[\\x20\\t\\r\\n\\f]*("+B+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+L+"*\\]",q=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+V+")*)|.*)\\)|)",j=new RegExp(L+"+","g"),Q=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),$=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),H=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),U=new RegExp(L+"|>"),W=new RegExp(q),G=new RegExp("^"+B+"$"),z={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+V),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,se=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){d()},oe=we(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{N.apply(A=R.call(C.childNodes),C.childNodes)}catch(Ee){N={apply:A.length?function(e,t){D.apply(e,R.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ae(e,t,i,s){var r,a,u,c,h,f,y,v=t&&t.ownerDocument,C=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return i;if(!s&&(d(t),t=t||p,m)){if(11!==C&&(h=X.exec(e)))if(r=h[1]){if(9===C){if(!(u=t.getElementById(r)))return i;if(u.id===r)return i.push(u),i}else if(v&&(u=v.getElementById(r))&&b(t,u)&&u.id===r)return i.push(u),i}else{if(h[2])return N.apply(i,t.getElementsByTagName(e)),i;if((r=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(i,t.getElementsByClassName(r)),i}if(n.qsa&&!T[e+" "]&&(!g||!g.test(e))&&(1!==C||"object"!==t.nodeName.toLowerCase())){if(y=e,v=t,1===C&&(U.test(e)||H.test(e))){for((v=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(ie,se):t.setAttribute("id",c=w)),a=(f=o(e)).length;a--;)f[a]=(c?"#"+c:":scope")+" "+be(f[a]);y=f.join(",")}try{return N.apply(i,v.querySelectorAll(y)),i}catch(_){T(e,!0)}finally{c===w&&t.removeAttribute("id")}}}return l(e.replace(Q,"$1"),t,i,s)}function le(){var e=[];return function t(n,s){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=s}}function ue(e){return e[w]=!0,e}function ce(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(Ee){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var n=e.split("|"),s=n.length;s--;)i.attrHandle[n[s]]=t}function de(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ue(function(t){return t=+t,ue(function(n,i){for(var s,r=e([],n.length,t),o=r.length;o--;)n[s=r[o]]&&(n[s]=!(i[s]=n[s]))})})}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},r=ae.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!Y.test(e&&e.namespaceURI||t&&t.nodeName||"HTML")},d=ae.setDocument=function(e){var t,s,o=e?e.ownerDocument||e:C;return o!=p&&9===o.nodeType&&o.documentElement?(f=(p=o).documentElement,m=!r(p),C!=p&&(s=p.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",re,!1):s.attachEvent&&s.attachEvent("onunload",re)),n.scope=ce(function(e){return f.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(p.getElementsByClassName),n.getById=ce(function(e){return f.appendChild(e).id=w,!p.getElementsByName||!p.getElementsByName(w).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,i,s,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(s=t.getElementsByName(e),i=0;r=s[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],s=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[s++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},y=[],g=[],(n.qsa=Z.test(p.querySelectorAll))&&(ce(function(e){var t;f.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+M+")"),e.querySelectorAll("[id~="+w+"-]").length||g.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=Z.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),y.push("!=",q)}),g=g.length&&new RegExp(g.join("|")),y=y.length&&new RegExp(y.join("|")),t=Z.test(f.compareDocumentPosition),b=t||Z.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return h=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==p||e.ownerDocument==C&&b(C,e)?-1:t==p||t.ownerDocument==C&&b(C,t)?1:c?F(c,e)-F(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,i=0,s=e.parentNode,r=t.parentNode,o=[e],a=[t];if(!s||!r)return e==p?-1:t==p?1:s?-1:r?1:c?F(c,e)-F(c,t):0;if(s===r)return de(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;o[i]===a[i];)i++;return i?de(o[i],a[i]):o[i]==C?-1:a[i]==C?1:0},p):p},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&m&&!T[t+" "]&&(!y||!y.test(t))&&(!g||!g.test(t)))try{var i=v.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(Ee){T(t,!0)}return ae(t,p,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=p&&d(e),b(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=p&&d(e);var s=i.attrHandle[t.toLowerCase()],r=s&&O.call(i.attrHandle,t.toLowerCase())?s(e,t,!m):void 0;return void 0!==r?r:n.attributes||!m?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},ae.escape=function(e){return(e+"").replace(ie,se)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],s=0,r=0;if(h=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(k),h){for(;t=e[r++];)t===e[r]&&(s=i.push(r));for(;s--;)e.splice(i[s],1)}return c=null,e},s=ae.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=s(t);return n},(i=ae.selectors={cacheLength:50,createPseudo:ue,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+L+"|$)"))&&S(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var s=ae.attr(i,e);return null==s?"!="===t:!t||(s+="","="===t?s===n:"!="===t?s!==n:"^="===t?n&&0===s.indexOf(n):"*="===t?n&&s.indexOf(n)>-1:"$="===t?n&&s.slice(-n.length)===n:"~="===t?(" "+s.replace(j," ")+" ").indexOf(n)>-1:"|="===t&&(s===n||s.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,s){var r="nth"!==e.slice(0,3),o="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===s?function(e){return!!e.parentNode}:function(t,n,l){var u,c,h,d,p,f,m=r!==o?"nextSibling":"previousSibling",g=t.parentNode,y=a&&t.nodeName.toLowerCase(),v=!l&&!a,b=!1;if(g){if(r){for(;m;){for(d=t;d=d[m];)if(a?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&v){for(b=(p=(u=(c=(h=(d=g)[w]||(d[w]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===_&&u[1])&&u[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(b=p=0)||f.pop();)if(1===d.nodeType&&++b&&d===t){c[e]=[_,p,b];break}}else if(v&&(b=p=(u=(c=(h=(d=t)[w]||(d[w]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===_&&u[1]),!1===b)for(;(d=++p&&d&&d[m]||(b=p=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++b||(v&&((c=(h=d[w]||(d[w]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]=[_,b]),d!==t)););return(b-=s)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,t){var n,s=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return s[w]?s(t):s.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,n){for(var i,r=s(e,t),o=r.length;o--;)e[i=F(e,r[o])]=!(n[i]=r[o])}):function(e){return s(e,0,n)}):s}},pseudos:{not:ue(function(e){var t=[],n=[],i=a(e.replace(Q,"$1"));return i[w]?ue(function(e,t,n,s){for(var r,o=i(e,null,s,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,s,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}}),has:ue(function(e){return function(t){return ae(e,t).length>0}}),contains:ue(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||s(t)).indexOf(e)>-1}}),lang:ue(function(e){return G.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge(function(){return[0]}),last:ge(function(e,t){return[t-1]}),eq:ge(function(e,t,n){return[n<0?n+t:n]}),even:ge(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ge(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ge(function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e}),gt:ge(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=fe(t);function ve(){}function be(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function we(e,t,n){var i=t.dir,s=t.next,r=s||i,o=n&&"parentNode"===r,a=x++;return t.first?function(t,n,s){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,s);return!1}:function(t,n,l){var u,c,h,d=[_,a];if(l){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||o)if(c=(h=t[w]||(t[w]={}))[t.uniqueID]||(h[t.uniqueID]={}),s&&s===t.nodeName.toLowerCase())t=t[i]||t;else{if((u=c[r])&&u[0]===_&&u[1]===a)return d[2]=u[2];if(c[r]=d,d[2]=e(t,n,l))return!0}return!1}}function Ce(e){return e.length>1?function(t,n,i){for(var s=e.length;s--;)if(!e[s](t,n,i))return!1;return!0}:e[0]}function _e(e,t,n,i,s){for(var r,o=[],a=0,l=e.length,u=null!=t;a<l;a++)(r=e[a])&&(n&&!n(r,i,s)||(o.push(r),u&&t.push(a)));return o}function xe(e,t,n,i,s,r){return i&&!i[w]&&(i=xe(i)),s&&!s[w]&&(s=xe(s,r)),ue(function(r,o,a,l){var u,c,h,d=[],p=[],f=o.length,m=r||function(e,t,n){for(var i=0,s=t.length;i<s;i++)ae(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),g=!e||!r&&t?m:_e(m,d,e,a,l),y=n?s||(r?e:f||i)?[]:o:g;if(n&&n(g,y,a,l),i)for(u=_e(y,p),i(u,[],a,l),c=u.length;c--;)(h=u[c])&&(y[p[c]]=!(g[p[c]]=h));if(r){if(s||e){if(s){for(u=[],c=y.length;c--;)(h=y[c])&&u.push(g[c]=h);s(null,y=[],u,l)}for(c=y.length;c--;)(h=y[c])&&(u=s?F(r,h):d[c])>-1&&(r[u]=!(o[u]=h))}}else y=_e(y===o?y.splice(f,y.length):y),s?s(null,o,y,l):N.apply(o,y)})}function Se(e){for(var t,n,s,r=e.length,o=i.relative[e[0].type],a=o||i.relative[" "],l=o?1:0,c=we(function(e){return e===t},a,!0),h=we(function(e){return F(t,e)>-1},a,!0),d=[function(e,n,i){var s=!o&&(i||n!==u)||((t=n).nodeType?c(e,n,i):h(e,n,i));return t=null,s}];l<r;l++)if(n=i.relative[e[l].type])d=[we(Ce(d),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[w]){for(s=++l;s<r&&!i.relative[e[s].type];s++);return xe(l>1&&Ce(d),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(Q,"$1"),n,l<s&&Se(e.slice(l,s)),s<r&&Se(e=e.slice(s)),s<r&&be(e))}d.push(n)}return Ce(d)}return ve.prototype=i.filters=i.pseudos,i.setFilters=new ve,o=ae.tokenize=function(e,t){var n,s,r,o,a,l,u,c=E[e+" "];if(c)return t?0:c.slice(0);for(a=e,l=[],u=i.preFilter;a;){for(o in n&&!(s=$.exec(a))||(s&&(a=a.slice(s[0].length)||a),l.push(r=[])),n=!1,(s=H.exec(a))&&(n=s.shift(),r.push({value:n,type:s[0].replace(Q," ")}),a=a.slice(n.length)),i.filter)!(s=z[o].exec(a))||u[o]&&!(s=u[o](s))||(n=s.shift(),r.push({value:n,type:o,matches:s}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):E(e,l).slice(0)},a=ae.compile=function(e,t){var n,s=[],r=[],a=I[e+" "];if(!a){for(t||(t=o(e)),n=t.length;n--;)(a=Se(t[n]))[w]?s.push(a):r.push(a);(a=I(e,function(e,t){var n=t.length>0,s=e.length>0,r=function(r,o,a,l,c){var h,f,g,y=0,v="0",b=r&&[],w=[],C=u,x=r||s&&i.find.TAG("*",c),S=_+=null==C?1:Math.random()||.1,E=x.length;for(c&&(u=o==p||o||c);v!==E&&null!=(h=x[v]);v++){if(s&&h){for(f=0,o||h.ownerDocument==p||(d(h),a=!m);g=e[f++];)if(g(h,o||p,a)){l.push(h);break}c&&(_=S)}n&&((h=!g&&h)&&y--,r&&b.push(h))}if(y+=v,n&&v!==y){for(f=0;g=t[f++];)g(b,w,o,a);if(r){if(y>0)for(;v--;)b[v]||w[v]||(w[v]=P.call(l));w=_e(w)}N.apply(l,w),c&&!r&&w.length>0&&y+t.length>1&&ae.uniqueSort(l)}return c&&(_=S,u=C),b};return n?ue(r):r}(r,s))).selector=e}return a},l=ae.select=function(e,t,n,s){var r,l,u,c,h,d="function"==typeof e&&e,p=!s&&o(e=d.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&m&&i.relative[l[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(r=z.needsContext.test(e)?0:l.length;r--&&!i.relative[c=(u=l[r]).type];)if((h=i.find[c])&&(s=h(u.matches[0].replace(te,ne),ee.test(l[0].type)&&ye(t.parentNode)||t))){if(l.splice(r,1),!(e=s.length&&be(l)))return N.apply(n,s),n;break}}return(d||a(e,p))(s,t,!m,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=w.split("").sort(k).join("")===w,n.detectDuplicates=!!h,d(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||he("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||he("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||he(M,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),ae}(i);x.find=E,x.expr=E.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=E.uniqueSort,x.text=E.getText,x.isXMLDoc=E.isXML,x.contains=E.contains,x.escapeSelector=E.escape;var I=function(e,t,n){for(var i=[],s=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&x(e).is(n))break;i.push(e)}return i},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=x.expr.match.needsContext;function O(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,n){return y(t)?x.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?x.grep(e,function(e){return e===t!==n}):"string"!=typeof t?x.grep(e,function(e){return c.call(t,e)>-1!==n}):x.filter(t,e,n)}x.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?x.find.matchesSelector(i,e)?[i]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},x.fn.extend({find:function(e){var t,n,i=this.length,s=this;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;t<i;t++)if(x.contains(s[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)x.find(e,s[t],n);return i>1?x.uniqueSort(n):n},filter:function(e){return this.pushStack(P(this,e||[],!1))},not:function(e){return this.pushStack(P(this,e||[],!0))},is:function(e){return!!P(this,"string"==typeof e&&k.test(e)?x(e):e||[],!1).length}});var D,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var i,s;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:N.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(x.merge(this,x.parseHTML(i[1],(t=t instanceof x?t[0]:t)&&t.nodeType?t.ownerDocument||t:b,!0)),A.test(i[1])&&x.isPlainObject(t))for(i in t)y(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(s=b.getElementById(i[2]))&&(this[0]=s,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,D=x(b);var R=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function M(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,s=this.length,r=[],o="string"!=typeof e&&x(e);if(!k.test(e))for(;i<s;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?x.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?c.call(x(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,n){return I(e,"parentNode",n)},next:function(e){return M(e,"nextSibling")},prev:function(e){return M(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,n){return I(e,"nextSibling",n)},prevUntil:function(e,t,n){return I(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(O(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},function(e,t){x.fn[e]=function(n,i){var s=x.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(s=x.filter(i,s)),this.length>1&&(F[e]||x.uniqueSort(s),R.test(e)&&s.reverse()),this.pushStack(s)}});var L=/[^\x20\t\r\n\f]+/g;function B(e){return e}function V(e){throw e}function q(e,t,n,i){var s;try{e&&y(s=e.promise)?s.call(e).done(t).fail(n):e&&y(s=e.then)?s.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}x.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return x.each(e.match(L)||[],function(e,n){t[n]=!0}),t}(e):x.extend({},e);var t,n,i,s,r=[],o=[],a=-1,l=function(){for(s=s||e.once,i=t=!0;o.length;a=-1)for(n=o.shift();++a<r.length;)!1===r[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=r.length,n=!1);e.memory||(n=!1),t=!1,s&&(r=n?[]:"")},u={add:function(){return r&&(n&&!t&&(a=r.length-1,o.push(n)),function t(n){x.each(n,function(n,i){y(i)?e.unique&&u.has(i)||r.push(i):i&&i.length&&"string"!==_(i)&&t(i)})}(arguments),n&&!t&&l()),this},remove:function(){return x.each(arguments,function(e,t){for(var n;(n=x.inArray(t,r,n))>-1;)r.splice(n,1),n<=a&&a--}),this},has:function(e){return e?x.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return s=o=[],r=n="",this},disabled:function(){return!r},lock:function(){return s=o=[],n||t||(r=n=""),this},locked:function(){return!!s},fireWith:function(e,n){return s||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},x.extend({Deferred:function(e){var t=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],n="pending",s={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,i){var s=y(e[i[4]])&&e[i[4]];r[i[1]](function(){var e=s&&s.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,s?[e]:arguments)})}),e=null}).promise()},then:function(e,n,s){var r=0;function o(e,t,n,s){return function(){var a=this,l=arguments,u=function(){var i,u;if(!(e<r)){if((i=n.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");y(u=i&&("object"==typeof i||"function"==typeof i)&&i.then)?s?u.call(i,o(r,t,B,s),o(r,t,V,s)):(r++,u.call(i,o(r,t,B,s),o(r,t,V,s),o(r,t,B,t.notifyWith))):(n!==B&&(a=void 0,l=[i]),(s||t.resolveWith)(a,l))}},c=s?u:function(){try{u()}catch(i){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(i,c.stackTrace),e+1>=r&&(n!==V&&(a=void 0,l=[i]),t.rejectWith(a,l))}};e?c():(x.Deferred.getStackHook&&(c.stackTrace=x.Deferred.getStackHook()),i.setTimeout(c))}}return x.Deferred(function(i){t[0][3].add(o(0,i,y(s)?s:B,i.notifyWith)),t[1][3].add(o(0,i,y(e)?e:B)),t[2][3].add(o(0,i,y(n)?n:V))}).promise()},promise:function(e){return null!=e?x.extend(e,s):s}},r={};return x.each(t,function(e,i){var o=i[2],a=i[5];s[i[1]]=o.add,a&&o.add(function(){n=a},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(i[3].fire),r[i[0]]=function(){return r[i[0]+"With"](this===r?void 0:this,arguments),this},r[i[0]+"With"]=o.fireWith}),s.promise(r),e&&e.call(r,r),r},when:function(e){var t=arguments.length,n=t,i=Array(n),s=a.call(arguments),r=x.Deferred(),o=function(e){return function(n){i[e]=this,s[e]=arguments.length>1?a.call(arguments):n,--t||r.resolveWith(i,s)}};if(t<=1&&(q(e,r.done(o(n)).resolve,r.reject,!t),"pending"===r.state()||y(s[n]&&s[n].then)))return r.then();for(;n--;)q(s[n],o(n),r.reject);return r.promise()}});var j=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&j.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},x.readyException=function(e){i.setTimeout(function(){throw e})};var Q=x.Deferred();function $(){b.removeEventListener("DOMContentLoaded",$),i.removeEventListener("load",$),x.ready()}x.fn.ready=function(e){return Q.then(e).catch(function(e){x.readyException(e)}),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||Q.resolveWith(b,[x]))}}),x.ready.then=Q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(x.ready):(b.addEventListener("DOMContentLoaded",$),i.addEventListener("load",$));var H=function(e,t,n,i,s,r,o){var a=0,l=e.length,u=null==n;if("object"===_(n))for(a in s=!0,n)H(e,t,a,n[a],!0,r,o);else if(void 0!==i&&(s=!0,y(i)||(o=!0),u&&(o?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(x(e),n)})),t))for(;a<l;a++)t(e[a],n,o?i:i.call(e[a],a,t(e[a],n)));return s?e:u?t.call(e):l?t(e[0],n):r},U=/^-ms-/,W=/-([a-z])/g;function G(e,t){return t.toUpperCase()}function z(e){return e.replace(U,"ms-").replace(W,G)}var Y=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function K(){this.expando=x.expando+K.uid++}K.uid=1,K.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,s=this.cache(e);if("string"==typeof t)s[z(t)]=n;else for(i in t)s[z(i)]=t[i];return s},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][z(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(z):(t=z(t))in i?[t]:t.match(L)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||x.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var J=new K,Z=new K,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:X.test(e)?JSON.parse(e):e)}(n)}catch(s){}Z.set(e,t,n)}else n=void 0;return n}x.extend({hasData:function(e){return Z.hasData(e)||J.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,i,s,r=this[0],o=r&&r.attributes;if(void 0===e){if(this.length&&(s=Z.get(r),1===r.nodeType&&!J.get(r,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&(i=z(i.slice(5)),te(r,i,s[i]));J.set(r,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each(function(){Z.set(this,e)}):H(this,function(t){var n;if(r&&void 0===t)return void 0!==(n=Z.get(r,e))||void 0!==(n=te(r,e))?n:void 0;this.each(function(){Z.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Z.remove(this,e)})}}),x.extend({queue:function(e,t,n){var i;if(e)return i=J.get(e,t=(t||"fx")+"queue"),n&&(!i||Array.isArray(n)?i=J.access(e,t,x.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){var n=x.queue(e,t=t||"fx"),i=n.length,s=n.shift(),r=x._queueHooks(e,t);"inprogress"===s&&(s=n.shift(),i--),s&&("fx"===t&&n.unshift("inprogress"),delete r.stop,s.call(e,function(){x.dequeue(e,t)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:x.Callbacks("once memory").add(function(){J.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each(function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,s=x.Deferred(),r=this,o=this.length,a=function(){--i||s.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=J.get(r[o],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),s.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),se=["Top","Right","Bottom","Left"],re=b.documentElement,oe=function(e){return x.contains(e.ownerDocument,e)},ae={composed:!0};re.getRootNode&&(oe=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(ae)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===x.css(e,"display")};function ue(e,t,n,i){var s,r,o=20,a=i?function(){return i.cur()}:function(){return x.css(e,t,"")},l=a(),u=n&&n[3]||(x.cssNumber[t]?"":"px"),c=e.nodeType&&(x.cssNumber[t]||"px"!==u&&+l)&&ie.exec(x.css(e,t));if(c&&c[3]!==u){for(u=u||c[3],c=+(l/=2)||1;o--;)x.style(e,t,c+u),(1-r)*(1-(r=a()/l||.5))<=0&&(o=0),c/=r;x.style(e,t,(c*=2)+u),n=n||[]}return n&&(c=+c||+l||0,s=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=s)),s}var ce={};function he(e){var t,n=e.ownerDocument,i=e.nodeName,s=ce[i];return s||(t=n.body.appendChild(n.createElement(i)),s=x.css(t,"display"),t.parentNode.removeChild(t),"none"===s&&(s="block"),ce[i]=s,s)}function de(e,t){for(var n,i,s=[],r=0,o=e.length;r<o;r++)(i=e[r]).style&&(n=i.style.display,t?("none"===n&&(s[r]=J.get(i,"display")||null,s[r]||(i.style.display="")),""===i.style.display&&le(i)&&(s[r]=he(i))):"none"!==n&&(s[r]="none",J.set(i,"display",n)));for(r=0;r<o;r++)null!=s[r]&&(e[r].style.display=s[r]);return e}x.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){le(this)?x(this).show():x(this).hide()})}});var pe,fe,me=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ye=/^$|^module$|\/(?:java|ecma)script/i;pe=b.createDocumentFragment().appendChild(b.createElement("div")),(fe=b.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),pe.appendChild(fe),g.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",g.option=!!pe.lastChild;var ve={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&O(e,t)?x.merge([e],n):n}function we(e,t){for(var n=0,i=e.length;n<i;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}ve.tbody=ve.tfoot=ve.colgroup=ve.caption=ve.thead,ve.th=ve.td,g.option||(ve.optgroup=ve.option=[1,"<select multiple='multiple'>","</select>"]);var Ce=/<|&#?\w+;/;function _e(e,t,n,i,s){for(var r,o,a,l,u,c,h=t.createDocumentFragment(),d=[],p=0,f=e.length;p<f;p++)if((r=e[p])||0===r)if("object"===_(r))x.merge(d,r.nodeType?[r]:r);else if(Ce.test(r)){for(o=o||h.appendChild(t.createElement("div")),a=(ge.exec(r)||["",""])[1].toLowerCase(),o.innerHTML=(l=ve[a]||ve._default)[1]+x.htmlPrefilter(r)+l[2],c=l[0];c--;)o=o.lastChild;x.merge(d,o.childNodes),(o=h.firstChild).textContent=""}else d.push(t.createTextNode(r));for(h.textContent="",p=0;r=d[p++];)if(i&&x.inArray(r,i)>-1)s&&s.push(r);else if(u=oe(r),o=be(h.appendChild(r),"script"),u&&we(o),n)for(c=0;r=o[c++];)ye.test(r.type||"")&&n.push(r);return h}var xe=/^([^.]*)(?:\.(.+)|)/;function Se(){return!0}function Ee(){return!1}function Ie(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,n,i,s,r){var o,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Te(e,a,n,i,t[a],r);return e}if(null==i&&null==s?(s=n,i=n=void 0):null==s&&("string"==typeof n?(s=i,i=void 0):(s=i,i=n,n=void 0)),!1===s)s=Ee;else if(!s)return e;return 1===r&&(o=s,(s=function(e){return x().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=x.guid++)),e.each(function(){x.event.add(this,t,s,i,n)})}function ke(e,t,n){n?(J.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var i,s,r=J.get(this,t);if(1&e.isTrigger&&this[t]){if(r.length)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=a.call(arguments),J.set(this,t,r),i=n(this,t),this[t](),r!==(s=J.get(this,t))||i?J.set(this,t,!1):s={},r!==s)return e.stopImmediatePropagation(),e.preventDefault(),s&&s.value}else r.length&&(J.set(this,t,{value:x.event.trigger(x.extend(r[0],x.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&x.event.add(e,t,Se)}x.event={global:{},add:function(e,t,n,i,s){var r,o,a,l,u,c,h,d,p,f,m,g=J.get(e);if(Y(e))for(n.handler&&(n=(r=n).handler,s=r.selector),s&&x.find.matchesSelector(re,s),n.guid||(n.guid=x.guid++),(l=g.events)||(l=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(L)||[""]).length;u--;)p=m=(a=xe.exec(t[u])||[])[1],f=(a[2]||"").split(".").sort(),p&&(h=x.event.special[p]||{},h=x.event.special[p=(s?h.delegateType:h.bindType)||p]||{},c=x.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:s,needsContext:s&&x.expr.match.needsContext.test(s),namespace:f.join(".")},r),(d=l[p])||((d=l[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,i,f,o)||e.addEventListener&&e.addEventListener(p,o)),h.add&&(h.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),s?d.splice(d.delegateCount++,0,c):d.push(c),x.event.global[p]=!0)},remove:function(e,t,n,i,s){var r,o,a,l,u,c,h,d,p,f,m,g=J.hasData(e)&&J.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(L)||[""]).length;u--;)if(p=m=(a=xe.exec(t[u])||[])[1],f=(a[2]||"").split(".").sort(),p){for(h=x.event.special[p]||{},d=l[p=(i?h.delegateType:h.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=r=d.length;r--;)c=d[r],!s&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(d.splice(r,1),c.selector&&d.delegateCount--,h.remove&&h.remove.call(e,c));o&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,f,g.handle)||x.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)x.event.remove(e,p+t[u],n,i,!0);x.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,i,s,r,o,a=new Array(arguments.length),l=x.event.fix(e),u=(J.get(this,"events")||Object.create(null))[l.type]||[],c=x.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(o=x.event.handlers.call(this,l,u),t=0;(s=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=s.elem,n=0;(r=s.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(i=((x.event.special[r.origType]||{}).handle||r.handler).apply(s.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,s,r,o,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(r=[],o={},n=0;n<l;n++)void 0===o[s=(i=t[n]).selector+" "]&&(o[s]=i.needsContext?x(s,this).index(u)>-1:x.find(s,this,null,[u]).length),o[s]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&O(t,"input")&&ke(t,"click",Se),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&O(t,"input")&&ke(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&O(t,"input")&&J.get(t,"click")||O(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Se:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Se,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Se,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Se,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},function(e,t){x.event.special[e]={setup:function(){return ke(this,e,Ie),!1},trigger:function(){return ke(this,e),!0},_default:function(){return!0},delegateType:t}}),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,s=e.relatedTarget,r=e.handleObj;return s&&(s===i||x.contains(i,s))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),x.fn.extend({on:function(e,t,n,i){return Te(this,e,t,n,i)},one:function(e,t,n,i){return Te(this,e,t,n,i,1)},off:function(e,t,n){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(s in e)this.off(s,t,e[s]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){x.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return O(e,"table")&&O(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,i,s,r,o,a;if(1===t.nodeType){if(J.hasData(e)&&(a=J.get(e).events))for(s in J.remove(t,"handle events"),a)for(n=0,i=a[s].length;n<i;n++)x.event.add(t,s,a[s][n]);Z.hasData(e)&&(r=Z.access(e),o=x.extend({},r),Z.set(t,o))}}function Me(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Le(e,t,n,i){t=l(t);var s,r,o,a,u,c,h=0,d=e.length,p=d-1,f=t[0],m=y(f);if(m||d>1&&"string"==typeof f&&!g.checkClone&&Ae.test(f))return e.each(function(s){var r=e.eq(s);m&&(t[0]=f.call(this,s,r.html())),Le(r,t,n,i)});if(d&&(r=(s=_e(t,e[0].ownerDocument,!1,e,i)).firstChild,1===s.childNodes.length&&(s=r),r||i)){for(a=(o=x.map(be(s,"script"),Ne)).length;h<d;h++)u=s,h!==p&&(u=x.clone(u,!0,!0),a&&x.merge(o,be(u,"script"))),n.call(e[h],u,h);if(a)for(c=o[o.length-1].ownerDocument,x.map(o,Re),h=0;h<a;h++)ye.test((u=o[h]).type||"")&&!J.access(u,"globalEval")&&x.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?x._evalUrl&&!u.noModule&&x._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):C(u.textContent.replace(Pe,""),u,c))}return e}function Be(e,t,n){for(var i,s=t?x.filter(t,e):e,r=0;null!=(i=s[r]);r++)n||1!==i.nodeType||x.cleanData(be(i)),i.parentNode&&(n&&oe(i)&&we(be(i,"script")),i.parentNode.removeChild(i));return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,s,r,o,a=e.cloneNode(!0),l=oe(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(o=be(a),i=0,s=(r=be(e)).length;i<s;i++)Me(r[i],o[i]);if(t)if(n)for(r=r||be(e),o=o||be(a),i=0,s=r.length;i<s;i++)Fe(r[i],o[i]);else Fe(e,a);return(o=be(a,"script")).length>0&&we(o,!l&&be(e,"script")),a},cleanData:function(e){for(var t,n,i,s=x.event.special,r=0;void 0!==(n=e[r]);r++)if(Y(n)){if(t=n[J.expando]){if(t.events)for(i in t.events)s[i]?x.event.remove(n,i):x.removeEvent(n,i,t.handle);n[J.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return H(this,function(e){return void 0===e?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Le(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)})},prepend:function(){return Le(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Le(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Le(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return H(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ve[(ge.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(s){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Le(this,arguments,function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(be(this)),n&&n.replaceChild(t,this))},e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){for(var n,i=[],s=x(e),r=s.length-1,o=0;o<=r;o++)n=o===r?this:this.clone(!0),x(s[o])[t](n),u.apply(i,n.get());return this.pushStack(i)}});var Ve=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),qe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},je=function(e,t,n){var i,s,r={};for(s in t)r[s]=e.style[s],e.style[s]=t[s];for(s in i=n.call(e),t)e.style[s]=r[s];return i},Qe=new RegExp(se.join("|"),"i");function $e(e,t,n){var i,s,r,o,a=e.style;return(n=n||qe(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||oe(e)||(o=x.style(e,t)),!g.pixelBoxStyles()&&Ve.test(o)&&Qe.test(t)&&(i=a.width,s=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=n.width,a.width=i,a.minWidth=s,a.maxWidth=r)),void 0!==o?o+"":o}function He(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(c);var e=i.getComputedStyle(c);n="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",o=36===t(e.right),s=36===t(e.width),c.style.position="absolute",r=12===t(c.offsetWidth/3),re.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var n,s,r,o,a,l,u=b.createElement("div"),c=b.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,x.extend(g,{boxSizingReliable:function(){return e(),s},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),r},reliableTrDimensions:function(){var e,t,n,s;return null==a&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",re.appendChild(e).appendChild(t).appendChild(n),s=i.getComputedStyle(t),a=parseInt(s.height,10)+parseInt(s.borderTopWidth,10)+parseInt(s.borderBottomWidth,10)===t.offsetHeight,re.removeChild(e)),a}}))}();var Ue=["Webkit","Moz","ms"],We=b.createElement("div").style,Ge={};function ze(e){return x.cssProps[e]||Ge[e]||(e in We?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ue.length;n--;)if((e=Ue[n]+t)in We)return e}(e)||e)}var Ye=/^(none|table(?!-c[ea]).+)/,Ke=/^--/,Je={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"};function Xe(e,t,n){var i=ie.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function et(e,t,n,i,s,r){var o="width"===t?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=x.css(e,n+se[o],!0,s)),i?("content"===n&&(l-=x.css(e,"padding"+se[o],!0,s)),"margin"!==n&&(l-=x.css(e,"border"+se[o]+"Width",!0,s))):(l+=x.css(e,"padding"+se[o],!0,s),"padding"!==n?l+=x.css(e,"border"+se[o]+"Width",!0,s):a+=x.css(e,"border"+se[o]+"Width",!0,s));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-a-.5))||0),l}function tt(e,t,n){var i=qe(e),s=(!g.boxSizingReliable()||n)&&"border-box"===x.css(e,"boxSizing",!1,i),r=s,o=$e(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ve.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&s||!g.reliableTrDimensions()&&O(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===x.css(e,"display",!1,i))&&e.getClientRects().length&&(s="border-box"===x.css(e,"boxSizing",!1,i),(r=a in e)&&(o=e[a])),(o=parseFloat(o)||0)+et(e,t,n||(s?"border":"content"),r,i,o)+"px"}function nt(e,t,n,i,s){return new nt.prototype.init(e,t,n,i,s)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=$e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,r,o,a=z(t),l=Ke.test(t),u=e.style;if(l||(t=ze(a)),o=x.cssHooks[t]||x.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(s=o.get(e,!1,i))?s:u[t];"string"==(r=typeof n)&&(s=ie.exec(n))&&s[1]&&(n=ue(e,t,s),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=s&&s[3]||(x.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var s,r,o,a=z(t);return Ke.test(t)||(t=ze(a)),(o=x.cssHooks[t]||x.cssHooks[a])&&"get"in o&&(s=o.get(e,!0,n)),void 0===s&&(s=$e(e,t,i)),"normal"===s&&t in Ze&&(s=Ze[t]),""===n||n?(r=parseFloat(s),!0===n||isFinite(r)?r||0:s):s}}),x.each(["height","width"],function(e,t){x.cssHooks[t]={get:function(e,n,i){if(n)return!Ye.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,i):je(e,Je,function(){return tt(e,t,i)})},set:function(e,n,i){var s,r=qe(e),o=!g.scrollboxSize()&&"absolute"===r.position,a=(o||i)&&"border-box"===x.css(e,"boxSizing",!1,r),l=i?et(e,t,i,a,r):0;return a&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-et(e,t,"border",!1,r)-.5)),l&&(s=ie.exec(n))&&"px"!==(s[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),Xe(0,n,l)}}}),x.cssHooks.marginLeft=He(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat($e(e,"marginLeft"))||e.getBoundingClientRect().left-je(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){for(var i=0,s={},r="string"==typeof n?n.split(" "):[n];i<4;i++)s[e+se[i]+t]=r[i]||r[i-2]||r[0];return s}},"margin"!==e&&(x.cssHooks[e+t].set=Xe)}),x.fn.extend({css:function(e,t){return H(this,function(e,t,n){var i,s,r={},o=0;if(Array.isArray(t)){for(i=qe(e),s=t.length;o<s;o++)r[t[o]]=x.css(e,t[o],!1,i);return r}return void 0!==n?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)}}),x.Tween=nt,(nt.prototype={constructor:nt,init:function(e,t,n,i,s,r){this.elem=e,this.prop=n,this.easing=s||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(x.cssNumber[n]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,n=nt.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):nt.propHooks._default.set(this),this}}).init.prototype=nt.prototype,(nt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[ze(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=nt.prototype.init,x.fx.step={};var it,st,rt=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function at(){st&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(at):i.setTimeout(at,x.fx.interval),x.fx.tick())}function lt(){return i.setTimeout(function(){it=void 0}),it=Date.now()}function ut(e,t){var n,i=0,s={height:e};for(t=t?1:0;i<4;i+=2-t)s["margin"+(n=se[i])]=s["padding"+n]=e;return t&&(s.opacity=s.width=e),s}function ct(e,t,n){for(var i,s=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),r=0,o=s.length;r<o;r++)if(i=s[r].call(n,t,e))return i}function ht(e,t,n){var i,s,r=0,o=ht.prefilters.length,a=x.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var t=it||lt(),n=Math.max(0,u.startTime+u.duration-t),i=1-(n/u.duration||0),r=0,o=u.tweens.length;r<o;r++)u.tweens[r].run(i);return a.notifyWith(e,[u,i,n]),i<1&&o?n:(o||a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||lt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(s)return this;for(s=!0;n<i;n++)u.tweens[n].run(1);return t?(a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u,t])):a.rejectWith(e,[u,t]),this}}),c=u.props;for(function(e,t){var n,i,s,r,o;for(n in e)if(s=t[i=z(n)],r=e[n],Array.isArray(r)&&(s=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(o=x.cssHooks[i])&&"expand"in o)for(n in r=o.expand(r),delete e[i],r)n in e||(e[n]=r[n],t[n]=s);else t[i]=s}(c,u.opts.specialEasing);r<o;r++)if(i=ht.prefilters[r].call(u,e,c,u.opts))return y(i.stop)&&(x._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return x.map(c,ct,u),y(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}x.Animation=x.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(L);for(var n,i=0,s=e.length;i<s;i++)(ht.tweeners[n=e[i]]=ht.tweeners[n]||[]).unshift(t)},prefilters:[function(e,t,n){var i,s,r,o,a,l,u,c,h="width"in t||"height"in t,d=this,p={},f=e.style,m=e.nodeType&&le(e),g=J.get(e,"fxshow");for(i in n.queue||(null==(o=x._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,d.always(function(){d.always(function(){o.unqueued--,x.queue(e,"fx").length||o.empty.fire()})})),t)if(rt.test(s=t[i])){if(delete t[i],r=r||"toggle"===s,s===(m?"hide":"show")){if("show"!==s||!g||void 0===g[i])continue;m=!0}p[i]=g&&g[i]||x.style(e,i)}if((l=!x.isEmptyObject(t))||!x.isEmptyObject(p))for(i in h&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(u=g&&g.display)&&(u=J.get(e,"display")),"none"===(c=x.css(e,"display"))&&(u?c=u:(de([e],!0),u=e.style.display||u,c=x.css(e,"display"),de([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===x.css(e,"float")&&(l||(d.done(function(){f.display=u}),null==u&&(u="none"===(c=f.display)?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=J.access(e,"fxshow",{display:u}),r&&(g.hidden=!m),m&&de([e],!0),d.done(function(){for(i in m||de([e]),J.remove(e,"fxshow"),p)x.style(e,i,p[i])})),l=ct(m?g[i]:0,i,d),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),x.speed=function(e,t,n){var i=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return x.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration=i.duration in x.fx.speeds?x.fx.speeds[i.duration]:x.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&x.dequeue(this,i.queue)},i},x.fn.extend({fadeTo:function(e,t,n,i){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var s=x.isEmptyObject(e),r=x.speed(t,n,i),o=function(){var t=ht(this,x.extend({},e),r);(s||J.get(this,"finish"))&&t.stop(!0)};return o.finish=o,s||!1===r.queue?this.each(o):this.queue(r.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,s=null!=e&&e+"queueHooks",r=x.timers,o=J.get(this);if(s)o[s]&&o[s].stop&&i(o[s]);else for(s in o)o[s]&&o[s].stop&&ot.test(s)&&i(o[s]);for(s=r.length;s--;)r[s].elem!==this||null!=e&&r[s].queue!==e||(r[s].anim.stop(n),t=!1,r.splice(s,1));!t&&n||x.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=J.get(this),i=n[e+"queue"],s=n[e+"queueHooks"],r=x.timers,o=i?i.length:0;for(n.finish=!0,x.queue(this,e,[]),s&&s.stop&&s.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,i,s){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ut(t,!0),e,i,s)}}),x.each({slideDown:ut("show"),slideUp:ut("hide"),slideToggle:ut("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),it=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){st||(st=!0,at())},x.fx.stop=function(){st=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,t){return e=x.fx&&x.fx.speeds[e]||e,this.queue(t=t||"fx",function(t,n){var s=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(s)}})},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var dt,pt=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return H(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}}),x.extend({attr:function(e,t,n){var i,s,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?x.prop(e,t,n):(1===r&&x.isXMLDoc(e)||(s=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):s&&"set"in s&&void 0!==(i=s.set(e,n,t))?i:(e.setAttribute(t,n+""),n):s&&"get"in s&&null!==(i=s.get(e,t))?i:null==(i=x.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&O(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,s=t&&t.match(L);if(s&&1===e.nodeType)for(;n=s[i++];)e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var n=pt[t]||x.find.attr;pt[t]=function(e,t,i){var s,r,o=t.toLowerCase();return i||(r=pt[o],pt[o]=s,s=null!=n(e,t,i)?o:null,pt[o]=r),s}});var ft=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;function gt(e){return(e.match(L)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}x.fn.extend({prop:function(e,t){return H(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}}),x.extend({prop:function(e,t,n){var i,s,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&x.isXMLDoc(e)||(s=x.propHooks[t=x.propFix[t]||t]),void 0!==n?s&&"set"in s&&void 0!==(i=s.set(e,n,t))?i:e[t]=n:s&&"get"in s&&null!==(i=s.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(x.propHooks.selected={get:function(e){return null},set:function(e){}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(e){var t,n,i,s,r,o,a,l=0;if(y(e))return this.each(function(t){x(this).addClass(e.call(this,t,yt(this)))});if((t=vt(e)).length)for(;n=this[l++];)if(s=yt(n),i=1===n.nodeType&&" "+gt(s)+" "){for(o=0;r=t[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");s!==(a=gt(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,s,r,o,a,l=0;if(y(e))return this.each(function(t){x(this).removeClass(e.call(this,t,yt(this)))});if(!arguments.length)return this.attr("class","");if((t=vt(e)).length)for(;n=this[l++];)if(s=yt(n),i=1===n.nodeType&&" "+gt(s)+" "){for(o=0;r=t[o++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");s!==(a=gt(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):y(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,yt(this),t),t)}):this.each(function(){var t,s,r,o;if(i)for(s=0,r=x(this),o=vt(e);t=o[s++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||((t=yt(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+gt(yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;x.fn.extend({val:function(e){var t,n,i,s=this[0];return arguments.length?(i=y(e),this.each(function(n){var s;1===this.nodeType&&(null==(s=i?e.call(this,n,x(this).val()):e)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=x.map(s,function(e){return null==e?"":e+""})),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,s,"value")||(this.value=s))})):s?(t=x.valHooks[s.type]||x.valHooks[s.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(s,"value"))?n:"string"==typeof(n=s.value)?n.replace(bt,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:gt(x.text(e))}},select:{get:function(e){var t,n,i,s=e.options,r=e.selectedIndex,o="select-one"===e.type,a=o?null:[],l=o?r+1:s.length;for(i=r<0?l:o?r:0;i<l;i++)if(((n=s[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!O(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,i,s=e.options,r=x.makeArray(t),o=s.length;o--;)((i=s[o]).selected=x.inArray(x.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},g.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),g.focusin="onfocusin"in i;var wt=/^(?:focusinfocus|focusoutblur)$/,Ct=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,t,n,s){var r,o,a,l,u,c,h,d,f=[n||b],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(o=d=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!wt.test(m+x.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[x.expando]?e:new x.Event(m,"object"==typeof e&&e)).isTrigger=s?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:x.makeArray(t,[e]),h=x.event.special[m]||{},s||!h.trigger||!1!==h.trigger.apply(n,t))){if(!s&&!h.noBubble&&!v(n)){for(wt.test((l=h.delegateType||m)+m)||(o=o.parentNode);o;o=o.parentNode)f.push(o),a=o;a===(n.ownerDocument||b)&&f.push(a.defaultView||a.parentWindow||i)}for(r=0;(o=f[r++])&&!e.isPropagationStopped();)d=o,e.type=r>1?l:h.bindType||m,(c=(J.get(o,"events")||Object.create(null))[e.type]&&J.get(o,"handle"))&&c.apply(o,t),(c=u&&o[u])&&c.apply&&Y(o)&&(e.result=c.apply(o,t),!1===e.result&&e.preventDefault());return e.type=m,s||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(f.pop(),t)||!Y(n)||u&&y(n[m])&&!v(n)&&((a=n[u])&&(n[u]=null),x.event.triggered=m,e.isPropagationStopped()&&d.addEventListener(m,Ct),n[m](),e.isPropagationStopped()&&d.removeEventListener(m,Ct),x.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(i,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}}),g.focusin||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,s=J.access(i,t);s||i.addEventListener(e,n,!0),J.access(i,t,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,s=J.access(i,t)-1;s?J.access(i,t,s):(i.removeEventListener(e,n,!0),J.remove(i,t))}}});var _t=i.location,xt={guid:Date.now()},St=/\?/;x.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(s){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||x.error("Invalid XML: "+(n?x.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Et=/\[\]$/,It=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,n,i){var s;if(Array.isArray(t))x.each(t,function(t,s){n||Et.test(e)?i(e,s):Ot(e+"["+("object"==typeof s&&null!=s?t:"")+"]",s,n,i)});else if(n||"object"!==_(t))i(e,t);else for(s in t)Ot(e+"["+s+"]",t[s],n,i)}x.param=function(e,t){var n,i=[],s=function(e,t){var n=y(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){s(this.name,this.value)});else for(n in e)Ot(n,e[n],t,s);return i.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&kt.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!me.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(It,"\r\n")}}):{name:t.name,value:n.replace(It,"\r\n")}}).get()}});var At=/%20/g,Pt=/#.*$/,Dt=/([?&])_=[^&]*/,Nt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,Ft=/^\/\//,Mt={},Lt={},Bt="*/".concat("*"),Vt=b.createElement("a");function qt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,s=0,r=t.toLowerCase().match(L)||[];if(y(n))for(;i=r[s++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function jt(e,t,n,i){var s={},r=e===Lt;function o(a){var l;return s[a]=!0,x.each(e[a]||[],function(e,a){var u=a(t,n,i);return"string"!=typeof u||r||s[u]?r?!(l=u):void 0:(t.dataTypes.unshift(u),o(u),!1)}),l}return o(t.dataTypes[0])||!s["*"]&&o("*")}function Qt(e,t){var n,i,s=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((s[n]?e:i||(i={}))[n]=t[n]);return i&&x.extend(!0,e,i),e}Vt.href=_t.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_t.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Qt(Qt(e,x.ajaxSettings),t):Qt(x.ajaxSettings,e)},ajaxPrefilter:qt(Mt),ajaxTransport:qt(Lt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var n,s,r,o,a,l,u,c,h,d,p=x.ajaxSetup({},t=t||{}),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?x(f):x.event,g=x.Deferred(),y=x.Callbacks("once memory"),v=p.statusCode||{},w={},C={},_="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(u){if(!o)for(o={};t=Nt.exec(r);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(e,t){return null==u&&(e=C[e.toLowerCase()]=C[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)S.always(e[S.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||_;return n&&n.abort(t),E(0,t),this}};if(g.promise(S),p.url=((e||p.url||_t.href)+"").replace(Ft,_t.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(L)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Vt.protocol+"//"+Vt.host!=l.protocol+"//"+l.host}catch(I){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),jt(Mt,p,t,S),u)return S;for(h in(c=x.event&&p.global)&&0==x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Rt.test(p.type),s=p.url.replace(Pt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(At,"+")):(d=p.url.slice(s.length),p.data&&(p.processData||"string"==typeof p.data)&&(s+=(St.test(s)?"&":"?")+p.data,delete p.data),!1===p.cache&&(s=s.replace(Dt,"$1"),d=(St.test(s)?"&":"?")+"_="+xt.guid+++d),p.url=s+d),p.ifModified&&(x.lastModified[s]&&S.setRequestHeader("If-Modified-Since",x.lastModified[s]),x.etag[s]&&S.setRequestHeader("If-None-Match",x.etag[s])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Bt+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(f,S,p)||u))return S.abort();if(_="abort",y.add(p.complete),S.done(p.success),S.fail(p.error),n=jt(Lt,p,t,S)){if(S.readyState=1,c&&m.trigger("ajaxSend",[S,p]),u)return S;p.async&&p.timeout>0&&(a=i.setTimeout(function(){S.abort("timeout")},p.timeout));try{u=!1,n.send(w,E)}catch(I){if(u)throw I;E(-1,I)}}else E(-1,"No Transport");function E(e,t,o,l){var h,d,b,w,C,_=t;u||(u=!0,a&&i.clearTimeout(a),n=void 0,r=l||"",S.readyState=e>0?4:0,h=e>=200&&e<300||304===e,o&&(w=function(e,t,n){for(var i,s,r,o,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){l.unshift(s);break}if(l[0]in n)r=l[0];else{for(s in n){if(!l[0]||e.converters[s+" "+l[0]]){r=s;break}o||(o=s)}r=r||o}if(r)return r!==l[0]&&l.unshift(r),n[r]}(p,S,o)),!h&&x.inArray("script",p.dataTypes)>-1&&x.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),w=function(e,t,n,i){var s,r,o,a,l,u={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)u[o.toLowerCase()]=e.converters[o];for(r=c.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(o=u[l+" "+r]||u["* "+r]))for(s in u)if((a=s.split(" "))[1]===r&&(o=u[l+" "+a[0]]||u["* "+a[0]])){!0===o?o=u[s]:!0!==u[s]&&(r=a[0],c.unshift(a[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(I){return{state:"parsererror",error:o?I:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(p,w,S,h),h?(p.ifModified&&((C=S.getResponseHeader("Last-Modified"))&&(x.lastModified[s]=C),(C=S.getResponseHeader("etag"))&&(x.etag[s]=C)),204===e||"HEAD"===p.type?_="nocontent":304===e?_="notmodified":(_=w.state,d=w.data,h=!(b=w.error))):(b=_,!e&&_||(_="error",e<0&&(e=0))),S.status=e,S.statusText=(t||_)+"",h?g.resolveWith(f,[d,_,S]):g.rejectWith(f,[S,_,b]),S.statusCode(v),v=void 0,c&&m.trigger(h?"ajaxSuccess":"ajaxError",[S,p,h?d:b]),y.fireWith(f,[S,_]),c&&(m.trigger("ajaxComplete",[S,p]),--x.active||x.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],function(e,t){x[t]=function(e,n,i,s){return y(n)&&(s=s||i,i=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:s,data:n,success:i},x.isPlainObject(e)&&e))}}),x.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var $t={0:200,1223:204},Ht=x.ajaxSettings.xhr();g.cors=!!Ht&&"withCredentials"in Ht,g.ajax=Ht=!!Ht,x.ajaxTransport(function(e){var t,n;if(g.cors||Ht&&!e.crossDomain)return{send:function(s,r){var o,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];for(o in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)a.setRequestHeader(o,s[o]);t=function(e){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r($t[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout(function(){t&&n()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}}),x.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,s){t=x("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&s("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}});var Ut,Wt=[],Gt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Wt.pop()||x.expando+"_"+xt.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(e,t,n){var s,r,o,a=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return s=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Gt,"$1"+s):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return o||x.error(s+" was not called"),o[0]},e.dataTypes[0]="json",r=i[s],i[s]=function(){o=arguments},n.always(function(){void 0===r?x(i).removeProp(s):i[s]=r,e[s]&&(e.jsonpCallback=t.jsonpCallback,Wt.push(s)),o&&y(r)&&r(o[0]),o=r=void 0}),"script"}),g.createHTMLDocument=((Ut=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),x.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((i=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(i)):t=b),r=!n&&[],(s=A.exec(e))?[t.createElement(s[1])]:(s=_e([e],t,r),r&&r.length&&x(r).remove(),x.merge([],s.childNodes)));var i,s,r},x.fn.load=function(e,t,n){var i,s,r,o=this,a=e.indexOf(" ");return a>-1&&(i=gt(e.slice(a)),e=e.slice(0,a)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(s="POST"),o.length>0&&x.ajax({url:e,type:s||"GET",dataType:"html",data:t}).done(function(e){r=arguments,o.html(i?x("<div>").append(x.parseHTML(e)).find(i):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},x.expr.pseudos.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length},x.offset={setOffset:function(e,t,n){var i,s,r,o,a,l,u=x.css(e,"position"),c=x(e),h={};"static"===u&&(e.style.position="relative"),a=c.offset(),r=x.css(e,"top"),l=x.css(e,"left"),("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1?(o=(i=c.position()).top,s=i.left):(o=parseFloat(r)||0,s=parseFloat(l)||0),y(t)&&(t=t.call(e,n,x.extend({},a))),null!=t.top&&(h.top=t.top-a.top+o),null!=t.left&&(h.left=t.left-a.left+s),"using"in t?t.using.call(e,h):c.css(h)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){x.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?{top:(t=i.getBoundingClientRect()).top+(n=i.ownerDocument.defaultView).pageYOffset,left:t.left+n.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],s={top:0,left:0};if("fixed"===x.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((s=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),s.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-s.top-x.css(i,"marginTop",!0),left:t.left-s.left-x.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||re})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;x.fn[e]=function(i){return H(this,function(e,i,s){var r;if(v(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===s)return r?r[t]:e[i];r?r.scrollTo(n?r.pageXOffset:s,n?s:r.pageYOffset):e[i]=s},e,i,arguments.length)}}),x.each(["top","left"],function(e,t){x.cssHooks[t]=He(g.pixelPosition,function(e,n){if(n)return n=$e(e,t),Ve.test(n)?x(e).position()[t]+"px":n})}),x.each({Height:"height",Width:"width"},function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){x.fn[i]=function(s,r){var o=arguments.length&&(n||"boolean"!=typeof s),a=n||(!0===s||!0===r?"margin":"border");return H(this,function(t,n,s){var r;return v(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===s?x.css(t,n,a):x.style(t,n,s,a)},t,o?s:void 0,o)}})}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var zt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var n,i,s;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return i=a.call(arguments,2),(s=function(){return e.apply(t||this,i.concat(a.call(arguments)))}).guid=e.guid=e.guid||x.guid++,s},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=O,x.isFunction=y,x.isWindow=v,x.camelCase=z,x.type=_,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(zt,"")},void 0===(n=(function(){return x}).apply(t,[]))||(e.exports=n);var Yt=i.jQuery,Kt=i.$;return x.noConflict=function(e){return i.$===x&&(i.$=Kt),e&&i.jQuery===x&&(i.jQuery=Yt),x},void 0===s&&(i.jQuery=i.$=x),x})},7515:function(e,t,n){"use strict";function i(e){return"function"==typeof e}let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function o(e){setTimeout(()=>{throw e},0)}const a={closed:!0,next(e){},error(e){if(r.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function u(e){return null!==e&&"object"==typeof e}const c=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:s,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(i(r)){s&&(this._unsubscribe=void 0);try{r.call(this)}catch(a){t=a instanceof c?d(a.errors):[a]}}if(l(o)){let e=-1,n=o.length;for(;++e<n;){const n=o[e];if(u(n))try{n.unsubscribe()}catch(a){t=t||[],a instanceof c?t=t.concat(d(a.errors)):t.push(a)}}}if(t)throw new c(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function d(e){return e.reduce((e,t)=>e.concat(t instanceof c?t.errors:t),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof f?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[p](){return this}static create(e,t,n){const i=new f(e,t,n);return i.syncErrorThrowable=!1,i}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class m extends f{constructor(e,t,n,s){let r;super(),this._parentSubscriber=e;let o=this;i(t)?r=t:t&&(r=t.next,n=t.error,s=t.complete,t!==a&&(o=Object.create(t),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(e){return e}let v=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:i}=this,s=function(e,t,n){if(e){if(e instanceof f)return e;if(e[p])return e[p]()}return e||t||n?new f(e,t,n):new f(a)}(e,t,n);if(s.add(i?i.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){r.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:i}=e;if(t||i)return!1;e=n&&n instanceof f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=b(t))((t,n)=>{let i;i=this.subscribe(t=>{try{e(t)}catch(s){n(s),i&&i.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[g](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?y:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=b(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function b(e){if(e||(e=r.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const w=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class C extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class _ extends f{constructor(e){super(e),this.destination=e}}let x=(()=>{class e extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new _(this)}lift(e){const t=new S(this,this);return t.operator=e,t}next(e){if(this.closed)throw new w;if(!this.isStopped){const{observers:t}=this,n=t.length,i=t.slice();for(let s=0;s<n;s++)i[s].next(e)}}error(e){if(this.closed)throw new w;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,i=t.slice();for(let s=0;s<n;s++)i[s].error(e);this.observers.length=0}complete(){if(this.closed)throw new w;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let i=0;i<t;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new w;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new w;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new C(this,e))}asObservable(){const e=new v;return e.source=this,e}}return e.create=(e,t)=>new S(e,t),e})();class S extends x{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function E(e){return e&&"function"==typeof e.schedule}function I(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new T(e,t))}}class T{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new k(e,this.project,this.thisArg))}}class k extends f{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const O=e=>t=>{for(let n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()};function A(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const P=A(),D=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function N(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const R=e=>{if(e&&"function"==typeof e[g])return n=e,e=>{const t=n[g]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(D(e))return O(e);if(N(e))return(e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t))(e);if(e&&"function"==typeof e[P])return t=e,e=>{const n=t[P]();for(;;){let t;try{t=n.next()}catch(i){return e.error(i),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=u(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n};function F(e,t){return new v(n=>{const i=new h;let s=0;return i.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function M(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[g]}(e))return function(e,t){return new v(n=>{const i=new h;return i.add(t.schedule(()=>{const s=e[g]();i.add(s.subscribe({next(e){i.add(t.schedule(()=>n.next(e)))},error(e){i.add(t.schedule(()=>n.error(e)))},complete(){i.add(t.schedule(()=>n.complete()))}}))})),i})}(e,t);if(N(e))return function(e,t){return new v(n=>{const i=new h;return i.add(t.schedule(()=>e.then(e=>{i.add(t.schedule(()=>{n.next(e),i.add(t.schedule(()=>n.complete()))}))},e=>{i.add(t.schedule(()=>n.error(e)))}))),i})}(e,t);if(D(e))return F(e,t);if(function(e){return e&&"function"==typeof e[P]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new v(n=>{const i=new h;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(t.schedule(()=>{s=e[P](),i.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=s.next();e=n.value,t=n.done}catch(i){return void n.error(i)}t?n.complete():(n.next(e),this.schedule())}))})),i})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof v?e:new v(R(e))}class L extends f{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class B extends f{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function V(e,t){if(t.closed)return;if(e instanceof v)return e.subscribe(t);let n;try{n=R(e)(t)}catch(i){t.error(i)}return n}function q(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(q((n,i)=>M(e(n,i)).pipe(I((e,s)=>t(n,e,i,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new j(e,n)))}class j{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new Q(e,this.project,this.concurrent))}}class Q extends B{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}_innerSub(e){const t=new L(this),n=this.destination;n.add(t);const i=V(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function $(e=Number.POSITIVE_INFINITY){return q(y,e)}function H(e,t){return t?F(e,t):new v(O(e))}function U(){return function(e){return e.lift(new W(e))}}class W{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const i=new G(e,n),s=t.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class G extends f{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class z extends v{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new h,e.add(this.source.subscribe(new K(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return U()(this)}}const Y=(()=>{const e=z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class K extends _{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function J(e,t){return function(n){let i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new Z(i,t));const s=Object.create(n,Y);return s.source=n,s.subjectFactory=i,s}}class Z{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:n}=this,i=this.subjectFactory(),s=n(i).subscribe(e);return s.add(t.subscribe(i)),s}}function X(){return new x}
/**
 * @license Angular v12.0.4
 * (c) 2010-2021 Google LLC. https://angular.io/
 * License: MIT
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function ee(e){for(let t in e)if(e[t]===ee)return t;throw Error("Could not find renamed property on target object.")}function te(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function ne(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ne).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ie(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const se=ee({__forward_ref__:ee});function re(e){return e.__forward_ref__=re,e.toString=function(){return ne(this())},e}function oe(e){return ae(e)?e():e}function ae(e){return"function"==typeof e&&e.hasOwnProperty(se)&&e.__forward_ref__===re}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class le extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}(e,t)),this.code=e}}function ue(e){return"string"==typeof e?e:null==e?"":String(e)}function ce(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ue(e)}function he(e,t){const n=t?` in ${t}`:"";throw new le("201",`No provider for ${ce(e)} found${n}`)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function de(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function pe(e){return{providers:e.providers||[],imports:e.imports||[]}}function fe(e){return me(e,ye)||me(e,be)}function me(e,t){return e.hasOwnProperty(t)?e[t]:null}function ge(e){return e&&(e.hasOwnProperty(ve)||e.hasOwnProperty(we))?e[ve]:null}const ye=ee({"\u0275prov":ee}),ve=ee({"\u0275inj":ee}),be=ee({ngInjectableDef:ee}),we=ee({ngInjectorDef:ee});
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */var Ce=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */let _e;function xe(e){const t=_e;return _e=e,t}function Se(e,t,n){const i=fe(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Ce.Optional?null:void 0!==t?t:void he(ne(e),"Injector")}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Ee(e){return{toString:e}.toString()}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */var Ie=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Te=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const ke="undefined"!=typeof globalThis&&globalThis,Oe="undefined"!=typeof window&&window,Ae="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Pe="undefined"!=typeof global&&global,De=ke||Pe||Oe||Ae,Ne={},Re=[],Fe=ee({"\u0275cmp":ee}),Me=ee({"\u0275dir":ee}),Le=ee({"\u0275pipe":ee}),Be=ee({"\u0275mod":ee}),Ve=ee({"\u0275loc":ee}),qe=ee({"\u0275fac":ee}),je=ee({__NG_ELEMENT_ID__:ee});
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */let Qe=0;function $e(e){return Ee(()=>{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ie.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Re,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Te.Emulated,id:"c",styles:e.styles||Re,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,s=e.features,r=e.pipes;return n.id+=Qe++,n.inputs=ze(e.inputs,t),n.outputs=ze(e.outputs),s&&s.forEach(e=>e(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(He):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(Ue):null,n})}function He(e){return Je(e)||function(e){return e[Me]||null}(e)}function Ue(e){return function(e){return e[Le]||null}(e)}const We={};function Ge(e){const t={type:e.type,bootstrap:e.bootstrap||Re,declarations:e.declarations||Re,imports:e.imports||Re,exports:e.exports||Re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Ee(()=>{We[e.id]=e.type}),t}function ze(e,t){if(null==e)return Ne;const n={};for(const i in e)if(e.hasOwnProperty(i)){let s=e[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,t&&(t[s]=r)}return n}const Ye=$e;function Ke(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Je(e){return e[Fe]||null}function Ze(e,t){const n=e[Be]||null;if(!n&&!0===t)throw new Error(`Type ${ne(e)} does not have '\u0275mod' property.`);return n}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Xe(e){return Array.isArray(e)&&"object"==typeof e[1]}function et(e){return Array.isArray(e)&&!0===e[1]}function tt(e){return 0!=(8&e.flags)}function nt(e){return 2==(2&e.flags)}function it(e){return 1==(1&e.flags)}function st(e){return null!==e.template}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function rt(e,t){return e.hasOwnProperty(qe)?e[qe]:null}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class ot{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function at(){return lt}function lt(e){return e.type.prototype.ngOnChanges&&(e.setInput=ct),ut}function ut(){const e=ht(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Ne)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function ct(e,t,n,i){const s=ht(e)||function(e,t){return e.__ngSimpleChanges__=t}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */(e,{previous:Ne,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new ot(l&&l.currentValue,t,o===Ne),e[i]=t}function ht(e){return e.__ngSimpleChanges__||null}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */let dt;function pt(e){return!!e.listen}at.ngInherit=!0;const ft={createRenderer:(e,t)=>void 0!==dt?dt:"undefined"!=typeof document?document:void 0};
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function mt(e){for(;Array.isArray(e);)e=e[0];return e}function gt(e,t){return mt(t[e])}function yt(e,t){return mt(t[e.index])}function vt(e,t){return e.data[t]}function bt(e,t){return e[t]}function wt(e,t){const n=t[e];return Xe(n)?n:n[0]}function Ct(e){return 4==(4&e[2])}function _t(e){return 128==(128&e[2])}function xt(e,t){return null==t?null:e[t]}function St(e){e[18]=0}function Et(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const It={lFrame:Yt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Tt(){return It.bindingsEnabled}function kt(){return It.lFrame.lView}function Ot(){return It.lFrame.tView}function At(e){return It.lFrame.contextLView=e,e[8]}function Pt(){let e=Dt();for(;null!==e&&64===e.type;)e=e.parent;return e}function Dt(){return It.lFrame.currentTNode}function Nt(e,t){const n=It.lFrame;n.currentTNode=e,n.isParent=t}function Rt(){return It.lFrame.isParent}function Ft(){It.lFrame.isParent=!1}function Mt(){return It.isInCheckNoChangesMode}function Lt(e){It.isInCheckNoChangesMode=e}function Bt(){return It.lFrame.bindingIndex}function Vt(){return It.lFrame.bindingIndex++}function qt(e){const t=It.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function jt(e,t){const n=It.lFrame;n.bindingIndex=n.bindingRootIndex=e,Qt(t)}function Qt(e){It.lFrame.currentDirectiveIndex=e}function $t(){return It.lFrame.currentQueryIndex}function Ht(e){It.lFrame.currentQueryIndex=e}function Ut(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Wt(e,t,n){if(n&Ce.SkipSelf){let i=t,s=e;for(;i=i.parent,!(null!==i||n&Ce.Host||(i=Ut(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;t=i,e=s}const i=It.lFrame=zt();return i.currentTNode=t,i.lView=e,!0}function Gt(e){const t=zt(),n=e[1];It.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function zt(){const e=It.lFrame,t=null===e?null:e.child;return null===t?Yt(e):t}function Yt(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Kt(){const e=It.lFrame;return It.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Jt=Kt;function Zt(){const e=Kt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Xt(){return It.lFrame.selectedIndex}function en(e){It.lFrame.selectedIndex=e}function tn(){const e=It.lFrame;return vt(e.tView,e.selectedIndex)}function nn(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:s,ngAfterViewInit:r,ngAfterViewChecked:o,ngOnDestroy:a}=t;i&&(e.contentHooks||(e.contentHooks=[])).push(-n,i),s&&((e.contentHooks||(e.contentHooks=[])).push(n,s),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,s)),r&&(e.viewHooks||(e.viewHooks=[])).push(-n,r),o&&((e.viewHooks||(e.viewHooks=[])).push(n,o),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,o)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function sn(e,t,n){an(e,t,3,n)}function rn(e,t,n,i){(3&e[2])===n&&an(e,t,n,i)}function on(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function an(e,t,n,i){const s=null!=i?i:-1,r=t.length-1;let o=0;for(let a=void 0!==i?65535&e[18]:0;a<r;a++)if("number"==typeof t[a+1]){if(o=t[a],null!=i&&o>=i)break}else t[a]<0&&(e[18]+=65536),(o<s||-1==s)&&(ln(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function ln(e,t,n,i){const s=n[i]<0,r=n[i+1],o=e[s?-n[i]:n[i]];if(s){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class un{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function cn(e,t,n){const i=pt(e);let s=0;for(;s<n.length;){const r=n[s];if("number"==typeof r){if(0!==r)break;s++;const o=n[s++],a=n[s++],l=n[s++];i?e.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=r,a=n[++s];hn(o)?i&&e.setProperty(t,o,a):i?e.setAttribute(t,o,a):t.setAttribute(o,a),s++}}return s}function hn(e){return 64===e.charCodeAt(0)}function dn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const s=t[i];"number"==typeof s?n=s:0===n||pn(e,n,s,null,-1===n||2===n?t[++i]:null)}}return e}function pn(e,t,n,i,s){let r=0,o=e.length;if(-1===t)o=-1;else for(;r<e.length;){const n=e[r++];if("number"==typeof n){if(n===t){o=-1;break}if(n>t){o=r-1;break}}}for(;r<e.length;){const t=e[r];if("number"==typeof t)break;if(t===n){if(null===i)return void(null!==s&&(e[r+1]=s));if(i===e[r+1])return void(e[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==o&&(e.splice(o,0,t),r=o+1),e.splice(r++,0,n),null!==i&&e.splice(r++,0,i),null!==s&&e.splice(r++,0,s)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function fn(e){return-1!==e}function mn(e){return 32767&e}function gn(e,t){let n=e>>16,i=t;for(;n>0;)i=i[15],n--;return i}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */let yn=!0;function vn(e){const t=yn;return yn=e,t}let bn=0;function wn(e,t){const n=_n(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Cn(i.data,e),Cn(t,null),Cn(i.blueprint,null));const s=xn(e,t),r=e.injectorIndex;if(fn(s)){const e=mn(s),n=gn(s,t),i=n[1].data;for(let s=0;s<8;s++)t[r+s]=n[e+s]|i[e+s]}return t[r+8]=s,r}function Cn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function _n(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function xn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,s=t;for(;null!==s;){const e=s[1],t=e.type;if(i=2===t?e.declTNode:1===t?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Sn(e,t,n){!function(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(je)&&(i=n[je]),null==i&&(i=n[je]=bn++);const s=255&i;t.data[e+(s>>5)]|=1<<s}(e,t,n)}function En(e,t,n){if(n&Ce.Optional)return e;he(t,"NodeInjector")}function In(e,t,n,i){if(n&Ce.Optional&&void 0===i&&(i=null),0==(n&(Ce.Self|Ce.Host))){const s=e[9],r=xe(void 0);try{return s?s.get(t,i,n&Ce.Optional):Se(t,i,n&Ce.Optional)}finally{xe(r)}}return En(i,t,n)}function Tn(e,t,n,i=Ce.Default,s){if(null!==e){const r=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(je)?e[je]:void 0;return"number"==typeof t?t>=0?255&t:On:t}(n);if("function"==typeof r){if(!Wt(t,e,i))return i&Ce.Host?En(s,n,i):In(t,n,i,s);try{const e=r(i);if(null!=e||i&Ce.Optional)return e;he(n)}finally{Jt()}}else if("number"==typeof r){let s=null,o=_n(e,t),a=-1,l=i&Ce.Host?t[16][6]:null;for((-1===o||i&Ce.SkipSelf)&&(a=-1===o?xn(e,t):t[o+8],-1!==a&&Rn(i,!1)?(s=t[1],o=mn(a),t=gn(a,t)):o=-1);-1!==o;){const e=t[1];if(Nn(r,o,e.data)){const e=An(o,t,n,s,i,l);if(e!==kn)return e}a=t[o+8],-1!==a&&Rn(i,t[1].data[o+8]===l)&&Nn(r,o,t)?(s=e,o=mn(a),t=gn(a,t)):o=-1}}}return In(t,n,i,s)}const kn={};function On(){return new Fn(Pt(),kt())}function An(e,t,n,i,s,r){const o=t[1],a=o.data[e+8],l=Pn(a,o,n,null==i?nt(a)&&yn:i!=o&&0!=(3&a.type),s&Ce.Host&&r===a);return null!==l?Dn(t,o,l,a):kn}function Pn(e,t,n,i,s){const r=e.providerIndexes,o=t.data,a=1048575&r,l=e.directiveStart,u=r>>20,c=s?a+u:e.directiveEnd;for(let h=i?a:a+u;h<c;h++){const e=o[h];if(h<l&&n===e||h>=l&&e.type===n)return h}if(s){const e=o[l];if(e&&st(e)&&e.type===n)return l}return null}function Dn(e,t,n,i){let s=e[n];const r=t.data;if(s instanceof un){const o=s;o.resolving&&function(e,t){throw new le("200",`Circular dependency in DI detected for ${e}`)}(ce(r[n]));const a=vn(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?xe(o.injectImpl):null;Wt(e,i,Ce.Default);try{s=e[n]=o.factory(void 0,r,e,i),t.firstCreatePass&&n>=i.directiveStart&&
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
function(e,t,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=t.type.prototype;if(i){const i=lt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r))}(n,r[n],t)}finally{null!==l&&xe(l),vn(a),o.resolving=!1,Jt()}}return s}function Nn(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Rn(e,t){return!(e&Ce.Self||e&Ce.Host&&t)}class Fn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return Tn(this._tNode,this._lView,e,void 0,t)}}function Mn(e){return Ee(()=>{const t=e.prototype.constructor,n=t[qe]||Ln(t),i=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==i;){const e=s[qe]||Ln(s);if(e&&e!==n)return e;s=Object.getPrototypeOf(s)}return e=>new e})}function Ln(e){return ae(e)?()=>{const t=Ln(oe(e));return t&&t()}:rt(e)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Bn(e,t,n){return Ee(()=>{const i=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return i.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,i){const s=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class Vn{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=de({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function qn(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),qn(i,t)):t!==e&&t.push(i)}return t}function jn(e,t){e.forEach(e=>Array.isArray(e)?jn(e,t):t(e))}function Qn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function $n(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Hn(e,t,n){let i=Wn(e,t);return i>=0?e[1|i]=n:(i=~i,function(e,t,n,i){let s=e.length;if(s==t)e.push(n,i);else if(1===s)e.push(i,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Un(e,t){const n=Wn(e,t);if(n>=0)return e[1|n]}function Wn(e,t){return function(e,t,n){let i=0,s=e.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=e[n<<1];if(t===r)return n<<1;r>t?s=n:i=n+1}return~(s<<1)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */(e,t)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const Gn={},zn=/\n/gm,Yn=ee({provide:String,useValue:ee});let Kn;function Jn(e){const t=Kn;return Kn=e,t}function Zn(e,t=Ce.Default){if(void 0===Kn)throw new Error("inject() must be called from an injection context");return null===Kn?Se(e,void 0,t):Kn.get(e,t&Ce.Optional?null:void 0,t)}function Xn(e,t=Ce.Default){return(_e||Zn)(oe(e),t)}function ei(e){const t=[];for(let n=0;n<e.length;n++){const i=oe(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let e,n=Ce.Default;for(let t=0;t<i.length;t++){const s=i[t],r=s.__NG_DI_FLAG__;"number"==typeof r?-1===r?e=s.token:n|=r:e=s}t.push(Xn(e,n))}else t.push(Xn(i))}return t}function ti(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const ni=ti(Bn("Inject",e=>({token:e})),-1),ii=ti(Bn("Optional"),8),si=ti(Bn("SkipSelf"),4);
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class ri{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function oi(e){return e instanceof ri?e.changingThisBreaksApplicationSecurity:e}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const ai=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,li=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */var ui=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function ci(e){const t=function(){const e=kt();return e&&e[12]}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */();return t?t.sanitize(ui.URL,e)||"":function(e,t){const n=function(e){return e instanceof ri&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}(e,"URL")?oi(e):(n=ue(e),(n=String(n)).match(ai)||n.match(li)?n:"unsafe:"+n);var n}function hi(e,t){e.__ngContext__=t}function di(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function pi(e){return e.ngDebugContext}function fi(e){return e.ngOriginalError}function mi(e,...t){e.error(...t)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class gi{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||mi}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?pi(e)?pi(e):this._findContext(fi(e)):null}_findOriginalError(e){let t=fi(e);for(;t&&fi(t);)t=fi(t);return t}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const yi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(De))();function vi(e){return e.ownerDocument.defaultView}function bi(e){return e instanceof Function?e():e}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */var wi=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Ci(e,t){return(void 0)(e,t)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function _i(e){const t=e[3];return et(t)?t[3]:t}function xi(e){return Ei(e[13])}function Si(e){return Ei(e[4])}function Ei(e){for(;null!==e&&!et(e);)e=e[4];return e}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Ii(e,t,n,i,s){if(null!=i){let r,o=!1;et(i)?r=i:Xe(i)&&(o=!0,i=i[0]);const a=mt(i);0===e&&null!==n?null==s?Ni(t,n,a):Di(t,n,a,s||null,!0):1===e&&null!==n?Di(t,n,a,s||null,!0):2===e?function(e,t,n){const i=Fi(e,t);i&&function(e,t,n,i){pt(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,a,o):3===e&&t.destroyNode(a),null!=r&&function(e,t,n,i,s){const r=n[7];r!==mt(n)&&Ii(t,e,i,r,s);for(let o=10;o<n.length;o++){const s=n[o];ji(s[1],s,e,t,i,r)}}(t,e,r,n,s)}}function Ti(e,t,n){return pt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function ki(e,t){const n=e[9],i=n.indexOf(t),s=t[3];1024&t[2]&&(t[2]&=-1025,Et(s,-1)),n.splice(i,1)}function Oi(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const r=i[17];null!==r&&r!==e&&ki(r,i),t>0&&(e[n-1][4]=i[4]);const o=$n(e,10+t);ji(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function Ai(e,t){if(!(256&t[2])){const n=t[11];pt(n)&&n.destroyNode&&ji(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Pi(e[1],e);for(;t;){let n=null;if(Xe(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Xe(t)&&Pi(t[1],t),t=t[3];null===t&&(t=e),Xe(t)&&Pi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Pi(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const e=t[n[i]];if(!(e instanceof un)){const t=n[i+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2){const i=e[t[n]],s=t[n+1];try{s.call(i)}finally{}}else try{t.call(e)}finally{}}}}(e,t),function(e,t){const n=e.cleanup,i=t[7];let s=-1;if(null!==n)for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const e=n[r+1],o="function"==typeof e?e(t):mt(t[e]),a=i[s=n[r+2]],l=n[r+3];"boolean"==typeof l?o.removeEventListener(n[r],a,l):l>=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const e=i[s=n[r+1]];n[r].call(e)}if(null!==i){for(let e=s+1;e<i.length;e++)(0,i[e])();t[7]=null}}(e,t),1===t[1].type&&pt(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&et(t[3])){n!==t[3]&&ki(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function Di(e,t,n,i,s){pt(e)?e.insertBefore(t,n,i,s):t.insertBefore(n,i,s)}function Ni(e,t,n){pt(e)?e.appendChild(t,n):t.appendChild(n)}function Ri(e,t,n,i,s){null!==i?Di(e,t,n,i,s):Ni(e,t,n)}function Fi(e,t){return pt(e)?e.parentNode(t):t.parentNode}function Mi(e,t,n,i){const s=function(e,t,n){return function(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){const t=e.data[i.directiveStart].encapsulation;if(t===Te.None||t===Te.Emulated)return null}return yt(i,n)}(e,t.parent,n)}(e,i,t),r=t[11],o=function(e,t,n){return function(e,t,n){return 40&e.type?yt(e,n):null}(e,0,n)}(i.parent||t[6],0,t);if(null!=s)if(Array.isArray(n))for(let a=0;a<n.length;a++)Ri(r,s,n[a],o,!1);else Ri(r,s,n,o,!1)}function Li(e,t){if(null!==t){const n=t.type;if(3&n)return yt(t,e);if(4&n)return Vi(-1,e[t.index]);if(8&n){const n=t.child;if(null!==n)return Li(e,n);{const n=e[t.index];return et(n)?Vi(-1,n):mt(n)}}if(32&n)return Ci(t,e)()||mt(e[t.index]);{const n=Bi(e,t);return null!==n?Array.isArray(n)?n[0]:Li(_i(e[16]),n):Li(e,t.next)}}return null}function Bi(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Vi(e,t){const n=10+e+1;if(n<t.length){const e=t[n],i=e[1].firstChild;if(null!==i)return Li(e,i)}return t[7]}function qi(e,t,n,i,s,r,o){for(;null!=n;){const a=i[n.index],l=n.type;if(o&&0===t&&(a&&hi(mt(a),i),n.flags|=4),64!=(64&n.flags))if(8&l)qi(e,t,n.child,i,s,r,!1),Ii(t,e,s,a,r);else if(32&l){const o=Ci(n,i);let l;for(;l=o();)Ii(t,e,s,l,r);Ii(t,e,s,a,r)}else 16&l?Qi(e,t,i,n,s,r):Ii(t,e,s,a,r);n=o?n.projectionNext:n.next}}function ji(e,t,n,i,s,r){qi(n,i,e.firstChild,t,s,r,!1)}function Qi(e,t,n,i,s,r){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Ii(t,e,s,a[l],r);else qi(e,t,a,o[3],s,r,!0)}function $i(e,t,n){pt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Hi(e,t,n){pt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Ui(e,t,n){let i=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const n=t.length;if(s+n===i||e.charCodeAt(s+n)<=32)return s}n=s+1}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Wi(e,t,n){let i=0;for(;i<e.length;){let s=e[i++];if(n&&"class"===s){if(s=e[i],-1!==Ui(s.toLowerCase(),t,0))return!0}else if(1===s){for(;i<e.length&&"string"==typeof(s=e[i++]);)if(s.toLowerCase()===t)return!0;return!1}}return!1}function Gi(e){return 4===e.type&&"ng-template"!==e.value}function zi(e,t,n){return t===(4!==e.type||n?e.value:"ng-template")}function Yi(e,t,n){let i=4;const s=e.attrs||[],r=function(e){for(let n=0;n<e.length;n++)if(3===(t=e[n])||4===t||6===t)return n;var t;return e.length}(s);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!zi(e,l,n)||""===l&&1===t.length){if(Ki(i))return!1;o=!0}}else{const u=8&i?l:t[++a];if(8&i&&null!==e.attrs){if(!Wi(e.attrs,u,n)){if(Ki(i))return!1;o=!0}continue}const c=Ji(8&i?"class":l,s,Gi(e),n);if(-1===c){if(Ki(i))return!1;o=!0;continue}if(""!==u){let e;e=c>r?"":s[c+1].toLowerCase();const t=8&i?e:null;if(t&&-1!==Ui(t,u,0)||2&i&&u!==e){if(Ki(i))return!1;o=!0}}}}else{if(!o&&!Ki(i)&&!Ki(l))return!1;if(o&&Ki(l))continue;o=!1,i=l|1&i}}return Ki(i)||o}function Ki(e){return 0==(1&e)}function Ji(e,t,n,i){if(null===t)return-1;let s=0;if(i||!n){let n=!1;for(;s<t.length;){const i=t[s];if(i===e)return s;if(3===i||6===i)n=!0;else{if(1===i||2===i){let e=t[++s];for(;"string"==typeof e;)e=t[++s];continue}if(4===i)break;if(0===i){s+=4;continue}}s+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Zi(e,t,n=!1){for(let i=0;i<t.length;i++)if(Yi(e,t[i],n))return!0;return!1}function Xi(e,t){return e?":not("+t.trim()+")":t}function es(e){let t=e[0],n=1,i=2,s="",r=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&i){const t=e[++n];s+="["+o+(t.length>0?'="'+t+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||Ki(o)||(t+=Xi(r,s),s=""),i=o,r=r||!Ki(i);n++}return""!==s&&(t+=Xi(r,s)),t}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const ts={};
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function ns(e){is(Ot(),kt(),Xt()+e,Mt())}function is(e,t,n,i){if(!i)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&sn(t,i,n)}else{const i=e.preOrderHooks;null!==i&&rn(t,i,0,n)}en(n)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function ss(e,t){return e<<17|t<<2}function rs(e){return e>>17&32767}function os(e){return 2|e}function as(e){return(131068&e)>>2}function ls(e,t){return-131069&e|t<<2}function us(e){return 1|e}function cs(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const s=n[i],r=n[i+1];if(-1!==r){const n=e.data[r];Ht(s),n.contentQueries(2,t[r],r)}}}function hs(e,t,n,i,s,r,o,a,l,u){const c=t.blueprint.slice();return c[0]=s,c[2]=140|i,St(c),c[3]=c[15]=e,c[8]=n,c[10]=o||e&&e[10],c[11]=a||e&&e[11],c[12]=l||e&&e[12]||null,c[9]=u||e&&e[9]||null,c[6]=r,c[16]=2==t.type?e[16]:c,c}function ds(e,t,n,i,s){let r=e.data[t];if(null===r)r=function(e,t,n,i,s){const r=Dt(),o=Rt(),a=e.data[t]=function(e,t,n,i,s,r){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,n,t,i,s);return null===e.firstChild&&(e.firstChild=a),null!==r&&(o?null==r.child&&null!==a.parent&&(r.child=a):null===r.next&&(r.next=a)),a}(e,t,n,i,s),It.lFrame.inI18n&&(r.flags|=64);else if(64&r.type){r.type=n,r.value=i,r.attrs=s;const e=function(){const e=It.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();r.injectorIndex=null===e?-1:e.injectorIndex}return Nt(r,!0),r}function ps(e,t,n,i){if(0===n)return-1;const s=t.length;for(let r=0;r<n;r++)t.push(i),e.blueprint.push(i),e.data.push(null);return s}function fs(e,t,n){Gt(t);try{const i=e.viewQuery;null!==i&&Hs(1,i,n);const s=e.template;null!==s&&ys(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&cs(e,t),e.staticViewQueries&&Hs(2,e.viewQuery,n);const r=e.components;null!==r&&function(e,t){for(let n=0;n<t.length;n++)Vs(e,t[n])}(t,r)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),i}finally{t[2]&=-5,Zt()}}function ms(e,t,n,i){const s=t[2];if(256==(256&s))return;Gt(t);const r=Mt();try{St(t),It.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&ys(e,t,n,2,i);const o=3==(3&s);if(!r)if(o){const n=e.preOrderCheckHooks;null!==n&&sn(t,n,null)}else{const n=e.preOrderHooks;null!==n&&rn(t,n,0,null),on(t,0)}if(function(e){for(let t=xi(e);null!==t;t=Si(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],i=n[3];0==(1024&n[2])&&Et(i,1),n[2]|=1024}}}(t),function(e){for(let t=xi(e);null!==t;t=Si(t))for(let e=10;e<t.length;e++){const n=t[e],i=n[1];_t(n)&&ms(i,n,i.template,n[8])}}(t),null!==e.contentQueries&&cs(e,t),!r)if(o){const n=e.contentCheckHooks;null!==n&&sn(t,n)}else{const n=e.contentHooks;null!==n&&rn(t,n,1),on(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let e=0;e<n.length;e++){const i=n[e];if(i<0)en(~i);else{const s=i,r=n[++e],o=n[++e];jt(r,s),o(2,t[s])}}}finally{en(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)Ls(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&Hs(2,l,i),!r)if(o){const n=e.viewCheckHooks;null!==n&&sn(t,n)}else{const n=e.viewHooks;null!==n&&rn(t,n,2),on(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),r||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Et(t[3],-1))}finally{Zt()}}function gs(e,t,n,i){const s=t[10],r=!Mt(),o=Ct(t);try{r&&!o&&s.begin&&s.begin(),o&&fs(e,t,i),ms(e,t,n,i)}finally{r&&!o&&s.end&&s.end()}}function ys(e,t,n,i,s){const r=Xt(),o=2&i;try{en(-1),o&&t.length>20&&is(e,t,20,Mt()),n(i,s)}finally{en(r)}}function vs(e,t,n){if(tt(t)){const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const t=e.data[s];t.contentQueries&&t.contentQueries(1,n[s],s)}}}function bs(e,t,n){Tt()&&(function(e,t,n,i){const s=n.directiveStart,r=n.directiveEnd;e.firstCreatePass||wn(n,t),hi(i,t);const o=n.initialInputs;for(let a=s;a<r;a++){const i=e.data[a],r=st(i);r&&Ns(t,n,i);const l=Dn(t,e,a,n);hi(l,t),null!==o&&Rs(0,a-s,l,i,0,o),r&&(wt(n.index,t)[8]=l)}}(e,t,n,yt(n,t)),128==(128&n.flags)&&function(e,t,n){const i=n.directiveStart,s=n.directiveEnd,r=n.index,o=It.lFrame.currentDirectiveIndex;try{en(r);for(let n=i;n<s;n++){const i=e.data[n],s=t[n];Qt(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||ks(i,s)}}finally{en(-1),Qt(o)}}(e,t,n))}function ws(e,t,n=yt){const i=t.localNames;if(null!==i){let s=t.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],a=-1===o?n(t,e):e[o];e[s++]=a}}}function Cs(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=_s(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function _s(e,t,n,i,s,r,o,a,l,u){const c=20+i,h=c+s,d=function(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:ts);return n}(c,h),p="function"==typeof u?u():u;return d[1]={type:e,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:t,data:d.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function xs(e,t,n,i){const s=Ws(t);null===n?s.push(i):(s.push(n),e.firstCreatePass&&Gs(e).push(i,s.length-1))}function Ss(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const s=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,s):n[i]=[t,s]}return n}function Es(e,t,n,i,s,r,o,a){const l=yt(t,n);let u,c=t.inputs;var h;!a&&null!=c&&(u=c[i])?(Ys(e,n,u,i,s),nt(t)&&function(e,t){const n=wt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(h=i)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,s=null!=o?o(s,t.value||"",i):s,pt(r)?r.setProperty(l,i,s):hn(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}function Is(e,t,n,i){let s=!1;if(Tt()){const r=function(e,t,n){const i=e.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];Zi(n,o.selectors,!1)&&(s||(s=[]),Sn(wn(n,t),e,o.type),st(o)?(Os(e,n),s.unshift(o)):s.push(o))}return s}(e,t,n),o=null===i?null:{"":-1};if(null!==r){s=!0,Ps(n,e.data.length,r.length);for(let e=0;e<r.length;e++){const t=r[e];t.providersResolver&&t.providersResolver(t)}let i=!1,a=!1,l=ps(e,t,r.length,null);for(let s=0;s<r.length;s++){const u=r[s];n.mergedAttrs=dn(n.mergedAttrs,u.hostAttrs),Ds(e,n,t,l,u),As(l,u,o),null!==u.contentQueries&&(n.flags|=8),null===u.hostBindings&&null===u.hostAttrs&&0===u.hostVars||(n.flags|=128);const c=u.type.prototype;!i&&(c.ngOnChanges||c.ngOnInit||c.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),i=!0),a||!c.ngOnChanges&&!c.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(e,t){const n=t.directiveEnd,i=e.data,s=t.attrs,r=[];let o=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=i[l],n=e.inputs,u=null===s||Gi(t)?null:Fs(n,s);r.push(u),o=Ss(n,l,o),a=Ss(e.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=r,t.inputs=o,t.outputs=a}(e,n)}o&&function(e,t,n){if(t){const i=e.localNames=[];for(let e=0;e<t.length;e+=2){const s=n[t[e+1]];if(null==s)throw new le("301",`Export of name '${t[e+1]}' not found!`);i.push(t[e],s)}}}(n,i,o)}return n.mergedAttrs=dn(n.mergedAttrs,n.attrs),s}function Ts(e,t,n,i,s,r){const o=r.hostBindings;if(o){let n=e.hostBindingOpCodes;null===n&&(n=e.hostBindingOpCodes=[]);const r=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function ks(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Os(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function As(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;st(t)&&(n[""]=e)}}function Ps(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Ds(e,t,n,i,s){e.data[i]=s;const r=s.factory||(s.factory=rt(s.type)),o=new un(r,st(s),null);e.blueprint[i]=o,n[i]=o,Ts(e,t,0,i,ps(e,n,s.hostVars,ts),s)}function Ns(e,t,n){const i=yt(t,e),s=Cs(n),r=e[10],o=qs(e,hs(e,s,null,n.onPush?64:16,i,t,r,r.createRenderer(i,n),null,null));e[t.index]=o}function Rs(e,t,n,i,s,r){const o=r[t];if(null!==o){const e=i.setInput;for(let t=0;t<o.length;){const s=o[t++],r=o[t++],a=o[t++];null!==e?i.setInput(n,a,s,r):n[r]=a}}}function Fs(e,t){let n=null,i=0;for(;i<t.length;){const s=t[i];if(0!==s)if(5!==s){if("number"==typeof s)break;e.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,e[s],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Ms(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function Ls(e,t){const n=wt(t,e);if(_t(n)){const e=n[1];80&n[2]?ms(e,n,e.template,n[8]):n[5]>0&&Bs(n)}}function Bs(e){for(let n=xi(e);null!==n;n=Si(n))for(let e=10;e<n.length;e++){const t=n[e];if(1024&t[2]){const e=t[1];ms(e,t,e.template,t[8])}else t[5]>0&&Bs(t)}const t=e[1].components;if(null!==t)for(let n=0;n<t.length;n++){const i=wt(t[n],e);_t(i)&&i[5]>0&&Bs(i)}}function Vs(e,t){const n=wt(t,e),i=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),fs(i,n,n[8])}function qs(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function js(e){for(;e;){e[2]|=64;const t=_i(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function Qs(e,t,n){const i=t[10];i.begin&&i.begin();try{ms(e,t,e.template,n)}catch(s){throw zs(t,s),s}finally{i.end&&i.end()}}function $s(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=di(n),s=i[1];gs(s,i,s.template,n)}}(e[8])}function Hs(e,t,n){Ht(0),t(e,n)}const Us=(()=>Promise.resolve(null))();function Ws(e){return e[7]||(e[7]=[])}function Gs(e){return e.cleanup||(e.cleanup=[])}function zs(e,t){const n=e[9],i=n?n.get(gi,null):null;i&&i.handleError(t)}function Ys(e,t,n,i,s){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=t[o],u=e.data[o];null!==u.setInput?u.setInput(l,s,i,a):l[a]=s}}function Ks(e,t,n){const i=gt(t,e);!function(e,t,n){pt(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Js(e,t,n){let i=n?e.styles:null,s=n?e.classes:null,r=0;if(null!==t)for(let o=0;o<t.length;o++){const e=t[o];"number"==typeof e?r=e:1==r?s=ie(s,e):2==r&&(i=ie(i,e+": "+t[++o]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=s:e.classesWithoutHost=s}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const Zs=new Vn("INJECTOR",-1);
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class Xs{get(e,t=Gn){if(t===Gn){const t=new Error(`NullInjectorError: No provider for ${ne(e)}!`);throw t.name="NullInjectorError",t}return t}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const er=new Vn("Set Injector scope."),tr={},nr={};
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */let ir;function sr(){return void 0===ir&&(ir=new Xs),ir}function rr(e,t=null,n=null,i){return new or(e,n,t||sr(),i)}class or{constructor(e,t,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&jn(t,n=>this.processProvider(n,e,t)),jn([e],e=>this.processInjectorType(e,[],s)),this.records.set(Zs,ur(void 0,this));const r=this.records.get(er);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof e?null:ne(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Gn,n=Ce.Default){this.assertNotDestroyed();const i=Jn(this);try{if(!(n&Ce.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(s=e)||"object"==typeof s&&s instanceof Vn)&&fe(e);t=n&&this.injectableDefInScope(n)?ur(ar(e),tr):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&Ce.Self?sr():this.parent).get(e,t=n&Ce.Optional&&t===Gn?null:t)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(ne(e)),i)throw r;return function(e,t,n,i){const s=e.ngTempTokenPath;throw t.__source&&s.unshift(t.__source),e.message=function(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=ne(t);if(Array.isArray(t))s=t.map(ne).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let i=t[n];e.push(n+":"+("string"==typeof i?JSON.stringify(i):ne(i)))}s=`{${e.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${e.replace(zn,"\n  ")}`}("\n"+e.message,s,n,i),e.ngTokenPath=s,e.ngTempTokenPath=null,e}(r,e,"R3InjectorError",this.source)}throw r}finally{Jn(i)}var s;
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(ne(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=oe(e)))return!1;let i=ge(e);const s=null==i&&e.ngModule||void 0,r=void 0===s?e:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=ge(s)),null==i)return!1;if(null!=i.imports&&!o){let e;n.push(r);try{jn(i.imports,i=>{this.processInjectorType(i,t,n)&&(void 0===e&&(e=[]),e.push(i))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:i}=e[t];jn(i,e=>this.processProvider(e,n,i||Re))}}this.injectorDefTypes.add(r);const a=rt(r)||(()=>new r);this.records.set(r,ur(a,tr));const l=i.providers;if(null!=l&&!o){const t=e;jn(l,e=>this.processProvider(e,t,l))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,n){let i=hr(e=oe(e))?e:oe(e&&e.provide);const s=function(e,t,n){return cr(e)?ur(void 0,e.useValue):ur(lr(e),tr)}(e);if(hr(e)||!0!==e.multi)this.records.get(i);else{let t=this.records.get(i);t||(t=ur(void 0,tr,!0),t.factory=()=>ei(t.multi),this.records.set(i,t)),i=e,t.multi.push(e)}this.records.set(i,s)}hydrate(e,t){var n;return t.value===tr&&(t.value=nr,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=oe(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function ar(e){const t=fe(e),n=null!==t?t.factory:rt(e);if(null!==n)return n;if(e instanceof Vn)throw new Error(`Token ${ne(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=function(e,t){const n=[];for(let i=0;i<e;i++)n.push("?");return n}(t);throw new Error(`Can't resolve all parameters for ${ne(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[ye]||e[be]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function lr(e,t,n){let i;if(hr(e)){const t=oe(e);return rt(t)||ar(t)}if(cr(e))i=()=>oe(e.useValue);else if((s=e)&&s.useFactory)i=()=>e.useFactory(...ei(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))i=()=>Xn(oe(e.useExisting));else{const t=oe(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return rt(t)||ar(t);i=()=>new t(...ei(e.deps))}var s;return i}function ur(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function cr(e){return null!==e&&"object"==typeof e&&Yn in e}function hr(e){return"function"==typeof e}const dr=function(e,t,n){return function(e,t=null,n=null,i){const s=rr(e,t,n,i);return s._resolveInjectorDefTypes(),s}({name:n},t,e,n)};let pr=(()=>{class e{static create(e,t){return Array.isArray(e)?dr(e,t,""):dr(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=Gn,e.NULL=new Xs,e.\u0275prov=de({token:e,providedIn:"any",factory:()=>Xn(Zs)}),e.__NG_ELEMENT_ID__=-1,e})();function fr(e,t){nn(di(e)[1],Pt())}function mr(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const i=[e];for(;t;){let s;if(st(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");s=t.\u0275dir}if(s){if(n){i.push(s);const t=e;t.inputs=gr(e.inputs),t.declaredInputs=gr(e.declaredInputs),t.outputs=gr(e.outputs);const n=s.hostBindings;n&&br(e,n);const r=s.viewQuery,o=s.contentQueries;if(r&&yr(e,r),o&&vr(e,o),te(e.inputs,s.inputs),te(e.declaredInputs,s.declaredInputs),te(e.outputs,s.outputs),st(s)&&s.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(s.data.animation)}}const t=s.features;if(t)for(let i=0;i<t.length;i++){const s=t[i];s&&s.ngInherit&&s(e),s===mr&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const s=e[i];s.hostVars=t+=s.hostVars,s.hostAttrs=dn(s.hostAttrs,n=dn(n,s.hostAttrs))}}(i)}function gr(e){return e===Ne?{}:e===Re?[]:e}function yr(e,t){const n=e.viewQuery;e.viewQuery=n?(e,i)=>{t(e,i),n(e,i)}:t}function vr(e,t){const n=e.contentQueries;e.contentQueries=n?(e,i,s)=>{t(e,i,s),n(e,i,s)}:t}function br(e,t){const n=e.hostBindings;e.hostBindings=n?(e,i)=>{t(e,i),n(e,i)}:t}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */let wr=null;function Cr(){if(!wr){const e=De.Symbol;if(e&&e.iterator)wr=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(wr=n)}}}return wr}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class _r{constructor(e){this.wrapped=e}static wrap(e){return new _r(e)}static unwrap(e){return _r.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof _r}}function xr(e){return!!Sr(e)&&(Array.isArray(e)||!(e instanceof Map)&&Cr()in e)}function Sr(e){return null!==e&&("function"==typeof e||"object"==typeof e)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Er(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ir(e,t,n,i){const s=Er(e,t,n);return Er(e,t+1,i)||s}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Tr(e,t,n,i){const s=kt();return Er(s,Vt(),t)&&(Ot(),function(e,t,n,i,s,r){const o=yt(e,t);!function(e,t,n,i,s,r,o){if(null==r)pt(e)?e.removeAttribute(t,s,n):t.removeAttribute(s);else{const a=null==o?ue(r):o(r,i||"",s);pt(e)?e.setAttribute(t,s,a,n):n?t.setAttributeNS(n,s,a):t.setAttribute(s,a)}}(t[11],o,r,e.value,n,i,s)}(tn(),s,e,t,n,i)),Tr}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function kr(e,t,n,i){return Er(e,Vt(),n)?t+ue(n)+i:ts}function Or(e,t,n,i,s,r){const o=Ir(e,Bt(),n,s);return qt(2),o?t+ue(n)+i+ue(s)+r:ts}function Ar(e,t,n,i,s,r,o,a){const l=kt(),u=Ot(),c=e+20,h=u.firstCreatePass?
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
function(e,t,n,i,s,r,o,a,l){const u=t.consts,c=ds(t,e,4,o||null,xt(u,a));Is(t,n,c,xt(u,l)),nn(t,c);const h=c.tViews=_s(2,c,i,s,r,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u);return null!==t.queries&&(t.queries.template(t,c),h.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,i,s,r,o):u.data[c];Nt(h,!1);const d=l[11].createComment("");Mi(u,l,d,h),hi(d,l),qs(l,l[c]=Ms(d,l,d,h)),it(h)&&bs(u,l,h),null!=o&&ws(l,h,a)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Pr(e){return bt(It.lFrame.contextLView,20+e)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Dr(e,t=Ce.Default){const n=kt();return null===n?Xn(e,t):Tn(Pt(),n,oe(e),t)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Nr(e,t,n){const i=kt();return Er(i,Vt(),t)&&Es(Ot(),tn(),i,e,t,i[11],n,!1),Nr}function Rr(e,t,n,i,s){const r=s?"class":"style";Ys(e,n,t.inputs[r],r,i)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Fr(e,t,n,i){const s=kt(),r=Ot(),o=20+e,a=s[11],l=s[o]=Ti(a,t,It.lFrame.currentNamespace),u=r.firstCreatePass?function(e,t,n,i,s,r,o){const a=t.consts,l=ds(t,e,2,s,xt(a,r));return Is(t,n,l,xt(a,o)),null!==l.attrs&&Js(l,l.attrs,!1),null!==l.mergedAttrs&&Js(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(o,r,s,0,t,n,i):r.data[o];Nt(u,!0);const c=u.mergedAttrs;null!==c&&cn(a,l,c);const h=u.classes;null!==h&&Hi(a,l,h);const d=u.styles;null!==d&&$i(a,l,d),64!=(64&u.flags)&&Mi(r,s,l,u),0===It.lFrame.elementDepthCount&&hi(l,s),It.lFrame.elementDepthCount++,it(u)&&(bs(r,s,u),vs(r,u,s)),null!==i&&ws(s,u)}function Mr(){let e=Pt();Rt()?Ft():(e=e.parent,Nt(e,!1));const t=e;It.lFrame.elementDepthCount--;const n=Ot();n.firstCreatePass&&(nn(n,e),tt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Rr(n,t,kt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */(t)&&Rr(n,t,kt(),t.stylesWithoutHost,!1)}function Lr(e,t,n,i){Fr(e,t,n,i),Mr()}function Br(e,t,n){const i=kt(),s=Ot(),r=e+20,o=s.firstCreatePass?
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
function(e,t,n,i,s){const r=t.consts,o=xt(r,i),a=ds(t,e,8,"ng-container",o);return null!==o&&Js(a,o,!0),Is(t,n,a,xt(r,s)),null!==t.queries&&t.queries.elementStart(t,a),a}(r,s,i,t,n):s.data[r];Nt(o,!0);const a=i[r]=i[11].createComment("");Mi(s,i,a,o),hi(a,i),it(o)&&(bs(s,i,o),vs(s,o,i)),null!=n&&ws(i,o)}function Vr(){let e=Pt();const t=Ot();Rt()?Ft():(e=e.parent,Nt(e,!1)),t.firstCreatePass&&(nn(t,e),tt(e)&&t.queries.elementEnd(e))}function qr(){return kt()}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function jr(e){return!!e&&"function"==typeof e.then}function Qr(e){return!!e&&"function"==typeof e.subscribe}const $r=Qr;
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Hr(e,t,n,i){const s=kt(),r=Ot(),o=Pt();return function(e,t,n,i,s,r,o,a){const l=it(i),u=e.firstCreatePass&&Gs(e),c=Ws(t);let h=!0;if(3&i.type||a){const d=yt(i,t),p=a?a(d):d,f=c.length,m=a?e=>a(mt(e[i.index])):i.index;if(pt(n)){let o=null;if(!a&&l&&(o=function(e,t,n,i){const s=e.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const e=s[r];if(e===n&&s[r+1]===i){const e=t[7],n=s[r+2];return e.length>n?e[n]:null}"string"==typeof e&&(r+=2)}return null}(e,t,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,h=!1;else{r=Wr(i,t,0,r,!1);const e=n.listen(p,s,r);c.push(r,e),u&&u.push(s,m,f,f+1)}}else r=Wr(i,t,0,r,!0),p.addEventListener(s,r,o),c.push(r),u&&u.push(s,m,f,o)}else r=Wr(i,t,0,r,!1);const d=i.outputs;let p;if(h&&null!==d&&(p=d[s])){const e=p.length;if(e)for(let n=0;n<e;n+=2){const e=t[p[n]][p[n+1]].subscribe(r),o=c.length;c.push(r,e),u&&u.push(s,i.index,o,-(o+1))}}}(r,s,s[11],o,e,t,!!n,i),Hr}function Ur(e,t,n,i){try{return!1!==n(i)}catch(s){return zs(e,s),!1}}function Wr(e,t,n,i,s){return function n(r){if(r===Function)return i;const o=2&e.flags?wt(e.index,t):t;0==(32&t[2])&&js(o);let a=Ur(t,0,i,r),l=n.__ngNextListenerFn__;for(;l;)a=Ur(t,0,l,r)&&a,l=l.__ngNextListenerFn__;return s&&!1===a&&(r.preventDefault(),r.returnValue=!1),a
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}}function Gr(e=1){return function(e){return(It.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,It.lFrame.contextLView))[8]}(e)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function zr(e,t,n){return Yr(e,"",t,"",n),zr}function Yr(e,t,n,i,s){const r=kt(),o=kr(r,t,n,i);return o!==ts&&Es(Ot(),tn(),r,e,o,r[11],s,!1),Yr}function Kr(e,t,n,i,s,r,o){const a=kt(),l=Or(a,t,n,i,s,r);return l!==ts&&Es(Ot(),tn(),a,e,l,a[11],o,!1),Kr}function Jr(e,t,n,i,s){const r=e[n+1],o=null===t;let a=i?rs(r):as(r),l=!1;for(;0!==a&&(!1===l||o);){const n=e[a+1];Zr(e[a],t)&&(l=!0,e[a+1]=i?us(n):os(n)),a=i?rs(n):as(n)}l&&(e[n+1]=i?os(r):us(r))}function Zr(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Wn(e,t)>=0}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const Xr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function eo(e){return e.substring(Xr.key,Xr.keyEnd)}function to(e,t){const n=Xr.textEnd;return n===t?-1:(t=Xr.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Xr.key=t,n),no(e,t,n))}function no(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function io(e,t){return function(e,t,n,i){const s=kt(),r=Ot(),o=qt(2);r.firstUpdatePass&&lo(r,e,o,true),t!==ts&&Er(s,o,t)&&ho(r,r.data[Xt()],s,s[11],e,s[o+1]=function(e,t){return null==e||"object"==typeof e&&(e=ne(oi(e))),e}(t),true,o)}(e,t),io}function so(e){oo(Hn,ro,e,!0)}function ro(e,t){for(let n=function(e){return function(e){Xr.key=0,Xr.keyEnd=0,Xr.value=0,Xr.valueEnd=0,Xr.textEnd=e.length}(e),to(e,no(e,0,Xr.textEnd))}(t);n>=0;n=to(t,n))Hn(e,eo(t),!0)}function oo(e,t,n,i){const s=Ot(),r=qt(2);s.firstUpdatePass&&lo(s,null,r,i);const o=kt();if(n!==ts&&Er(o,r,n)){const a=s.data[Xt()];if(mo(a,i)&&!ao(s,r)){let e=i?a.classesWithoutHost:a.stylesWithoutHost;null!==e&&(n=ie(e,n||"")),Rr(s,a,o,n,i)}else!function(e,t,n,i,s,r,o,a){s===ts&&(s=Re);let l=0,u=0,c=0<s.length?s[0]:null,h=0<r.length?r[0]:null;for(;null!==c||null!==h;){const d=l<s.length?s[l+1]:void 0,p=u<r.length?r[u+1]:void 0;let f,m=null;c===h?(l+=2,u+=2,d!==p&&(m=h,f=p)):null===h||null!==c&&c<h?(l+=2,m=c):(u+=2,m=h,f=p),null!==m&&ho(e,t,n,i,m,f,o,a),c=l<s.length?s[l]:null,h=u<r.length?r[u]:null}}(s,a,o,o[11],o[r+1],o[r+1]=function(e,t,n){if(null==n||""===n)return Re;const i=[],s=oi(n);if(Array.isArray(s))for(let r=0;r<s.length;r++)e(i,s[r],!0);else if("object"==typeof s)for(const r in s)s.hasOwnProperty(r)&&e(i,r,s[r]);else"string"==typeof s&&t(i,s);return i}(e,t,n),i,r)}}function ao(e,t){return t>=e.expandoStartIndex}function lo(e,t,n,i){const s=e.data;if(null===s[n+1]){const r=s[Xt()],o=ao(e,n);mo(r,i)&&null===t&&!o&&(t=!1),t=function(e,t,n,i){const s=function(e){const t=It.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let r=i?t.residualClasses:t.residualStyles;if(null===s)0===(i?t.classBindings:t.styleBindings)&&(n=co(n=uo(null,e,t,n,i),t.attrs,i),r=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==s)if(n=uo(s,e,t,n,i),null===r){let n=function(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==as(i))return e[rs(i)]}(e,t,i);void 0!==n&&Array.isArray(n)&&(n=uo(null,e,t,n[1],i),n=co(n,t.attrs,i),function(e,t,n,i){e[rs(n?t.classBindings:t.styleBindings)]=i}(e,t,i,n))}else r=function(e,t,n){let i;const s=t.directiveEnd;for(let r=1+t.directiveStylingLast;r<s;r++)i=co(i,e[r].hostAttrs,n);return co(i,t.attrs,n)}(e,t,i)}return void 0!==r&&(i?t.residualClasses=r:t.residualStyles=r),n}(s,r,t,i),function(e,t,n,i,s,r){let o=r?t.classBindings:t.styleBindings,a=rs(o),l=as(o);e[i]=n;let u,c=!1;if(Array.isArray(n)){const e=n;u=e[1],(null===u||Wn(e,u)>0)&&(c=!0)}else u=n;if(s)if(0!==l){const t=rs(e[a+1]);e[i+1]=ss(t,a),0!==t&&(e[t+1]=ls(e[t+1],i)),e[a+1]=131071&e[a+1]|i<<17}else e[i+1]=ss(a,0),0!==a&&(e[a+1]=ls(e[a+1],i)),a=i;else e[i+1]=ss(l,0),0===a?a=i:e[l+1]=ls(e[l+1],i),l=i;c&&(e[i+1]=os(e[i+1])),Jr(e,u,i,!0),Jr(e,u,i,!1),function(e,t,n,i,s){const r=s?e.residualClasses:e.residualStyles;null!=r&&"string"==typeof t&&Wn(r,t)>=0&&(n[i+1]=us(n[i+1]))}(t,u,e,i,r),o=ss(a,l),r?t.classBindings=o:t.styleBindings=o}(s,r,t,n,o,i)}}function uo(e,t,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=t[a],i=co(i,r.hostAttrs,s),r!==e);)a++;return null!==e&&(n.directiveStylingLast=a),i}function co(e,t,n){const i=n?1:2;let s=-1;if(null!==t)for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?s=o:s===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Hn(e,o,!!n||t[++r]))}return void 0===e?null:e}function ho(e,t,n,i,s,r,o,a){if(!(3&t.type))return;const l=e.data,u=l[a+1];fo(1==(1&u)?po(l,t,n,s,as(u),o):void 0)||(fo(r)||2==(2&u)&&(r=po(l,null,n,s,a,o)),function(e,t,n,i,s){const r=pt(e);if(t)s?r?e.addClass(n,i):n.classList.add(i):r?e.removeClass(n,i):n.classList.remove(i);else{let t=-1===i.indexOf("-")?void 0:wi.DashCase;if(null==s)r?e.removeStyle(n,i,t):n.style.removeProperty(i);else{const o="string"==typeof s&&s.endsWith("!important");o&&(s=s.slice(0,-10),t|=wi.Important),r?e.setStyle(n,i,s,t):n.style.setProperty(i,s,o?"important":"")}}}(i,o,gt(Xt(),n),s,r))}function po(e,t,n,i,s,r){const o=null===t;let a;for(;s>0;){const t=e[s],r=Array.isArray(t),l=r?t[1]:t,u=null===l;let c=n[s+1];c===ts&&(c=u?Re:void 0);let h=u?Un(c,i):l===i?c:void 0;if(r&&!fo(h)&&(h=Un(t,i)),fo(h)&&(a=h,o))return a;const d=e[s+1];s=o?rs(d):as(d)}if(null!==t){let e=r?t.residualClasses:t.residualStyles;null!=e&&(a=Un(e,i))}return a}function fo(e){return void 0!==e}function mo(e,t){return 0!=(e.flags&(t?16:32))}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function go(e,t=""){const n=kt(),i=Ot(),s=e+20,r=i.firstCreatePass?ds(i,s,1,t,null):i.data[s],o=n[s]=function(e,t){return pt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Mi(i,n,o,r),Nt(r,!1)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function yo(e){return vo("",e,""),yo}function vo(e,t,n){const i=kt(),s=kr(i,e,t,n);return s!==ts&&Ks(i,Xt(),s),vo}function bo(e,t,n,i,s){const r=kt(),o=Or(r,e,t,n,i,s);return o!==ts&&Ks(r,Xt(),o),bo}function wo(e,t,n,i,s,r,o){const a=kt(),l=function(e,t,n,i,s,r,o,a){const l=function(e,t,n,i,s){const r=Ir(e,t,n,i);return Er(e,t+2,s)||r}(e,Bt(),n,s,o);return qt(3),l?t+ue(n)+i+ue(s)+r+ue(o)+a:ts}(a,e,t,n,i,s,r,o);return l!==ts&&Ks(a,Xt(),l),wo}function Co(e,t,n,i,s,r,o,a,l){const u=kt(),c=function(e,t,n,i,s,r,o,a,l,u){const c=function(e,t,n,i,s,r){const o=Ir(e,t,n,i);return Ir(e,t+2,s,r)||o}(e,Bt(),n,s,o,l);return qt(4),c?t+ue(n)+i+ue(s)+r+ue(o)+a+ue(l)+u:ts}(u,e,t,n,i,s,r,o,a,l);return c!==ts&&Ks(u,Xt(),c),Co}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function _o(e,t,n){oo(Hn,ro,kr(kt(),e,t,n),!0)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function xo(e,t,n){const i=kt();return Er(i,Vt(),t)&&Es(Ot(),tn(),i,e,t,i[11],n,!0),xo}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const So=void 0;var Eo=["en",[["a","p"],["AM","PM"],So],[["AM","PM"],So,So],[["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"]],So,[["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"]],So,[["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}",So,"{1} 'at' {0}",So],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */let Io={};function To(e){return e in Io||(Io[e]=De.ng&&De.ng.common&&De.ng.common.locales&&De.ng.common.locales[e]),Io[e]}var ko=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */let Oo="en-US";function Ao(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e} [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(Oo=e.toLowerCase().replace(/_/g,"-"))}function Po(e,t,n,i,s){if(e=oe(e),Array.isArray(e))for(let r=0;r<e.length;r++)Po(e[r],t,n,i,s);else{const r=Ot(),o=kt();let a=hr(e)?e:oe(e.provide),l=lr(e);const u=Pt(),c=1048575&u.providerIndexes,h=u.directiveStart,d=u.providerIndexes>>20;if(hr(e)||!e.multi){const i=new un(l,s,Dr),p=Ro(a,t,s?c:c+d,h);-1===p?(Sn(wn(u,o),r,a),Do(r,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=Ro(a,t,c+d,h),f=Ro(a,t,c,c+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){Sn(wn(u,o),r,a);const c=function(e,t,n,i,s){const r=new un(e,n,Dr);return r.multi=[],r.index=t,r.componentProviders=0,No(r,s,i&&!n),r}(s?Mo:Fo,n.length,s,i,l);!s&&g&&(n[f].providerFactory=c),Do(r,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),n.push(c),o.push(c)}else Do(r,e,p>-1?p:f,No(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function Do(e,t,n,i){const s=hr(t);if(s||t.useClass){const r=(t.useClass||t).prototype.ngOnDestroy;if(r){const o=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const e=o.indexOf(n);-1===e?o.push(n,[i,r]):o[e+1].push(i,r)}else o.push(n,r)}}}function No(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ro(e,t,n,i){for(let s=n;s<i;s++)if(t[s]===e)return s;return-1}function Fo(e,t,n,i){return Lo(this.multi,[])}function Mo(e,t,n,i){const s=this.multi;let r;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=Dn(n,n[1],this.providerFactory.index,i);r=t.slice(0,e),Lo(s,r);for(let n=e;n<t.length;n++)r.push(t[n])}else r=[],Lo(s,r);return r}function Lo(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Bo(e,t=[]){return n=>{n.providersResolver=(n,i)=>
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
function(e,t,n){const i=Ot();if(i.firstCreatePass){const s=st(e);Po(n,i.data,i.blueprint,s,!0),Po(t,i.data,i.blueprint,s,!1)}}(n,i?i(e):e,t)}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class Vo{}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class qo{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${ne(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let jo=(()=>{class e{}return e.NULL=new qo,e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Qo(...e){}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function $o(e,t){return new Uo(yt(e,t))}const Ho=function(){return $o(Pt(),kt())};let Uo=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=Ho,e})();function Wo(e){return e instanceof Uo?e.nativeElement:e}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class Go{}let zo=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Yo(),e})();const Yo=function(){const e=kt(),t=wt(Pt().index,e);return function(e){return e[11]}(Xe(t)?t:e)};let Ko=(()=>{class e{}return e.\u0275prov=de({token:e,providedIn:"root",factory:()=>null}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class Jo{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Zo=new Jo("12.0.4");
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class Xo{constructor(){}supports(e){return xr(e)}create(e){return new ta(e)}}const ea=(e,t)=>t;class ta{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||ea}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,i=0,s=null;for(;t||n;){const r=!n||t&&t.currentIndex<ra(n,i,s)?t:n,o=ra(r,i,s),a=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(t=t._next,null==r.previousIndex)i++;else{s||(s=[]);const e=o-i,t=a-i;if(e!=t){for(let n=0;n<e;n++){const i=n<s.length?s[n]:s[n]=0,r=i+n;t<=r&&r<e&&(s[n]=i+1)}s[r.previousIndex]=t-e}}o!==a&&e(r,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!xr(e))throw new Error(`Error trying to diff '${ne(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,i,s=this._itHead,r=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],i=this._trackByFn(t,n),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,n,i,t)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,i,t),r=!0),s=s._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Cr()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(e,e=>{i=this._trackByFn(t,e),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,e,i,t)),Object.is(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,i,t),r=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,i){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,i)):e=this._addAfter(new na(t,n),s,i),e}_verifyReinsertion(e,t,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,s=e._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new sa),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new sa),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class na{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ia{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class sa{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new ia,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ra(e,t,n){const i=e.previousIndex;if(null===i)return i;let s=0;return n&&i<n.length&&(s=n[i]),i+t+s}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class oa{constructor(){}supports(e){return e instanceof Map||Sr(e)}create(){return new aa}}class aa{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(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Sr(e)))throw new Error(`Error trying to diff '${ne(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new la(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class la{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}}function ua(){return new ca([new Xo])}let ca=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||ua()),deps:[[e,new si,new ii]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n;
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}}return e.\u0275prov=de({token:e,providedIn:"root",factory:ua}),e})();function ha(){return new da([new oa])}let da=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||ha()),deps:[[e,new si,new ii]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=de({token:e,providedIn:"root",factory:ha}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function pa(e,t,n,i,s=!1){for(;null!==n;){const r=t[n.index];if(null!==r&&i.push(mt(r)),et(r))for(let e=10;e<r.length;e++){const t=r[e],n=t[1].firstChild;null!==n&&pa(t[1],t,n,i)}const o=n.type;if(8&o)pa(e,t,n.child,i);else if(32&o){const e=Ci(n,t);let s;for(;s=e();)i.push(s)}else if(16&o){const e=Bi(t,n);if(Array.isArray(e))i.push(...e);else{const n=_i(t[16]);pa(n[1],n,e,i,!0)}}n=s?n.projectionNext:n.next}return i}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class fa{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return pa(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(et(e)){const t=e[8],n=t?t.indexOf(this):-1;n>-1&&(Oi(e,n),$n(t,n))}this._attachedToViewContainer=!1}Ai(this._lView[1],this._lView)}onDestroy(e){xs(this._lView[1],this._lView,null,e)}markForCheck(){js(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Qs(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Lt(!0);try{Qs(e,t,n)}finally{Lt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e;this._appRef=null,ji(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class ma extends fa{constructor(e){super(e),this._view=e}detectChanges(){$s(this._view)}checkNoChanges(){!function(e){Lt(!0);try{$s(e)}finally{Lt(!1)}}(this._view)}get context(){return null}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const ga=function(e){return function(e,t,n){if(nt(e)&&!n){const n=wt(e.index,t);return new fa(n,n)}return 47&e.type?new fa(t[16],t):null}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */(Pt(),kt(),16==(16&e))};let ya=(()=>{class e{}return e.__NG_ELEMENT_ID__=ga,e})();const va=[new oa],ba=new ca([new Xo]),wa=new da(va),Ca=function(){return Ea(Pt(),kt())};let _a=(()=>{class e{}return e.__NG_ELEMENT_ID__=Ca,e})();const xa=_a,Sa=class extends xa{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=hs(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),fs(t,n,e),new fa(n)}};function Ea(e,t){return 4&e.type?new Sa(t,e,$o(e,t)):null}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class Ia{}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const Ta=function(){return Na(Pt(),kt())};let ka=(()=>{class e{}return e.__NG_ELEMENT_ID__=Ta,e})();const Oa=ka,Aa=class extends Oa{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return $o(this._hostTNode,this._hostLView)}get injector(){return new Fn(this._hostTNode,this._hostLView)}get parentInjector(){const e=xn(this._hostTNode,this._hostLView);if(fn(e)){const t=gn(e,this._hostLView),n=mn(e);return new Fn(t[1].data[n+8],t)}return new Fn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Pa(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){const i=e.createEmbeddedView(t||{});return this.insert(i,n),i}createComponent(e,t,n,i,s){const r=n||this.parentInjector;if(!s&&null==e.ngModule&&r){const e=r.get(Ia,null);e&&(s=e)}const o=e.create(r,i,void 0,s);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,i=n[1];if(et(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],i=new Aa(t,t[6],t[3]);i.detach(i.indexOf(e))}}const s=this._adjustIndex(t),r=this._lContainer;!function(e,t,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=t),i<r-10?(t[4]=n[s],Qn(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(i,n,r,s);const o=Vi(s,r),a=n[11],l=Fi(a,r[7]);return null!==l&&function(e,t,n,i,s,r){i[0]=s,i[6]=t,ji(e,i,n,1,s,r)}(i,r[6],a,n,l,o),e.attachToViewContainerRef(),Qn(Da(r),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=Pa(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=Oi(this._lContainer,t);n&&($n(Da(this._lContainer),t),Ai(n[1],n))}detach(e){const t=this._adjustIndex(e,-1),n=Oi(this._lContainer,t);return n&&null!=$n(Da(this._lContainer),t)?new fa(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function Pa(e){return e[8]}function Da(e){return e[8]||(e[8]=[])}function Na(e,t){let n;const i=t[e.index];if(et(i))n=i;else{let s;if(8&e.type)s=mt(i);else{const n=t[11];s=n.createComment("");const i=yt(e,t);Di(n,Fi(n,i),s,function(e,t){return pt(e)?e.nextSibling(t):t.nextSibling}(n,i),!1)}t[e.index]=n=Ms(i,t,s,e),qs(t,n)}return new Aa(n,e,t)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const Ra={};
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class Fa extends jo{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Je(e);return new Ba(t,this.ngModule)}}function Ma(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const La=new Vn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>yi});class Ba extends Vo{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(es).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Ma(this.componentDef.inputs)}get outputs(){return Ma(this.componentDef.outputs)}create(e,t,n,i){const s=(i=i||this.ngModule)?function(e,t){return{get:(n,i,s)=>{const r=e.get(n,Ra,s);return r!==Ra||i===Ra?r:t.get(n,i,s)}}}(e,i.injector):e,r=s.get(Go,ft),o=s.get(Ko,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=n?function(e,t,n){if(pt(e))return e.selectRootElement(t,n===Te.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Ti(r.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),c=this.componentDef.onPush?576:528,h={components:[],scheduler:yi,clean:Us,playerHandler:null,flags:0},d=_s(0,null,null,1,0,null,null,null,null,null),p=hs(null,d,h,c,null,null,r,a,o,s);let f,m;Gt(p);try{const e=function(e,t,n,i,s,r){const o=n[1];n[20]=e;const a=ds(o,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(Js(a,l,!0),null!==e&&(cn(s,e,l),null!==a.classes&&Hi(s,e,a.classes),null!==a.styles&&$i(s,e,a.styles)));const u=i.createRenderer(e,t),c=hs(n,Cs(t),null,t.onPush?64:16,n[20],a,i,u,null,null);return o.firstCreatePass&&(Sn(wn(a,n),o,t.type),Os(o,a),Ps(a,n.length,1)),qs(n,c),n[20]=c}(u,this.componentDef,p,r,a);if(u)if(n)cn(a,u,["ng-version",Zo.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let i=1,s=2;for(;i<e.length;){let r=e[i];if("string"==typeof r)2===s?""!==r&&t.push(r,e[++i]):8===s&&n.push(r);else{if(!Ki(s))break;s=r}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&cn(a,u,e),t&&t.length>0&&Hi(a,u,t.join(" "))}if(m=vt(d,20),void 0!==t){const e=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=t[n];e.push(null!=i?Array.from(i):null)}}f=function(e,t,n,i,s){const r=n[1],o=function(e,t,n){const i=Pt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Ds(e,i,t,ps(e,t,1,null),n));const s=Dn(t,e,i.directiveStart,i);hi(s,t);const r=yt(i,t);return r&&hi(r,t),s}(r,n,t);if(i.components.push(o),e[8]=o,s&&s.forEach(e=>e(o,t)),t.contentQueries){const e=Pt();t.contentQueries(1,o,e.directiveStart)}const a=Pt();return!r.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(en(a.index),Ts(n[1],a,0,a.directiveStart,a.directiveEnd,t),ks(t,o)),o}(e,this.componentDef,p,h,[fr]),fs(d,p,null)}finally{Zt()}return new Va(this.componentType,f,$o(m,p),p,m)}}class Va extends class{}{constructor(e,t,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new ma(i),this.componentType=e}get injector(){return new Fn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const qa=new Map;
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class ja extends Ia{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Fa(this);const n=Ze(e),i=e[Ve]||null;i&&Ao(i),this._bootstrapComponents=bi(n.bootstrap),this._r3Injector=rr(e,t,[{provide:Ia,useValue:this},{provide:jo,useValue:this.componentFactoryResolver}],ne(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=pr.THROW_IF_NOT_FOUND,n=Ce.Default){return e===pr||e===Ia||e===Zs?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Qa extends class{}{constructor(e){super(),this.moduleType=e,null!==Ze(e)&&function(e){const t=new Set;!function e(n){const i=Ze(n,!0),s=i.id;null!==s&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${ne(t)} vs ${ne(t.name)}`)}(s,qa.get(s),n),qa.set(s,n));const r=bi(i.imports);for(const o of r)t.has(o)||(t.add(o),e(o))}(e)}(e)}create(e){return new ja(this.moduleType,e)}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function $a(e,t){const n=Ot();let i;const s=e+20;n.firstCreatePass?(i=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}throw new le("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=rt(i.type)),o=xe(Dr);try{const e=vn(!1),t=r();return vn(e),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,kt(),s,t),t}finally{xe(o)}}function Ha(e,t,n){const i=e+20,s=kt(),r=bt(s,i);return function(e,t){return _r.isWrapped(t)&&(t=_r.unwrap(t),e[Bt()]=ts),t}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */(s,function(e,t){return e[1].data[t].pure}(s,i)?function(e,t,n,i,s,r){const o=t+n;return Er(e,o,s)?function(e,t,n){return e[t]=n}(e,o+1,r?i.call(r,s):i(s)):function(e,t){const n=e[t];return n===ts?void 0:n}(e,o+1)}(s,function(){const e=It.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),t,r.transform,n,r):r.transform(n))}function Ua(e){return t=>{setTimeout(e,void 0,t)}}const Wa=class extends x{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){var i,s,r;let o=e,a=t||(()=>null),l=n;if(e&&"object"==typeof e){const t=e;o=null===(i=t.next)||void 0===i?void 0:i.bind(t),a=null===(s=t.error)||void 0===s?void 0:s.bind(t),l=null===(r=t.complete)||void 0===r?void 0:r.bind(t)}this.__isAsync&&(a=Ua(a),o&&(o=Ua(o)),l&&(l=Ua(l)));const u=super.subscribe({next:o,error:a,complete:l});return e instanceof h&&e.add(u),u}};
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Ga(){return this._results[Cr()]()}class za{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Cr(),n=za.prototype;n[t]||(n[t]=Ga)}get changes(){return this._changes||(this._changes=new Wa)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;const n=qn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let s=e[i],r=t[i];if(n&&(s=n(s),r=n(r)),r!==s)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}}class Ya{constructor(e){this.queryList=e,this.matches=null}clone(){return new Ya(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ka{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,i=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);i.push(this.queries[n.indexInDeclarationView].clone())}return new Ka(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==rl(e,t).matches&&this.queries[t].setDirty()}}class Ja{constructor(e,t,n=null){this.predicate=e,this.flags=t,this.read=n}}class Za{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const i=null!==t?t.length:0,s=this.getByIndex(n).embeddedTView(e,i);s&&(s.indexInDeclarationView=n,null!==t?t.push(s):t=[s])}return null!==t?new Za(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Xa{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Xa(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const s=n[i];this.matchTNodeWithReadOption(e,t,el(t,s)),this.matchTNodeWithReadOption(e,t,Pn(t,e,s,!1,!1))}else n===_a?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Pn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===Uo||i===ka||i===_a&&4&t.type)this.addMatch(t.index,-2);else{const n=Pn(t,e,i,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function el(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function tl(e,t,n,i){return-1===n?function(e,t){return 11&e.type?$o(e,t):4&e.type?Ea(e,t):null}(t,e):-2===n?function(e,t,n){return n===Uo?$o(t,e):n===_a?Ea(t,e):n===ka?Na(t,e):void 0}(e,t,i):Dn(e,e[1],n,t)}function nl(e,t,n,i){const s=t[19].queries[i];if(null===s.matches){const i=e.data,r=n.matches,o=[];for(let e=0;e<r.length;e+=2){const s=r[e];o.push(s<0?null:tl(t,i[s],r[e+1],n.metadata.read))}s.matches=o}return s.matches}function il(e,t,n,i){const s=e.queries.getByIndex(n),r=s.matches;if(null!==r){const o=nl(e,t,s,n);for(let e=0;e<r.length;e+=2){const n=r[e];if(n>0)i.push(o[e/2]);else{const s=r[e+1],o=t[-n];for(let e=10;e<o.length;e++){const t=o[e];t[17]===t[3]&&il(t[1],t,s,i)}if(null!==o[9]){const e=o[9];for(let t=0;t<e.length;t++){const n=e[t];il(n[1],n,s,i)}}}}}return i}function sl(e){const t=kt(),n=Ot(),i=$t();Ht(i+1);const s=rl(n,i);if(e.dirty&&Ct(t)===(2==(2&s.metadata.flags))){if(null===s.matches)e.reset([]);else{const r=s.crossesNgTemplate?il(n,t,i,[]):nl(n,t,s,i);e.reset(r,Wo),e.notifyOnChanges()}return!0}return!1}function rl(e,t){return e.queries.getByIndex(t)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function ol(e,t){return Ea(e,t)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const al=new Vn("Application Initializer");let ll=(()=>{class e{constructor(e){this.appInits=e,this.resolve=Qo,this.reject=Qo,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();if(jr(t))e.push(t);else if($r(t)){const n=new Promise((e,n)=>{t.subscribe({complete:e,error:n})});e.push(n)}}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(Xn(al,8))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const ul=new Vn("AppId"),cl={provide:ul,useFactory:function(){return`${hl()}${hl()}${hl()}`},deps:[]};function hl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const dl=new Vn("Platform Initializer"),pl=new Vn("Platform ID"),fl=new Vn("appBootstrapListener");let ml=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const gl=new Vn("LocaleId"),yl=new Vn("DefaultCurrencyCode");
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class vl{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const bl=function(e){return new Qa(e)},wl=bl,Cl=function(e){return Promise.resolve(bl(e))},_l=function(e){const t=bl(e),n=bi(Ze(e).declarations).reduce((e,t)=>{const n=Je(t);return n&&e.push(new Ba(n)),e},[]);return new vl(t,n)},xl=_l,Sl=function(e){return Promise.resolve(_l(e))};let El=(()=>{class e{constructor(){this.compileModuleSync=wl,this.compileModuleAsync=Cl,this.compileModuleAndAllComponentsSync=xl,this.compileModuleAndAllComponentsAsync=Sl}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const Il=(()=>Promise.resolve(0))();function Tl(e){"undefined"==typeof Zone?Il.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class kl{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Wa(!1),this.onMicrotaskEmpty=new Wa(!1),this.onStable=new Wa(!1),this.onError=new Wa(!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.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!n&&t,this.shouldCoalesceRunChangeDetection=n,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=De.requestAnimationFrame,t=De.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(De,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Pl(e),e.isCheckStableRunning=!0,Al(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Pl(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,r,o,a)=>{try{return Dl(e),n.invokeTask(s,r,o,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||e.shouldCoalesceRunChangeDetection)&&t(),Nl(e)}},onInvoke:(n,i,s,r,o,a,l)=>{try{return Dl(e),n.invoke(s,r,o,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),Nl(e)}},onHasTask:(t,n,i,s)=>{t.hasTask(i,s),n===i&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Pl(e),Al(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,n,i,s)=>(t.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!kl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(kl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,e,Ol,Qo,Qo);try{return s.runTask(r,t,n)}finally{s.cancelTask(r)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const Ol={};function Al(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Pl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Dl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Nl(e){e._nesting--,Al(e)}class Rl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Wa,this.onMicrotaskEmpty=new Wa,this.onStable=new Wa,this.onError=new Wa}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,i){return e.apply(t,n)}}let Fl=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{kl.assertNotInAngularZone(),Tl(()=>{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())Tl(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let i=-1;t&&t>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==i),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(Xn(kl))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),Ml=(()=>{class e{constructor(){this._applications=new Map,Vl.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Vl.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();class Ll{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let Bl,Vl=new Ll,ql=!0,jl=!1;
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const Ql=new Vn("AllowMultipleToken");function $l(e,t,n=[]){const i=`Platform: ${t}`,s=new Vn(i);return(t=[])=>{let r=Hl();if(!r||r.injector.get(Ql,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0},{provide:er,useValue:"platform"});!function(e){if(Bl&&!Bl.destroyed&&!Bl.injector.get(Ql,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Bl=e.get(Ul);const t=e.get(dl,null);t&&t.forEach(e=>e())}(pr.create({providers:e,name:i}))}return function(e){const t=Hl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(s)}}function Hl(){return Bl&&!Bl.destroyed?Bl:null}let Ul=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new Rl:("zone.js"===e?void 0:e)||new kl({enableLongStackTrace:(jl=!0,ql),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),i=[{provide:kl,useValue:n}];return n.run(()=>{const t=pr.create({providers:i,parent:this.injector,name:e.moduleType.name}),s=e.create(t),r=s.injector.get(gi,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{r.handleError(e)}});s.onDestroy(()=>{zl(this._modules,s),e.unsubscribe()})}),function(e,t,n){try{const i=n();return jr(i)?i.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(r,n,()=>{const e=s.injector.get(ll);return e.runInitializers(),e.donePromise.then(()=>(Ao(s.injector.get(gl,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Wl({},t);return function(e,t,n){const i=new Qa(n);return Promise.resolve(i)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Gl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${ne(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(Xn(pr))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();function Wl(e,t){return Array.isArray(t)?t.reduce(Wl,e):Object.assign(Object.assign({},e),t)}let Gl=(()=>{class e{constructor(e,t,n,i,s){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new v(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),o=new v(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{kl.assertNotInAngularZone(),Tl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{kl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,i=e[e.length-1];return E(i)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof i&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof v?e[0]:$(t)(H(e,n))}(r,o.pipe(e=>U()(J(X)(e))))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof Vo?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Ia),s=n.create(pr.NULL,[],t||n.selector,i),r=s.location.nativeElement,o=s.injector.get(Fl,null),a=o&&s.injector.get(Ml);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),zl(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;zl(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(fl,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(Xn(kl),Xn(pr),Xn(gi),Xn(jo),Xn(ll))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();function zl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Yl=$l(null,"core",[{provide:pl,useValue:"unknown"},{provide:Ul,deps:[pr]},{provide:Ml,deps:[]},{provide:ml,deps:[]}]),Kl=[{provide:Gl,useClass:Gl,deps:[kl,pr,gi,jo,ll]},{provide:La,deps:[kl],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:ll,useClass:ll,deps:[[new ii,al]]},{provide:El,useClass:El,deps:[]},cl,{provide:ca,useFactory:
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
function(){return ba},deps:[]},{provide:da,useFactory:function(){return wa},deps:[]},{provide:gl,useFactory:function(e){return Ao(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new ni(gl),new ii,new si]]},{provide:yl,useValue:"USD"}];let Jl=(()=>{class e{constructor(e){}}return e.\u0275fac=function(t){return new(t||e)(Xn(Gl))},e.\u0275mod=Ge({type:e}),e.\u0275inj=pe({providers:Kl}),e})(),Zl=null;function Xl(){return Zl}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const eu=new Vn("DocumentToken");
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */var tu=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({});
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class nu{}let iu=(()=>{class e extends nu{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */(e);let n=To(t);if(n)return n;const i=t.split("-")[0];if(n=To(i),n)return n;if("en"===i)return Eo;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[ko.PluralCase]}(t||this.locale)(e)){case tu.Zero:return"zero";case tu.One:return"one";case tu.Two:return"two";case tu.Few:return"few";case tu.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(Xn(gl))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function su(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[i,s]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(i.trim()===t)return decodeURIComponent(s)}return null}let ru=(()=>{class e{constructor(e,t,n,i){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(xr(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ne(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(Dr(ca),Dr(da),Dr(Uo),Dr(zo))},e.\u0275dir=Ye({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class ou{constructor(e,t,n,i){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let au=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch($f){throw new Error(`Cannot find a differ supporting object '${t}' of type '${e=t,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,i)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new ou(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new lu(e,n);t.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new lu(e,s);t.push(r)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=i,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(Dr(ka),Dr(_a),Dr(ca))},e.\u0275dir=Ye({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class lu{constructor(e,t){this.record=e,this.view=t}}let uu=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new cu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){hu("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){hu("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(Dr(ka),Dr(_a))},e.\u0275dir=Ye({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class cu{constructor(){this.$implicit=null,this.ngIf=null}}function hu(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ne(t)}'.`)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class du{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let pu=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ye({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),fu=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new du(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(Dr(ka),Dr(_a),Dr(pu,9))},e.\u0275dir=Ye({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),mu=(()=>{class e{constructor(e,t,n){n._addDefault(new du(e,t))}}return e.\u0275fac=function(t){return new(t||e)(Dr(ka),Dr(_a),Dr(pu,9))},e.\u0275dir=Ye({type:e,selectors:[["","ngSwitchDefault",""]]}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class gu{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class yu{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const vu=new yu,bu=new gu;let wu=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(jr(t))return vu;if(Qr(t))return bu;throw Error(`InvalidPipeArgument: '${t}' for pipe '${ne(e)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(Dr(ya,16))},e.\u0275pipe=Ke({name:"async",type:e,pure:!1}),e})(),Cu=(()=>{class e{constructor(e){this.differs=e,this.keyValues=[]}transform(e,t=_u){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const n=this.differ.diff(e);return n&&(this.keyValues=[],n.forEachItem(e=>{this.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(t)),this.keyValues}}return e.\u0275fac=function(t){return new(t||e)(Dr(da,16))},e.\u0275pipe=Ke({name:"keyvalue",type:e,pure:!1}),e})();function _u(e,t){const n=e.key,i=t.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;const s=String(n),r=String(i);return s==r?0:s<r?-1:1}let xu=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=pe({providers:[{provide:nu,useClass:iu}]}),e})(),Su=(()=>{class e{}return e.\u0275prov=de({token:e,providedIn:"root",factory:()=>new Eu(Xn(eu),window)}),e})();class Eu{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const e=i.shadowRoot;if(e){const n=e.getElementById(t)||e.querySelector(`[name="${t}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=Iu(this.window.history)||Iu(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch($f){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch($f){return!1}}}function Iu(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class Tu{}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class ku extends
/**
 * @license Angular v12.0.4
 * (c) 2010-2021 Google LLC. https://angular.io/
 * License: MIT
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var e;e=new ku,Zl||(Zl=e)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=(Au=Au||document.querySelector("base"),Au?Au.getAttribute("href"):null);return null==t?null:function(e){Ou=Ou||document.createElement("a"),Ou.setAttribute("href",e);const t=Ou.pathname;return"/"===t.charAt(0)?t:`/${t}`
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}(t)}resetBaseElement(){Au=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return su(document.cookie,e)}}let Ou,Au=null;const Pu=new Vn("TRANSITION_ID"),Du=[{provide:al,useFactory:function(e,t,n){return()=>{n.get(ll).donePromise.then(()=>{const n=Xl();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Pu,eu,pr],multi:!0}];
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class Nu{static init(){var e;e=new Nu,Vl=e}addToWindow(e){De.getAngularTestability=(t,n=!0)=>{const i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},De.getAllAngularTestabilities=()=>e.getAllTestabilities(),De.getAllAngularRootElements=()=>e.getAllRootElements(),De.frameworkStabilizers||(De.frameworkStabilizers=[]),De.frameworkStabilizers.push(e=>{const t=De.getAllAngularTestabilities();let n=t.length,i=!1;const s=function(t){i=i||t,n--,0==n&&e(i)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const i=e.getTestability(t);return null!=i?i:n?Xl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let Ru=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const Fu=new Vn("EventManagerPlugins");let Mu=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let i=0;i<n.length;i++){const t=n[i];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}return e.\u0275fac=function(t){return new(t||e)(Xn(Fu),Xn(kl))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();class Lu{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const i=Xl().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${t}`);return this.addEventListener(i,t,n)}}let Bu=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),Vu=(()=>{class e extends Bu{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,n){e.forEach(e=>{const i=this._doc.createElement("style");i.textContent=e,n.push(t.appendChild(i))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(qu),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,n)=>{this._addStylesToHost(e,n,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(qu))}}return e.\u0275fac=function(t){return new(t||e)(Xn(eu))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();function qu(e){Xl().remove(e)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const ju={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/"},Qu=/%COMP%/g;function $u(e,t,n){for(let i=0;i<t.length;i++){let s=t[i];Array.isArray(s)?$u(e,s,n):(s=s.replace(Qu,e),n.push(s))}return n}function Hu(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Uu=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Wu(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Te.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Gu(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case Te.ShadowDom:return new zu(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=$u(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(Xn(Mu),Xn(Vu),Xn(ul))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();class Wu{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(ju[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,i){if(i){t=i+":"+t;const s=ju[i];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const i=ju[n];i?e.removeAttributeNS(i,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,i){i&(wi.DashCase|wi.Important)?e.style.setProperty(t,n,i&wi.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&wi.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Hu(n)):this.eventManager.addEventListener(e,t,Hu(n))}}class Gu extends Wu{constructor(e,t,n,i){super(e),this.component=n;const s=$u(i+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Qu,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Qu,i+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class zu extends Wu{constructor(e,t,n,i){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=$u(i.id,i.styles,[]);for(let r=0;r<s.length;r++){const e=document.createElement("style");e.textContent=s[r],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let Yu=(()=>{class e extends Lu{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(Xn(eu))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const Ku=["alt","control","meta","shift"],Ju={"\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"},Zu={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"},Xu={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let ec=(()=>{class e extends Lu{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,i){const s=e.parseEventName(n),r=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xl().onAndCancel(t,s.domEventName,r))}static parseEventName(t){const n=t.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=e._normalizeKey(n.pop());let r="";if(Ku.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),r+=e+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Zu.hasOwnProperty(t)&&(t=Zu[t]))}return Ju[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Ku.forEach(i=>{i!=n&&(0,Xu[i])(e)&&(t+=i+".")}),t+=n,t}static eventCallback(t,n,i){return s=>{e.getEventFullKey(s)===t&&i.runGuarded(()=>n(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(Xn(eu))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const tc=$l(Yl,"browser",[{provide:pl,useValue:"browser"},{provide:dl,useValue:
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
function(){ku.makeCurrent(),Nu.init()},multi:!0},{provide:eu,useFactory:function(){return function(e){dt=e}(document),document},deps:[]}]),nc=[[],{provide:er,useValue:"root"},{provide:gi,useFactory:function(){return new gi},deps:[]},{provide:Fu,useClass:Yu,multi:!0,deps:[eu,kl,pl]},{provide:Fu,useClass:ec,multi:!0,deps:[eu]},[],{provide:Uu,useClass:Uu,deps:[Mu,Vu,ul]},{provide:Go,useExisting:Uu},{provide:Bu,useExisting:Vu},{provide:Vu,useClass:Vu,deps:[eu]},{provide:Fl,useClass:Fl,deps:[kl]},{provide:Mu,useClass:Mu,deps:[Fu,kl]},{provide:Tu,useClass:Ru,deps:[]},[]];let ic=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:ul,useValue:t.appId},{provide:Pu,useExisting:ul},Du]}}}return e.\u0275fac=function(t){return new(t||e)(Xn(e,12))},e.\u0275mod=Ge({type:e}),e.\u0275inj=pe({providers:nc,imports:[xu,Jl]}),e})();"undefined"!=typeof window&&window;
/**
 * @license Angular v12.0.4
 * (c) 2010-2021 Google LLC. https://angular.io/
 * License: MIT
 */class sc{}function rc(e,t){return{type:7,name:e,definitions:t,options:{}}}function oc(e,t=null){return{type:4,styles:t,timings:e}}function ac(e,t=null){return{type:2,steps:e,options:t}}function lc(e){return{type:6,styles:e,offset:null}}function uc(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function cc(e){Promise.resolve(null).then(e)}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class hc{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){cc(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}}class dc{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,i=0;const s=this.players.length;0==s?cc(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==s&&this._onFinish()}),e.onDestroy(()=>{++n==s&&this._onDestroy()}),e.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){const e=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license Angular v12.0.4
 * (c) 2010-2021 Google LLC. https://angular.io/
 * License: MIT
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}}function pc(){return"undefined"!=typeof window&&void 0!==window.document}function fc(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function mc(e){switch(e.length){case 0:return new hc;case 1:return e[0];default:return new dc(e)}}function gc(e,t,n,i,s={},r={}){const o=[],a=[];let l=-1,u=null;if(i.forEach(e=>{const n=e.offset,i=n==l,c=i&&u||{};Object.keys(e).forEach(n=>{let i=n,a=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,o),a){case"!":a=s[n];break;case"*":a=r[n];break;default:a=t.normalizeStyleValue(n,i,a,o)}c[i]=a}),i||a.push(c),u=c,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function yc(e,t,n,i){switch(t){case"start":e.onStart(()=>i(n&&vc(n,"start",e)));break;case"done":e.onDone(()=>i(n&&vc(n,"done",e)));break;case"destroy":e.onDestroy(()=>i(n&&vc(n,"destroy",e)))}}function vc(e,t,n){const i=n.totalTime,s=bc(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),r=e._data;return null!=r&&(s._data=r),s}function bc(e,t,n,i,s="",r=0,o){return{element:e,triggerName:t,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function wc(e,t,n){let i;return e instanceof Map?(i=e.get(t),i||e.set(t,i=n)):(i=e[t],i||(i=e[t]=n)),i}function Cc(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let _c=(e,t)=>!1,xc=(e,t)=>!1,Sc=(e,t,n)=>[];const Ec=fc();(Ec||"undefined"!=typeof Element)&&(_c=pc()?(e,t)=>{for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:(e,t)=>e.contains(t),xc=(()=>{if(Ec||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):xc}})(),Sc=(e,t,n)=>{let i=[];if(n){const n=e.querySelectorAll(t);for(let e=0;e<n.length;e++)i.push(n[e])}else{const n=e.querySelector(t);n&&i.push(n)}return i});let Ic=null,Tc=!1;function kc(e){Ic||(Ic=("undefined"!=typeof document?document.body:null)||{},Tc=!!Ic.style&&"WebkitAppearance"in Ic.style);let t=!0;return Ic.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in Ic.style,!t&&Tc)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Ic.style),t}const Oc=xc,Ac=_c,Pc=Sc;function Dc(e){const t={};return Object.keys(e).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}let Nc=(()=>{class e{validateStyleProperty(e){return kc(e)}matchesElement(e,t){return Oc(e,t)}containsElement(e,t){return Ac(e,t)}query(e,t,n){return Pc(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,i,s,r=[],o){return new hc(n,i)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),Rc=(()=>{class e{}return e.NOOP=new Nc,e})();function Fc(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Mc(parseFloat(t[1]),t[2])}function Mc(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Lc(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let i,s=0,r="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};i=Mc(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=Mc(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=e;if(!n){let n=!1,r=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(r,0,`The provided timing value "${e}" is invalid.`)}return{duration:i,delay:s,easing:r}}(e,t,n)}function Bc(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function Vc(e,t,n={}){if(t)for(let i in e)n[i]=e[i];else Bc(e,n);return n}function qc(e,t,n){return n?t+":"+n+";":""}function jc(e){let t="";for(let n=0;n<e.style.length;n++){const i=e.style.item(n);t+=qc(0,i,e.style.getPropertyValue(i))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=qc(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function Qc(e,t,n){e.style&&(Object.keys(t).forEach(i=>{const s=Kc(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[s]),e.style[s]=t[i]}),fc()&&jc(e))}function $c(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=Kc(t);e.style[n]=""}),fc()&&jc(e))}function Hc(e){return Array.isArray(e)?1==e.length?e[0]:ac(e):e}const Uc=new RegExp("{{\\s*(.+?)\\s*}}","g");function Wc(e){let t=[];if("string"==typeof e){let n;for(;n=Uc.exec(e);)t.push(n[1]);Uc.lastIndex=0}return t}function Gc(e,t,n){const i=e.toString(),s=i.replace(Uc,(e,i)=>{let s=t[i];return t.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?e:s}function zc(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Yc=/-+([a-z0-9])/g;function Kc(e){return e.replace(Yc,(...e)=>e[1].toUpperCase())}function Jc(e,t){return 0===e||0===t}function Zc(e,t,n){const i=Object.keys(n);if(i.length&&t.length){let r=t[0],o=[];if(i.forEach(e=>{r.hasOwnProperty(e)||o.push(e),r[e]=n[e]}),o.length)for(var s=1;s<t.length;s++){let n=t[s];o.forEach(function(t){n[t]=eh(e,t)})}}return t}function Xc(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error(`Unable to resolve animation metadata node #${t.type}`)}}function eh(e,t){return window.getComputedStyle(e)[t]}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function th(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}const i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const s=i[1],r=i[2],o=i[3];t.push(sh(s,o)),"<"!=r[0]||"*"==s&&"*"==o||t.push(sh(o,s))}(e,n,t)):n.push(e),n}const nh=new Set(["true","1"]),ih=new Set(["false","0"]);function sh(e,t){const n=nh.has(e)||ih.has(e),i=nh.has(t)||ih.has(t);return(s,r)=>{let o="*"==e||e==s,a="*"==t||t==r;return!o&&n&&"boolean"==typeof s&&(o=s?nh.has(e):ih.has(e)),!a&&i&&"boolean"==typeof r&&(a=r?nh.has(t):ih.has(t)),o&&a
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}}const rh=new RegExp("s*:selfs*,?","g");function oh(e,t,n){return new ah(e).build(t,n)}class ah{constructor(e){this._driver=e}build(e,t){const n=new lh(t);return this._resetContextStyleTimingState(n),Xc(this,Hc(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0;const s=[],r=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,i=n.name;i.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,s.push(this.visitState(n,t))}),n.name=i}else if(1==e.type){const s=this.visitTransition(e,t);n+=s.queryCount,i+=s.depCount,r.push(s)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(e=>{if(uh(e)){const t=e;Object.keys(t).forEach(e=>{Wc(t[e]).forEach(e=>{r.hasOwnProperty(e)||s.add(e)})})}}),s.size){const n=zc(s.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Xc(this,Hc(e.animation),t);return{type:1,matchers:th(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:ch(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Xc(this,e,t)),options:ch(e.options)}}visitGroup(e,t){const n=t.currentTime;let i=0;const s=e.steps.map(e=>{t.currentTime=n;const s=Xc(this,e,t);return i=Math.max(i,t.currentTime),s});return t.currentTime=i,{type:3,steps:s,options:ch(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return hh(Lc(e,t).duration,0,"");const i=e;if(i.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=hh(0,0,"");return e.dynamic=!0,e.strValue=i,e}return n=n||Lc(i,t),hh(n.duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let s=e.styles?e.styles:lc({});if(5==s.type)i=this.visitKeyframes(s,t);else{let s=e.styles,r=!1;if(!s){r=!0;const e={};n.easing&&(e.easing=n.easing),s=lc(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,t);o.isEmptyStep=r,i=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?"*"==e?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let i=!1,s=null;return n.forEach(e=>{if(uh(e)){const t=e,n=t.easing;if(n&&(s=n,delete t.easing),!i)for(let e in t)if(t[e].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let i=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=t.collectedStyles[t.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),t.options&&function(e,t,n){const i=t.params||{},s=Wc(e);s.length&&s.forEach(e=>{i.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(uh(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(uh(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),u=0;return null!=l&&(i++,u=n.offset=l),o=o||u<0||u>1,r=r||u<a,a=u,s.push(u),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&t.errors.push("Please ensure that all keyframe offsets are in order");const u=e.steps.length;let c=0;i>0&&i<u?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(c=1/(u-1));const h=u-1,d=t.currentTime,p=t.currentAnimateTimings,f=p.duration;return l.forEach((e,i)=>{const r=c>0?i==h?1:c*i:s[i],o=r*f;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=r,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Xc(this,Hc(e.animation),t),options:ch(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:ch(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ch(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[s,r]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(rh,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,wc(t.collectedStyles,t.currentQuerySelector,{});const o=Xc(this,Hc(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:e.selector,options:ch(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Lc(e.timings,t.errors,!0);return{type:12,animation:Xc(this,Hc(e.animation),t),timings:n,options:null}}}class lh{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function uh(e){return!Array.isArray(e)&&"object"==typeof e}function ch(e){var t;return e?(e=Bc(e)).params&&(e.params=(t=e.params)?Bc(t):null):e={},e}function hh(e,t,n){return{duration:e,delay:t,easing:n}}function dh(e,t,n,i,s,r,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class ph{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const fh=new RegExp(":enter","g"),mh=new RegExp(":leave","g");function gh(e,t,n,i,s,r={},o={},a,l,u=[]){return(new yh).buildKeyframes(e,t,n,i,s,r,o,a,l,u)}class yh{buildKeyframes(e,t,n,i,s,r,o,a,l,u=[]){l=l||new ph;const c=new bh(e,t,l,i,s,u,[]);c.options=a,c.currentTimeline.setStyles([r],null,c.errors,a),Xc(this,n,c);const h=c.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,c.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[dh(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const i=t.createSubContext(e.options),s=t.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let i=t.currentTimeline.currentTime;const s=null!=n.duration?Fc(n.duration):null,r=null!=n.delay?Fc(n.delay):null;return 0!==s&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),Xc(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let i=t;const s=e.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=vh);const e=Fc(s.delay);i.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Xc(this,e,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let i=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Fc(e.options.delay):0;e.steps.forEach(r=>{const o=t.createSubContext(e.options);s&&o.delayNextStep(s),Xc(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return Lc(t.params?Gc(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,i=t.currentTimeline.duration,s=n.duration,r=t.createSubContext().currentTimeline;r.easing=n.easing,e.styles.forEach(e=>{r.forwardTime((e.offset||0)*s),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(i+s),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?Fc(i.delay):0;s&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=vh);let r=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{t.currentQueryIndex=i;const o=t.createSubContext(e.options,n);s&&o.delayNextStep(s),n===t.element&&(a=o.currentTimeline),Xc(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(r),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,i=t.currentTimeline,s=e.timings,r=Math.abs(s.duration),o=r*(t.currentQueryTotal-1);let a=r*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const u=l.currentTime;Xc(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}const vh={};class bh{constructor(e,t,n,i,s,r,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=vh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new wh(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let i=this.options;null!=n.duration&&(i.duration=Fc(n.duration)),null!=n.delay&&(i.delay=Fc(n.delay));const s=n.params;if(s){let e=i.params;e||(e=this.options.params={}),Object.keys(s).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=Gc(s[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const i=t||this.element,s=new bh(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=vh,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},s=new Ch(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,s,r){let o=[];if(i&&o.push(this.element),e.length>0){e=(e=e.replace(fh,"."+this._enterClassName)).replace(mh,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return s||0!=o.length||r.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class wh{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new wh(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||"*",this._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&(this._previousKeyframe.easing=t);const s=i&&i.params||{},r=function(e,t){const n={};let i;return e.forEach(e=>{"*"===e?(i=i||Object.keys(t),i.forEach(e=>{n[e]="*"})):Vc(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(r).forEach(e=>{const t=Gc(r[e],s,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:"*"),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],i=e._styleSummary[t];(!n||i.time>n.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const o=Vc(s,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?e.add(n):"*"==i&&t.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=e.size?zc(e.values()):[],r=t.size?zc(t.values()):[];if(n){const e=i[0],t=Bc(e);e.offset=0,t.offset=1,i=[e,t]}return dh(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class Ch extends wh{constructor(e,t,n,i,s,r,o=!1){super(e,t,r.delay),this.element=t,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],r=n+t,o=t/r,a=Vc(e[0],!1);a.offset=0,s.push(a);const l=Vc(e[0],!1);l.offset=_h(o),s.push(l);const u=e.length-1;for(let i=1;i<=u;i++){let o=Vc(e[i],!1);o.offset=_h((t+o.offset*n)/r),s.push(o)}n=r,t=0,i="",e=s}return dh(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}}function _h(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class xh{}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class Sh extends xh{normalizePropertyName(e,t){return Kc(e)}normalizeStyleValue(e,t,n,i){let s="";const r=n.toString().trim();if(Eh[t]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&i.push(`Please provide a CSS unit value for ${e}:${n}`)}return r+s}}const Eh=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Ih(e,t,n,i,s,r,o,a,l,u,c,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}const Th={};class kh{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return function(e,t,n,i,s){return e.some(e=>e(t,n,i,s))}(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){const i=this._stateStyles["*"],s=this._stateStyles[e],r=i?i.buildStyles(t,n):{};return s?s.buildStyles(t,n):r}build(e,t,n,i,s,r,o,a,l,u){const c=[],h=this.ast.options&&this.ast.options.params||Th,d=this.buildStyles(n,o&&o.params||Th,c),p=a&&a.params||Th,f=this.buildStyles(i,p,c),m=new Set,g=new Map,y=new Map,v="void"===i,b={params:Object.assign(Object.assign({},h),p)},w=u?[]:gh(e,t,this.ast.animation,s,r,d,f,b,l,c);let C=0;if(w.forEach(e=>{C=Math.max(e.duration+e.delay,C)}),c.length)return Ih(t,this._triggerName,n,i,v,d,f,[],[],g,y,C,c);w.forEach(e=>{const n=e.element,i=wc(g,n,{});e.preStyleProps.forEach(e=>i[e]=!0);const s=wc(y,n,{});e.postStyleProps.forEach(e=>s[e]=!0),n!==t&&m.add(n)});const _=zc(m.values());return Ih(t,this._triggerName,n,i,v,d,f,w,_,g,y,C)}}class Oh{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},i=Bc(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const s=e;Object.keys(s).forEach(e=>{let r=s[e];r.length>1&&(r=Gc(r,i,t)),n[e]=r})}}),n}}class Ah{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new Oh(e.style,e.options&&e.options.params||{})}),Ph(this.states,"true","1"),Ph(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new kh(e,t,this.states))}),this.fallbackTransition=new kh(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(s=>s.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Ph(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const Dh=new ph;class Nh{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],i=oh(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=i}_buildPlayer(e,t,n){const i=e.element,s=gc(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],s=this._animations[e];let r;const o=new Map;if(s?(r=gh(this._driver,t,s,"ng-enter","ng-leave",{},{},n,Dh,i),r.forEach(e=>{const t=wc(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,"*")})});const a=mc(r.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,i){const s=bc(t,"","","");return yc(this._getPlayer(e),n,s,i),()=>{}}command(e,t,n,i){if("register"==n)return void this.register(e,i[0]);if("create"==n)return void this.create(e,t,i[0]||{});const s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const Rh=[],Fh={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Mh={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Lh{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(i=n?e.value:e)?i:null,n){const t=Bc(e);delete t.value,this.options=t}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Bh=new Lh("void");class Vh{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Wh(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var s;const r=wc(this._elementListeners,e,[]),o={name:t,phase:n,callback:i};r.push(o);const a=wc(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Wh(e,"ng-trigger"),Wh(e,"ng-trigger-"+t),a[t]=Bh),()=>{this._engine.afterFlush(()=>{const e=r.indexOf(o);e>=0&&r.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,i=!0){const s=this._getTrigger(t),r=new jh(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Wh(e,"ng-trigger"),Wh(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new Lh(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=Bh),"void"!==l.value&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(let s=0;s<n.length;s++){const i=n[s];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,l.params)){const t=[],n=s.matchStyles(a.value,a.params,t),i=s.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{$c(e,n),Qc(e,i)})}return}const u=wc(this._engine.playersByElement,e,[]);u.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let c=s.matchTransition(a.value,l.value,e,l.params),h=!1;if(!c){if(!i)return;c=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:c,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(Wh(e,"ng-animate-queued"),r.onStart(()=>{Gh(e,"ng-animate-queued")})),r.onDone(()=>{let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(r);e>=0&&n.splice(e,1)}}),this.players.push(r),u.push(r),r}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,".ng-trigger",!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,i){const s=this._engine.statesByElement.get(e);if(s){const r=[];if(Object.keys(s).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,"void",i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&mc(r).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const i=new Set;t.forEach(t=>{const s=t.name;if(i.has(s))return;i.add(s);const r=this._triggers[s].fallbackTransition,o=n[s]||Bh,a=new Lh("void"),l=new jh(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)i=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,t);else{const i=e.__ng_removed;i&&i!==Fh||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Wh(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(t=>{if(t.name==n.triggerName){const i=bc(s,n.triggerName,n.fromState.value,n.toState.value);i._data=e,yc(n.player,t.phase,i,t.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,i=t.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class qh{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Vh(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,t)){this._namespaceList.splice(s+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let i=0;i<e.length;i++){const s=n[e[i]].namespaceId;if(s){const e=this._fetchNamespace(s);e&&t.add(e)}}}return t}trigger(e,t,n,i){if(Qh(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!Qh(t))return;const s=t.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const i=this._fetchNamespace(e);i&&i.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Wh(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Gh(e,"ng-animate-disabled"))}removeNode(e,t,n,i){if(Qh(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,i)}}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,i,s){return Qh(t)?this._fetchNamespace(e).listen(t,n,i,s):()=>{}}_buildInstruction(e,t,n,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,".ng-trigger",!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,".ng-animating",!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return mc(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Fh,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Wh(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}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(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?mc(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new ph,i=[],s=new Map,r=[],o=new Map,a=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(e=>{u.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)u.add(t[n])});const c=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=Uh(h,this.collectedEnterElements),p=new Map;let f=0;d.forEach((e,t)=>{const n="ng-enter"+f++;p.set(t,n),e.forEach(e=>Wh(e,n))});const m=[],g=new Set,y=new Set;for(let A=0;A<this.collectedLeaveElements.length;A++){const e=this.collectedLeaveElements[A],t=e.__ng_removed;t&&t.setForRemoval&&(m.push(e),g.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>g.add(e)):y.add(e))}const v=new Map,b=Uh(h,Array.from(g));b.forEach((e,t)=>{const n="ng-leave"+f++;v.set(t,n),e.forEach(e=>Wh(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>Gh(e,n))}),b.forEach((e,t)=>{const n=v.get(t);e.forEach(e=>Gh(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const w=[],C=[];for(let A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(t).forEach(e=>{const t=e.player,s=e.element;if(w.push(t),this.collectedEnterElements.length){const e=s.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const u=!c||!this.driver.containsElement(c,s),h=v.get(s),d=p.get(s),f=this._buildInstruction(e,n,d,h,u);if(f.errors&&f.errors.length)C.push(f);else{if(u)return t.onStart(()=>$c(s,f.fromStyles)),t.onDestroy(()=>Qc(s,f.toStyles)),void i.push(t);if(e.isFallbackTransition)return t.onStart(()=>$c(s,f.fromStyles)),t.onDestroy(()=>Qc(s,f.toStyles)),void i.push(t);f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(s,f.timelines),r.push({instruction:f,player:t,element:s}),f.queriedElements.forEach(e=>wc(o,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let i=l.get(t);i||l.set(t,i=new Set),n.forEach(e=>i.add(e))})}});if(C.length){const e=[];C.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),w.forEach(e=>e.destroy()),this.reportError(e)}const _=new Map,x=new Map;r.forEach(e=>{const t=e.element;n.has(t)&&(x.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,_))}),i.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{wc(_,t,[]).push(e),e.destroy()})});const S=m.filter(e=>Kh(e,a,l)),E=new Map;Hh(E,this.driver,y,l,"*").forEach(e=>{Kh(e,a,l)&&S.push(e)});const I=new Map;d.forEach((e,t)=>{Hh(I,this.driver,new Set(e),a,"!")}),S.forEach(e=>{const t=E.get(e),n=I.get(e);E.set(e,Object.assign(Object.assign({},t),n))});const T=[],k=[],O={};r.forEach(e=>{const{element:t,player:r,instruction:o}=e;if(n.has(t)){if(u.has(t))return r.onDestroy(()=>Qc(t,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let e=O;if(x.size>1){let n=t;const i=[];for(;n=n.parentNode;){const t=x.get(n);if(t){e=t;break}i.push(n)}i.forEach(t=>x.set(t,e))}const n=this._buildAnimation(r.namespaceId,o,_,s,I,E);if(r.setRealPlayer(n),e===O)T.push(r);else{const t=this.playersByElement.get(e);t&&t.length&&(r.parentPlayer=mc(t)),i.push(r)}}else $c(t,o.fromStyles),r.onDestroy(()=>Qc(t,o.toStyles)),k.push(r),u.has(t)&&i.push(r)}),k.forEach(e=>{const t=s.get(e.element);if(t&&t.length){const n=mc(t);e.setRealPlayer(n)}}),i.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let A=0;A<m.length;A++){const e=m[A],t=e.__ng_removed;if(Gh(e,"ng-leave"),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let i=this.driver.query(e,".ng-animating",!0);for(let e=0;e<i.length;e++){let t=o.get(i[e]);t&&t.length&&n.push(...t)}}const i=n.filter(e=>!e.destroyed);i.length?zh(this,e,i):this.processLeaveNode(e)}return m.length=0,T.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),T}elementContainsData(e,t){let n=!1;const i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,s){let r=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(r=t)}else{const t=this.playersByElement.get(e);if(t){const e=!s||"void"==s;t.forEach(t=>{t.queued||(e||t.triggerName==i)&&r.push(t)})}}return(n||i)&&(r=r.filter(e=>!(n&&n!=e.namespaceId||i&&i!=e.triggerName))),r}_beforeAnimationBuild(e,t,n){const i=t.element,s=t.isRemovalTransition?void 0:e,r=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==i,l=wc(n,e,[]);this._getPreviousPlayers(e,a,s,r,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}$c(i,t.fromStyles)}_buildAnimation(e,t,n,i,s,r){const o=t.triggerName,a=t.element,l=[],u=new Set,c=new Set,h=t.timelines.map(t=>{const h=t.element;u.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new hc(t.duration,t.delay);const p=h!==a,f=function(e){const t=[];return Yh(e,t),t}((n.get(h)||Rh).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===h),m=s.get(h),g=r.get(h),y=gc(0,this._normalizer,0,t.keyframes,m,g),v=this._buildPlayer(t,y,f);if(t.subTimeline&&i&&c.add(h),p){const t=new jh(e,o,h);t.setRealPlayer(v),l.push(t)}return v});l.forEach(e=>{wc(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let i;if(e instanceof Map){if(i=e.get(t),i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&e.delete(t)}}else if(i=e[t],i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&delete e[t]}return i}(this.playersByQueriedElement,e.element,e))}),u.forEach(e=>Wh(e,"ng-animating"));const d=mc(h);return d.onDestroy(()=>{u.forEach(e=>Gh(e,"ng-animating")),Qc(a,t.toStyles)}),c.forEach(e=>{wc(i,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new hc(e.duration,e.delay)}}class jh{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new hc,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>yc(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){wc(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Qh(e){return e&&1===e.nodeType}function $h(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Hh(e,t,n,i,s){const r=[];n.forEach(e=>r.push($h(e)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(e=>{const n=r[e]=t.computeStyle(i,e,s);n&&0!=n.length||(i.__ng_removed=Mh,o.push(i))}),e.set(i,r)});let a=0;return n.forEach(e=>$h(e,r[a++])),o}function Uh(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const i=new Set(t),s=new Map;function r(e){if(!e)return 1;let t=s.get(e);if(t)return t;const o=e.parentNode;return t=n.has(o)?o:i.has(o)?1:r(o),s.set(e,t),t}return t.forEach(e=>{const t=r(e);1!==t&&n.get(t).push(e)}),n}function Wh(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Gh(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function zh(e,t,n){mc(n).onDone(()=>e.processLeaveNode(t))}function Yh(e,t){for(let n=0;n<e.length;n++){const i=e[n];i instanceof dc?Yh(i.players,t):t.push(i)}}function Kh(e,t,n){const i=n.get(e);if(!i)return!1;let s=t.get(e);return s?i.forEach(e=>s.add(e)):t.set(e,i),n.delete(e),!0}class Jh{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new qh(e,t,n),this._timelineEngine=new Nh(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,i,s){const r=e+"-"+i;let o=this._triggerCache[r];if(!o){const e=[],t=oh(this._driver,s,e);if(e.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new Ah(e,t)}(i,t),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if("@"==n.charAt(0)){const[e,s]=Cc(n);this._timelineEngine.command(e,t,s,i)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,s){if("@"==n.charAt(0)){const[e,i]=Cc(n);return this._timelineEngine.listen(e,t,i,s)}return this._transitionEngine.listen(e,t,n,i,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Zh(e,t){let n=null,i=null;return Array.isArray(t)&&t.length?(n=ed(t[0]),t.length>1&&(i=ed(t[t.length-1]))):t&&(n=ed(t)),n||i?new Xh(e,n,i):null}let Xh=(()=>{class e{constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;let s=e.initialStylesByElement.get(t);s||e.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Qc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Qc(this._element,this._initialStyles),this._endStyles&&(Qc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&($c(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($c(this._element,this._endStyles),this._endStyles=null),Qc(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function ed(e){let t=null;const n=Object.keys(e);for(let i=0;i<n.length;i++){const s=n[i];td(s)&&(t=t||{},t[s]=e[s])}return t}function td(e){return"display"===e||"position"===e}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class nd{constructor(e,t,n,i,s,r,o){this._element=e,this._name=t,this._duration=n,this._delay=i,this._easing=s,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e=>this._handleCallback(e)}apply(){!function(e,t){const n=ld(e,"").trim();n.length&&(function(e,t){let n=0;for(let i=0;i<e.length;i++)","===e.charAt(i)&&n++}(n),t=`${n}, ${t}`),ad(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),od(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){id(this._element,this._name,"paused")}resume(){id(this._element,this._name,"running")}setPosition(e){const t=sd(this._element,this._name);this._position=e*this._duration,ad(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),od(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=ld(e,"").split(","),i=rd(n,t);i>=0&&(n.splice(i,1),ad(e,"",n.join(",")))}(this._element,this._name))}}function id(e,t,n){ad(e,"PlayState",n,sd(e,t))}function sd(e,t){const n=ld(e,"");return n.indexOf(",")>0?rd(n.split(","),t):rd([n],t)}function rd(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function od(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function ad(e,t,n,i){const s="animation"+t;if(null!=i){const t=e.style[s];if(t.length){const e=t.split(",");e[i]=n,n=e.join(",")}}e.style[s]=n}function ld(e,t){return e.style["animation"+t]||""}class ud{constructor(e,t,n,i,s,r,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new nd(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:eh(this.element,n))})}this.currentSnapshot=e}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class cd extends hc{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=Dc(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class hd{constructor(){this._count=0}validateStyleProperty(e){return kc(e)}matchesElement(e,t){return Oc(e,t)}containsElement(e,t){return Ac(e,t)}query(e,t,n){return Pc(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>Dc(e));let i=`@keyframes ${t} {\n`,s="";n.forEach(e=>{s=" ";const t=parseFloat(e.offset);i+=`${s}${100*t}% {\n`,s+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${t}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(e,t,n,i,s,r=[],o){const a=r.filter(e=>e instanceof ud),l={};Jc(n,i)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Zc(e,t,l));if(0==n)return new cd(e,u);const c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,c,t);(function(e){var t;const n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(h);const d=Zh(e,t),p=new ud(e,t,c,n,i,s,u,d);return p.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),p}}class dd{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:eh(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class pd{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(fd().toString()),this._cssKeyframesDriver=new hd}validateStyleProperty(e){return kc(e)}matchesElement(e,t){return Oc(e,t)}containsElement(e,t){return Ac(e,t)}query(e,t,n){return Pc(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},u=r.filter(e=>e instanceof dd);Jc(n,i)&&u.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=Zh(e,t=Zc(e,t=t.map(e=>Vc(e,!1)),l));return new dd(e,t,a,c)}}function fd(){return pc()&&Element.prototype.animate||{}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license Angular v12.0.4
 * (c) 2010-2021 Google LLC. https://angular.io/
 * License: MIT
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */let md=(()=>{class e extends sc{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:Te.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?ac(e):e;return vd(this._renderer,null,t,"register",[n]),new gd(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(Xn(Go),Xn(eu))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();class gd extends class{}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new yd(this._id,e,t||{},this._renderer)}}class yd{constructor(e,t,n,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return vd(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function vd(e,t,n,i,s){return e.setProperty(t,`@@${n}:${i}`,s)}let bd=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new wd("",n,this.engine),this._rendererCache.set(n,e)),e}const i=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const r=t=>{Array.isArray(t)?t.forEach(r):this.engine.registerTrigger(i,s,e,t.name,t)};return t.data.animation.forEach(r),new Cd(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(Xn(Go),Xn(Jh),Xn(kl))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();class wd{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,i=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class Cd extends wd{constructor(e,t,n,i){super(t,n,i),this.factory=e,this.namespaceId=t}setProperty(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if("@"==t.charAt(0)){const i=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let s=t.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let _d=(()=>{class e extends Jh{constructor(e,t,n){super(e.body,t,n)}ngOnDestroy(){this.flush()}}return e.\u0275fac=function(t){return new(t||e)(Xn(eu),Xn(Rc),Xn(xh))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const xd=new Vn("AnimationModuleType"),Sd=[{provide:sc,useClass:md},{provide:xh,useFactory:function(){return new Sh}},{provide:Jh,useClass:_d},{provide:Go,useFactory:function(e,t,n){return new bd(e,t,n)},deps:[Uu,Jh,kl]}],Ed=[{provide:Rc,useFactory:function(){return"function"==typeof fd()?new pd:new hd}},{provide:xd,useValue:"BrowserAnimations"},...Sd],Id=[{provide:Rc,useClass:Nc},{provide:xd,useValue:"NoopAnimations"},...Sd];let Td=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?Id:Ed}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=pe({providers:Ed,imports:[ic]}),e})();function kd(...e){let t=e[e.length-1];return E(t)?(e.pop(),F(e,t)):H(e)}class Od{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Ad(e,this.predicate,this.thisArg))}}class Ad extends f{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}
/**
 * @license Angular v12.0.4
 * (c) 2010-2021 Google LLC. https://angular.io/
 * License: MIT
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class Pd{}class Dd{}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class Nd{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),i=n.toLowerCase(),s=e.slice(t+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const i=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Nd?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Nd;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Nd?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...n),this.headers.set(t,i);break;case"d":const s=e.value;if(s){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===s.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}}class Rd{encodeKey(e){return Fd(e)}encodeValue(e){return Fd(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function Fd(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function Md(e){return`${e}`}class Ld{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Rd,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(e=>{const i=e.indexOf("="),[s,r]=-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(n=>{const i=e[n];Array.isArray(i)?i.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Ld({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(Md(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(Md(e.value));-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}}class Bd{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}keys(){return this.map.keys()}}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function Vd(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function qd(e){return"undefined"!=typeof Blob&&e instanceof Blob}function jd(e){return"undefined"!=typeof FormData&&e instanceof FormData}class Qd{constructor(e,t,n,i){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Nd),this.context||(this.context=new Bd),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new Ld,this.urlWithParams=t}serializeBody(){return null===this.body?null:Vd(this.body)||qd(this.body)||jd(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ld?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||jd(this.body)?null:qd(this.body)?this.body.type||null:Vd(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ld?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const n=e.method||this.method,i=e.url||this.url,s=e.responseType||this.responseType,r=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,a=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let l=e.headers||this.headers,u=e.params||this.params;const c=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(l=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),l)),e.setParams&&(u=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),u)),new Qd(n,i,r,{params:u,headers:l,context:c,reportProgress:a,responseType:s,withCredentials:o})
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}}var $d=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class Hd{constructor(e,t=200,n="OK"){this.headers=e.headers||new Nd,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class Ud extends Hd{constructor(e={}){super(e),this.type=$d.ResponseHeader}clone(e={}){return new Ud({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Wd extends Hd{constructor(e={}){super(e),this.type=$d.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Wd({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Gd extends Hd{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}}function zd(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Yd=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let i;if(e instanceof Qd)i=e;else{let s,r;s=n.headers instanceof Nd?n.headers:new Nd(n.headers),n.params&&(r=n.params instanceof Ld?n.params:new Ld({fromObject:n.params})),i=new Qd(e,t,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=kd(i).pipe(q(e=>this.handler.handle(e),void 0,1));if(e instanceof Qd||"events"===n.observe)return s;const r=s.pipe((o=e=>e instanceof Wd,function(e){return e.lift(new Od(o,void 0))}));var o;switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(I(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return r.pipe(I(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return r.pipe(I(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return r.pipe(I(e=>e.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new Ld).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,zd(n,t))}post(e,t,n={}){return this.request("POST",e,zd(n,t))}put(e,t,n={}){return this.request("PUT",e,zd(n,t))}}return e.\u0275fac=function(t){return new(t||e)(Xn(Pd))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class Kd{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const Jd=new Vn("HTTP_INTERCEPTORS");let Zd=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const Xd=/^\)\]\}',?\n/;let ep=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const i=e.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const t=1223===n.status?204:n.status,i=n.statusText||"OK",r=new Nd(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return s=new Ud({headers:r,status:t,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let u=s>=200&&s<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(Xd,"");try{l=""!==l?JSON.parse(l):null}catch(c){l=e,u&&(u=!1,l={error:c,text:l})}}u?(t.next(new Wd({body:l,headers:i,status:s,statusText:o,url:a||void 0})),t.complete()):t.error(new Gd({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=e=>{const{url:i}=r(),s=new Gd({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});t.error(s)};let l=!1;const u=i=>{l||(t.next(r()),l=!0);let s={type:$d.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===e.responseType&&n.responseText&&(s.partialText=n.responseText),t.next(s)},c=e=>{let n={type:$d.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),e.reportProgress&&(n.addEventListener("progress",u),null!==i&&n.upload&&n.upload.addEventListener("progress",c)),n.send(i),t.next({type:$d.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",u),null!==i&&n.upload&&n.upload.removeEventListener("progress",c)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(Xn(Tu))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const tp=new Vn("XSRF_COOKIE_NAME"),np=new Vn("XSRF_HEADER_NAME");class ip{}let sp=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=su(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(Xn(eu),Xn(pl),Xn(tp))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),rp=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(Xn(ip),Xn(np))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),op=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(Jd,[]);this.chain=e.reduceRight((e,t)=>new Kd(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(Xn(Dd),Xn(pr))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),ap=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:rp,useClass:Zd}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:tp,useValue:t.cookieName}:[],t.headerName?{provide:np,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=pe({providers:[rp,{provide:Jd,useExisting:rp,multi:!0},{provide:ip,useClass:sp},{provide:tp,useValue:"XSRF-TOKEN"},{provide:np,useValue:"X-XSRF-TOKEN"}]}),e})(),lp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=pe({providers:[Yd,{provide:Pd,useClass:op},ep,{provide:Dd,useExisting:ep}],imports:[[ap.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();function up(e,t){return new v(n=>{const i=e.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a<i;a++){const l=M(e[a]);let u=!1;n.add(l.subscribe({next:e=>{u||(u=!0,o++),s[a]=e},error:e=>n.error(e),complete:()=>{r++,r!==i&&u||(o===i&&n.next(t?t.reduce((e,t,n)=>(e[t]=s[n],e),{}):s),n.complete())}}))}})}
/**
 * @license Angular v12.0.4
 * (c) 2010-2021 Google LLC. https://angular.io/
 * License: MIT
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */let cp=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Dr(zo),Dr(Uo))},e.\u0275dir=Ye({type:e}),e})(),hp=(()=>{class e extends cp{}return e.\u0275fac=function(){let t;return function(n){return(t||(t=Mn(e)))(n||e)}}(),e.\u0275dir=Ye({type:e,features:[mr]}),e})();const dp=new Vn("NgValueAccessor"),pp={provide:dp,useExisting:re(()=>fp),multi:!0};
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */let fp=(()=>{class e extends hp{writeValue(e){this.setProperty("checked",e)}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=Mn(e)))(n||e)}}(),e.\u0275dir=Ye({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Hr("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[Bo([pp]),mr]}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const mp={provide:dp,useExisting:re(()=>yp),multi:!0},gp=new Vn("CompositionEventMode");let yp=(()=>{class e extends cp{constructor(e,t,n){super(e,t),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Xl()?Xl().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(Dr(zo),Dr(Uo),Dr(gp,8))},e.\u0275dir=Ye({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&Hr("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[Bo([mp]),mr]}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function vp(e){return null==e||0===e.length}function bp(e){return null!=e&&"number"==typeof e.length}const wp=new Vn("NgValidators"),Cp=new Vn("NgAsyncValidators"),_p=/^(?=.{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 xp{static min(e){return function(e){return t=>{if(vp(t.value)||vp(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}(e)}static max(e){return function(e){return t=>{if(vp(t.value)||vp(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(e)}static required(e){return function(e){return vp(e.value)?{required:!0}:null}(e)}static requiredTrue(e){return function(e){return!0===e.value?null:{required:!0}}(e)}static email(e){return function(e){return vp(e.value)||_p.test(e.value)?null:{email:!0}}(e)}static minLength(e){return function(e){return t=>vp(t.value)||!bp(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}(e)}static maxLength(e){return Sp(e)}static pattern(e){return function(e){if(!e)return Ep;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(vp(e.value))return null;const i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}(e)}static nullValidator(e){return null}static compose(e){return Pp(e)}static composeAsync(e){return Np(e)}}function Sp(e){return t=>bp(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function Ep(e){return null}function Ip(e){return null!=e}function Tp(e){const t=jr(e)?M(e):e;return $r(t),t}function kp(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Op(e,t){return t.map(t=>t(e))}function Ap(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function Pp(e){if(!e)return null;const t=e.filter(Ip);return 0==t.length?null:function(e){return kp(Op(e,t))}}function Dp(e){return null!=e?Pp(Ap(e)):null}function Np(e){if(!e)return null;const t=e.filter(Ip);return 0==t.length?null:function(e){return function(...e){if(1===e.length){const t=e[0];if(l(t))return up(t,null);if(u(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return up(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return up(e=1===e.length&&l(e[0])?e[0]:e,null).pipe(I(e=>t(...e)))}return up(e,null)}(Op(e,t).map(Tp)).pipe(I(kp))}}function Rp(e){return null!=e?Np(Ap(e)):null}function Fp(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Mp(e){return e._rawValidators}function Lp(e){return e._rawAsyncValidators}let Bp=(()=>{class e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Dp(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Rp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ye({type:e}),e})(),Vp=(()=>{class e extends Bp{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=Mn(e)))(n||e)}}(),e.\u0275dir=Ye({type:e,features:[mr]}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */class qp extends Bp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}}let jp=(()=>{class e extends class{constructor(e){this._cd=e}is(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Dr(qp,2))},e.\u0275dir=Ye({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&io("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[mr]}),e})();function Qp(e,t){(function(e,t){const n=Mp(e);null!==t.validator?e.setValidators(Fp(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const i=Lp(e);null!==t.asyncValidator?e.setAsyncValidators(Fp(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const s=()=>e.updateValueAndValidity();Hp(t._rawValidators,s),Hp(t._rawAsyncValidators,s)})(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Up(e,t)})}(e,t),function(e,t){const n=(e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Up(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function $p(e,t,n=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),function(e,t){let n=!1;if(null!==e){if(null!==t.validator){const i=Mp(e);if(Array.isArray(i)&&i.length>0){const s=i.filter(e=>e!==t.validator);s.length!==i.length&&(n=!0,e.setValidators(s))}}if(null!==t.asyncValidator){const i=Lp(e);if(Array.isArray(i)&&i.length>0){const s=i.filter(e=>e!==t.asyncValidator);s.length!==i.length&&(n=!0,e.setAsyncValidators(s))}}}const i=()=>{};Hp(t._rawValidators,i),Hp(t._rawAsyncValidators,i)}(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Hp(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Up(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Wp(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function Gp(e,t){if(!t)return null;let n,i,s;return Array.isArray(t),t.forEach(e=>{e.constructor===yp?n=e:Object.getPrototypeOf(e.constructor)===hp?i=e:s=e}),s||i||n||null}function zp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Yp(e){return(Xp(e)?e.validators:e)||null}function Kp(e){return Array.isArray(e)?Dp(e):e||null}function Jp(e,t){return(Xp(t)?t.asyncValidators:e)||null}function Zp(e){return Array.isArray(e)?Rp(e):e||null}function Xp(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class ef{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=Kp(this._rawValidators),this._composedAsyncValidatorFn=Zp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}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(e){this._rawValidators=e,this._composedValidatorFn=Kp(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Zp(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const t=Tp(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let i=e;return t.forEach(e=>{i=i instanceof nf?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof sf&&i.at(e)||null}),i}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Wa,this.statusChanges=new Wa}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Xp(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class tf extends ef{constructor(e=null,t,n){super(Yp(t),Jp(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){zp(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){zp(this._onDisabledChange,e)}_forEachChild(e){}_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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class nf extends ef{constructor(e,t,n){super(Yp(t),Jp(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof tf?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){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[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,i)=>{n=t(n,e,i)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class sf extends ef{constructor(e,t,n){super(Yp(t),Jp(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,n={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof tf?e.value:e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){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(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */}}const rf={provide:qp,useExisting:re(()=>af)},of=(()=>Promise.resolve(null))();let af=(()=>{class e extends qp{constructor(e,t,n,i){super(),this.control=new tf,this._registered=!1,this.update=new Wa,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=Gp(0,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Wp(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Qp(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){of.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;of.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(Dr(Vp,9),Dr(wp,10),Dr(Cp,10),Dr(dp,10))},e.\u0275dir=Ye({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Bo([rf]),mr,at]}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const lf={provide:dp,useExisting:re(()=>hf),multi:!0};let uf=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=pe({}),e})(),cf=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return new e},token:e,providedIn:uf}),e})(),hf=(()=>{class e extends hp{constructor(e,t,n,i){super(e,t),this._registry=n,this._injector=i,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(qp),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return e.\u0275fac=function(t){return new(t||e)(Dr(zo),Dr(Uo),Dr(cf),Dr(pr))},e.\u0275dir=Ye({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Hr("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Bo([lf]),mr]}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const df=new Vn("NgModelWithFormControlWarning"),pf={provide:qp,useExisting:re(()=>ff)};let ff=(()=>{class e extends qp{constructor(e,t,n,i){super(),this._ngModelWarningConfig=i,this.update=new Wa,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Gp(0,n)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&$p(t,this,!1),Qp(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Wp(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&$p(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(Dr(wp,10),Dr(Cp,10),Dr(dp,10),Dr(df,8))},e.\u0275dir=Ye({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Bo([pf]),mr,at]}),e._ngModelWarningSentOnce=!1,e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const mf={provide:dp,useExisting:re(()=>yf),multi:!0};function gf(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let yf=(()=>{class e extends hp{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this.setProperty("selectedIndex",-1);const n=gf(t,e);this.setProperty("value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=Mn(e)))(n||e)}}(),e.\u0275dir=Ye({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&Hr("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[Bo([mf]),mr]}),e})(),vf=(()=>{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(gf(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(Dr(Uo),Dr(zo),Dr(yf,9))},e.\u0275dir=Ye({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */const bf={provide:dp,useExisting:re(()=>Cf),multi:!0};function wf(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Cf=(()=>{class e extends hp{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const i=e.item(t),s=this._getOptionValue(i.value);n.push(s)}}else{const e=t.options;for(let t=0;t<e.length;t++){const i=e.item(t);if(i.selected){const e=this._getOptionValue(i.value);n.push(e)}}}this.value=n,e(n)}}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=Mn(e)))(n||e)}}(),e.\u0275dir=Ye({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&Hr("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[Bo([bf]),mr]}),e})(),_f=(()=>{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(wf(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(wf(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(Dr(Uo),Dr(zo),Dr(Cf,9))},e.\u0275dir=Ye({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const xf={provide:wp,useExisting:re(()=>Sf),multi:!0};let Sf=(()=>{class e{constructor(){this._validator=Ep}ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null!=this.maxlength?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=Sp("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ye({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Tr("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Bo([xf]),at]}),e})(),Ef=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=pe({imports:[[uf]]}),e})(),If=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=pe({imports:[Ef]}),e})(),Tf=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:df,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=pe({imports:[Ef]}),e})(),kf=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ge({type:e}),e.\u0275inj=pe({imports:[[xu,Td,lp,If,Tf]]}),e})();var Of=function(e){return e[e.Tarot=1]="Tarot",e[e.Clairvoyant=2]="Clairvoyant",e[e.Medium=3]="Medium",e[e.LoveTarot=4]="LoveTarot",e[e.AngelCards=5]="AngelCards",e[e.SpiritCoach=6]="SpiritCoach",e[e.Healer=7]="Healer",e[e.Runes=8]="Runes",e[e.Astrology=9]="Astrology",e}({}),Af=function(e){return e[e.Tarot=1]="Tarot",e[e.Clairvoyance=2]="Clairvoyance",e[e.Medium=3]="Medium",e[e["Love Tarot"]=4]="Love Tarot",e[e["Angel Cards"]=5]="Angel Cards",e[e["Spirit Coaches"]=6]="Spirit Coaches",e[e.Healing=7]="Healing",e[e.Runes=8]="Runes",e[e.Astrology=9]="Astrology",e}({}),Pf=function(e){return e[e.tarot=1]="tarot",e[e.clairoyants=2]="clairoyants",e[e.mediums=3]="mediums",e[e["love-tarot"]=4]="love-tarot",e[e["angel-cards"]=5]="angel-cards",e[e["spirit-coaches"]=6]="spirit-coaches",e[e.healers=7]="healers",e[e.runes=8]="runes",e[e.astrology=9]="astrology",e}({});class Df extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class Nf extends Df{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n,i=!1;try{this.work(e)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Rf=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class Ff extends Rf{constructor(e,t=Rf.now){super(e,()=>Ff.delegate&&Ff.delegate!==this?Ff.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return Ff.delegate&&Ff.delegate!==this?Ff.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const Mf=new Ff(Nf);function Lf(e,t=Mf){return n=>n.lift(new Bf(e,t))}class Bf{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new Vf(e,this.dueTime,this.scheduler))}}class Vf extends f{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(qf,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function qf(e){e.debouncedNext()}class jf{}class Qf{}var $f,Hf=function(e){return e[e.Tarot=1]="Tarot",e[e.Clairvoyant=2]="Clairvoyant",e[e.Medium=3]="Medium",e[e.LoveTarot=4]="LoveTarot",e[e.AngelCards=5]="AngelCards",e[e.SpiritCoach=6]="SpiritCoach",e[e.Healer=7]="Healer",e[e.Runes=8]="Runes",e[e.Astrology=9]="Astrology",e}({}),Uf=function(e){return e[e.Tarot=1]="Tarot",e[e.Clairvoyance=2]="Clairvoyance",e[e.Medium=3]="Medium",e[e["Love Tarot"]=4]="Love Tarot",e[e["Angel Cards"]=5]="Angel Cards",e[e["Spirit Coaches"]=6]="Spirit Coaches",e[e.Healing=7]="Healing",e[e.Runes=8]="Runes",e[e.Astrology=9]="Astrology",e}({}),Wf=function(e){return e[e.tarot=1]="tarot",e[e.clairoyants=2]="clairoyants",e[e.mediums=3]="mediums",e[e["love-tarot"]=4]="love-tarot",e[e["angel-cards"]=5]="angel-cards",e[e["spirit-coaches"]=6]="spirit-coaches",e[e.healers=7]="healers",e[e.runes=8]="runes",e[e.astrology=9]="astrology",e}({}),Gf=function(e){return e[e.Unknown=0]="Unknown",e[e.Success=10]="Success",e[e.GeneralFailure=20]="GeneralFailure",e[e.ServerException=30]="ServerException",e[e.WrongParams=40]="WrongParams",e[e.AccessNotAllowed=50]="AccessNotAllowed",e[e.NotImplemented=60]="NotImplemented",e[e.NoDataFound=70]="NoDataFound",e[e.FailedAuthentication=80]="FailedAuthentication",e[e.ConnectionFailure=90]="ConnectionFailure",e}({});let zf=(()=>{class e{static isTestEnvironment(t){return e.isCurrentUrlPath(e.Urls.testPage)}static navigateToUrl(e){window.location.href=null!=e?e:"/"}static isCurrentUrlPath(t){let n=window.location.pathname;return!!e.sanitiseUrlForComparison(n).startsWith(e.sanitiseUrlForComparison(t))}static sanitiseUrlForComparison(e){if(null===e)return e;let t=e;return t=t.toLowerCase(),t.endsWith("/")&&(t=t.slice(0,t.length-1)),t.startsWith("/")||(t="/"+t),t}}return e.messageReceivedSound="/Assets/Audio/MessageAlert.mp3",e.chatPollingInterval=3e3,e.chatRetryAttempts=3,e.threeMinutesSec=180,e.chatRetryDelay=5e3,e.eventNameSessionStart="Expert-Session-Start",e.eventCategorySessionStart="Expert-Session-Start",e.eventActionSessionStart=" IM Session",e.eventLabelSessionStart="",e.eventNameSessionEnd="Expert-Session-End",e.eventCategorySessionEnd="Expert-Session-End",e.eventActionSessionEnd=" IM Session",e.eventLabelSessionEnd="",e.Urls=(($f=class{static get encoder(){return this._encoder||(this._encoder=new Rd),this._encoder}static expertPage(t){return e.Urls.encoder.encodeValue(`/Readers/${t}/`)}static onlineChatExpertPage(t){return e.Urls.encoder.encodeValue(`/Psychic-Online-Readings/Readers/${t}/`)}static searchPage(t){return e.Urls.encoder.encodeValue("/Search/"+t)}static expertPageOnlineChatResume(t){return e.Urls.expertPage(t)+"Resume/"}})._encoder=null,$f.testPage="/Home2/",$f.makePaymentPage="/My-Account/MakePayment/",$f.manageCardsPage="/My-Account/ManageCards/",$f.loginPage="/Login/",$f.onlineChatPage="/Psychic-Online-Readings/",$f.findExpertPage="/Find/",$f),e})();var Yf=function(e){return e[e.New=1]="New",e[e.Accepted=2]="Accepted",e[e.InProgress=3]="InProgress",e[e.Completed=4]="Completed",e[e.Rejected=5]="Rejected",e[e.Missed=6]="Missed",e[e.Cancelled=7]="Cancelled",e[e.ExpertTerminated=8]="ExpertTerminated",e[e.CustomerTerminated=9]="CustomerTerminated",e[e.SystemTerminated=10]="SystemTerminated",e[e.SystemCancelled=11]="SystemCancelled",e}({});class Kf{}var Jf=function(e){return e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Default=4]="Default",e}({});class Zf{}class Xf{}function em(e){return function(t){const n=new tm(e),i=t.lift(n);return n.caught=i}}class tm{constructor(e){this.selector=e}call(e,t){return t.subscribe(new nm(e,this.selector,this.caught))}}class nm extends B{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const i=new L(this);this.add(i);const s=V(n,i);s!==i&&this.add(s)}}}class im extends Nf{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}class sm extends Ff{}const rm=new sm(im),om=new v(e=>e.complete());function am(e){return e?function(e){return new v(t=>e.schedule(()=>t.complete()))}(e):om}function lm(e,t){return new v(t?n=>t.schedule(um,0,{error:e,subscriber:n}):t=>t.error(e))}function um({error:e,subscriber:t}){t.error(e)}let cm=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return kd(this.value);case"E":return lm(this.error);case"C":return am()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class hm extends f{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(hm.dispatch,this.delay,new dm(e,this.destination)))}_next(e){this.scheduleMessage(cm.createNext(e))}_error(e){this.scheduleMessage(cm.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(cm.createComplete()),this.unsubscribe()}}class dm{constructor(e,t){this.notification=e,this.destination=t}}class pm extends x{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new fm(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let r;if(this.closed)throw new w;if(this.isStopped||this.hasError?r=h.EMPTY:(this.observers.push(e),r=new C(this,e)),i&&e.add(e=new hm(e,i)),t)for(let o=0;o<s&&!e.closed;o++)e.next(n[o]);else for(let o=0;o<s&&!e.closed;o++)e.next(n[o].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),r}_getNow(){return(this.scheduler||rm).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,s=i.length;let r=0;for(;r<s&&!(e-i[r].time<n);)r++;return s>t&&(r=Math.max(r,s-t)),r>0&&i.splice(0,r),i}}class fm{constructor(e,t){this.time=e,this.value=t}}function mm(e,t,n,i){n&&"function"!=typeof n&&(i=n);const s="function"==typeof n?n:void 0,r=new pm(e,t,i);return e=>J(()=>r,s)(e)}const gm={headers:new Nd({"Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})};let ym=(()=>{class e{constructor(e){this.http=e,this.errorUrl="/WebLogger/"}logError(e,t,n){var i=null,s=null,r=null,o=null;try{"undefined"!=typeof navigator&&(void 0!==navigator.userAgent&&(i=navigator.userAgent),void 0!==navigator.cookieEnabled&&(s=navigator.cookieEnabled),void 0!==navigator.platform&&(r=navigator.platform)),"undefined"!=typeof window&&void 0!==window.location&&void 0!==window.location.href&&(o=window.location.href),null!=e&&(e=e.toString());let a=JSON.stringify({message:e,url:t,line:n,userAgent:i,cookiesEnabled:s,platform:r,location:o});this.http.post(`${this.errorUrl}LogJavascriptError`,a,gm)}catch(a){console.error(a)}}handleError(e="operation",t){return n=>(console.error(n),this.logError(`${e} failed: ${n.message}`,"Angular error handler",null),kd(t))}}return e.\u0275fac=function(t){return new(t||e)(Xn(Yd))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const vm={headers:new Nd({"Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})};let bm=(()=>{class e{constructor(e,t){this.http=e,this.errorService=t,this.configurationUrl="/configuration/",this.configurationResult=null}getConfiguration(){return this.configurationResult||(this.configurationResult=this.http.get(`${this.configurationUrl}getConfiguration`,vm).pipe(em(this.errorService.handleError("getConfiguration")),mm(1),U())),this.configurationResult}}return e.\u0275fac=function(t){return new(t||e)(Xn(Yd),Xn(ym))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const wm={headers:new Nd({"Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})};let Cm=(()=>{class e{constructor(e,t){this.http=e,this.errorService=t,this.memberUrl="/member/",this.memberResult=null}getMember(){return this.memberResult||(this.memberResult=this.http.get(`${this.memberUrl}getMember`,wm).pipe(em(this.errorService.handleError("getMember")),mm(1),U())),this.memberResult}getMemberV2(){return this.memberResult=this.http.get(`${this.memberUrl}getMember`,wm).pipe(em(this.errorService.handleError("getMember"))),this.memberResult}getIMProducts(){return this.http.get(`${this.memberUrl}getIMProducts`,wm).pipe(em(this.errorService.handleError("getMember")))}setFavourite(e,t){let n=JSON.stringify({expertNickname:e,isFavourite:t});return this.http.post(`${this.memberUrl}SetFavourite`,n,wm).pipe(em(this.errorService.handleError("SetFavourite")))}setDisplayName(e){let t=JSON.stringify({displayName:e});return this.http.post(`${this.memberUrl}SetDisplayName`,t,wm).pipe(em(this.errorService.handleError("SetDisplayName")))}}return e.\u0275fac=function(t){return new(t||e)(Xn(Yd),Xn(ym))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function _m(e){return!l(e)&&e-parseFloat(e)+1>=0}function xm(e=0,t,n){let i=-1;return _m(t)?i=Number(t)<1?1:Number(t):E(t)&&(n=t),E(n)||(n=Mf),new v(t=>{const s=_m(e)?e:+e-n.now();return n.schedule(Sm,s,{index:0,period:i,subscriber:t})})}function Sm(e){const{index:t,period:n,subscriber:i}=e;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}class Em{constructor(e,t){this.notifier=e,this.source=t}call(e,t){return t.subscribe(new Im(e,this.notifier,this.source))}}class Im extends B{constructor(e,t,n){super(e),this.notifier=t,this.source=n}error(e){if(!this.isStopped){let n=this.errors,i=this.retries,s=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{n=new x;try{const{notifier:e}=this;i=e(n)}catch(t){return super.error(t)}s=V(i,new L(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=s,n.next(e)}}_unsubscribe(){const{errors:e,retriesSubscription:t}=this;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:e}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)}}class Tm{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new km(e,this.delay,this.scheduler))}}class km extends f{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,i=e.scheduler,s=e.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const t=Math.max(0,n[0].time-i.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(km.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new Om(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(cm.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(cm.createComplete()),this.unsubscribe()}}class Om{constructor(e,t){this.time=e,this.notification=t}}const Am=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();function Pm(e){return t=>0===e?am():t.lift(new Dm(e))}class Dm{constructor(e){if(this.total=e,this.total<0)throw new Am}call(e,t){return t.subscribe(new Nm(e,this.total))}}class Nm extends f{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function Rm(){}function Fm(e,t,n){return function(i){return i.lift(new Mm(e,t,n))}}class Mm{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new Lm(e,this.nextOrObserver,this.error,this.complete))}}class Lm extends f{constructor(e,t,n,s){super(e),this._tapNext=Rm,this._tapError=Rm,this._tapComplete=Rm,this._tapError=n||Rm,this._tapComplete=s||Rm,i(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Rm,this._tapError=t.error||Rm,this._tapComplete=t.complete||Rm)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function Bm(e,t){return"function"==typeof t?n=>n.pipe(Bm((n,i)=>M(e(n,i)).pipe(I((e,s)=>t(n,e,i,s))))):t=>t.lift(new Vm(e))}class Vm{constructor(e){this.project=e}call(e,t){return t.subscribe(new qm(e,this.project))}}class qm extends B{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new L(this),i=this.destination;i.add(n),this.innerSubscription=V(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}class jm{constructor(e,t){this.count=e,this.source=t}call(e,t){return t.subscribe(new Qm(e,this.count,this.source))}}class Qm extends f{constructor(e,t,n){super(e),this.count=t,this.source=n}error(e){if(!this.isStopped){const{source:t,count:n}=this;if(0===n)return super.error(e);n>-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}}}function $m(e){return t=>t.lift(new Hm(e))}class Hm{constructor(e){this.notifier=e}call(e,t){const n=new Um(e),i=V(this.notifier,new L(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}class Um extends B{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const Wm={headers:new Nd({"Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})};let Gm=(()=>{class e{constructor(e,t){this.http=e,this.errorService=t,this.chatUrl="/onlineChatMessenger/",this.stopPolling=new x,this.command=new Zf,this.guid=null}refreshMessages(){return this.refreshMessages$.pipe(Fm(()=>console.log("data sent to subscriber")))}createNewPsychicReadingRequest(e,t,n,i){let s=JSON.stringify({onlineChatTypeId:e,productId:t,onclineChatData:n,expertId:i});return this.http.post(`${this.chatUrl}CreateNewPsychicReadingRequest`,s,Wm).pipe(em(this.errorService.handleError("CreateNewPsychicReadingRequest")))}initialiseViewRequest(){return this.http.get(`${this.chatUrl}InitialiseViewRequest`,Wm).pipe(em(this.errorService.handleError("InitialiseViewRequest")))}doMessengerCallback(e){let t=JSON.stringify(e);return this.http.post(`${this.chatUrl}MessengerCallbackHandler`,t,Wm).pipe(em(this.errorService.handleError("MessengerCallbackHandler")))}doMessengerCallback_V2(e){let t=JSON.stringify(e);this.refreshMessages$=xm(1,zf.chatPollingInterval).pipe(Bm(()=>this.http.post(`${this.chatUrl}MessengerCallbackHandler`,t,Wm)),function(e=-1){return t=>t.lift(new jm(e,t))}(),Fm(e=>t=this.bodyParameters(e.CallbackResponse.LastMessageSent,e.OnlineChat.Guid)),$m(this.stopPolling))}doMessengerCallback_V3(e){let t=JSON.stringify(e);return xm(1,zf.chatPollingInterval).pipe(Bm(()=>this.http.post(`${this.chatUrl}MessengerCallbackHandler`,t,Wm)),(n=e=>e.pipe(function(e,t=Mf){var n;const i=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new Tm(i,t))}(zf.chatRetryDelay),Pm(zf.chatRetryAttempts),function(...e){return t=>t.lift.call(function(...e){return $(1)(kd(...e))}(t,...e))}(lm("connection issue!"))),e=>e.lift(new Em(n,e))),Fm(e=>t=this.bodyParameters(e.CallbackResponse.LastMessageSent,e.OnlineChat.Guid)),$m(this.stopPolling));var n}updateContent(e){this.content=e}cancelPsychicReading(e){let t=JSON.stringify({guid:e});return this.http.post(`${this.chatUrl}CancelPsychicReadingRequested`,t,Wm).pipe(em(this.errorService.handleError("CancelPsychicReadingRequested")))}endPsychicReading(e){let t=JSON.stringify({guid:e});return this.http.post(`${this.chatUrl}EndPsychicReadingRequested`,t,Wm).pipe(em(this.errorService.handleError("EndPsychicReadingRequested")))}topUpSubscriptionPurchase(e,t,n,i){let s=JSON.stringify({onlineChatData:e,productId:t,offerId:n,amountToPay:i});return this.http.post(`${this.chatUrl}TopUpSubscriptionPurchaseRequested`,s,Wm).pipe(em(this.errorService.handleError("TopUpSubscriptionPurchaseRequested")))}bodyParameters(e,t){return this.messengerCallbackHandler=new Xf,this.messengerCallbackCommand=new Zf,this.messengerCallbackCommand.Command="refresh",this.messengerCallbackCommand.Content=""==this.content?"":this.content,this.messengerCallbackCommand.LastMessageSent=e,this.messengerCallbackHandler.CallbackCommand=this.messengerCallbackCommand,this.messengerCallbackHandler.Guid=t,JSON.stringify(this.messengerCallbackHandler)}reportChat(e,t,n){let i=JSON.stringify({onlineChatData:e,reportChatNoteTypeId:t,reportChatNoteBody:n});return this.http.post(`${this.chatUrl}ReportChatRequested`,i,Wm).pipe(em(this.errorService.handleError("ReportChatRequested")))}ngOnDestroy(){this.stopPolling.next()}}return e.\u0275fac=function(t){return new(t||e)(Xn(Yd),Xn(ym))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),zm=(()=>{class e{constructor(e,t,n){this.configurationService=e,this.memberService=t,this.chatService=n,this.retryPollingTime=5010,this.config=null,this.refreshConfigInProgress=!1,this.member=null,this.refreshMemberInProgress=!1,this.currentOnlineChat=null,this.refreshCurrentOnlineChatInProgress=!1,this.componentToHandleOnlineChatInProgress=null,this._componentsToHandleOnlineChatResume=new Map,this.callBackRequestedFor=null,this.queuedFor=null,this.signalCloseTalk$=new Wa,this.signalCallBackRequested$=new Wa,this.signalQueuedExpert$=new Wa,this.signalAddFavourtie$=new Wa,this.signalAddReview$=new Wa,this.signalDisplayNameChange$=new Wa,this.signalUpdateMemberBalance$=new Wa,this.signalUpdateMember$=new Wa,this.signalCurrentOnlineChat$=new Wa,this.signalConfig$=new Wa,this.signalMember$=new Wa,this.signalCallBackRequested$.subscribe(e=>{this.callBackRequestedFor=e}),this.signalQueuedExpert$.subscribe(e=>{this.queuedFor=e}),this.signalCurrentOnlineChat$.subscribe(e=>{this.currentOnlineChat=e}),this.signalConfig$.subscribe(e=>{this.config=e}),this.signalMember$.subscribe(e=>{this.member=e})}get componentsToHandleOnlineChatResume(){return this._componentsToHandleOnlineChatResume||(this._componentsToHandleOnlineChatResume=new Map),this._componentsToHandleOnlineChatResume}refreshCurrentOnlineChat(){if(!this.refreshCurrentOnlineChatInProgress){this.refreshCurrentOnlineChatInProgress=!0;let e=new Xf,t=new Zf;t.Command="refresh_all",t.Content="",t.LastMessageSent=null,e.CallbackCommand=t,e.Guid=null,this.chatService.doMessengerCallback(e).subscribe(e=>{e&&e.ServiceOperationOutcome==Gf.Success&&this.signalCurrentOnlineChat$.emit(e),this.refreshCurrentOnlineChatInProgress=!1})}}amOnlineChatResumeHandler(e,t){return null!==e&&null!==t&&(this.componentsToHandleOnlineChatResume.has(t)?e===this.componentsToHandleOnlineChatResume.get(t):(this.componentsToHandleOnlineChatResume.set(t,e),!0))}isOnlineChatResumeHandler(e){var t;return null===(t=this.componentsToHandleOnlineChatResume)||void 0===t?void 0:t.has(e)}amOnlineChatInProgressHandler(e){return null!==e&&(null===this.componentToHandleOnlineChatInProgress?(this.componentToHandleOnlineChatInProgress=e,!0):e===this.componentToHandleOnlineChatInProgress)}isOnlineChatInProgressHandler(){return this.componentToHandleOnlineChatInProgress}getConfig(e=(()=>{})){if(this.config)null!==e&&e(this.config);else{if(null!==e){let t=this.signalConfig$.subscribe(n=>{e(n),t.unsubscribe()})}this.refreshConfig()}}refreshConfig(){this.refreshConfigInProgress||(this.refreshConfigInProgress=!0,this.configurationService.getConfiguration().subscribe(e=>{e&&e.ServiceOperationOutcome==Gf.Success&&e.Config?(this.signalConfig$.emit(e.Config),this.refreshConfigInProgress=!1):setTimeout(()=>{this.refreshConfig()},this.retryPollingTime)}))}getMember(e=(()=>{})){if(this.member)null!==e&&e(this.member);else{if(null!==e){let t=this.signalMember$.subscribe(n=>{e(n),t.unsubscribe()})}this.refreshMember()}}refreshMember(){this.refreshMemberInProgress||(this.refreshMemberInProgress=!0,this.memberService.getMember().subscribe(e=>{e&&e.ServiceOperationOutcome==Gf.Success?(this.signalMember$.emit(e.MemberBasicData),this.refreshMemberInProgress=!1):setTimeout(()=>{this.refreshMember()},this.retryPollingTime)}))}}return e.\u0275fac=function(t){return new(t||e)(Xn(bm),Xn(Cm),Xn(Gm))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ym={headers:new Nd({"Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})};let Km=(()=>{class e{constructor(e,t){this.http=e,this.errorService=t,this.expertUrl="/expert/",this.expertsStatusResult=new v,this.pollingTimeStamp=0,this.expertsStatusChange$=new Wa}getExpert(e,t,n,i){let s=JSON.stringify({expertId:e,thumbnailImageWidth:t,thumbnailImageHeight:n,includeReviewsAndQuestionsAnswers:i});return this.http.post(`${this.expertUrl}getExpert`,s,Ym).pipe(em(this.errorService.handleError("getExpert")))}getExpertsByIdsWithQuestionsAndAnswersAndReviews(e,t,n,i){let s=JSON.stringify({expertsIds:e,thumbnailImageWidth:t,thumbnailImageHeight:n,includeReviewsAndQuestionsAnswers:i});return this.http.post(`${this.expertUrl}GetExpertsByIds`,s,Ym).pipe(em(this.errorService.handleError("GetExpertsByIds")))}getExperts(e){let t=JSON.stringify({filters:e});return this.http.post(`${this.expertUrl}getExperts`,t,Ym).pipe(em(this.errorService.handleError("getExperts")))}getCachedExperts(e){let t=JSON.stringify({key:e});return this.http.post(`${this.expertUrl}getCachedExperts`,t,Ym).pipe(em(this.errorService.handleError("getCachedExperts")))}getExpertsStatus(e){if(Date.now()-this.pollingTimeStamp>=5e3){this.pollingTimeStamp=Date.now();let t=e?JSON.stringify({expertsId:e}):null;this.expertsStatusResult=this.http.post(`${this.expertUrl}GetExpertsStatus`,t,Ym).pipe(em(this.errorService.handleError("getExpertsStatus")),Fm(e=>{this.expertsStatusChange$.emit(e)}),mm(1),U())}return this.expertsStatusResult}getExpertReviews(e,t,n){let i=JSON.stringify({expertId:e,reviewsCount:t,page:n});return this.http.post(`${this.expertUrl}GetExpertReviews`,i,Ym).pipe(em(this.errorService.handleError("getExpertReviews")))}setExpertReview(e){let t=JSON.stringify({review:e});return this.http.post(`${this.expertUrl}SetExpertReview`,t,Ym).pipe(em(this.errorService.handleError("SetExpertReview")))}}return e.\u0275fac=function(t){return new(t||e)(Xn(Yd),Xn(ym))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Jm={headers:new Nd({"Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})};let Zm=(()=>{class e{constructor(e,t){this.http=e,this.errorService=t,this.queueUrl="/queue/",this.queuesResult=new v,this.pollingTimeStamp=0,this.queuesChange$=new Wa}joinQueue(e,t,n,i){let s=JSON.stringify({expertId:e,callBackNumber:t,force:n,preAuth:i});return this.http.post(`${this.queueUrl}JoinQueue`,s,Jm).pipe(em(this.errorService.handleError("JoinQueue")))}getQueue(e){let t=JSON.stringify({expertId:e});return this.http.post(`${this.queueUrl}GetQueue`,t,Jm).pipe(em(this.errorService.handleError("GetQueue")))}getQueues(e=null){if(Date.now()-this.pollingTimeStamp>=2500){this.pollingTimeStamp=Date.now();let t=JSON.stringify({expertsId:e});this.queuesResult=this.http.post(`${this.queueUrl}GetQueues`,t,Jm).pipe(em(this.errorService.handleError("GetQueues")),Fm(e=>{e&&this.queuesChange$.emit(e)}),mm(1),U())}return this.queuesResult}leaveQueue(){return this.http.post(`${this.queueUrl}LeaveQueue`,null,Jm).pipe(em(this.errorService.handleError("LeaveQueue")))}}return e.\u0275fac=function(t){return new(t||e)(Xn(Yd),Xn(ym))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Xm(e,t){if(1&e){const e=qr();Fr(0,"div",0),Fr(1,"input",4),Hr("change",function(){const t=At(e).$implicit;return Gr().onChange(t)}),Mr(),Fr(2,"label",5),go(3),Mr(),Mr()}if(2&e){const e=t.$implicit,n=Gr();ns(1),Nr("value",e)("checked",n.skillSelected(e))("id",n.expertSkillTypeClass[e]),ns(1),Nr("for",n.expertSkillTypeClass[e]),ns(1),yo(n.expertSkillTypeName[e])}}let eg=(()=>{class e{constructor(){this.filterChange=new Wa,this.resources={},this.skills=[],this.expertSkillType={},this.expertSkillTypeName={},this.expertSkillTypeClass={}}ngOnInit(){if(this.configurations&&(this.resources=this.configurations.ResourceData,this.configurations.ExpertsSkillSet)){let e=this.configurations.ExpertsSkillSet;this.expertSkillType=e.ExpertSkillType,this.expertSkillTypeName=e.ExpertSkillTypeName,this.expertSkillTypeClass=e.ExpertSkillTypeCssClass;for(let t in this.expertSkillType)isNaN(Number(t))&&this.skills.push(this.expertSkillType[t])}this.currentFilter||(this.currentFilter=new Qf)}onChange(e){if(e)if(this.currentFilter.SkillsIncludeAll){let t=this.currentFilter.SkillsIncludeAll.indexOf(e);-1==t?this.currentFilter.SkillsIncludeAll.push(e):(this.currentFilter.SkillsIncludeAll.splice(t,1),this.currentFilter.SkillsIncludeAll.length<=0&&(this.currentFilter.SkillsIncludeAll=null))}else this.currentFilter.SkillsIncludeAll=[e];else this.currentFilter.SkillsIncludeAll=null;this.filterChange.emit(this.currentFilter)}skillSelected(e){return!!this.currentFilter&&!!this.currentFilter.SkillsIncludeAll&&this.currentFilter.SkillsIncludeAll.indexOf(e)>=0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["skill-selector"]],inputs:{currentFilter:"currentFilter",configurations:"configurations"},outputs:{filterChange:"filterChange"},decls:5,vars:2,consts:[[1,"option"],["type","checkbox","value","-1","id","any-skill",3,"checked","change"],["for","any-skill"],["class","option",4,"ngFor","ngForOf"],["type","checkbox",3,"value","checked","id","change"],[3,"for"]],template:function(e,t){1&e&&(Fr(0,"div",0),Fr(1,"input",1),Hr("change",function(){return t.onChange(null)}),Mr(),Fr(2,"label",2),go(3,"Any Skill"),Mr(),Mr(),Ar(4,Xm,4,5,"div",3)),2&e&&(ns(1),Nr("checked",!(null!=t.currentFilter&&t.currentFilter.SkillsIncludeAll)),ns(3),Nr("ngForOf",t.skills))},directives:[au],styles:[""],data:{animation:[rc("ShowHideTrigger",[uc(":enter",[lc({opacity:0,transform:"scaleY(0)"}),oc("0.5s",lc({opacity:1,transform:"scaleY(1)"}))]),uc(":leave",[oc("0.5s",lc({opacity:0,transform:"scaleY(0)"}))])])]}}),e})(),tg=(()=>{class e{constructor(){this.filterChange=new Wa,this.resources={},this.subSelection="All",this.onlineOnly=!1}ngOnInit(){this.configurations&&(this.resources=this.configurations.ResourceData),this.currentFilter?(this.onlineOnly=this.currentFilter.OnlineOnly,this.subSelection=this.currentFilter.ReturnFavouritesOnly?"Favourite":this.currentFilter.MinimumRating||this.currentFilter.MinimumVotes?"TopRated":"All"):this.currentFilter=new Qf}onSubSelection(e){switch(e){case"All":this.currentFilter.MinimumRating=null,this.currentFilter.MinimumVotes=null,this.currentFilter.ReturnFavouritesOnly=null;break;case"TopRated":this.currentFilter.MinimumRating=this.configurations.TopRatedMinimumRating,this.currentFilter.MinimumVotes=this.configurations.TopRatedMinimumVotes,this.currentFilter.ReturnFavouritesOnly=null;break;case"Favourite":if(!this.member||!this.member.IsLoggedIn)return void(this.subSelection="All");this.currentFilter.MinimumRating=null,this.currentFilter.MinimumVotes=null,this.currentFilter.ReturnFavouritesOnly=!0}this.filterChange.emit(this.currentFilter)}onOnlineOnlyChange(){this.currentFilter.OnlineOnly=this.onlineOnly,this.filterChange.emit(this.currentFilter)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["filter-selector"]],inputs:{currentFilter:"currentFilter",configurations:"configurations",member:"member"},outputs:{filterChange:"filterChange"},decls:16,vars:8,consts:[[1,"option"],["type","radio","name","Subselection","id","filter-all","value","All",3,"ngModel","ngModelChange"],["for","filter-all"],["type","radio","name","Subselection","id","filter-top-rated","value","TopRated",3,"ngModel","ngModelChange"],["for","filter-top-rated"],["type","radio","name","Subselection","id","filter-favourite","value","Favourite",3,"ngModel","disabled","ngModelChange"],["for","filter-favourite"],["type","checkbox","id","filter-online-only",3,"ngModel","ngModelChange"],["for","filter-online-only"]],template:function(e,t){1&e&&(Fr(0,"div",0),Fr(1,"input",1),Hr("ngModelChange",function(e){return t.subSelection=e})("ngModelChange",function(e){return t.onSubSelection(e)}),Mr(),Fr(2,"label",2),go(3,"All"),Mr(),Mr(),Fr(4,"div",0),Fr(5,"input",3),Hr("ngModelChange",function(e){return t.subSelection=e})("ngModelChange",function(e){return t.onSubSelection(e)}),Mr(),Fr(6,"label",4),go(7,"Top Rated"),Mr(),Mr(),Fr(8,"div",0),Fr(9,"input",5),Hr("ngModelChange",function(e){return t.subSelection=e})("ngModelChange",function(e){return t.onSubSelection(e)}),Mr(),Fr(10,"label",6),go(11),Mr(),Mr(),Fr(12,"div",0),Fr(13,"input",7),Hr("ngModelChange",function(e){return t.onlineOnly=e})("ngModelChange",function(){return t.onOnlineOnlyChange()}),Mr(),Fr(14,"label",8),go(15,"Online Only"),Mr(),Mr()),2&e&&(ns(1),Nr("ngModel",t.subSelection),ns(4),Nr("ngModel",t.subSelection),ns(3),io("aspNetDisabled",!(t.member&&t.member.IsLoggedIn)),ns(1),Nr("ngModel",t.subSelection)("disabled",!(t.member&&t.member.IsLoggedIn)),ns(2),yo(t.resources.FavouriteFirstUpperCase),ns(2),Nr("ngModel",t.onlineOnly))},directives:[hf,yp,jp,af,fp],styles:[""],data:{animation:[rc("ShowHideTrigger",[uc(":enter",[lc({opacity:0,transform:"scaleY(0)"}),oc("0.5s",lc({opacity:1,transform:"scaleY(1)"}))]),uc(":leave",[oc("0.5s",lc({opacity:0,transform:"scaleY(0)"}))])])]}}),e})();function ng(e,t){if(1&e){const e=qr();Fr(0,"skill-selector",3),Hr("filterChange",function(t){return At(e),Gr().onFilterChange(t)}),Mr()}if(2&e){const e=Gr();Nr("currentFilter",e.currentFilter)("configurations",e.configurations)}}function ig(e,t){if(1&e){const e=qr();Fr(0,"filter-selector",4),Hr("filterChange",function(t){return At(e),Gr().onFilterChange(t)}),Mr()}if(2&e){const e=Gr();Nr("currentFilter",e.currentFilter)("configurations",e.configurations)("member",e.member)}}let sg=(()=>{class e{constructor(){this.showSkillSelector=!0,this.showFilterSelector=!0,this.showChange=new Wa,this.filterChange=new Wa}ngOnInit(){this.currentFilter||(this.currentFilter=new Qf)}close(){this.showChange.emit(!1)}onFilterChange(e){this.filterChange.emit(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["find"]],inputs:{currentFilter:"currentFilter",showSkillSelector:"showSkillSelector",showFilterSelector:"showFilterSelector",configurations:"configurations",member:"member"},outputs:{showChange:"showChange",filterChange:"filterChange"},decls:3,vars:3,consts:[[1,"find-container"],[3,"currentFilter","configurations","filterChange",4,"ngIf"],[3,"currentFilter","configurations","member","filterChange",4,"ngIf"],[3,"currentFilter","configurations","filterChange"],[3,"currentFilter","configurations","member","filterChange"]],template:function(e,t){1&e&&(Fr(0,"div",0),Ar(1,ng,1,2,"skill-selector",1),Ar(2,ig,1,3,"filter-selector",2),Mr()),2&e&&(Nr("@ShowHideTrigger",void 0),ns(1),Nr("ngIf",t.showSkillSelector),ns(1),Nr("ngIf",t.showFilterSelector))},directives:[uu,eg,tg],styles:[""],data:{animation:[rc("ShowHideTrigger",[uc(":enter",[lc({opacity:0,transform:"translateY(-25px)"}),oc("0.5s",lc({opacity:1,transform:"translateY(0px)"}))]),uc(":leave",[oc("0.5s",lc({opacity:0,transform:"translateY(-25px)"}))])])]}}),e})();class rg{}var og=function(e){return e[e.Unknown=0]="Unknown",e[e.QueueOpen=1]="QueueOpen",e[e.QueueFull=2]="QueueFull",e[e.QueueError=3]="QueueError",e}({});let ag=(()=>{class e{updateUrl(){this.src=this.default}load(){this.className="image-loaded"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ye({type:e,selectors:[["img","default",""]],hostVars:3,hostBindings:function(e,t){1&e&&Hr("error",function(){return t.updateUrl()})("load",function(){return t.load()}),2&e&&(xo("src",t.src,ci),so(t.className))},inputs:{src:"src",default:"default"}}),e})();var lg=function(e){return e[e.KoomaUk=12]="KoomaUk",e[e.KoomaEire=21]="KoomaEire",e[e.APC=1e3]="APC",e}({});function ug(e,t){1&e&&(Fr(0,"h4"),go(1,"New Customer Offer"),Mr())}function cg(e,t){1&e&&(Fr(0,"h4"),go(1,"Special Offer"),Mr())}function hg(e,t){if(1&e&&(Fr(0,"p",8),go(1),Fr(2,"span",9),go(3,"redeem now"),Mr(),Mr()),2&e){const e=Gr(2);ns(1),bo(" ",e.product.AmountToPay.FullFormattedValue," for ",e.product.CallLength," minutes - ")}}function dg(e,t){if(1&e&&(Fr(0,"p",8),go(1),Fr(2,"span",9),go(3,"redeem now"),Mr(),Mr()),2&e){const e=Gr(2);ns(1),bo(" Get a ",e.product.CallLength," min ",null==e.resources?null:e.resources.reading," for free - ")}}function pg(e,t){if(1&e&&(Fr(0,"p",8),go(1),Fr(2,"span",9),go(3,"redeem now"),Mr(),Mr()),2&e){const e=Gr(2);ns(1),wo(" ",e.product.AmountToPay.FullFormattedValue," for ",e.product.CallLength," minutes plus an extra ",e.product.OfferBonusAmount.FullFormattedValue," BONUS for free - ")}}function fg(e,t){if(1&e&&(Fr(0,"i"),go(1),Mr()),2&e){const e=Gr(2);ns(1),vo("SAVE ",e.product.SaveDiscount,"%")}}function mg(e,t){if(1&e&&(Fr(0,"i"),go(1),Mr()),2&e){const e=Gr(2);ns(1),vo("",e.product.SaveBonus,"% BONUS ")}}function gg(e,t){1&e&&(Fr(0,"i"),go(1,"Free"),Mr())}function yg(e,t){1&e&&Lr(0,"i")}function vg(e,t){if(1&e&&(Fr(0,"div",1),Fr(1,"a",2),Lr(2,"div"),Fr(3,"div"),Ar(4,ug,2,0,"h4",3),Ar(5,cg,2,0,"h4",3),Ar(6,hg,4,2,"p",4),Ar(7,dg,4,2,"p",4),Ar(8,pg,4,3,"p",4),Mr(),Fr(9,"div"),Fr(10,"div",5),Lr(11,"div",6),Fr(12,"div",7),Ar(13,fg,2,1,"i",3),Ar(14,mg,2,1,"i",3),Ar(15,gg,2,0,"i",3),Ar(16,yg,1,0,"i",3),Mr(),Mr(),Mr(),Mr(),Mr()),2&e){const e=Gr();ns(4),Nr("ngIf",!e.loggedin),ns(1),Nr("ngIf",e.loggedin),ns(1),Nr("ngIf",e.product.OfferDiscountAmount&&e.product.OfferDiscountAmount.Digits>0&&e.product.AmountToPay.Digits>0),ns(1),Nr("ngIf",e.product.OfferDiscountAmount&&e.product.OfferDiscountAmount.Digits>0&&0==e.product.AmountToPay.Digits),ns(1),Nr("ngIf",e.product.OfferBonusAmount&&e.product.OfferBonusAmount.Digits>0),ns(5),Nr("ngIf",e.product.OfferDiscountAmount&&e.product.OfferDiscountAmount.Digits>0&&e.product.AmountToPay.Digits>0),ns(1),Nr("ngIf",e.product.OfferBonusAmount&&e.product.OfferBonusAmount.Digits>0),ns(1),Nr("ngIf",e.product.OfferDiscountAmount&&e.product.OfferDiscountAmount.Digits>0&&0==e.product.AmountToPay.Digits),ns(1),Nr("ngIf",e.product.OfferDiscountAmount||e.product.OfferBonusAmount)}}let bg=(()=>{class e{constructor(){this.resources={}}ngOnInit(){this.configurations&&(this.resources=this.configurations.ResourceData)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["best-product"]],inputs:{product:"product",loggedin:"loggedin",configurations:"configurations"},decls:1,vars:1,consts:[["class","specialoffer row",4,"ngIf"],[1,"specialoffer","row"],["href","/My-Account/MakePayment/"],[4,"ngIf"],["class","smallprint",4,"ngIf"],[1,"offer_icon"],[1,"offer_icon_container"],[1,"offer_icon_content"],[1,"smallprint"],[1,"redeem","nowrap"]],template:function(e,t){1&e&&Ar(0,vg,17,9,"div",0),2&e&&Nr("ngIf",t.product&&(t.product.OfferDiscountAmount&&t.product.OfferDiscountAmount.Digits>0||t.product.OfferBonusAmount&&t.product.OfferBonusAmount.Digits>0))},directives:[uu],styles:[""]}),e})();var wg=function(e){return e[e.IvrReading=1]="IvrReading",e[e.ImTopUp=2]="ImTopUp",e[e.ImPpmReading=3]="ImPpmReading",e[e.ImPpmTopUp=4]="ImPpmTopUp",e[e.ImReading=5]="ImReading",e[e.PayAsYouGo=6]="PayAsYouGo",e[e.GeneralTopUp=7]="GeneralTopUp",e}({});function Cg(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr().$implicit,t=Gr(2);ns(1),bo("",t.showOfferPrice?e.AmountToPay.FullFormattedValue:e.ProductPrice.FullFormattedValue," for up to ",e.CallLength," minutes")}}function _g(e,t){1&e&&(Fr(0,"span"),go(1,"or Pay as you Go"),Mr())}function xg(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr(2).$implicit;ns(1),vo("get ",e.OfferBonusAmount.FullFormattedValue," free")}}function Sg(e,t){1&e&&(Br(0),go(1,"Credit"),Vr())}function Eg(e,t){if(1&e&&(Fr(0,"span"),go(1),Ar(2,xg,2,1,"ng-container",6),Ar(3,Sg,2,0,"ng-container",6),Mr()),2&e){const e=Gr().$implicit,t=Gr(2);ns(1),vo("Buy ",t.showOfferPrice?e.AmountToPay.FullFormattedValue:e.ProductPrice.FullFormattedValue," "),ns(1),Nr("ngIf",t.showOfferPrice),ns(1),Nr("ngIf",!t.showOfferPrice)}}function Ig(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr().$implicit,t=Gr(2);ns(1),vo(" (",t.showOfferPrice?e.PricePerMinute.FullFormattedValue:e.PricePerMinuteStandard.FullFormattedValue,"/min)")}}function Tg(e,t){if(1&e&&(Fr(0,"p",3),Fr(1,"span",4),Ar(2,Cg,2,2,"span",5),Ar(3,_g,2,0,"span",5),Ar(4,Eg,4,3,"span",5),Ar(5,Ig,2,1,"span",6),Mr(),Mr()),2&e){const e=t.$implicit,n=Gr(2);ns(1),Nr("ngSwitch",e.ProductTypeId),ns(1),Nr("ngSwitchCase",n.productType.IvrReading),ns(1),Nr("ngSwitchCase",n.productType.PayAsYouGo),ns(1),Nr("ngSwitchCase",n.productType.GeneralTopUp),ns(1),Nr("ngIf",n.showCreditCardPricePerMinute)}}function kg(e,t){if(1&e&&(Fr(0,"div",1),Ar(1,Tg,6,5,"p",2),Mr()),2&e){const e=Gr();ns(1),Nr("ngForOf",e.products)}}let Og=(()=>{class e{constructor(){this.showCreditCardPricePerMinute=!0,this.productType=wg}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["product-list"]],inputs:{products:"products",loggedin:"loggedin",showOfferPrice:"showOfferPrice",showCreditCardPricePerMinute:"showCreditCardPricePerMinute"},decls:1,vars:1,consts:[["class","row",4,"ngIf"],[1,"row"],["class","smallprint",4,"ngFor","ngForOf"],[1,"smallprint"],[1,"nowrap",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngIf"]],template:function(e,t){1&e&&Ar(0,kg,2,1,"div",0),2&e&&Nr("ngIf",t.products)},directives:[uu,au,pu,fu],styles:[""]}),e})();var Ag=function(e){return e[e["modal-error"]=1]="modal-error",e[e["modal-warning"]=2]="modal-warning",e[e["modal-info"]=3]="modal-info",e[e["modal-default"]=4]="modal-default",e}({});function Pg(e,t){if(1&e&&(Fr(0,"p",7),go(1),Mr()),2&e){const e=Gr();ns(1),vo(" ",e.modal.Title," ")}}function Dg(e,t){if(1&e&&(Fr(0,"p"),go(1),Mr()),2&e){const e=t.$implicit;ns(1),vo(" ",e," ")}}function Ng(e,t){if(1&e&&(Br(0),Ar(1,Dg,2,1,"p",8),Vr()),2&e){const e=Gr();ns(1),Nr("ngForOf",e.modal.Body)}}function Rg(e,t){if(1&e){const e=qr();Fr(0,"a",9),Hr("click",function(){return At(e),Gr().modal.ActionOk()}),go(1),Mr()}if(2&e){const e=Gr();io("long-text",e.modal.ActionOkText),ns(1),yo(e.modal.ActionOkText?e.modal.ActionOkText:"OK")}}function Fg(e,t){if(1&e){const e=qr();Fr(0,"a",9),Hr("click",function(){return At(e),Gr().modal.ActionYes()}),go(1),Mr()}if(2&e){const e=Gr();io("long-text",e.modal.ActionYesText),ns(1),yo(e.modal.ActionYesText?e.modal.ActionYesText:"Yes")}}function Mg(e,t){if(1&e){const e=qr();Fr(0,"a",10),Hr("click",function(){return At(e),Gr().modal.ActionNo()}),go(1),Mr()}if(2&e){const e=Gr();io("long-text",e.modal.ActionNoText),ns(1),yo(e.modal.ActionNoText?e.modal.ActionNoText:"No")}}function Lg(e,t){if(1&e&&(Fr(0,"span",14),go(1),Mr()),2&e){const e=Gr(2);ns(1),yo(e.modal.InfoTitle)}}function Bg(e,t){if(1&e&&(Fr(0,"p"),go(1),Mr()),2&e){const e=t.$implicit;ns(1),vo(" ",e," ")}}function Vg(e,t){if(1&e&&(Fr(0,"a",18),go(1),Mr()),2&e){const e=Gr(3);Nr("href",e.modal.InfoLink,ci),ns(1),yo(e.modal.InfoLinkText)}}function qg(e,t){if(1&e&&(Fr(0,"div",15),Fr(1,"span"),Fr(2,"span"),go(3,"?"),Mr(),Mr(),Fr(4,"div",16),Ar(5,Bg,2,1,"p",8),Ar(6,Vg,2,2,"a",17),Mr(),Mr()),2&e){const e=Gr(2);ns(5),Nr("ngForOf",e.modal.InfoBody),ns(1),Nr("ngIf",e.modal.InfoLink&&e.modal.InfoLinkText)}}function jg(e,t){if(1&e&&(Fr(0,"div",11),Ar(1,Lg,2,1,"span",12),Ar(2,qg,7,2,"div",13),Mr()),2&e){const e=Gr();ns(1),Nr("ngIf",e.modal.InfoTitle),ns(1),Nr("ngIf",e.modal.InfoBody)}}let Qg=(()=>{class e{constructor(){}ngOnInit(){this.modal&&this.modal.Type&&(this.modalTypeClass=Ag[this.modal.Type])}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["modal"]],hostVars:2,hostBindings:function(e,t){2&e&&so(t.modalTypeClass)},inputs:{modal:"modal"},decls:8,vars:6,consts:[[1,"modal-content"],["class","title",4,"ngIf"],[4,"ngIf"],[1,"modal-buttons"],["tabindex","0","class","green_btn modal-button with_hover",3,"long-text","click",4,"ngIf"],["tabindex","0","class","orange_btn modal-button with_hover",3,"long-text","click",4,"ngIf"],["class","modal-info",4,"ngIf"],[1,"title"],[4,"ngFor","ngForOf"],["tabindex","0",1,"green_btn","modal-button","with_hover",3,"click"],["tabindex","0",1,"orange_btn","modal-button","with_hover",3,"click"],[1,"modal-info"],["class","smallprint",4,"ngIf"],["class","question",4,"ngIf"],[1,"smallprint"],[1,"question"],[1,"tooltip"],[3,"href",4,"ngIf"],[3,"href"]],template:function(e,t){1&e&&(Fr(0,"div",0),Ar(1,Pg,2,1,"p",1),Ar(2,Ng,2,1,"ng-container",2),Mr(),Fr(3,"div",3),Ar(4,Rg,2,3,"a",4),Ar(5,Fg,2,3,"a",4),Ar(6,Mg,2,3,"a",5),Mr(),Ar(7,jg,3,2,"div",6)),2&e&&(ns(1),Nr("ngIf",t.modal&&t.modal.Title),ns(1),Nr("ngIf",t.modal&&t.modal.Body),ns(2),Nr("ngIf",t.modal&&t.modal.ActionOk),ns(1),Nr("ngIf",t.modal&&t.modal.ActionYes),ns(1),Nr("ngIf",t.modal&&t.modal.ActionNo),ns(1),Nr("ngIf",t.modal&&(t.modal.InfoTitle||t.modal.InfoBody)))},directives:[uu,au],styles:[""]}),e})();var $g=function(e){return e[e.Ready=-1]="Ready",e[e.Unknown=0]="Unknown",e[e.Requested=10]="Requested",e[e.Processing=20]="Processing",e[e.CallInProgress=30]="CallInProgress",e[e.Cancelled=100]="Cancelled",e[e.Error=110]="Error",e[e.CallNotAnswered=120]="CallNotAnswered",e[e.CallNotAccepted=130]="CallNotAccepted",e[e.AccountNotEntered=131]="AccountNotEntered",e[e.CustomerBusy=140]="CustomerBusy",e[e.ExpertBusy=150]="ExpertBusy",e[e.InsufficientCredit=160]="InsufficientCredit",e[e.ExpertNotAccepted=170]="ExpertNotAccepted",e[e.ExpertNoAnswer=180]="ExpertNoAnswer",e[e.CustomerHungUp=190]="CustomerHungUp",e[e.CallAnswered=200]="CallAnswered",e[e.CallCompleted=300]="CallCompleted",e}({}),Hg=function(e){return e[e.Waiting=1]="Waiting",e[e.Error=2]="Error",e[e.Completed=3]="Completed",e[e.CompletedAndClose=4]="CompletedAndClose",e}({});const Ug={headers:new Nd({"Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})};let Wg=(()=>{class e{constructor(e,t){this.http=e,this.errorService=t,this.callbackUrl="/callback/",this.statusConfig=null,this.defaultPollingTime=1500,this.defaultCloseTimer=5e3}getStatusConfig(e){return null==this.statusConfig&&(this.statusConfig=new Map,this.statusConfig.set($g.Ready,{Status:$g.Ready,Type:Hg.Completed,Label:"Call Me Now",Icon:""}),this.statusConfig.set($g.Unknown,{Status:$g.Unknown,Type:Hg.Waiting,Label:"Waiting",Icon:"icon-wait"}),this.statusConfig.set($g.Requested,{Status:$g.Requested,Type:Hg.Waiting,Label:"Requested",Icon:"icon-wait"}),this.statusConfig.set($g.Processing,{Status:$g.Processing,Type:Hg.Waiting,Label:"Processing",Icon:"icon-wait"}),this.statusConfig.set($g.CallInProgress,{Status:$g.CallInProgress,Type:Hg.Waiting,Label:"Call In Progress",Icon:"icon-wait"}),this.statusConfig.set($g.Cancelled,{Status:$g.Cancelled,Type:Hg.Completed,Label:"Call Cancelled",Icon:""}),this.statusConfig.set($g.Error,{Status:$g.Error,Type:Hg.Error,Label:"Error",Icon:""}),this.statusConfig.set($g.CallNotAnswered,{Status:$g.CallNotAnswered,Type:Hg.Completed,Label:"Call Not Answered",Icon:""}),this.statusConfig.set($g.CallNotAccepted,{Status:$g.CallNotAccepted,Type:Hg.Completed,Label:"Call Not Accepted",Icon:""}),this.statusConfig.set($g.AccountNotEntered,{Status:$g.AccountNotEntered,Type:Hg.Completed,Label:"Account Not Entered",Icon:""}),this.statusConfig.set($g.CustomerBusy,{Status:$g.CustomerBusy,Type:Hg.Completed,Label:"Your Line is Busy",Icon:""}),this.statusConfig.set($g.ExpertBusy,{Status:$g.ExpertBusy,Type:Hg.Completed,Label:"Expert Busy",Icon:""}),this.statusConfig.set($g.InsufficientCredit,{Status:$g.InsufficientCredit,Type:Hg.Completed,Label:"Insufficient Credit",Icon:""}),this.statusConfig.set($g.ExpertNotAccepted,{Status:$g.ExpertNotAccepted,Type:Hg.Completed,Label:"Expert Not Accepted",Icon:""}),this.statusConfig.set($g.ExpertNoAnswer,{Status:$g.ExpertNoAnswer,Type:Hg.Completed,Label:"Expert No Answer",Icon:""}),this.statusConfig.set($g.CustomerHungUp,{Status:$g.CustomerHungUp,Type:Hg.Completed,Label:"Customer Hung Up",Icon:""}),this.statusConfig.set($g.CallAnswered,{Status:$g.CallAnswered,Type:Hg.CompletedAndClose,Label:"Call Answered",Icon:""}),this.statusConfig.set($g.CallCompleted,{Status:$g.CallCompleted,Type:Hg.CompletedAndClose,Label:"Call Completed",Icon:""})),this.statusConfig.get(e)}request(e,t){let n=JSON.stringify({expertId:e,callBackNumber:t});return this.http.post(`${this.callbackUrl}RequestCallBack`,n,Ug).pipe(em(this.errorService.handleError("requestCallBack")))}getRequest(e){let t=JSON.stringify({expertId:e});return this.http.post(`${this.callbackUrl}GetRequestCallBack`,t,Ug).pipe(em(this.errorService.handleError("getRequestCallBack")))}cancelRequest(){return this.http.post(`${this.callbackUrl}CancelRequestCallBack`,null,Ug).pipe(em(this.errorService.handleError("cancelRequestCallBack")))}}return e.\u0275fac=function(t){return new(t||e)(Xn(Yd),Xn(ym))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Gg={headers:new Nd({"Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})};let zg=(()=>{class e{constructor(e,t){this.http=e,this.errorService=t,this.paymentUrl="/account/"}requestPayment(e,t,n){let i=JSON.stringify({productId:e,offerId:t,amountToPay:n});return this.http.post(`${this.paymentUrl}RequestPayment`,i,Gg).pipe(em(this.errorService.handleError("RequestPayment")))}getPaymentProducts(){return this.http.get(`${this.paymentUrl}GetPaymentProducts`,Gg).pipe(em(this.errorService.handleError("GetPaymentProducts")))}getSessions(){return this.http.get(`${this.paymentUrl}GetIMSessions`,Gg).pipe(em(this.errorService.handleError("GetIMSessions")))}checkSufficientCredit(e,t){let n=JSON.stringify({onlineChatTypeId:e,productId:t});return this.http.post(`${this.paymentUrl}CheckSufficientCreditForSelectedProduct`,n,Gg).pipe(em(this.errorService.handleError("CheckSufficientCreditForSelectedProduct")))}onlineChatRequestPayment(e,t,n){let i=JSON.stringify({productId:e,offerId:t,amountToPay:n});return this.http.post(`${this.paymentUrl}OnlineChatRequestPayment`,i,Gg).pipe(em(this.errorService.handleError("OnlineChatRequestPayment")))}getInitialView(){return this.http.get(`${this.paymentUrl}InitialiseSessionView`,Gg).pipe(em(this.errorService.handleError("GetIMSessions")))}}return e.\u0275fac=function(t){return new(t||e)(Xn(Yd),Xn(ym))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Yg(e,t){}function Kg(e,t){1&e&&Ar(0,Yg,0,0,"ng-template")}function Jg(e,t){1&e&&(Fr(0,"h4"),go(1,"Buy Your Credit"),Mr())}function Zg(e,t){1&e&&(Fr(0,"h4"),go(1,"Buy Your Reading"),Mr())}function Xg(e,t){}function ey(e,t){1&e&&Ar(0,Xg,0,0,"ng-template")}function ty(e,t){1&e&&(Fr(0,"p"),go(1," You already have a credit or debit card registered with us, so this will be a one click purchase and your account balance will be topped up immediately. "),Fr(2,"strong"),go(3," Please only press the Buy Now button once, this page will automatically refresh once your payment has been processed."),Mr(),Mr())}function ny(e,t){1&e&&(Fr(0,"p"),go(1," You do not currently have a card registered with us, so by clicking on a"),Fr(2,"strong"),go(3," buy now "),Mr(),go(4," button below you will be taken to our credit & debit card registration page automatically. "),Mr())}function iy(e,t){}function sy(e,t){1&e&&Ar(0,iy,0,0,"ng-template")}function ry(e,t){1&e&&(Fr(0,"h4"),go(1,"Available Topups"),Mr())}function oy(e,t){1&e&&(Fr(0,"h4"),go(1,"Available Readings"),Mr())}function ay(e,t){}function ly(e,t){1&e&&Ar(0,ay,0,0,"ng-template")}function uy(e,t){}function cy(e,t){1&e&&Ar(0,uy,0,0,"ng-template")}function hy(e,t){if(1&e&&(Fr(0,"span",33),Fr(1,"span",34),go(2),Mr(),Mr(),Fr(3,"span",33),Fr(4,"span",35),go(5),Mr(),Mr()),2&e){const e=Gr(2).$implicit;ns(2),yo(e.ProductPrice.FullFormattedValue),ns(3),vo(" Free ",e.CallLength," minute reading")}}function dy(e,t){}function py(e,t){1&e&&Ar(0,dy,0,0,"ng-template")}function fy(e,t){if(1&e&&(Fr(0,"span",33),Fr(1,"span",34),go(2),Mr(),Mr(),Fr(3,"span"),go(4),Mr(),Lr(5,"br"),Fr(6,"span",33),Fr(7,"span"),go(8," You save "),Mr(),Fr(9,"span",35),go(10),Mr(),Mr()),2&e){const e=Gr(3).$implicit;ns(2),yo(e.ProductPrice.FullFormattedValue),ns(2),vo("Pay as you go ",e.PricePerMinute.FullFormattedValue,"/min)"),ns(6),bo("",e.OfferDiscountAmount.FullFormattedValue," (",e.SaveDiscount,"%)")}}function my(e,t){if(1&e&&(Fr(0,"span",33),Fr(1,"span",34),go(2),Mr(),Mr(),Fr(3,"span",33),Fr(4,"span",35),go(5),Mr(),Fr(6,"span"),go(7),Mr(),Mr(),Lr(8,"br"),Fr(9,"span",33),Fr(10,"span"),go(11," You save "),Mr(),Fr(12,"span",35),go(13),Mr(),Mr()),2&e){const e=Gr(3).$implicit;ns(2),yo(e.ProductPrice.FullFormattedValue),ns(3),vo(" ",e.AmountToPay.FullFormattedValue,""),ns(2),vo(" for ",e.CallLength," minutes"),ns(6),bo("",e.OfferDiscountAmount.FullFormattedValue," (",e.SaveDiscount,"%)")}}function gy(e,t){if(1&e&&(Ar(0,py,1,0,void 0,12),Ar(1,fy,11,4,"ng-template",null,36,ol),Ar(3,my,14,5,"ng-template",null,37,ol)),2&e){const e=Pr(2),t=Pr(4),n=Gr(2).$implicit,i=Gr();Nr("ngIf",n.ProductTypeId==i.productType.PayAsYouGo)("ngIfThen",e)("ngIfElse",t)}}function yy(e,t){if(1&e&&(Ar(0,cy,1,0,void 0,12),Ar(1,hy,6,2,"ng-template",null,31,ol),Ar(3,gy,5,3,"ng-template",null,32,ol)),2&e){const e=Pr(2),t=Pr(4);Nr("ngIf",0==Gr().$implicit.AmountToPay.Digits)("ngIfThen",e)("ngIfElse",t)}}function vy(e,t){}function by(e,t){1&e&&Ar(0,vy,0,0,"ng-template")}function wy(e,t){if(1&e&&(Fr(0,"span",33),Fr(1,"span"),go(2),Mr(),Mr(),Lr(3,"br")),2&e){const e=Gr(2).$implicit;ns(2),vo("Pay as you go ",e.PricePerMinute.FullFormattedValue,"/min")}}function Cy(e,t){}function _y(e,t){1&e&&Ar(0,Cy,0,0,"ng-template")}function xy(e,t){1&e&&(Fr(0,"span"),go(1," topup"),Mr())}function Sy(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(3).$implicit;ns(1),vo(" for ",e.CallLength," minutes")}}function Ey(e,t){if(1&e&&(Fr(0,"span",33),Fr(1,"span"),go(2),Mr(),Ar(3,_y,1,0,void 0,12),Ar(4,xy,2,0,"ng-template",null,40,ol),Ar(6,Sy,2,1,"ng-template",null,41,ol),Mr()),2&e){const e=Pr(5),t=Pr(7),n=Gr(2).$implicit,i=Gr();ns(2),yo(n.ProductPrice.FullFormattedValue),ns(1),Nr("ngIf",1e3==i.configurations.BrandId)("ngIfThen",e)("ngIfElse",t)}}function Iy(e,t){if(1&e&&(Ar(0,by,1,0,void 0,12),Ar(1,wy,4,1,"ng-template",null,38,ol),Ar(3,Ey,8,4,"ng-template",null,39,ol)),2&e){const e=Pr(2),t=Pr(4),n=Gr().$implicit,i=Gr();Nr("ngIf",n.ProductTypeId==i.productType.PayAsYouGo)("ngIfThen",e)("ngIfElse",t)}}function Ty(e,t){if(1&e&&(Fr(0,"div"),Fr(1,"span",33),Fr(2,"span"),go(3,"Bonus of "),Mr(),Fr(4,"span",35),go(5),Mr(),Mr(),Fr(6,"span",33),Fr(7,"span"),go(8,"will be added"),Mr(),Mr(),Mr()),2&e){const e=Gr().$implicit;ns(5),vo("",e.OfferBonusAmount.FullFormattedValue," ")}}function ky(e,t){1&e&&Lr(0,"div")}function Oy(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(3).$implicit;ns(1),vo(" Buy PAYG credit for ",e.AmountToPay.FullFormattedValue,"")}}function Ay(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",45),Mr())}function Py(e,t){if(1&e){const e=qr();Fr(0,"a",44),Hr("click",function(){At(e);const t=Gr(2),n=t.$implicit,i=t.index;return Gr().requestPayment(n,i)}),Ar(1,Oy,2,1,"span",27),Ar(2,Ay,2,0,"span",27),Mr()}if(2&e){const e=Gr(2).index,t=Gr();io("aspNetDisabled",t.submittingData>-1),ns(1),Nr("ngIf",t.submittingData!=e),ns(1),Nr("ngIf",t.submittingData==e)}}function Dy(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(3).$implicit;ns(1),vo(" Buy PAYG credit for ",e.AmountToPay.FullFormattedValue,"")}}function Ny(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",45),Mr())}function Ry(e,t){if(1&e&&(Fr(0,"a",46),Ar(1,Dy,2,1,"span",27),Ar(2,Ny,2,0,"span",27),Mr()),2&e){const e=Gr(2),t=e.$implicit,n=e.index,i=Gr();io("aspNetDisabled",i.submittingData>-1),Yr("href","/My-Account/RegisterCardAndPay/",t.ProductId,"",ci),ns(1),Nr("ngIf",i.submittingData!=n),ns(1),Nr("ngIf",i.submittingData==n)}}function Fy(e,t){if(1&e&&(Ar(0,Py,3,4,"a",42),Ar(1,Ry,3,5,"ng-template",null,43,ol)),2&e){const e=Pr(2),t=Gr(2);Nr("ngIf",t.creditCardData&&t.creditCardData.CyberSourceSubscriptionId)("ngIfElse",e)}}function My(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(3).$implicit;ns(1),vo("Buy now for only ",e.AmountToPay.FullFormattedValue,"")}}function Ly(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",45),Mr())}function By(e,t){if(1&e){const e=qr();Fr(0,"a",44),Hr("click",function(){At(e);const t=Gr(2),n=t.$implicit,i=t.index;return Gr().requestPayment(n,i)}),Ar(1,My,2,1,"span",27),Ar(2,Ly,2,0,"span",27),Mr()}if(2&e){const e=Gr(2).index,t=Gr();io("aspNetDisabled",t.submittingData>-1),ns(1),Nr("ngIf",t.submittingData!=e),ns(1),Nr("ngIf",t.submittingData==e)}}function Vy(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(3).$implicit;ns(1),vo(" Buy now for only ",e.AmountToPay.FullFormattedValue,"")}}function qy(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",45),Mr())}function jy(e,t){if(1&e&&(Fr(0,"a",46),Ar(1,Vy,2,1,"span",27),Ar(2,qy,2,0,"span",27),Mr()),2&e){const e=Gr(2),t=e.$implicit,n=e.index,i=Gr();io("aspNetDisabled",i.submittingData>-1),Yr("href","/My-Account/RegisterCardAndPay/",t.ProductId,"",ci),ns(1),Nr("ngIf",i.submittingData!=n),ns(1),Nr("ngIf",i.submittingData==n)}}function Qy(e,t){if(1&e&&(Ar(0,By,3,4,"a",42),Ar(1,jy,3,5,"ng-template",null,47,ol)),2&e){const e=Pr(2),t=Gr(2);Nr("ngIf",t.creditCardData&&t.creditCardData.CyberSourceSubscriptionId)("ngIfElse",e)}}function $y(e,t){if(1&e&&(Fr(0,"div"),Fr(1,"div",24),Ar(2,ly,1,0,void 0,12),Ar(3,yy,5,3,"ng-template",null,25,ol),Ar(5,Iy,5,3,"ng-template",null,26,ol),Ar(7,Ty,9,1,"div",27),Mr(),Fr(8,"div",28),Ar(9,ky,1,0,"div",12),Ar(10,Fy,3,2,"ng-template",null,29,ol),Ar(12,Qy,3,2,"ng-template",null,30,ol),Mr(),Mr()),2&e){const e=t.$implicit,n=Pr(4),i=Pr(6),s=Pr(11),r=Pr(13),o=Gr();ns(2),Nr("ngIf",e.OfferDiscountAmount&&e.OfferDiscountAmount.Digits>0)("ngIfThen",n)("ngIfElse",i),ns(5),Nr("ngIf",e.OfferBonusAmount&&e.OfferBonusAmount>0),ns(2),Nr("ngIf",e.ProductTypeId==o.productType.PayAsYouGo)("ngIfThen",s)("ngIfElse",r)}}function Hy(e,t){1&e&&(Fr(0,"div",48),Lr(1,"i",45),Mr())}function Uy(e,t){1&e&&Lr(0,"modal",49),2&e&&Nr("modal",Gr().modal)}let Wy=(()=>{class e{constructor(e,t){this.paymentService=e,this.tileBusService=t,this.chatClass="component-container",this.close=new Wa,this.resources={},this.modal=null,this.paymentLoading=!0,this.productType=wg}ngOnInit(){this.configurations&&(this.resources=this.configurations.ResourceData),this.getPaymentData()}requestPayment(e,t){e.ProductId>0&&null==this.submittingData&&(this.submittingData=t,this.paymentService.requestPayment(e.ProductId,e.OfferId,e.AmountToPay.Digits).subscribe(t=>{t?(this.updateAccountBalance(e.AmountToPay.Digits),this.tileBusService.signalUpdateMemberBalance$.emit(this.member.AccountBalance),this.member.PaygMinutesAvailable=Math.floor(this.member.AccountBalance/this.PaygPricePerMinute),console.log(this.member.PaygMinutesAvailable),this.submittingData=null,this.modal=new Kf,this.modal.Title=`Successful payment of ${this.resources.CurrencySymbol+t.TransactionAmount.toFixed(2)}.`,this.modal.Type=Jf.Warning,this.modal.ActionOk=()=>{this.modal=null,this.close.emit()}):(this.submittingData=null,t||(this.modal=new Kf,this.modal.Title="Sorry, an error has occurred, please try again later.",this.modal.ActionOk=()=>{this.modal=null,this.close.emit()}))}))}updateAccountBalance(e){this.member.AccountBalance=this.member.AccountBalance+ +e}getPaymentData(){this.paymentService.getPaymentProducts().subscribe(e=>{e&&(this.paymentLoading=!1,this.product?(this.creditCardData=this.creditCard,this.products=[],this.products.push(this.product)):this.products=this.member.Products,this.creditCardData=e.PaymentModel.CreditCardData,this.balance=e.PaymentModel.Balance,this.paymentModel=e.PaymentModel,this.PaygPricePerMinute=e.PaymentModel.PayAsYouGoPricePerMinute)})}onClose(){this.close.emit()}}return e.\u0275fac=function(t){return new(t||e)(Dr(zg),Dr(zm))},e.\u0275cmp=$e({type:e,selectors:[["payment"]],hostVars:2,hostBindings:function(e,t){2&e&&so(t.chatClass)},inputs:{expert:"expert",member:"member",configurations:"configurations",product:"product",creditCard:"creditCard"},outputs:{close:"close"},decls:40,vars:18,consts:[[1,"component-details","payment-details"],["tabindex","0",1,"close",3,"click"],[1,"sr-only"],["aria-hidden","true",1,"icon-close"],[1,"call_now_heading","row"],[1,"image"],[1,"photo_container","clearfix"],[1,"photo_content","clearfix"],[1,"photo"],["itemprop","image","default","/Assets/Images/profile.gif",3,"src","alt"],[1,"spacer"],[1,"payment_header","row"],[4,"ngIf","ngIfThen","ngIfElse"],["showAdultHeader",""],["showOtherHeader",""],["CardRegistered",""],["noCardRegistered",""],[1,"payment_balance","row"],[1,"payment_panel","row"],["showAdultPayment",""],["showOtherPayment",""],[4,"ngFor","ngForOf"],["class","generic-loader",4,"ngIf"],[3,"modal",4,"ngIf"],[1,"row"],["showBlock",""],["notShowBlock",""],[4,"ngIf"],[1,"review-buttons"],["PAYG",""],["NoPAYG",""],["showBlock1",""],["notShowBlock1",""],[1,"nowrap"],[1,"strikethrough"],[1,"offer_price"],["showBlock2",""],["notShowBlock2",""],["showBlock3",""],["notShowBlock3",""],["showAdultSpan",""],["showOtherSpan",""],["tabindex","0","class","general_button green_btn review-button",3,"aspNetDisabled","click",4,"ngIf","ngIfElse"],["elseBlock",""],["tabindex","0",1,"general_button","green_btn","review-button",3,"click"],[1,"icon-wait"],["tabindex","0",1,"general_button","green_btn","review-button",3,"href"],["elseBlock2",""],[1,"generic-loader"],[3,"modal"]],template:function(e,t){if(1&e&&(Fr(0,"div",0),Fr(1,"a",1),Hr("click",function(){return t.onClose()}),Fr(2,"span",2),go(3),Mr(),Lr(4,"i",3),Mr(),Fr(5,"div",4),Fr(6,"div",5),Lr(7,"div",6),Fr(8,"div",7),Fr(9,"div",8),Lr(10,"img",9),Mr(),Mr(),Mr(),Fr(11,"div"),Fr(12,"h4"),go(13),Mr(),Mr(),Lr(14,"div",10),Mr(),Fr(15,"div",11),Ar(16,Kg,1,0,void 0,12),Ar(17,Jg,2,0,"ng-template",null,13,ol),Ar(19,Zg,2,0,"ng-template",null,14,ol),Ar(21,ey,1,0,void 0,12),Ar(22,ty,4,0,"ng-template",null,15,ol),Ar(24,ny,5,0,"ng-template",null,16,ol),Mr(),Fr(26,"div",17),Fr(27,"p"),go(28,"Your account balance is "),Fr(29,"span"),go(30),Mr(),Mr(),Mr(),Fr(31,"div",18),Ar(32,sy,1,0,void 0,12),Ar(33,ry,2,0,"ng-template",null,19,ol),Ar(35,oy,2,0,"ng-template",null,20,ol),Ar(37,$y,14,7,"div",21),Ar(38,Hy,2,0,"div",22),Mr(),Ar(39,Uy,1,1,"modal",23),Mr()),2&e){const e=Pr(18),n=Pr(20),i=Pr(23),s=Pr(25),r=Pr(34),o=Pr(36);ns(3),vo("close ",t.expert.Nickname," window"),ns(7),Nr("src",t.expert.ThumbnailFileName,ci)("alt",t.expert.Nickname),ns(3),bo("",t.expert.Nickname," - PIN ",t.expert.ExpertFourDigitId,""),ns(3),Nr("ngIf",1e3==t.configurations.BrandId)("ngIfThen",e)("ngIfElse",n),ns(5),Nr("ngIf",t.creditCardData&&t.creditCardData.CyberSourceSubscriptionId)("ngIfThen",i)("ngIfElse",s),ns(9),yo(t.member.AccountBalanceCurrency),ns(2),Nr("ngIf",1e3==t.configurations.BrandId)("ngIfThen",r)("ngIfElse",o),ns(5),Nr("ngForOf",t.products),ns(1),Nr("ngIf",t.paymentLoading),ns(1),Nr("ngIf",t.modal)}},directives:[ag,uu,au,Qg],styles:[""]}),e})();function Gy(e,t){1&e&&(Fr(0,"div",4),Fr(1,"h4"),go(2,"I'm available"),Mr(),Mr())}function zy(e,t){if(1&e&&(Fr(0,"option",9),go(1),Mr()),2&e){const e=t.$implicit;Nr("value",e.PhoneNumberDialling),ns(1),yo(e.PhoneNumberDisplay)}}function Yy(e,t){if(1&e){const e=qr();Fr(0,"div",4),Fr(1,"h4"),go(2,"I'll call you back on"),Mr(),Fr(3,"div",5),Lr(4,"i",6),Fr(5,"select",7),Hr("ngModelChange",function(t){return At(e),Gr().selectedPhoneNumber=t})("ngModelChange",function(t){return At(e),Gr().phoneNumberChanged(t)}),Ar(6,zy,2,2,"option",8),Mr(),Mr(),Mr()}if(2&e){const e=Gr();ns(5),io("aspNetDisabled",e.pollingOnRunning),Nr("ngModel",e.selectedPhoneNumber)("disabled",e.pollingOnRunning),ns(1),Nr("ngForOf",e.member.CallbackPhoneNumbers)}}function Ky(e,t){if(1&e&&Lr(0,"product-list",10),2&e){const e=Gr();Nr("products",e.member.TopProducts)("loggedin",e.member.IsLoggedIn)("showOfferPrice",e.member.UserProductsShowOfferPrice)}}function Jy(e,t){1&e&&Lr(0,"i",15),2&e&&so(Gr(2).callbackCurrentStatus.Icon)}function Zy(e,t){if(1&e&&(Fr(0,"span",16),go(1),Mr()),2&e){const e=Gr(2);ns(1),yo(e.callbackCurrentStatus.Label)}}function Xy(e,t){if(1&e){const e=qr();Fr(0,"a",17),Hr("click",function(){return At(e),Gr(2).cancelRequest()}),go(1,"Cancel Call"),Mr()}}function ev(e,t){if(1&e){const e=qr();Fr(0,"div",4),Fr(1,"a",11),Hr("click",function(){return At(e),Gr().request()}),Ar(2,Jy,1,2,"i",12),Ar(3,Zy,2,1,"span",13),Mr(),Ar(4,Xy,2,0,"a",14),Mr()}if(2&e){const e=Gr();ns(2),Nr("ngIf",e.callbackCurrentStatus),ns(1),Nr("ngIf",e.callbackCurrentStatus),ns(1),Nr("ngIf",e.requestCanBeCancelled)}}function tv(e,t){if(1&e){const e=qr();Fr(0,"payment",18),Hr("close",function(){return At(e),Gr().closePayment()}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}function nv(e,t){1&e&&Lr(0,"modal",19),2&e&&Nr("modal",Gr().modal)}let iv=(()=>{class e{constructor(e){this.callbackService=e,this.defaultPollingTime=1500,this.defaultCloseTimer=5e3,this.cancelChange=new Wa,this.callBackChange=new Wa,this.requestCanBeCancelled=!0,this.requestHasCompletedSuccessfully=!0,this.requestIsPending=!1,this.pollingOnRunning=!1,this.callbackCurrentStatus=this.callbackService.getStatusConfig($g.Ready),this.modal=null,this.resources={}}ngOnInit(){this.configurations&&(this.resources=this.configurations.ResourceData),this.member&&this.member.CallbackPhoneNumbers&&this.member.CallbackPhoneNumbers.length>0&&(this.selectedPhoneNumber=this.member.CallbackPhoneNumbers[0].PhoneNumberDialling)}phoneNumberChanged(e){}getPhoneNumber(e,t){return t[t.map(e=>e.PhoneNumberDialling).indexOf(e)]}showModal(e){switch(e){case $g.InsufficientCredit:this.modal=new Kf,this.modal.Title="You currently do not have enough credit available in your account, would you like to top up?",this.modal.Type=Jf.Info,this.modal.ActionYes=()=>{this.modal=null,zf.isTestEnvironment(this.configurations)||this.configurations.AngularPaymentRequest?this.showPayment=!0:zf.navigateToUrl(zf.Urls.makePaymentPage)},this.modal.ActionNo=()=>{this.modal=null};break;case $g.ExpertBusy:this.modal=new Kf,this.modal.Title=`Sorry, I am now in a ${this.resources.reading}, you can either wait until I am available or join my queue and I can call you back when I'm free.`,this.modal.Type=Jf.Warning,this.modal.ActionOk=()=>{this.callBackChange.emit(!1),this.cancelChange.emit(!0),this.modal=null}}}updateRequest(e){this.requestCanBeCancelled=e.RequestCanBeCancelled,this.requestHasCompletedSuccessfully=e.RequestHasCompletedSuccessfully,this.requestIsPending=e.RequestIsPending,this.callbackCurrentStatus=this.callbackService.getStatusConfig(e.StatusId),this.showModal(e.StatusId)}request(){this.callbackCurrentStatus.Type==Hg.Waiting||this.pollingOnRunning||(this.pollingOnRunning=!0,this.callBackChange.emit(!0),this.callbackCurrentStatus=this.callbackService.getStatusConfig($g.Unknown),this.callbackService.request(this.expert.ExpertIvrId,this.selectedPhoneNumber).subscribe(e=>{e&&e.ExpertCallBackDto?(this.updateRequest(e.ExpertCallBackDto),this.callbackCurrentStatus.Type==Hg.Waiting&&this.getRequest()):(this.pollingOnRunning=!1,this.callbackCurrentStatus=this.callbackService.getStatusConfig($g.Error),this.callBackChange.emit(!1))}))}getRequest(){this.pollingOnRunning=!0,setTimeout(()=>{this.callbackService.getRequest(this.expert.ExpertIvrId).subscribe(e=>{e&&e.ExpertCallBackDto?(this.updateRequest(e.ExpertCallBackDto),this.callbackCurrentStatus.Type!=Hg.Waiting&&this.callbackCurrentStatus.Type!=Hg.Error||this.getRequest(),this.callbackCurrentStatus.Type==Hg.CompletedAndClose&&(this.callBackChange.emit(!1),this.pollingOnRunning=!1,setTimeout(()=>{this.cancelChange.emit()},this.defaultCloseTimer)),this.callbackCurrentStatus.Type==Hg.Completed&&(this.callBackChange.emit(!1),this.pollingOnRunning=!1,setTimeout(()=>{this.callbackCurrentStatus=this.callbackService.getStatusConfig($g.Ready)},this.defaultCloseTimer))):this.getRequest()})},this.defaultPollingTime)}cancelRequest(){this.callbackCurrentStatus.Type!=Hg.Completed&&this.callbackCurrentStatus.Type!=Hg.CompletedAndClose?this.requestCanBeCancelled&&this.callbackService.cancelRequest().subscribe(e=>{this.callBackChange.emit(!1),this.cancelChange.emit()}):(this.callBackChange.emit(!1),this.cancelChange.emit())}closePayment(){this.showPayment=!1,this.cancelRequest()}}return e.\u0275fac=function(t){return new(t||e)(Dr(Wg))},e.\u0275cmp=$e({type:e,selectors:[["callback"]],inputs:{expert:"expert",member:"member",configurations:"configurations",showPayment:"showPayment"},outputs:{cancelChange:"cancelChange",callBackChange:"callBackChange"},decls:6,vars:6,consts:[["class","row",4,"ngIf"],["class","row",3,"products","loggedin","showOfferPrice",4,"ngIf"],[3,"expert","member","configurations","close",4,"ngIf"],[3,"modal",4,"ngIf"],[1,"row"],[1,"phone-numbers"],[1,"icon-phone"],[3,"ngModel","disabled","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"row",3,"products","loggedin","showOfferPrice"],["tabindex","0",1,"general_button","call_now_credit_card","available_gradient","with_hover","btnWeCallYou",3,"click"],["class","callBackStatusIcon",3,"class",4,"ngIf"],["class","callBackStatusText",4,"ngIf"],["tabindex","0","class","general_button call_now_credit_card  unavailable_gradient with_hover btnCancelWeCallYou",3,"click",4,"ngIf"],[1,"callBackStatusIcon"],[1,"callBackStatusText"],["tabindex","0",1,"general_button","call_now_credit_card","unavailable_gradient","with_hover","btnCancelWeCallYou",3,"click"],[3,"expert","member","configurations","close"],[3,"modal"]],template:function(e,t){1&e&&(Ar(0,Gy,3,0,"div",0),Ar(1,Yy,7,5,"div",0),Ar(2,Ky,1,3,"product-list",1),Ar(3,ev,5,3,"div",0),Ar(4,tv,1,3,"payment",2),Ar(5,nv,1,1,"modal",3)),2&e&&(Nr("ngIf",t.member.IsLoggedIn),ns(1),Nr("ngIf",t.member.IsLoggedIn),ns(1),Nr("ngIf",t.member),ns(1),Nr("ngIf",t.member.IsLoggedIn),ns(1),Nr("ngIf",t.showPayment),ns(1),Nr("ngIf",t.modal))},directives:[uu,yf,jp,af,au,vf,_f,Og,Wy,Qg],styles:[""]}),e})();var sv=function(e){return e[e.Unknown=0]="Unknown",e[e.FixedLine=1]="FixedLine",e[e.Mobile=2]="Mobile",e[e.All=3]="All",e}({}),rv=function(e){return e[e.Unknown=0]="Unknown",e[e.QueueFull=-1]="QueueFull",e[e.AlreadyQueueing=-2]="AlreadyQueueing",e[e.BrandSettingsMissing=-3]="BrandSettingsMissing",e[e.InsufficientCredit=-4]="InsufficientCredit",e[e.PaymentMethodNotPresent=-5]="PaymentMethodNotPresent",e[e.PaymentMethodNotAuthorised=-6]="PaymentMethodNotAuthorised",e}({}),ov=function(e){return e[e.Unknown=0]="Unknown",e[e.Valid=1]="Valid",e[e.UnspecifiedFailure=2]="UnspecifiedFailure",e[e.NotSupplied=3]="NotSupplied",e[e.InvalidFormat=4]="InvalidFormat",e[e.InvalidValue=5]="InvalidValue",e[e.AlreadyExists=6]="AlreadyExists",e[e.NotAllowed=7]="NotAllowed",e[e.TooLong=8]="TooLong",e[e.TooShort=9]="TooShort",e}({}),av=n(4173);let lv=(()=>{class e{constructor(e,t){this.http=e,this.errorService=t,this.httpOptions={headers:new Nd({"Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})},this.loginUrl="/login/"}loginRequest(e,t,n){null!=this.httpOptions.headers.get("__RequestVerificationToken")&&(this.httpOptions.headers=this.httpOptions.headers.delete("__RequestVerificationToken")),this.httpOptions.headers=this.httpOptions.headers.append("__RequestVerificationToken",n);let i=JSON.stringify({UserName:e,Password:t});return this.http.post(`${this.loginUrl}LoginRequestV2`,i,this.httpOptions).pipe(em(this.errorService.handleError("LoginRequest")))}bestProduct(){return this.http.get(`${this.loginUrl}BestProduct`,this.httpOptions).pipe(em(this.errorService.handleError("BestProduct")))}}return e.\u0275fac=function(t){return new(t||e)(Xn(Yd),Xn(ym))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function uv(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr().$implicit;ns(1),vo("Email ",e.key,"")}}function cv(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr().$implicit;ns(1),yo(e.value)}}function hv(e,t){if(1&e&&(Fr(0,"li"),Ar(1,uv,2,1,"ng-container",22),Ar(2,cv,2,1,"ng-container",22),Mr()),2&e){const e=t.$implicit;ns(1),Nr("ngIf","backend"!=e.key),ns(1),Nr("ngIf","backend"==e.key)}}function dv(e,t){if(1&e&&(Br(0),Ar(1,hv,3,2,"li",29),$a(2,"keyvalue"),Vr()),2&e){const e=Gr(3);ns(1),Nr("ngForOf",Ha(2,1,e.loginEmail.errors))}}function pv(e,t){if(1&e&&(Fr(0,"ul"),Ar(1,dv,3,3,"ng-container",22),Mr()),2&e){const e=Gr(2);ns(1),Nr("ngIf",e.loginEmail.dirty||e.loginEmail.touched)}}function fv(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr().$implicit;ns(1),vo("Password ",e.key,"")}}function mv(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr().$implicit;ns(1),yo(e.value)}}function gv(e,t){if(1&e&&(Fr(0,"li"),Ar(1,fv,2,1,"ng-container",22),Ar(2,mv,2,1,"ng-container",22),Mr()),2&e){const e=t.$implicit;ns(1),Nr("ngIf","backend"!=e.key),ns(1),Nr("ngIf","backend"==e.key)}}function yv(e,t){if(1&e&&(Br(0),Ar(1,gv,3,2,"li",29),$a(2,"keyvalue"),Vr()),2&e){const e=Gr(3);ns(1),Nr("ngForOf",Ha(2,1,e.loginPassword.errors))}}function vv(e,t){if(1&e&&(Fr(0,"ul"),Ar(1,yv,3,3,"ng-container",22),Mr()),2&e){const e=Gr(2);ns(1),Nr("ngIf",e.loginPassword.dirty||e.loginPassword.touched)}}function bv(e,t){if(1&e&&(Fr(0,"div",27),Fr(1,"div",28),Fr(2,"span"),go(3,"Please resolve the following issue(s):"),Mr(),Ar(4,pv,2,1,"ul",22),Ar(5,vv,2,1,"ul",22),Mr(),Mr()),2&e){const e=Gr();ns(4),Nr("ngIf",e.loginEmail&&e.loginEmail.errors),ns(1),Nr("ngIf",e.loginPassword&&e.loginPassword.errors)}}function wv(e,t){if(1&e&&(Fr(0,"div",27),Fr(1,"ul"),Fr(2,"li"),go(3),Mr(),Mr(),Mr()),2&e){const e=Gr();ns(3),yo(e.errorMessage)}}function Cv(e,t){1&e&&(Fr(0,"span"),go(1,"Log in"),Mr())}function _v(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",30),Mr())}function xv(e,t){if(1&e&&(Fr(0,"div"),Fr(1,"p"),go(2,"to "),Fr(3,"strong"),go(4,"redeem our special offer: "),Mr(),Mr(),Fr(5,"p"),Fr(6,"strong"),go(7),Mr(),Mr(),Mr()),2&e){const e=Gr(2);ns(7),bo("",e.bestOfferProductAmountToPayDisplay," and get ",e.bestOfferBonusAmountDsiplay," FREE")}}function Sv(e,t){if(1&e&&(Fr(0,"div",31),Fr(1,"h3"),go(2,"Don't have an account?"),Mr(),Fr(3,"a",32),go(4,"Create your account now"),Mr(),Ar(5,xv,8,2,"div",22),Fr(6,"p"),go(7),Mr(),Mr()),2&e){const e=Gr();ns(5),Nr("ngIf",(null==e.bestProduct?null:e.bestProduct.PricePerMinute)&&e.bestProduct.OfferId),ns(2),bo("By creating an account you can track your ",null==e.resources?null:e.resources.favourite," ",null==e.resources?null:e.resources.Experts,", leave reviews on your chats and also buy credit through this site.")}}function Ev(e,t){if(1&e&&(Fr(0,"div",31),Fr(1,"h4"),go(2,"Don't have an account?"),Mr(),Fr(3,"p"),Fr(4,"a",32),go(5,"Create your account now"),Mr(),go(6," to "),Fr(7,"strong"),go(8,"redeem our special offer: "),Mr(),Fr(9,"strong"),go(10),Mr(),Mr(),Fr(11,"p"),go(12),Mr(),Mr()),2&e){const e=Gr();ns(10),wo("",e.bestOfferProductAmountToPayDisplay," for up to ",e.bestOfferProductCallLengthDisplay," minutes (only ",e.bestOfferProductPricePerMinuteDisplay," / min)."),ns(2),Co(" By creating an account you can track your ",null==e.resources?null:e.resources.favourite," ",null==e.resources?null:e.resources.Experts,", leave reviews on your ",null==e.resources?null:e.resources.readings," and also pay for credit card ",null==e.resources?null:e.resources.readings," through this site. ")}}function Iv(e,t){1&e&&Lr(0,"modal",33),2&e&&Nr("modal",Gr().modal)}let Tv=(()=>{class e{constructor(e,t,n){this.loginService=e,this.memberService=t,this.tileBusService=n,this.close=new Wa,this.chatClass="component-container",this.resources={},this.modal=null,this.submittingData=!1,this.showError=!1,this.brands=lg}setSubmittingData(e){this.submittingData=e,e?(this.loginEmail.disable(),this.loginPassword.disable()):(this.loginEmail.enable(),this.loginPassword.enable())}ngAfterViewChecked(){this.token=null==this.token?av("input[name=__RequestVerificationToken]").val().toString():this.token}ngOnInit(){this.configurations&&(this.resources=this.configurations.ResourceData),this.loginEmail=new tf("",xp.required),this.loginPassword=new tf("",xp.required),this.getBestProduct()}loginRequest(){this.loginEmail.valid&&this.loginPassword.valid&&(this.setSubmittingData(!0),this.showError=!1,this.loginService.loginRequest(this.loginEmail.value,this.loginPassword.value,this.token).subscribe(e=>{e&&e.CredentialsValid!=ov.InvalidValue?e&&(this.getMember(),this.setSubmittingData(!1)):(this.token=e.VerificationToken,this.setSubmittingData(!1),this.showError=!0,e||(this.errorMessage="An error has occurred"),e&&e.CredentialsValid==ov.InvalidValue&&(this.errorMessage="Supplied details were incorrect"))}))}getBestProduct(){this.loginService.bestProduct().subscribe(e=>{e&&(this.bestProduct=e.Product,this.bestOfferProductAmountToPayDisplay=e.BestOfferProductAmountToPayDisplay,this.bestOfferProductCallLengthDisplay=e.BestOfferProductCallLengthDisplay,this.bestOfferProductPricePerMinuteDisplay=e.BestOfferProductPricePerMinuteDisplay,this.bestOfferBonusAmountDsiplay=e.BestOfferBonusAmountDsiplay)})}getMember(){this.memberService.getMemberV2().subscribe(e=>{e&&e.ServiceOperationOutcome==Gf.Success&&e.MemberBasicData&&(this.member=e.MemberBasicData,this.tileBusService.signalUpdateMember$.emit(this.member),this.close.emit(e.MemberBasicData))})}onClose(){this.close.emit()}onKeyUp(e){"Enter"==e.key&&this.loginRequest()}}return e.\u0275fac=function(t){return new(t||e)(Dr(lv),Dr(Cm),Dr(zm))},e.\u0275cmp=$e({type:e,selectors:[["login"]],hostVars:2,hostBindings:function(e,t){2&e&&so(t.chatClass)},inputs:{expert:"expert",member:"member",configurations:"configurations",queuedFor:"queuedFor"},outputs:{close:"close"},decls:46,vars:19,consts:[[1,"component-details","login-details"],["tabindex","0",1,"close",3,"click"],[1,"sr-only"],["aria-hidden","true",1,"icon-close"],[1,"call_now_heading","row"],[1,"image"],[1,"photo_container","clearfix"],[1,"photo_content","clearfix"],[1,"photo"],["itemprop","image","default","/Assets/Images/profile.gif",3,"src","alt"],[1,"spacer"],[1,"row","login_header"],["class","error_message",4,"ngIf"],[1,"login_form","row"],[1,"row"],[1,"label"],[1,"input"],["type","text",3,"formControl","keyup"],["type","password",3,"formControl","keyup"],["href","/ForgotPassword/"],[1,"review-buttons"],["tabindex","0",1,"general_button","green_btn","review-button",3,"click"],[4,"ngIf"],[1,"row","login_footer",3,"ngSwitch"],["class","content",4,"ngSwitchCase"],["class","content",4,"ngSwitchDefault"],[3,"modal",4,"ngIf"],[1,"error_message"],["data-valmsg-summary","true",1,"validation-summary-errors"],[4,"ngFor","ngForOf"],[1,"icon-wait"],[1,"content"],["href","/CreateAccount/"],[3,"modal"]],template:function(e,t){1&e&&(Fr(0,"div",0),Fr(1,"a",1),Hr("click",function(){return t.onClose()}),Fr(2,"span",2),go(3),Mr(),Lr(4,"i",3),Mr(),Fr(5,"div",4),Fr(6,"div",5),Lr(7,"div",6),Fr(8,"div",7),Fr(9,"div",8),Lr(10,"img",9),Mr(),Mr(),Mr(),Fr(11,"div"),Fr(12,"h4"),go(13),Mr(),Mr(),Lr(14,"div",10),Mr(),Fr(15,"div",11),Fr(16,"h4"),go(17,"Login"),Mr(),Fr(18,"p"),go(19),Mr(),Mr(),Ar(20,bv,6,2,"div",12),Ar(21,wv,4,1,"div",12),Fr(22,"div",13),Fr(23,"div",14),Fr(24,"div",15),Fr(25,"label"),go(26," Email "),Mr(),Mr(),Fr(27,"div",16),Fr(28,"input",17),Hr("keyup",function(e){return t.onKeyUp(e)}),Mr(),Mr(),Mr(),Fr(29,"div",14),Fr(30,"div",15),Fr(31,"label"),go(32," Password "),Mr(),Mr(),Fr(33,"div",16),Fr(34,"input",18),Hr("keyup",function(e){return t.onKeyUp(e)}),Mr(),Mr(),Mr(),Fr(35,"div",14),Fr(36,"a",19),go(37,"Forgotten your password?"),Mr(),Mr(),Mr(),Fr(38,"div",20),Fr(39,"a",21),Hr("click",function(){return t.loginRequest()}),Ar(40,Cv,2,0,"span",22),Ar(41,_v,2,0,"span",22),Mr(),Mr(),Fr(42,"div",23),Ar(43,Sv,8,3,"div",24),Ar(44,Ev,13,7,"div",25),Mr(),Ar(45,Iv,1,1,"modal",26),Mr()),2&e&&(ns(3),vo("close ",t.expert.Nickname," window"),ns(7),Nr("src",t.expert.ThumbnailFileName,ci)("alt",t.expert.Nickname),ns(3),bo("",t.expert.Nickname," - PIN ",t.expert.ExpertFourDigitId,""),ns(6),vo("Log in now to access the great features of a ",t.configurations.BrandName," account."),ns(1),Nr("ngIf",t.loginEmail&&t.loginEmail.invalid&&(t.loginEmail.dirty||t.loginEmail.touched)||t.loginPassword&&t.loginPassword.invalid&&(t.loginPassword.dirty||t.loginPassword.touched)||t.showError),ns(1),Nr("ngIf",t.showError&&!t.loginEmail.invalid&&(t.loginEmail.dirty||t.loginEmail.touched)||t.showError&&!t.loginPassword.invalid&&(t.loginPassword.dirty||t.loginPassword.touched)),ns(7),Nr("formControl",t.loginEmail),ns(6),Nr("formControl",t.loginPassword),ns(5),io("aspNetDisabled",t.submittingData)("with_hover",!t.submittingData),ns(1),Nr("ngIf",!t.submittingData),ns(1),Nr("ngIf",t.submittingData),ns(1),Nr("ngSwitch",t.configurations.BrandId),ns(1),Nr("ngSwitchCase",t.brands.APC),ns(2),Nr("ngIf",t.modal))},directives:[ag,uu,yp,jp,ff,pu,fu,mu,au,Qg],pipes:[Cu],styles:[""]}),e})();function kv(e,t){1&e&&(Fr(0,"h4"),go(1,"Sorry, I'm not available right now, please try again later."),Mr())}function Ov(e,t){1&e&&(Fr(0,"h4"),go(1,"Sorry, I'm busy and can call you back when I'm free"),Mr())}function Av(e,t){if(1&e&&(Fr(0,"h4"),go(1),Mr()),2&e){const e=Gr(2);ns(1),vo("You are ",e.expert.Queue.CurrentMemberQueueElement.Position," in the queue")}}function Pv(e,t){1&e&&(Fr(0,"h4"),go(1,"Sorry, my queue is currently full, please try again later"),Mr())}function Dv(e,t){1&e&&(Fr(0,"p"),go(1,"There is nobody else waiting"),Mr())}function Nv(e,t){1&e&&(Fr(0,"p"),go(1,"There is 1 person waiting"),Mr())}function Rv(e,t){if(1&e&&(Fr(0,"p"),go(1),Mr()),2&e){const e=Gr(2);ns(1),vo("There are ",e.expert.Queue.QueueLength," people waiting")}}function Fv(e,t){if(1&e&&(Fr(0,"p"),go(1),Mr()),2&e){const e=Gr(2);ns(1),vo("Estimated wait time: ",e.expert.EstimatedWaitTimeCurrentMember?e.expert.EstimatedWaitTimeCurrentMember:e.expert.EstimatedWaitTime,"")}}function Mv(e,t){if(1&e&&(Fr(0,"option",14),go(1),Mr()),2&e){const e=t.$implicit;Nr("value",e.PhoneNumberDialling),ns(1),yo(e.PhoneNumberDisplay)}}function Lv(e,t){if(1&e){const e=qr();Fr(0,"div",3),Fr(1,"h4"),go(2,"I'll call you back on"),Mr(),Fr(3,"div",10),Lr(4,"i",11),Fr(5,"select",12),Hr("ngModelChange",function(t){return At(e),Gr(2).selectedPhoneNumber=t})("ngModelChange",function(t){return At(e),Gr(2).phoneNumberChanged(t)}),Ar(6,Mv,2,2,"option",13),Mr(),Mr(),Mr()}if(2&e){const e=Gr(2);ns(5),io("aspNetDisabled",e.expert.Queue&&(e.expert.Queue.CurrentMemberQueueElement||e.expert.Queue.QueueStatus==e.queueStatus.QueueFull)||e.joiningQueue),Nr("ngModel",e.selectedPhoneNumber)("disabled",e.expert.Queue&&(e.expert.Queue.CurrentMemberQueueElement||e.expert.Queue.QueueStatus==e.queueStatus.QueueFull)||e.joiningQueue),ns(1),Nr("ngForOf",e.member.QueuePhoneNumbers)}}function Bv(e,t){1&e&&Lr(0,"i",17)}function Vv(e,t){1&e&&(Fr(0,"span"),go(1,"Join My Queue"),Mr())}function qv(e,t){1&e&&(Fr(0,"span"),go(1,"Joining..."),Mr())}function jv(e,t){if(1&e){const e=qr();Fr(0,"a",15),Hr("click",function(){return At(e),Gr(2).showJoinQueueOptions()}),Ar(1,Bv,1,0,"i",16),Ar(2,Vv,2,0,"span",0),Ar(3,qv,2,0,"span",0),Mr()}if(2&e){const e=Gr(2);io("aspNetDisabled",e.expert.Queue&&e.expert.Queue.QueueStatus==e.queueStatus.QueueFull||e.joiningQueue),ns(1),Nr("ngIf",e.joiningQueue),ns(1),Nr("ngIf",!e.joiningQueue),ns(1),Nr("ngIf",e.joiningQueue)}}function Qv(e,t){1&e&&Lr(0,"i",17)}function $v(e,t){1&e&&(Fr(0,"span"),go(1,"Leave My Queue"),Mr())}function Hv(e,t){1&e&&(Fr(0,"span"),go(1,"Leaving..."),Mr())}function Uv(e,t){if(1&e){const e=qr();Fr(0,"a",18),Hr("click",function(){return At(e),Gr(2).leaveQueue()}),Ar(1,Qv,1,0,"i",16),Ar(2,$v,2,0,"span",0),Ar(3,Hv,2,0,"span",0),Mr()}if(2&e){const e=Gr(2);ns(1),Nr("ngIf",e.leavingQueue),ns(1),Nr("ngIf",!e.leavingQueue),ns(1),Nr("ngIf",e.leavingQueue)}}function Wv(e,t){1&e&&(Fr(0,"span",19),go(1,"How do queues work"),Mr())}function Gv(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr(3);ns(1),vo(" (max ",null==e.configurations||null==e.configurations.MaxSessionCostQueuedCallback?null:e.configurations.MaxSessionCostQueuedCallback.FullFormattedValue," spend per call)")}}function zv(e,t){if(1&e&&(Fr(0,"div",20),Fr(1,"span"),Fr(2,"span"),go(3,"?"),Mr(),Mr(),Fr(4,"div",21),Fr(5,"div"),go(6),Ar(7,Gv,2,1,"ng-container",0),go(8,"."),Mr(),Mr(),Mr()),2&e){const e=Gr(2);ns(6),wo("",null==e.expert?null:e.expert.Nickname," can call you back when next available, to save you the hassle of checking their status via the phone or ",null==e.configurations?null:e.configurations.BrandName," website. The charges for this premium service are ",null==e.configurations||null==e.configurations.CallbackPricePerMinute?null:e.configurations.CallbackPricePerMinute.FullFormattedValue," per minute"),ns(1),Nr("ngIf",null==e.configurations||null==e.configurations.MaxSessionCostQueuedCallback?null:e.configurations.MaxSessionCostQueuedCallback.FullFormattedValue)}}function Yv(e,t){1&e&&(Fr(0,"div",22),Fr(1,"p",19),go(2,"You will need to enter your account number."),Mr(),Mr()),2&e&&io("account-required",Gr(2).accountRequired)}function Kv(e,t){if(1&e&&(Fr(0,"span",24),go(1),Mr()),2&e){const e=Gr(3);ns(1),bo("Queued ",null==e.resources?null:e.resources.readings," cost ",e.configurations.CallbackPricePerMinute.FullFormattedValue," per minute")}}function Jv(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr(3);ns(1),vo(" (max ",null==e.configurations||null==e.configurations.MaxSessionCostQueuedCallback?null:e.configurations.MaxSessionCostQueuedCallback.FullFormattedValue,")")}}function Zv(e,t){if(1&e&&(Fr(0,"p",19),Ar(1,Kv,2,2,"span",23),Fr(2,"span",24),Ar(3,Jv,2,1,"ng-container",0),Mr(),Fr(4,"span"),go(5,"."),Mr(),Mr()),2&e){const e=Gr(2);ns(1),Nr("ngIf",e.configurations&&e.configurations.CallbackPricePerMinute),ns(2),Nr("ngIf",null==e.configurations||null==e.configurations.MaxSessionCostQueuedCallback?null:e.configurations.MaxSessionCostQueuedCallback.FullFormattedValue)}}function Xv(e,t){if(1&e&&(Br(0),Fr(1,"div",3),Ar(2,kv,2,0,"h4",0),Ar(3,Ov,2,0,"h4",0),Ar(4,Av,2,1,"h4",0),Ar(5,Pv,2,0,"h4",0),Ar(6,Dv,2,0,"p",0),Lr(7,"p"),Ar(8,Nv,2,0,"p",0),Lr(9,"p"),Ar(10,Rv,2,1,"p",0),Lr(11,"p"),Ar(12,Fv,2,1,"p",0),Mr(),Ar(13,Lv,7,5,"div",4),Fr(14,"div",3),Ar(15,jv,4,5,"a",5),Ar(16,Uv,4,3,"a",6),Ar(17,Wv,2,0,"span",7),Ar(18,zv,9,4,"div",8),Ar(19,Yv,3,2,"div",9),Ar(20,Zv,6,2,"p",7),Mr(),Vr()),2&e){const e=Gr();ns(2),Nr("ngIf",!e.expert.IsOnline),ns(1),Nr("ngIf",!(e.expert.Queue&&(e.expert.Queue.CurrentMemberQueueElement||e.expert.Queue.QueueStatus==e.queueStatus.QueueFull))&&e.expert.IsOnline),ns(1),Nr("ngIf",e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement),ns(1),Nr("ngIf",e.expert.Queue&&!e.expert.Queue.CurrentMemberQueueElement&&e.expert.IsOnline&&e.expert.Queue.QueueStatus==e.queueStatus.QueueFull),ns(1),Nr("ngIf",e.expert.Queue&&!e.expert.Queue.CurrentMemberQueueElement&&0==e.expert.Queue.QueueLength||!e.expert.Queue&&e.expert.IsOnline),ns(2),Nr("ngIf",e.expert.Queue&&!e.expert.Queue.CurrentMemberQueueElement&&1==e.expert.Queue.QueueLength),ns(2),Nr("ngIf",e.expert.Queue&&!e.expert.Queue.CurrentMemberQueueElement&&e.expert.Queue.QueueLength>1),ns(2),Nr("ngIf",e.expert.IsOnline),ns(1),Nr("ngIf",e.member.IsLoggedIn&&e.expert.IsOnline||e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement),ns(2),Nr("ngIf",!(e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement)&&e.expert.IsOnline),ns(1),Nr("ngIf",e.member.IsLoggedIn&&e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement),ns(1),Nr("ngIf",null==e.expert?null:e.expert.IsOnline),ns(1),Nr("ngIf",null==e.expert?null:e.expert.IsOnline),ns(1),Nr("ngIf",e.member.IsLoggedIn&&e.expert.IsOnline||e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement),ns(1),Nr("ngIf",e.expert.IsOnline||!e.expert.IsOnline&&e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement)}}function eb(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr(3);ns(1),vo(" (max ",null==e.configurations||null==e.configurations.MaxSessionCostQueuedCallback?null:e.configurations.MaxSessionCostQueuedCallback.FullFormattedValue,")")}}function tb(e,t){if(1&e&&(Fr(0,"h4"),go(1),Ar(2,eb,2,1,"ng-container",0),go(3,"."),Mr()),2&e){const e=Gr(2);ns(1),bo("Queued ",null==e.resources?null:e.resources.readings," cost ",null==e.configurations||null==e.configurations.CallbackPricePerMinute?null:e.configurations.CallbackPricePerMinute.FullFormattedValue," per minute"),ns(1),Nr("ngIf",null==e.configurations||null==e.configurations.MaxSessionCostQueuedCallback?null:e.configurations.MaxSessionCostQueuedCallback.FullFormattedValue)}}function nb(e,t){1&e&&Lr(0,"i",17)}function ib(e,t){1&e&&(Fr(0,"span"),go(1,"Queue with Top-Ups"),Mr())}function sb(e,t){1&e&&(Fr(0,"span"),go(1,"Joining..."),Mr())}function rb(e,t){1&e&&Lr(0,"i",17)}function ob(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(2);ns(1),vo("Pre-Authorise ",null==e.configurations||null==e.configurations.MaxSessionCostQueuedCallback?null:e.configurations.MaxSessionCostQueuedCallback.FullFormattedValue," and queue")}}function ab(e,t){1&e&&(Fr(0,"span"),go(1,"Joining..."),Mr())}function lb(e,t){if(1&e){const e=qr();Br(0),Fr(1,"div",3),Ar(2,tb,4,3,"h4",0),Mr(),Fr(3,"div",3),Fr(4,"h4"),go(5,"PAY AS YOU GO"),Mr(),Mr(),Fr(6,"div",3),Fr(7,"p"),go(8),Mr(),Fr(9,"a",15),Hr("click",function(){return At(e),Gr().joinQueue()}),Ar(10,nb,1,0,"i",16),Ar(11,ib,2,0,"span",0),Ar(12,sb,2,0,"span",0),Mr(),Mr(),Fr(13,"div",3),Fr(14,"h4"),go(15,"PRE-AUTHORISE"),Mr(),Mr(),Fr(16,"div",3),Fr(17,"p"),go(18),Mr(),Fr(19,"a",15),Hr("click",function(){return At(e),Gr().joinQueue(!1,!0)}),Ar(20,rb,1,0,"i",16),Ar(21,ob,2,1,"span",0),Ar(22,ab,2,0,"span",0),Mr(),Fr(23,"span",19),go(24,"How does pre-authorisation work"),Mr(),Fr(25,"div",20),Fr(26,"span"),Fr(27,"span"),go(28,"?"),Mr(),Mr(),Fr(29,"div",21),Fr(30,"div"),Fr(31,"p"),go(32),Mr(),Fr(33,"p"),go(34),Mr(),Fr(35,"a",25),go(36,"Please see our FAQs for more details."),Mr(),Mr(),Mr(),Mr(),Mr(),Fr(37,"div",3),Fr(38,"p",19),Fr(39,"span"),go(40,"Pre-authorised transactions can take up to 72 hours to settle."),Mr(),Mr(),Mr(),Vr()}if(2&e){const e=Gr();ns(2),Nr("ngIf",e.configurations&&e.configurations.CallbackPricePerMinute),ns(6),vo("Use the balance on your account and top up if it runs out (\xa310 for extra 10 mins). Minimum of ",null==e.configurations||null==e.configurations.CallbackMinimumCreditAllowed?null:e.configurations.CallbackMinimumCreditAllowed.FullFormattedValue," on your account."),ns(1),io("aspNetDisabled",e.joiningQueue),ns(1),Nr("ngIf",e.joiningQueue&&!e.joiningPreAuth),ns(1),Nr("ngIf",!e.joiningQueue||e.joiningPreAuth),ns(1),Nr("ngIf",e.joiningQueue&&!e.joiningPreAuth),ns(6),bo("For no interruptions, we'll pre-authorise the maximum call cost of ",null==e.configurations||null==e.configurations.MaxSessionCostQueuedCallback?null:e.configurations.MaxSessionCostQueuedCallback.FullFormattedValue," on your payment card - you'll only be charged the actual cost when you complete your ",null==e.resources?null:e.resources.reading,"."),ns(1),io("aspNetDisabled",e.joiningQueue),ns(1),Nr("ngIf",e.joiningPreAuth),ns(1),Nr("ngIf",!e.joiningPreAuth),ns(1),Nr("ngIf",e.joiningPreAuth),ns(10),vo("Queued readings have a maximum call cost of ",null==e.configurations||null==e.configurations.MaxSessionCostQueuedCallback?null:e.configurations.MaxSessionCostQueuedCallback.FullFormattedValue,", we'll notify you when this is about to run out."),ns(2),vo("If you choose the pre-authorise option, we'll pre-authorise the maximum ",null==e.configurations||null==e.configurations.MaxSessionCostQueuedCallback?null:e.configurations.MaxSessionCostQueuedCallback.FullFormattedValue," on your payment card when you join the queue. You will only be charged for the actual cost of the reading once it has been completed.")}}function ub(e,t){if(1&e){const e=qr();Fr(0,"login",26),Hr("close",function(t){return At(e),Gr().closeLogin(t)}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}function cb(e,t){if(1&e){const e=qr();Fr(0,"payment",26),Hr("close",function(){return At(e),Gr().closePayment()}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}function hb(e,t){1&e&&Lr(0,"modal",27),2&e&&Nr("modal",Gr().modal)}let db=(()=>{class e{constructor(e){this.queueService=e,this.close=new Wa,this.queuedChange=new Wa,this.queueingRequestChange=new Wa,this.memberLoginRequest=new Wa,this.joiningQueue=!1,this.joiningPreAuth=!1,this.leavingQueue=!1,this.modal=null,this.queueStatus=og,this.resources={},this.showMaxSessionCostOptions=!1}ngOnInit(){if(this.configurations&&(this.resources=this.configurations.ResourceData),this.member&&this.member.QueuePhoneNumbers&&this.member.QueuePhoneNumbers.length>0)if(this.expert.Queue&&this.expert.Queue.CurrentMemberQueueElement){let e=this.getPhoneNumber(this.expert.Queue.CurrentMemberQueueElement.CallBackNumber.PhoneNumberDialling,this.member.QueuePhoneNumbers);e&&(this.selectedPhoneNumber=e.PhoneNumberDialling,this.accountRequired=e.PhoneNumberType!=sv.Mobile)}else this.selectedPhoneNumber=this.member.QueuePhoneNumbers[0].PhoneNumberDialling,this.accountRequired=this.member.QueuePhoneNumbers[0].PhoneNumberType!=sv.Mobile}showJoinQueueOptions(){this.member&&this.member.IsLoggedIn?this.selectedPhoneNumber?this.configurations&&this.configurations.MaxSessionCostQueuedCallback&&this.configurations.MaxSessionCostQueuedCallback.FullFormattedValue?this.showMaxSessionCostOptions=!0:this.joinQueue():(this.modal=new Kf,this.modal.Title="Please select a valid phone number to join the queue.",this.modal.Type=Jf.Error,this.modal.ActionOk=()=>{this.modal=null,this.queueingRequestChange.emit(!1),this.joiningQueue=!1}):zf.isTestEnvironment(this.configurations)||this.configurations.AngularLoginRequest?this.showLogin=!0:zf.navigateToUrl(zf.Urls.loginPage)}hideJoinQueueOptions(){this.joiningQueue||(this.showMaxSessionCostOptions=!1)}joinQueue(e=!1,t=!1){this.expert.Queue&&this.expert.Queue.QueueStatus==og.QueueFull||this.joiningQueue||(this.member&&this.member.IsLoggedIn?(this.queueingRequestChange.emit(!0),this.joiningQueue=!0,this.joiningPreAuth=t,this.selectedPhoneNumber?this.queueService.joinQueue(this.expert.ExpertIvrId,this.selectedPhoneNumber,e,t).subscribe(e=>{var t;e&&(e.CustomerQueuedExpertId!=this.expert.ExpertIvrId&&e.QueueRequestOutcome==rv.AlreadyQueueing&&(this.modal=new Kf,this.modal.Title=`Sorry, you can only queue for a single ${null===(t=this.resources)||void 0===t?void 0:t.Expert} at a time.\n                             Do you want to queue for ${this.expert.Nickname} instead ${this.queuedFor?"of":""} ${this.queuedFor?this.queuedFor.Nickname:""}`,this.modal.Type=Jf.Error,this.modal.ActionYes=()=>{this.modal=null,this.joinQueue(!0)},this.modal.ActionNo=()=>{this.modal=null}),e.QueueRequestOutcome!=rv.BrandSettingsMissing&&e.QueueRequestOutcome!=rv.Unknown||(this.modal=new Kf,this.modal.Title="Sorry, an error has occurred, please try again later.",this.modal.Type=Jf.Error,this.modal.ActionOk=()=>{this.modal=null}),e.QueueRequestOutcome==rv.InsufficientCredit&&(this.modal=new Kf,this.modal.Title="You currently do not have enough credit available in your account, would you like to top up?",this.modal.Type=Jf.Info,this.modal.ActionYes=()=>{this.modal=null,zf.isTestEnvironment(this.configurations)||this.configurations.AngularPaymentRequest?this.showPayment=!0:zf.navigateToUrl(zf.Urls.makePaymentPage)},this.modal.ActionNo=()=>{this.modal=null}),e.QueueRequestOutcome==rv.PaymentMethodNotPresent&&(this.modal=new Kf,this.modal.Title="You currently do not have a credit card associated with your account, would you like to add one now?",this.modal.Type=Jf.Info,this.modal.ActionYes=()=>{this.modal=null,zf.navigateToUrl(zf.Urls.manageCardsPage)},this.modal.ActionNo=()=>{this.modal=null}),e.QueueRequestOutcome==rv.PaymentMethodNotAuthorised&&(this.modal=new Kf,this.modal.Title="The credit card associated with your account has not been authorised, would you like to change your card now?",this.modal.Type=Jf.Info,this.modal.ActionYes=()=>{this.modal=null,zf.navigateToUrl(zf.Urls.manageCardsPage)},this.modal.ActionNo=()=>{this.modal=null}),e.QueueRequestOutcome==rv.QueueFull&&(this.modal=new Kf,this.modal.Title="Sorry, my queue is full now. Please try again later.",this.modal.Type=Jf.Warning,this.modal.ActionOk=()=>{this.modal=null}),e.CustomerQueuedExpertId==this.expert.ExpertIvrId&&(this.expert.Queue=e.Queue,this.expert.EstimatedWaitTime=e.QueueEstimatedWaitTime,this.expert.EstimatedWaitTimeCurrentMember=e.QueueEstimatedWaitTimeCurrentMember,this.queuedChange.emit(!0),this.showMaxSessionCostOptions=!1)),this.queueingRequestChange.emit(!1),this.joiningQueue=!1,this.joiningPreAuth=this.joiningQueue}):(this.modal=new Kf,this.modal.Title="Please select a valid phone number to join the queue.",this.modal.Type=Jf.Error,this.modal.ActionOk=()=>{this.modal=null,this.queueingRequestChange.emit(!1),this.joiningQueue=!1,this.joiningPreAuth=this.joiningQueue})):zf.isTestEnvironment(this.configurations)||this.configurations.AngularLoginRequest?this.showLogin=!0:zf.navigateToUrl(zf.Urls.loginPage))}leaveQueue(){this.queueingRequestChange.emit(!0),this.leavingQueue=!0,this.queueService.leaveQueue().subscribe(e=>{e&&(this.expert.Queue=e.Queue,this.expert.EstimatedWaitTime=e.QueueEstimatedWaitTime,this.expert.EstimatedWaitTimeCurrentMember=e.QueueEstimatedWaitTimeCurrentMember,this.queuedChange.emit(!1)),this.queueingRequestChange.emit(!1),this.leavingQueue=!1})}phoneNumberChanged(e){this.accountRequired=this.getPhoneNumber(e,this.member.QueuePhoneNumbers).PhoneNumberType!=sv.Mobile}getPhoneNumber(e,t){return t[t.map(e=>e.PhoneNumberDialling).indexOf(e)]}closeLogin(e){this.showLogin=!1,e&&(this.member=e,this.member.IsLoggedIn=e.IsLoggedIn,this.memberLoginRequest.emit(e))}closePayment(){this.showPayment=!1}}return e.\u0275fac=function(t){return new(t||e)(Dr(Zm))},e.\u0275cmp=$e({type:e,selectors:[["queue"]],inputs:{expert:"expert",member:"member",configurations:"configurations",queuedFor:"queuedFor",showLogin:"showLogin",showPayment:"showPayment"},outputs:{close:"close",queuedChange:"queuedChange",queueingRequestChange:"queueingRequestChange",memberLoginRequest:"memberLoginRequest"},decls:5,vars:5,consts:[[4,"ngIf"],[3,"expert","member","configurations","close",4,"ngIf"],[3,"modal",4,"ngIf"],[1,"row"],["class","row",4,"ngIf"],["tabindex","0","class","general_button call_now_join_queue available_gradient with_hover",3,"aspNetDisabled","click",4,"ngIf"],["tabindex","0","class","general_button call_now_leave_queue unavailable_gradient with_hover",3,"click",4,"ngIf"],["class","smallprint",4,"ngIf"],["class","question",4,"ngIf"],["class","row account-info",3,"account-required",4,"ngIf"],[1,"phone-numbers"],[1,"icon-phone"],[3,"ngModel","disabled","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["tabindex","0",1,"general_button","call_now_join_queue","available_gradient","with_hover",3,"click"],["class","icon-wait",4,"ngIf"],[1,"icon-wait"],["tabindex","0",1,"general_button","call_now_leave_queue","unavailable_gradient","with_hover",3,"click"],[1,"smallprint"],[1,"question"],[1,"tooltip"],[1,"row","account-info"],["class","nowrap",4,"ngIf"],[1,"nowrap"],["href","/FAQ/"],[3,"expert","member","configurations","close"],[3,"modal"]],template:function(e,t){1&e&&(Ar(0,Xv,21,15,"ng-container",0),Ar(1,lb,41,16,"ng-container",0),Ar(2,ub,1,3,"login",1),Ar(3,cb,1,3,"payment",1),Ar(4,hb,1,1,"modal",2)),2&e&&(Nr("ngIf",!t.showMaxSessionCostOptions),ns(1),Nr("ngIf",t.showMaxSessionCostOptions),ns(1),Nr("ngIf",t.showLogin),ns(1),Nr("ngIf",t.showPayment),ns(1),Nr("ngIf",t.modal))},directives:[uu,yf,jp,af,au,vf,_f,Tv,Wy,Qg],styles:[""]}),e})();function pb(e,t){if(1&e&&(Fr(0,"div",31),Fr(1,"h4",17),go(2,"Pay By Phone"),Mr(),Fr(3,"a",32),Lr(4,"i",33),go(5),Mr(),Fr(6,"p",34),Fr(7,"span"),go(8),Mr(),Fr(9,"span",35),go(10),Mr(),Fr(11,"span"),go(12),Mr(),Mr(),Mr()),2&e){const e=Gr(2);ns(3),Yr("href","tel:",e.longNumbers.PremiumNumber.PhoneNumberDialling,"",ci),ns(2),vo(" ",e.longNumbers.PremiumNumber.PhoneNumberDisplay,""),ns(3),bo("",e.longNumbers.PremiumNumber.PhoneNumberDisplayPrefix,"=",e.longNumbers.PremiumNumberPrice.FullFormattedValue," per minute "),ns(2),yo(e.resources.PremiumComplianceTextPriceSuffix),ns(2),yo(e.resources.PremiumComplianceTextAdditional)}}function fb(e,t){if(1&e&&Lr(0,"best-product",36),2&e){const e=Gr(2);Nr("product",e.member.BestProduct)("loggedin",e.member.IsLoggedIn)("configurations",e.configurations)}}function mb(e,t){if(1&e&&(Fr(0,"a",32),go(1,"You call us - "),Lr(2,"i",33),go(3),Mr()),2&e){const e=Gr(2);Kr("href","tel:",e.longNumbers.CreditCardNumberFree.PhoneNumberDialling,"",e.configurations.DynamicNumberSuffixCreditCardFreeEnabled?e.expert.DynamicNumberSuffixForCallSetup:"","",ci),ns(3),vo(" ",e.longNumbers.CreditCardNumberFree.PhoneNumberDisplay,"")}}function gb(e,t){if(1&e){const e=qr();Fr(0,"a",37),Hr("click",function(){return At(e),Gr(2).onShowCallback()}),go(1,"We call you - "),Lr(2,"i",33),go(3," Call Me Back Now"),Mr()}}function yb(e,t){1&e&&(Fr(0,"span",34),go(1,"How do callbacks work"),Mr())}function vb(e,t){if(1&e&&(Fr(0,"div",38),Fr(1,"span"),Fr(2,"span"),go(3,"?"),Mr(),Mr(),Fr(4,"div",39),Fr(5,"div"),go(6),Mr(),Mr(),Mr()),2&e){const e=Gr(2);ns(6),bo("",e.expert.Nickname," will call you straight back to save you the hassle of phoning in and choosing them via the menus. The charges for this service are the same as if you call the ",e.resources.freephone," number.")}}function bb(e,t){if(1&e&&Lr(0,"product-list",40),2&e){const e=Gr(2);Nr("products",e.member.TopProducts)("loggedin",e.member.IsLoggedIn)("showOfferPrice",e.member.UserProductsShowOfferPrice)}}function wb(e,t){1&e&&(Br(0),go(1,"."),Vr())}function Cb(e,t){if(1&e&&(Fr(0,"p",34),Fr(1,"span",35),go(2),Ar(3,wb,2,0,"ng-container",11),Mr(),Mr()),2&e){const e=Gr(3);ns(2),bo("",e.voiceShortCode.PhoneNumberDisplay," calls capped @ ",e.voiceShortCodePrice.FullFormattedValue," per minute"),ns(1),Nr("ngIf",!e.voiceShortCodeOverPrice)}}function _b(e,t){if(1&e&&(Fr(0,"span",35),go(1),Mr()),2&e){const e=Gr(4);ns(1),vo(" (",e.voiceShortCodeOverPrice.FullFormattedValue,"pm on O2).")}}function xb(e,t){if(1&e&&(Fr(0,"p",34),Ar(1,_b,2,1,"span",29),Mr()),2&e){const e=Gr(3);ns(1),Nr("ngIf",e.voiceShortCodeOverPrice)}}function Sb(e,t){if(1&e&&(Fr(0,"div",41),Fr(1,"h4",17),go(2,"Pay By Mobile"),Mr(),Fr(3,"a",42),Lr(4,"i",33),go(5),Mr(),Ar(6,Cb,4,3,"p",21),Ar(7,xb,2,1,"p",21),Mr()),2&e){const e=Gr(2);ns(3),Yr("href","tel:",e.voiceShortCode.PhoneNumberDialling,"",ci),ns(2),vo(" CALL - ",e.voiceShortCode.PhoneNumberDisplay,""),ns(1),Nr("ngIf",e.voiceShortCodePrice),ns(1),Nr("ngIf",e.voiceShortCodePrice)}}function Eb(e,t){if(1&e&&(Fr(0,"div",31),Fr(1,"h4",17),go(2,"Pay By Phone"),Mr(),Fr(3,"a",32),Lr(4,"i",33),go(5),Mr(),Fr(6,"p",34),Fr(7,"span"),go(8),Mr(),Mr(),Fr(9,"p",34),Fr(10,"span",35),go(11),Mr(),Fr(12,"span",35),go(13),Mr(),Mr(),Mr()),2&e){const e=Gr(2);ns(3),Yr("href","tel:",e.longNumbers.PremiumNumber.PhoneNumberDialling,"",ci),ns(2),vo(" ",e.longNumbers.PremiumNumber.PhoneNumberDisplay,""),ns(3),bo("",e.longNumbers.PremiumNumber.PhoneNumberDisplayPrefix,"=",e.longNumbers.PremiumNumberPrice.FullFormattedValue," per minute "),ns(3),yo(e.resources.PremiumComplianceTextPriceSuffix),ns(2),yo(e.resources.PremiumComplianceTextAdditional)}}function Ib(e,t){1&e&&Lr(0,"p")}function Tb(e,t){1&e&&(Fr(0,"p"),go(1,"EE/O2 limit monthly spending to \xa3240"),Mr())}function kb(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr(3);ns(1),yo(e.configurations.ContactUsEmailAddress)}}function Ob(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr(3);ns(1),yo(e.configurations.HelpdeskNumber.PhoneNumberDisplay)}}function Ab(e,t){if(1&e&&(Fr(0,"span",35),go(1,"Helpdesk "),Br(2,26),Ar(3,kb,2,1,"ng-container",27),Ar(4,Ob,2,1,"ng-container",28),Vr(),go(5,". "),Mr()),2&e){const e=Gr(2);ns(2),Nr("ngSwitch",e.configurations&&e.configurations.HelpdeskPhoneAvailable),ns(1),Nr("ngSwitchCase",!1)}}function Pb(e,t){1&e&&Lr(0,"modal",43),2&e&&Nr("modal",Gr(2).modal)}function Db(e,t){if(1&e&&(Fr(0,"div"),Ar(1,pb,13,6,"div",15),Fr(2,"div",16),Fr(3,"h4",17),go(4,"Credit & Debit Cards"),Mr(),Mr(),Ar(5,fb,1,3,"best-product",18),Fr(6,"div",16),Ar(7,mb,4,3,"a",19),Ar(8,gb,4,0,"a",20),Ar(9,yb,2,0,"span",21),Ar(10,vb,7,2,"div",22),Mr(),Ar(11,bb,1,3,"product-list",23),Ar(12,Sb,8,4,"div",24),Ar(13,Eb,14,6,"div",15),Fr(14,"div",25),Fr(15,"div",26),Ar(16,Ib,1,0,"p",27),Ar(17,Tb,2,0,"p",28),Mr(),Fr(18,"p"),Fr(19,"span"),go(20,"Calls recorded. "),Mr(),Fr(21,"span"),go(22,"For entertainment purposes only. "),Mr(),Fr(23,"span"),go(24,"18+. "),Mr(),Ar(25,Ab,6,2,"span",29),Mr(),Mr(),Ar(26,Pb,1,1,"modal",30),Mr()),2&e){const e=Gr();ns(1),Nr("ngIf",e.longNumbers&&e.longNumbers.PremiumNumber&&(null==e.NumberVisibility?null:e.NumberVisibility.ShowPremiumNumberFirst)),ns(4),Nr("ngIf",e.member),ns(2),Nr("ngIf",e.longNumbers&&e.longNumbers.CreditCardNumberFree),ns(1),Nr("ngIf",e.ivrCallBackEnabled),ns(1),Nr("ngIf",e.ivrCallBackEnabled),ns(1),Nr("ngIf",e.ivrCallBackEnabled),ns(1),Nr("ngIf",e.member),ns(1),Nr("ngIf",e.voiceShortCode),ns(1),Nr("ngIf",e.longNumbers&&e.longNumbers.PremiumNumber&&!(null!=e.NumberVisibility&&e.NumberVisibility.ShowPremiumNumberFirst)),ns(2),Nr("ngSwitch",e.configurations.BrandId),ns(1),Nr("ngSwitchCase",e.brands.KoomaEire),ns(9),Nr("ngIf",e.configurations&&e.configurations.HelpdeskNumber),ns(1),Nr("ngIf",e.modal)}}function Nb(e,t){1&e&&(Fr(0,"h4"),go(1,"Sorry, I'm not available right now, please try again later."),Mr())}function Rb(e,t){1&e&&(Fr(0,"h4"),go(1,"Sorry, I'm busy, please try again later."),Mr())}function Fb(e,t){if(1&e&&(Fr(0,"div"),Fr(1,"div",16),Ar(2,Nb,2,0,"h4",11),Ar(3,Rb,2,0,"h4",11),Mr(),Mr()),2&e){const e=Gr();ns(2),Nr("ngIf",!e.expert.IsOnline),ns(1),Nr("ngIf",e.expert.IsOnline&&e.expert.IsBusy&&e.expert.IsOnline)}}function Mb(e,t){if(1&e){const e=qr();Fr(0,"callback",44),Hr("cancelChange",function(t){return At(e),Gr().onCloseCallback(t)})("callBackChange",function(t){return At(e),Gr().onCallBackChange(t)}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}function Lb(e,t){if(1&e){const e=qr();Fr(0,"queue",45),Hr("queuedChange",function(t){return At(e),Gr().onQueueChange(t)})("queueingRequestChange",function(t){return At(e),Gr().onQueueingRequestChange(t)})("memberLoginRequest",function(t){return At(e),Gr().onMemberLoginRequest(t)}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)("queuedFor",e.queuedFor)}}function Bb(e,t){if(1&e){const e=qr();Fr(0,"login",46),Hr("close",function(t){return At(e),Gr().closeLogin(t)}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}let Vb=(()=>{class e{constructor(){this.close=new Wa,this.hideClose=new Wa,this.callBackChange=new Wa,this.queuedChange=new Wa,this.queueingRequestChange=new Wa,this.chatClass="component-container",this.resources={},this.longNumbers=null,this.voiceShortCode=null,this.voiceShortCodePrice=null,this.voiceShortCodeOverPrice=null,this.NumberVisibility=null,this.showCallback=!1,this.showQueue=!1,this.ivrCallBackEnabled=!1,this.ivrQueueingEnabled=!1,this.hide=!1,this.modal=null,this.brands=lg}ngOnInit(){(this.expert.IsBusy&&this.expert.IsOnline||!this.expert.IsOnline)&&(this.showQueue=!0),this.configurations&&(this.resources=this.configurations.ResourceData,this.configurations.LongNumbers&&(this.longNumbers=this.configurations.LongNumbers),this.configurations.VoiceShortCode&&(this.voiceShortCode=this.configurations.VoiceShortCode),this.configurations.VoiceShortCodePrice&&(this.voiceShortCodePrice=this.configurations.VoiceShortCodePrice),this.configurations.VoiceShortCodePrice&&(this.voiceShortCodeOverPrice=this.configurations.VoiceShortCodeOverPrice),this.configurations.NumberVisibility&&(this.NumberVisibility=this.configurations.NumberVisibility),this.ivrCallBackEnabled=this.configurations.IvrCallBackEnabled,this.ivrQueueingEnabled=this.configurations.IvrQueueingEnabled)}onShowCallback(){var e;this.member&&this.member.IsLoggedIn?this.callBackRequestedFor?(this.modal=new Kf,this.modal.Title=`Sorry, you can only request a callback for a single ${null===(e=this.resources)||void 0===e?void 0:e.Expert} at a time.`,this.modal.Type=Jf.Error,this.modal.ActionOk=()=>{this.modal=null}):this.showCallback=!0:zf.isTestEnvironment(this.configurations)||this.configurations.AngularLoginRequest?this.showLogin=!0:zf.navigateToUrl(zf.Urls.loginPage)}onShowQueue(){this.showQueue=!0}onCloseCallback(e){e&&this.onClose(),this.showCallback=!1}onCloseQueue(e){e&&this.onClose(),this.showQueue=!1}onCallBackChange(e){this.hide=e,this.callBackChange.emit(e)}onQueueChange(e){this.hide=e,this.queuedChange.emit(e)}onQueueingRequestChange(e){this.hide=e,this.queueingRequestChange.emit(e)}onClose(){this.hide?this.hideClose.emit():(this.showCallback=!1,this.showQueue=!1,this.close.emit(this.member))}closeLogin(e){this.showLogin=!1,e&&(this.member=e,this.member.IsLoggedIn=e.IsLoggedIn,this.close.emit(e))}onMemberLoginRequest(e){e&&(this.member=e,this.close.emit(e))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["talk"]],hostVars:2,hostBindings:function(e,t){2&e&&so(t.chatClass)},inputs:{expert:"expert",member:"member",configurations:"configurations",callBackRequestedFor:"callBackRequestedFor",queuedFor:"queuedFor",showLogin:"showLogin"},outputs:{close:"close",hideClose:"hideClose",callBackChange:"callBackChange",queuedChange:"queuedChange",queueingRequestChange:"queueingRequestChange"},decls:20,vars:10,consts:[[1,"component-details","talk-details"],["tabindex","0",1,"close",3,"click"],[1,"sr-only"],["aria-hidden","true",1,"icon-close"],[1,"call_now_heading","row"],[1,"image"],[1,"photo_container","clearfix"],[1,"photo_content","clearfix"],[1,"photo"],["itemprop","image","default","/Assets/Images/profile.gif",3,"src","alt"],[1,"spacer"],[4,"ngIf"],[3,"expert","member","configurations","cancelChange","callBackChange",4,"ngIf"],[3,"expert","member","configurations","queuedFor","queuedChange","queueingRequestChange","memberLoginRequest",4,"ngIf"],[3,"expert","member","configurations","close",4,"ngIf"],["class","row pbp-content",4,"ngIf"],[1,"row"],[1,"uppercase"],[3,"product","loggedin","configurations",4,"ngIf"],["class","general_button call_now_credit_card available_gradient with_hover","rel","nofollow",3,"href",4,"ngIf"],["tabindex","0","class","general_button call_now_credit_card available_gradient with_hover call_me_button",3,"click",4,"ngIf"],["class","smallprint",4,"ngIf"],["class","question",4,"ngIf"],[3,"products","loggedin","showOfferPrice",4,"ngIf"],["class","row vsc-content",4,"ngIf"],[1,"row","smallprint"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","nowrap",4,"ngIf"],[3,"modal",4,"ngIf"],[1,"row","pbp-content"],["rel","nofollow",1,"general_button","call_now_credit_card","available_gradient","with_hover",3,"href"],[1,"icon-phone"],[1,"smallprint"],[1,"nowrap"],[3,"product","loggedin","configurations"],["tabindex","0",1,"general_button","call_now_credit_card","available_gradient","with_hover","call_me_button",3,"click"],[1,"question"],[1,"tooltip"],[3,"products","loggedin","showOfferPrice"],[1,"row","vsc-content"],["rel","nofollow",1,"general_button","call_now_vsc","available_gradient","with_hover",3,"href"],[3,"modal"],[3,"expert","member","configurations","cancelChange","callBackChange"],[3,"expert","member","configurations","queuedFor","queuedChange","queueingRequestChange","memberLoginRequest"],[3,"expert","member","configurations","close"]],template:function(e,t){1&e&&(Fr(0,"div",0),Fr(1,"a",1),Hr("click",function(){return t.onClose()}),Fr(2,"span",2),go(3),Mr(),Lr(4,"i",3),Mr(),Fr(5,"div",4),Fr(6,"div",5),Lr(7,"div",6),Fr(8,"div",7),Fr(9,"div",8),Lr(10,"img",9),Mr(),Mr(),Mr(),Fr(11,"div"),Fr(12,"h4"),go(13),Mr(),Mr(),Lr(14,"div",10),Mr(),Ar(15,Db,27,13,"div",11),Ar(16,Fb,4,2,"div",11),Ar(17,Mb,1,3,"callback",12),Ar(18,Lb,1,4,"queue",13),Mr(),Ar(19,Bb,1,3,"login",14)),2&e&&(ns(3),vo("close ",t.expert.Nickname," window"),ns(7),Nr("src",t.expert.ThumbnailFileName,ci)("alt",t.expert.Nickname),ns(3),bo("",t.expert.Nickname," - PIN ",t.expert.ExpertFourDigitId,""),ns(2),Nr("ngIf",!t.showCallback&&!t.showQueue),ns(1),Nr("ngIf",!t.ivrQueueingEnabled),ns(1),Nr("ngIf",t.showCallback&&t.ivrCallBackEnabled),ns(1),Nr("ngIf",t.showQueue&&t.ivrQueueingEnabled),ns(1),Nr("ngIf",t.showLogin))},directives:[ag,uu,pu,fu,mu,bg,Og,Qg,iv,db,Tv],styles:[""]}),e})();var qb=function(e){return e[e.BundleReading=1]="BundleReading",e[e.Chat=2]="Chat",e[e.PaygReading=3]="PaygReading",e}({});let jb=(()=>{class e{constructor(){}emitEvent(e,t,n,i=null,s=null){gtag("event",e,{event_action:n,event_category:t,event_label:i,value:s})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Qb{}var $b=function(e){return e[e.Active=1]="Active",e[e.Inactive=2]="Inactive",e}({}),Hb=function(e){return e[e.InitialDebit=1]="InitialDebit",e[e.TopUpDebit=2]="TopUpDebit",e[e.EndofReadingReminderSent=3]="EndofReadingReminderSent",e[e.CleanUpTerminated=4]="CleanUpTerminated",e[e.CustomerDisconnectionDetected=5]="CustomerDisconnectionDetected",e[e.ExpertDisconnectionDetected=6]="ExpertDisconnectionDetected",e[e.CustomerPreventedfromStartingChat=7]="CustomerPreventedfromStartingChat",e[e.PAYGDebit=8]="PAYGDebit",e[e.ReadingExtended=9]="ReadingExtended",e}({}),Ub=function(e){return e[e.CustomerToOperator=1]="CustomerToOperator",e[e.OperatorToCustomer=2]="OperatorToCustomer",e[e.System=3]="System",e[e.SystemToOperator=4]="SystemToOperator",e[e.SystemToCustomer=5]="SystemToCustomer",e}({});function Wb(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr().$implicit;ns(1),vo("Message ",e.key,"")}}function Gb(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr().$implicit;ns(1),yo(e.value)}}function zb(e,t){if(1&e&&(Fr(0,"li"),Ar(1,Wb,2,1,"ng-container",24),Ar(2,Gb,2,1,"ng-container",24),Mr()),2&e){const e=t.$implicit;ns(1),Nr("ngIf","backend"!=e.key),ns(1),Nr("ngIf","backend"==e.key)}}function Yb(e,t){if(1&e&&(Br(0),Ar(1,zb,3,2,"li",28),$a(2,"keyvalue"),Vr()),2&e){const e=Gr(3);ns(1),Nr("ngForOf",Ha(2,1,e.reportChatBody.errors))}}function Kb(e,t){if(1&e&&(Fr(0,"ul"),Ar(1,Yb,3,3,"ng-container",24),Mr()),2&e){const e=Gr(2);ns(1),Nr("ngIf",e.reportChatBody.dirty||e.reportChatBody.touched)}}function Jb(e,t){if(1&e&&(Fr(0,"div",26),Fr(1,"div",27),Fr(2,"span"),go(3,"Please resolve the following issue(s):"),Mr(),Ar(4,Kb,2,1,"ul",24),Mr(),Mr()),2&e){const e=Gr();ns(4),Nr("ngIf",e.reportChatBody&&e.reportChatBody.errors)}}function Zb(e,t){1&e&&(Fr(0,"span"),go(1,"Submit the Message"),Mr())}function Xb(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",29),Mr())}function ew(e,t){1&e&&Lr(0,"modal",30),2&e&&Nr("modal",Gr().modal)}let tw=(()=>{class e{constructor(e){this.chatService=e,this.close=new Wa,this.chatClass="component-container",this.modal=null}ngOnInit(){this.reportChatBody=new tf("",xp.required),this.reportType=new tf("0",xp.pattern("[1-3]"))}submitReport(){this.reportChatBody.valid&&(this.setSubmittingData(!0),this.chatService.reportChat(this.onlineChatData,this.reportType.value,this.reportChatBody.value).subscribe(e=>{this.setSubmittingData(!1),e&&this.close.emit()}))}setSubmittingData(e){this.submittingReportData=e,e?this.reportChatBody&&this.reportChatBody.disable():this.reportChatBody&&this.reportChatBody.enable()}closeChatReport(){this.close.emit()}onClose(){this.close.emit(this.member)}}return e.\u0275fac=function(t){return new(t||e)(Dr(Gm))},e.\u0275cmp=$e({type:e,selectors:[["chat-report"]],hostVars:2,hostBindings:function(e,t){2&e&&so(t.chatClass)},inputs:{expert:"expert",member:"member",configurations:"configurations",onlineChatData:"onlineChatData",showChatReport:"showChatReport"},outputs:{close:"close"},decls:38,vars:17,consts:[[1,"component-details","chat-report-details"],["tabindex","0",1,"close",3,"click"],[1,"sr-only"],["aria-hidden","true",1,"icon-close"],[1,"call_now_heading","row"],[1,"image"],[1,"photo_container","clearfix"],[1,"photo_content","clearfix"],[1,"photo"],["itemprop","image","default","/Assets/Images/profile.gif",3,"src","alt"],[1,"spacer"],[1,"chat_panel","row"],["class","error_message",4,"ngIf"],[1,"row"],[1,"select"],[3,"formControl"],["selected","selected","value","0"],["value","1"],["value","2"],["value","3"],[1,"textarea"],["type","text",3,"formControl"],[1,"chat-report-buttons"],["tabindex","0",1,"general_button","green_btn","review-button","review-button",3,"click"],[4,"ngIf"],[3,"modal",4,"ngIf"],[1,"error_message"],["data-valmsg-summary","true",1,"validation-summary-errors"],[4,"ngFor","ngForOf"],[1,"icon-wait"],[3,"modal"]],template:function(e,t){1&e&&(Fr(0,"div",0),Fr(1,"a",1),Hr("click",function(){return t.onClose()}),Fr(2,"span",2),go(3),Mr(),Lr(4,"i",3),Mr(),Fr(5,"div",4),Fr(6,"div",5),Lr(7,"div",6),Fr(8,"div",7),Fr(9,"div",8),Lr(10,"img",9),Mr(),Mr(),Mr(),Fr(11,"div"),Fr(12,"h4"),go(13),Mr(),Mr(),Lr(14,"div",10),Mr(),Fr(15,"div",11),Ar(16,Jb,5,1,"div",12),Fr(17,"div",13),Fr(18,"div",14),Fr(19,"select",15),Fr(20,"option",16),go(21,"-- Select --"),Mr(),Fr(22,"option",17),go(23,"Complaint"),Mr(),Fr(24,"option",18),go(25,"Feedback"),Mr(),Fr(26,"option",19),go(27,"Other"),Mr(),Mr(),Mr(),Fr(28,"div",20),Lr(29,"textarea",21),Mr(),Mr(),Fr(30,"div",22),Fr(31,"a",23),Hr("click",function(){return t.submitReport()}),Ar(32,Zb,2,0,"span",24),Ar(33,Xb,2,0,"span",24),Mr(),Fr(34,"a",23),Hr("click",function(){return t.closeChatReport()}),Fr(35,"span"),go(36,"Cancel report chat"),Mr(),Mr(),Mr(),Mr(),Ar(37,ew,1,1,"modal",25),Mr()),2&e&&(ns(3),vo("close ",t.expert.Nickname," window"),ns(7),Nr("src",t.expert.ThumbnailFileName,ci)("alt",t.expert.Nickname),ns(3),bo("",t.expert.Nickname," - PIN ",t.expert.ExpertFourDigitId,""),ns(3),Nr("ngIf",t.reportChatBody&&t.reportChatBody.invalid&&(t.reportChatBody.dirty||t.reportChatBody.touched)),ns(3),Nr("formControl",t.reportType),ns(10),Nr("formControl",t.reportChatBody),ns(2),io("aspNetDisabled",!t.reportChatBody.valid||!t.reportType.valid||t.submittingReportData)("with_hover",!t.submittingReportData&&t.reportChatBody.valid&&t.reportType.valid),ns(1),Nr("ngIf",!t.submittingReportData),ns(1),Nr("ngIf",t.submittingReportData),ns(1),io("with_hover",!t.submittingReportData&&t.reportChatBody.valid),ns(3),Nr("ngIf",t.modal))},directives:[ag,uu,yf,jp,ff,vf,_f,yp,au,Qg],pipes:[Cu],styles:[""]}),e})();class nw{}function iw(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr().$implicit;ns(1),vo("Display Name ",e.key,"")}}function sw(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr().$implicit;ns(1),yo(e.value)}}function rw(e,t){if(1&e&&(Fr(0,"li"),Ar(1,iw,2,1,"ng-container",12),Ar(2,sw,2,1,"ng-container",12),Mr()),2&e){const e=t.$implicit;ns(1),Nr("ngIf","backend"!=e.key),ns(1),Nr("ngIf","backend"==e.key)}}function ow(e,t){if(1&e&&(Br(0),Ar(1,rw,3,2,"li",16),$a(2,"keyvalue"),Vr()),2&e){const e=Gr(3);ns(1),Nr("ngForOf",Ha(2,1,e.displayName.errors))}}function aw(e,t){if(1&e&&(Fr(0,"ul"),Ar(1,ow,3,3,"ng-container",12),Mr()),2&e){const e=Gr(2);ns(1),Nr("ngIf",e.displayName.dirty||e.displayName.touched)}}function lw(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr().$implicit;ns(1),vo("Title ",e.key,"")}}function uw(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr().$implicit;ns(1),yo(e.value)}}function cw(e,t){if(1&e&&(Fr(0,"li"),Ar(1,lw,2,1,"ng-container",12),Ar(2,uw,2,1,"ng-container",12),Mr()),2&e){const e=t.$implicit;ns(1),Nr("ngIf","backend"!=e.key),ns(1),Nr("ngIf","backend"==e.key)}}function hw(e,t){if(1&e&&(Br(0),Ar(1,cw,3,2,"li",16),$a(2,"keyvalue"),Vr()),2&e){const e=Gr(3);ns(1),Nr("ngForOf",Ha(2,1,e.reviewTitle.errors))}}function dw(e,t){if(1&e&&(Fr(0,"ul"),Ar(1,hw,3,3,"ng-container",12),Mr()),2&e){const e=Gr(2);ns(1),Nr("ngIf",e.reviewTitle.dirty||e.reviewTitle.touched)}}function pw(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr().$implicit;ns(1),vo("Text ",e.key,"")}}function fw(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr().$implicit;ns(1),yo(e.value)}}function mw(e,t){if(1&e&&(Fr(0,"li"),Ar(1,pw,2,1,"ng-container",12),Ar(2,fw,2,1,"ng-container",12),Mr()),2&e){const e=t.$implicit;ns(1),Nr("ngIf","backend"!=e.key),ns(1),Nr("ngIf","backend"==e.key)}}function gw(e,t){if(1&e&&(Br(0),Ar(1,mw,3,2,"li",16),$a(2,"keyvalue"),Vr()),2&e){const e=Gr(3);ns(1),Nr("ngForOf",Ha(2,1,e.reviewText.errors))}}function yw(e,t){if(1&e&&(Fr(0,"ul"),Ar(1,gw,3,3,"ng-container",12),Mr()),2&e){const e=Gr(2);ns(1),Nr("ngIf",e.reviewText.dirty||e.reviewText.touched)}}function vw(e,t){if(1&e&&(Fr(0,"div",14),Fr(1,"div",15),Fr(2,"span"),go(3,"Please resolve the following issue(s):"),Mr(),Ar(4,aw,2,1,"ul",12),Ar(5,dw,2,1,"ul",12),Ar(6,yw,2,1,"ul",12),Mr(),Mr()),2&e){const e=Gr();ns(4),Nr("ngIf",e.displayName&&e.displayName.errors),ns(1),Nr("ngIf",e.reviewTitle&&e.reviewTitle.errors),ns(1),Nr("ngIf",e.reviewText&&e.reviewText.errors)}}function bw(e,t){1&e&&(Fr(0,"span"),go(1,"Next"),Mr())}function ww(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",20),Mr())}function Cw(e,t){if(1&e){const e=qr();Fr(0,"div"),Fr(1,"p"),go(2," Please choose a name to be shown with all of your reviews. "),Mr(),Fr(3,"label"),go(4," Display Name "),Lr(5,"input",17),Mr(),Fr(6,"div",18),Fr(7,"a",19),Hr("click",function(){return At(e),Gr().submitDisplayName()}),Ar(8,bw,2,0,"span",12),Ar(9,ww,2,0,"span",12),Mr(),Mr(),Mr()}if(2&e){const e=Gr();ns(5),Nr("formControl",e.displayName),ns(2),io("aspNetDisabled",!e.displayName.valid||e.submittingData)("with_hover",!e.submittingData&&e.displayName.valid),ns(1),Nr("ngIf",!e.submittingData),ns(1),Nr("ngIf",e.submittingData)}}function _w(e,t){1&e&&(Fr(0,"label"),go(1,"Display Name"),Mr())}function xw(e,t){if(1&e){const e=qr();Fr(0,"label"),go(1,"Display Name - "),Fr(2,"a",31),Hr("click",function(){return At(e),Gr(2).returnToSubmitDisplayName()}),go(3,"Edit"),Mr(),Mr()}if(2&e){const e=Gr(2);ns(2),io("aspNetDisabled",e.submittingData)}}function Sw(e,t){if(1&e){const e=qr();Fr(0,"a",32),Hr("click",function(){return At(e),Gr(2).returnToSubmitDisplayName()}),go(1,"Back"),Mr()}if(2&e){const e=Gr(2);io("aspNetDisabled",e.submittingData)("with_hover",!e.submittingData)}}function Ew(e,t){1&e&&(Fr(0,"span"),go(1,"Submit"),Mr())}function Iw(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",20),Mr())}function Tw(e,t){if(1&e){const e=qr();Fr(0,"div"),Fr(1,"div",21),Ar(2,_w,2,0,"label",12),Ar(3,xw,4,2,"label",12),Fr(4,"span"),go(5),Mr(),Fr(6,"label"),go(7,"Rating"),Mr(),Fr(8,"div"),Fr(9,"a",22),Hr("click",function(){return At(e),Gr().setRating(1)}),Fr(10,"span",2),go(11,"rate one star"),Mr(),Lr(12,"i",23),Mr(),go(13,"\xa0 "),Fr(14,"a",24),Hr("click",function(){return At(e),Gr().setRating(2)}),Fr(15,"span",2),go(16,"rate two stars"),Mr(),Lr(17,"i",23),Mr(),go(18,"\xa0 "),Fr(19,"a",25),Hr("click",function(){return At(e),Gr().setRating(3)}),Fr(20,"span",2),go(21,"rate three stars"),Mr(),Lr(22,"i",23),Mr(),go(23,"\xa0 "),Fr(24,"a",26),Hr("click",function(){return At(e),Gr().setRating(4)}),Fr(25,"span",2),go(26,"rate four stars"),Mr(),Lr(27,"i",23),Mr(),go(28,"\xa0 "),Fr(29,"a",27),Hr("click",function(){return At(e),Gr().setRating(5)}),Fr(30,"span",2),go(31,"rate five stars"),Mr(),Lr(32,"i",23),Mr(),Mr(),Fr(33,"label"),go(34," Title "),Lr(35,"input",28),Mr(),Fr(36,"label"),go(37," Text "),Lr(38,"textarea",29),Mr(),Mr(),Fr(39,"div",18),Ar(40,Sw,2,4,"a",30),Fr(41,"a",19),Hr("click",function(){return At(e),Gr().submitReview()}),Ar(42,Ew,2,0,"span",12),Ar(43,Iw,2,0,"span",12),Mr(),Mr(),Mr()}if(2&e){const e=Gr();ns(2),Nr("ngIf",e.showBackButton||e.submittingData),ns(1),Nr("ngIf",!e.showBackButton&&!e.submittingData),ns(2),yo(e.member.DisplayName),ns(3),_o("rating",e.rating,""),ns(27),Nr("formControl",e.reviewTitle),ns(3),Nr("formControl",e.reviewText),ns(2),Nr("ngIf",e.showBackButton),ns(1),io("aspNetDisabled",!e.reviewTitle.valid||!e.reviewText.valid||e.submittingData)("with_hover",!e.submittingData&&e.reviewTitle.valid&&e.reviewText.valid),ns(1),Nr("ngIf",!e.submittingData),ns(1),Nr("ngIf",e.submittingData)}}function kw(e,t){if(1&e&&(Fr(0,"p",38),go(1),Mr()),2&e){const e=Gr(2);ns(1),vo(" ",e.modal.Title," ")}}function Ow(e,t){if(1&e&&(Fr(0,"p"),go(1," Why not review us on "),Fr(2,"a",39),go(3),Mr(),go(4," too. "),Mr()),2&e){const e=Gr(2);ns(2),Nr("href",e.modal.InfoLink,ci),ns(1),yo(e.modal.InfoLinkText)}}function Aw(e,t){if(1&e){const e=qr();Fr(0,"a",40),Hr("click",function(){return At(e),Gr(2).modal.ActionOk()}),go(1),Mr()}if(2&e){const e=Gr(2);io("long-text",e.modal.ActionOkText),ns(1),yo(e.modal.ActionOkText?e.modal.ActionOkText:"OK")}}function Pw(e,t){if(1&e&&(Fr(0,"div",33),Fr(1,"div",34),Ar(2,kw,2,1,"p",35),Ar(3,Ow,5,2,"p",12),Mr(),Fr(4,"div",36),Ar(5,Aw,2,3,"a",37),Mr(),Mr()),2&e){const e=Gr();ns(2),Nr("ngIf",e.modal&&e.modal.Title),ns(1),Nr("ngIf",e.modal.InfoLink),ns(2),Nr("ngIf",e.modal&&e.modal.ActionOk)}}let Dw=(()=>{class e{constructor(e,t){this.memberService=e,this.expertService=t,this.close=new Wa,this.reviewChange=new Wa,this.displayNameChange=new Wa,this.chatClass="component-container",this.resources={},this.showSubmitDisplayName=!1,this.showSubmitReview=!0,this.submittingData=!1,this.modal=null,this.showBackButton=!1,this.rating=5}setRating(e){this.submittingData||(this.rating=e)}returnToSubmitDisplayName(){this.submittingData||(this.displayName||(this.displayName=new tf(this.member.DisplayName,xp.required)),this.showSubmitReview=!1,this.showSubmitDisplayName=!0)}submitDisplayName(){this.displayName.valid&&(this.setSubmittingData(!0),this.memberService.setDisplayName(this.displayName.value).subscribe(e=>{this.setSubmittingData(!1),e&&e.DisplayNameValid==ov.Valid&&!e.DisplayNameIsAlreadyTaken&&(this.member.DisplayName=this.displayName.value,this.displayNameChange.emit(this.displayName.value),this.showSubmitDisplayName=!1,this.showSubmitReview=!0),e||this.displayName.setErrors({backend:"An error has occurred"}),e&&e.DisplayNameValid!=ov.Valid&&!e.DisplayNameIsAlreadyTaken&&this.displayName.setErrors({backend:"Display Name not valid"}),e&&e.DisplayNameIsAlreadyTaken&&this.displayName.setErrors({backend:"Display Name is already taken"})}))}submitReview(){if(this.reviewTitle.valid&&this.reviewText.valid){this.setSubmittingData(!0);let e=new nw;e.ExpertId=this.expert.ExpertIvrId,e.AuthorDisplayName=this.member.DisplayName,e.Approved=!1,e.Created="now",e.Rating=this.rating,e.Text=this.reviewText.value,e.Title=this.reviewTitle.value,this.expertService.setExpertReview(e).subscribe(t=>{t&&t.MemberDisplayNameValid==ov.Valid&&t.ReviewRatingValid==ov.Valid&&t.ReviewTextValid==ov.Valid&&t.ReviewTitleValid==ov.Valid?(this.reviewChange.emit(e),this.modal=new Kf,this.modal.Title=`Thank you, the review has been successfully submitted for ${this.expert.Nickname}.`,this.modal.InfoLink=this.configurations.ReviewUrlTrustpilot,this.modal.InfoLinkText="Trustpilot",this.modal.Type=Jf.Info,this.modal.ActionOk=()=>{this.modal=null,this.setSubmittingData(!1),this.close.emit()}):(this.setSubmittingData(!1),t||this.reviewTitle.setErrors({backend:"An error has occurred"}),t&&t.MemberDisplayNameValid!=ov.Valid&&this.displayName.setErrors({backend:"Display Name not valid"}),t&&t.ReviewRatingValid!=ov.Valid&&this.reviewTitle.setErrors({backend:"Rating not valid"}),t&&t.ReviewTextValid!=ov.Valid&&this.reviewText.setErrors({backend:"Text not valid"}),t&&t.ReviewTitleValid!=ov.Valid&&this.reviewTitle.setErrors({backend:"Title not valid"}))})}}setSubmittingData(e){this.submittingData=e,e?(this.displayName&&this.displayName.disable(),this.reviewTitle.disable(),this.reviewText.disable()):(this.displayName&&this.displayName.enable(),this.reviewTitle.enable(),this.reviewText.enable())}ngOnInit(){this.member&&(this.member.DisplayName||(this.displayName=new tf(this.member.DisplayName,xp.required),this.showSubmitDisplayName=!0,this.showSubmitReview=!1,this.showBackButton=!0),this.reviewTitle=new tf("",xp.required),this.reviewText=new tf("",xp.required)),this.configurations&&(this.resources=this.configurations.ResourceData)}onClose(){this.close.emit()}}return e.\u0275fac=function(t){return new(t||e)(Dr(Cm),Dr(Km))},e.\u0275cmp=$e({type:e,selectors:[["review"]],hostVars:2,hostBindings:function(e,t){2&e&&so(t.chatClass)},inputs:{expert:"expert",member:"member",configurations:"configurations"},outputs:{close:"close",reviewChange:"reviewChange",displayNameChange:"displayNameChange"},decls:19,vars:7,consts:[[1,"component-details","review-details"],["tabindex","0",1,"close",3,"click"],[1,"sr-only"],["aria-hidden","true",1,"icon-close"],[1,"call_now_heading","row"],[1,"image"],[1,"photo_container","clearfix"],[1,"photo_content","clearfix"],[1,"photo"],["itemprop","image","default","/Assets/Images/profile.gif",3,"src","alt"],[1,"spacer"],["class","error_message",4,"ngIf"],[4,"ngIf"],["class","modal",4,"ngIf"],[1,"error_message"],["data-valmsg-summary","true",1,"validation-summary-errors"],[4,"ngFor","ngForOf"],["type","text","placeholder","Display Name",3,"formControl"],[1,"review-buttons"],["tabindex","0",1,"general_button","blue_btn","review-button","review-button-right",3,"click"],[1,"icon-wait"],[1,"ExpertFeedbackItem"],["tabindex","0","title","rate one star",3,"click"],["aria-hidden","true",1,"icon-star"],["tabindex","0","title","rate two stars",3,"click"],["tabindex","0","title","rate three stars",3,"click"],["tabindex","0","title","rate four stars",3,"click"],["tabindex","0","title","rate five stars",3,"click"],["type","text","placeholder","Title",3,"formControl"],["maxlength","1000","placeholder","Text",3,"formControl"],["tabindex","0","class","general_button blue_btn review-button review-button-left",3,"aspNetDisabled","with_hover","click",4,"ngIf"],["tabindex","0",3,"click"],["tabindex","0",1,"general_button","blue_btn","review-button","review-button-left",3,"click"],[1,"modal"],[1,"modal-content"],["class","title",4,"ngIf"],[1,"modal-buttons"],["tabindex","0","class","green_btn modal-button with_hover",3,"long-text","click",4,"ngIf"],[1,"title"],[3,"href"],["tabindex","0",1,"green_btn","modal-button","with_hover",3,"click"]],template:function(e,t){1&e&&(Fr(0,"div",0),Fr(1,"a",1),Hr("click",function(){return t.onClose()}),Fr(2,"span",2),go(3,"close review window"),Mr(),Lr(4,"i",3),Mr(),Fr(5,"div",4),Fr(6,"div",5),Lr(7,"div",6),Fr(8,"div",7),Fr(9,"div",8),Lr(10,"img",9),Mr(),Mr(),Mr(),Fr(11,"div"),Fr(12,"h4"),go(13),Mr(),Mr(),Lr(14,"div",10),Mr(),Ar(15,vw,7,3,"div",11),Ar(16,Cw,10,7,"div",12),Ar(17,Tw,44,15,"div",12),Ar(18,Pw,6,3,"div",13),Mr()),2&e&&(ns(10),Nr("src",t.expert.ThumbnailFileName,ci)("alt",t.expert.Nickname),ns(3),vo("Leaving a review for ",t.expert.Nickname,""),ns(2),Nr("ngIf",t.displayName&&t.displayName.invalid&&(t.displayName.dirty||t.displayName.touched)||t.reviewTitle&&t.reviewTitle.invalid&&(t.reviewTitle.dirty||t.reviewTitle.touched)||t.reviewText&&t.reviewText.invalid&&(t.reviewText.dirty||t.reviewText.touched)),ns(1),Nr("ngIf",t.showSubmitDisplayName),ns(1),Nr("ngIf",t.showSubmitReview),ns(1),Nr("ngIf",t.modal))},directives:[ag,uu,au,yp,jp,ff,Sf],pipes:[Cu],styles:[""]}),e})(),Nw=(()=>{class e{transform(e,t){const n=Math.floor(e/60/60),i=Math.floor(e/60)%60,s=e%60;return n>0?`${this.padding(n)}${n} hr ${this.padding(i)}${i} mins ${this.padding(s)}${s} sec`:`${i} mins ${this.padding(s)}${s} sec`}padding(e){return e<10?"0":""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Ke({name:"timeFormat",type:e,pure:!0}),e})();const Rw=["scrollMe"];function Fw(e,t){if(1&e){const e=qr();Fr(0,"div",35),Fr(1,"a",36),Hr("click",function(){return At(e),Gr().chatReport()}),Fr(2,"span"),go(3,"Report chat"),Mr(),Mr(),Mr()}}function Mw(e,t){}function Lw(e,t){1&e&&Ar(0,Mw,0,0,"ng-template")}function Bw(e,t){}function Vw(e,t){1&e&&Ar(0,Bw,0,0,"ng-template")}function qw(e,t){if(1&e&&(Fr(0,"span",48),Fr(1,"span",49),go(2),Mr(),Mr(),Fr(3,"span",48),Fr(4,"span",50),go(5),Mr(),Mr()),2&e){const e=Gr(2).$implicit,t=Gr(2);ns(2),vo(" ",e.ProductPrice.FullFormattedValue," "),ns(3),bo(" Free ",e.CallLength," minute ",null==t.resources?null:t.resources.reading,"")}}function jw(e,t){}function Qw(e,t){1&e&&Ar(0,jw,0,0,"ng-template")}function $w(e,t){if(1&e&&(Fr(0,"span",48),Fr(1,"span",49),go(2),Mr(),Mr(),Fr(3,"span"),go(4),Mr(),Lr(5,"br"),Fr(6,"span",48),Fr(7,"span"),go(8," You save "),Mr(),Fr(9,"span",50),go(10),Mr(),Mr()),2&e){const e=Gr(3).$implicit;ns(2),yo(e.ProductPrice.FullFormattedValue),ns(2),vo("Pay as you go ",e.PricePerMinute.FullFormattedValue,"/min"),ns(6),bo("",e.OfferDiscountAmount.FullFormattedValue," (",e.SaveDiscount,"%)")}}function Hw(e,t){if(1&e&&(Fr(0,"span",48),Fr(1,"span",49),go(2),Mr(),Mr(),Fr(3,"span",48),Fr(4,"span",50),go(5),Mr(),Fr(6,"span"),go(7),Mr(),Mr(),Lr(8,"br"),Fr(9,"span",48),Fr(10,"span"),go(11," You save "),Mr(),Fr(12,"span",50),go(13),Mr(),Mr()),2&e){const e=Gr(3).$implicit;ns(2),yo(e.ProductPrice.FullFormattedValue),ns(3),vo(" ",e.AmountToPay.FullFormattedValue,""),ns(2),vo(" for ",e.CallLength," minutes"),ns(6),bo("",e.OfferDiscountAmount.FullFormattedValue," (",e.SaveDiscount,"%)")}}function Uw(e,t){if(1&e&&(Ar(0,Qw,1,0,void 0,40),Ar(1,$w,11,4,"ng-template",null,51,ol),Ar(3,Hw,14,5,"ng-template",null,52,ol)),2&e){const e=Pr(2),t=Pr(4),n=Gr(2).$implicit,i=Gr(2);Nr("ngIf",n.ProductTypeId==i.productType.PayAsYouGo)("ngIfThen",e)("ngIfElse",t)}}function Ww(e,t){if(1&e&&(Ar(0,Vw,1,0,void 0,40),Ar(1,qw,6,3,"ng-template",null,46,ol),Ar(3,Uw,5,3,"ng-template",null,47,ol)),2&e){const e=Pr(2),t=Pr(4);Nr("ngIf",0==Gr().$implicit.AmountToPay)("ngIfThen",e)("ngIfElse",t)}}function Gw(e,t){}function zw(e,t){1&e&&Ar(0,Gw,0,0,"ng-template")}function Yw(e,t){if(1&e&&(Fr(0,"span",48),Fr(1,"span"),go(2),Mr(),Mr(),Lr(3,"br")),2&e){const e=Gr(2).$implicit;ns(2),vo("Pay as you go ",e.PricePerMinute.FullFormattedValue,"/min")}}function Kw(e,t){}function Jw(e,t){1&e&&Ar(0,Kw,0,0,"ng-template")}function Zw(e,t){1&e&&(Fr(0,"span"),go(1," topup"),Mr())}function Xw(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(3).$implicit;ns(1),vo(" for ",e.CallLength," minutes")}}function eC(e,t){if(1&e&&(Fr(0,"span",48),Fr(1,"span"),go(2),Mr(),Ar(3,Jw,1,0,void 0,40),Ar(4,Zw,2,0,"ng-template",null,55,ol),Ar(6,Xw,2,1,"ng-template",null,56,ol),Mr()),2&e){const e=Pr(5),t=Pr(7),n=Gr(2).$implicit,i=Gr(2);ns(2),yo(n.ProductPrice.FullFormattedValue),ns(1),Nr("ngIf",1e3==i.configurations.BrandId)("ngIfThen",e)("ngIfElse",t)}}function tC(e,t){if(1&e&&(Ar(0,zw,1,0,void 0,40),Ar(1,Yw,4,1,"ng-template",null,53,ol),Ar(3,eC,8,4,"ng-template",null,54,ol)),2&e){const e=Pr(2),t=Pr(4),n=Gr().$implicit,i=Gr(2);Nr("ngIf",n.ProductTypeId==i.productType.PayAsYouGo)("ngIfThen",e)("ngIfElse",t)}}function nC(e,t){if(1&e&&(Fr(0,"div"),Fr(1,"span",48),Fr(2,"span"),go(3,"Bonus of "),Mr(),Fr(4,"span",50),go(5),Mr(),Mr(),Fr(6,"span",48),Fr(7,"span"),go(8,"will be added"),Mr(),Mr(),Mr()),2&e){const e=Gr().$implicit;ns(5),vo("",e.OfferBonusAmount.FullFormattedValue," ")}}function iC(e,t){1&e&&Lr(0,"div")}function sC(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(3).$implicit;ns(1),vo(" Buy PAYG credit for ",e.AmountToPay.FullFormattedValue,"")}}function rC(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",59),Mr())}function oC(e,t){if(1&e){const e=qr();Fr(0,"a",36),Hr("click",function(){At(e);const t=Gr(2),n=t.$implicit,i=t.index;return Gr(2).topUpSubscriptionPurchase(n,i)}),Ar(1,sC,2,1,"span",31),Ar(2,rC,2,0,"span",31),Mr()}if(2&e){const e=Gr(2).index,t=Gr(2);io("aspNetDisabled",(t.onlineChatData.OnlineChatStatusId===t.onlineChatStatus.New||t.onlineChatData.OnlineChatStatusId===t.onlineChatStatus.InProgress&&!t.callbackResponse.Charged)&&t.onlineChatData.OnlineChatTypeId!==t.onlineChatType.PaygReading),ns(1),Nr("ngIf",t.submittingData!=e),ns(1),Nr("ngIf",t.submittingData==e)}}function aC(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(3).$implicit;ns(1),vo(" Buy PAYG credit for ",e.AmountToPay.FullFormattedValue,"")}}function lC(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",59),Mr())}function uC(e,t){if(1&e&&(Fr(0,"a",60),Ar(1,aC,2,1,"span",31),Ar(2,lC,2,0,"span",31),Mr()),2&e){const e=Gr(2),t=e.$implicit,n=e.index,i=Gr(2);io("aspNetDisabled",(i.onlineChatData.OnlineChatStatusId===i.onlineChatStatus.New||i.onlineChatData.OnlineChatStatusId===i.onlineChatStatus.InProgress&&!i.callbackResponse.Charged)&&i.onlineChatData.OnlineChatTypeId!==i.onlineChatType.PaygReading),Yr("href","/My-Account/RegisterCardAndPay/",t.ProductId,"",ci),ns(1),Nr("ngIf",i.submittingData!=n),ns(1),Nr("ngIf",i.submittingData==n)}}function cC(e,t){if(1&e&&(Ar(0,oC,3,4,"a",57),Ar(1,uC,3,5,"ng-template",null,58,ol)),2&e){const e=Pr(2),t=Gr(3);Nr("ngIf",t.creditCardData&&t.creditCardData.CyberSourceSubscriptionId)("ngIfElse",e)}}function hC(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(3).$implicit;ns(1),vo("Buy now for only ",e.AmountToPay.FullFormattedValue,"")}}function dC(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",59),Mr())}function pC(e,t){if(1&e){const e=qr();Fr(0,"a",36),Hr("click",function(){At(e);const t=Gr(2),n=t.$implicit,i=t.index;return Gr(2).topUpSubscriptionPurchase(n,i)}),Ar(1,hC,2,1,"span",31),Ar(2,dC,2,0,"span",31),Mr()}if(2&e){const e=Gr(2).index,t=Gr(2);io("aspNetDisabled",(t.onlineChatData.OnlineChatStatusId===t.onlineChatStatus.New||t.onlineChatData.OnlineChatStatusId===t.onlineChatStatus.InProgress&&!t.callbackResponse.Charged)&&t.onlineChatData.OnlineChatTypeId!==t.onlineChatType.PaygReading),ns(1),Nr("ngIf",t.submittingData!=e),ns(1),Nr("ngIf",t.submittingData==e)}}function fC(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(3).$implicit;ns(1),vo(" Buy now for only ",e.AmountToPay.FullFormattedValue,"")}}function mC(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",59),Mr())}function gC(e,t){if(1&e&&(Fr(0,"a",60),Ar(1,fC,2,1,"span",31),Ar(2,mC,2,0,"span",31),Mr()),2&e){const e=Gr(2),t=e.$implicit,n=e.index,i=Gr(2);io("aspNetDisabled",(i.onlineChatData.OnlineChatStatusId===i.onlineChatStatus.New||i.onlineChatData.OnlineChatStatusId===i.onlineChatStatus.InProgress&&!i.callbackResponse.Charged)&&i.onlineChatData.OnlineChatTypeId!==i.onlineChatType.PaygReading),Yr("href","/My-Account/RegisterCardAndPay/",t.ProductId,"",ci),ns(1),Nr("ngIf",i.submittingData!=n),ns(1),Nr("ngIf",i.submittingData==n)}}function yC(e,t){if(1&e&&(Ar(0,pC,3,4,"a",57),Ar(1,gC,3,5,"ng-template",null,61,ol)),2&e){const e=Pr(2),t=Gr(3);Nr("ngIf",t.creditCardData&&t.creditCardData.CyberSourceSubscriptionId)("ngIfElse",e)}}function vC(e,t){if(1&e&&(Fr(0,"div",38),Fr(1,"h4"),go(2,"Extend Session"),Mr(),Fr(3,"div",39),Ar(4,Lw,1,0,void 0,40),Ar(5,Ww,5,3,"ng-template",null,41,ol),Ar(7,tC,5,3,"ng-template",null,42,ol),Ar(9,nC,9,1,"div",31),Mr(),Fr(10,"div",43),Ar(11,iC,1,0,"div",40),Ar(12,cC,3,2,"ng-template",null,44,ol),Ar(14,yC,3,2,"ng-template",null,45,ol),Mr(),Mr()),2&e){const e=t.$implicit,n=Pr(6),i=Pr(8),s=Pr(13),r=Pr(15),o=Gr(2);ns(4),Nr("ngIf",e.OfferDiscountAmount&&e.OfferDiscountAmount>0)("ngIfThen",n)("ngIfElse",i),ns(5),Nr("ngIf",e.OfferBonusAmount&&e.OfferBonusAmount>0),ns(2),Nr("ngIf",e.ProductTypeId==o.productType.ImPpmTopUp)("ngIfThen",s)("ngIfElse",r)}}function bC(e,t){if(1&e&&(Fr(0,"div",35),Ar(1,vC,16,7,"div",37),Mr()),2&e){const e=Gr();ns(1),Nr("ngForOf",e.topUpProducts)}}function wC(e,t){1&e&&(Fr(0,"span"),go(1,"Cancel Session"),Mr())}function CC(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",59),Mr())}function _C(e,t){if(1&e){const e=qr();Fr(0,"a",36),Hr("click",function(){At(e);const t=Gr(2);return t.cancelSession(t.onlineChatData.Guid)}),Ar(1,wC,2,0,"span",31),Ar(2,CC,2,0,"span",31),Mr()}if(2&e){const e=Gr(2);io("aspNetDisabled",e.submittingSessionData),ns(1),Nr("ngIf",!e.submittingSessionData),ns(1),Nr("ngIf",e.submittingSessionData)}}function xC(e,t){1&e&&(Fr(0,"span"),go(1,"End Session"),Mr())}function SC(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",59),Mr())}function EC(e,t){if(1&e){const e=qr();Fr(0,"a",36),Hr("click",function(){At(e);const t=Gr(2);return t.endSession(t.onlineChatData.Guid)}),Ar(1,xC,2,0,"span",31),Ar(2,SC,2,0,"span",31),Mr()}if(2&e){const e=Gr(2);io("aspNetDisabled",e.submittingSessionData),ns(1),Nr("ngIf",!e.submittingSessionData),ns(1),Nr("ngIf",e.submittingSessionData)}}function IC(e,t){if(1&e&&(Fr(0,"div",35),Fr(1,"div",62),Ar(2,_C,3,4,"a",63),Ar(3,EC,3,4,"a",63),Mr(),Mr()),2&e){const e=Gr();ns(2),Nr("ngIf",!(null!=e.callbackResponse&&e.callbackResponse.Charged)&&e.onlineChatData.OnlineChatTypeId===e.onlineChatType.BundleReading||e.onlineChatData.OnlineChatTypeId===e.onlineChatType.PaygReading&&e.onlineChatData.OnlineChatStatusId===e.onlineChatStatus.New),ns(1),Nr("ngIf",(null==e.callbackResponse?null:e.callbackResponse.Charged)&&e.onlineChatData.OnlineChatTypeId===e.onlineChatType.BundleReading||e.onlineChatData.OnlineChatTypeId===e.onlineChatType.PaygReading&&e.onlineChatData.OnlineChatStatusId===e.onlineChatStatus.InProgress)}}function TC(e,t){if(1&e&&(Br(0),Fr(1,"div",17),go(2,"Elapsed time:"),Mr(),Fr(3,"div",18),go(4),$a(5,"timeFormat"),Mr(),Vr()),2&e){const e=t.ngIf;ns(4),vo(" ",Ha(5,1,e),"")}}function kC(e,t){1&e&&(Fr(0,"div",17),go(1,"Elapsed time:"),Mr(),Fr(2,"div",18),go(3,"0 mins 00 sec"),Mr())}function OC(e,t){if(1&e&&(Fr(0,"div",16),Ar(1,TC,6,3,"ng-container",64),$a(2,"async"),Ar(3,kC,4,0,"ng-template",null,65,ol),Mr()),2&e){const e=Pr(4),t=Gr();ns(1),Nr("ngIf",Ha(2,2,t.counter$))("ngIfElse",e)}}function AC(e,t){if(1&e&&(Br(0),Fr(1,"div",17),go(2,"Remaining time:"),Mr(),Fr(3,"div",68),go(4),$a(5,"timeFormat"),Mr(),Vr()),2&e){const e=t.ngIf;ns(4),vo(" ",Ha(5,1,e),"")}}function PC(e,t){1&e&&(Fr(0,"div",17),go(1,"Remaining time:"),Mr(),Fr(2,"div"),go(3,"0 mins 00 sec"),Mr())}function DC(e,t){if(1&e&&(Fr(0,"div",66),Ar(1,AC,6,3,"ng-container",64),$a(2,"async"),Ar(3,PC,4,0,"ng-template",null,67,ol),Mr()),2&e){const e=Pr(4),t=Gr();ns(1),Nr("ngIf",Ha(2,2,t.countdown$))("ngIfElse",e)}}function NC(e,t){if(1&e&&(Fr(0,"div",71),Fr(1,"span",72),go(2),Mr(),Fr(3,"span"),go(4,":"),Mr(),Fr(5,"span",73),go(6),Mr(),Mr()),2&e){const e=Gr().$implicit,t=Gr();Nr("ngClass","message-customer"),ns(2),yo(t.onlineChatData.CustomerNickname),ns(4),vo(" ",e.MessageBody,"")}}function RC(e,t){if(1&e&&(Fr(0,"div",71),Fr(1,"span",72),go(2),Mr(),Fr(3,"span"),go(4,":"),Mr(),Fr(5,"span",73),go(6),Mr(),Mr()),2&e){const e=Gr().$implicit,t=Gr();Nr("ngClass","message-operator"),ns(2),bo("",t.onlineChatData.ExpertNickname," ",-1==e.OnlineChatMessageId?"typing":"",""),ns(4),vo(" ",e.MessageBody,"")}}function FC(e,t){if(1&e&&(Fr(0,"div",71),Fr(1,"span",72),go(2,"Kooma"),Mr(),Fr(3,"span"),go(4,":"),Mr(),Fr(5,"span",73),go(6),Mr(),Mr()),2&e){const e=Gr().$implicit;Nr("ngClass","message-system-to-customer"),ns(6),vo(" ",e.MessageBody,"")}}function MC(e,t){if(1&e&&(Fr(0,"div",71),Fr(1,"span",72),go(2,"Kooma"),Mr(),Fr(3,"span"),go(4,":"),Mr(),Fr(5,"span",73),go(6),Mr(),Mr()),2&e){const e=Gr().$implicit;Nr("ngClass","message-system"),ns(6),vo(" ",e.MessageBody,"")}}function LC(e,t){if(1&e&&(Fr(0,"div"),Fr(1,"div",69),Ar(2,NC,7,3,"div",70),Ar(3,RC,7,4,"div",70),Ar(4,FC,7,2,"div",70),Ar(5,MC,7,2,"div",70),Mr(),Mr()),2&e){const e=t.$implicit,n=Gr();ns(1),zr("ngSwitch",e.OnlineChatMessageTypeId),ns(1),Nr("ngSwitchCase",n.onlineChatMessageType.CustomerToOperator),ns(1),Nr("ngSwitchCase",n.onlineChatMessageType.OperatorToCustomer),ns(1),Nr("ngSwitchCase",n.onlineChatMessageType.SystemToCustomer),ns(1),Nr("ngSwitchCase",n.onlineChatMessageType.System)}}function BC(e,t){1&e&&(Fr(0,"span"),go(1,">"),Mr())}function VC(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",59),Mr())}function qC(e,t){if(1&e){const e=qr();Fr(0,"chat-report",74),Hr("close",function(){return At(e),Gr().closeChatReport()}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)("onlineChatData",e.onlineChatData)}}function jC(e,t){if(1&e){const e=qr();Fr(0,"review",75),Hr("close",function(){return At(e),Gr().closeSubmitReview()})("reviewChange",function(t){return At(e),Gr().addReview(t)})("displayNameChange",function(t){return At(e),Gr().displayNameChange(t)}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}function QC(e,t){1&e&&Lr(0,"modal",76),2&e&&Nr("modal",Gr().modal)}let $C=(()=>{class e{constructor(e,t,n,i){this.chatService=e,this.tileBusService=t,this.memberService=n,this.googleAnalyticsEventsService=i,this.close=new Wa,this.modal=null,this.onlineChatMessageType=Ub,this.onlineChatStatus=Yf,this.productType=wg,this.onlineChatType=qb,this.chatMessages=[],this.resources={},this.timerStarted=!1,this.stopTimerPolling=new x,this.stopCountDownTimerPolling=new x,this.typingMessageId=null,this.isMuted=!1,this.player=new Audio,this.math=Math,this.isSessionStarted=!1,this.isEndofReadingReminderSent=!1,this.isTestEnvironment=!1,this.sessionEndEventSent=!1,this.chatSessionStopPollingAfterConsecutiveExceptions=2,this.isMessagesPollingStopped=!1,this.chatClass="component-container displayAsModal-background"}unloadHandler(e){return!1}ngOnInit(){this.configurations&&(this.resources=this.configurations.ResourceData),this.creditCard&&(this.creditCardData=this.creditCard),this.refreshMessages_V2(),this.content=new tf,this.scrollToBottom(),this.initialiseView()}ngAfterViewChecked(){this.scrollToBottom()}initialiseView(){this.onlineChatData&&this.onlineChatData.OnlineChatStatusId!==this.onlineChatStatus.New&&(this.startTimer(this.onlineChatData.Duration-this.onlineChatData.TimeRemainingInSeconds),null!=this.callbackResponse.ChatMessages&&(this.callbackResponse.ChatMessages.forEach(e=>{this.chatMessages.push(e)}),this.playMessageSound(),this.disableScrollDown=!1)),this.chatService.initialiseViewRequest().subscribe(e=>{e&&(this.topUpProducts=e.TopUpProducts)}),this.player.src=zf.messageReceivedSound}playMessageSound(){if(!this.isMuted){var e=this.player.play();void 0!==e&&e.then(e=>{}).catch(e=>{})}}scrollToBottom(){if(!this.disableScrollDown)try{this.messagesContainer.nativeElement.scrollTop=this.messagesContainer.nativeElement.scrollHeight}catch(e){}}onScroll(){this.disableScrollDown=!0}refreshMessages(){this.messengerCallbackHandler=new Xf,this.messengerCallbackCommand=new Zf,this.messengerCallbackCommand.Command="refresh",this.messengerCallbackCommand.Content="",this.messengerCallbackCommand.LastMessageSent=this.onlineChatData.LastMessageSent?this.onlineChatData.LastMessageSent:null,this.messengerCallbackHandler.CallbackCommand=this.messengerCallbackCommand,this.messengerCallbackHandler.Guid=this.onlineChatData.Guid,this.chatService.doMessengerCallback_V2(this.messengerCallbackHandler),this.refreshMessages$=this.chatService.refreshMessages()}sendMessage(){this.onlineChatData.OnlineChatStatusId==this.onlineChatStatus.InProgress&&this.content.value&&(this.messengerCallbackHandler=new Xf,this.messengerCallbackCommand=new Zf,this.messengerCallbackCommand.Command="send",this.messengerCallbackCommand.Content=this.content.value,this.messengerCallbackCommand.LastMessageSent=this.onlineChatData.LastMessageSent?this.onlineChatData.LastMessageSent:null,this.messengerCallbackHandler.CallbackCommand=this.messengerCallbackCommand,this.messengerCallbackHandler.Guid=this.onlineChatData.Guid,this.submittingMessageData=!0,this.onlineChatMessage=new Qb,this.onlineChatMessage.OnlineChatMessageTypeId=this.onlineChatMessageType.CustomerToOperator,this.onlineChatMessage.MessageBody=this.content.value,this.onlineChatMessage.OnlineChatMessageId=-2,this.chatMessages.push(this.onlineChatMessage),this.disableScrollDown=!1,this.content.setValue(""),this.chatService.doMessengerCallback(this.messengerCallbackHandler).subscribe(e=>{this.chatService.updateContent(""),this.submittingMessageData=!1;let t=this.chatMessages.find(e=>-2==e.OnlineChatMessageId);const n=this.chatMessages.indexOf(t);e?(this.onlineChatData=e.OnlineChat,null!=e.CallbackResponse.ChatMessages&&e.CallbackResponse.ChatMessages.forEach(e=>{e.OnlineChatMessageTypeId===this.onlineChatMessageType.CustomerToOperator&&e.MessageBody===this.chatMessages[n].MessageBody&&(this.chatMessages[n].OnlineChatMessageId=e.OnlineChatMessageId)}),this.isMessagesPollingStopped&&(this.refreshMessages_V2(),this.isMessagesPollingStopped=!1)):this.chatMessages.splice(n,1)}))}refreshMessages_V2(){this.messengerCallbackHandler=new Xf,this.messengerCallbackCommand=new Zf,this.messengerCallbackCommand.Command="refresh",this.messengerCallbackCommand.Content="",this.messengerCallbackCommand.LastMessageSent=this.onlineChatData.LastMessageSent?this.onlineChatData.LastMessageSent:null,this.messengerCallbackHandler.CallbackCommand=this.messengerCallbackCommand,this.messengerCallbackHandler.Guid=this.onlineChatData.Guid,this.refreshMessagesSubscription=this.chatService.doMessengerCallback_V3(this.messengerCallbackHandler).subscribe(e=>{if(this.submittingMessageData=!1,this.otherChatterTypingContent=new Qb,e){if(this.onlineChatData=e.OnlineChat,this.callbackResponse=e.CallbackResponse,this.callbackResponse.Charged&&(this.isMemberCharged=this.callbackResponse.Charged),e.CallbackResponse.OtherChatterStatus==$b.Active)if(this.isActive=!0,this.typingMessageId){let t=this.chatMessages.find(e=>-1==e.OnlineChatMessageId);const n=this.chatMessages.indexOf(t);this.chatMessages[n].MessageBody=e.CallbackResponse.OtherChatterTypingContent+" ..."}else this.otherChatterTypingContent.MessageBody=e.CallbackResponse.OtherChatterTypingContent+" ...",this.otherChatterTypingContent.OnlineChatMessageTypeId=Ub.OperatorToCustomer,this.typingMessageId=-1,this.otherChatterTypingContent.OnlineChatMessageId=this.typingMessageId,this.chatMessages.push(this.otherChatterTypingContent),this.disableScrollDown=!1;else e.CallbackResponse.OtherChatterStatus==$b.Inactive&&this.isActive&&(this.chatMessages=this.chatMessages.filter(e=>-1!=e.OnlineChatMessageId),this.isActive=!1,this.typingMessageId=null);switch(null!=e.CallbackResponse.ChatMessages&&(e.CallbackResponse.ChatMessages.forEach(e=>{e.OnlineChatMessageTypeId!==this.onlineChatMessageType.CustomerToOperator&&this.chatMessages.push(e)}),this.playMessageSound(),this.disableScrollDown=!1),null!=e.OnlineChat.ChatEvents&&(this.resultChatEvents=e.OnlineChat.ChatEvents,null!=this.chatEvents&&this.processChatEvents(this.chatEvents,this.resultChatEvents),this.chatEvents=this.resultChatEvents),this.onlineChatData.OnlineChatStatusId==this.onlineChatStatus.InProgress&&(this.isSessionStarted=!0,this.timerStarted||this.startTimer(0)),this.onlineChatData.IsCompleted&&(this.stopTimer(),this.stopMessagesPolling(),this.isSessionStarted=!1,this.googleAnalyticsEvent(this.onlineChatData)),this.onlineChatData.OnlineChatStatusId){case this.onlineChatStatus.Missed:case this.onlineChatStatus.Rejected:this.showReviewModal=!1;break;case this.onlineChatStatus.CustomerTerminated:case this.onlineChatStatus.ExpertTerminated:this.showReviewModal=!0}this.showReviewModal&&(this.showReviewMessage(),this.googleAnalyticsEvent(this.onlineChatData))}},e=>{this.onChatSessionResultError()})}onChatSessionResultError(){this.onlineChatMessage=new Qb,this.onlineChatMessage.OnlineChatMessageTypeId=this.onlineChatMessageType.SystemToCustomer,this.onlineChatMessage.MessageBody="A problem with the connection to our servers has been detected.Please try sending a message to restart the connection.",this.onlineChatMessage.OnlineChatMessageId=-3,this.chatMessages.push(this.onlineChatMessage),this.disableScrollDown=!1,this.refreshMessagesSubscription.unsubscribe(),this.isMessagesPollingStopped=!0}googleAnalyticsEvent(e){if(!this.sessionEndEventSent){let t=null!=e.ExpertId?e.ExpertId.toString():"",n=null!=e.OnlineChatId?e.OnlineChatId.toString():"",i=null!=e.Cost?parseInt((100*e.Cost).toFixed(0)):0;this.googleAnalyticsEventsService.emitEvent(zf.eventNameSessionEnd,zf.eventCategorySessionEnd,zf.eventActionSessionEnd,n+" - "+t+" - "+i,null!=e.Cost?i:0),this.sessionEndEventSent=!0}}topUpSubscriptionPurchase(e,t){this.modal=new Kf,this.modal.Title="Your account will be charged and the session will be extended. Do you want to proceed?",this.modal.Type=Jf.Info,this.modal.ActionOk=()=>{this.modal=null,this.chatService.topUpSubscriptionPurchase(this.onlineChatData,e.ProductId,e.OfferId,e.AmountToPay.Digits).subscribe(e=>{e&&e.ServiceOperationOutcome==Gf.Success?this.count=this.count+(zf.threeMinutesSec-this.countDown):(this.modal=new Kf,this.modal.Title="Sorry, an error has occurred, please try again later.",this.modal.Type=Jf.Error,this.modal.ActionOk=()=>{this.modal=null})})},this.modal.ActionNo=()=>{this.modal=null}}startTimer(e){this.timerStarted=!0,this.count=e,this.counter$=xm(0,1e3).pipe(I(()=>++this.count),$m(this.stopTimerPolling))}startCountDownTimer(e){this.countDown=e,this.countdown$=xm(0,1e3).pipe(I(()=>--this.countDown),Pm(e),$m(this.stopTimerPolling))}stopTimer(){this.stopTimerPolling.next()}onContentChange(e){this.chatService.updateContent(e)}onKeyUp(e){"Enter"==e.key&&this.sendMessage()}processChatEvents(e,t){this.resultChatEvents.forEach(t=>{const n=e.find(e=>e.OnlineChatEventTypeId===t.OnlineChatEventTypeId);null!=n?t.LastEventTime>n.LastEventTime&&this.startCountDownProcess(t):(e.push(t),this.startCountDownProcess(t))})}startCountDownProcess(e){switch(e.OnlineChatEventTypeId){case Hb.EndofReadingReminderSent:this.showCountDown=!0,this.startCountDownTimer(this.onlineChatData.TimeRemainingInSeconds);break;case Hb.ReadingExtended:this.showCountDown=!1}}showReviewMessage(){this.modal=new Kf,this.modal.Title="Your session has completed. Would you like to submit a review?",this.modal.Type=Jf.Info,this.modal.ActionYes=()=>{this.modal=null,this.showSubmitReview=!0},this.modal.ActionNo=()=>{this.modal=null}}updateMemberBalance(){let e=0;this.memberService.getMemberV2().subscribe(t=>{var n;t?this.tileBusService.signalUpdateMemberBalance$.emit(t.MemberBasicData.AccountBalance):this.isMemberCharged?(e=null!==(n=this.member.AccountBalance-this.onlineChatData.Cost)&&void 0!==n?n:0,this.tileBusService.signalUpdateMemberBalance$.emit(e)):this.onlineChatData.OnlineChatTypeId==this.onlineChatType.PaygReading&&(e=this.member.AccountBalance-this.onlineChatData.PricePerMinute/60*(this.onlineChatData.Duration-(this.onlineChatData.TimeRemainingInSeconds<0?0:this.onlineChatData.TimeRemainingInSeconds)),this.tileBusService.signalUpdateMemberBalance$.emit(e))})}cancelSession(e){this.modal=new Kf,this.modal.Title=`Are you sure you want to end your ${this.resources.reading}?`,this.modal.Type=Jf.Info,this.modal.ActionOk=()=>{this.modal=null,this.chatService.cancelPsychicReading(e).subscribe(e=>{e&&(this.showReviewModal=!1,this.closeClicked&&this.close.emit(this.onlineChatData))})},this.modal.ActionNo=()=>{this.modal=null}}endSession(e){this.modal=new Kf,this.modal.Title=`Are you sure you want to end your ${this.resources.reading}?`,this.modal.Type=Jf.Info,this.modal.ActionOk=()=>{this.modal=null,this.chatService.endPsychicReading(e).subscribe(e=>{e&&this.closeClicked&&this.closeInProgress()})},this.modal.ActionNo=()=>{this.modal=null}}onClose(){this.closeClicked=!0,this.onlineChatData.OnlineChatStatusId===this.onlineChatStatus.InProgress?this.endSession(this.onlineChatData.Guid):this.onlineChatData.OnlineChatStatusId===this.onlineChatStatus.New?this.cancelSession(this.onlineChatData.Guid):this.close.emit(this.onlineChatData)}closeInProgress(){this.updateMemberBalance(),this.close.emit(this.onlineChatData)}stopMessagesPolling(){this.updateMemberBalance(),this.refreshMessagesSubscription.unsubscribe(),this.stopTimer(),this.isMessagesPollingStopped=!0}chatReport(){this.showChatReport=!0}closeChatReport(){this.showChatReport=!1}addReview(e){this.tileBusService.signalAddReview$.emit(e)}displayNameChange(e){this.tileBusService.signalDisplayNameChange$.emit(e)}closeSubmitReview(){this.showSubmitReview=!1}onMute(){this.isMuted=!this.isMuted}ngOnDestroy(){this.refreshMessagesSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Dr(Gm),Dr(zm),Dr(Cm),Dr(jb))},e.\u0275cmp=$e({type:e,selectors:[["chat"]],viewQuery:function(e,t){if(1&e&&function(e,t,n){const i=Ot();i.firstCreatePass&&(function(e,t,n){null===e.queries&&(e.queries=new Za),e.queries.track(new Xa(t,-1))}(i,new Ja(e,t,n)),2==(2&t)&&(i.staticViewQueries=!0)),function(e,t,n){const i=new za(4==(4&n));xs(e,t,i,i.destroy),null===t[19]&&(t[19]=new Ka),t[19].queries.push(new Ya(i))}(i,kt(),t)}(Rw,5),2&e){let e;sl((n=kt(),i=$t(),e=n[19].queries[i].queryList))&&(t.messagesContainer=e.first)}var n,i},hostVars:2,hostBindings:function(e,t){1&e&&Hr("beforeunload",function(e){return t.unloadHandler(e)},!1,vi),2&e&&so(t.chatClass)},inputs:{expert:"expert",member:"member",configurations:"configurations",showChat:"showChat",onlineChatData:"onlineChatData",creditCard:"creditCard",callbackResponse:"callbackResponse"},outputs:{close:"close"},decls:48,vars:23,consts:[[1,"displayAsModal-dialog"],[1,"displayAsModal-content","component-details","chat-details"],["tabindex","0",1,"close",3,"click"],[1,"sr-only"],["aria-hidden","true",1,"icon-close"],[1,"call_now_heading","row"],[1,"image"],[1,"photo_container","clearfix"],[1,"photo_content","clearfix"],[1,"photo"],["itemprop","image","default","/Assets/Images/profile.gif",3,"src","alt"],["class","chat_panel row",4,"ngIf"],[1,"time_sound_panel","row"],[1,"timer_panel"],["class","timer",4,"ngIf"],["class","countDownTimer",4,"ngIf"],[1,"timer"],[1,"timer_title"],[1,"timer_count"],[1,"sound_panel"],[1,"switch"],["type","checkbox",3,"checked","change"],[1,"slider","round"],[1,"chat_messenger","row","clearfix"],[1,"messagelog","clearfix",3,"scroll"],["scrollMe",""],[4,"ngFor","ngForOf"],[1,"chat_footer"],[1,"textarea"],["placeholder","Type your message","enterkeyhint","send",3,"formControl","input","keyup"],["tabindex","0",1,"general_button","green_btn","review-button","review-button-right",3,"click"],[4,"ngIf"],[3,"expert","member","configurations","onlineChatData","close",4,"ngIf"],[3,"expert","member","configurations","close","reviewChange","displayNameChange",4,"ngIf"],[3,"modal",4,"ngIf"],[1,"chat_panel","row"],["tabindex","0",1,"general_button","green_btn","review-button",3,"click"],["class","chat_topup",4,"ngFor","ngForOf"],[1,"chat_topup"],[1,"row"],[4,"ngIf","ngIfThen","ngIfElse"],["showBlock",""],["notShowBlock",""],[1,"review-buttons"],["ImPpmTopUp",""],["ImTopUp",""],["showBlock1",""],["notShowBlock1",""],[1,"nowrap"],[1,"strikethrough"],[1,"offer_price"],["showBlock2",""],["notShowBlock2",""],["showBlock3",""],["notShowBlock3",""],["showAdultSpan",""],["showOtherSpan",""],["tabindex","0","class","general_button green_btn review-button",3,"aspNetDisabled","click",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"icon-wait"],["tabindex","0",1,"general_button","green_btn","review-button",3,"href"],["elseBlock2",""],[1,"chat-buttons"],["tabindex","0","class","general_button green_btn review-button",3,"aspNetDisabled","click",4,"ngIf"],[4,"ngIf","ngIfElse"],["default",""],[1,"countDownTimer"],["default2",""],[1,"timer_count","timer_clock"],[3,"ngSwitch"],[3,"ngClass",4,"ngSwitchCase"],[3,"ngClass"],[1,"nickname"],[1,"content"],[3,"expert","member","configurations","onlineChatData","close"],[3,"expert","member","configurations","close","reviewChange","displayNameChange"],[3,"modal"]],template:function(e,t){1&e&&(Fr(0,"div",0),Fr(1,"div",1),Fr(2,"a",2),Hr("click",function(){return t.onClose()}),Fr(3,"span",3),go(4),Mr(),Lr(5,"i",4),Mr(),Fr(6,"div",5),Fr(7,"div",6),Lr(8,"div",7),Fr(9,"div",8),Fr(10,"div",9),Lr(11,"img",10),Mr(),Mr(),Mr(),Fr(12,"div"),Fr(13,"h4"),go(14),Mr(),Mr(),Mr(),Ar(15,Fw,4,0,"div",11),Ar(16,bC,2,1,"div",11),Ar(17,IC,4,2,"div",11),Fr(18,"div",12),Fr(19,"div",13),Ar(20,OC,5,4,"div",14),Ar(21,DC,5,4,"div",15),Fr(22,"div",16),Fr(23,"div",17),go(24,"Maximum duration:"),Mr(),Fr(25,"div",18),go(26),$a(27,"timeFormat"),Mr(),Mr(),Mr(),Fr(28,"div",19),Fr(29,"div"),go(30," Sounds "),Mr(),Fr(31,"div"),Fr(32,"label",20),Fr(33,"input",21),Hr("change",function(){return t.onMute()}),Mr(),Lr(34,"span",22),Mr(),Mr(),Mr(),Mr(),Fr(35,"div",23),Fr(36,"div",24,25),Hr("scroll",function(){return t.onScroll()}),Ar(38,LC,6,5,"div",26),Mr(),Mr(),Fr(39,"div",27),Fr(40,"div",28),Fr(41,"textarea",29),Hr("input",function(e){return t.onContentChange(e.target.value)})("keyup",function(e){return t.onKeyUp(e)}),Mr(),Mr(),Fr(42,"a",30),Hr("click",function(){return t.sendMessage()}),Ar(43,BC,2,0,"span",31),Ar(44,VC,2,0,"span",31),Mr(),Mr(),Ar(45,qC,1,4,"chat-report",32),Ar(46,jC,1,3,"review",33),Ar(47,QC,1,1,"modal",34),Mr(),Mr()),2&e&&(ns(4),vo("close ",t.expert.Nickname," window"),ns(7),Nr("src",t.expert.ThumbnailFileName,ci)("alt",t.expert.Nickname),ns(3),bo("",t.expert.Nickname," - PIN ",t.expert.ExpertFourDigitId,""),ns(1),Nr("ngIf",t.onlineChatData.OnlineChatStatusId!==t.onlineChatStatus.New&&t.onlineChatData.OnlineChatStatusId!==t.onlineChatStatus.InProgress),ns(1),Nr("ngIf",t.showCountDown&&t.onlineChatData.OnlineChatStatusId===t.onlineChatStatus.InProgress),ns(1),Nr("ngIf",t.onlineChatData.OnlineChatStatusId===t.onlineChatStatus.New||t.onlineChatData.OnlineChatStatusId===t.onlineChatStatus.InProgress),ns(3),Nr("ngIf",!t.showCountDown),ns(1),Nr("ngIf",t.showCountDown),ns(5),vo(" ",Ha(27,21,t.onlineChatData.Duration),""),ns(7),Nr("checked",!t.isMuted),ns(5),Nr("ngForOf",t.chatMessages),ns(3),Nr("formControl",t.content),ns(1),io("aspNetDisabled",t.submittingMessageData||!t.isSessionStarted),ns(1),Nr("ngIf",!t.submittingMessageData),ns(1),Nr("ngIf",t.submittingMessageData),ns(1),Nr("ngIf",t.showChatReport),ns(1),Nr("ngIf",t.showSubmitReview&&t.configurations&&t.expert&&t.member),ns(1),Nr("ngIf",t.modal))},directives:[ag,uu,au,yp,jp,ff,pu,fu,ru,tw,Dw,Qg],pipes:[Nw,wu],styles:[""]}),e})();function HC(e,t){1&e&&(Fr(0,"div",25),Fr(1,"span"),go(2,"Available"),Mr(),Mr())}function UC(e,t){1&e&&(Fr(0,"div",26),Fr(1,"span"),go(2,"busy"),Mr(),Mr())}function WC(e,t){1&e&&(Fr(0,"div",27),Fr(1,"span"),go(2,"Away"),Mr(),Mr())}function GC(e,t){if(1&e&&(Fr(0,"div",28),Fr(1,"p"),go(2,"Account balance is "),Fr(3,"span"),go(4),Mr(),Mr(),Mr()),2&e){const e=Gr();ns(4),yo(e.member.AccountBalanceCurrency)}}function zC(e,t){}function YC(e,t){1&e&&Ar(0,zC,0,0,"ng-template")}function KC(e,t){}function JC(e,t){1&e&&Ar(0,KC,0,0,"ng-template")}function ZC(e,t){if(1&e&&(Fr(0,"span",39),Fr(1,"span",40),go(2),Mr(),Mr(),Fr(3,"span",39),Fr(4,"span",41),go(5),Mr(),Mr()),2&e){const e=Gr(2).$implicit;ns(2),yo(e.AmountToPay.FullFormattedValue),ns(3),vo(" Free ",e.CallLength," minute reading")}}function XC(e,t){}function e_(e,t){1&e&&Ar(0,XC,0,0,"ng-template")}function t_(e,t){if(1&e&&(Fr(0,"span",39),Fr(1,"span",40),go(2),Mr(),Mr(),Fr(3,"span"),go(4),Mr(),Lr(5,"br"),Fr(6,"span",39),Fr(7,"span"),go(8," You save "),Mr(),Fr(9,"span",41),go(10),Mr(),Mr()),2&e){const e=Gr(3).$implicit;ns(2),yo(e.AmountToPay.FullFormattedValue),ns(2),vo(" Pay as you go (",e.PricePerMinute.FullFormattedValue,"/min)"),ns(6),bo(" ",e.OfferDiscountAmount.FullFormattedValue," (",e.SaveDiscount,"%)")}}function n_(e,t){if(1&e&&(Fr(0,"span",39),Fr(1,"span"),go(2),Mr(),Mr(),go(3," "),Fr(4,"span",39),Fr(5,"span",40),go(6),Mr(),go(7," "),Fr(8,"span",41),go(9),Mr(),Fr(10,"span"),go(11),Mr(),Mr(),go(12," "),Fr(13,"span",39),Fr(14,"span"),go(15," You save "),Mr(),Fr(16,"span",41),go(17),Mr(),Mr(),go(18," "),Fr(19,"span",39),Fr(20,"span"),go(21,"* compared to standard price"),Mr(),Mr()),2&e){const e=Gr(3).$implicit;ns(2),vo("Special Offer (",e.PricePerMinute.FullFormattedValue,"/min)"),ns(4),vo(" ",e.ProductPrice.FullFormattedValue,""),ns(3),vo(" ",e.AmountToPay.FullFormattedValue,""),ns(2),vo(" for ",e.CallLength," minutes"),ns(6),bo("",e.OfferDiscountAmount.FullFormattedValue," (",e.SaveDiscount,"%)")}}function i_(e,t){if(1&e&&(Ar(0,e_,1,0,void 0,30),Ar(1,t_,11,4,"ng-template",null,42,ol),Ar(3,n_,22,6,"ng-template",null,43,ol)),2&e){const e=Pr(2),t=Pr(4),n=Gr(2).$implicit,i=Gr();Nr("ngIf",n.ProductTypeId==i.productType.ImPpmReading)("ngIfThen",e)("ngIfElse",t)}}function s_(e,t){if(1&e&&(Ar(0,JC,1,0,void 0,30),Ar(1,ZC,6,2,"ng-template",null,37,ol),Ar(3,i_,5,3,"ng-template",null,38,ol)),2&e){const e=Pr(2),t=Pr(4);Nr("ngIf",0==Gr().$implicit.AmountToPay.Digits)("ngIfThen",e)("ngIfElse",t)}}function r_(e,t){}function o_(e,t){1&e&&Ar(0,r_,0,0,"ng-template")}function a_(e,t){if(1&e&&(Fr(0,"span",39),Fr(1,"span"),go(2),Mr(),Mr()),2&e){const e=Gr(4);ns(2),vo("",e.member.PaygMinutesAvailable," minutes available")}}function l_(e,t){if(1&e&&(Fr(0,"span"),go(1,"Pay as you go reading"),Mr(),Fr(2,"span"),go(3),Mr(),go(4," "),Ar(5,a_,3,1,"span",46)),2&e){const e=Gr(2).$implicit,t=Gr();ns(3),vo(" (",e.PricePerMinute.FullFormattedValue,"/min)"),ns(2),Nr("ngIf",t.member.IsLoggedIn)}}function u_(e,t){if(1&e&&(Fr(0,"span",39),Fr(1,"span"),go(2),Mr(),Mr(),go(3," "),Fr(4,"span",39),Fr(5,"span",40),go(6),Mr(),go(7," "),Fr(8,"span"),go(9),Mr(),Mr(),go(10," "),Fr(11,"span",39),Fr(12,"span"),go(13," You save "),Mr(),Fr(14,"span",41),go(15),Mr(),Mr(),go(16," "),Fr(17,"span",47),Fr(18,"span"),go(19,"* compared to PAYG"),Mr(),Mr()),2&e){const e=Gr(2).$implicit;ns(2),vo("Pre-Pay reading (",e.PricePerMinute.FullFormattedValue,"/min)"),ns(4),yo(e.PaygProductPrice.FullFormattedValue),ns(3),bo(" ",e.ProductPrice.FullFormattedValue," for ",e.CallLength," minutes"),ns(6),bo("",e.SaveFromPaygAmount.FullFormattedValue," (",e.SaveFromPaygPercent,"%)")}}function c_(e,t){if(1&e&&(Ar(0,o_,1,0,void 0,30),Ar(1,l_,6,2,"ng-template",null,44,ol),Ar(3,u_,20,6,"ng-template",null,45,ol)),2&e){const e=Pr(2),t=Pr(4),n=Gr().$implicit,i=Gr();Nr("ngIf",n.ProductTypeId==i.productType.ImPpmReading)("ngIfThen",e)("ngIfElse",t)}}function h_(e,t){if(1&e&&(Fr(0,"div"),Fr(1,"span",39),Fr(2,"span"),go(3,"Bonus of "),Mr(),Fr(4,"span",41),go(5),Mr(),Mr(),Fr(6,"span",39),Fr(7,"span"),go(8,"will be added"),Mr(),Mr(),Mr()),2&e){const e=Gr().$implicit;ns(5),vo("",e.AmountToPay.FullFormattedValue," ")}}function d_(e,t){1&e&&Lr(0,"div")}function p_(e,t){1&e&&(Fr(0,"span"),go(1,"Start Pay as you Go session"),Mr())}function f_(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",51),Mr())}function m_(e,t){if(1&e){const e=qr();Fr(0,"a",50),Hr("click",function(){At(e);const t=Gr(2),n=t.$implicit,i=t.index,s=Gr();return s.startSession(n,i,s.onlineChatType.PaygReading,s.expert)}),Ar(1,p_,2,0,"span",33),Ar(2,f_,2,0,"span",33),Mr()}if(2&e){const e=Gr(2).index,t=Gr();io("aspNetDisabled",t.submittingData>-1),ns(1),Nr("ngIf",t.submittingData!=e),ns(1),Nr("ngIf",t.submittingData==e)}}function g_(e,t){1&e&&(Fr(0,"span"),go(1,"Start Pay as you Go session"),Mr())}function y_(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",51),Mr())}function v_(e,t){if(1&e){const e=qr();Fr(0,"a",50),Hr("click",function(){At(e);const t=Gr(2),n=t.$implicit,i=t.index,s=Gr();return s.startSession(n,i,s.onlineChatType.PaygReading,s.expert)}),Ar(1,g_,2,0,"span",33),Ar(2,y_,2,0,"span",33),Mr()}if(2&e){const e=Gr(2).index,t=Gr();io("aspNetDisabled",t.submittingData>-1),ns(1),Nr("ngIf",t.submittingData!=e),ns(1),Nr("ngIf",t.submittingData==e)}}function b_(e,t){if(1&e&&(Ar(0,m_,3,4,"a",48),Ar(1,v_,3,4,"ng-template",null,49,ol)),2&e){const e=Pr(2),t=Gr(2);Nr("ngIf",t.creditCardData&&t.creditCardData.CyberSourceSubscriptionId)("ngIfElse",e)}}function w_(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(3).$implicit;ns(1),vo("Start ",e.CallLength," minute session")}}function C_(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",51),Mr())}function __(e,t){if(1&e){const e=qr();Fr(0,"a",50),Hr("click",function(){At(e);const t=Gr(2),n=t.$implicit,i=t.index,s=Gr();return s.startSession(n,i,s.onlineChatType.BundleReading,s.expert)}),Ar(1,w_,2,1,"span",33),Ar(2,C_,2,0,"span",33),Mr()}if(2&e){const e=Gr(2).index,t=Gr();io("aspNetDisabled",t.submittingData>-1),ns(1),Nr("ngIf",t.submittingData!=e),ns(1),Nr("ngIf",t.submittingData==e)}}function x_(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(3).$implicit;ns(1),vo("Start ",e.CallLength," minute session")}}function S_(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",51),Mr())}function E_(e,t){if(1&e){const e=qr();Fr(0,"a",50),Hr("click",function(){At(e);const t=Gr(2),n=t.$implicit,i=t.index,s=Gr();return s.startSession(n,i,s.onlineChatType.BundleReading,s.expert)}),Ar(1,x_,2,1,"span",33),Ar(2,S_,2,0,"span",33),Mr()}if(2&e){const e=Gr(2).index,t=Gr();io("aspNetDisabled",t.submittingData>-1),ns(1),Nr("ngIf",t.submittingData!=e),ns(1),Nr("ngIf",t.submittingData==e)}}function I_(e,t){if(1&e&&(Ar(0,__,3,4,"a",48),Ar(1,E_,3,4,"ng-template",null,52,ol)),2&e){const e=Pr(2),t=Gr(2);Nr("ngIf",t.creditCardData&&t.creditCardData.CyberSourceSubscriptionId)("ngIfElse",e)}}function T_(e,t){if(1&e&&(Fr(0,"div"),Fr(1,"div",29),Ar(2,YC,1,0,void 0,30),Ar(3,s_,5,3,"ng-template",null,31,ol),Ar(5,c_,5,3,"ng-template",null,32,ol),Ar(7,h_,9,1,"div",33),Mr(),Fr(8,"div",34),Ar(9,d_,1,0,"div",30),Ar(10,b_,3,2,"ng-template",null,35,ol),Ar(12,I_,3,2,"ng-template",null,36,ol),Mr(),Mr()),2&e){const e=t.$implicit,n=Pr(4),i=Pr(6),s=Pr(11),r=Pr(13),o=Gr();ns(2),Nr("ngIf",e.OfferDiscountAmount&&e.OfferDiscountAmount.Digits>0)("ngIfThen",n)("ngIfElse",i),ns(5),Nr("ngIf",e.OfferBonusAmount&&e.OfferBonusAmount.Digits>0),ns(2),Nr("ngIf",e.ProductTypeId==o.productType.ImPpmReading)("ngIfThen",s)("ngIfElse",r)}}function k_(e,t){1&e&&(Fr(0,"div",53),Lr(1,"i",51),Mr())}function O_(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr().$implicit;ns(1),vo("Display Name ",e.key,"")}}function A_(e,t){if(1&e&&(Br(0),go(1),Vr()),2&e){const e=Gr().$implicit;ns(1),yo(e.value)}}function P_(e,t){if(1&e&&(Fr(0,"li"),Ar(1,O_,2,1,"ng-container",33),Ar(2,A_,2,1,"ng-container",33),Mr()),2&e){const e=t.$implicit;ns(1),Nr("ngIf","backend"!=e.key),ns(1),Nr("ngIf","backend"==e.key)}}function D_(e,t){if(1&e&&(Br(0),Ar(1,P_,3,2,"li",18),$a(2,"keyvalue"),Vr()),2&e){const e=Gr(4);ns(1),Nr("ngForOf",Ha(2,1,e.displayName.errors))}}function N_(e,t){if(1&e&&(Fr(0,"ul"),Ar(1,D_,3,3,"ng-container",33),Mr()),2&e){const e=Gr(3);ns(1),Nr("ngIf",e.displayName.dirty||e.displayName.touched)}}function R_(e,t){if(1&e&&(Fr(0,"div",60),Fr(1,"div",61),Fr(2,"span"),go(3,"Please resolve the following issue(s):"),Mr(),Ar(4,N_,2,1,"ul",33),Mr(),Mr()),2&e){const e=Gr(2);ns(4),Nr("ngIf",e.displayName&&e.displayName.errors)}}function F_(e,t){1&e&&(Fr(0,"span"),go(1,"Continue"),Mr())}function M_(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",51),Mr())}function L_(e,t){1&e&&(Fr(0,"span"),go(1,"Cancel"),Mr())}function B_(e,t){1&e&&(Fr(0,"span"),Lr(1,"i",51),Mr())}function V_(e,t){if(1&e){const e=qr();Fr(0,"div",17),Ar(1,R_,5,1,"div",54),Fr(2,"div",29),Fr(3,"p"),go(4),Mr(),Fr(5,"div",55),Fr(6,"label"),go(7," Display Name "),Mr(),Mr(),Fr(8,"div",56),Lr(9,"input",57),Mr(),Mr(),Fr(10,"div",58),Fr(11,"a",59),Hr("click",function(){return At(e),Gr().submitDisplayName()}),Ar(12,F_,2,0,"span",33),Ar(13,M_,2,0,"span",33),Mr(),Fr(14,"a",59),Hr("click",function(){return At(e),Gr().closeDisplayName()}),Ar(15,L_,2,0,"span",33),Ar(16,B_,2,0,"span",33),Mr(),Mr(),Mr()}if(2&e){const e=Gr();ns(1),Nr("ngIf",e.displayName&&e.displayName.invalid&&(e.displayName.dirty||e.displayName.touched)),ns(3),vo("Please choose a display name that will be shown to the ",null==e.resources?null:e.resources.Expert," and against any reviews you make."),ns(5),Nr("formControl",e.displayName),ns(2),io("aspNetDisabled",!e.displayName.valid||e.submittingDisplayNameData)("with_hover",!e.submitData&&e.displayName.valid),ns(1),Nr("ngIf",!e.submittingDisplayNameData),ns(1),Nr("ngIf",e.submittingDisplayNameData),ns(1),io("with_hover",!e.submittingDisplayNameData&&e.displayName.valid),ns(1),Nr("ngIf",!e.submittingDisplayNameData),ns(1),Nr("ngIf",e.submittingDisplayNameData)}}function q_(e,t){1&e&&Lr(0,"modal",62),2&e&&Nr("modal",Gr().modal)}function j_(e,t){if(1&e){const e=qr();Fr(0,"login",63),Hr("close",function(t){return At(e),Gr().onCloseLogin(t)}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}function Q_(e,t){if(1&e){const e=qr();Fr(0,"payment",64),Hr("close",function(){return At(e),Gr().closePayment()}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)("product",e.product)("creditCard",e.creditCard)}}function $_(e,t){if(1&e){const e=qr();Fr(0,"chat",65),Hr("close",function(){return At(e),Gr().closeChat()}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)("onlineChatData",e.onlineChatData)("callbackResponse",e.callbackResponse)("creditCard",e.creditCard)}}let H_=(()=>{class e{constructor(e,t,n,i,s){this.paymentService=e,this.memberService=t,this.chatService=n,this.tileBusService=i,this.googleAnalyticsEventsService=s,this.close=new Wa,this.chatClass="component-container",this.resources={},this.modal=null,this.paymentLoading=!0,this.productType=wg,this.onlineChatType=qb}ngOnInit(){this.configurations&&(this.resources=this.configurations.ResourceData),this.initialiseView()}initialiseView(){this.displayName=new tf(this.member.DisplayName,xp.required),this.tileBusService.signalCurrentOnlineChat$.subscribe(e=>{var t;this.onlineChatData=null==e?void 0:e.OnlineChat,this.callbackResponse=null==e?void 0:e.CallbackResponse,(null===(t=this.onlineChatData)||void 0===t?void 0:t.OnlineChatStatusId)===Yf.InProgress&&(this.showChat=!0)}),this.chatService.initialiseViewRequest().subscribe(e=>{e&&(this.paymentLoading=!1,this.products=e.InitialiseViewData.Products,this.creditCard=e.InitialiseViewData.CreditCardData,this.payAsYouGoPricePerMinute=e.InitialiseViewData.PayAsYouGoPricePerMinute,this.payAsYouGoPricePerMinuteCUrrency=e.InitialiseViewData.PayAsYouGoPricePerMinuteCurrency,this.member&&this.tileBusService.refreshCurrentOnlineChat())}),this.refreshMember(),this.signalUpdateMemberBalance(),this.signalUpdateMember()}startSession(e,t,n,i){this.member.IsLoggedIn&&i.OnlineChatReader&&i.IsOnlineForOnlineChat&&!i.IsBusy?(this.setSubmittingSessionData(!0,t),this.preparePsychicReadingRequested(e,n,i)):this.member.IsLoggedIn||(this.showLogin=!0)}preparePsychicReadingRequested(e,t,n){this.member.DisplayName?this.checkSufficientCreditForSelectedProduct(e,t,n):this.showCaptureDisplayName()}startPsychicReadingRequest(e,t,n){this.createNewPsychicReadingRequest(e,t,n)}checkSufficientCreditForSelectedProduct(e,t,n){this.paymentService.checkSufficientCredit(t,e.ProductId).subscribe(i=>{i?(this.setSubmittingSessionData(!1,-1),i.HasSufficientCredit?this.startPsychicReadingRequest(e,t,n):this.showInitialPaymentOptions(e,t)):this.showInitialPaymentOptions(e,t)})}submitDisplayName(){this.displayName.valid&&(this.setSubmittingData(!0),this.memberService.setDisplayName(this.displayName.value).subscribe(e=>{this.setSubmittingData(!1),e&&e.DisplayNameValid==ov.Valid&&!e.DisplayNameIsAlreadyTaken&&(this.member.DisplayName=this.displayName.value,this.showDisplayName=!1),e||this.displayName.setErrors({backend:"An error has occurred"}),e&&e.DisplayNameValid!=ov.Valid&&!e.DisplayNameIsAlreadyTaken&&this.displayName.setErrors({backend:"Display Name not valid"}),e&&e.DisplayNameIsAlreadyTaken&&this.displayName.setErrors({backend:"Display Name is already taken"})}))}createNewPsychicReadingRequest(e,t,n){this.chatService.createNewPsychicReadingRequest(t,e.ProductId,this.onlineChatData,n.ExpertIvrId).subscribe(e=>{e&&(this.googleAnalyticsEventsService.emitEvent(zf.eventNameSessionStart,zf.eventCategorySessionStart,zf.eventActionSessionStart,e.OnlineChatReadingSession.OnlineChatData.ExpertId.toString(),null),zf.isTestEnvironment(this.configurations)||this.configurations.AngularChat?(this.onlineChatData=e.OnlineChatReadingSession.OnlineChatData,this.showChat=!0):zf.navigateToUrl(zf.Urls.onlineChatPage))})}signalUpdateMemberBalance(){this.tileBusService.signalUpdateMemberBalance$.subscribe(e=>{e>=0&&(this.member.AccountBalance=e,this.member.AccountBalanceCurrency=`${this.configurations.ResourceData.CurrencySymbol+e.toFixed(2)}`)})}signalUpdateMember(){this.tileBusService.signalUpdateMember$.subscribe(e=>{e&&(this.member=e)})}refreshMember(){this.member.IsLoggedIn&&this.memberService.getMemberV2().subscribe(e=>{e&&(this.member=e.MemberBasicData)})}showInitialPaymentOptions(e,t){this.product=e,this.showPayment=!0}setSubmittingData(e){this.submittingDisplayNameData=e,e?this.displayName&&this.displayName.disable():this.displayName&&this.displayName.enable()}setSubmittingSessionData(e,t){this.submittingSessionData=e,this.submittingData=t}showCaptureDisplayName(){this.showDisplayName=!0,this.setSubmittingSessionData(!1,-1)}closeDisplayName(){this.showDisplayName=!1}onClose(){this.close.emit(this.member)}onCloseLogin(e){e&&(this.member=e,this.initialiseView()),this.showLogin=!1}closePayment(){this.showPayment=!1}closeChat(e){this.showChat=!1,this.onlineChatData=e}}return e.\u0275fac=function(t){return new(t||e)(Dr(zg),Dr(Cm),Dr(Gm),Dr(zm),Dr(jb))},e.\u0275cmp=$e({type:e,selectors:[["session"]],hostVars:2,hostBindings:function(e,t){2&e&&so(t.chatClass)},inputs:{expert:"expert",member:"member",configurations:"configurations",showLogin:"showLogin",showPayment:"showPayment",product:"product",creditCard:"creditCard",showChat:"showChat",onlineChatData:"onlineChatData"},outputs:{close:"close"},decls:31,vars:16,consts:[[1,"component-details","session-details"],["tabindex","0",1,"close",3,"click"],[1,"sr-only"],["aria-hidden","true",1,"icon-close"],[1,"call_now_heading","row"],[1,"image"],[1,"photo_container","clearfix"],[1,"photo_content","clearfix"],[1,"photo"],["itemprop","image","default","/Assets/Images/profile.gif",3,"src","alt"],[1,"expert_status"],["class","available",4,"ngIf"],["class","busy",4,"ngIf"],["class","away",4,"ngIf"],[1,"spacer"],[1,"session_header","row"],["class","payment_balance row",4,"ngIf"],[1,"session_panel","row"],[4,"ngFor","ngForOf"],["class","generic-loader",4,"ngIf"],["class","session_panel row",4,"ngIf"],[3,"modal",4,"ngIf"],[3,"expert","member","configurations","close",4,"ngIf"],[3,"expert","member","configurations","product","creditCard","close",4,"ngIf"],[3,"expert","member","configurations","onlineChatData","callbackResponse","creditCard","close",4,"ngIf"],[1,"available"],[1,"busy"],[1,"away"],[1,"payment_balance","row"],[1,"row"],[4,"ngIf","ngIfThen","ngIfElse"],["showBlock",""],["notShowBlock",""],[4,"ngIf"],[1,"review-buttons"],["PpmReading",""],["NoPpmReading",""],["showBlock1",""],["notShowBlock1",""],[1,"nowrap"],[1,"strikethrough"],[1,"offer_price"],["showBlock2",""],["notShowBlock2",""],["showBlock3",""],["notShowBlock3",""],["class","nowrap",4,"ngIf"],[1,"nowrap","display_block"],["tabindex","0","class","general_button green_btn review-button",3,"aspNetDisabled","click",4,"ngIf","ngIfElse"],["elseBlock",""],["tabindex","0",1,"general_button","green_btn","review-button",3,"click"],[1,"icon-wait"],["elseBlock2",""],[1,"generic-loader"],["class","error_message",4,"ngIf"],[1,"label"],[1,"input"],["type","text",3,"formControl"],[1,"session-buttons"],["tabindex","0",1,"general_button","green_btn","review-button","review-button",3,"click"],[1,"error_message"],["data-valmsg-summary","true",1,"validation-summary-errors"],[3,"modal"],[3,"expert","member","configurations","close"],[3,"expert","member","configurations","product","creditCard","close"],[3,"expert","member","configurations","onlineChatData","callbackResponse","creditCard","close"]],template:function(e,t){1&e&&(Fr(0,"div",0),Fr(1,"a",1),Hr("click",function(){return t.onClose()}),Fr(2,"span",2),go(3),Mr(),Lr(4,"i",3),Mr(),Fr(5,"div",4),Fr(6,"div",5),Lr(7,"div",6),Fr(8,"div",7),Fr(9,"div",8),Lr(10,"img",9),Mr(),Fr(11,"div",10),Ar(12,HC,3,0,"div",11),Ar(13,UC,3,0,"div",12),Ar(14,WC,3,0,"div",13),Mr(),Mr(),Mr(),Fr(15,"div"),Fr(16,"h4"),go(17),Mr(),Mr(),Lr(18,"div",14),Mr(),Fr(19,"div",15),Fr(20,"h4"),go(21,"Available Sessions:"),Mr(),Mr(),Ar(22,GC,5,1,"div",16),Fr(23,"div",17),Ar(24,T_,14,7,"div",18),Ar(25,k_,2,0,"div",19),Mr(),Ar(26,V_,17,13,"div",20),Ar(27,q_,1,1,"modal",21),Mr(),Ar(28,j_,1,3,"login",22),Ar(29,Q_,1,5,"payment",23),Ar(30,$_,1,6,"chat",24)),2&e&&(ns(3),vo("close ",t.expert.Nickname," window"),ns(7),Nr("src",t.expert.ThumbnailFileName,ci)("alt",t.expert.Nickname),ns(2),Nr("ngIf",t.expert.OnlineChatReader&&t.expert.IsOnlineForOnlineChat&&!t.expert.IsBusy),ns(1),Nr("ngIf",t.expert.OnlineChatReader&&t.expert.IsOnlineForOnlineChat&&t.expert.IsBusy),ns(1),Nr("ngIf",t.expert.OnlineChatReader&&!t.expert.IsOnlineForOnlineChat),ns(3),bo("",t.expert.Nickname," - PIN ",t.expert.ExpertFourDigitId,""),ns(5),Nr("ngIf",t.member.IsLoggedIn),ns(2),Nr("ngForOf",t.member.ImProducts),ns(1),Nr("ngIf",t.paymentLoading),ns(1),Nr("ngIf",t.showDisplayName),ns(1),Nr("ngIf",t.modal),ns(1),Nr("ngIf",t.showLogin),ns(1),Nr("ngIf",t.showPayment),ns(1),Nr("ngIf",t.showChat))},directives:[ag,uu,au,yp,jp,ff,Qg,Tv,Wy,$C],pipes:[Cu],styles:[""]}),e})();function U_(e,t){if(1&e&&(Br(0),Fr(1,"div",25),go(2,"New"),Mr(),Lr(3,"meta",26),Lr(4,"meta",27),Fr(5,"span",28),go(6),Mr(),Vr()),2&e){const e=Gr();ns(6),yo(null==e.expert?null:e.expert.NumberOfReviews)}}function W_(e,t){1&e&&Lr(0,"i",36),2&e&&io("active",t.$implicit.Active)}function G_(e,t){if(1&e&&(Fr(0,"a",29),Fr(1,"div",30),Fr(2,"div",31),Fr(3,"div",32),Ar(4,W_,1,2,"i",33),Fr(5,"span",34),go(6," ("),Fr(7,"span",35),go(8),Mr(),go(9,")"),Mr(),Mr(),Mr(),Mr(),Mr()),2&e){const e=Gr();Yr("href","",e.profileLink,"#Reviews",ci),ns(1),Nr("title",e.rating),ns(3),Nr("ngForOf",e.getExpertStarRating(e.expert.AverageRating)),ns(4),yo(e.expert.NumberOfReviews)}}function z_(e,t){if(1&e){const e=qr();Fr(0,"div",37),Hr("click",function(){return At(e),Gr().openChat()}),Fr(1,"a",38),Lr(2,"i",39),go(3," Chat"),Mr(),Mr()}2&e&&Nr("@EnterStatusTrigger",void 0)}function Y_(e,t){if(1&e){const e=qr();Fr(0,"div",40),Hr("click",function(){return At(e),Gr().openChat()}),Fr(1,"a",38),Lr(2,"i",39),go(3," Busy"),Mr(),Mr()}2&e&&Nr("@EnterStatusTrigger",void 0)}function K_(e,t){if(1&e){const e=qr();Fr(0,"div",41),Hr("click",function(){return At(e),Gr().openTalk()}),Fr(1,"a",38),Lr(2,"i",42),go(3," Talk"),Mr(),Mr()}2&e&&(io("grid-tile-talk",Gr().onlineChatEnabled),Nr("@EnterStatusTrigger",void 0))}function J_(e,t){1&e&&Lr(0,"i",42)}function Z_(e,t){if(1&e&&(Fr(0,"a",38),Ar(1,J_,1,0,"i",45),go(2),Mr()),2&e){const e=Gr(2);ns(1),Nr("ngIf",!(e.expert.Queue&&e.expert.Queue.QueueStatus==e.queueStatus.QueueFull)),ns(1),yo(e.ivrQueueingEnabled?e.ivrQueueingEnabled&&e.expert.Queue?e.expert.Queue.QueueStatus==e.queueStatus.QueueFull?"Queue Full":" Queue ("+e.expert.Queue.QueueLength+")":" Queue":" Busy")}}function X_(e,t){if(1&e&&(Fr(0,"a",38),go(1),Mr()),2&e){const e=Gr(2);ns(1),vo("",e.expert.Queue.CurrentMemberQueueElement.Position," in Queue")}}function ex(e,t){if(1&e){const e=qr();Fr(0,"div",43),Hr("click",function(){return At(e),Gr().openTalk()}),Ar(1,Z_,3,2,"a",44),Ar(2,X_,2,1,"a",44),Mr()}if(2&e){const e=Gr();io("grid-tile-talk",e.onlineChatEnabled),Nr("@EnterStatusTrigger",void 0),ns(1),Nr("ngIf",!(e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement)),ns(1),Nr("ngIf",e.ivrQueueingEnabled&&e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement)}}function tx(e,t){1&e&&(Fr(0,"a",38),go(1,"Away"),Mr())}function nx(e,t){if(1&e&&(Fr(0,"a",38),go(1),Mr()),2&e){const e=Gr(2);ns(1),vo("",e.expert.Queue.CurrentMemberQueueElement.Position," in Queue")}}function ix(e,t){if(1&e){const e=qr();Fr(0,"div",46),Hr("click",function(){return At(e),Gr().openTalk()}),Ar(1,tx,2,0,"a",44),Ar(2,nx,2,1,"a",44),Mr()}if(2&e){const e=Gr();Nr("@EnterStatusTrigger",void 0),ns(1),Nr("ngIf",!(e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement)),ns(1),Nr("ngIf",e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement)}}function sx(e,t){if(1&e){const e=qr();Fr(0,"talk",47),Hr("close",function(t){return At(e),Gr().closeTalk(t)})("hideClose",function(){return At(e),Gr().hideCloseTalk()})("callBackChange",function(t){return At(e),Gr().onCallBackRequested(t)})("queueingRequestChange",function(t){return At(e),Gr().onQueueingRequest(t)})("queuedChange",function(t){return At(e),Gr().onQueued(t)}),Mr()}if(2&e){const e=Gr();io("hidden",e.hideTalk),Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)("callBackRequestedFor",e.callBackRequestedFor)("queuedFor",e.queuedFor)}}function rx(e,t){if(1&e){const e=qr();Fr(0,"session",48),Hr("close",function(t){return At(e),Gr().closeIMSession(t)}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}let ox=(()=>{class e{constructor(e){this.tileBusService=e,this.expandChange=new Wa,this.showTalkChange=new Wa,this.hideTalkChange=new Wa,this.callBackRequested=!1,this.callBackRequestedFor=null,this.queueingRequested=!1,this.queuedFor=null,this.queueStatus=og,this.ivrCallBackEnabled=!1,this.ivrQueueingEnabled=!1,this.onlineChatEnabled=!1,this.memberLogin=new Wa}getExpertStarRating(e){let t=[];e=e||0;let n=Math.round(e);for(let i=1;i<=5;i++){let e=new rg;e.Active=i<=n,t.push(e)}return t}ngOnInit(){var e;this.tileClass=null,this.configurations&&(this.onlineChatEnabled=this.configurations.OnlineChatEnabled,this.ivrCallBackEnabled=this.configurations.IvrCallBackEnabled,this.ivrQueueingEnabled=this.configurations.IvrQueueingEnabled),this.expand=null!=this.expand&&this.expand,this.showTalk=null!=this.showTalk&&this.showTalk,this.hideTalk=null!=this.hideTalk&&this.hideTalk,this.profileLink=this.expert.ProfileUrl,this.chatLink=zf.Urls.onlineChatExpertPage(null===(e=this.expert)||void 0===e?void 0:e.Nickname),this.rating=Math.round(10*this.expert.AverageRating)/10,this.syncTile()}toggleDescription(){this.expand=!this.expand,this.expandChange.emit(this.expand)}openTalk(){this.tileBusService.signalCloseTalk$.emit(this.expert),this.showTalkChange.emit(this.expert),this.showTalk=!0,this.hideTalk=!1}closeTalk(e){this.member=e,this.showTalkChange.emit(this.expert),this.memberLogin.emit(this.member),this.showTalk=!1}hideCloseTalk(){this.hideTalkChange.emit(this.expert),this.hideTalk=!0}openChat(){zf.isTestEnvironment(this.configurations)||this.configurations.AngularChat?this.showIMSession=!0:this.expert.IsBusy||zf.navigateToUrl(this.chatLink)}onCallBackRequested(e){this.callBackRequested=e,this.tileBusService.signalCallBackRequested$.emit(e?this.expert:null)}onQueueingRequest(e){this.queueingRequested=e}onQueued(e){this.tileBusService.signalQueuedExpert$.emit(e?this.expert:null)}syncTile(){this.tileBusService.signalCloseTalk$.subscribe(e=>{this.callBackRequested||this.queueingRequested?this.hideTalk=!0:this.showTalk=!1}),this.tileBusService.signalCallBackRequested$.subscribe(e=>{this.callBackRequestedFor=e}),this.tileBusService.signalQueuedExpert$.subscribe(e=>{e&&e.ExpertIvrId!=this.expert.ExpertIvrId&&this.expert.Queue&&this.expert.Queue.CurrentMemberQueueElement&&(this.expert.Queue.CurrentMemberQueueElement=null),e&&this.expert.ExpertIvrId==e.ExpertIvrId&&(this.expert.Queue=e.Queue,this.expert.EstimatedWaitTime=e.EstimatedWaitTime,this.expert.EstimatedWaitTimeCurrentMember=e.EstimatedWaitTimeCurrentMember),this.queuedFor=e}),this.callBackRequestedFor=this.tileBusService.callBackRequestedFor,this.queuedFor=this.tileBusService.queuedFor,this.expert.Queue&&this.expert.Queue.CurrentMemberQueueElement&&this.onQueued(!0),this.tileBusService.signalDisplayNameChange$.subscribe(e=>{e&&(this.member.DisplayName=e)}),this.tileBusService.signalUpdateMemberBalance$.subscribe(e=>{e>=0&&(this.member.AccountBalance=e,this.member.AccountBalanceCurrency=`${this.configurations.ResourceData.CurrencySymbol+e.toFixed(2)}`)})}closeIMSession(e){e&&(this.member=e,this.memberLogin.emit(this.member)),this.showIMSession=!1}}return e.\u0275fac=function(t){return new(t||e)(Dr(zm))},e.\u0275cmp=$e({type:e,selectors:[["tile"]],hostVars:2,hostBindings:function(e,t){2&e&&so(t.tileClass)},inputs:{expert:"expert",member:"member",configurations:"configurations",expand:"expand",showTalk:"showTalk",hideTalk:"hideTalk",showIMSession:"showIMSession"},outputs:{expandChange:"expandChange",showTalkChange:"showTalkChange",hideTalkChange:"hideTalkChange",memberLogin:"memberLogin"},decls:30,vars:19,consts:[[1,"grid-tile-container"],[1,"grid-tile-picture"],["rel","nofollow",3,"href"],["itemprop","image","default","/Assets/Images/profile.gif",3,"src","alt"],["itemprop","aggregateRating","itemscope","itemscope","itemtype","https://schema.org/AggregateRating",1,"grid-tile-rating"],[4,"ngIf"],[3,"href",4,"ngIf"],["itemprop","ratingValue",1,"ratingValue","hidden"],[1,"grid-tile-pin"],[1,"pill_holder_content"],["itemprop","mpn productID sku"],[1,"grid-tile-name"],["itemprop","url",3,"href"],["itemprop","name"],[1,"grid-tile-description",3,"click"],["itemprop","description"],[1,"read-more"],["href","#",1,"button"],["class","grid-tile-chat  grid-tile-button call_now_button general_button available_gradient with_hover",3,"click",4,"ngIf"],["class","grid-tile-chat  grid-tile-button call_now_button general_button busy_gradient with_hover",3,"click",4,"ngIf"],["class","grid-tile-button call_now_button general_button available_gradient with_hover",3,"grid-tile-talk","click",4,"ngIf"],["class","grid-tile-button call_now_button general_button busy_gradient with_hover",3,"grid-tile-talk","click",4,"ngIf"],["class","grid-tile-button call_now_button general_button unavailable_gradient with_hover",3,"click",4,"ngIf"],[3,"expert","member","configurations","callBackRequestedFor","queuedFor","hidden","close","hideClose","callBackChange","queueingRequestChange","queuedChange",4,"ngIf"],[3,"expert","member","configurations","close",4,"ngIf"],[1,"new-reader"],["itemprop","worstRating","content","0"],["itemprop","bestRating","content","5"],["itemprop","reviewCount",1,"ratingNumber","hidden"],[3,"href"],[1,"rating",3,"title"],[1,"ratingStar","clearfix"],[1,"rating_content","nowrap","clearfix"],["class","icon-star",3,"active",4,"ngFor","ngForOf"],[1,"reviewCount"],["itemprop","reviewCount",1,"ratingNumber"],[1,"icon-star"],[1,"grid-tile-chat","grid-tile-button","call_now_button","general_button","available_gradient","with_hover",3,"click"],["tabindex","0"],[1,"icon-chats"],[1,"grid-tile-chat","grid-tile-button","call_now_button","general_button","busy_gradient","with_hover",3,"click"],[1,"grid-tile-button","call_now_button","general_button","available_gradient","with_hover",3,"click"],[1,"icon-phone"],[1,"grid-tile-button","call_now_button","general_button","busy_gradient","with_hover",3,"click"],["tabindex","0",4,"ngIf"],["class","icon-phone",4,"ngIf"],[1,"grid-tile-button","call_now_button","general_button","unavailable_gradient","with_hover",3,"click"],[3,"expert","member","configurations","callBackRequestedFor","queuedFor","close","hideClose","callBackChange","queueingRequestChange","queuedChange"],[3,"expert","member","configurations","close"]],template:function(e,t){1&e&&(Fr(0,"div",0),Fr(1,"div",1),Fr(2,"a",2),Lr(3,"img",3),Mr(),Mr(),Fr(4,"div",4),Ar(5,U_,7,1,"ng-container",5),Ar(6,G_,10,4,"a",6),Fr(7,"span",7),go(8),Mr(),Mr(),Fr(9,"div",8),Fr(10,"span",9),go(11,"PIN "),Fr(12,"span",10),go(13),Mr(),Mr(),Mr(),Fr(14,"div",11),Fr(15,"a",12),Fr(16,"span",13),go(17),Mr(),Mr(),Mr(),Fr(18,"div",14),Hr("click",function(){return t.toggleDescription()}),Fr(19,"p",15),go(20),Mr(),Fr(21,"p",16),Lr(22,"a",17),Mr(),Mr(),Ar(23,z_,4,1,"div",18),Ar(24,Y_,4,1,"div",19),Ar(25,K_,4,3,"div",20),Ar(26,ex,3,5,"div",21),Ar(27,ix,3,3,"div",22),Mr(),Ar(28,sx,1,7,"talk",23),Ar(29,rx,1,3,"session",24)),2&e&&(ns(2),Nr("href",t.profileLink,ci),ns(1),Nr("src",t.expert.ThumbnailFileName,ci)("alt",t.expert.Nickname),ns(2),Nr("ngIf",!t.expert.AverageRating||0==t.expert.AverageRating),ns(1),Nr("ngIf",t.expert.AverageRating>0),ns(2),yo(null==t.expert?null:t.expert.AverageRating),ns(5),yo(t.expert.ExpertFourDigitId),ns(2),Nr("href",t.profileLink,ci),ns(2),yo(t.expert.Nickname),ns(1),io("full-description",t.expand),ns(2),yo(t.expert.SummaryDescription),ns(3),Nr("ngIf",t.expert.OnlineChatReader&&t.expert.IsOnlineForOnlineChat&&!t.expert.IsBusy&&t.onlineChatEnabled),ns(1),Nr("ngIf",t.expert.OnlineChatReader&&t.expert.IsOnlineForOnlineChat&&t.expert.IsBusy&&t.onlineChatEnabled),ns(1),Nr("ngIf",t.expert.IsOnline&&!t.expert.IsBusy),ns(1),Nr("ngIf",t.expert.IsOnline&&t.expert.IsBusy),ns(1),Nr("ngIf",!t.expert.IsOnline&&!t.expert.IsOnlineForOnlineChat),ns(1),Nr("ngIf",t.showTalk),ns(1),Nr("ngIf",t.showIMSession))},directives:[ag,uu,au,Vb,H_],styles:[""],data:{animation:[rc("EnterStatusTrigger",[uc(":enter",[lc({transform:"rotateX(0deg)"}),oc("0.5s",lc({transform:"rotateX(360deg)"}))])]),rc("LeaveStatusTrigger",[uc(":leave",[lc({transform:"rotateX(0deg)"}),oc("0.5s",lc({transform:"rotateX(360deg)"}))])])]}}),e})();function ax(e,t){if(1&e){const e=qr();Fr(0,"find",9),Hr("filterChange",function(t){return At(e),Gr().onFilterChange(t)})("showChange",function(t){return At(e),Gr().onShowFilter(t)}),Mr()}if(2&e){const e=Gr();Nr("currentFilter",e.currentFilter)("configurations",e.configurations)("member",e.member)("showSkillSelector",e.showSkillSelector)("showFilterSelector",e.showFilterSelector)}}function lx(e,t){if(1&e&&(Fr(0,"div",10),Fr(1,"h2"),go(2),Mr(),Mr()),2&e){const e=Gr();ns(2),yo(e.headerTitle)}}function ux(e,t){if(1&e&&(Fr(0,"div",11),Fr(1,"h2"),go(2),Mr(),Mr()),2&e){const e=Gr();ns(2),vo("There are no available ",null==e.resources?null:e.resources.Experts,"")}}function cx(e,t){if(1&e&&(Fr(0,"div",11),Fr(1,"span"),go(2),Mr(),Mr()),2&e){const e=Gr();ns(2),yo(e.headerText)}}function hx(e,t){if(1&e&&(Fr(0,"div",11),Fr(1,"span"),go(2),Fr(3,"strong"),go(4),Mr(),go(5," are displayed below."),Mr(),Mr()),2&e){const e=Gr();ns(2),vo("",null==e.resources?null:e.resources.ExpertsFirstUpperCase," matching your search for "),ns(2),vo('"',e.currentFilter.NamePinSearchText,'"')}}function dx(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(2);ns(1),bo("Sorry, no ",null==e.resources?null:e.resources.Experts," matched your search. You can find other ",null==e.resources?null:e.resources.Experts," by following the link below.")}}function px(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(2);ns(1),bo("Sorry, no ",null==e.resources?null:e.resources.Experts," matched your search. You can find the available ",null==e.resources?null:e.resources.Experts," by following the link below.")}}function fx(e,t){if(1&e&&(Fr(0,"div",11),Ar(1,dx,2,2,"span",12),Ar(2,px,2,2,"span",12),Mr()),2&e){const e=Gr();ns(1),Nr("ngIf",!e.showSkillSelector||e.redirectOnFind||!e.showFind),ns(1),Nr("ngIf",!(!e.showSkillSelector||e.redirectOnFind||!e.showFind))}}function mx(e,t){if(1&e){const e=qr();Fr(0,"tile",13),Hr("showTalkChange",function(t){return At(e),Gr().onShowTalk(t)})("memberLogin",function(t){return At(e),Gr().onMemberLogin(t)})("hideTalkChange",function(t){return At(e),Gr().onHideTalk(t)}),Mr()}if(2&e){const e=t.$implicit,n=Gr();Nr("@InsertRemoveTrigger",void 0)("expert",e)("member",n.member)("configurations",n.configurations)("showTalk",n.showTalkPanels)}}function gx(e,t){1&e&&(Fr(0,"div",14),Lr(1,"i",15),Mr())}function yx(e,t){if(1&e){const e=qr();Fr(0,"a",18),Hr("click",function(){return At(e),Gr(2).viewMore()}),go(1),Mr()}if(2&e){const e=Gr(2);ns(1),vo("View more ",null==e.resources?null:e.resources.Experts,"")}}function vx(e,t){if(1&e&&(Fr(0,"div",16),Ar(1,yx,2,1,"a",17),Mr()),2&e){const e=Gr();ns(1),Nr("ngIf",e.gridTileLoaded&&!e.gridTileAllLoaded&&e.loadMore)}}function bx(e,t){if(1&e){const e=qr();Fr(0,"a",18),Hr("click",function(){return At(e),Gr(2).findReaders()}),go(1),Mr()}if(2&e){const e=Gr(2);ns(1),vo("Find ",null==e.resources?null:e.resources.ExpertsFirstUpperCase,"")}}function wx(e,t){if(1&e&&(Fr(0,"div",16),Ar(1,bx,2,1,"a",17),Mr()),2&e){const e=Gr();ns(1),Nr("ngIf",e.gridTileLoaded)}}function Cx(e,t){if(1&e){const e=qr();Fr(0,"a",18),Hr("click",function(){return At(e),Gr(2).showAvailable()}),go(1),Mr()}if(2&e){const e=Gr(2);ns(1),vo("Show Available ",null==e.resources?null:e.resources.ExpertsFirstUpperCase,"")}}function _x(e,t){if(1&e&&(Fr(0,"div",16),Ar(1,Cx,2,1,"a",17),Mr()),2&e){const e=Gr();ns(1),Nr("ngIf",e.gridTileLoaded)}}function xx(e,t){if(1&e&&(Fr(0,"div",19),Fr(1,"span"),go(2),Mr(),Mr()),2&e){const e=Gr();ns(2),yo(e.footerText)}}function Sx(e,t){if(1&e&&(Fr(0,"div",20),Lr(1,"modal",21),Mr()),2&e){const e=Gr();ns(1),Nr("modal",e.modal)}}let Ex=(()=>{class e{constructor(e,t,n,i,s,r,o,a){this.tileBusService=e,this.configurationService=t,this.expertService=n,this.memberService=i,this.queueService=s,this.renderer=r,this.elementRef=o,this.viewportScroller=a,this.pollingTime=5010,this.pushTime=20,this.removeOfflineTime=6e4,this.findMinElements=60,this.viewMoreMinElements=30,this.searchTermsDelayTime=1e3,this.searchTextDelayTime=300,this.tilesLimit=null,this.expertStatusPolling=!1,this.expertsToRemove=[],this.recycleBinExperts=[],this.expertsOperationQueue=[],this.consumerOperationRunning=!1,this.searchTerms=new x,this.searchText=new x,this.redirectOnSearch=!1,this.tileGridParameters=null,this.currentFilter=null,this.experts=[],this.member=new jf,this.configurations=null,this.resources={},this.headerTitle=null,this.headerText=null,this.footerText=null,this.gridTileLoading=!0,this.gridTileLoaded=!1,this.gridTileAllLoaded=!1,this.configurationsLoaded=!1,this.memberLoaded=!1,this.loadMore=!0,this.showFind=!1,this.redirectOnFind=!1,this.showSkillSelector=!0,this.showFilterSelector=!0,this.onlineOnly=!0,this.insertToGridSorted=!0,this.updateToGridSorted=!1,this.expertsSkillSet={ExpertSkillType:Hf,ExpertSkillTypeName:Uf,ExpertSkillTypeCssClass:Wf},this.expertsToGet=[],this.modal=null,this.cleanSearchBox=()=>{},a.setHistoryScrollRestoration("manual");let l=this.elementRef.nativeElement.getAttribute("filter"),u=this.elementRef.nativeElement.getAttribute("parameters");l&&(this.currentFilter=JSON.parse(l.replace(/'/g,'"')),this.elementRef.nativeElement.removeAttribute("filter")),u&&(this.tileGridParameters=JSON.parse(u.replace(/'/g,'"')),this.elementRef.nativeElement.removeAttribute("parameters"),this.tileGridParameters&&"boolean"==typeof this.tileGridParameters.AutoHistoryScrollRestoration&&this.tileGridParameters.AutoHistoryScrollRestoration&&a.setHistoryScrollRestoration("auto"))}isKeyPressed(e,t){return!!e.which&&e.which===t||!!e.keyCode&&e.keyCode===t||!!e.key&&e.key===t}trackByExperts(e,t){return t.ExpertIvrId}getConfig(e=(()=>{})){this.tileBusService.getConfig(t=>{this.configurations=t,this.configurations.ExpertsSkillSet=this.expertsSkillSet,this.resources=null==t?void 0:t.ResourceData,this.configurationsLoaded=!0,e()})}getMember(e=(()=>{})){this.tileBusService.getMember(t=>{this.member=t,e()})}getExpert(e,t=!1,n,i){this.expertService.getExpert(e,n,i).subscribe(e=>{e&&e.ExpertData&&this.addExpertsOperation(()=>{let n=t||this.tilesLimit?this.experts.slice():this.experts,i=n.map(e=>e.ExpertIvrId).indexOf(e.ExpertData.ExpertIvrId),s=this.recycleBinExperts.map(e=>e.ExpertIvrId).indexOf(e.ExpertData.ExpertIvrId),r=this.matchExpertFilter(e.ExpertData,this.currentFilter);if(-1!=s&&r&&this.recycleBinExperts.splice(s,1),-1==i)r&&!this.tilesLimit?n.unshift(e.ExpertData):this.recycleBinExperts.push(e.ExpertData);else{let t=n[i];t&&(t.IsOnline||t.IsOnlineForOnlineChat||!r||this.tilesLimit||(n.splice(i,1),n.unshift(t)),r||(n.splice(i,1),this.recycleBinExperts.push(t)),t.IsBusy=e.ExpertData.IsBusy,t.IsOnline=e.ExpertData.IsOnline,t.IsOnlineForOnlineChat=e.ExpertData.IsOnlineForOnlineChat,t.OnlineChatReader=e.ExpertData.OnlineChatReader)}(t||this.tilesLimit)&&(this.tilesLimit&&n.length<this.tilesLimit&&this.recycleBinExperts.length>0&&(this.sortExperts(this.recycleBinExperts),n=n.concat(this.recycleBinExperts.splice(0,this.tilesLimit-n.length))),t&&this.sortExperts(n),this.experts=n.slice())})})}getExperts(e,t=!1){this.gridLoading(),this.expertService.getExperts(e).subscribe(n=>{this.gridTileLoading&&(this.gridTileLoading=!1),n&&n.Experts?(this.gridTileAllLoaded=!!(0==n.Experts.length||e&&n.Experts.length<e.ResultsCount),this.setExperts(n.Experts,()=>{this.gridLoaded()},t)):this.gridLoaded()})}getCachedExperts(e,t=!1){this.gridLoading(),this.expertService.getCachedExperts(e).subscribe(e=>{this.gridTileLoading&&(this.gridTileLoading=!1),e&&e.ServiceOperationOutcome==Gf.NoDataFound?this.getExperts(this.currentFilter,t):e&&e.Experts?this.setExperts(e.Experts,()=>{this.gridLoaded()},t):this.gridLoaded()})}setExperts(e,t=(()=>{}),n=!1){this.addExpertsOperation(()=>{let i=n||this.tilesLimit?this.experts.slice():this.experts,s=[];e.forEach(e=>{let t=i.map(e=>e.ExpertIvrId).indexOf(e.ExpertIvrId),n=this.recycleBinExperts.map(e=>e.ExpertIvrId).indexOf(e.ExpertIvrId);if(-1!=n&&this.recycleBinExperts.splice(n,1),-1==t)s.push(e);else{let n=i[t];n&&(n.IsOnline||n.IsOnlineForOnlineChat||(i.splice(t,1),i.unshift(n)),n.IsBusy=e.IsBusy,n.IsOnline=e.IsOnline,n.IsOnlineForOnlineChat=e.IsOnlineForOnlineChat,n.OnlineChatReader=e.OnlineChatReader)}}),n||this.tilesLimit?(i=i.concat(s),this.sortExperts(i),this.tilesLimit&&this.tilesLimit>0&&i.length>this.tilesLimit&&(this.recycleBinExperts=this.recycleBinExperts.concat(i.slice(this.tilesLimit,i.length))),this.experts=this.tilesLimit&&this.tilesLimit>0?i.slice(0,this.tilesLimit):i):i.push(...s),t()})}gridLoading(){this.gridTileLoaded=!1,this.gridTileLoading=!0,this.gridTileAllLoaded=!1}gridLoaded(){this.gridTileLoaded=!0,this.expertStatusPolling||(this.expertStatusPolling=!0,this.getExpertsStatus())}pushExperts(e,t=null,n=(()=>{}),i=!1){(t=t||0)<e.length?setTimeout(()=>{if(!this.currentFilter||this.currentFilter&&this.matchExpertFilter(e[t],this.currentFilter))if(i){let n=this.experts.slice();n.push(e[t]),this.sortExperts(n),this.experts=n}else this.experts.push(e[t]);this.pushExperts(e,t+1,n)},this.pushTime):n()}getExpertsStatus(){setTimeout(()=>{!this.gridTileLoading&&this.gridTileLoaded?this.expertService.getExpertsStatus(null).subscribe(e=>{e&&e.ExpertsStatusList?this.addExpertsOperation(()=>{let t=this.updateToGridSorted||this.tilesLimit?this.experts.slice():this.experts;e.ExpertsStatusList.forEach(e=>{let n=t.map(e=>e.ExpertIvrId).indexOf(e.ExpertIvrId),i=-1==n?this.recycleBinExperts.map(e=>e.ExpertIvrId).indexOf(e.ExpertIvrId):-1,s=this.expertsToRemove.map(e=>e.ExpertId).indexOf(e.ExpertIvrId);if(s>=0&&this.expertsToRemove.splice(s,1),-1==n&&-1==i)this.expertsToGet.push(e.ExpertIvrId);else{let s=-1==n?this.recycleBinExperts[i]:t[n];s&&(s.IsOnline||s.IsOnlineForOnlineChat||!this.matchExpertFilter(s,this.currentFilter)||this.tilesLimit||(-1==n?this.recycleBinExperts.splice(i,1):t.splice(n,1),t.unshift(s),this.sortExpertsV2(t)),s.IsBusy=e.IsBusy,s.IsOnline=e.OnlineIVR,s.IsOnlineForOnlineChat=e.OnlineIM)}}),this.expertsToGet.length>0&&this.getExpertsByIdsWithQuestionsAndAnswersAndReviews(this.expertsToGet,this.updateToGridSorted),(this.updateToGridSorted||this.tilesLimit)&&(this.tilesLimit&&t.length<this.tilesLimit&&this.recycleBinExperts.length>0&&(this.sortExperts(this.recycleBinExperts),t=t.concat(this.recycleBinExperts.splice(0,this.tilesLimit-t.length))),this.updateToGridSorted&&this.sortExperts(t),this.experts=t.slice()),this.checkOfflineExperts(e.ExpertsStatusList),this.getExpertsQueue(e.ExpertsStatusList,()=>{this.getExpertsStatus()})}):this.getExpertsStatus()}):this.getExpertsStatus()},this.pollingTime)}getExpertsByIdsWithQuestionsAndAnswersAndReviews(e,t=!1,n,i){this.expertService.getExpertsByIdsWithQuestionsAndAnswersAndReviews(e,n,i).subscribe(e=>{e&&e.ExpertsData&&e.ExpertsData.forEach(e=>{this.addExpertsOperation(()=>{let n=t||this.tilesLimit?this.experts.slice():this.experts,i=n.map(e=>e.ExpertIvrId).indexOf(e.ExpertData.ExpertIvrId),s=this.recycleBinExperts.map(e=>e.ExpertIvrId).indexOf(e.ExpertData.ExpertIvrId),r=this.matchExpertFilter(e.ExpertData,this.currentFilter);if(-1!=s&&r&&this.recycleBinExperts.splice(s,1),-1==i)r&&!this.tilesLimit?(n.unshift(e.ExpertData),this.sortExpertsV2(n)):this.recycleBinExperts.push(e.ExpertData);else{let t=n[i];t&&(t.IsOnline||t.IsOnlineForOnlineChat||!r||this.tilesLimit||(n.splice(i,1),n.unshift(t)),r||(n.splice(i,1),this.recycleBinExperts.push(t)),t.IsBusy=e.ExpertData.IsBusy,t.IsOnline=e.ExpertData.IsOnline,t.IsOnlineForOnlineChat=e.ExpertData.IsOnlineForOnlineChat,t.OnlineChatReader=e.ExpertData.OnlineChatReader)}(t||this.tilesLimit)&&(this.tilesLimit&&n.length<this.tilesLimit&&this.recycleBinExperts.length>0&&(this.sortExperts(this.recycleBinExperts),n=n.concat(this.recycleBinExperts.splice(0,this.tilesLimit-n.length))),t&&this.sortExperts(n),this.experts=n.slice())})}),this.expertsToGet=[]})}getExpertQueue(e,t){this.queueService.getQueue(t.ExpertIvrId).subscribe(t=>{e&&t&&(e.Queue=t.Queue,e.EstimatedWaitTime=t.QueueEstimatedWaitTime,e.EstimatedWaitTimeCurrentMember=t.QueueEstimatedWaitTimeCurrentMember)})}setExpertQueue(e,t){this.addExpertsOperation(()=>{let n=this.experts.map(e=>e.ExpertIvrId).indexOf(e),i=-1==n?this.recycleBinExperts.map(e=>e.ExpertIvrId).indexOf(e):-1;if(-1!=n||-1!=i){let s=-1!=n?this.experts[n]:this.recycleBinExperts[i];s&&s.ExpertIvrId==e&&(s.Queue=t?t.Queue:null,s.EstimatedWaitTime=t?t.QueueEstimatedWaitTime:s.DefaultEstimatedWaitTime,s.EstimatedWaitTimeCurrentMember=t?t.QueueEstimatedWaitTimeCurrentMember:s.DefaultEstimatedWaitTime)}})}getExpertsQueue(e,t=(()=>{}),n=null){if(null!=n)if(n<e.length){let i=e[n];i&&i.HasQueueIVR?this.queueService.getQueue(i.ExpertIvrId).subscribe(s=>{s&&this.setExpertQueue(i.ExpertIvrId,s),this.getExpertsQueue(e,t,n+1)}):(i&&this.setExpertQueue(i.ExpertIvrId,null),this.getExpertsQueue(e,t,n+1))}else t();else-1!=e.map(e=>e.HasQueueIVR).indexOf(!0)?this.queueService.getQueues().subscribe(n=>{n&&n.ExpertsQueue&&e.forEach(e=>{let t=n.ExpertsQueue.map(e=>e.ExpertId).indexOf(e.ExpertIvrId);this.setExpertQueue(e.ExpertIvrId,-1!=t?n.ExpertsQueue[t]:null)}),t()}):(e.forEach(e=>{this.setExpertQueue(e.ExpertIvrId,null)}),t())}checkOfflineExperts(e){e&&this.addExpertsOperation(()=>{let t=[],n=[];this.experts.forEach((n,i)=>{-1==e.map(e=>e.ExpertIvrId).indexOf(n.ExpertIvrId)&&(n.IsOnline||n.IsOnlineForOnlineChat)&&(t.push(i),this.onlineOnly&&this.expertsToRemove.push({ExpertId:n.ExpertIvrId,TimeStamp:Date.now()}))}),this.recycleBinExperts.forEach((t,n)=>{-1==e.map(e=>e.ExpertIvrId).indexOf(t.ExpertIvrId)&&(t.IsOnline||t.IsOnlineForOnlineChat)&&(t.IsOnline=!1,t.IsOnlineForOnlineChat=!1)}),t.forEach(e=>{let t=this.experts[e];this.experts.splice(e,1),t.IsOnline=!1,t.IsOnlineForOnlineChat=!1,this.experts.push(t)}),this.onlineOnly&&this.expertsToRemove.forEach((e,t)=>{if(Date.now()-e.TimeStamp>=this.removeOfflineTime){let i=this.experts.map(e=>e.ExpertIvrId).indexOf(e.ExpertId);i>=0&&(this.recycleBinExperts.push(this.experts[i]),this.experts.splice(i,1),n.push(t))}}),n.forEach(e=>{this.expertsToRemove.splice(e,1)}),t=null,n=null})}viewMore(){this.onlineOnly=!1,this.addExpertsOperation(()=>{let e=this.currentFilter?this.currentFilter:new Qf;this.showFind||(e.OnlineOnly=!1),e.ResultsCount=this.viewMoreMinElements,this.member.IsLoggedIn||(e.ReturnFavouritesOnly=!1),this.filterGrid(e,!0,this.insertToGridSorted),this.showFind=!0})}findReaders(){zf.navigateToUrl(zf.Urls.findExpertPage)}showAvailable(){this.onlineOnly=!0;let e=new Qf;e.ResultsCount=null,e.ReturnFavouritesOnly=!1,e.OnlineOnly=!0,this.cleanSearchBox(),this.searchTerms.next(e)}filterGridText(e){let t=this.currentFilter?this.currentFilter:new Qf;e?(this.showFind||(this.onlineOnly=!1,t.OnlineOnly=!1),t.ResultsCount=this.findMinElements,t.NamePinSearchText=e,this.member.IsLoggedIn||(t.ReturnFavouritesOnly=!1)):(this.showFind?t.ResultsCount=this.findMinElements:(this.onlineOnly=!0,t.OnlineOnly=!0,t.ResultsCount=null),t.NamePinSearchText=null,this.member.IsLoggedIn||(t.ReturnFavouritesOnly=!1)),this.searchTerms.next(t)}filterGrid(e,t=!1,n=!1){this.addExpertsOperation(()=>{this.gridTileLoading=!0,this.gridTileAllLoaded=!1,this.onlineOnly=e.OnlineOnly,this.currentFilter=e;let i=0,s=[],r=[],o=[],a=n||this.tilesLimit?this.experts.slice():this.experts,l=(a.length>this.recycleBinExperts.length?a.length:this.recycleBinExperts.length)-1;for(let t=0;t<=l;t++,l--)t<=a.length-1&&(this.matchExpertFilter(a[t],e)?i++:r.push(a[t])),t<=this.recycleBinExperts.length-1&&this.matchExpertFilter(this.recycleBinExperts[t],e)&&(i++,s.push(this.recycleBinExperts[t])),l<=a.length-1&&l>t&&(this.matchExpertFilter(a[l],e)?i++:r.push(a[l])),l<=this.recycleBinExperts.length-1&&l>t&&this.matchExpertFilter(this.recycleBinExperts[l],e)&&(i++,s.push(this.recycleBinExperts[l]));r.forEach(e=>{let t=a.map(e=>e.ExpertIvrId).indexOf(e.ExpertIvrId);-1!=t&&(a.splice(t,1),o.push(e))}),this.sortExperts(s);for(let n=0;n<s.length;n++){let i=this.recycleBinExperts.map(e=>e.ExpertIvrId).indexOf(s[n].ExpertIvrId);if(-1!=i){if(s[n].IsOnline||s[n].IsOnlineForOnlineChat)a.unshift(s[n]);else{if(e.ResultsCount&&(n>=e.ResultsCount||!t&&a.length>=e.ResultsCount))break;a.push(s[n])}this.recycleBinExperts.splice(i,1)}}this.recycleBinExperts=this.recycleBinExperts.concat(o),(n||this.tilesLimit)&&(this.sortExperts(a),this.tilesLimit&&this.tilesLimit>0&&a.length>this.tilesLimit&&(this.recycleBinExperts=this.recycleBinExperts.concat(a.slice(this.tilesLimit,a.length))),this.experts=this.tilesLimit&&this.tilesLimit>0?a.slice(0,this.tilesLimit):a),!t&&e.ResultsCount&&a.length>=e.ResultsCount?this.gridTileLoading=!1:t&&e.ResultsCount&&s.length<e.ResultsCount?(e.ExpertIdsExclude=this.getLocalExpertIds(),e.ResultsCount=e.ResultsCount-s.length,this.getExperts(e,n)):i<(e.ResultsCount?e.ResultsCount:this.findMinElements)?(e.ExpertIdsExclude=this.getLocalExpertIds(),e.ResultsCount=this.findMinElements-i,this.getExperts(e,n)):(this.gridTileLoading=!1,s.length<e.ResultsCount&&(this.gridTileAllLoaded=!0))})}matchExpertFilter(e,t){if(t&&e){if(t.OnlineOnly&&t.OnlineOnly!=(e.IsOnline||e.IsOnlineForOnlineChat))return!1;if(t.ReturnOnlyAvailableForOnlineChat&&t.ReturnOnlyAvailableForOnlineChat!=e.OnlineChatReader)return!1;if(t.ReturnOnlyAvailableForSms&&t.ReturnOnlyAvailableForSms!=e.IsOnlineForSmsReadings)return!1;if(t.MinimumRating&&t.MinimumRating>e.AverageRating)return!1;if(t.MinimumVotes&&t.MinimumVotes>e.NumberOfVotes)return!1;if(t.ReturnFavouritesOnly&&t.ReturnFavouritesOnly!=e.IsAddedToFavourites)return!1;if(t.SkillsIncludeAll){if(!e.ExpertSkills)return!1;for(let n=0;n<=t.SkillsIncludeAll.length-1;n++)if(-1==e.ExpertSkills.indexOf(t.SkillsIncludeAll[n]))return!1}if(t.SkillsIncludeAtLeastOne){if(!e.ExpertSkills)return!1;for(let n=0;n<=t.SkillsIncludeAtLeastOne.length-1&&-1==e.ExpertSkills.indexOf(t.SkillsIncludeAtLeastOne[n]);n++)if(n>=t.SkillsIncludeAtLeastOne.length-1)return!1}if(t.SkillsExclude){if(!e.ExpertSkills)return!1;for(let n=0;n<=t.SkillsExclude.length-1;n++)if(-1!=e.ExpertSkills.indexOf(t.SkillsExclude[n]))return!1}if(t.NamePinSearchText){if(!e.Nickname&&!e.ExpertFourDigitId)return!1;let n=t.NamePinSearchText.toLowerCase().split(/\s*[\s,]\s*/);if(n){let t=!0,i=e.ExpertFourDigitId.concat(e.Nickname).toLowerCase();if(n.forEach(function(e){if(-1===i.indexOf(e))return t=!1,t}),!t)return!1}}}return!!e}sortExperts(e){return e&&e.sort((e,t)=>(!e.IsOnline&&!e.IsOnlineForOnlineChat)>(!t.IsOnline&&!t.IsOnlineForOnlineChat)?1:(!e.IsOnline&&!e.IsOnlineForOnlineChat)<(!t.IsOnline&&!t.IsOnlineForOnlineChat)?-1:e.IsBusy>t.IsBusy?1:e.IsBusy<t.IsBusy||e.AverageRating>t.AverageRating?-1:e.AverageRating<t.AverageRating||(!e.IsOnline&&e.IsOnlineForOnlineChat)>(!t.IsOnline&&t.IsOnlineForOnlineChat)?1:(!e.IsOnline&&e.IsOnlineForOnlineChat)<(!t.IsOnline&&t.IsOnlineForOnlineChat)?-1:0),e}sortExpertsV2(e){return e&&e.sort((e,t)=>(e.IsOnline||e.IsOnlineForOnlineChat)>(t.IsOnline||t.IsOnlineForOnlineChat)?1:(e.IsOnline||e.IsOnlineForOnlineChat)<(t.IsOnline||t.IsOnlineForOnlineChat)?-1:e.IsBusy>t.IsBusy?1:e.IsBusy<t.IsBusy||e.LoginTimeMax>t.LoginTimeMax?-1:e.LoginTimeMax<t.LoginTimeMax||e.AverageRating>t.AverageRating?1:e.AverageRating<t.AverageRating?-1:e.ExpertIvrId>t.ExpertIvrId?1:e.ExpertIvrId<t.ExpertIvrId?-1:0),e}getLocalExpertIds(){return this.experts.map(e=>e.ExpertIvrId).concat(this.recycleBinExperts.map(e=>e.ExpertIvrId))}addExpertsOperation(e){this.expertsOperationQueue.push(e),this.consumerOperationRunning||setTimeout(()=>{for(this.consumerOperationRunning=!0;this.expertsOperationQueue.length>0;)this.expertsOperationQueue[0](),this.expertsOperationQueue.splice(0,1);this.consumerOperationRunning=!1})}ngOnInit(){this.registerAsHandler(),this.currentFilter&&(this.showFind=!0,this.currentFilter.SkillsIncludeAll&&this.currentFilter.SkillsIncludeAll.length>0&&(this.showSkillSelector=!1)),this.tileGridParameters&&(this.tileGridParameters.HeaderTitle&&(this.headerTitle=this.tileGridParameters.HeaderTitle),this.tileGridParameters.HeaderText&&(this.headerText=this.tileGridParameters.HeaderText),this.tileGridParameters.FooterText&&(this.footerText=this.tileGridParameters.FooterText),this.tileGridParameters.PollingTime&&(this.pollingTime=this.tileGridParameters.PollingTime),this.tileGridParameters.PushDelayTime&&(this.pushTime=this.tileGridParameters.PushDelayTime),this.tileGridParameters.RemoveOfflineTime&&(this.removeOfflineTime=this.tileGridParameters.RemoveOfflineTime),this.tileGridParameters.FindMinElements&&(this.findMinElements=this.tileGridParameters.FindMinElements),this.tileGridParameters.ViewMoreMinElements&&(this.viewMoreMinElements=this.tileGridParameters.ViewMoreMinElements),this.tileGridParameters.TilesLimit&&(this.tilesLimit=this.tileGridParameters.TilesLimit),this.tileGridParameters.SearchTermsDelayTime&&(this.searchTermsDelayTime=this.tileGridParameters.SearchTermsDelayTime),this.tileGridParameters.SearchTextDelayTime&&(this.searchTextDelayTime=this.tileGridParameters.SearchTextDelayTime),"boolean"==typeof this.tileGridParameters.ExpertStatusPolling&&(this.expertStatusPolling=this.tileGridParameters.ExpertStatusPolling),"boolean"==typeof this.tileGridParameters.ShowFind&&(this.showFind=this.tileGridParameters.ShowFind),"boolean"==typeof this.tileGridParameters.ShowSkillSelector&&(this.showSkillSelector=this.tileGridParameters.ShowSkillSelector),"boolean"==typeof this.tileGridParameters.ShowFilterSelector&&(this.showFilterSelector=this.tileGridParameters.ShowFilterSelector),"boolean"==typeof this.tileGridParameters.RedirectOnSearch&&(this.redirectOnSearch=this.tileGridParameters.RedirectOnSearch),"boolean"==typeof this.tileGridParameters.RedirectOnFind&&(this.redirectOnFind=this.tileGridParameters.RedirectOnFind),"boolean"==typeof this.tileGridParameters.OnlineOnly&&(this.onlineOnly=this.tileGridParameters.OnlineOnly),"boolean"==typeof this.tileGridParameters.LoadMore&&(this.loadMore=this.tileGridParameters.LoadMore),"boolean"==typeof this.tileGridParameters.InsertToGridSorted&&(this.insertToGridSorted=this.tileGridParameters.InsertToGridSorted),"boolean"==typeof this.tileGridParameters.UpdateToGridSorted&&(this.updateToGridSorted=this.tileGridParameters.UpdateToGridSorted));const e=document.querySelectorAll("[showfind]"),t=document.querySelectorAll("input[searchBox]"),n=document.querySelectorAll("[searchButton]");let i=this.currentFilter&&this.currentFilter.NamePinSearchText?this.currentFilter.NamePinSearchText:null;e&&e.forEach(e=>{this.renderer.listen(e,"click",!this.showSkillSelector||this.redirectOnFind?e=>{zf.navigateToUrl(zf.Urls.findExpertPage)}:e=>{this.onShowFind(!this.showFind)})}),t&&(t.forEach((e,n)=>{i&&this.renderer.setProperty(e,"value",i),this.redirectOnSearch&&this.renderer.listen(e,"keyup",e=>{this.isKeyPressed(e,"Enter")&&i&&zf.navigateToUrl(zf.Urls.searchPage(e.target.value))}),this.renderer.listen(e,"input",e=>{this.redirectOnSearch||this.onSearchTextChange(e.target.value),i=e.target.value,t.forEach((t,i)=>{i!=n&&this.renderer.setProperty(t,"value",e.target.value)})})}),this.cleanSearchBox=()=>{t.forEach((e,t)=>{this.renderer.setProperty(e,"value","")})}),n&&n.forEach(e=>{this.redirectOnSearch&&this.renderer.listen(e,"click",e=>{i&&zf.navigateToUrl(zf.Urls.searchPage(i))})}),this.getConfig(()=>{this.getMember(()=>{this.currentFilter&&this.currentFilter.NamePinSearchText?this.getCachedExperts(this.currentFilter.NamePinSearchText):this.getExperts(this.currentFilter);let e=this.tileBusService.signalCurrentOnlineChat$.subscribe(t=>{var n,i,s;if(t&&this.tileBusService.amOnlineChatInProgressHandler(this)){let e=null===(n=null==t?void 0:t.OnlineChat)||void 0===n?void 0:n.ExpertNickname;(null===(i=null==t?void 0:t.OnlineChat)||void 0===i?void 0:i.OnlineChatStatusId)===Yf.InProgress&&e&&!this.tileBusService.isOnlineChatResumeHandler(null===(s=null==t?void 0:t.OnlineChat)||void 0===s?void 0:s.ExpertId)&&(this.modal=new Kf,this.modal.Title=`You have a ${this.resources.reading} in progress with ${e}, would you like go to their page to resume?`,this.modal.Type=Jf.Info,this.modal.ActionYes=()=>{this.modal=null,zf.navigateToUrl(zf.Urls.expertPageOnlineChatResume(e))},this.modal.ActionNo=()=>{this.modal=null})}e.unsubscribe()});this.member&&this.tileBusService.refreshCurrentOnlineChat()})}),this.searchTerms.pipe(Lf(this.searchTermsDelayTime)).subscribe(e=>{this.filterGrid(e,!1,this.insertToGridSorted)}),this.searchText.pipe(Lf(this.searchTextDelayTime)).subscribe(e=>{this.filterGridText(e)})}registerAsHandler(){this.tileBusService.amOnlineChatInProgressHandler(this)}onShowTalk(e){}onHideTalk(e){}onShowFind(e){if(e){this.onlineOnly=!1;let e=this.currentFilter?this.currentFilter:new Qf;e.OnlineOnly=!1,e.ResultsCount=this.findMinElements,this.member.IsLoggedIn||(e.ReturnFavouritesOnly=!1),this.searchTerms.next(e),this.showFind=!0}else{let e=!(!this.currentFilter||!this.currentFilter.NamePinSearchText);this.onlineOnly=!e;let t=new Qf;t.ResultsCount=e?this.findMinElements:null,t.NamePinSearchText=e?this.currentFilter.NamePinSearchText:null,this.member.IsLoggedIn||(t.ReturnFavouritesOnly=!1),t.OnlineOnly=!e,this.searchTerms.next(t),this.showFind=!1}}onSearchTextChange(e){this.searchText.next(e)}onFilterChange(e){e.ResultsCount=this.findMinElements,this.searchTerms.next(e)}onMemberLogin(e){this.member=e}}return e.\u0275fac=function(t){return new(t||e)(Dr(zm),Dr(bm),Dr(Km),Dr(Cm),Dr(Zm),Dr(zo),Dr(Uo),Dr(Su))},e.\u0275cmp=$e({type:e,selectors:[["tile-grid-base"]],inputs:{tileGridParameters:"tileGridParameters",currentFilter:"currentFilter"},decls:14,vars:14,consts:[[3,"currentFilter","configurations","member","showSkillSelector","showFilterSelector","filterChange","showChange",4,"ngIf"],[1,"reader-grid-container"],["class","reader-grid-header reader-grid-header-box",4,"ngIf"],["class","reader-grid-header",4,"ngIf"],["itemscope","itemscope","itemtype","https://schema.org/Product",3,"expert","member","configurations","showTalk","showTalkChange","memberLogin","hideTalkChange",4,"ngFor","ngForOf","ngForTrackBy"],["class","reader-grid-tile-loader",4,"ngIf"],["class","variableFontSize reader-grid-footer",4,"ngIf"],["class","reader-grid-footer",4,"ngIf"],["class","full-page-modal",4,"ngIf"],[3,"currentFilter","configurations","member","showSkillSelector","showFilterSelector","filterChange","showChange"],[1,"reader-grid-header","reader-grid-header-box"],[1,"reader-grid-header"],[4,"ngIf"],["itemscope","itemscope","itemtype","https://schema.org/Product",3,"expert","member","configurations","showTalk","showTalkChange","memberLogin","hideTalkChange"],[1,"reader-grid-tile-loader"],[1,"icon-wait"],[1,"variableFontSize","reader-grid-footer"],["tabindex","0","class","view_more_readers green_btn with_hover",3,"click",4,"ngIf"],["tabindex","0",1,"view_more_readers","green_btn","with_hover",3,"click"],[1,"reader-grid-footer"],[1,"full-page-modal"],[3,"modal"]],template:function(e,t){1&e&&(Ar(0,ax,1,5,"find",0),Fr(1,"div",1),Ar(2,lx,3,1,"div",2),Ar(3,ux,3,1,"div",3),Ar(4,cx,3,1,"div",3),Ar(5,hx,6,2,"div",3),Ar(6,fx,3,2,"div",3),Ar(7,mx,1,5,"tile",4),Ar(8,gx,2,0,"div",5),Ar(9,vx,2,1,"div",6),Ar(10,wx,2,1,"div",6),Ar(11,_x,2,1,"div",6),Ar(12,xx,3,1,"div",7),Mr(),Ar(13,Sx,2,1,"div",8)),2&e&&(Nr("ngIf",t.showFind&&t.configurationsLoaded),ns(2),Nr("ngIf",t.headerTitle),ns(1),Nr("ngIf",!t.currentFilter&&!t.gridTileLoading&&t.gridTileLoaded&&(t.experts&&0==t.experts.length||!t.experts)),ns(1),Nr("ngIf",t.headerText),ns(1),Nr("ngIf",t.currentFilter&&t.currentFilter.NamePinSearchText&&t.experts&&t.experts.length>0),ns(1),Nr("ngIf",t.currentFilter&&!t.gridTileLoading&&t.gridTileLoaded&&t.experts&&0==t.experts.length),ns(1),Nr("ngForOf",t.experts)("ngForTrackBy",t.trackByExperts),ns(1),Nr("ngIf",t.gridTileLoading),ns(1),Nr("ngIf",t.experts&&t.experts.length>0),ns(1),Nr("ngIf",t.currentFilter&&!t.gridTileLoading&&t.gridTileLoaded&&t.experts&&0==t.experts.length&&(!t.showSkillSelector||t.redirectOnFind||!t.showFind)),ns(1),Nr("ngIf",t.currentFilter&&!t.gridTileLoading&&t.gridTileLoaded&&t.experts&&0==t.experts.length&&!(!t.showSkillSelector||t.redirectOnFind||!t.showFind)),ns(1),Nr("ngIf",t.footerText),ns(1),Nr("ngIf",t.modal))},directives:[uu,au,sg,ox,Qg],styles:[""],data:{animation:[rc("InsertRemoveTrigger",[uc(":enter",[lc({opacity:0,transform:"scale(0)"}),oc("0.5s",lc({opacity:1,transform:"scale(1)"}))]),uc(":leave",[oc("0.5s",lc({opacity:0,transform:"scale(0)"}))])]),rc("ShowHideTrigger",[uc(":enter",[lc({opacity:0,transform:"scaleY(0)"}),oc("0.5s",lc({opacity:1,transform:"scaleY(1)"}))]),uc(":leave",[oc("0.5s",lc({opacity:0,transform:"scaleY(0)"}))])])]}}),e})();function Ix(e,t){if(1&e){const e=qr();Fr(0,"find",9),Hr("filterChange",function(t){return At(e),Gr().onFilterChange(t)})("showChange",function(t){return At(e),Gr().onShowFilter(t)}),Mr()}if(2&e){const e=Gr();Nr("currentFilter",e.currentFilter)("configurations",e.configurations)("member",e.member)("showSkillSelector",e.showSkillSelector)("showFilterSelector",e.showFilterSelector)}}function Tx(e,t){if(1&e&&(Fr(0,"div",10),Fr(1,"h2"),go(2),Mr(),Mr()),2&e){const e=Gr();ns(2),yo(e.headerTitle)}}function kx(e,t){if(1&e&&(Fr(0,"div",11),Fr(1,"h2"),go(2),Mr(),Mr()),2&e){const e=Gr();ns(2),vo("There are no available ",null==e.resources?null:e.resources.Experts,"")}}function Ox(e,t){if(1&e&&(Fr(0,"div",11),Fr(1,"span"),go(2),Mr(),Mr()),2&e){const e=Gr();ns(2),yo(e.headerText)}}function Ax(e,t){if(1&e&&(Fr(0,"div",11),Fr(1,"span"),go(2),Fr(3,"strong"),go(4),Mr(),go(5," are displayed below."),Mr(),Mr()),2&e){const e=Gr();ns(2),vo("",null==e.resources?null:e.resources.ExpertsFirstUpperCase," matching your search for "),ns(2),vo('"',e.currentFilter.NamePinSearchText,'"')}}function Px(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(2);ns(1),bo("Sorry, no ",null==e.resources?null:e.resources.Experts," matched your search. You can find other ",null==e.resources?null:e.resources.Experts," by following the link below.")}}function Dx(e,t){if(1&e&&(Fr(0,"span"),go(1),Mr()),2&e){const e=Gr(2);ns(1),bo("Sorry, no ",null==e.resources?null:e.resources.Experts," matched your search. You can find the available ",null==e.resources?null:e.resources.Experts," by following the link below.")}}function Nx(e,t){if(1&e&&(Fr(0,"div",11),Ar(1,Px,2,2,"span",12),Ar(2,Dx,2,2,"span",12),Mr()),2&e){const e=Gr();ns(1),Nr("ngIf",!e.showSkillSelector||e.redirectOnFind||!e.showFind),ns(1),Nr("ngIf",!(!e.showSkillSelector||e.redirectOnFind||!e.showFind))}}function Rx(e,t){if(1&e){const e=qr();Fr(0,"tile",13),Hr("showTalkChange",function(t){return At(e),Gr().onShowTalk(t)})("memberLogin",function(t){return At(e),Gr().onMemberLogin(t)})("hideTalkChange",function(t){return At(e),Gr().onHideTalk(t)}),Mr()}if(2&e){const e=t.$implicit,n=Gr();Nr("@InsertRemoveTrigger",void 0)("expert",e)("member",n.member)("configurations",n.configurations)("showTalk",n.showTalkPanels)}}function Fx(e,t){1&e&&(Fr(0,"div",14),Lr(1,"i",15),Mr())}function Mx(e,t){if(1&e){const e=qr();Fr(0,"a",18),Hr("click",function(){return At(e),Gr(2).viewMore()}),go(1),Mr()}if(2&e){const e=Gr(2);ns(1),vo("View more ",null==e.resources?null:e.resources.Experts,"")}}function Lx(e,t){if(1&e&&(Fr(0,"div",16),Ar(1,Mx,2,1,"a",17),Mr()),2&e){const e=Gr();ns(1),Nr("ngIf",e.gridTileLoaded&&!e.gridTileAllLoaded&&e.loadMore)}}function Bx(e,t){if(1&e){const e=qr();Fr(0,"a",18),Hr("click",function(){return At(e),Gr(2).findReaders()}),go(1),Mr()}if(2&e){const e=Gr(2);ns(1),vo("Find ",null==e.resources?null:e.resources.ExpertsFirstUpperCase,"")}}function Vx(e,t){if(1&e&&(Fr(0,"div",16),Ar(1,Bx,2,1,"a",17),Mr()),2&e){const e=Gr();ns(1),Nr("ngIf",e.gridTileLoaded)}}function qx(e,t){if(1&e){const e=qr();Fr(0,"a",18),Hr("click",function(){return At(e),Gr(2).showAvailable()}),go(1),Mr()}if(2&e){const e=Gr(2);ns(1),vo("Show Available ",null==e.resources?null:e.resources.ExpertsFirstUpperCase,"")}}function jx(e,t){if(1&e&&(Fr(0,"div",16),Ar(1,qx,2,1,"a",17),Mr()),2&e){const e=Gr();ns(1),Nr("ngIf",e.gridTileLoaded)}}function Qx(e,t){if(1&e&&(Fr(0,"div",19),Fr(1,"span"),go(2),Mr(),Mr()),2&e){const e=Gr();ns(2),yo(e.footerText)}}function $x(e,t){if(1&e&&(Fr(0,"div",20),Lr(1,"modal",21),Mr()),2&e){const e=Gr();ns(1),Nr("modal",e.modal)}}let Hx=(()=>{class e extends Ex{constructor(){super(...arguments),this.findUrl="/Psychic-Readers/",this.searchUrl="/Psychic-Reader-Search/Name-Pin/",this.expertsSkillSet={ExpertSkillType:Of,ExpertSkillTypeName:Af,ExpertSkillTypeCssClass:Pf}}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=Mn(e)))(n||e)}}(),e.\u0275cmp=$e({type:e,selectors:[["tile-grid"]],features:[mr],decls:14,vars:14,consts:[[3,"currentFilter","configurations","member","showSkillSelector","showFilterSelector","filterChange","showChange",4,"ngIf"],[1,"reader-grid-container"],["class","reader-grid-header reader-grid-header-box",4,"ngIf"],["class","reader-grid-header",4,"ngIf"],["itemscope","itemscope","itemtype","https://schema.org/Product",3,"expert","member","configurations","showTalk","showTalkChange","memberLogin","hideTalkChange",4,"ngFor","ngForOf","ngForTrackBy"],["class","reader-grid-tile-loader",4,"ngIf"],["class","variableFontSize reader-grid-footer",4,"ngIf"],["class","reader-grid-footer",4,"ngIf"],["class","full-page-modal",4,"ngIf"],[3,"currentFilter","configurations","member","showSkillSelector","showFilterSelector","filterChange","showChange"],[1,"reader-grid-header","reader-grid-header-box"],[1,"reader-grid-header"],[4,"ngIf"],["itemscope","itemscope","itemtype","https://schema.org/Product",3,"expert","member","configurations","showTalk","showTalkChange","memberLogin","hideTalkChange"],[1,"reader-grid-tile-loader"],[1,"icon-wait"],[1,"variableFontSize","reader-grid-footer"],["tabindex","0","class","view_more_readers green_btn with_hover",3,"click",4,"ngIf"],["tabindex","0",1,"view_more_readers","green_btn","with_hover",3,"click"],[1,"reader-grid-footer"],[1,"full-page-modal"],[3,"modal"]],template:function(e,t){1&e&&(Ar(0,Ix,1,5,"find",0),Fr(1,"div",1),Ar(2,Tx,3,1,"div",2),Ar(3,kx,3,1,"div",3),Ar(4,Ox,3,1,"div",3),Ar(5,Ax,6,2,"div",3),Ar(6,Nx,3,2,"div",3),Ar(7,Rx,1,5,"tile",4),Ar(8,Fx,2,0,"div",5),Ar(9,Lx,2,1,"div",6),Ar(10,Vx,2,1,"div",6),Ar(11,jx,2,1,"div",6),Ar(12,Qx,3,1,"div",7),Mr(),Ar(13,$x,2,1,"div",8)),2&e&&(Nr("ngIf",t.showFind&&t.configurationsLoaded),ns(2),Nr("ngIf",t.headerTitle),ns(1),Nr("ngIf",!t.currentFilter&&!t.gridTileLoading&&t.gridTileLoaded&&(t.experts&&0==t.experts.length||!t.experts)),ns(1),Nr("ngIf",t.headerText),ns(1),Nr("ngIf",t.currentFilter&&t.currentFilter.NamePinSearchText&&t.experts&&t.experts.length>0),ns(1),Nr("ngIf",t.currentFilter&&!t.gridTileLoading&&t.gridTileLoaded&&t.experts&&0==t.experts.length),ns(1),Nr("ngForOf",t.experts)("ngForTrackBy",t.trackByExperts),ns(1),Nr("ngIf",t.gridTileLoading),ns(1),Nr("ngIf",t.experts&&t.experts.length>0),ns(1),Nr("ngIf",t.currentFilter&&!t.gridTileLoading&&t.gridTileLoaded&&t.experts&&0==t.experts.length&&(!t.showSkillSelector||t.redirectOnFind||!t.showFind)),ns(1),Nr("ngIf",t.currentFilter&&!t.gridTileLoading&&t.gridTileLoaded&&t.experts&&0==t.experts.length&&!(!t.showSkillSelector||t.redirectOnFind||!t.showFind)),ns(1),Nr("ngIf",t.footerText),ns(1),Nr("ngIf",t.modal))},directives:[uu,au,sg,ox,Qg],styles:[""],data:{animation:[rc("InsertRemoveTrigger",[uc(":enter",[lc({opacity:0,transform:"scale(0)"}),oc("0.5s",lc({opacity:1,transform:"scale(1)"}))]),uc(":leave",[oc("0.5s",lc({opacity:0,transform:"scale(0)"}))])]),rc("ShowHideTrigger",[uc(":enter",[lc({opacity:0,transform:"scaleY(0)"}),oc("0.5s",lc({opacity:1,transform:"scaleY(1)"}))]),uc(":leave",[oc("0.5s",lc({opacity:0,transform:"scaleY(0)"}))])])]}}),e})();function Ux(e,t){if(1&e){const e=qr();Fr(0,"div",15),Hr("click",function(){return At(e),Gr(2).openChat()}),Fr(1,"a",11),Lr(2,"i",16),go(3," Chat"),Mr(),Mr()}2&e&&Nr("@EnterStatusTrigger",void 0)}function Wx(e,t){if(1&e){const e=qr();Fr(0,"div",17),Hr("click",function(){return At(e),Gr(2).openChat()}),Fr(1,"a",11),Lr(2,"i",16),go(3," Busy"),Mr(),Mr()}2&e&&Nr("@EnterStatusTrigger",void 0)}function Gx(e,t){if(1&e){const e=qr();Fr(0,"div",15),Hr("click",function(){return At(e),Gr(2).openTalk()}),Fr(1,"a",11),Lr(2,"i",18),go(3," Talk"),Mr(),Mr()}2&e&&Nr("@EnterStatusTrigger",void 0)}function zx(e,t){1&e&&Lr(0,"i",18)}function Yx(e,t){if(1&e&&(Fr(0,"a",11),Ar(1,zx,1,0,"i",20),go(2),Mr()),2&e){const e=Gr(3);ns(1),Nr("ngIf",!(e.expert.Queue&&e.expert.Queue.QueueStatus==e.queueStatus.QueueFull)),ns(1),yo(e.ivrQueueingEnabled?e.ivrQueueingEnabled&&e.expert.Queue?e.expert.Queue.QueueStatus==e.queueStatus.QueueFull?"Queue Full":" Queue ("+e.expert.Queue.QueueLength+")":" Queue":" Busy")}}function Kx(e,t){if(1&e&&(Fr(0,"a",11),go(1),Mr()),2&e){const e=Gr(3);ns(1),vo("",e.expert.Queue.CurrentMemberQueueElement.Position," in Queue")}}function Jx(e,t){if(1&e){const e=qr();Fr(0,"div",17),Hr("click",function(){return At(e),Gr(2).openTalk()}),Ar(1,Yx,3,2,"a",19),Ar(2,Kx,2,1,"a",19),Mr()}if(2&e){const e=Gr(2);Nr("@EnterStatusTrigger",void 0),ns(1),Nr("ngIf",!(e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement)),ns(1),Nr("ngIf",e.ivrQueueingEnabled&&e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement)}}function Zx(e,t){1&e&&(Fr(0,"a",11),go(1,"Away"),Mr())}function Xx(e,t){if(1&e&&(Fr(0,"a",11),go(1),Mr()),2&e){const e=Gr(3);ns(1),vo("",e.expert.Queue.CurrentMemberQueueElement.Position," in Queue")}}function eS(e,t){if(1&e){const e=qr();Fr(0,"div",21),Hr("click",function(){return At(e),Gr(2).openTalk()}),Ar(1,Zx,2,0,"a",19),Ar(2,Xx,2,1,"a",19),Mr()}if(2&e){const e=Gr(2);Nr("@EnterStatusTrigger",void 0),ns(1),Nr("ngIf",!(e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement)),ns(1),Nr("ngIf",e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement)}}function tS(e,t){if(1&e){const e=qr();Fr(0,"div",6),Ar(1,Ux,4,1,"div",7),Ar(2,Wx,4,1,"div",8),Ar(3,Gx,4,1,"div",7),Ar(4,Jx,3,3,"div",8),Ar(5,eS,3,3,"div",9),Fr(6,"div",10),Hr("click",function(){return At(e),Gr().toggleFavourite()}),Fr(7,"a",11),go(8),Mr(),Mr(),Fr(9,"div",10),Hr("click",function(){return At(e),Gr().openSubmitReview()}),Fr(10,"a",11),Lr(11,"span",12),go(12," Submit a review"),Mr(),Mr(),Fr(13,"div",13),Hr("click",function(){return At(e),Gr().buyReading()}),Fr(14,"a",11),Fr(15,"span",14),go(16),Mr(),go(17," Buy Credit"),Mr(),Mr(),Mr()}if(2&e){const e=Gr();Nr("@ShowHideTrigger",void 0),ns(1),Nr("ngIf",e.expert.OnlineChatReader&&e.expert.IsOnlineForOnlineChat&&!e.expert.IsBusy&&e.onlineChatEnabled),ns(1),Nr("ngIf",e.expert.OnlineChatReader&&e.expert.IsOnlineForOnlineChat&&e.expert.IsBusy&&e.onlineChatEnabled),ns(1),Nr("ngIf",e.expert.IsOnline&&!e.expert.IsBusy),ns(1),Nr("ngIf",e.expert.IsOnline&&e.expert.IsBusy),ns(1),Nr("ngIf",!e.expert.IsOnline&&!e.expert.IsOnlineForOnlineChat),ns(1),io("with_hover",e.member&&e.member.IsLoggedIn)("aspNetDisabled",!(e.member&&e.member.IsLoggedIn))("loginRequired",!(e.member&&e.member.IsLoggedIn)),Nr("title",e.member&&e.member.IsLoggedIn?"":"You need to be logged in in order to add a "+e.resources.Expert+" to your "+e.resources.favourites),ns(2),vo("",(e.expert&&e.expert.IsAddedToFavourites?"- Remove ":"+ Add to ")+e.resources.favourites," "),ns(1),io("with_hover",e.member&&e.member.IsLoggedIn&&e.memberAllowedToLeaveReview)("aspNetDisabled",!(e.member&&e.member.IsLoggedIn&&e.memberAllowedToLeaveReview))("loginRequired",!(e.member&&e.member.IsLoggedIn)),Nr("title",e.member&&e.member.IsLoggedIn?"":"You need to be logged in and have had a "+e.resources.reading+" with a "+e.resources.Expert+" in order to leave a review."),ns(7),yo(null==e.resources?null:e.resources.CurrencySymbol)}}function nS(e,t){if(1&e){const e=qr();Fr(0,"talk",22),Hr("close",function(t){return At(e),Gr().closeTalk(t)})("hideClose",function(){return At(e),Gr().hideCloseTalk()})("callBackChange",function(t){return At(e),Gr().onCallBackRequested(t)})("queueingRequestChange",function(t){return At(e),Gr().onQueueingRequest(t)})("queuedChange",function(t){return At(e),Gr().onQueued(t)}),Mr()}if(2&e){const e=Gr();io("hidden",e.hideTalk),Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)("callBackRequestedFor",e.callBackRequestedFor)("queuedFor",e.queuedFor)}}function iS(e,t){if(1&e){const e=qr();Fr(0,"review",23),Hr("close",function(){return At(e),Gr().closeSubmitReview()})("reviewChange",function(t){return At(e),Gr().addReview(t)})("displayNameChange",function(t){return At(e),Gr().displayNameChange(t)}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}function sS(e,t){if(1&e){const e=qr();Fr(0,"payment",24),Hr("close",function(){return At(e),Gr().closePayment()}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}function rS(e,t){if(1&e){const e=qr();Fr(0,"login",24),Hr("close",function(t){return At(e),Gr().closeLogin(t)}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}function oS(e,t){1&e&&(Fr(0,"div",25),Lr(1,"i",26),Mr())}function aS(e,t){if(1&e&&(Fr(0,"div",27),Lr(1,"modal",28),Mr()),2&e){const e=Gr();ns(1),Nr("modal",e.modal)}}function lS(e,t){if(1&e){const e=qr();Fr(0,"session",24),Hr("close",function(t){return At(e),Gr().closeIMSession(t)}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}let uS=(()=>{class e{constructor(e,t,n,i,s){this.tileBusService=e,this.expertService=t,this.memberService=n,this.queueService=i,this.elementRef=s,this.pollingTime=5010,this.favouriteDelayTime=500,this.isAddedToFavourites=new x,this.syncStatus=!1,this.showSubmitReviewChange=new Wa,this.showTalkChange=new Wa,this.hideTalkChange=new Wa,this.resources={},this.callBackRequested=!1,this.callBackRequestedFor=null,this.queueingRequested=!1,this.queuedFor=null,this.queueStatus=og,this.modal=null,this.ivrCallBackEnabled=!1,this.ivrQueueingEnabled=!1,this.onlineChatEnabled=!1,this.showPayment=!1,this.showLogin=!1,this.showIMSession=!1;let r=this.elementRef.nativeElement.getAttribute("expert"),o=this.elementRef.nativeElement.getAttribute("memberAllowedToLeaveReview");r&&(this.expert=JSON.parse(r.replace(/'/g,'"')),this.elementRef.nativeElement.removeAttribute("expert"),this.expert.ExpertIvrId&&(this.syncStatus=!0)),o&&(this.memberAllowedToLeaveReview=JSON.parse(o.replace(/'/g,'"')),this.elementRef.nativeElement.removeAttribute("memberAllowedToLeaveReview"))}getConfig(e=(()=>{})){this.tileBusService.getConfig(t=>{this.configurations=t,e()})}getMember(e=(()=>{})){this.tileBusService.getMember(t=>{this.member=t,e()})}getExpertStatus(e){setTimeout(()=>{this.expertService.getExpertsStatus(null).subscribe(t=>{if(t&&t.ExpertsStatusList&&this.expert){let n=t.ExpertsStatusList.map(e=>e.ExpertIvrId).indexOf(e);-1!=n&&t.ExpertsStatusList[n].HasQueueIVR&&this.queueService.getQueues().subscribe()}this.getExpertStatus(e)})},this.pollingTime)}setFavourite(e,t=(()=>{})){this.expert&&this.expert.Nickname&&this.memberService.setFavourite(this.expert.Nickname,e).subscribe(n=>{n?t():setTimeout(()=>{this.setFavourite(e)},this.pollingTime)})}openSubmitReview(){this.member&&this.member.IsLoggedIn?this.memberAllowedToLeaveReview?this.showSubmitReview=!0:(this.modal=new Kf,this.modal.Title=`Sorry, you are not allowed to leave a review for ${this.expert.Nickname}.`,this.modal.Type=Jf.Info,this.modal.ActionOk=()=>{this.modal=null}):(this.modal=new Kf,this.modal.Title=`You need to be logged in to leave a review for ${this.expert.Nickname}, would you like to log in now?`,this.modal.Type=Jf.Info,this.modal.ActionYes=()=>{this.modal=null,zf.isTestEnvironment(this.configurations)||this.configurations.AngularLoginRequest?this.showLogin=!0:zf.navigateToUrl(zf.Urls.loginPage)},this.modal.ActionNo=()=>{this.modal=null})}ngOnInit(){this.registerAsHandler();let e=()=>{var e,t;this.expertActionsClass=null,this.configurations&&(this.resources=this.configurations.ResourceData,this.onlineChatEnabled=this.configurations.OnlineChatEnabled,this.ivrCallBackEnabled=this.configurations.IvrCallBackEnabled,this.ivrQueueingEnabled=this.configurations.IvrQueueingEnabled),this.showTalk=null!=this.showTalk&&this.showTalk,this.hideTalk=null!=this.hideTalk&&this.hideTalk,this.profileLink=zf.Urls.expertPage(null===(e=this.expert)||void 0===e?void 0:e.Nickname),this.chatLink=zf.Urls.onlineChatExpertPage(null===(t=this.expert)||void 0===t?void 0:t.Nickname),this.sync(),this.isAddedToFavourites.pipe(Lf(this.favouriteDelayTime)).subscribe(e=>{this.setFavourite(e)})};if(this.configurations||this.member)if(this.configurations||!this.member){if(!this.configurations||this.member)return this.configurations&&this.member?(this.getExpertStatus(this.expert.ExpertIvrId),void e()):void 0;this.getMember(()=>{this.getExpertStatus(this.expert.ExpertIvrId),e()})}else this.getConfig(()=>{this.getExpertStatus(this.expert.ExpertIvrId),e()});else this.getConfig(()=>{this.getMember(()=>{this.getExpertStatus(this.expert.ExpertIvrId),e()})})}registerAsHandler(){var e;this.tileBusService.amOnlineChatResumeHandler(this,null===(e=this.expert)||void 0===e?void 0:e.ExpertIvrId)}toggleFavourite(){this.member&&this.member.IsLoggedIn?(this.expert.IsAddedToFavourites=!this.expert.IsAddedToFavourites,this.tileBusService.signalAddFavourtie$.emit(this.expert),this.isAddedToFavourites.next(this.expert.IsAddedToFavourites)):(this.modal=new Kf,this.modal.Title=`You need to be logged in to add ${this.expert.Nickname} to your ${this.resources.favourite} ${this.resources.Experts}, would you like to log in now?`,this.modal.Type=Jf.Info,this.modal.ActionYes=()=>{this.modal=null,zf.isTestEnvironment(this.configurations)||this.configurations.AngularLoginRequest?this.showLogin=!0:zf.navigateToUrl(zf.Urls.loginPage)},this.modal.ActionNo=()=>{this.modal=null})}buyReading(){zf.isTestEnvironment(this.configurations)||this.configurations.AngularPaymentRequest?this.member.IsLoggedIn?this.showPayment=!0:this.showLogin=!0:zf.navigateToUrl(zf.Urls.makePaymentPage)}openTalk(){this.tileBusService.signalCloseTalk$.emit(this.expert),this.showTalkChange.emit(this.expert),this.showTalk=!0,this.hideTalk=!1}closeTalk(e){e&&(this.member=e),this.showTalkChange.emit(this.expert),this.showTalk=!1}hideCloseTalk(){this.hideTalkChange.emit(this.expert),this.hideTalk=!0}closeSubmitReview(){this.showSubmitReview=!1}openChat(){zf.isTestEnvironment(this.configurations)||this.configurations.AngularChat?this.showIMSession=!0:this.expert.IsBusy||zf.navigateToUrl(this.chatLink)}onCallBackRequested(e){this.callBackRequested=e,this.tileBusService.signalCallBackRequested$.emit(e?this.expert:null)}onQueueingRequest(e){this.queueingRequested=e}onQueued(e){this.tileBusService.signalQueuedExpert$.emit(e?this.expert:null)}addReview(e){this.tileBusService.signalAddReview$.emit(e)}displayNameChange(e){this.tileBusService.signalDisplayNameChange$.emit(e)}sync(){if(this.tileBusService.signalCloseTalk$.subscribe(e=>{this.callBackRequested||this.queueingRequested?this.hideTalk=!0:this.showTalk=!1}),this.tileBusService.signalAddReview$.subscribe(e=>{e&&this.expert&&e.ExpertId==this.expert.ExpertIvrId&&(this.memberAllowedToLeaveReview=!1)}),this.tileBusService.signalDisplayNameChange$.subscribe(e=>{e&&(this.member.DisplayName=e)}),this.tileBusService.signalCallBackRequested$.subscribe(e=>{this.callBackRequestedFor=e}),this.tileBusService.signalQueuedExpert$.subscribe(e=>{e&&e.ExpertIvrId!=this.expert.ExpertIvrId&&this.expert.Queue&&this.expert.Queue.CurrentMemberQueueElement&&(this.expert.Queue.CurrentMemberQueueElement=null),e&&this.expert.ExpertIvrId==e.ExpertIvrId&&(this.expert.Queue=e.Queue,this.expert.EstimatedWaitTime=e.EstimatedWaitTime,this.expert.EstimatedWaitTimeCurrentMember=e.EstimatedWaitTimeCurrentMember),this.queuedFor=e}),this.tileBusService.signalAddFavourtie$.subscribe(e=>{e&&this.expert&&this.expert.ExpertIvrId==e.ExpertIvrId&&(this.expert.IsAddedToFavourites=e.IsAddedToFavourites)}),this.callBackRequestedFor=this.tileBusService.callBackRequestedFor,this.queuedFor=this.tileBusService.queuedFor,this.expert.Queue&&this.expert.Queue.CurrentMemberQueueElement&&this.onQueued(!0),this.tileBusService.signalCurrentOnlineChat$.subscribe(e=>{var t,n,i,s;e&&this.expert&&this.expert.ExpertIvrId==(null===(t=null==e?void 0:e.OnlineChat)||void 0===t?void 0:t.ExpertId)&&this.tileBusService.amOnlineChatResumeHandler(this,null===(n=this.expert)||void 0===n?void 0:n.ExpertIvrId)&&!0!==this.showIMSession&&(zf.isCurrentUrlPath(zf.Urls.expertPageOnlineChatResume(null===(i=this.expert)||void 0===i?void 0:i.Nickname))?this.openChat():(null===(s=null==e?void 0:e.OnlineChat)||void 0===s?void 0:s.OnlineChatStatusId)===Yf.InProgress&&(this.modal=new Kf,this.modal.Title=`You have a ${this.resources.reading} in progress with ${this.expert.Nickname}, would you like to resume?`,this.modal.Type=Jf.Info,this.modal.ActionYes=()=>{this.modal=null,this.openChat()},this.modal.ActionNo=()=>{this.modal=null}))}),this.syncStatus){let e=null;this.expertService.expertsStatusChange$.subscribe(t=>{if(t&&t.ExpertsStatusList&&this.expert){let n=t.ExpertsStatusList.map(e=>e.ExpertIvrId).indexOf(this.expert.ExpertIvrId);if(-1!=n){let i=t.ExpertsStatusList[n];this.expert.IsBusy=i.IsBusy,this.expert.IsOnline=i.OnlineIVR,this.expert.IsOnlineForOnlineChat=i.OnlineIM,e=i,i.HasQueueIVR||(this.expert.Queue=null,this.expert.EstimatedWaitTime=this.expert.DefaultEstimatedWaitTime,this.expert.EstimatedWaitTimeCurrentMember=this.expert.DefaultEstimatedWaitTime)}else this.expert.IsOnline=!1,this.expert.IsOnlineForOnlineChat=!1}}),this.queueService.queuesChange$.subscribe(t=>{if(this.expert&&t&&t.ExpertsQueue&&e&&e.HasQueueIVR){let e=t.ExpertsQueue.map(e=>e.ExpertId).indexOf(this.expert.ExpertIvrId);if(-1!=e){let n=t.ExpertsQueue[e];this.expert.Queue=n.Queue,this.expert.EstimatedWaitTime=n.QueueEstimatedWaitTime,this.expert.EstimatedWaitTimeCurrentMember=n.QueueEstimatedWaitTimeCurrentMember}}else this.expert.Queue=null,this.expert.EstimatedWaitTime=this.expert.DefaultEstimatedWaitTime,this.expert.EstimatedWaitTimeCurrentMember=this.expert.DefaultEstimatedWaitTime})}this.member&&this.tileBusService.refreshCurrentOnlineChat()}closeLogin(e){this.showLogin=!1,e&&(this.member=e,this.member.IsLoggedIn=e.IsLoggedIn)}closePayment(){this.showPayment=!1}closeIMSession(e){e&&(this.member=e),this.showIMSession=!1}}return e.\u0275fac=function(t){return new(t||e)(Dr(zm),Dr(Km),Dr(Cm),Dr(Zm),Dr(Uo))},e.\u0275cmp=$e({type:e,selectors:[["expert-actions-base"]],hostVars:2,hostBindings:function(e,t){2&e&&so(t.expertActionsClass)},inputs:{expert:"expert",member:"member",memberAllowedToLeaveReview:"memberAllowedToLeaveReview",configurations:"configurations",showSubmitReview:"showSubmitReview",showTalk:"showTalk",hideTalk:"hideTalk",showPayment:"showPayment",showLogin:"showLogin",showIMSession:"showIMSession"},outputs:{showSubmitReviewChange:"showSubmitReviewChange",showTalkChange:"showTalkChange",hideTalkChange:"hideTalkChange"},decls:8,vars:8,consts:[["class","expert-actions-container",4,"ngIf"],[3,"expert","member","configurations","callBackRequestedFor","queuedFor","hidden","close","hideClose","callBackChange","queueingRequestChange","queuedChange",4,"ngIf"],[3,"expert","member","configurations","close","reviewChange","displayNameChange",4,"ngIf"],[3,"expert","member","configurations","close",4,"ngIf"],["class","generic-loader",4,"ngIf"],["class","full-page-modal",4,"ngIf"],[1,"expert-actions-container"],["class","general_button available_gradient with_hover",3,"click",4,"ngIf"],["class","general_button busy_gradient with_hover",3,"click",4,"ngIf"],["class","general_button unavailable_gradient with_hover",3,"click",4,"ngIf"],[1,"general_button","neutral_gradient",3,"title","click"],["tabindex","0"],[1,"icon-star"],[1,"general_button","neutral_gradient","with_hover",3,"click"],[1,"icon"],[1,"general_button","available_gradient","with_hover",3,"click"],[1,"icon-chats"],[1,"general_button","busy_gradient","with_hover",3,"click"],[1,"icon-phone"],["tabindex","0",4,"ngIf"],["class","icon-phone",4,"ngIf"],[1,"general_button","unavailable_gradient","with_hover",3,"click"],[3,"expert","member","configurations","callBackRequestedFor","queuedFor","close","hideClose","callBackChange","queueingRequestChange","queuedChange"],[3,"expert","member","configurations","close","reviewChange","displayNameChange"],[3,"expert","member","configurations","close"],[1,"generic-loader"],[1,"icon-wait"],[1,"full-page-modal"],[3,"modal"]],template:function(e,t){1&e&&(Ar(0,tS,18,22,"div",0),Ar(1,nS,1,7,"talk",1),Ar(2,iS,1,3,"review",2),Ar(3,sS,1,3,"payment",3),Ar(4,rS,1,3,"login",3),Ar(5,oS,2,0,"div",4),Ar(6,aS,2,1,"div",5),Ar(7,lS,1,3,"session",3)),2&e&&(Nr("ngIf",t.configurations&&t.expert&&t.member),ns(1),Nr("ngIf",t.showTalk&&t.configurations&&t.expert&&t.member),ns(1),Nr("ngIf",t.showSubmitReview&&t.configurations&&t.expert&&t.member),ns(1),Nr("ngIf",t.showPayment),ns(1),Nr("ngIf",t.showLogin),ns(1),Nr("ngIf",!t.configurations||!t.expert||!t.member),ns(1),Nr("ngIf",t.modal),ns(1),Nr("ngIf",t.showIMSession))},directives:[uu,Vb,Dw,Wy,Tv,Qg,H_],styles:[""],data:{animation:[rc("ShowHideTrigger",[uc(":enter",[lc({opacity:0,transform:"translateY(-25px)"}),oc("0.5s",lc({opacity:1,transform:"translateY(0px)"}))]),uc(":leave",[oc("0.5s",lc({opacity:0,transform:"translateY(-25px)"}))])]),rc("EnterStatusTrigger",[uc(":enter",[lc({transform:"rotateX(0deg)"}),oc("0.5s",lc({transform:"rotateX(360deg)"}))])]),rc("LeaveStatusTrigger",[uc(":leave",[lc({transform:"rotateX(0deg)"}),oc("0.5s",lc({transform:"rotateX(360deg)"}))])])]}}),e})();function cS(e,t){if(1&e){const e=qr();Fr(0,"div",15),Hr("click",function(){return At(e),Gr(2).openChat()}),Fr(1,"a",11),Lr(2,"i",16),go(3," Chat"),Mr(),Mr()}2&e&&Nr("@EnterStatusTrigger",void 0)}function hS(e,t){if(1&e){const e=qr();Fr(0,"div",17),Hr("click",function(){return At(e),Gr(2).openChat()}),Fr(1,"a",11),Lr(2,"i",16),go(3," Busy"),Mr(),Mr()}2&e&&Nr("@EnterStatusTrigger",void 0)}function dS(e,t){if(1&e){const e=qr();Fr(0,"div",15),Hr("click",function(){return At(e),Gr(2).openTalk()}),Fr(1,"a",11),Lr(2,"i",18),go(3," Talk"),Mr(),Mr()}2&e&&Nr("@EnterStatusTrigger",void 0)}function pS(e,t){1&e&&Lr(0,"i",18)}function fS(e,t){if(1&e&&(Fr(0,"a",11),Ar(1,pS,1,0,"i",20),go(2),Mr()),2&e){const e=Gr(3);ns(1),Nr("ngIf",!(e.expert.Queue&&e.expert.Queue.QueueStatus==e.queueStatus.QueueFull)),ns(1),yo(e.ivrQueueingEnabled?e.ivrQueueingEnabled&&e.expert.Queue?e.expert.Queue.QueueStatus==e.queueStatus.QueueFull?"Queue Full":" Queue ("+e.expert.Queue.QueueLength+")":" Queue":" Busy")}}function mS(e,t){if(1&e&&(Fr(0,"a",11),go(1),Mr()),2&e){const e=Gr(3);ns(1),vo("",e.expert.Queue.CurrentMemberQueueElement.Position," in Queue")}}function gS(e,t){if(1&e){const e=qr();Fr(0,"div",17),Hr("click",function(){return At(e),Gr(2).openTalk()}),Ar(1,fS,3,2,"a",19),Ar(2,mS,2,1,"a",19),Mr()}if(2&e){const e=Gr(2);Nr("@EnterStatusTrigger",void 0),ns(1),Nr("ngIf",!(e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement)),ns(1),Nr("ngIf",e.ivrQueueingEnabled&&e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement)}}function yS(e,t){1&e&&(Fr(0,"a",11),go(1,"Away"),Mr())}function vS(e,t){if(1&e&&(Fr(0,"a",11),go(1),Mr()),2&e){const e=Gr(3);ns(1),vo("",e.expert.Queue.CurrentMemberQueueElement.Position," in Queue")}}function bS(e,t){if(1&e){const e=qr();Fr(0,"div",21),Hr("click",function(){return At(e),Gr(2).openTalk()}),Ar(1,yS,2,0,"a",19),Ar(2,vS,2,1,"a",19),Mr()}if(2&e){const e=Gr(2);Nr("@EnterStatusTrigger",void 0),ns(1),Nr("ngIf",!(e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement)),ns(1),Nr("ngIf",e.expert.Queue&&e.expert.Queue.CurrentMemberQueueElement)}}function wS(e,t){if(1&e){const e=qr();Fr(0,"div",6),Ar(1,cS,4,1,"div",7),Ar(2,hS,4,1,"div",8),Ar(3,dS,4,1,"div",7),Ar(4,gS,3,3,"div",8),Ar(5,bS,3,3,"div",9),Fr(6,"div",10),Hr("click",function(){return At(e),Gr().toggleFavourite()}),Fr(7,"a",11),go(8),Mr(),Mr(),Fr(9,"div",10),Hr("click",function(){return At(e),Gr().openSubmitReview()}),Fr(10,"a",11),Lr(11,"span",12),go(12," Submit a review"),Mr(),Mr(),Fr(13,"div",13),Hr("click",function(){return At(e),Gr().buyReading()}),Fr(14,"a",11),Fr(15,"span",14),go(16),Mr(),go(17," Buy Credit"),Mr(),Mr(),Mr()}if(2&e){const e=Gr();Nr("@ShowHideTrigger",void 0),ns(1),Nr("ngIf",e.expert.OnlineChatReader&&e.expert.IsOnlineForOnlineChat&&!e.expert.IsBusy&&e.onlineChatEnabled),ns(1),Nr("ngIf",e.expert.OnlineChatReader&&e.expert.IsOnlineForOnlineChat&&e.expert.IsBusy&&e.onlineChatEnabled),ns(1),Nr("ngIf",e.expert.IsOnline&&!e.expert.IsBusy),ns(1),Nr("ngIf",e.expert.IsOnline&&e.expert.IsBusy),ns(1),Nr("ngIf",!e.expert.IsOnline&&!e.expert.IsOnlineForOnlineChat),ns(1),io("with_hover",e.member&&e.member.IsLoggedIn)("aspNetDisabled",!(e.member&&e.member.IsLoggedIn))("loginRequired",!(e.member&&e.member.IsLoggedIn)),Nr("title",e.member&&e.member.IsLoggedIn?"":"You need to be logged in in order to add a "+e.resources.Expert+" to your "+e.resources.favourites),ns(2),vo("",(e.expert&&e.expert.IsAddedToFavourites?"- Remove ":"+ Add to ")+e.resources.favourites," "),ns(1),io("with_hover",e.member&&e.member.IsLoggedIn&&e.memberAllowedToLeaveReview)("aspNetDisabled",!(e.member&&e.member.IsLoggedIn&&e.memberAllowedToLeaveReview))("loginRequired",!(e.member&&e.member.IsLoggedIn)),Nr("title",e.member&&e.member.IsLoggedIn?"":"You need to be logged in and have had a "+e.resources.reading+" with a "+e.resources.Expert+" in order to leave a review."),ns(7),yo(null==e.resources?null:e.resources.CurrencySymbol)}}function CS(e,t){if(1&e){const e=qr();Fr(0,"talk",22),Hr("close",function(t){return At(e),Gr().closeTalk(t)})("hideClose",function(){return At(e),Gr().hideCloseTalk()})("callBackChange",function(t){return At(e),Gr().onCallBackRequested(t)})("queueingRequestChange",function(t){return At(e),Gr().onQueueingRequest(t)})("queuedChange",function(t){return At(e),Gr().onQueued(t)}),Mr()}if(2&e){const e=Gr();io("hidden",e.hideTalk),Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)("callBackRequestedFor",e.callBackRequestedFor)("queuedFor",e.queuedFor)}}function _S(e,t){if(1&e){const e=qr();Fr(0,"review",23),Hr("close",function(){return At(e),Gr().closeSubmitReview()})("reviewChange",function(t){return At(e),Gr().addReview(t)})("displayNameChange",function(t){return At(e),Gr().displayNameChange(t)}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}function xS(e,t){if(1&e){const e=qr();Fr(0,"payment",24),Hr("close",function(){return At(e),Gr().closePayment()}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}function SS(e,t){if(1&e){const e=qr();Fr(0,"login",24),Hr("close",function(t){return At(e),Gr().closeLogin(t)}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}function ES(e,t){1&e&&(Fr(0,"div",25),Lr(1,"i",26),Mr())}function IS(e,t){if(1&e&&(Fr(0,"div",27),Lr(1,"modal",28),Mr()),2&e){const e=Gr();ns(1),Nr("modal",e.modal)}}function TS(e,t){if(1&e){const e=qr();Fr(0,"session",24),Hr("close",function(t){return At(e),Gr().closeIMSession(t)}),Mr()}if(2&e){const e=Gr();Nr("expert",e.expert)("member",e.member)("configurations",e.configurations)}}let kS=(()=>{class e extends uS{}return e.\u0275fac=function(){let t;return function(n){return(t||(t=Mn(e)))(n||e)}}(),e.\u0275cmp=$e({type:e,selectors:[["expert-actions"]],features:[mr],decls:8,vars:8,consts:[["class","expert-actions-container",4,"ngIf"],[3,"expert","member","configurations","callBackRequestedFor","queuedFor","hidden","close","hideClose","callBackChange","queueingRequestChange","queuedChange",4,"ngIf"],[3,"expert","member","configurations","close","reviewChange","displayNameChange",4,"ngIf"],[3,"expert","member","configurations","close",4,"ngIf"],["class","generic-loader",4,"ngIf"],["class","full-page-modal",4,"ngIf"],[1,"expert-actions-container"],["class","general_button available_gradient with_hover",3,"click",4,"ngIf"],["class","general_button busy_gradient with_hover",3,"click",4,"ngIf"],["class","general_button unavailable_gradient with_hover",3,"click",4,"ngIf"],[1,"general_button","neutral_gradient",3,"title","click"],["tabindex","0"],[1,"icon-star"],[1,"general_button","neutral_gradient","with_hover",3,"click"],[1,"icon"],[1,"general_button","available_gradient","with_hover",3,"click"],[1,"icon-chats"],[1,"general_button","busy_gradient","with_hover",3,"click"],[1,"icon-phone"],["tabindex","0",4,"ngIf"],["class","icon-phone",4,"ngIf"],[1,"general_button","unavailable_gradient","with_hover",3,"click"],[3,"expert","member","configurations","callBackRequestedFor","queuedFor","close","hideClose","callBackChange","queueingRequestChange","queuedChange"],[3,"expert","member","configurations","close","reviewChange","displayNameChange"],[3,"expert","member","configurations","close"],[1,"generic-loader"],[1,"icon-wait"],[1,"full-page-modal"],[3,"modal"]],template:function(e,t){1&e&&(Ar(0,wS,18,22,"div",0),Ar(1,CS,1,7,"talk",1),Ar(2,_S,1,3,"review",2),Ar(3,xS,1,3,"payment",3),Ar(4,SS,1,3,"login",3),Ar(5,ES,2,0,"div",4),Ar(6,IS,2,1,"div",5),Ar(7,TS,1,3,"session",3)),2&e&&(Nr("ngIf",t.configurations&&t.expert&&t.member),ns(1),Nr("ngIf",t.showTalk&&t.configurations&&t.expert&&t.member),ns(1),Nr("ngIf",t.showSubmitReview&&t.configurations&&t.expert&&t.member),ns(1),Nr("ngIf",t.showPayment),ns(1),Nr("ngIf",t.showLogin),ns(1),Nr("ngIf",!t.configurations||!t.expert||!t.member),ns(1),Nr("ngIf",t.modal),ns(1),Nr("ngIf",t.showIMSession))},directives:[uu,Vb,Dw,Wy,Tv,Qg,H_],styles:[""],data:{animation:[rc("ShowHideTrigger",[uc(":enter",[lc({opacity:0,transform:"translateY(-25px)"}),oc("0.5s",lc({opacity:1,transform:"translateY(0px)"}))]),uc(":leave",[oc("0.5s",lc({opacity:0,transform:"translateY(-25px)"}))])]),rc("EnterStatusTrigger",[uc(":enter",[lc({transform:"rotateX(0deg)"}),oc("0.5s",lc({transform:"rotateX(360deg)"}))])]),rc("LeaveStatusTrigger",[uc(":leave",[lc({transform:"rotateX(0deg)"}),oc("0.5s",lc({transform:"rotateX(360deg)"}))])])]}}),e})();function OS(e,t){if(1&e&&(Fr(0,"li",5),Fr(1,"div",6),go(2),Mr(),Fr(3,"div",7),Lr(4,"i",8),go(5,"\xa0"),Lr(6,"i",8),go(7,"\xa0"),Lr(8,"i",8),go(9,"\xa0"),Lr(10,"i",8),go(11,"\xa0"),Lr(12,"i",8),go(13,"\xa0"),Fr(14,"span",9),go(15),Mr(),Mr(),Fr(16,"div",10),go(17),Mr(),Fr(18,"div",11),Fr(19,"span",12),go(20),Mr(),go(21,"\xa0"),Fr(22,"span"),Lr(23,"meta",13),go(24),Mr(),Mr(),Mr()),2&e){const e=t.$implicit;ns(2),yo(e.Title),ns(1),_o("rating",e.Rating,""),ns(12),yo(e.Rating),ns(2),yo(e.Text),ns(3),yo(e.AuthorDisplayName),ns(3),Nr("content",e.Created),ns(1),yo(e.Created)}}function AS(e,t){if(1&e&&(Fr(0,"ul",3),Ar(1,OS,25,9,"li",4),Mr()),2&e){const e=Gr();ns(1),Nr("ngForOf",e.reviews)}}function PS(e,t){1&e&&(Fr(0,"div",14),Lr(1,"i",15),Mr())}function DS(e,t){if(1&e){const e=qr();Fr(0,"div",16),Hr("click",function(){return At(e),Gr().showMore()}),Lr(1,"input",17),Mr()}}let NS=(()=>{class e{constructor(e,t,n){this.expertService=e,this.elementRef=t,this.tileBusService=n,this.reviews=[],this.page=null,this.pageSize=30,this.preload=!1,this.loadMore=!0,this.reviewsLoading=!0,this.reviewsLoaded=!1,this.reviewsAllLoaded=!1;let i=this.elementRef.nativeElement.getAttribute("expert"),s=this.elementRef.nativeElement.getAttribute("reviews"),r=this.elementRef.nativeElement.getAttribute("page"),o=this.elementRef.nativeElement.getAttribute("pageSize"),a=this.elementRef.nativeElement.getAttribute("preload"),l=this.elementRef.nativeElement.getAttribute("loadMore");i&&(this.expert=JSON.parse(i.replace(/'/g,'"')),this.elementRef.nativeElement.removeAttribute("expert")),s&&(this.reviews=JSON.parse(s.replace(/'/g,'"')),this.elementRef.nativeElement.removeAttribute("reviews")),r&&(this.page=JSON.parse(r.replace(/'/g,'"')),this.elementRef.nativeElement.removeAttribute("page")),o&&(this.pageSize=JSON.parse(o.replace(/'/g,'"')),this.elementRef.nativeElement.removeAttribute("pageSize")),a&&(this.preload=JSON.parse(a.replace(/'/g,'"')),this.elementRef.nativeElement.removeAttribute("preload")),l&&(this.loadMore=JSON.parse(l.replace(/'/g,'"')),this.elementRef.nativeElement.removeAttribute("loadMore"))}getExpertReviews(e,t,n){this.loading(),this.expertService.getExpertReviews(e,t,n).subscribe(e=>{this.reviewsLoading&&(this.reviewsLoading=!1),e&&e.Reviews&&(this.reviewsAllLoaded=!(1==e.HasMoreReviews),this.reviews=this.reviews.concat(e.Reviews.filter(e=>-1===this.reviews.map(e=>e.ReviewId).indexOf(e.ReviewId))),this.page=n),this.loaded()})}loading(){this.reviewsLoaded=!1,this.reviewsLoading=!0,this.reviewsAllLoaded=!1}loaded(){this.reviewsLoaded=!0}showMore(){this.getExpertReviews(this.expertId,this.pageSize,null!=this.page?this.page+1:0)}ngOnInit(){this.expertId=this.expert?this.expert.ExpertIvrId:null,null!=this.page&&this.preload?this.getExpertReviews(this.expertId,this.pageSize,this.page):(this.reviewsLoading=!1,this.loaded()),this.sync()}sync(){this.tileBusService.signalAddReview$.subscribe(e=>{e&&e.ExpertId==this.expertId&&this.reviews.unshift(e)})}}return e.\u0275fac=function(t){return new(t||e)(Dr(Km),Dr(Uo),Dr(zm))},e.\u0275cmp=$e({type:e,selectors:[["reviews-base"]],inputs:{expert:"expert",reviews:"reviews",page:"page",pageSize:"pageSize",preload:"preload",loadMore:"loadMore"},decls:3,vars:3,consts:[["class","ExpertFeedack",4,"ngIf"],["class","generic-loader",4,"ngIf"],["class","reader_button",3,"click",4,"ngIf"],[1,"ExpertFeedack"],["class","ExpertFeedbackItem","itemprop","review","itemscope","itemscope","itemtype","https://schema.org/Review",4,"ngFor","ngForOf"],["itemprop","review","itemscope","itemscope","itemtype","https://schema.org/Review",1,"ExpertFeedbackItem"],["itemprop","name",1,"title"],["itemprop","reviewRating","itemscope","itemscope","itemtype","https://schema.org/Rating"],[1,"icon-star"],["itemprop","ratingValue",1,"numericRating"],["itemprop","description",1,"full_text"],[1,"author_time"],["itemprop","author"],["itemprop","datePublished",3,"content"],[1,"generic-loader"],[1,"icon-wait"],[1,"reader_button",3,"click"],["value","Show more",1,"show_more","green_btn","with_hover"]],template:function(e,t){1&e&&(Ar(0,AS,2,1,"ul",0),Ar(1,PS,2,0,"div",1),Ar(2,DS,2,0,"div",2)),2&e&&(Nr("ngIf",t.reviews),ns(1),Nr("ngIf",t.reviewsLoading),ns(1),Nr("ngIf",t.reviewsLoaded&&!t.reviewsAllLoaded&&t.loadMore))},directives:[uu,au],styles:[""],data:{animation:[rc("InsertRemoveTrigger",[uc(":enter",[lc({opacity:0,transform:"scale(0)"}),oc("0.5s",lc({opacity:1,transform:"scale(1)"}))]),uc(":leave",[oc("0.5s",lc({opacity:0,transform:"scale(0)"}))])]),rc("ShowHideTrigger",[uc(":enter",[lc({opacity:0,transform:"scaleY(0)"}),oc("0.5s",lc({opacity:1,transform:"scaleY(1)"}))]),uc(":leave",[oc("0.5s",lc({opacity:0,transform:"scaleY(0)"}))])])]}}),e})();function RS(e,t){if(1&e&&(Fr(0,"li",5),Fr(1,"div",6),go(2),Mr(),Fr(3,"div",7),Lr(4,"i",8),go(5,"\xa0"),Lr(6,"i",8),go(7,"\xa0"),Lr(8,"i",8),go(9,"\xa0"),Lr(10,"i",8),go(11,"\xa0"),Lr(12,"i",8),go(13,"\xa0"),Fr(14,"span",9),go(15),Mr(),Mr(),Fr(16,"div",10),go(17),Mr(),Fr(18,"div",11),Fr(19,"span",12),go(20),Mr(),go(21,"\xa0"),Fr(22,"span"),Lr(23,"meta",13),go(24),Mr(),Mr(),Mr()),2&e){const e=t.$implicit;ns(2),yo(e.Title),ns(1),_o("rating",e.Rating,""),ns(12),yo(e.Rating),ns(2),yo(e.Text),ns(3),yo(e.AuthorDisplayName),ns(3),Nr("content",e.Created),ns(1),yo(e.Created)}}function FS(e,t){if(1&e&&(Fr(0,"ul",3),Ar(1,RS,25,9,"li",4),Mr()),2&e){const e=Gr();ns(1),Nr("ngForOf",e.reviews)}}function MS(e,t){1&e&&(Fr(0,"div",14),Lr(1,"i",15),Mr())}function LS(e,t){if(1&e){const e=qr();Fr(0,"div",16),Hr("click",function(){return At(e),Gr().showMore()}),Lr(1,"input",17),Mr()}}const BS=[Hx,kS,(()=>{class e extends NS{}return e.\u0275fac=function(){let t;return function(n){return(t||(t=Mn(e)))(n||e)}}(),e.\u0275cmp=$e({type:e,selectors:[["reviews"]],features:[mr],decls:3,vars:3,consts:[["class","ExpertFeedack",4,"ngIf"],["class","generic-loader",4,"ngIf"],["class","reader_button",3,"click",4,"ngIf"],[1,"ExpertFeedack"],["class","ExpertFeedbackItem","itemprop","review","itemscope","itemscope","itemtype","https://schema.org/Review",4,"ngFor","ngForOf"],["itemprop","review","itemscope","itemscope","itemtype","https://schema.org/Review",1,"ExpertFeedbackItem"],["itemprop","name",1,"title"],["itemprop","reviewRating","itemscope","itemscope","itemtype","https://schema.org/Rating"],[1,"icon-star"],["itemprop","ratingValue",1,"numericRating"],["itemprop","description",1,"full_text"],[1,"author_time"],["itemprop","author"],["itemprop","datePublished",3,"content"],[1,"generic-loader"],[1,"icon-wait"],[1,"reader_button",3,"click"],["value","Show more",1,"show_more","green_btn","with_hover"]],template:function(e,t){1&e&&(Ar(0,FS,2,1,"ul",0),Ar(1,MS,2,0,"div",1),Ar(2,LS,2,0,"div",2)),2&e&&(Nr("ngIf",t.reviews),ns(1),Nr("ngIf",t.reviewsLoading),ns(1),Nr("ngIf",t.reviewsLoaded&&!t.reviewsAllLoaded&&t.loadMore))},directives:[uu,au],styles:[""],data:{animation:[rc("InsertRemoveTrigger",[uc(":enter",[lc({opacity:0,transform:"scale(0)"}),oc("0.5s",lc({opacity:1,transform:"scale(1)"}))]),uc(":leave",[oc("0.5s",lc({opacity:0,transform:"scale(0)"}))])]),rc("ShowHideTrigger",[uc(":enter",[lc({opacity:0,transform:"scaleY(0)"}),oc("0.5s",lc({opacity:1,transform:"scaleY(1)"}))]),uc(":leave",[oc("0.5s",lc({opacity:0,transform:"scaleY(0)"}))])])]}}),e})()];let VS=(()=>{class e{constructor(e){this.resolver=e}ngDoBootstrap(e){BS.forEach(t=>{const n=this.resolver.resolveComponentFactory(t),i=document.querySelectorAll(n.selector);i&&i.forEach(n=>{for(;n.firstChild;)n.removeChild(n.firstChild);e.bootstrap(t,n)})})}}return e.\u0275fac=function(t){return new(t||e)(Xn(jo))},e.\u0275mod=Ge({type:e}),e.\u0275inj=pe({providers:[],imports:[[kf,ic]]}),e})();(function(){if(jl)throw new Error("Cannot enable prod mode after platform setup.");ql=!1}
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */)(),tc().bootstrapModule(VS).catch(e=>console.error(e))}},function(e){"use strict";e(e.s=7515)}]);
