PageSourceSearch

https://sso.medics.academy/main-es2018.60186e4551a73b15b00f.js

js medics.academy collected 2026-09-26 05:41:02 UTC 1,741,596 bytes, 1 lines download raw bytes

1(self.webpackChunkmedics_academy_sso=self.webpackChunkmedics_academy_sso||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},7716:function(t,e,n){"use strict";n.d(e,{deG:function(){return ln},tb:function(){return iu},AFp:function(){return Kc},ip1:function(){return $c},CZH:function(){return Wc},hGG:function(){return $u},z2F:function(){return qu},sBO:function(){return Ya},Sil:function(){return fu},_Vd:function(){return _a},EJc:function(){return su},SBq:function(){return Ca},qLn:function(){return ao},vpe:function(){return kc},pfw:function(){return Qc},L6J:function(){return Jc},gxx:function(){return xr},tBr:function(){return Ln},XFs:function(){return E},OlP:function(){return un},zs3:function(){return Fr},ZZ4:function(){return qa},aQg:function(){return ja},soG:function(){return ru},YKP:function(){return ic},v3s:function(){return ju},h0i:function(){return nc},PXZ:function(){return Lu},R0b:function(){return _u},FiY:function(){return Dn},Lbi:function(){return nu},g9A:function(){return eu},n_E:function(){return Ec},Qsj:function(){return Oa},FYo:function(){return wa},JOm:function(){return Un},Tiy:function(){return Ma},q3G:function(){return eo},tp0:function(){return Fn},EAV:function(){return Bu},Rgc:function(){return Ka},dDg:function(){return Ou},DyG:function(){return hn},q4F:function(){return ka},GfV:function(){return Ta},s_b:function(){return rc},ifc:function(){return D},eFA:function(){return Du},G48:function(){return Iu},Gpc:function(){return p},f3M:function(){return En},X6Q:function(){return Au},_c5:function(){return Qu},VLi:function(){return Tu},c2e:function(){return ou},zSh:function(){return Or},wAp:function(){return na},vHH:function(){return m},EiD:function(){return Xi},mCW:function(){return Fi},qzn:function(){return Mi},JVY:function(){return ki},pB0:function(){return Ii},eBb:function(){return Ei},L6k:function(){return Si},LAX:function(){return Ai},cg1:function(){return Xs},Tjo:function(){return Yu},kL8:function(){return ta},yhl:function(){return Ti},dqk:function(){return q},sIi:function(){return Yr},CqO:function(){return ds},QGY:function(){return ls},F4k:function(){return hs},RDi:function(){return Mt},AaK:function(){return l},z3N:function(){return Pi},qOj:function(){return Zr},TTD:function(){return yt},_Bn:function(){return pa},xp6:function(){return Oo},uIk:function(){return Wr},Tol:function(){return Is},Gre:function(){return Ys},ekj:function(){return As},Suo:function(){return jc},Xpm:function(){return W},lG2:function(){return rt},Yz7:function(){return C},cJS:function(){return x},oAB:function(){return nt},Yjl:function(){return st},Y36:function(){return es},_UZ:function(){return ss},BQk:function(){return cs},ynx:function(){return as},qZA:function(){return rs},TgZ:function(){return os},EpF:function(){return us},n5z:function(){return tn},Ikx:function(){return Qs},LFG:function(){return Sn},$8M:function(){return nn},NdJ:function(){return ps},CRH:function(){return zc},kcU:function(){return be},O4$:function(){return ye},oxw:function(){return ys},ALo:function(){return Pc},lcZ:function(){return Mc},Hsn:function(){return Cs},F$t:function(){return vs},Q6J:function(){return ns},s9C:function(){return xs},DdM:function(){return vc},VKq:function(){return Cc},WLB:function(){return xc},iGM:function(){return qc},MAs:function(){return ts},CHM:function(){return Bt},oJD:function(){return no},LSH:function(){return io},B6R:function(){return K},kYT:function(){return it},Udp:function(){return Es},WFA:function(){return fs},d8E:function(){return Js},YNc:function(){return Xr},W1O:function(){return Yc},_uU:function(){return Gs},Oqu:function(){return Bs},hij:function(){return Hs},Gf:function(){return Vc}});var i=n(9765),o=n(5319),r=n(7574),s=n(6682),a=n(8819);function c(t){for(let e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function u(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function l(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(l).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=c({__forward_ref__:c});function p(t){return t.__forward_ref__=p,t.toString=function(){return l(this())},t}function f(t){return g(t)?t():t}function g(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}
1class m extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function _(t){return"string"==typeof t?t:null==t?"":String(t)}function y(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():_(t)}function b(t,e){const n=e?` in ${e}`:"";throw new m("201",`No provider for ${y(t)} found${n}`)}function v(t,e){null==t&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${n} ${i} ${e} <=Actual]`))}(e,t,null,"!=")}function C(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function x(t){return{providers:t.providers||[],imports:t.imports||[]}}function w(t){return O(t,M)||O(t,k)}function O(t,e){return t.hasOwnProperty(e)?t[e]:null}function P(t){return t&&(t.hasOwnProperty(T)||t.hasOwnProperty(S))?t[T]:null}const M=c({"\u0275prov":c}),T=c({"\u0275inj":c}),k=c({ngInjectableDef:c}),S=c({ngInjectorDef:c});var E=(()=>((E=E||{})[E.Default=0]="Default",E[E.Host=1]="Host",E[E.Self=2]="Self",E[E.SkipSelf=4]="SkipSelf",E[E.Optional=8]="Optional",E))();let A;function I(t){const e=A;return A=t,e}function R(t,e,n){const i=w(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&E.Optional?null:void 0!==e?e:void b(l(t),"Injector")}function N(t){return{toString:t}.toString()}var L=(()=>((L=L||{})[L.OnPush=0]="OnPush",L[L.Default=1]="Default",L))(),D=(()=>((D=D||{})[D.Emulated=0]="Emulated",D[D.None=2]="None",D[D.ShadowDom=3]="ShadowDom",D))();const F="undefined"!=typeof globalThis&&globalThis,U="undefined"!=typeof window&&window,Z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,q=F||"undefined"!=typeof global&&global||U||Z,V={},j=[],z=c({"\u0275cmp":c}),G=c({"\u0275dir":c}),B=c({"\u0275pipe":c}),H=c({"\u0275mod":c}),Y=c({"\u0275loc":c}),Q=c({"\u0275fac":c}),J=c({__NG_ELEMENT_ID__:c});let $=0;function W(t){return N(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===L.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||j,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||D.Emulated,id:"c",styles:t.styles||j,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,o=t.features,r=t.pipes;return n.id+=$++,n.inputs=ot(t.inputs,e),n.outputs=ot(t.outputs),o&&o.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(X):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(tt):null,n})}function K(t,e,n){const i=t.\u0275cmp;i.directiveDefs=()=>e.map(X),i.pipeDefs=()=>n.map(tt)}function X(t){return at(t)||function(t){return t[G]||null}(t)}function tt(t){return function(t){return t[B]||null}(t)}const et={};function nt(t){return N(()=>{const e={type:t.type,bootstrap:t.bootstrap||j,declarations:t.declarations||j,imports:t.imports||j,exports:t.exports||j,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(et[t.id]=t.type),e})}function it(t,e){return N(()=>{const n=ct(t,!0);n.declarations=e.declarations||j,n.imports=e.imports||j,n.exports=e.exports||j})}function ot(t,e){if(null==t)return V;const n={};for(const i in t)if(t.hasOwnProperty(i)){let o=t[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),n[o]=i,e&&(e[o]=r)}return n}const rt=W;function st(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function at(t){return t[z]||null}function ct(t,e){const n=t[H]||null;if(!n&&!0===e)throw new Error(`Type ${l(t)} does not have '\u0275mod' property.`);return n}function ut(t){return Array.isArray(t)&&"object"==typeof t[1]}function lt(t){return Array.isArray(t)&&!0===t[1]}function ht(t){return 0!=(8&t.flags)}function dt(t){return 2==(2&t.flags)}function pt(t){return 1==(1&t.flags)}function ft(t){return null!==t.template}function gt(t){return 0!=(512&t[2])}function mt(t,e){return t.hasOwnProperty(Q)?t[Q]:null}class _t{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function yt(){return bt}function bt(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ct),vt}function vt(){const t=wt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===V)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Ct(t,e,n,i){const o=wt(t)||function(t,e){return t[xt]=e}(t,{previous:V,current:null}),r=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],c=s[a];r[a]=new _t(c&&c.currentValue,e,s===V),t[i]=e}yt.ngInherit=!0;const xt="__ngSimpleChanges__";function wt(t){return t[xt]||null}const Ot="http://www.w3.org/2000/svg";let Pt;function Mt(t){Pt=t}function Tt(){return void 0!==Pt?Pt:"undefined"!=typeof document?document:void 0}function kt(t){return!!t.listen}const St={createRenderer:(t,e)=>Tt()};function Et(t){for(;Array.isArray(t);)t=t[0];return t}function At(t,e){return Et(e[t])}function It(t,e){return Et(e[t.index])}function Rt(t,e){return t.data[e]}function Nt(t,e){return t[e]}function Lt(t,e){const n=e[t];return ut(n)?n:n[0]}function Dt(t){return 4==(4&t[2])}function Ft(t){return 128==(128&t[2])}function Ut(t,e){return null==e?null:t[e]}function Zt(t){t[18]=0}function qt(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Vt={lFrame:he(null),bindingsEnabled:!0,isInCheckNoChangesMo
vendor: 4,558 bytes, line 1
1de:!1};function jt(){return Vt.bindingsEnabled}function zt(){return Vt.lFrame.lView}function Gt(){return Vt.lFrame.tView}function Bt(t){return Vt.lFrame.contextLView=t,t[8]}function Ht(){let t=Yt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Yt(){return Vt.lFrame.currentTNode}function Qt(t,e){const n=Vt.lFrame;n.currentTNode=t,n.isParent=e}function Jt(){return Vt.lFrame.isParent}function $t(){Vt.lFrame.isParent=!1}function Wt(){return Vt.isInCheckNoChangesMode}function Kt(t){Vt.isInCheckNoChangesMode=t}function Xt(){const t=Vt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function te(){return Vt.lFrame.bindingIndex++}function ee(t){const e=Vt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function ne(t,e){const n=Vt.lFrame;n.bindingIndex=n.bindingRootIndex=t,ie(e)}function ie(t){Vt.lFrame.currentDirectiveIndex=t}function oe(t){const e=Vt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function re(){return Vt.lFrame.currentQueryIndex}function se(t){Vt.lFrame.currentQueryIndex=t}function ae(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ce(t,e,n){if(n&E.SkipSelf){let i=e,o=t;for(;!(i=i.parent,null!==i||n&E.Host||(i=ae(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;e=i,t=o}const i=Vt.lFrame=le();return i.currentTNode=e,i.lView=t,!0}function ue(t){const e=le(),n=t[1];Vt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function le(){const t=Vt.lFrame,e=null===t?null:t.child;return null===e?he(t):e}function he(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function de(){const t=Vt.lFrame;return Vt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const pe=de;function fe(){const t=de();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ge(){return Vt.lFrame.selectedIndex}function me(t){Vt.lFrame.selectedIndex=t}function _e(){const t=Vt.lFrame;return Rt(t.tView,t.selectedIndex)}function ye(){Vt.lFrame.currentNamespace=Ot}function be(){Vt.lFrame.currentNamespace=null}function ve(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:o,ngAfterViewInit:r,ngAfterViewChecked:s,ngOnDestroy:a}=e;i&&(t.contentHooks||(t.contentHooks=[])).push(-n,i),o&&((t.contentHooks||(t.contentHooks=[])).push(n,o),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,o)),r&&(t.viewHooks||(t.viewHooks=[])).push(-n,r),s&&((t.viewHooks||(t.viewHooks=[])).push(n,s),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,s)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function Ce(t,e,n){Oe(t,e,3,n)}function xe(t,e,n,i){(3&t[2])===n&&Oe(t,e,n,i)}function we(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Oe(t,e,n,i){const o=null!=i?i:-1,r=e.length-1;let s=0;for(let a=void 0!==i?65535&t[18]:0;a<r;a++)if("number"==typeof e[a+1]){if(s=e[a],null!=i&&s>=i)break}else e[a]<0&&(t[18]+=65536),(s<o||-1==o)&&(Pe(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function Pe(t,e,n,i){const o=n[i]<0,r=n[i+1],s=t[o?-n[i]:n[i]];if(o){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{r.call(s)}finally{}}}else try{r.call(s)}finally{}}class Me{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Te(t,e,n){const i=kt(t);let o=0;for(;o<n.length;){const r=n[o];if("number"==typeof r){if(0!==r)break;o++;const s=n[o++],a=n[o++],c=n[o++];i?t.setAttribute(e,a,c,s):e.setAttributeNS(s,a,c)}else{const s=r,a=n[++o];Se(s)?i&&t.setProperty(e,s,a):i?t.setAttribute(e,s,a):e.setAttribute(s,a),o++}}return o}function ke(t){return 3===t||4===t||6===t}function Se(t){return 64===t.charCodeAt(0)}function Ee(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const o=e[i];"number"==typeof o?n=o:0===n||Ae(t,n,o,null,-1===n||2===n?e[++i]:null)}}return t}function Ae(t,e,n,i,o){let r=0,s=t.length;if(-1===e)s=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){s=-1;break}if(n>e){s=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;
1if(e===n){if(null===i)return void(null!==o&&(t[r+1]=o));if(i===t[r+1])return void(t[r+2]=o)}r++,null!==i&&r++,null!==o&&r++}-1!==s&&(t.splice(s,0,e),r=s+1),t.splice(r++,0,n),null!==i&&t.splice(r++,0,i),null!==o&&t.splice(r++,0,o)}function Ie(t){return-1!==t}function Re(t){return 32767&t}function Ne(t,e){let n=function(t){return t>>16}(t),i=e;for(;n>0;)i=i[15],n--;return i}let Le=!0;function De(t){const e=Le;return Le=t,e}let Fe=0;function Ue(t,e){const n=qe(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Ze(i.data,t),Ze(e,null),Ze(i.blueprint,null));const o=Ve(t,e),r=t.injectorIndex;if(Ie(o)){const t=Re(o),n=Ne(o,e),i=n[1].data;for(let o=0;o<8;o++)e[r+o]=n[t+o]|i[t+o]}return e[r+8]=o,r}function Ze(t,e){t.push(0,0,0,0,0,0,0,0,e)}function qe(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Ve(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,o=e;for(;null!==o;){const t=o[1],e=t.type;if(i=2===e?t.declTNode:1===e?o[6]:null,null===i)return-1;if(n++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function je(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=Fe++);const o=255&i;e.data[t+(o>>5)]|=1<<o}(t,e,n)}function ze(t,e,n){if(n&E.Optional)return t;b(e,"NodeInjector")}function Ge(t,e,n,i){if(n&E.Optional&&void 0===i&&(i=null),0==(n&(E.Self|E.Host))){const o=t[9],r=I(void 0);try{return o?o.get(e,i,n&E.Optional):R(e,i,n&E.Optional)}finally{I(r)}}return ze(i,e,n)}function Be(t,e,n,i=E.Default,o){if(null!==t){const r=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(J)?t[J]:void 0;return"number"==typeof e?e>=0?255&e:Ye:e}(n);if("function"==typeof r){if(!ce(e,t,i))return i&E.Host?ze(o,n,i):Ge(e,n,i,o);try{const t=r(i);if(null!=t||i&E.Optional)return t;b(n)}finally{pe()}}else if("number"==typeof r){let o=null,s=qe(t,e),a=-1,c=i&E.Host?e[16][6]:null;for((-1===s||i&E.SkipSelf)&&(a=-1===s?Ve(t,e):e[s+8],-1!==a&&Ke(i,!1)?(o=e[1],s=Re(a),e=Ne(a,e)):s=-1);-1!==s;){const t=e[1];if(We(r,s,t.data)){const t=Qe(s,e,n,o,i,c);if(t!==He)return t}a=e[s+8],-1!==a&&Ke(i,e[1].data[s+8]===c)&&We(r,s,e)?(o=t,s=Re(a),e=Ne(a,e)):s=-1}}}return Ge(e,n,i,o)}const He={};function Ye(){return new Xe(Ht(),zt())}function Qe(t,e,n,i,o,r){const s=e[1],a=s.data[t+8],c=Je(a,s,n,null==i?dt(a)&&Le:i!=s&&0!=(3&a.type),o&E.Host&&r===a);return null!==c?$e(e,s,c,a):He}function Je(t,e,n,i,o){const r=t.providerIndexes,s=e.data,a=1048575&r,c=t.directiveStart,u=r>>20,l=o?a+u:t.directiveEnd;for(let h=i?a:a+u;h<l;h++){const t=s[h];if(h<c&&n===t||h>=c&&t.type===n)return h}if(o){const t=s[c];if(t&&ft(t)&&t.type===n)return c}return null}function $e(t,e,n,i){let o=t[n];const r=e.data;if(function(t){return t instanceof Me}(o)){const s=o;s.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(y(r[n]));const a=De(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?I(s.injectImpl):null;ce(t,i,E.Default);try{o=t[n]=s.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=e.type.prototype;if(i){const i=bt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,o),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==c&&I(c),De(a),s.resolving=!1,pe()}}return o}function We(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function Ke(t,e){return!(t&E.Self||t&E.Host&&e)}class Xe{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,n){return Be(this._tNode,this._lView,t,n,e)}}function tn(t){return N(()=>{const e=t.prototype.constructor,n=e[Q]||en(e),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const t=o[Q]||en(o);if(t&&t!==n)return t;o=Object.getPrototypeOf(o)}return t=>new t})}function en(t){return g(t)?()=>{const e=en(f(t));return e&&e()}:mt(t)}function nn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i<t;){const o=n[i];if(ke(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<t&&"string"==typeof n[i];)i++;else{if(o===e)return n[i+1];i+=2}}}return null}(Ht(),t)}const on="__parameters__",rn="__prop__metadata__";function sn(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}function an(t,e,n){return N(()=>{const i=sn(e);function o(...t){if(this instanceof o)return i.apply(this,t),this;const e=new o(...t);return n.annotation=e,n;function n(t,n,i){const o=t.hasOwnProperty(on)?t[on]:Object.defineProperty(t,on,{value:[]})[on];for(;o.length<=i;)o.push(null);return(o[i]=o[i]||[]).push(e),t}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function cn(t,e,n,i){return N(()=>{const o=sn(e);function r(...t){if(this instanceof r)return o.apply(this,t),this;const e=new r(...t);return function(n,o){const r=n.constructor,s=r.hasOwnProperty(rn)?r[rn]:Object.defineProperty(r,rn,{value:{}})[rn];s[o]=s.hasOwnProperty(o)&&s[o]||[],s[o].unshift(e),i&&i(n,o,...t)}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class un{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=C({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ln=new un("AnalyzeForEntryComponents"),hn=Function;function dn(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let i=t[n];Array.isArray(i)?(e===t&&(e=t.slice(0,n)),dn(i,e)):e!==t&&e.push(i)}return e}function pn(t,e){t.forEach(t=>Array.isArray(t)?pn(t,e):e(t))}function fn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function gn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function mn(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function _n(t,e,n){let i=bn(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let o=t.length;if(o==e)t.push(n,i);else if(1===o)t.push(i,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;)t[o]=t[o-2],o--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function yn(t,e){const n=bn(t,e);if(n>=0)return t[1|n]}function bn(t,e){return function(t,e,n){let i=0,o=t.length>>n;for(;o!==i;){const r=i+(o-i>>1),s=t[r<<n];if(e===s)return r<<n;s>e?o=r:i=r+1}return~(o<<n)}(t,e,1)}const vn={},Cn="__NG_DI_FLAG__",xn="ngTempTokenPath",wn=/\n/gm,On="__source",Pn=c({provide:String,useValue:c});let Mn;function Tn(t){const e=Mn;return Mn=t,e}function kn(t,e=E.Default){if(void 0===Mn)throw new Error("inject() must be called from an injection context");return null===Mn?R(t,void 0,e):Mn.get(t,e&E.Optional?null:void 0,e)}function Sn(t,e=E.Default){return(A||kn)(f(t),e)}const En=Sn;function An(t){const e=[];for(let n=0;n<t.length;n++){const i=f(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t,n=E.Default;for(let e=0;e<i.length;e++){const o=i[e],r=Rn(o);"number"==typeof r?-1===r?t=o.token:n|=r:t=o}e.push(Sn(t,n))}else e.push(Sn(i))}return e}function In(t,e){return t[Cn]=e,t.prototype[Cn]=e,t}function Rn(t){return t[Cn]}function Nn(t,e,n,i){const o=t[xn];throw e[On]&&o.unshift(e[On]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let o=l(e);if(Array.isArray(e))o=e.map(l).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];
vendor: 4,072 bytes, line 1
1t.push(n+":"+("string"==typeof i?JSON.stringify(i):l(i)))}o=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${t.replace(wn,"\n  ")}`}("\n"+t.message,o,n,i),t.ngTokenPath=o,t[xn]=null,t}const Ln=In(an("Inject",t=>({token:t})),-1),Dn=In(an("Optional"),8),Fn=In(an("SkipSelf"),4);var Un=(()=>((Un=Un||{})[Un.Important=1]="Important",Un[Un.DashCase=2]="DashCase",Un))();const Zn="__ngContext__";function qn(t,e){t[Zn]=e}function Vn(t){const e=function(t){return t[Zn]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function jn(t,e){return undefined(t,e)}function zn(t){const e=t[3];return lt(e)?e[3]:e}function Gn(t){return Hn(t[13])}function Bn(t){return Hn(t[4])}function Hn(t){for(;null!==t&&!lt(t);)t=t[4];return t}function Yn(t,e,n,i,o){if(null!=i){let r,s=!1;lt(i)?r=i:ut(i)&&(s=!0,i=i[0]);const a=Et(i);0===t&&null!==n?null==o?ei(e,n,a):ti(e,n,a,o||null,!0):1===t&&null!==n?ti(e,n,a,o||null,!0):2===t?function(t,e,n){const i=ii(t,e);i&&function(t,e,n,i){kt(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,o){const r=n[7];r!==Et(n)&&Yn(e,t,i,r,o);for(let s=10;s<n.length;s++){const o=n[s];pi(o[1],o,t,e,i,r)}}(e,t,r,n,o)}}function Qn(t,e,n){return kt(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Jn(t,e){const n=t[9],i=n.indexOf(e),o=e[3];1024&e[2]&&(e[2]&=-1025,qt(o,-1)),n.splice(i,1)}function $n(t,e){if(t.length<=10)return;const n=10+e,i=t[n];if(i){const o=i[17];null!==o&&o!==t&&Jn(o,i),e>0&&(t[n-1][4]=i[4]);const r=gn(t,10+e);!function(t,e){pi(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(i[1],i);const s=r[19];null!==s&&s.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Wn(t,e){if(!(256&e[2])){const n=e[11];kt(n)&&n.destroyNode&&pi(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Kn(t[1],t);for(;e;){let n=null;if(ut(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ut(e)&&Kn(e[1],e),e=e[3];null===e&&(e=t),ut(e)&&Kn(e[1],e),n=e&&e[4]}e=n}}(e)}}function Kn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof Me)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2){const i=t[e[n]],o=e[n+1];try{o.call(i)}finally{}}else try{e.call(t)}finally{}}}}(t,e),function(t,e){const n=t.cleanup,i=e[7];let o=-1;if(null!==n)for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const t=n[r+1],s="function"==typeof t?t(e):Et(e[t]),a=i[o=n[r+2]],c=n[r+3];"boolean"==typeof c?s.removeEventListener(n[r],a,c):c>=0?i[o=c]():i[o=-c].unsubscribe(),r+=2}else{const t=i[o=n[r+1]];n[r].call(t)}if(null!==i){for(let t=o+1;t<i.length;t++)i[t]();e[7]=null}}(t,e),1===e[1].type&&kt(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&lt(e[3])){n!==e[3]&&Jn(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function Xn(t,e,n){return function(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const e=t.data[i.directiveStart].encapsulation;if(e===D.None||e===D.Emulated)return null}return It(i,n)}(t,e.parent,n)}function ti(t,e,n,i,o){kt(t)?t.insertBefore(e,n,i,o):e.insertBefore(n,i,o)}function ei(t,e,n){kt(t)?t.appendChild(e,n):e.appendChild(n)}function ni(t,e,n,i,o){null!==i?ti(t,e,n,i,o):ei(t,e,n)}function ii(t,e){return kt(t)?t.parentNode(e):e.parentNode}function oi(t,e,n){return ai(t,e,n)}let ri,si,ai=function(t,e,n){return 40&t.type?It(t,n):null};function ci(t,e,n,i){const o=Xn(t,i,e),r=e[11],s=oi(i.parent||e[6],i,e);if(null!=o)if(Array.isArray(n))for(let a=0;a<n.length;a++)ni(r,o,n[a],s,!1);else ni(r,o,n,s,!1)}function ui(t,e){if(null!==e){const n=e.type;if(3&n)return It(e,t);if(4&n)return hi(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return ui(t,n);{const n=t[e.index];return lt(n)?hi(-1,n):Et(n)}}if(32&n)return jn(e,t)()||Et(t[e.index]);{const n=li(t,e);return null!==n?Array.isArray(n)?n[0]:ui(zn(t[16]),n):ui(t,e.next)}}return null}function li(t,e){return null!==e?t[16][6].projection[e.projection]:null}function hi(t,e){const n=10+t+1;
vendor: 4,598 bytes, line 1
1if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return ui(t,i)}return e[7]}function di(t,e,n,i,o,r,s){for(;null!=n;){const a=i[n.index],c=n.type;if(s&&0===e&&(a&&qn(Et(a),i),n.flags|=4),64!=(64&n.flags))if(8&c)di(t,e,n.child,i,o,r,!1),Yn(e,t,o,a,r);else if(32&c){const s=jn(n,i);let c;for(;c=s();)Yn(e,t,o,c,r);Yn(e,t,o,a,r)}else 16&c?fi(t,e,i,n,o,r):Yn(e,t,o,a,r);n=s?n.projectionNext:n.next}}function pi(t,e,n,i,o,r){di(n,i,t.firstChild,e,o,r,!1)}function fi(t,e,n,i,o,r){const s=n[16],a=s[6].projection[i.projection];if(Array.isArray(a))for(let c=0;c<a.length;c++)Yn(e,t,o,a[c],r);else di(t,e,a,s[3],o,r,!0)}function gi(t,e,n){kt(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function mi(t,e,n){kt(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function _i(t){var e;return(null===(e=function(){if(void 0===ri&&(ri=null,q.trustedTypes))try{ri=q.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return ri}())||void 0===e?void 0:e.createHTML(t))||t}function yi(t){var e;return(null===(e=function(){if(void 0===si&&(si=null,q.trustedTypes))try{si=q.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return si}())||void 0===e?void 0:e.createHTML(t))||t}class bi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class vi extends bi{getTypeName(){return"HTML"}}class Ci extends bi{getTypeName(){return"Style"}}class xi extends bi{getTypeName(){return"Script"}}class wi extends bi{getTypeName(){return"URL"}}class Oi extends bi{getTypeName(){return"ResourceURL"}}function Pi(t){return t instanceof bi?t.changingThisBreaksApplicationSecurity:t}function Mi(t,e){const n=Ti(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Ti(t){return t instanceof bi&&t.getTypeName()||null}function ki(t){return new vi(t)}function Si(t){return new Ci(t)}function Ei(t){return new xi(t)}function Ai(t){return new wi(t)}function Ii(t){return new Oi(t)}class Ri{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(_i(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Ni{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=_i(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=_i(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).name;("xmlns:ns1"===n||0===n.indexOf("ns1:"))&&t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Li=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Di=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Fi(t){return(t=String(t)).match(Li)||t.match(Di)?t:"unsafe:"+t}function Ui(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Zi(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const qi=Ui("area,br,col,hr,img,wbr"),Vi=Ui("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ji=Ui("rp,rt"),zi=Zi(qi,Zi(Vi,Ui("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Zi(ji,Ui("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Zi(ji,Vi)),Gi=Ui("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Bi=Ui("srcset"),Hi=Zi(Gi,Bi,Ui("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
1olspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ui("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Yi=Ui("script,style,template");class Qi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!zi.hasOwnProperty(e))return this.sanitizedSomething=!0,!Yi.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let o=0;o<n.length;o++){const t=n.item(o),e=t.name,r=e.toLowerCase();if(!Hi.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let s=t.value;Gi[r]&&(s=Fi(s)),Bi[r]&&(i=s,s=(i=String(i)).split(",").map(t=>Fi(t.trim())).join(", ")),this.buf.push(" ",e,'="',Wi(s),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();zi.hasOwnProperty(e)&&!qi.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Wi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Ji=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$i=/([^\#-~ |!])/g;function Wi(t){return t.replace(/&/g,"&amp;").replace(Ji,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace($i,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ki;function Xi(t,e){let n=null;try{Ki=Ki||function(t){const e=new Ni(t);return function(){try{return!!(new window.DOMParser).parseFromString(_i(""),"text/html")}catch(t){return!1}}()?new Ri(e):e}(t);let i=e?String(e):"";n=Ki.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=n.innerHTML,n=Ki.getInertBodyElement(i)}while(i!==r);return _i((new Qi).sanitizeChildren(to(n)||n))}finally{if(n){const t=to(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function to(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var eo=(()=>((eo=eo||{})[eo.NONE=0]="NONE",eo[eo.HTML=1]="HTML",eo[eo.STYLE=2]="STYLE",eo[eo.SCRIPT=3]="SCRIPT",eo[eo.URL=4]="URL",eo[eo.RESOURCE_URL=5]="RESOURCE_URL",eo))();function no(t){const e=oo();return e?yi(e.sanitize(eo.HTML,t)||""):Mi(t,"HTML")?yi(Pi(t)):Xi(Tt(),_(t))}function io(t){const e=oo();return e?e.sanitize(eo.URL,t)||"":Mi(t,"URL")?Pi(t):Fi(_(t))}function oo(){const t=zt();return t&&t[12]}function ro(t){return t.ngOriginalError}function so(t,...e){t.error(...e)}class ao{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=(o=t)&&o.ngErrorLogger||so;var o;i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?t.ngDebugContext||this._findContext(ro(t)):null}_findOriginalError(t){let e=t&&ro(t);for(;e&&ro(e);)e=ro(e);return e||null}}const co=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(q))();function uo(t){return t instanceof Function?t():t}function lo(t,e,n){let i=t.length;for(;;){const o=t.indexOf(e,n);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const n=e.length;if(o+n===i||t.charCodeAt(o+n)<=32)return o}n=o+1}}const ho="ng-template";function po(t,e,n){let i=0;for(;i<t.length;){let o=t[i++];if(n&&"class"===o){if(o=t[i],-1!==lo(o.toLowerCase(),e,0))return!0}else if(1===o){for(;i<t.length&&"string"==typeof(o=t[i++]);
vendor: 7,600 bytes, line 1
1)if(o.toLowerCase()===e)return!0;return!1}}return!1}function fo(t){return 4===t.type&&t.value!==ho}function go(t,e,n){return e===(4!==t.type||n?t.value:ho)}function mo(t,e,n){let i=4;const o=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(ke(t[e]))return e;return t.length}(o);let s=!1;for(let a=0;a<e.length;a++){const c=e[a];if("number"!=typeof c){if(!s)if(4&i){if(i=2|1&i,""!==c&&!go(t,c,n)||""===c&&1===e.length){if(_o(i))return!1;s=!0}}else{const u=8&i?c:e[++a];if(8&i&&null!==t.attrs){if(!po(t.attrs,u,n)){if(_o(i))return!1;s=!0}continue}const l=yo(8&i?"class":c,o,fo(t),n);if(-1===l){if(_o(i))return!1;s=!0;continue}if(""!==u){let t;t=l>r?"":o[l+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==lo(e,u,0)||2&i&&u!==t){if(_o(i))return!1;s=!0}}}}else{if(!s&&!_o(i)&&!_o(c))return!1;if(s&&_o(c))continue;s=!1,i=c|1&i}}return _o(i)||s}function _o(t){return 0==(1&t)}function yo(t,e,n,i){if(null===e)return-1;let o=0;if(i||!n){let n=!1;for(;o<e.length;){const i=e[o];if(i===t)return o;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++o];for(;"string"==typeof t;)t=e[++o];continue}if(4===i)break;if(0===i){o+=4;continue}}o+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function bo(t,e,n=!1){for(let i=0;i<e.length;i++)if(mo(t,e[i],n))return!0;return!1}function vo(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function Co(t,e){return t?":not("+e.trim()+")":e}function xo(t){let e=t[0],n=1,i=2,o="",r=!1;for(;n<t.length;){let s=t[n];if("string"==typeof s)if(2&i){const e=t[++n];o+="["+s+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?o+="."+s:4&i&&(o+=" "+s);else""!==o&&!_o(s)&&(e+=Co(r,o),o=""),i=s,r=r||!_o(i);n++}return""!==o&&(e+=Co(r,o)),e}const wo={};function Oo(t){Po(Gt(),zt(),ge()+t,Wt())}function Po(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ce(e,i,n)}else{const i=t.preOrderHooks;null!==i&&xe(e,i,0,n)}me(n)}function Mo(t,e){return t<<17|e<<2}function To(t){return t>>17&32767}function ko(t){return 2|t}function So(t){return(131068&t)>>2}function Eo(t,e){return-131069&t|e<<2}function Ao(t){return 1|t}function Io(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const o=n[i],r=n[i+1];if(-1!==r){const n=t.data[r];se(o),n.contentQueries(2,e[r],r)}}}function Ro(t,e,n,i,o,r,s,a,c,u){const l=e.blueprint.slice();return l[0]=o,l[2]=140|i,Zt(l),l[3]=l[15]=t,l[8]=n,l[10]=s||t&&t[10],l[11]=a||t&&t[11],l[12]=c||t&&t[12]||null,l[9]=u||t&&t[9]||null,l[6]=r,l[16]=2==e.type?t[16]:l,l}function No(t,e,n,i,o){let r=t.data[e];if(null===r)r=function(t,e,n,i,o){const r=Yt(),s=Jt(),a=t.data[e]=function(t,e,n,i,o,r){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?r:r&&r.parent,n,e,i,o);return null===t.firstChild&&(t.firstChild=a),null!==r&&(s?null==r.child&&null!==a.parent&&(r.child=a):null===r.next&&(r.next=a)),a}(t,e,n,i,o),Vt.lFrame.inI18n&&(r.flags|=64);else if(64&r.type){r.type=n,r.value=i,r.attrs=o;const t=function(){const t=Vt.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();r.injectorIndex=null===t?-1:t.injectorIndex}return Qt(r,!0),r}function Lo(t,e,n,i){if(0===n)return-1;const o=e.length;for(let r=0;r<n;r++)e.push(i),t.blueprint.push(i),t.data.push(null);return o}function Do(t,e,n){ue(e);try{const i=t.viewQuery;null!==i&&pr(1,i,n);const o=t.template;null!==o&&Zo(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Io(t,e),t.staticViewQueries&&pr(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)cr(t,e[n])}(e,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{e[2]&=-5,fe()}}function Fo(t,e,n,i){const o=e[2];if(256==(256&o))return;ue(e);const r=Wt();try{Zt(e),function(t){Vt.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==n&&Zo(t,e,n,2,i);const s=3==(3&o);if(!r)if(s){const n=t.preOrderCheckHooks;null!==n&&Ce(e,n,null)}else{const n=t.preOrderHooks;null!==n&&xe(e,n,0,null),we(e,0)}if(function(t){for(let e=Gn(t);null!==e;e=Bn(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&qt(i,1),n[2]|=1024}}}(e),function(t){for(let e=Gn(t);null!==e;e=Bn(e))for(let t=10;t<e.length;t++){const n=e[t],i=n[1];Ft(n)&&Fo(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&Io(t,e),!r)if(s){const n=t.contentCheckHooks;null!==n&&Ce(e,n)}else{const n=t.contentHooks;null!==n&&xe(e,n,1),we(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let t=0;t<n.length;t++){const i=n[t];if(i<0)me(~i);else{const o=i,r=n[++t],s=n[++t];ne(r,o),s(2,e[o])}}}finally{me(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)sr(t,e[n])}(e,a);const c=t.viewQuery;if(null!==c&&pr(2,c,i),!r)if(s){const n=t.viewCheckHooks;null!==n&&Ce(e,n)}else{const n=t.viewHooks;null!==n&&xe(e,n,2),we(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,qt(e[3],-1))}finally{fe()}}function Uo(t,e,n,i){const o=e[10],r=!Wt(),s=Dt(e);try{r&&!s&&o.begin&&o.begin(),s&&Do(t,e,i),Fo(t,e,n,i)}finally{r&&!s&&o.end&&o.end()}}function Zo(t,e,n,i,o){const r=ge(),s=2&i;try{me(-1),s&&e.length>20&&Po(t,e,20,Wt()),n(i,o)}finally{me(r)}}function qo(t,e,n){if(ht(e)){const i=e.directiveEnd;for(let o=e.directiveStart;o<i;o++){const e=t.data[o];e.contentQueries&&e.contentQueries(1,n[o],o)}}}function Vo(t,e,n){!jt()||(function(t,e,n,i){const o=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||Ue(n,e),qn(i,e);const s=n.initialInputs;for(let a=o;a<r;a++){const i=t.data[a],r=ft(i);r&&er(e,n,i);const c=$e(e,t,a,n);qn(c,e),null!==s&&ir(0,a-o,c,i,0,s),r&&(Lt(n.index,e)[8]=c)}}(t,e,n,It(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,o=n.directiveEnd,r=n.index,s=Vt.lFrame.currentDirectiveIndex;try{me(r);for(let n=i;n<o;n++){const i=t.data[n],o=e[n];ie(n),(null!==i.hostBindings||0!==i.hostVars||null!==i.hostAttrs)&&$o(i,o)}}finally{me(-1),ie(s)}}(t,e,n))}function jo(t,e,n=It){const i=e.localNames;if(null!==i){let o=e.index+1;for(let r=0;r<i.length;r+=2){const s=i[r+1],a=-1===s?n(e,t):t[s];t[o++]=a}}}function zo(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Go(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Go(t,e,n,i,o,r,s,a,c,u){const l=20+i,h=l+o,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:wo);return n}(l,h),p="function"==typeof u?u():u;return d[1]={type:t,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:e,data:d.slice().fill(null,l),bindingStartIndex:l,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 s?s():s,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1}
vendor: 7,160 bytes, line 1
1}function Bo(t,e,n,i){const o=gr(e);null===n?o.push(i):(o.push(n),t.firstCreatePass&&mr(t).push(i,o.length-1))}function Ho(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const o=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,o):n[i]=[e,o]}return n}function Yo(t,e,n,i,o,r,s,a){const c=It(e,n);let u,l=e.inputs;!a&&null!=l&&(u=l[i])?(br(t,n,u,i,o),dt(e)&&function(t,e){const n=Lt(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(i=function(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=s?s(o,e.value||"",i):o,kt(r)?r.setProperty(c,i,o):Se(i)||(c.setProperty?c.setProperty(i,o):c[i]=o))}function Qo(t,e,n,i){let o=!1;if(jt()){const r=function(t,e,n){const i=t.directiveRegistry;let o=null;if(i)for(let r=0;r<i.length;r++){const s=i[r];bo(n,s.selectors,!1)&&(o||(o=[]),je(Ue(n,e),t,s.type),ft(s)?(Wo(t,n),o.unshift(s)):o.push(s))}return o}(t,e,n),s=null===i?null:{"":-1};if(null!==r){o=!0,Xo(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}let i=!1,a=!1,c=Lo(t,e,r.length,null);for(let o=0;o<r.length;o++){const u=r[o];n.mergedAttrs=Ee(n.mergedAttrs,u.hostAttrs),tr(t,n,e,c,u),Ko(c,u,s),null!==u.contentQueries&&(n.flags|=8),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(n.flags|=128);const l=u.type.prototype;!i&&(l.ngOnChanges||l.ngOnInit||l.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),i=!0),!a&&(l.ngOnChanges||l.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),a=!0),c++}!function(t,e){const n=e.directiveEnd,i=t.data,o=e.attrs,r=[];let s=null,a=null;for(let c=e.directiveStart;c<n;c++){const t=i[c],n=t.inputs,u=null===o||fo(e)?null:or(n,o);r.push(u),s=Ho(n,c,s),a=Ho(t.outputs,c,a)}null!==s&&(s.hasOwnProperty("class")&&(e.flags|=16),s.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=s,e.outputs=a}(t,n)}s&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const o=n[e[t+1]];if(null==o)throw new m("301",`Export of name '${e[t+1]}' not found!`);i.push(e[t],o)}}}(n,i,s)}return n.mergedAttrs=Ee(n.mergedAttrs,n.attrs),o}function Jo(t,e,n,i,o,r){const s=r.hostBindings;if(s){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const r=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,o,s)}}function $o(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Wo(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Ko(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;ft(e)&&(n[""]=t)}}function Xo(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function tr(t,e,n,i,o){t.data[i]=o;const r=o.factory||(o.factory=mt(o.type)),s=new Me(r,ft(o),null);t.blueprint[i]=s,n[i]=s,Jo(t,e,0,i,Lo(t,n,o.hostVars,wo),o)}function er(t,e,n){const i=It(e,t),o=zo(n),r=t[10],s=ur(t,Ro(t,o,null,n.onPush?64:16,i,e,r,r.createRenderer(i,n),null,null));t[e.index]=s}function nr(t,e,n,i,o,r){const s=It(t,e);!function(t,e,n,i,o,r,s){if(null==r)kt(t)?t.removeAttribute(e,o,n):e.removeAttribute(o);else{const a=null==s?_(r):s(r,i||"",o);kt(t)?t.setAttribute(e,o,a,n):n?e.setAttributeNS(n,o,a):e.setAttribute(o,a)}}(e[11],s,r,t.value,n,i,o)}function ir(t,e,n,i,o,r){const s=r[e];if(null!==s){const t=i.setInput;for(let e=0;e<s.length;){const o=s[e++],r=s[e++],a=s[e++];null!==t?i.setInput(n,a,o,r):n[r]=a}}}function or(t,e){let n=null,i=0;for(;i<e.length;){const o=e[i];if(0!==o)if(5!==o){if("number"==typeof o)break;t.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,t[o],e[i+1])),i+=2}else i+=2;else i+=4}return n}function rr(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function sr(t,e){const n=Lt(e,t);if(Ft(n)){const t=n[1];80&n[2]?Fo(t,n,t.template,n[8]):n[5]>0&&ar(n)}}function ar(t){for(let n=Gn(t);null!==n;n=Bn(n))for(let t=10;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];Fo(t,e,t.template,e[8])}else e[5]>0&&ar(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const i=Lt(e[n],t);Ft(i)&&i[5]>0&&ar(i)}}function cr(t,e){const n=Lt(e,t),i=n[1];(function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])})(i,n),Do(i,n,n[8])}function ur(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function lr(t){for(;t;){t[2]|=64;const e=zn(t);if(gt(t)&&!e)return t;t=e}return null}function hr(t,e,n){const i=e[10];i.begin&&i.begin();try{Fo(t,e,t.template,n)}catch(o){throw yr(e,o),o}finally{i.end&&i.end()}}function dr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=Vn(n),o=i[1];Uo(o,i,o.template,n)}}(t[8])}function pr(t,e,n){se(0),e(t,n)}const fr=(()=>Promise.resolve(null))();function gr(t){return t[7]||(t[7]=[])}function mr(t){return t.cleanup||(t.cleanup=[])}function _r(t,e,n){return(null===t||ft(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function yr(t,e){const n=t[9],i=n?n.get(ao,null):null;i&&i.handleError(e)}function br(t,e,n,i,o){for(let r=0;r<n.length;){const s=n[r++],a=n[r++],c=e[s],u=t.data[s];null!==u.setInput?u.setInput(c,o,i,a):c[a]=o}}function vr(t,e,n){const i=At(e,t);!function(t,e,n){kt(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}function Cr(t,e,n){let i=n?t.styles:null,o=n?t.classes:null,r=0;if(null!==e)for(let s=0;s<e.length;s++){const t=e[s];"number"==typeof t?r=t:1==r?o=h(o,t):2==r&&(i=h(i,t+": "+e[++s]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=o:t.classesWithoutHost=o}const xr=new un("INJECTOR",-1);class wr{get(t,e=vn){if(e===vn){const e=new Error(`NullInjectorError: No provider for ${l(t)}!`);throw e.name="NullInjectorError",e}return e}}const Or=new un("Set Injector scope."),Pr={},Mr={};let Tr;function kr(){return void 0===Tr&&(Tr=new wr),Tr}function Sr(t,e=null,n=null,i){return new Er(t,n,e||kr(),i)}class Er{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];e&&pn(e,n=>this.processProvider(n,t,e)),pn([t],t=>this.processInjectorType(t,[],o)),this.records.set(xr,Rr(void 0,this));const r=this.records.get(Or);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:l(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=vn,n=E.Default){this.assertNotDestroyed();const i=Tn(this),o=I(void 0);try{if(!(n&E.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof un)&&w(t);e=n&&this.injectableDefInScope(n)?Rr(Ar(t),Pr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&E.Self?kr():this.parent).get(t,e=n&E.Optional&&e===vn?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[xn]=s[xn]||[]).unshift(l(t)),i)throw s;return Nn(s,t,"R3InjectorError",this.source)}throw s}finally{I(o),Tn(i)}var r}
vendor: 5,639 bytes, line 1
1_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(l(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=f(t)))return!1;let i=P(t);const o=null==i&&t.ngModule||void 0,r=void 0===o?t:o,s=-1!==n.indexOf(r);if(void 0!==o&&(i=P(o)),null==i)return!1;if(null!=i.imports&&!s){let t;n.push(r);try{pn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];pn(i,t=>this.processProvider(t,n,i||j))}}this.injectorDefTypes.add(r);const a=mt(r)||(()=>new r);this.records.set(r,Rr(a,Pr));const c=i.providers;if(null!=c&&!s){const e=t;pn(c,t=>this.processProvider(t,e,c))}return void 0!==o&&void 0!==t.providers}processProvider(t,e,n){let i=Lr(t=f(t))?t:f(t&&t.provide);const o=(r=t,Nr(r)?Rr(void 0,r.useValue):Rr(Ir(r),Pr));var r;if(Lr(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Rr(void 0,Pr,!0),e.factory=()=>An(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,o)}hydrate(t,e){return e.value===Pr&&(e.value=Mr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value;var n}injectableDefInScope(t){if(!t.providedIn)return!1;const e=f(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Ar(t){const e=w(t),n=null!==e?e.factory:mt(t);if(null!==n)return n;if(t instanceof un)throw new Error(`Token ${l(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=mn(e,"?");throw new Error(`Can't resolve all parameters for ${l(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[M]||t[k]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Ir(t,e,n){let i;if(Lr(t)){const e=f(t);return mt(e)||Ar(e)}if(Nr(t))i=()=>f(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...An(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Sn(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return mt(e)||Ar(e);i=()=>new e(...An(t.deps))}return i}function Rr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Nr(t){return null!==t&&"object"==typeof t&&Pn in t}function Lr(t){return"function"==typeof t}const Dr=function(t,e,n){return function(t,e=null,n=null,i){const o=Sr(t,e,n,i);return o._resolveInjectorDefTypes(),o}({name:n},e,t,n)};let Fr=(()=>{class t{static create(t,e){return Array.isArray(t)?Dr(t,e,""):Dr(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=vn,t.NULL=new wr,t.\u0275prov=C({token:t,providedIn:"any",factory:()=>Sn(xr)}),t.__NG_ELEMENT_ID__=-1,t})();function Ur(t,e){ve(Vn(t)[1],Ht())}function Zr(t){let e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const i=[t];for(;e;){let o;if(ft(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");o=e.\u0275dir}if(o){if(n){i.push(o);const e=t;e.inputs=qr(t.inputs),e.declaredInputs=qr(t.declaredInputs),e.outputs=qr(t.outputs);const n=o.hostBindings;n&&zr(t,n);const r=o.viewQuery,s=o.contentQueries;if(r&&Vr(t,r),s&&jr(t,s),u(t.inputs,o.inputs),u(t.declaredInputs,o.declaredInputs),u(t.outputs,o.outputs),ft(o)&&o.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(o.data.animation)}}const e=o.features;if(e)for(let i=0;i<e.length;i++){const o=e[i];o&&o.ngInherit&&o(t),o===Zr&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const o=t[i];o.hostVars=e+=o.hostVars,o.hostAttrs=Ee(o.hostAttrs,n=Ee(n,o.hostAttrs))}}(i)}function qr(t){return t===V?{}:t===j?[]:t}function Vr(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function jr(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,o)=>{e(t,i,o),n(t,i,o)}:e}function zr(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let Gr=null;function Br(){if(!Gr){const t=q.Symbol;if(t&&t.iterator)Gr=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Gr=n)}}}return Gr}class Hr{constructor(t){this.wrapped=t}static wrap(t){return new Hr(t)}static unwrap(t){return Hr.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Hr}}function Yr(t){return!!Qr(t)&&(Array.isArray(t)||!(t instanceof Map)&&Br()in t)}function Qr(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Jr(t,e,n){return t[e]=n}function $r(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Wr(t,e,n,i){const o=zt();return $r(o,te(),e)&&(Gt(),nr(_e(),o,t,e,n,i)),Wr}function Kr(t,e,n,i){return $r(t,te(),n)?e+_(n)+i:wo}function Xr(t,e,n,i,o,r,s,a){const c=zt(),u=Gt(),l=t+20,h=u.firstCreatePass?function(t,e,n,i,o,r,s,a,c){const u=e.consts,l=No(e,t,4,s||null,Ut(u,a));Qo(e,n,l,Ut(u,c)),ve(e,l);
vendor: 10,085 bytes, line 1
1const h=l.tViews=Go(2,l,i,o,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u);return null!==e.queries&&(e.queries.template(e,l),h.queries=e.queries.embeddedTView(l)),l}(l,u,c,e,n,i,o,r,s):u.data[l];Qt(h,!1);const d=c[11].createComment("");ci(u,c,d,h),qn(d,c),ur(c,c[l]=rr(d,c,d,h)),pt(h)&&Vo(u,c,h),null!=s&&jo(c,h,a)}function ts(t){return Nt(Vt.lFrame.contextLView,20+t)}function es(t,e=E.Default){const n=zt();return null===n?Sn(t,e):Be(Ht(),n,f(t),e)}function ns(t,e,n){const i=zt();return $r(i,te(),e)&&Yo(Gt(),_e(),i,t,e,i[11],n,!1),ns}function is(t,e,n,i,o){const r=o?"class":"style";br(t,n,e.inputs[r],r,i)}function os(t,e,n,i){const o=zt(),r=Gt(),s=20+t,a=o[11],c=o[s]=Qn(a,e,Vt.lFrame.currentNamespace),u=r.firstCreatePass?function(t,e,n,i,o,r,s){const a=e.consts,c=No(e,t,2,o,Ut(a,r));return Qo(e,n,c,Ut(a,s)),null!==c.attrs&&Cr(c,c.attrs,!1),null!==c.mergedAttrs&&Cr(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(s,r,o,0,e,n,i):r.data[s];Qt(u,!0);const l=u.mergedAttrs;null!==l&&Te(a,c,l);const h=u.classes;null!==h&&mi(a,c,h);const d=u.styles;null!==d&&gi(a,c,d),64!=(64&u.flags)&&ci(r,o,c,u),0===Vt.lFrame.elementDepthCount&&qn(c,o),Vt.lFrame.elementDepthCount++,pt(u)&&(Vo(r,o,u),qo(r,u,o)),null!==i&&jo(o,u)}function rs(){let t=Ht();Jt()?$t():(t=t.parent,Qt(t,!1));const e=t;Vt.lFrame.elementDepthCount--;const n=Gt();n.firstCreatePass&&(ve(n,t),ht(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&is(n,e,zt(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&is(n,e,zt(),e.stylesWithoutHost,!1)}function ss(t,e,n,i){os(t,e,n,i),rs()}function as(t,e,n){const i=zt(),o=Gt(),r=t+20,s=o.firstCreatePass?function(t,e,n,i,o){const r=e.consts,s=Ut(r,i),a=No(e,t,8,"ng-container",s);return null!==s&&Cr(a,s,!0),Qo(e,n,a,Ut(r,o)),null!==e.queries&&e.queries.elementStart(e,a),a}(r,o,i,e,n):o.data[r];Qt(s,!0);const a=i[r]=i[11].createComment("");ci(o,i,a,s),qn(a,i),pt(s)&&(Vo(o,i,s),qo(o,s,i)),null!=n&&jo(i,s)}function cs(){let t=Ht();const e=Gt();Jt()?$t():(t=t.parent,Qt(t,!1)),e.firstCreatePass&&(ve(e,t),ht(t)&&e.queries.elementEnd(t))}function us(){return zt()}function ls(t){return!!t&&"function"==typeof t.then}function hs(t){return!!t&&"function"==typeof t.subscribe}const ds=hs;function ps(t,e,n,i){const o=zt(),r=Gt(),s=Ht();return gs(r,o,o[11],s,t,e,!!n,i),ps}function fs(t,e){const n=Ht(),i=zt(),o=Gt();return gs(o,i,_r(oe(o.data),n,i),n,t,e,!1),fs}function gs(t,e,n,i,o,r,s,a){const c=pt(i),u=t.firstCreatePass&&mr(t),l=e[8],h=gr(e);let d=!0;if(3&i.type||a){const p=It(i,e),f=a?a(p):p,g=h.length,m=a?t=>a(Et(t[i.index])):i.index;if(kt(n)){let s=null;if(!a&&c&&(s=function(t,e,n,i){const o=t.cleanup;if(null!=o)for(let r=0;r<o.length-1;r+=2){const t=o[r];if(t===n&&o[r+1]===i){const t=e[7],n=o[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,o,i.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=r,s.__ngLastListenerFn__=r,d=!1;else{r=_s(i,e,l,r,!1);const t=n.listen(f,o,r);h.push(r,t),u&&u.push(o,m,g,g+1)}}else r=_s(i,e,l,r,!0),f.addEventListener(o,r,s),h.push(r),u&&u.push(o,m,g,s)}else r=_s(i,e,l,r,!1);const p=i.outputs;let f;if(d&&null!==p&&(f=p[o])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(r),s=h.length;h.push(r,t),u&&u.push(o,i.index,s,-(s+1))}}}function ms(t,e,n,i){try{return!1!==n(i)}catch(o){return yr(t,o),!1}}function _s(t,e,n,i,o){return function n(r){if(r===Function)return i;const s=2&t.flags?Lt(t.index,e):e;0==(32&e[2])&&lr(s);let a=ms(e,0,i,r),c=n.__ngNextListenerFn__;for(;c;)a=ms(e,0,c,r)&&a,c=c.__ngNextListenerFn__;return o&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function ys(t=1){return function(t){return(Vt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Vt.lFrame.contextLView))[8]}(t)}function bs(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let o=0;o<e.length;o++){const r=e[o];if("*"!==r){if(null===i?bo(t,r,!0):vo(i,r))return o}else n=o}return n}function vs(t){const e=zt()[16][6];if(!e.projection){const n=e.projection=mn(t?t.length:1,null),i=n.slice();let o=e.child;for(;null!==o;){const e=t?bs(o,t):0;null!==e&&(i[e]?i[e].projectionNext=o:n[e]=o,i[e]=o),o=o.next}}}function Cs(t,e=0,n){const i=zt(),o=Gt(),r=No(o,20+t,16,null,n||null);null===r.projection&&(r.projection=e),$t(),64!=(64&r.flags)&&function(t,e,n){fi(e[11],0,e,n,Xn(t,n,e),oi(n.parent||e[6],n,e))}(o,i,r)}function xs(t,e,n){return ws(t,"",e,"",n),xs}function ws(t,e,n,i,o){const r=zt(),s=Kr(r,e,n,i);return s!==wo&&Yo(Gt(),_e(),r,t,s,r[11],o,!1),ws}function Os(t,e,n,i,o){const r=t[n+1],s=null===e;let a=i?To(r):So(r),c=!1;for(;0!==a&&(!1===c||s);){const n=t[a+1];Ps(t[a],e)&&(c=!0,t[a+1]=i?Ao(n):ko(n)),a=i?To(n):So(n)}c&&(t[n+1]=i?ko(r):Ao(r))}function Ps(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&bn(t,e)>=0}const Ms={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ts(t){return t.substring(Ms.key,Ms.keyEnd)}function ks(t,e){const n=Ms.textEnd;return n===e?-1:(e=Ms.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,Ms.key=e,n),Ss(t,e,n))}function Ss(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Es(t,e,n){return Ns(t,e,n,!1),Es}function As(t,e){return Ns(t,e,null,!0),As}function Is(t){Ls(_n,Rs,t,!0)}function Rs(t,e){for(let n=function(t){return function(t){Ms.key=0,Ms.keyEnd=0,Ms.value=0,Ms.valueEnd=0,Ms.textEnd=t.length}(t),ks(t,Ss(t,0,Ms.textEnd))}(e);n>=0;n=ks(e,n))_n(t,Ts(e),!0)}function Ns(t,e,n,i){const o=zt(),r=Gt(),s=ee(2);r.firstUpdatePass&&Fs(r,t,s,i),e!==wo&&$r(o,s,e)&&qs(r,r.data[ge()],o,o[11],t,o[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=l(Pi(t)))),t}(e,n),i,s)}function Ls(t,e,n,i){const o=Gt(),r=ee(2);o.firstUpdatePass&&Fs(o,null,r,i);const s=zt();if(n!==wo&&$r(s,r,n)){const a=o.data[ge()];if(zs(a,i)&&!Ds(o,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=h(t,n||"")),is(o,a,s,n,i)}else!function(t,e,n,i,o,r,s,a){o===wo&&(o=j);let c=0,u=0,l=0<o.length?o[0]:null,h=0<r.length?r[0]:null;for(;null!==l||null!==h;){const d=c<o.length?o[c+1]:void 0,p=u<r.length?r[u+1]:void 0;let f,g=null;l===h?(c+=2,u+=2,d!==p&&(g=h,f=p)):null===h||null!==l&&l<h?(c+=2,g=l):(u+=2,g=h,f=p),null!==g&&qs(t,e,n,i,g,f,s,a),l=c<o.length?o[c]:null,h=u<r.length?r[u]:null}}(o,a,s,s[11],s[r+1],s[r+1]=function(t,e,n){if(null==n||""===n)return j;const i=[],o=Pi(n);if(Array.isArray(o))for(let r=0;r<o.length;r++)t(i,o[r],!0);else if("object"==typeof o)for(const r in o)o.hasOwnProperty(r)&&t(i,r,o[r]);else"string"==typeof o&&e(i,o);return i}(t,e,n),i,r)}}function Ds(t,e){return e>=t.expandoStartIndex}function Fs(t,e,n,i){const o=t.data;if(null===o[n+1]){const r=o[ge()],s=Ds(t,n);zs(r,i)&&null===e&&!s&&(e=!1),e=function(t,e,n,i){const o=oe(t);let r=i?e.residualClasses:e.residualStyles;if(null===o)0===(i?e.classBindings:e.styleBindings)&&(n=Zs(n=Us(null,t,e,n,i),e.attrs,i),r=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==o)if(n=Us(o,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==So(i))return t[To(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Us(null,t,e,n[1],i),n=Zs(n,e.attrs,i),function(t,e,n,i){t[To(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i;const o=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<o;r++)i=Zs(i,t[r].hostAttrs,n);return Zs(i,e.attrs,n)}(t,e,i)}return void 0!==r&&(i?e.residualClasses=r:e.residualStyles=r),n}(o,r,e,i),function(t,e,n,i,o,r){let s=r?e.classBindings:e.styleBindings,a=To(s),c=So(s);t[i]=n;let u,l=!1;if(Array.isArray(n)){const t=n;u=t[1],(null===u||bn(t,u)>0)&&(l=!0)}else u=n;if(o)if(0!==c){const e=To(t[a+1]);t[i+1]=Mo(e,a),0!==e&&(t[e+1]=Eo(t[e+1],i)),t[a+1]=function(t,e){return 131071&t|e<<17}(t[a+1],i)}else t[i+1]=Mo(a,0),0!==a&&(t[a+1]=Eo(t[a+1],i)),a=i;else t[i+1]=Mo(c,0),0===a?a=i:t[c+1]=Eo(t[c+1],i),c=i;l&&(t[i+1]=ko(t[i+1])),Os(t,u,i,!0),Os(t,u,i,!1),function(t,e,n,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&bn(r,e)>=0&&(n[i+1]=Ao(n[i+1]))}(e,u,t,i,r),s=Mo(a,c),r?e.classBindings=s:e.styleBindings=s}(o,r,e,n,s,i)}}function Us(t,e,n,i,o){let r=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(r=e[a],i=Zs(i,r.hostAttrs,o),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function Zs(t,e,n){const i=n?1:2;let o=-1;if(null!==e)for(let r=0;r<e.length;r++){const s=e[r];"number"==typeof s?o=s:o===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),_n(t,s,!!n||e[++r]))}return void 0===t?null:t}function qs(t,e,n,i,o,r,s,a){if(!(3&e.type))return;const c=t.data,u=c[a+1];js(function(t){return 1==(1&t)}(u)?Vs(c,e,n,o,So(u),s):void 0)||(js(r)||function(t){return 2==(2&t)}(u)&&(r=Vs(c,null,n,o,a,s)),function(t,e,n,i,o){const r=kt(t);if(e)o?r?t.addClass(n,i):n.classList.add(i):r?t.removeClass(n,i):n.classList.remove(i);else{let e=-1===i.indexOf("-")?void 0:Un.DashCase;if(null==o)r?t.removeStyle(n,i,e):n.style.removeProperty(i);else{const s="string"==typeof o&&o.endsWith("!important");s&&(o=o.slice(0,-10),e|=Un.Important),r?t.setStyle(n,i,o,e):n.style.setProperty(i,o,s?"important":"")}}}(i,s,At(ge(),n),o,r))}function Vs(t,e,n,i,o,r){const s=null===e;let a;for(;o>0;){const e=t[o],r=Array.isArray(e),c=r?e[1]:e,u=null===c;let l=n[o+1];l===wo&&(l=u?j:void 0);let h=u?yn(l,i):c===i?l:void 0;if(r&&!js(h)&&(h=yn(e,i)),js(h)&&(a=h,s))return a;const d=t[o+1];o=s?To(d):So(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=yn(t,i))}return a}function js(t){return void 0!==t}function zs(t,e){return 0!=(t.flags&(e?16:32))}function Gs(t,e=""){const n=zt(),i=Gt(),o=t+20,r=i.firstCreatePass?No(i,o,1,e,null):i.data[o],s=n[o]=function(t,e){return kt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);ci(i,n,s,r),Qt(r,!1)}function Bs(t){return Hs("",t,""),Bs}function Hs(t,e,n){const i=zt(),o=Kr(i,t,e,n);return o!==wo&&vr(i,ge(),o),Hs}
1function Ys(t,e,n){Ls(_n,Rs,Kr(zt(),t,e,n),!0)}function Qs(t,e,n){const i=zt();return $r(i,te(),e)&&Yo(Gt(),_e(),i,t,e,i[11],n,!0),Qs}function Js(t,e,n){const i=zt();if($r(i,te(),e)){const o=Gt(),r=_e();Yo(o,r,i,t,e,_r(oe(o.data),r,i),n,!0)}return Js}const $s=void 0;var Ws=["en",[["a","p"],["AM","PM"],$s],[["AM","PM"],$s,$s],[["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"]],$s,[["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"]],$s,[["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}",$s,"{1} 'at' {0}",$s],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Ks={};function Xs(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ea(e);if(n)return n;const i=e.split("-")[0];if(n=ea(i),n)return n;if("en"===i)return Ws;throw new Error(`Missing locale data for the locale "${t}".`)}function ta(t){return Xs(t)[na.PluralCase]}function ea(t){return t in Ks||(Ks[t]=q.ng&&q.ng.common&&q.ng.common.locales&&q.ng.common.locales[t]),Ks[t]}var na=(()=>((na=na||{})[na.LocaleId=0]="LocaleId",na[na.DayPeriodsFormat=1]="DayPeriodsFormat",na[na.DayPeriodsStandalone=2]="DayPeriodsStandalone",na[na.DaysFormat=3]="DaysFormat",na[na.DaysStandalone=4]="DaysStandalone",na[na.MonthsFormat=5]="MonthsFormat",na[na.MonthsStandalone=6]="MonthsStandalone",na[na.Eras=7]="Eras",na[na.FirstDayOfWeek=8]="FirstDayOfWeek",na[na.WeekendRange=9]="WeekendRange",na[na.DateFormat=10]="DateFormat",na[na.TimeFormat=11]="TimeFormat",na[na.DateTimeFormat=12]="DateTimeFormat",na[na.NumberSymbols=13]="NumberSymbols",na[na.NumberFormats=14]="NumberFormats",na[na.CurrencyCode=15]="CurrencyCode",na[na.CurrencySymbol=16]="CurrencySymbol",na[na.CurrencyName=17]="CurrencyName",na[na.Currencies=18]="Currencies",na[na.Directionality=19]="Directionality",na[na.PluralCase=20]="PluralCase",na[na.ExtraData=21]="ExtraData",na))();const ia="en-US";let oa=ia;function ra(t){v(t,"Expected localeId to be defined"),"string"==typeof t&&(oa=t.toLowerCase().replace(/_/g,"-"))}function sa(t,e,n,i,o){if(t=f(t),Array.isArray(t))for(let r=0;r<t.length;r++)sa(t[r],e,n,i,o);else{const r=Gt(),s=zt();let a=Lr(t)?t:f(t.provide),c=Ir(t);const u=Ht(),l=1048575&u.providerIndexes,h=u.directiveStart,d=u.providerIndexes>>20;if(Lr(t)||!t.multi){const i=new Me(c,o,es),p=ua(a,e,o?l:l+d,h);-1===p?(je(Ue(u,s),r,a),aa(r,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(i),s.push(i)):(n[p]=i,s[p]=i)}else{const p=ua(a,e,l+d,h),f=ua(a,e,l,l+d),g=p>=0&&n[p],m=f>=0&&n[f];if(o&&!m||!o&&!g){je(Ue(u,s),r,a);const l=function(t,e,n,i,o){const r=new Me(t,n,es);return r.multi=[],r.index=e,r.componentProviders=0,ca(r,o,i&&!n),r}(o?ha:la,n.length,o,i,c);!o&&m&&(n[f].providerFactory=l),aa(r,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(l),s.push(l)}else aa(r,t,p>-1?p:f,ca(n[o?f:p],c,!o&&i));!o&&i&&m&&n[f].componentProviders++}}}function aa(t,e,n,i){const o=Lr(e);if(o||function(t){return!!t.useClass}(e)){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const s=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){const t=s.indexOf(n);-1===t?s.push(n,[i,r]):s[t+1].push(i,r)}else s.push(n,r)}}}function ca(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ua(t,e,n,i){for(let o=n;o<i;o++)if(e[o]===t)return o;return-1}function la(t,e,n,i){return da(this.multi,[])}function ha(t,e,n,i){const o=this.multi;let r;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=$e(n,n[1],this.providerFactory.index,i);r=e.slice(0,t),da(o,r);for(let n=t;n<e.length;n++)r.push(e[n])}else r=[],da(o,r);return r}function da(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function pa(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=Gt();if(i.firstCreatePass){const o=ft(t);sa(n,i.data,i.blueprint,o,!0),sa(e,i.data,i.blueprint,o,!1)}}(n,i?i(t):t,e)}}class fa{}const ga="ngComponent";
vendor: 13,822 bytes, line 1
1class ma{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${l(t)}. Did you add it to @NgModule.entryComponents?`);return e[ga]=t,e}(t)}}let _a=(()=>{class t{}return t.NULL=new ma,t})();function ya(...t){}function ba(t,e){return new Ca(It(t,e))}const va=function(){return ba(Ht(),zt())};let Ca=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=va,t})();function xa(t){return t instanceof Ca?t.nativeElement:t}class wa{}let Oa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Pa(),t})();const Pa=function(){const t=zt(),e=Lt(Ht().index,t);return function(t){return t[11]}(ut(e)?e:t)};let Ma=(()=>{class t{}return t.\u0275prov=C({token:t,providedIn:"root",factory:()=>null}),t})();class Ta{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const ka=new Ta("12.2.17");class Sa{constructor(){}supports(t){return Yr(t)}create(t){return new Aa(t)}}const Ea=(t,e)=>e;class Aa{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ea}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,o=null;for(;e||n;){const r=!n||e&&e.currentIndex<La(n,i,o)?e:n,s=La(r,i,o),a=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)i++;else{o||(o=[]);const t=s-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<o.length?o[n]:o[n]=0,r=i+n;e<=r&&r<t&&(o[n]=i+1)}o[r.previousIndex]=e-t}}s!==a&&t(r,s,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Yr(t))throw new Error(`Error trying to diff '${l(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,o=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==o&&Object.is(o.trackById,i)?(r&&(o=this._verifyReinsertion(o,n,i,e)),Object.is(o.item,n)||this._addIdentityChange(o,n)):(o=this._mismatch(o,n,i,e),r=!0),o=o._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[Br()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==o&&Object.is(o.trackById,i)?(r&&(o=this._verifyReinsertion(o,t,i,e)),Object.is(o.item,t)||this._addIdentityChange(o,t)):(o=this._mismatch(o,t,i,e),r=!0),o=o._next,e++}),this.length=e;return this._truncate(o),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,i)):t=this._addAfter(new Ia(e,n),o,i),t}_verifyReinsertion(t,e,n,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Na),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Na),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ia{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ra{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Na{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ra,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function La(t,e,n){const i=t.previousIndex;if(null===i)return i;let o=0;return n&&i<n.length&&(o=n[i]),i+e+o}class Da{constructor(){}supports(t){return t instanceof Map||Qr(t)}create(){return new Fa}}class Fa{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Qr(t)))throw new Error(`Error trying to diff '${l(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,o=n._next;return i&&(i._next=o),o&&(o._prev=i),n._next=null,n._prev=null,n}const n=new Ua(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Ua{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Za(){return new qa([new Sa])}let qa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Za()),deps:[[t,new Fn,new Dn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function(t){return t.name||typeof t}(t)}'`)}}return t.\u0275prov=C({token:t,providedIn:"root",factory:Za}),t})();function Va(){return new ja([new Da])}let ja=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Va()),deps:[[t,new Fn,new Dn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=C({token:t,providedIn:"root",factory:Va}),t})();function za(t,e,n,i,o=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(Et(r)),lt(r))for(let t=10;t<r.length;t++){const e=r[t],n=e[1].firstChild;null!==n&&za(e[1],e,n,i)}const s=n.type;if(8&s)za(t,e,n.child,i);else if(32&s){const t=jn(n,e);let o;for(;o=t();)i.push(o)}else if(16&s){const t=li(e,n);if(Array.isArray(t))i.push(...t);else{const n=zn(e[16]);za(n[1],n,t,i,!0)}}n=o?n.projectionNext:n.next}return i}class Ga{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return za(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(lt(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&($n(t,n),gn(e,n))}this._attachedToViewContainer=!1}Wn(this._lView[1],this._lView)}onDestroy(t){Bo(this._lView[1],this._lView,null,t)}markForCheck(){lr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){hr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Kt(!0);try{hr(t,e,n)}finally{Kt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,pi(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a Vie
1wContainer!");this._appRef=t}}class Ba extends Ga{constructor(t){super(t),this._view=t}detectChanges(){dr(this._view)}checkNoChanges(){!function(t){Kt(!0);try{dr(t)}finally{Kt(!1)}}(this._view)}get context(){return null}}const Ha=function(t){return function(t,e,n){if(dt(t)&&!n){const n=Lt(t.index,e);return new Ga(n,n)}return 47&t.type?new Ga(e[16],e):null}(Ht(),zt(),16==(16&t))};let Ya=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ha,t})();const Qa=[new Da],Ja=new qa([new Sa]),$a=new ja(Qa),Wa=function(){return ec(Ht(),zt())};let Ka=(()=>{class t{}return t.__NG_ELEMENT_ID__=Wa,t})();const Xa=Ka,tc=class extends Xa{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ro(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Do(e,n,t),new Ga(n)}};function ec(t,e){return 4&t.type?new tc(e,t,ba(t,e)):null}class nc{}class ic{}const oc=function(){return lc(Ht(),zt())};let rc=(()=>{class t{}return t.__NG_ELEMENT_ID__=oc,t})();const sc=rc,ac=class extends sc{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return ba(this._hostTNode,this._hostLView)}get injector(){return new Xe(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ve(this._hostTNode,this._hostLView);if(Ie(t)){const e=Ne(t,this._hostLView),n=Re(t);return new Xe(e[1].data[n+8],e)}return new Xe(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=cc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,o){const r=n||this.parentInjector;if(!o&&null==t.ngModule&&r){const t=r.get(nc,null);t&&(o=t)}const s=t.create(r,i,void 0,o);return this.insert(s.hostView,e),s}insert(t,e){const n=t._lView,i=n[1];if(lt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new ac(e,e[6],e[3]);i.detach(i.indexOf(t))}}const o=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const o=10+i,r=n.length;i>0&&(n[o-1][4]=e),i<r-10?(e[4]=n[o],fn(n,10+i,e)):(n.push(e),e[4]=null),e[3]=n;const s=e[17];null!==s&&n!==s&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(s,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,r,o);const s=hi(o,r),a=n[11],c=ii(a,r[7]);return null!==c&&function(t,e,n,i,o,r){i[0]=o,i[6]=e,pi(t,i,n,1,o,r)}(i,r[6],a,n,c,s),t.attachToViewContainerRef(),fn(uc(r),o,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=cc(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=$n(this._lContainer,e);n&&(gn(uc(this._lContainer),e),Wn(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=$n(this._lContainer,e);return n&&null!=gn(uc(this._lContainer),e)?new Ga(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function cc(t){return t[8]}function uc(t){return t[8]||(t[8]=[])}function lc(t,e){let n;const i=e[t.index];if(lt(i))n=i;else{let o;if(8&t.type)o=Et(i);else{const n=e[11];o=n.createComment("");const i=It(t,e);ti(n,ii(n,i),o,function(t,e){return kt(t)?t.nextSibling(e):e.nextSibling}(n,i),!1)}e[t.index]=n=rr(i,e,o,t),ur(e,n)}return new ac(n,t,e)}const hc={};class dc extends _a{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=at(t);return new gc(e,this.ngModule)}}function pc(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const fc=new un("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>co});class gc extends fa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(xo).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return pc(this.componentDef.inputs)}get outputs(){return pc(this.componentDef.outputs)}create(t,e,n,i){const o=(i=i||this.ngModule)?function(t,e){return{get:(n,i,o)=>{const r=t.get(n,hc,o);return r!==hc||i===hc?r:e.get(n,i,o)}}}(t,i.injector):t,r=o.get(wa,St),s=o.get(Ma,null),a=r.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=n?function(t,e,n){if(kt(t))return t.selectRootElement(e,n===D.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Qn(r.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?Ot:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,h=function(t,e){return{components:[],scheduler:t||co,clean:fr,playerHandler:e||null,flags:0}}
vendor: 4,756 bytes, line 1
1(),d=Go(0,null,null,1,0,null,null,null,null,null),p=Ro(null,d,h,l,null,null,r,a,s,o);let f,g;ue(p);try{const t=function(t,e,n,i,o,r){const s=n[1];n[20]=t;const a=No(s,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(Cr(a,c,!0),null!==t&&(Te(o,t,c),null!==a.classes&&mi(o,t,a.classes),null!==a.styles&&gi(o,t,a.styles)));const u=i.createRenderer(t,e),l=Ro(n,zo(e),null,e.onPush?64:16,n[20],a,i,u,r||null,null);return s.firstCreatePass&&(je(Ue(a,n),s,e.type),Wo(s,a),Xo(a,n.length,1)),ur(n,l),n[20]=l}(u,this.componentDef,p,r,a);if(u)if(n)Te(a,u,["ng-version",ka.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,o=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===o?""!==r&&e.push(r,t[++i]):8===o&&n.push(r);else{if(!_o(o))break;o=r}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Te(a,u,t),e&&e.length>0&&mi(a,u,e.join(" "))}if(g=Rt(d,20),void 0!==e){const t=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}f=function(t,e,n,i,o){const r=n[1],s=function(t,e,n){const i=Ht();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),tr(t,i,e,Lo(t,e,1,null),n));const o=$e(e,t,i.directiveStart,i);qn(o,e);const r=It(i,e);return r&&qn(r,e),o}(r,n,e);if(i.components.push(s),t[8]=s,o&&o.forEach(t=>t(s,e)),e.contentQueries){const t=Ht();e.contentQueries(1,s,t.directiveStart)}const a=Ht();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(me(a.index),Jo(n[1],a,0,a.directiveStart,a.directiveEnd,e),$o(e,s)),s}(t,this.componentDef,p,h,[Ur]),Do(d,p,null)}finally{fe()}return new mc(this.componentType,f,ba(g,p),p,g)}}class mc extends class{}{constructor(t,e,n,i,o){super(),this.location=n,this._rootLView=i,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new Ba(i),this.componentType=t}get injector(){return new Xe(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const _c=new Map;class yc extends nc{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new dc(this);const n=ct(t),i=t[Y]||null;i&&ra(i),this._bootstrapComponents=uo(n.bootstrap),this._r3Injector=Sr(t,e,[{provide:nc,useValue:this},{provide:_a,useValue:this.componentFactoryResolver}],l(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Fr.THROW_IF_NOT_FOUND,n=E.Default){return t===Fr||t===nc||t===xr?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class bc extends ic{constructor(t){super(),this.moduleType=t,null!==ct(t)&&function(t){const e=new Set;!function t(n){const i=ct(n,!0),o=i.id;null!==o&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${l(e)} vs ${l(e.name)}`)}(o,_c.get(o),n),_c.set(o,n));const r=uo(i.imports);for(const s of r)e.has(s)||(e.add(s),t(s))}(t)}(t)}create(t){return new yc(this.moduleType,t)}}function vc(t,e,n){const i=Xt()+t,o=zt();return o[i]===wo?Jr(o,i,n?e.call(n):e()):function(t,e){return t[e]}(o,i)}function Cc(t,e,n,i){return Oc(zt(),Xt(),t,e,n,i)}function xc(t,e,n,i,o){return function(t,e,n,i,o,r,s){const a=e+n;return function(t,e,n,i){const o=$r(t,e,n);return $r(t,e+1,i)||o}(t,a,o,r)?Jr(t,a+2,s?i.call(s,o,r):i(o,r)):wc(t,a+2)}(zt(),Xt(),t,e,n,i,o)}function wc(t,e){const n=t[e];return n===wo?void 0:n}function Oc(t,e,n,i,o,r){const s=e+n;return $r(t,s,o)?Jr(t,s+1,r?i.call(r,o):i(o)):wc(t,s+1)}function Pc(t,e){const n=Gt();let i;const o=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new m("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[o]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,i.onDestroy)):i=n.data[o];const r=i.factory||(i.factory=mt(i.type)),s=I(es);try{const t=De(!1),e=r();return De(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,zt(),o,e),e}finally{I(s)}}function Mc(t,e,n){const i=t+20,o=zt(),r=Nt(o,i);return function(t,e){Hr.isWrapped(e)&&(e=Hr.unwrap(e),t[Vt.lFrame.bindingIndex]=wo);return e}(o,function(t,e){return t[1].data[e].pure}(o,i)?Oc(o,Xt(),e,r.transform,n,r):r.transform(n))}function Tc(t){return e=>{setTimeout(t,void 0,e)}}const kc=class extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,r,s;let a=t,c=e||(()=>null),u=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),c=null===(r=e.error)||void 0===r?void 0:r.bind(e),u=null===(s=e.complete)||void 0===s?void 0:s.bind(e)}
1this.__isAsync&&(c=Tc(c),a&&(a=Tc(a)),u&&(u=Tc(u)));const l=super.subscribe({next:a,error:c,complete:u});return t instanceof o.w&&t.add(l),l}};function Sc(){return this._results[Br()]()}class Ec{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Br(),n=Ec.prototype;n[e]||(n[e]=Sc)}get changes(){return this._changes||(this._changes=new kc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=dn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){let o=t[i],r=e[i];if(n&&(o=n(o),r=n(r)),r!==o)return!1}return!0}(n._results,i,e))&&(n._results=i,n.length=i.length,n.last=i[this.length-1],n.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;class Ac{constructor(t){this.queryList=t,this.matches=null}clone(){return new Ac(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ic{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new Ic(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Hc(t,e).matches&&this.queries[e].setDirty()}}class Rc{constructor(t,e,n=null){this.predicate=t,this.flags=e,this.read=n}}class Nc{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,o=this.getByIndex(n).embeddedTView(t,i);o&&(o.indexInDeclarationView=n,null!==e?e.push(o):e=[o])}return null!==e?new Nc(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Lc{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Lc(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const o=n[i];this.matchTNodeWithReadOption(t,e,Dc(e,o)),this.matchTNodeWithReadOption(t,e,Je(e,t,o,!1,!1))}else n===Ka?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Je(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===Ca||i===rc||i===Ka&&4&e.type)this.addMatch(e.index,-2);else{const n=Je(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Dc(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function Fc(t,e,n,i){return-1===n?function(t,e){return 11&t.type?ba(t,e):4&t.type?ec(t,e):null}(e,t):-2===n?function(t,e,n){return n===Ca?ba(e,t):n===Ka?ec(e,t):n===rc?lc(e,t):void 0}(t,e,i):$e(t,t[1],n,e)}function Uc(t,e,n,i){const o=e[19].queries[i];if(null===o.matches){const i=t.data,r=n.matches,s=[];for(let t=0;t<r.length;t+=2){const o=r[t];s.push(o<0?null:Fc(e,i[o],r[t+1],n.metadata.read))}o.matches=s}return o.matches}function Zc(t,e,n,i){const o=t.queries.getByIndex(n),r=o.matches;if(null!==r){const s=Uc(t,e,o,n);for(let t=0;t<r.length;t+=2){const n=r[t];if(n>0)i.push(s[t/2]);else{const o=r[t+1],s=e[-n];for(let t=10;t<s.length;t++){const e=s[t];e[17]===e[3]&&Zc(e[1],e,o,i)}if(null!==s[9]){const t=s[9];for(let e=0;e<t.length;e++){const n=t[e];Zc(n[1],n,o,i)}}}}}return i}function qc(t){const e=zt(),n=Gt(),i=re();se(i+1);const o=Hc(n,i);if(t.dirty&&Dt(e)===(2==(2&o.metadata.flags))){if(null===o.matches)t.reset([]);else{const r=o.crossesNgTemplate?Zc(n,e,i,[]):Uc(n,e,o,i);t.reset(r,xa),t.notifyOnChanges()}return!0}return!1}function Vc(t,e,n){const i=Gt();i.firstCreatePass&&(Bc(i,new Rc(t,e,n),-1),2==(2&e)&&(i.staticViewQueries=!0)),Gc(i,zt(),e)}function jc(t,e,n,i){const o=Gt();if(o.firstCreatePass){const r=Ht();Bc(o,new Rc(e,n,i),r.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(o,t),2==(2&n)&&(o.staticContentQueries=!0)}Gc(o,zt(),n)}function zc(){return t=zt(),e=re(),t[19].queries[e].queryList;var t,e}
1function Gc(t,e,n){const i=new Ec(4==(4&n));Bo(t,e,i,i.destroy),null===e[19]&&(e[19]=new Ic),e[19].queries.push(new Ac(i))}function Bc(t,e,n){null===t.queries&&(t.queries=new Nc),t.queries.track(new Lc(e,n))}function Hc(t,e){return t.queries.getByIndex(e)}function Yc(t,e){return ec(t,e)}const Qc=cn("HostBinding",t=>({hostPropertyName:t})),Jc=cn("HostListener",(t,e)=>({eventName:t,args:e})),$c=new un("Application Initializer");let Wc=(()=>{class t{constructor(t){this.appInits=t,this.resolve=ya,this.reject=ya,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();if(ls(e))t.push(e);else if(ds(e)){const n=new Promise((t,n)=>{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Sn($c,8))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();const Kc=new un("AppId"),Xc={provide:Kc,useFactory:function(){return`${tu()}${tu()}${tu()}`},deps:[]};function tu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const eu=new un("Platform Initializer"),nu=new un("Platform ID"),iu=new un("appBootstrapListener");let ou=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();const ru=new un("LocaleId"),su=new un("DefaultCurrencyCode");class au{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const cu=function(t){return new bc(t)},uu=cu,lu=function(t){return Promise.resolve(cu(t))},hu=function(t){const e=cu(t),n=uo(ct(t).declarations).reduce((t,e)=>{const n=at(e);return n&&t.push(new gc(n)),t},[]);return new au(e,n)},du=hu,pu=function(t){return Promise.resolve(hu(t))};let fu=(()=>{class t{constructor(){this.compileModuleSync=uu,this.compileModuleAsync=lu,this.compileModuleAndAllComponentsSync=du,this.compileModuleAndAllComponentsAsync=pu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();const gu=(()=>Promise.resolve(0))();function mu(t){"undefined"==typeof Zone?gu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class _u{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new kc(!1),this.onMicrotaskEmpty=new kc(!1),this.onStable=new kc(!1),this.onError=new kc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=q.requestAnimationFrame,e=q.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(q,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,vu(t),t.isCheckStableRunning=!0,bu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),vu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,o,r,s,a)=>{try{return Cu(t),n.invokeTask(o,r,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),xu(t)}},onInvoke:(n,i,o,r,s,a,c)=>{try{return Cu(t),n.invoke(o,r,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),xu(t)}},onHasTask:(e,n,i,o)=>{e.hasTask(i,o),n===i&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,vu(t),bu(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,i,o)=>(e.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(i)}
vendor: 5,147 bytes, line 1
1static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_u.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(_u.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const o=this._inner,r=o.scheduleEventTask("NgZoneEvent: "+i,t,yu,ya,ya);try{return o.runTask(r,e,n)}finally{o.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const yu={};function bu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function vu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Cu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function xu(t){t._nesting--,bu(t)}class wu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new kc,this.onMicrotaskEmpty=new kc,this.onStable=new kc,this.onError=new kc}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let Ou=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{_u.assertNotInAngularZone(),mu(()=>{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())mu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Sn(_u))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})(),Pu=(()=>{class t{constructor(){this._applications=new Map,ku.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return ku.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();class Mu{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Tu(t){ku=t}let ku=new Mu,Su=!0,Eu=!1;function Au(){return Eu=!0,Su}function Iu(){if(Eu)throw new Error("Cannot enable prod mode after platform setup.");Su=!1}let Ru;const Nu=new un("AllowMultipleToken");class Lu{constructor(t,e){this.name=t,this.token=e}}function Du(t,e,n=[]){const i=`Platform: ${e}`,o=new un(i);return(e=[])=>{let r=Fu();if(!r||r.injector.get(Nu,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{const t=n.concat(e).concat({provide:o,useValue:!0},{provide:Or,useValue:"platform"});!function(t){if(Ru&&!Ru.destroyed&&!Ru.injector.get(Nu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ru=t.get(Uu);const e=t.get(eu,null);e&&e.forEach(t=>t())}(Fr.create({providers:t,name:i}))}return function(t){const e=Fu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different c
1onfiguration has been created. Please destroy it first.");return e}(o)}}function Fu(){return Ru&&!Ru.destroyed?Ru:null}let Uu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new wu:("zone.js"===t?void 0:t)||new _u({enableLongStackTrace:Au(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:_u,useValue:n}];return n.run(()=>{const o=Fr.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(o),s=r.injector.get(ao,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{s.handleError(t)}});r.onDestroy(()=>{Vu(this._modules,r),t.unsubscribe()})}),function(t,n,i){try{const e=i();return ls(e)?e.catch(e=>{throw n.runOutsideAngular(()=>t.handleError(e)),e}):e}catch(e){throw n.runOutsideAngular(()=>t.handleError(e)),e}}(s,n,()=>{const t=r.injector.get(Wc);return t.runInitializers(),t.donePromise.then(()=>(ra(r.injector.get(ru,ia)||ia),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Zu({},e);return function(t,e,n){const i=new bc(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(qu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${l(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Sn(Fr))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();function Zu(t,e){return Array.isArray(e)?e.reduce(Zu,t):Object.assign(Object.assign({},t),e)}let qu=(()=>{class t{constructor(t,e,n,i,o){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new r.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new r.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{_u.assertNotInAngularZone(),mu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{_u.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,s.T)(c,u.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof fa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=function(t){return t.isBoundToModule}(n)?void 0:this._injector.get(nc),o=n.create(Fr.NULL,[],e||n.selector,i),r=o.location.nativeElement,s=o.injector.get(Ou,null),a=s&&o.injector.get(Pu);return s&&a&&a.registerApplication(r,s),o.onDestroy(()=>{this.detachView(o.hostView),Vu(this.components,o),a&&a.unregisterApplication(r)}),this._loadComponent(o),o}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Vu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(iu,[]).c
1oncat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Sn(_u),Sn(Fr),Sn(ao),Sn(_a),Sn(Wc))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();function Vu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ju{}class zu{}const Gu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Bu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Gu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(8255)(e).then(t=>t[i]).then(t=>Hu(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),o="NgFactory";return void 0===i&&(i="default",o=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+o]).then(t=>Hu(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(Sn(fu),Sn(zu,8))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();function Hu(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Yu=function(t){return null},Qu=Du(null,"core",[{provide:nu,useValue:"unknown"},{provide:Uu,deps:[Fr]},{provide:Pu,deps:[]},{provide:ou,deps:[]}]),Ju=[{provide:qu,useClass:qu,deps:[_u,Fr,ao,_a,Wc]},{provide:fc,deps:[_u],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Wc,useClass:Wc,deps:[[new Dn,$c]]},{provide:fu,useClass:fu,deps:[]},Xc,{provide:qa,useFactory:function(){return Ja},deps:[]},{provide:ja,useFactory:function(){return $a},deps:[]},{provide:ru,useFactory:function(t){return ra(t=t||"undefined"!=typeof $localize&&$localize.locale||ia),t},deps:[[new Ln(ru),new Dn,new Fn]]},{provide:su,useValue:"USD"}];let $u=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(Sn(qu))},t.\u0275mod=nt({type:t}),t.\u0275inj=x({providers:Ju}),t})()},57:function(t,e,n){"use strict";n.d(e,{hO:function(){return M},xv:function(){return b},Dh:function(){return y},HU:function(){return p},GT:function(){return _},sI:function(){return O},on:function(){return C},ss:function(){return f},pX:function(){return m},yq:function(){return x}});var i=n(7771),o=n(3637),r=n(8307),s=n(9673),a=n(9746),c=n(7716),u=n(2329);function l(){}t=n.hmd(t);class h{constructor(t,e=i.c){this.zone=t,this.delegate=e}now(){return this.delegate.now()}schedule(t,e,n){const i=this.zone;return this.delegate.schedule(function(e){i.runGuarded(()=>{t.apply(this,[e])})},e,n)}}class d{constructor(t){this.zone=t,this.task=null}call(t,e){const n=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",l,{},l,l)),e.pipe((0,r.b)({next:n,complete:n,error:n})).subscribe(t).add(n)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}class p{constructor(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(()=>new h(Zone.current)),this.insideAngular=t.run(()=>new h(Zone.current,o.P))}}function f(t){return function(e){return(e=e.lift(new d(t.ngZone))).pipe((0,s.R)(t.outsideAngular),(0,a.QV)(t.insideAngular))}}const g=["ngOnDestroy"],m=(t,e,n,i={})=>new Proxy(t,{get:(o,r)=>n.runOutsideAngular(()=>{var o;if(t[r])return(null===(o=null==i?void 0:i.spy)||void 0===o?void 0:o.get)&&i.spy.get(r,t[r]),t[r];if(g.indexOf(r)>-1)return()=>{};const s=e.toPromise().then(t=>{const e=t&&t[r];return"function"==typeof e?e.bind(t):e&&e.then?e.then(t=>n.run(()=>t)):n.run(()=>e)});return new Proxy(()=>{},{get:(t,e)=>s[e],apply:(t,e,n)=>s.then(t=>{var e;const o=t&&t(...n);return(null===(e=null==i?void 0:i.spy)||void 0===e?void 0:e.apply)&&i.spy.apply(r,n,o),o})})})}),_=(t,e)=>{e.forEach(e=>{Object.getOwnPropertyNames(e.prototype||e).forEach(n=>{Object.defineProperty(t.prototype,n,Object.getOwnPropertyDescriptor(e.prototype||e,n))})})},y=new c.OlP("angularfire2.app.options"),b=new c.OlP("angularfire2.app.nameOrConfig"),v=new c.GfV("6.1.5");function C(e,n,i){const o="object"==typeof i&&i||{};o.name=o.name||"string"==typeof i&&i||"[DEFAULT]";const r=u.Z.apps.filter(t=>t&&t.name===o.name)[0]||n.runOutsideAngular(()=>u.Z.initializeApp(e,o));try{JSON.stringify(e)!==JSON.stringify(r.options)&&w("error",`${r.name} Firebase App already initialized with different options${t.hot?", you may 
1need to reload as Firebase is not HMR aware.":"."}`)}catch(s){}return r}const x=()=>{w("warn","You may need to import 'firebase/auth' manually in your component rather than rely on AngularFireAuth's dynamic import, when using the emulator suite https://github.com/angular/angularfire/issues/2656")},w=(t,...e)=>{(0,c.X6Q)()&&"undefined"!=typeof console&&console[t](...e)};function O(e,n,i,o,r){const[s,...a]=globalThis.\u0275AngularfireInstanceCache.get(e)||[];if(s){try{r.some((t,e)=>{const n=a[e];return t&&"object"==typeof t?JSON.stringify(t)!==JSON.stringify(n):t!==n})&&w("error",`${n} was already initialized on the ${i.name} Firebase App instance with different settings.${t.hot?" You may need to reload as Firebase is not HMR aware.":""}`)}catch(c){}return s}{const t=o();return globalThis.\u0275AngularfireInstanceCache.set(e,[t,...r]),t}}globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=new Map);const P={provide:class{},useFactory:C,deps:[y,c.R0b,[new c.FiY,b]]};let M=(()=>{class t{constructor(t){u.Z.registerVersion("angularfire",v.full,t.toString()),u.Z.registerVersion("angular",c.q4F.full)}static initializeApp(e,n){return{ngModule:t,providers:[{provide:y,useValue:e},{provide:b,useValue:n}]}}}return t.\u0275fac=function(e){return new(e||t)(c.LFG(c.Lbi))},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({providers:[P]}),t})()},9759:function(t,e,n){"use strict";var i,o,r=n(7582),s=n(4685),a=n(6034),c=n(300),u=((i={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",i["bad-app-name"]="Illegal App name: '{$appName}",i["duplicate-app"]="Firebase App named '{$appName}' already exists",i["app-deleted"]="Firebase App named '{$appName}' already deleted",i["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",i["invalid-log-argument"]="First argument to `onLog` must be null or a function.",i),l=new s.LL("app","Firebase",u),h="@firebase/app",d="[DEFAULT]",p=((o={})[h]="fire-core",o["@firebase/analytics"]="fire-analytics",o["@firebase/app-check"]="fire-app-check",o["@firebase/auth"]="fire-auth",o["@firebase/database"]="fire-rtdb",o["@firebase/functions"]="fire-fn",o["@firebase/installations"]="fire-iid",o["@firebase/messaging"]="fire-fcm",o["@firebase/performance"]="fire-perf",o["@firebase/remote-config"]="fire-rc",o["@firebase/storage"]="fire-gcs",o["@firebase/firestore"]="fire-fst",o["fire-js"]="fire-js",o["firebase-wrapper"]="fire-js-all",o),f=new c.Yd("@firebase/app"),g=function(){function t(t,e,n){var i=this;this.firebase_=n,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=(0,s.p$)(t),this.container=new a.H0(e.name),this._addComponent(new a.wA("app",function(){return i},"PUBLIC")),this.firebase_.INTERNAL.components.forEach(function(t){return i._addComponent(t)})}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),t.prototype.delete=function(){var t=this;return new Promise(function(e){t.checkDestroyed_(),e()}).then(function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map(function(t){return t.delete()}))}).then(function(){t.isDeleted_=!0})},t.prototype._getService=function(t,e){var n;void 0===e&&(e=d),this.checkDestroyed_();var i=this.container.getProvider(t);return!i.isInitialized()&&"EXPLICIT"===(null===(n=i.getComponent())||void 0===n?void 0:n.instantiationMode)&&i.initialize(),i.getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e=d),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(t){try{this.container.addComponent(t)}catch(e){f.debug("Component "+t.name+" failed to register with FirebaseApp "+this.name,e)}},t.prototype._addOrOverwriteComponent=function(t){this.container.addOrOverwriteComponent(t)},t.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw l.create("app-deleted",{appName:this.name_})},t}();g.prototype.name&&g.prototype.options||g.prototype.delete||console.log("dc");var m=function t(){var e=function(t){var e={},n=new Map,i={__esModule:!0,initializeApp:function(n,o){void 0===o&&(o={}),("object"!=typeof o||null===o)&&(o={name:o});var r=o;void 0===r.name&&(r.name=d);
1var a=r.name;if("string"!=typeof a||!a)throw l.create("bad-app-name",{appName:String(a)});if((0,s.r3)(e,a))throw l.create("duplicate-app",{appName:a});var c=new t(n,r,i);return e[a]=c,c},app:o,registerVersion:function(t,e,n){var i,o=null!==(i=p[t])&&void 0!==i?i:t;n&&(o+="-"+n);var s=o.match(/\s|\//),c=e.match(/\s|\//);if(s||c){var u=['Unable to register library "'+o+'" with version "'+e+'":'];return s&&u.push('library name "'+o+'" contains illegal characters (whitespace or "/")'),s&&c&&u.push("and"),c&&u.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void f.warn(u.join(" "))}r(new a.wA(o+"-version",function(){return{library:o,version:e}},"VERSION"))},setLogLevel:c.Ub,onLog:function(t,e){if(null!==t&&"function"!=typeof t)throw l.create("invalid-log-argument");(0,c.Am)(t,e)},apps:null,SDK_VERSION:"8.10.0",INTERNAL:{registerComponent:r,removeApp:function(t){delete e[t]},components:n,useAsService:function(t,e){return"serverAuth"===e?null:e}}};function o(t){if(!(0,s.r3)(e,t=t||d))throw l.create("no-app",{appName:t});return e[t]}function r(r){var a=r.name;if(n.has(a))return f.debug("There were multiple attempts to register component "+a+"."),"PUBLIC"===r.type?i[a]:null;if(n.set(a,r),"PUBLIC"===r.type){var c=function(t){if(void 0===t&&(t=o()),"function"!=typeof t[a])throw l.create("invalid-app-argument",{appName:a});return t[a]()};void 0!==r.serviceProps&&(0,s.ZB)(c,r.serviceProps),i[a]=c,t.prototype[a]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._getService.bind(this,a).apply(this,r.multipleInstances?t:[])}}for(var u=0,h=Object.keys(e);u<h.length;u++)e[h[u]]._addComponent(r);return"PUBLIC"===r.type?i[a]:null}return i.default=i,Object.defineProperty(i,"apps",{get:function(){return Object.keys(e).map(function(t){return e[t]})}}),o.App=t,i}(g);return e.INTERNAL=(0,r.pi)((0,r.pi)({},e.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(t){(0,s.ZB)(e,t)},createSubscribe:s.ne,ErrorFactory:s.LL,deepExtend:s.ZB}),e}(),_=function(){function t(t){this.container=t}return t.prototype.getPlatformInfoString=function(){return this.container.getProviders().map(function(t){if(function(t){var e=t.getComponent();return"VERSION"===(null==e?void 0:e.type)}(t)){var e=t.getImmediate();return e.library+"/"+e.version}return null}).filter(function(t){return t}).join(" ")},t}();if((0,s.jU)()&&void 0!==self.firebase){f.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var y=self.firebase.SDK_VERSION;y&&y.indexOf("LITE")>=0&&f.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var b=m.initializeApp;m.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,s.UG)()&&f.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/@rollup/plugin-node-resolve\n      '),b.apply(void 0,t)};var v,C=m;(v=C).INTERNAL.registerComponent(new a.wA("platform-logger",function(t){return new _(t)},"PRIVATE")),v.registerVersion(h,"0.6.30",undefined),v.registerVersion("fire-js",""),e.Z=C},6034:function(t,e,n){"use strict";n.d(e,{wA:function(){return r},H0:function(){return u}});var i=n(7582),o=n(4685),r=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return t.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},t.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},t.prototype.setServiceProps=function(t){return this.serviceProps=t,this},t.prototype.setInstanceCreatedCallback=function(t){return this.onInstanceCreated=t,this},t}(),s="[DEFAULT]",a=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return t.prototype.get=function(t){var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new o.BH;if(this.instancesDeferred.set(e,n),this.isInitialized(e)||this.shouldAutoInitialize())try{var i=this.getOrInitializeService({instanceIdentifier:e});i&&n.resolve(i)}catch(r){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e,n=this.normalizeInstanceIdentifier(null==t?void 0:t.identifier),i=null!==(e=null==t?void 0:t.optional)&&void 0!==e&&e;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(i)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(o){if(i)return null;throw o}},t.prototype.getComponent=function(){return this.component},t.prototype.setComponent=function(t){var e,n;if(t.name!==this.name)throw Error("Mismatching Component "+t.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");
1if(this.component=t,this.shouldAutoInitialize()){if(function(t){return"EAGER"===t.instantiationMode}(t))try{this.getOrInitializeService({instanceIdentifier:s})}catch(h){}try{for(var o=(0,i.XA)(this.instancesDeferred.entries()),r=o.next();!r.done;r=o.next()){var a=(0,i.CR)(r.value,2),c=a[1],u=this.normalizeInstanceIdentifier(a[0]);try{var l=this.getOrInitializeService({instanceIdentifier:u});c.resolve(l)}catch(h){}}}catch(h){e={error:h}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}},t.prototype.clearInstance=function(t){void 0===t&&(t=s),this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return(0,i.mG)(this,void 0,void 0,function(){var t;return(0,i.Jh)(this,function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all((0,i.ev)((0,i.ev)([],(0,i.CR)(t.filter(function(t){return"INTERNAL"in t}).map(function(t){return t.INTERNAL.delete()}))),(0,i.CR)(t.filter(function(t){return"_delete"in t}).map(function(t){return t._delete()}))))];case 1:return e.sent(),[2]}})})},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.isInitialized=function(t){return void 0===t&&(t=s),this.instances.has(t)},t.prototype.getOptions=function(t){return void 0===t&&(t=s),this.instancesOptions.get(t)||{}},t.prototype.initialize=function(t){var e,n;void 0===t&&(t={});var o=t.options,r=void 0===o?{}:o,s=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(s))throw Error(this.name+"("+s+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var a=this.getOrInitializeService({instanceIdentifier:s,options:r});try{for(var c=(0,i.XA)(this.instancesDeferred.entries()),u=c.next();!u.done;u=c.next()){var l=(0,i.CR)(u.value,2),h=l[1];s===this.normalizeInstanceIdentifier(l[0])&&h.resolve(a)}}catch(d){e={error:d}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return a},t.prototype.onInit=function(t,e){var n,i=this.normalizeInstanceIdentifier(e),o=null!==(n=this.onInitCallbacks.get(i))&&void 0!==n?n:new Set;o.add(t),this.onInitCallbacks.set(i,o);var r=this.instances.get(i);return r&&t(r,i),function(){o.delete(t)}},t.prototype.invokeOnInitCallbacks=function(t,e){var n,o,r=this.onInitCallbacks.get(e);if(r)try{for(var s=(0,i.XA)(r),a=s.next();!a.done;a=s.next()){var c=a.value;try{c(t,e)}catch(u){}}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}},t.prototype.getOrInitializeService=function(t){var e=t.instanceIdentifier,n=t.options,i=void 0===n?{}:n,o=this.instances.get(e);if(!o&&this.component&&(o=this.component.instanceFactory(this.container,{instanceIdentifier:c(e),options:i}),this.instances.set(e,o),this.instancesOptions.set(e,i),this.invokeOnInitCallbacks(o,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,o)}catch(r){}return o||null},t.prototype.normalizeInstanceIdentifier=function(t){return void 0===t&&(t=s),this.component?this.component.multipleInstances?t:s:t},t.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},t}();function c(t){return t===s?void 0:t}var u=function(){function t(t){this.name=t,this.providers=new Map}return t.prototype.addComponent=function(t){var e=this.getProvider(t.name);if(e.isComponentSet())throw new Error("Component "+t.name+" has already been registered with "+this.name);e.setComponent(t)},t.prototype.addOrOverwriteComponent=function(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)},t.prototype.getProvider=function(t){if(this.providers.has(t))return this.providers.get(t);var e=new a(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}()},300:function(t,e,n){"use strict";function i(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),o=0;for(e=0;e<n;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}n.d(e,{in:function(){return s},Yd:function(){return h},Ub:function(){return d},Am:function(){return p}});var o,r=[],s=(()=>{return(t=s||(s={}))[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT",s;var t}
1)(),a={debug:s.DEBUG,verbose:s.VERBOSE,info:s.INFO,warn:s.WARN,error:s.ERROR,silent:s.SILENT},c=s.INFO,u=((o={})[s.DEBUG]="log",o[s.VERBOSE]="log",o[s.INFO]="info",o[s.WARN]="warn",o[s.ERROR]="error",o),l=function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if(!(e<t.logLevel)){var r=(new Date).toISOString(),s=u[e];if(!s)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")");console[s].apply(console,i(["["+r+"]  "+t.name+":"],n))}},h=function(){function t(t){this.name=t,this._logLevel=c,this._logHandler=l,this._userLogHandler=null,r.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in s))throw new TypeError('Invalid value "'+t+'" assigned to `logLevel`');this._logLevel=t},enumerable:!1,configurable:!0}),t.prototype.setLogLevel=function(t){this._logLevel="string"==typeof t?a[t]:t},Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!=typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!1,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,s.DEBUG],t)),this._logHandler.apply(this,i([this,s.DEBUG],t))},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,s.VERBOSE],t)),this._logHandler.apply(this,i([this,s.VERBOSE],t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,s.INFO],t)),this._logHandler.apply(this,i([this,s.INFO],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,s.WARN],t)),this._logHandler.apply(this,i([this,s.WARN],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,s.ERROR],t)),this._logHandler.apply(this,i([this,s.ERROR],t))},t}();function d(t){r.forEach(function(e){e.setLogLevel(t)})}function p(t,e){for(var n=function(n){var i=null;e&&e.level&&(i=a[e.level]),n.userLogHandler=null===t?null:function(e,n){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];var a=o.map(function(t){if(null==t)return null;if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t)return t.toString();if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch(e){return null}}).filter(function(t){return t}).join(" ");n>=(null!=i?i:e.logLevel)&&t({level:s[n].toLowerCase(),message:a,args:o,type:e.name})}},i=0,o=r;i<o.length;i++)n(o[i])}},4685:function(t,e,n){"use strict";n.d(e,{BH:function(){return l},LL:function(){return w},ZR:function(){return x},r3:function(){return M},Sg:function(){return h},ne:function(){return T},p$:function(){return a},ZB:function(){return c},m9:function(){return E},z$:function(){return d},jU:function(){return g},ru:function(){return m},d:function(){return y},w1:function(){return b},uI:function(){return p},UG:function(){return f},b$:function(){return _},G6:function(){return C},Mn:function(){return v}});var i=n(7582),o=function(t){for(var e=[],n=0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o<128?e[n++]=o:o<2048?(e[n++]=o>>6|192,e[n++]=63&o|128):55296==(64512&o)&&i+1<t.length&&56320==(64512&t.charCodeAt(i+1))?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),e[n++]=o>>18|240,e[n++]=o>>12&63|128,e[n++]=o>>6&63|128,e[n++]=63&o|128):(e[n++]=o>>12|224,e[n++]=o>>6&63|128,e[n++]=63&o|128)}return e},r={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[],o=0;o<t.length;o+=3){var r=t[o],s=o+1<t.length,a=s?t[o+1]:0,c=o+2<t.length,u=c?t[o+2]:0,l=(15&a)<<2|u>>6,h=63&u;c||(h=64,s||(l=64)),i.push(n[r>>
12],n[(3&r)<<4|a>>4],n[l],n[h])}return i.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(o(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,i=0;n<t.length;){var o=t[n++];if(o<128)e[i++]=String.fromCharCode(o);else if(o>191&&o<224){var r=t[n++];e[i++]=String.fromCharCode((31&o)<<6|63&r)}else if(o>239&&o<365){var s=((7&o)<<18|(63&(r=t[n++]))<<12|(63&(a=t[n++]))<<6|63&t[n++])-65536;e[i++]=String.fromCharCode(55296+(s>>10)),e[i++]=String.fromCharCode(56320+(1023&s))}else{r=t[n++];var a=t[n++];e[i++]=String.fromCharCode((15&o)<<12|(63&r)<<6|63&a)}}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,i=[],o=0;o<t.length;){var r=n[t.charAt(o++)],s=o<t.length?n[t.charAt(o)]:0,a=++o<t.length?n[t.charAt(o)]:64,c=++o<t.length?n[t.charAt(o)]:64;if(++o,null==r||null==s||null==a||null==c)throw Error();i.push(r<<2|s>>4),64!==a&&(i.push(s<<4&240|a>>2),64!==c&&i.push(a<<6&192|c))}return i},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},s=function(t){return function(t){var e=o(t);return r.encodeByteArray(e,!0)}(t).replace(/\./g,"")};function a(t){return c(void 0,t)}function c(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:return new Date(e.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return e}for(var n in e)!e.hasOwnProperty(n)||!u(n)||(t[n]=c(t[n],e[n]));return t}function u(t){return"__proto__"!==t}var l=function(){function t(){var t=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return t.prototype.wrapCallback=function(t){var e=this;return function(n,i){n?e.reject(n):e.resolve(i),"function"==typeof t&&(e.promise.catch(function(){}),1===t.length?t(n):t(n,i))}},t}();function h(t,e){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var n=e||"demo-project",o=t.iat||0,r=t.sub||t.user_id;if(!r)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var a=(0,i.pi)({iss:"https://securetoken.google.com/"+n,aud:n,iat:o,exp:o+3600,auth_time:o,sub:r,user_id:r,firebase:{sign_in_provider:"custom",identities:{}}},t);return[s(JSON.stringify({alg:"none",type:"JWT"})),s(JSON.stringify(a)),""].join(".")}function d(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function p(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(d())}function f(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(t){return!1}}function g(){return"object"==typeof self&&self.self===self}function m(){var t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id}function _(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function y(){return d().indexOf("Electron/")>=0}function b(){var t=d();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function v(){return d().indexOf("MSAppHost/")>=0}function C(){return!f()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}var x=function(t){function e(n,i,o){var r=t.call(this,i)||this;return r.code=n,r.customData=o,r.name="FirebaseError",Object.setPrototypeOf(r,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(r,w.prototype.create),r}return(0,i.ZT)(e,t),e}(Error),w=function(){function t(t,e,n){this.service=t,this.serviceName=e,this.errors=n}return t.prototype.create=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=e[0]||{},o=this.service+"/"+t,r=this.errors[t],s=r?O(r,i):"Error",a=this.serviceName+": "+s+" ("+o+").",c=new x(o,a,i);return c},t}();function O(t,e){return t.replace(P,function(t,n){var i=e[n];return null!=i?String(i):"<"+n+"?>"})}var P=/\{\$([^}]+)}/g;function M(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function T(t,e){var n=new k(t,e);return n.subscribe.bind(n)}!function(){function t(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var t=1;t<this.blockSize;++t)this.pad_[t]=0;this.reset()}t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(t,e){e||(e=0);var n=this.W_;if("string"==typeof t)for(var i=0;i<16;i++)n[i]=t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|t.charCodeAt(e+3),e+=4;else for(i=0;i<16;i++)n[i]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3],e+=4;for(i=16;i<80;i++)n[i]=4294967295&((h=n[i-3]^n[i-8]^n[i-14]^n[i-16])<<1|h>>>31);var o,r,s=this.chain_[0],a=this.chain_[1],c=this.chain_[2],u=this.chain_[3],l=this.chain_[4];for(i=0;i<80;i++){i<40?i<20?(o=u^a&(c^u),r=1518500249):(o=a^c^u,r=1859775393):i<60?(o=a&c|u&(a|c),r=2400959708):(o=a^c^u,r=3395469782);var h=(s<<5|s>>>27)+o+l+r+n[i]&4294967295;l=u,u=c,c=4294967295&(a<<30|a>>>2),a=s,s=h}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+a&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+u&4294967295,this.chain_[4]=this.chain_[4]+l&4294967295},t.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length);for(var n=e-this.blockSize,i=0,o=this.buf_,r=this.inbuf_;i<e;){if(0===r)for(;i<=n;)this.compress_(t,i),i+=this.blockSize;if("string"==typeof t){for(;i<e;)if(o[r]=t.charCodeAt(i),++i,++r===this.blockSize){this.compress_(o),r=0;break}}else for(;i<e;)if(o[r]=t[i],++i,++r===this.blockSize){this.compress_(o),r=0;break}}this.inbuf_=r,this.total_+=e}},t.prototype.digest=function(){var t=[],e=8*this.total_;this.update(this.pad_,this.inbuf_<56?56-this.inbuf_:this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&e,e/=256;this.compress_(this.buf_);var i=0;for(n=0;n<5;n++)for(var o=24;o>=0;o-=8)t[i]=this.chain_[n]>>o&255,++i;return t}}();var k=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
1ise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then(function(){t(n)}).catch(function(t){n.error(t)})}return t.prototype.next=function(t){this.forEachObserver(function(e){e.next(t)})},t.prototype.error=function(t){this.forEachObserver(function(e){e.error(t)}),this.close(t)},t.prototype.complete=function(){this.forEachObserver(function(t){t.complete()}),this.close()},t.prototype.subscribe=function(t,e,n){var i,o=this;if(void 0===t&&void 0===e&&void 0===n)throw new Error("Missing Observer.");i=function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=0,i=["next","error","complete"];n<i.length;n++){var o=i[n];if(o in t&&"function"==typeof t[o])return!0}return!1}(t)?t:{next:t,error:e,complete:n},void 0===i.next&&(i.next=S),void 0===i.error&&(i.error=S),void 0===i.complete&&(i.complete=S);var r=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{o.finalError?i.error(o.finalError):i.complete()}catch(t){}}),this.observers.push(i),r},t.prototype.unsubscribeOne=function(t){void 0===this.observers||void 0===this.observers[t]||(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},t.prototype.forEachObserver=function(t){if(!this.finalized)for(var e=0;e<this.observers.length;e++)this.sendOne(e,t)},t.prototype.sendOne=function(t,e){var n=this;this.task.then(function(){if(void 0!==n.observers&&void 0!==n.observers[t])try{e(n.observers[t])}catch(i){"undefined"!=typeof console&&console.error&&console.error(i)}})},t.prototype.close=function(t){var e=this;this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then(function(){e.observers=void 0,e.onNoObservers=void 0}))},t}();function S(){}function E(t){return t&&t._delegate?t._delegate:t}},8873:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,n="millisecond",i="second",o="minute",r="hour",s="day",a="week",c="month",u="quarter",l="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},_={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+m(i,2,"0")+":"+m(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var i=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(i,c),r=n-o<0,s=e.clone().add(i+(r?-1:1),c);return+(-(i+(n-o)/(r?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:l,w:a,d:s,D:h,h:r,m:o,s:i,ms:n,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",b={};b[y]=g;var v="$isDayjsObject",C=function(t){return t instanceof P||!(!t||!t[v])},x=function t(e,n,i){var o;if(!e)return y;if("string"==typeof e){var r=e.toLowerCase();b[r]&&(o=r),n&&(b[r]=n,o=r);var s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var a=e.name;b[a]=e,o=a}return!i&&o&&(y=o),o||!i&&y},w=function(t,e){if(C(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new P(n)},O=_;O.l=x,O.i=C,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var P=function(){function g(t){this.$L=x(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[v]=!0}var m=g.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(p);if(i){var o=i[2]-1||0,r=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)):new Date(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return this.$d.toString()!==d},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,u=!!O.u(e)||e,d=O.p(t),p=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return u?i:i.endOf(s)},f=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},g=this.$W,m=this.$M,_=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case l:return u?p(1,0):p(31,11);case c:return u?p(1,m):p(0,m+1);case a:var b=this.$locale().weekStart||0,v=(g<b?g+7:g)-b;return p(u?_-v:_+(6-v),m);case s:case h:return f(y+"Hours",0);case r:return f(y+"Minutes",1);case o:return f(y+"Seconds",2);case i:return f(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var a,u=O.p(t),d="set"+(this.$u?"UTC":""),p=(a={},a[s]=d+"Date",a[h]=d+"Date",a[c]=d+"Month",a[l]=d+"FullYear",a[r]=d+"Hours",a[o]=d+"Minutes",a[i]=d+"Seconds",a[n]=d+"Milliseconds",a)[u],f=u===s?this.$D+(e-this.$W):e;if(u===c||u===l){var g=this.clone().set(h,1);g.$d[p](f),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(n,u){var h,d=this;n=Number(n);var p=O.p(u),f=function(t){var e=w(d);return O.w(e.date(e.date()+Math.round(t*n)),d)};if(p===c)return this.set(c,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===s)return f(1);if(p===a)return f(7);var g=(h={},h[o]=t,h[r]=e,h[i]=1e3,h)[p]||1,m=this.$d.getTime()+n*g;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var i=t||"YYYY-MM-DDTHH:mm:ssZ",o=O.z(this),r=this.$H,s=this.$m,a=this.$M,c=n.weekdays,u=n.months,l=function(t,n,o,r){return t&&(t[n]||t(e,i))||o[n].slice(0,r)},h=function(t){return O.s(r%12||12,t,"0")},p=n.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(f,function(t,i){return i||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return O.s(e.$y,4,"0");case"M":return a+1;case"MM":return O.s(a+1,2,"0");case"MMM":return l(n.monthsShort,a,u,3);case"MMMM":return l(u,a);case"D":return e.$D;case"DD":return O.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return l(n.weekdaysMin,e.$W,c,2);case"ddd":return l(n.weekdaysShort,e.$W,c,3);case"dddd":return c[e.$W];case"H":return String(r);case"HH":return O.s(r,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(r,s,!0);case"A":return p(r,s,!1);case"m":return String(s);case"mm":return O.s(s,2,"0");case"s":return String(e.$s);case"ss":return O.s(e.$s,2,"0");case"SSS":return O.s(e.$ms,3,"0");case"Z":return o}return null}(t)||o.replace(":","")})}
1,m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,h,d){var p,f=this,g=O.p(h),m=w(n),_=(m.utcOffset()-this.utcOffset())*t,y=this-m,b=function(){return O.m(f,m)};switch(g){case l:p=b()/12;break;case c:p=b();break;case u:p=b()/3;break;case a:p=(y-_)/6048e5;break;case s:p=(y-_)/864e5;break;case r:p=y/e;break;case o:p=y/t;break;case i:p=y/1e3;break;default:p=y}return d?p:O.a(p)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return b[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=x(t,e,!0);return i&&(n.$L=i),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),M=P.prototype;return w.prototype=M,[["$ms",n],["$s",i],["$m",o],["$H",r],["$W",s],["$M",c],["$y",l],["$D",h]].forEach(function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),w.extend=function(t,e){return t.$i||(t(e,P,w),t.$i=!0),w},w.locale=x,w.isDayjs=C,w.unix=function(t){return w(1e3*t)},w.en=b[y],w.Ls=b,w.p={},w}()},2329:function(t,e,n){"use strict";n.d(e,{Z:function(){return i.Z}});var i=n(9759);i.Z.registerVersion("firebase","8.10.1","app"),i.Z.SDK_VERSION="8.10.1"},1336:function(t,e,n){"use strict";n.r(e);var i=n(9759);(function(){var t,e="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},n=function(t){t=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,t];for(var e=0;e<t.length;++e){var n=t[e];if(n&&n.Math==Math)return n}return globalThis}(this);function o(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function r(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:o(t)}}!function(t,i){if(i){var o=n;t=t.split(".");for(var r=0;r<t.length-1;r++){var s=t[r];s in o||(o[s]={}),o=o[s]}(i=i(r=o[t=t[t.length-1]]))!=r&&null!=i&&e(o,t,{configurable:!0,writable:!0,value:i})}}("Promise",function(t){function e(t){this.b=0,this.c=void 0,this.a=[];var e=this.f();try{t(e.resolve,e.reject)}catch(n){e.reject(n)}}function i(){this.a=null}function o(t){return t instanceof e?t:new e(function(e){e(t)})}if(t)return t;i.prototype.b=function(t){if(null==this.a){this.a=[];var e=this;this.c(function(){e.g()})}this.a.push(t)};var s=n.setTimeout;i.prototype.c=function(t){s(t,0)},i.prototype.g=function(){for(;this.a&&this.a.length;){var t=this.a;this.a=[];for(var e=0;e<t.length;++e){var n=t[e];t[e]=null;try{n()}catch(i){this.f(i)}}}this.a=null},i.prototype.f=function(t){this.c(function(){throw t})},e.prototype.f=function(){function t(t){return function(i){n||(n=!0,t.call(e,i))}}var e=this,n=!1;return{resolve:t(this.m),reject:t(this.g)}},e.prototype.m=function(t){if(t===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.s(t);else{t:switch(typeof t){case"object":var n=null!=t;break t;case"function":n=!0;break t;default:n=!1}n?this.v(t):this.h(t)}},e.prototype.v=function(t){var e=void 0;try{e=t.then}catch(n){return void this.g(n)}"function"==typeof e?this.u(e,t):this.h(t)},e.prototype.g=function(t){this.i(2,t)},e.prototype.h=function(t){this.i(1,t)},e.prototype.i=function(t,e){if(0!=this.b)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.b);this.b=t,this.c=e,this.l()},e.prototype.l=function(){if(null!=this.a){for(var t=0;t<this.a.length;++t)a.b(this.a[t]);this.a=null}};var a=new i;return e.prototype.s=function(t){var e=this.f();t.Ra(e.resolve,e.reject)},e.prototype.u=function(t,e){var n=this.f();try{t.call(e,n.resolve,n.reject)}catch(i){n.reject(i)}},e.prototype.then=function(t,n){function i(t,e){return"function"==typeof t?function(e){try{o(t(e))}catch(n){r(n)}}:e}var o,r,s=new e(function(t,e){o=t,r=e});return this.Ra(i(t,o),i(n,r)),s},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.Ra=function(t,e){function n(){switch(i.b){case 1:t(i.c);break;case 2:e(i.c);break;default:throw Error("Unexpected state: "+i.b)}}var i=this;null==this.a?a.b(n):this.a.push(n)}
1,e.resolve=o,e.reject=function(t){return new e(function(e,n){n(t)})},e.race=function(t){return new e(function(e,n){for(var i=r(t),s=i.next();!s.done;s=i.next())o(s.value).Ra(e,n)})},e.all=function(t){var n=r(t),i=n.next();return i.done?o([]):new e(function(t,e){function r(e){return function(n){s[e]=n,0==--a&&t(s)}}var s=[],a=0;do{s.push(void 0),a++,o(i.value).Ra(r(s.length-1),e),i=n.next()}while(!i.done)})},e});var s=s||{},a=this||self,c=/^[\w+/_-]+[=]{0,2}$/,u=null;function l(t){return(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&c.test(t)?t:""}function h(){}function d(t){var e=typeof t;return"object"!=e?e:t?Array.isArray(t)?"array":e:"null"}function p(t){var e=d(t);return"array"==e||"object"==e&&"number"==typeof t.length}function f(t){return"function"==d(t)}function g(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function m(t){return Object.prototype.hasOwnProperty.call(t,_)&&t[_]||(t[_]=++y)}var _="closure_uid_"+(1e9*Math.random()>>>0),y=0;function b(t,e,n){return t.call.apply(t.bind,arguments)}function v(t,e,n){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function C(t,e,n){return(C=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?b:v).apply(null,arguments)}function x(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}var w=Date.now;function O(t,e){function n(){}n.prototype=e.prototype,t.bb=e.prototype,t.prototype=new n,t.prototype.constructor=t}function P(t){return t}
1function M(t,e,n){this.code=S+t,this.message=e||E[t]||"",this.a=n||null}function T(t){var e=t&&t.code;return e?new M(e.substring(S.length),t.message,t.serverResponse):null}O(M,Error),M.prototype.w=function(){var t={code:this.code,message:this.message};return this.a&&(t.serverResponse=this.a),t},M.prototype.toJSON=function(){return this.w()};var k,S="auth/",E={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
1ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invali
1d-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},A={ld:{Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",$a:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Xa:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},sd:{Ua:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",$a:"https://securetoken.googleapis.com/v1/token",Xa:"https://identitytoolkit.googleapis.com/v2/",id:"p"},ud:{Ua:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",$a:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Xa:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},vd:{Ua:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",$a:"https://test-securetoken.sandbox.googleapis.com/v1/token",Xa:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function I(t){for(var e in A)if(A[e].id===t)return{firebaseEndpoint:(t=A[e]).Ua,secureTokenEndpoint:t.$a,identityPlatformEndpoint:t.Xa};return null}function R(t){if(!t)return!1;
1try{return!!t.$goog_Thenable}catch(e){return!1}}function N(t){if(Error.captureStackTrace)Error.captureStackTrace(this,N);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function L(t,e){for(var n="",i=(t=t.split("%s")).length-1,o=0;o<i;o++)n+=t[o]+(o<e.length?e[o]:"%s");N.call(this,n+t[i])}function D(t,e){throw new L("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function F(t,e){this.c=t,this.f=e,this.b=0,this.a=null}function U(t,e){t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}function Z(){this.b=this.a=null}k=I("__EID__")?"__EID__":void 0,O(N,Error),N.prototype.name="CustomError",O(L,N),L.prototype.name="AssertionError",F.prototype.get=function(){if(0<this.b){this.b--;var t=this.a;this.a=t.next,t.next=null}else t=this.c();return t};var q=new F(function(){return new j},function(t){t.reset()});function V(){var t=ye,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function j(){this.next=this.b=this.a=null}Z.prototype.add=function(t,e){var n=q.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},j.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},j.prototype.reset=function(){this.next=this.b=this.a=null};var z=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},G=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var i=t.length,o="string"==typeof t?t.split(""):t,r=0;r<i;r++)r in o&&e.call(n,o[r],r,t)},B=Array.prototype.filter?function(t,e){return Array.prototype.filter.call(t,e,void 0)}:function(t,e){for(var n=t.length,i=[],o=0,r="string"==typeof t?t.split(""):t,s=0;s<n;s++)if(s in r){var a=r[s];e.call(void 0,a,s,t)&&(i[o++]=a)}return i},H=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var n=t.length,i=Array(n),o="string"==typeof t?t.split(""):t,r=0;r<n;r++)r in o&&(i[r]=e.call(void 0,o[r],r,t));return i},Y=Array.prototype.some?function(t,e){return Array.prototype.some.call(t,e,void 0)}:function(t,e){for(var n=t.length,i="string"==typeof t?t.split(""):t,o=0;o<n;o++)if(o in i&&e.call(void 0,i[o],o,t))return!0;return!1};function Q(t,e){return 0<=z(t,e)}function J(t,e){var n;return(n=0<=(e=z(t,e)))&&Array.prototype.splice.call(t,e,1),n}function $(t,e){!function(t,e){for(var n="string"==typeof t?t.split(""):t,i=t.length-1;0<=i;--i)i in n&&e.call(void 0,n[i],i,t)}(t,function(n,i){e.call(void 0,n,i,t)&&Array.prototype.splice.call(t,i,1)})}function W(t){return Array.prototype.concat.apply([],arguments)}function K(t){var e=t.length;if(0<e){for(var n=Array(e),i=0;i<e;i++)n[i]=t[i];return n}return[]}var X,tt=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},et=/&/g,nt=/</g,it=/>/g,ot=/"/g,rt=/'/g,st=/\x00/g,at=/[\x00&<>"']/;function ct(t,e){return-1!=t.indexOf(e)}function ut(t,e){return t<e?-1:t>e?1:0}t:{var lt=a.navigator;if(lt){var ht=lt.userAgent;if(ht){X=ht;break t}}X=""}function dt(t){return ct(X,t)}function pt(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function ft(t){for(var e in t)return!1;return!0}function gt(t){var e,n={};for(e in t)n[e]=t[e];return n}var mt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function _t(t,e){for(var n,i,o=1;o<arguments.length;o++){for(n in i=arguments[o])t[n]=i[n];for(var r=0;r<mt.length;r++)n=mt[r],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}function yt(t,e){t:{try{var n=t&&t.ownerDocument,i=n&&(n.defaultView||n.parentWindow);if((i=i||a).Element&&i.Location){var o=i;break t}}catch(s){}o=null}if(o&&void 0!==o[e]&&(!t||!(t instanceof o[e])&&(t instanceof o.Location||t instanceof o.Element))){if(g(t))try{var r=t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t)}catch(s){r="<object could not be stringified>"}else r=void 0===t?"undefined":null===t?"null":typeof t;D("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,r)}}function bt(t,e){this.a=t===wt&&e||"",this.b=xt}function vt(t){return t instanceof bt&&t.constructor===bt&&t.b===xt?t.a:(D("expected object of type Const, got '"+t+"'"),"type_error:Const")}bt.prototype.ta=!0,bt.prototype.sa=function(){return this.a},bt.prototype.toString=function(){return"Const{"+this.a+"}"};var Ct,xt={},wt={};function Ot(){if(void 0===Ct){var t=null,e=a.trustedTypes;if(e&&e.createPolicy){try{t=e.createPolicy("goog#html",{createHTML:P,createScript:P,createScriptURL:P})}catch(n){a.console&&a.console.error(n.message)}Ct=t}else Ct=t}return Ct}function Pt(t,e){this.a=e===Et?t:""}function Mt(t){return t instanceof Pt&&t.constructor===Pt?t.a:(D("expected object of type TrustedResourceUrl, got '"+t+"' of type "+d(t)),"type_error:TrustedResourceUrl")}function Tt(t,e){var n=vt(t);if(!St.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return function(t){var e=Ot();return new Pt(t=e?e.createScriptURL(t):t,Et)}(t=n.replace(kt,function(t,i){if(!Object.prototype.hasOwnProperty.call(e,i))throw Error('Found marker, "'+i+'", in format str
1ing, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(e));return(t=e[i])instanceof bt?vt(t):encodeURIComponent(String(t))}))}Pt.prototype.ta=!0,Pt.prototype.sa=function(){return this.a.toString()},Pt.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var kt=/%{(\w+)}/g,St=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Et={};function At(t,e){this.a=e===Ut?t:""}function It(t){return t instanceof At&&t.constructor===At?t.a:(D("expected object of type SafeUrl, got '"+t+"' of type "+d(t)),"type_error:SafeUrl")}At.prototype.ta=!0,At.prototype.sa=function(){return this.a.toString()},At.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Rt=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,Nt=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Lt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Dt(t){if(t instanceof At)return t;if(t="object"==typeof t&&t.ta?t.sa():String(t),Lt.test(t))t=new At(t,Ut);else{var e=(t=(t=String(t)).replace(/(%0A|%0D)/g,"")).match(Nt);t=e&&Rt.test(e[1])?new At(t,Ut):null}return t}function Ft(t){return t instanceof At?t:(t="object"==typeof t&&t.ta?t.sa():String(t),Lt.test(t)||(t="about:invalid#zClosurez"),new At(t,Ut))}var Ut={},Zt=new At("about:invalid#zClosurez",Ut);function qt(t,e,n){this.a=n===Vt?t:""}qt.prototype.ta=!0,qt.prototype.sa=function(){return this.a.toString()},qt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Vt={};function jt(t,e,n,i){return t=t instanceof At?t:Ft(t),e=e||a,n=n instanceof bt?vt(n):n||"",e.open(It(t),n,i,void 0)}function zt(t,e){for(var n=t.split("%s"),i="",o=Array.prototype.slice.call(arguments,1);o.length&&1<n.length;)i+=n.shift()+o.shift();return i+n.join("%s")}function Gt(t){return at.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(et,"&amp;")),-1!=t.indexOf("<")&&(t=t.replace(nt,"&lt;")),-1!=t.indexOf(">")&&(t=t.replace(it,"&gt;")),-1!=t.indexOf('"')&&(t=t.replace(ot,"&quot;")),-1!=t.indexOf("'")&&(t=t.replace(rt,"&#39;")),-1!=t.indexOf("\0")&&(t=t.replace(st,"&#0;"))),t}function Bt(t){return Bt[" "](t),t}Bt[" "]=h;var Ht,Yt,Qt=dt("Opera"),Jt=dt("Trident")||dt("MSIE"),$t=dt("Edge"),Wt=$t||Jt,Kt=dt("Gecko")&&!(ct(X.toLowerCase(),"webkit")&&!dt("Edge"))&&!(dt("Trident")||dt("MSIE"))&&!dt("Edge"),Xt=ct(X.toLowerCase(),"webkit")&&!dt("Edge");function te(){var t=a.document;return t?t.documentMode:void 0}t:{var ee="",ne=(Yt=X,Kt?/rv:([^\);]+)(\)|;)/.exec(Yt):$t?/Edge\/([\d\.]+)/.exec(Yt):Jt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Yt):Xt?/WebKit\/(\S+)/.exec(Yt):Qt?/(?:Version)[ \/]?(\S+)/.exec(Yt):void 0);if(ne&&(ee=ne?ne[1]:""),Jt){var ie=te();if(null!=ie&&ie>parseFloat(ee)){Ht=String(ie);break t}}Ht=ee}var oe={};function re(t){return function(t,e){var n=oe;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,function(){for(var e=0,n=tt(String(Ht)).split("."),i=tt(String(t)).split("."),o=Math.max(n.length,i.length),r=0;0==e&&r<o;r++){var s=n[r]||"",a=i[r]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],0==s[0].length&&0==a[0].length)break;e=ut(0==s[1].length?0:parseInt(s[1],10),0==a[1].length?0:parseInt(a[1],10))||ut(0==s[2].length,0==a[2].length)||ut(s[2],a[2]),s=s[3],a=a[3]}while(0==e)}return 0<=e})}var se=a.document&&Jt&&(te()||parseInt(Ht,10))||void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(Yt){}var ae=!Jt||9<=Number(se);function ce(t){var e=document;return"string"==typeof t?e.getElementById(t):t}function ue(t,e){pt(e,function(e,n){e&&"object"==typeof e&&e.ta&&(e=e.sa()),"style"==n?t.style.cssText=e:"class"==n?t.className=e:"for"==n?t.htmlFor=e:de.hasOwnProperty(n)?t.setAttribute(de[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e})}var le,he,de={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",
1nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function pe(t,e,n){function i(n){n&&e.appendChild("string"==typeof n?t.createTextNode(n):n)}for(var o=2;o<n.length;o++){var r=n[o];if(!p(r)||g(r)&&0<r.nodeType)i(r);else{t:{if(r&&"number"==typeof r.length){if(g(r)){var s="function"==typeof r.item||"string"==typeof r.item;break t}if(f(r)){s="function"==typeof r.item;break t}}s=!1}G(s?K(r):r,i)}}}function fe(t,e){return e=String(e),"application/xhtml+xml"===t.contentType&&(e=e.toLowerCase()),t.createElement(e)}function ge(t){a.setTimeout(function(){throw t},0)}function me(t,e){he||function(){if(a.Promise&&a.Promise.resolve){var t=a.Promise.resolve(void 0);he=function(){t.then(be)}}else he=function(){var t=be;!f(a.setImmediate)||a.Window&&a.Window.prototype&&!dt("Edge")&&a.Window.prototype.setImmediate==a.setImmediate?(le||(le=function(){var t=a.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!dt("Presto")&&(t=function(){var t=fe(document,"IFRAME");t.style.display="none",document.documentElement.appendChild(t);var e=t.contentWindow;(t=e.document).open(),t.close();var n="callImmediate"+Math.random(),i="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=C(function(t){("*"==i||t.origin==i)&&t.data==n&&this.port1.onmessage()},this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,i)}}}),void 0!==t&&!dt("Trident")&&!dt("MSIE")){var e=new t,n={},i=n;return e.port1.onmessage=function(){if(void 0!==n.next){var t=(n=n.next).Hb;n.Hb=null,t()}},function(t){i.next={Hb:t},i=i.next,e.port2.postMessage(0)}}return function(t){a.setTimeout(t,0)}}()),le(t)):a.setImmediate(t)}}(),_e||(he(),_e=!0),ye.add(t,e)}var _e=!1,ye=new Z;function be(){for(var t;t=V();){try{t.a.call(t.b)}catch(e){ge(e)}U(q,t)}_e=!1}function ve(t,e){if(this.a=Ce,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=h)try{var n=this;t.call(e,function(t){Ne(n,xe,t)},function(t){if(!(t instanceof Ve))try{throw t instanceof Error?t:Error("Promise rejected.")}catch(e){}Ne(n,we,t)})}catch(i){Ne(this,we,i)}}var Ce=0,xe=2,we=3;function Oe(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}Oe.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Pe=new F(function(){return new Oe},function(t){t.reset()});function Me(t,e,n){var i=Pe.get();return i.g=t,i.b=e,i.f=n,i}function Te(t){if(t instanceof ve)return t;var e=new ve(h);return Ne(e,xe,t),e}
1function ke(t){return new ve(function(e,n){n(t)})}function Se(t,e,n){Le(t,e,n,null)||me(x(e,t))}function Ee(t){return new ve(function(e){var n=t.length,i=[];if(n)for(var o=function(t,o,r){n--,i[t]=o?{Qb:!0,value:r}:{Qb:!1,reason:r},0==n&&e(i)},r=0;r<t.length;r++)Se(t[r],x(o,r,!0),x(o,r,!1));else e(i)})}function Ae(t,e){if(t.a==Ce)if(t.c){var n=t.c;if(n.b){for(var i=0,o=null,r=null,s=n.b;s&&(s.c||(i++,s.a==t&&(o=s),!(o&&1<i)));s=s.next)o||(r=s);o&&(n.a==Ce&&1==i?Ae(n,e):(r?((i=r).next==n.f&&(n.f=i),i.next=i.next.next):Fe(n),Ue(n,o,we,e)))}t.c=null}else Ne(t,we,e)}function Ie(t,e){t.b||t.a!=xe&&t.a!=we||De(t),t.f?t.f.next=e:t.b=e,t.f=e}function Re(t,e,n,i){var o=Me(null,null,null);return o.a=new ve(function(t,r){o.g=e?function(n){try{var o=e.call(i,n);t(o)}catch(s){r(s)}}:t,o.b=n?function(e){try{var o=n.call(i,e);void 0===o&&e instanceof Ve?r(e):t(o)}catch(s){r(s)}}:r}),o.a.c=t,Ie(t,o),o.a}function Ne(t,e,n){t.a==Ce&&(t===n&&(e=we,n=new TypeError("Promise cannot resolve to itself")),t.a=1,Le(n,t.$c,t.ad,t)||(t.i=n,t.a=e,t.c=null,De(t),e!=we||n instanceof Ve||function(t,e){t.g=!0,me(function(){t.g&&qe.call(null,e)})}(t,n)))}function Le(t,e,n,i){if(t instanceof ve)return Ie(t,Me(e||h,n||null,i)),!0;if(R(t))return t.then(e,n,i),!0;if(g(t))try{var o=t.then;if(f(o))return function(t,e,n,i,o){function r(t){s||(s=!0,i.call(o,t))}var s=!1;try{e.call(t,function(t){s||(s=!0,n.call(o,t))},r)}catch(a){r(a)}}(t,o,e,n,i),!0}catch(r){return n.call(i,r),!0}return!1}function De(t){t.h||(t.h=!0,me(t.gc,t))}function Fe(t){var e=null;return t.b&&(t.b=(e=t.b).next,e.next=null),t.b||(t.f=null),e}function Ue(t,e,n,i){if(n==we&&e.b&&!e.c)for(;t&&t.g;t=t.c)t.g=!1;if(e.a)e.a.c=null,Ze(e,n,i);else try{e.c?e.g.call(e.f):Ze(e,n,i)}catch(o){qe.call(null,o)}U(Pe,e)}function Ze(t,e,n){e==xe?t.g.call(t.f,n):t.b&&t.b.call(t.f,n)}ve.prototype.then=function(t,e,n){return Re(this,f(t)?t:null,f(e)?e:null,n)},ve.prototype.$goog_Thenable=!0,(t=ve.prototype).oa=function(t,e){return(t=Me(t,t,e)).c=!0,Ie(this,t),this},t.o=function(t,e){return Re(this,null,t,e)},t.cancel=function(t){if(this.a==Ce){var e=new Ve(t);me(function(){Ae(this,e)},this)}},t.$c=function(t){this.a=Ce,Ne(this,xe,t)},t.ad=function(t){this.a=Ce,Ne(this,we,t)},t.gc=function(){for(var t;t=Fe(this);)Ue(this,t,this.a,this.i);this.h=!1};var qe=ge;function Ve(t){N.call(this,t)}function je(){0!=ze&&(Ge[m(this)]=this),this.ya=this.ya,this.pa=this.pa}O(Ve,N),Ve.prototype.name="cancel";var ze=0,Ge={};function Be(t){if(!t.ya&&(t.ya=!0,t.Da(),0!=ze)){var e=m(t);if(0!=ze&&t.pa&&0<t.pa.length)throw Error(t+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete Ge[e]}}je.prototype.ya=!1,je.prototype.Da=function(){if(this.pa)for(;this.pa.length;)this.pa.shift()()};var He=Object.freeze||function(t){return t},Ye=!Jt||9<=Number(se),Qe=Jt&&!re("9"),Je=function(){if(!a.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{a.addEventListener("test",h,e),a.removeEventListener("test",h,e)}catch(n){}return t}();function $e(t,e){this.type=t,this.b=this.target=e,this.defaultPrevented=!1}function We(t,e){if($e.call(this,t?t.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,t){var n=this.type=t.type,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.b=e,e=t.relatedTarget){if(Kt){t:{try{Bt(e.nodeName);var o=!0;break t}catch(r){}o=!1}o||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:Ke[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}$e.prototype.preventDefault=function(){this.defaultPrevented=!0},O(We,$e);var Ke=He({2:"touch",3:"pen",4:"mouse"});We.prototype.preventDefault=function(){We.bb.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,Qe)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}},We.prototype.g=function(){return this.a};var Xe="closure_listenable_"+(1e6*Math.random()|0),tn=0;function en(t,e,n,i,o){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!i,this.Wa=o,this.key=++tn,this.wa=this.Qa=!1}function nn(t){t.wa=!0,t.listener=null,t.proxy=null,t.src=null,t.Wa=null}function on(t){this.src=t,this.a={},this.b=0}function rn(t,e){var n=e.type;n in t.a&&J(t.a[n],e)&&(nn(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function sn(t,e,n,i){for(var o=0;o<t.length;++o){var r=t[o];if(!r.wa&&r.listener==e&&r.capture==!!n&&r.Wa==i)return o}return-1}on.prototype.add=function(t,e,n,i,o){var r=t.toString();(t=this.a[r])||(t=this.a[r]=[],this.b++);var s=sn(t,e,i,o);return-1<s?(e=t[s],n||(e.Qa=!1)):((e=new en(e,this.src,r,!!i,o)).Qa=n,t.pu
1sh(e)),e};var an="closure_lm_"+(1e6*Math.random()|0),cn={};function un(t,e,n,i,o){if(i&&i.once)hn(t,e,n,i,o);else if(Array.isArray(e))for(var r=0;r<e.length;r++)un(t,e[r],n,i,o);else n=vn(n),t&&t[Xe]?xn(t,e,n,g(i)?!!i.capture:!!i,o):ln(t,e,n,!1,i,o)}function ln(t,e,n,i,o,r){if(!e)throw Error("Invalid event type");var s=g(o)?!!o.capture:!!o,a=yn(t);if(a||(t[an]=a=new on(t)),!(n=a.add(e,n,i,s,r)).proxy)if(i=function(){var t=_n,e=Ye?function(n){return t.call(e.src,e.listener,n)}:function(n){if(!(n=t.call(e.src,e.listener,n)))return n};return e}(),n.proxy=i,i.src=t,i.listener=n,t.addEventListener)Je||(o=s),void 0===o&&(o=!1),t.addEventListener(e.toString(),i,o);else if(t.attachEvent)t.attachEvent(fn(e.toString()),i);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(i)}}function hn(t,e,n,i,o){if(Array.isArray(e))for(var r=0;r<e.length;r++)hn(t,e[r],n,i,o);else n=vn(n),t&&t[Xe]?wn(t,e,n,g(i)?!!i.capture:!!i,o):ln(t,e,n,!0,i,o)}function dn(t,e,n,i,o){if(Array.isArray(e))for(var r=0;r<e.length;r++)dn(t,e[r],n,i,o);else i=g(i)?!!i.capture:!!i,n=vn(n),t&&t[Xe]?(t=t.v,(e=String(e).toString())in t.a&&-1<(n=sn(r=t.a[e],n,i,o))&&(nn(r[n]),Array.prototype.splice.call(r,n,1),0==r.length&&(delete t.a[e],t.b--))):t&&(t=yn(t))&&(e=t.a[e.toString()],t=-1,e&&(t=sn(e,n,i,o)),(n=-1<t?e[t]:null)&&pn(n))}function pn(t){if("number"!=typeof t&&t&&!t.wa){var e=t.src;if(e&&e[Xe])rn(e.v,t);else{var n=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(n,i,t.capture):e.detachEvent?e.detachEvent(fn(n),i):e.addListener&&e.removeListener&&e.removeListener(i),(n=yn(e))?(rn(n,t),0==n.b&&(n.src=null,e[an]=null)):nn(t)}}}function fn(t){return t in cn?cn[t]:cn[t]="on"+t}function gn(t,e,n,i){var o=!0;if((t=yn(t))&&(e=t.a[e.toString()]))for(e=e.concat(),t=0;t<e.length;t++){var r=e[t];r&&r.capture==n&&!r.wa&&(r=mn(r,i),o=o&&!1!==r)}return o}function mn(t,e){var n=t.listener,i=t.Wa||t.src;return t.Qa&&pn(t),n.call(i,e)}function _n(t,e){if(t.wa)return!0;if(!Ye){if(!e)t:{e=["window","event"];for(var n=a,i=0;i<e.length;i++)if(null==(n=n[e[i]])){e=null;break t}e=n}if(e=new We(i=e,this),n=!0,!(0>i.keyCode||null!=i.returnValue)){t:{var o=!1;if(0==i.keyCode)try{i.keyCode=-1;break t}catch(s){o=!0}(o||null==i.returnValue)&&(i.returnValue=!0)}for(i=[],o=e.b;o;o=o.parentNode)i.push(o);for(t=t.type,o=i.length-1;0<=o;o--){e.b=i[o];var r=gn(i[o],t,!0,e);n=n&&r}for(o=0;o<i.length;o++)e.b=i[o],r=gn(i[o],t,!1,e),n=n&&r}return n}return mn(t,new We(e,this))}function yn(t){return(t=t[an])instanceof on?t:null}var bn="__closure_events_fn_"+(1e9*Math.random()>>>0);function vn(t){return f(t)?t:(t[bn]||(t[bn]=function(e){return t.handleEvent(e)}),t[bn])}function Cn(){je.call(this),this.v=new on(this),this.bc=this,this.hb=null}function xn(t,e,n,i,o){t.v.add(String(e),n,!1,i,o)}function wn(t,e,n,i,o){t.v.add(String(e),n,!0,i,o)}function On(t,e,n,i){if(!(e=t.v.a[String(e)]))return!0;e=e.concat();for(var o=!0,r=0;r<e.length;++r){var s=e[r];if(s&&!s.wa&&s.capture==n){var a=s.listener,c=s.Wa||s.src;s.Qa&&rn(t.v,s),o=!1!==a.call(c,i)&&o}}return o&&!i.defaultPrevented}function Pn(t,e,n){if(f(t))n&&(t=C(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=C(t.handleEvent,t)}return 2147483647<Number(e)?-1:a.setTimeout(t,e||0)}function Mn(t){var e=null;return new ve(function(n,i){-1==(e=Pn(function(){n(void 0)},t))&&i(Error("Failed to schedule timer."))}).o(function(t){throw a.clearTimeout(e),t})}function Tn(t){if(t.X&&"function"==typeof t.X)return t.X();if("string"==typeof t)return t.split("");if(p(t)){for(var e=[],n=t.length,i=0;i<n;i++)e.push(t[i]);return e}for(i in e=[],n=0,t)e[n++]=t[i];return e}function kn(t){if(t.Y&&"function"==typeof t.Y)return t.Y();if(!t.X||"function"!=typeof t.X){if(p(t)||"string"==typeof t){var e=[];t=t.length;for(var n=0;n<t;n++)e.push(n);return e}for(var i in e=[],n=0,t)e[n++]=i;return e}}function Sn(t,e){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else if(t)if(t instanceof Sn)for(n=t.Y(),i=0;i<n.length;i++)this.set(n[i],t.get(n[i]));else for(i in t)this.set(i,t[i])}function En(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var i=t.a[e];An(t.b,i)&&(t.a[n++]=i),e++}t.a.length=n}if(t.c!=t.a.length){var o={};for(n=e=0;e<t.a.length;)An(o,i=t.a[e])||(t.a[n++]=i,o[i]=1),e++;t.a.length=n}}function An(t,e){return Object.prototype.hasOwnProperty.call(t,e)}O(Cn,je),Cn.prototype[Xe]=!0,Cn.prototype.addEventListener=function(t,e,n,i){un(this,t,e,n,i)},Cn.prototype.removeEventListener=function(t,e,n,i){dn(this,t,e,n,i)},Cn.prototype.dispatchEvent=function(t){var e,n=this.hb;if(n)for(e=[];n;n=n.hb)e.push(n);n=this.bc;var i=t.type||t;if("string"==typeof t)t=new $e(t,n);else if(t instanceof $e)t.target=t.target||n;else{var o=t;_t(t=new $e(i,n),o)}if(o=!0,e)for(var r=e.length-1;0<=r;r--){var s=t.b=e[r];o=On(s,i,!0,t)&&o}if(o=On(s=t.b=n,i,!0,t)&&o,o=On(s,i,!1,t)&&o,e)for(r=0;r<e.length;r++)o=On(s=t.b=e[r],i,!1,t)&&o;return o},Cn.prototype.Da=function(){if(Cn.bb.Da.call(this),this.v){var t,e=this.v;for(t in e.a){for(var n=e.a[t],i=0;i<n.length;i++)nn(n[i]);delete e.a[t],e.b--}}this.hb=null},(t=Sn.prototype).X=function(){En(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},t.Y=function(){return En(this),this.a.concat()},t.clear=function(){this.b={},this.c=this.a.length=0},t.get=function(t,e){return An(this.b,t)?this.b[t]:e},t.set=function(t,e){An(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},t.forEach=function(t,e){for(var n=this.Y(),i=0;i<n.length;i++){var o=n[i],r=this.get(o);t.call(e,r,o,this)}};var In=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Rn(t,e){var n;this.a=this.l=this.c="",this.g=null,this.h=this.f="",this.i=!1,t instanceof Rn?(this.i=void 0!==e?e:t.i,Nn(this,t.c),this.l=t.l,this.a=t.a,Ln(this,t.g),this.f=t.f,Dn(this,ei(t.b)),this.h=t.h):t&&(n=String(t).match(In))?(this.i=!!e,Nn(this,n[1]||"",!0),this.l=Vn(n[2]||""),this.a=Vn(n[3]||"",!0),Ln(this,n[4]),this.f=Vn(n[5]||"",!0),Dn(this,n[6]||"",!0),this.h=Vn(n[7]||"")):(this.i=!!e,this.b=new Jn(null,this.i))}function Nn(t,e,n){t.c=n?Vn(e,!0):e,t.c&&(t.c=t.c.replace(/:$/,""))}function Ln(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.g=e}else t.g=null}function Dn(t,e,n){e instanceof Jn?(t.b=e,function(t,e){e&&!t.f&&($n(t),t.c=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(Kn(this,e),ti(this,n,t))},t)),t.f=e}(t.b,t.i)):(n||(e=jn(e,Yn)),t.b=new Jn(e,t.i))}function Fn(t,e,n){t.b.set(e,n)}function Un(t,e){return t.b.get(e)}function Zn(t){return t instanceof Rn?new Rn(t):new Rn(t,void 0)}function qn(t,e,n,i){var o=new Rn(null,void 0);return t&&Nn(o,t),e&&(o.a=e),n&&Ln(o,n),i&&(o.f=i),o}function Vn(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function jn(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,zn),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function zn(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Rn.prototype.toString=function(){var t=[],e=this.c;e&&t.push(jn(e,Gn,!0),":");var n=this.a;return(n||"file"==e)&&(t.push("//"),(e=this.l)&&t.push(jn(e,Gn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.g)&&t.push(":",String(n))),(n=this.f)&&(this.a&&"/"!=n.charAt(0)&&t.push("/"),t.push(jn(n,"/"==n.charAt(0)?Hn:Bn,!0))),(n=this.b.toString())&&t.pu
1sh("?",n),(n=this.h)&&t.push("#",jn(n,Qn)),t.join("")},Rn.prototype.resolve=function(t){var e=new Rn(this),n=!!t.c;n?Nn(e,t.c):n=!!t.l,n?e.l=t.l:n=!!t.a,n?e.a=t.a:n=null!=t.g;var i=t.f;if(n)Ln(e,t.g);else if(n=!!t.f){if("/"!=i.charAt(0))if(this.a&&!this.f)i="/"+i;else{var o=e.f.lastIndexOf("/");-1!=o&&(i=e.f.substr(0,o+1)+i)}if(".."==(o=i)||"."==o)i="";else if(ct(o,"./")||ct(o,"/.")){i=0==o.lastIndexOf("/",0),o=o.split("/");for(var r=[],s=0;s<o.length;){var a=o[s++];"."==a?i&&s==o.length&&r.push(""):".."==a?((1<r.length||1==r.length&&""!=r[0])&&r.pop(),i&&s==o.length&&r.push("")):(r.push(a),i=!0)}i=r.join("/")}else i=o}return n?e.f=i:n=""!==t.b.toString(),n?Dn(e,ei(t.b)):n=!!t.h,n&&(e.h=t.h),e};var Gn=/[#\/\?@]/g,Bn=/[#\?:]/g,Hn=/[#\?]/g,Yn=/[#\?@]/g,Qn=/#/g;function Jn(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function $n(t){t.a||(t.a=new Sn,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var i=t[n].indexOf("="),o=null;if(0<=i){var r=t[n].substring(0,i);o=t[n].substring(i+1)}else r=t[n];e(r,o?decodeURIComponent(o.replace(/\+/g," ")):"")}}}(t.c,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function Wn(t){var e=kn(t);if(void 0===e)throw Error("Keys are undefined");var n=new Jn(null,void 0);t=Tn(t);for(var i=0;i<e.length;i++){var o=e[i],r=t[i];Array.isArray(r)?ti(n,o,r):n.add(o,r)}return n}function Kn(t,e){$n(t),e=ni(t,e),An(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,An((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&En(t)))}function Xn(t,e){return $n(t),e=ni(t,e),An(t.a.b,e)}function ti(t,e,n){Kn(t,e),0<n.length&&(t.c=null,t.a.set(ni(t,e),K(n)),t.b+=n.length)}function ei(t){var e=new Jn;return e.c=t.c,t.a&&(e.a=new Sn(t.a),e.b=t.b),e}function ni(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function ii(t){var e=[];return ri(new oi,t,e),e.join("")}function oi(){}function ri(t,e,n){if(null==e)n.push("null");else{if("object"==typeof e){if(Array.isArray(e)){var i=e;e=i.length,n.push("[");for(var o="",r=0;r<e;r++)n.push(o),ri(t,i[r],n),o=",";return void n.push("]")}if(!(e instanceof String||e instanceof Number||e instanceof Boolean)){for(i in n.push("{"),o="",e)Object.prototype.hasOwnProperty.call(e,i)&&"function"!=typeof(r=e[i])&&(n.push(o),ci(i,n),n.push(":"),ri(t,r,n),o=",");return void n.push("}")}e=e.valueOf()}switch(typeof e){case"string":ci(e,n);break;case"number":n.push(isFinite(e)&&!isNaN(e)?String(e):"null");break;case"boolean":n.push(String(e));break;case"function":n.push("null");break;default:throw Error("Unknown type: "+typeof e)}}}(t=Jn.prototype).add=function(t,e){$n(this),this.c=null,t=ni(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},t.clear=function(){this.a=this.c=null,this.b=0},t.forEach=function(t,e){$n(this),this.a.forEach(function(n,i){G(n,function(n){t.call(e,n,i,this)},this)},this)},t.Y=function(){$n(this);for(var t=this.a.X(),e=this.a.Y(),n=[],i=0;i<e.length;i++)for(var o=t[i],r=0;r<o.length;r++)n.push(e[i]);return n},t.X=function(t){$n(this);var e=[];if("string"==typeof t)Xn(this,t)&&(e=W(e,this.a.get(ni(this,t))));else{t=this.a.X();for(var n=0;n<t.length;n++)e=W(e,t[n])}return e},t.set=function(t,e){return $n(this),this.c=null,Xn(this,t=ni(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},t.get=function(t,e){return t&&0<(t=this.X(t)).length?String(t[0]):e},t.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.Y(),n=0;n<e.length;n++){var i=e[n],o=encodeURIComponent(String(i));i=this.X(i);for(var r=0;r<i.length;r++){var s=o;""!==i[r]&&(s+="="+encodeURIComponent(String(i[r]))),t.push(s)}}return this.c=t.join("&")};var si={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ai=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function ci(t,e){e.push('"',t.replace(ai,function(t){var e=si[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),si[t]=e),e}),'"')}function ui(){var t=ki();return Jt&&!!se&&11==se||/Edge\/\d+/.test(t)}function li(){return a.window&&a.window.location.href||self&&self.location&&self.location.href||""}function hi(t,e){e=e||a.window;var n="about:blank";t&&(n=It(Dt(t)||Zt)),e.location.href=n}function di(t,e){var n,i=[];for(n in t)n in e?typeof t[n]!=typeof e[n]?i.push(n):"object"==typeof t[n]&&null!=t[n]&&null!=e[n]?0<di(t[n],e[n]).length&&i.push(n):t[n]!==e[n]&&i.push(n):i.push(n);for(n in e)n in t||i.push(n);return i}function pi(t){return!!((t=(t||ki()).toLowerCase()).match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function fi(t){t=t||a.window;try{t.close()}catch(e){}}function gi(t,e,n){var i=Math.floor(1e9*Math.random()).toString();e=e||500,n=n||600;
1var o=(window.screen.availHeight-n)/2,r=(window.screen.availWidth-e)/2;for(s in e={width:e,height:n,top:0<o?o:0,left:0<r?r:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=ki().toLowerCase(),i&&(e.target=i,ct(n,"crios/")&&(e.target="_blank")),Pi(ki())==Oi&&(t=t||"http://localhost",e.scrollbars=!0),n=t||"",(t=e)||(t={}),i=window,e=n instanceof At?n:Dt(void 0!==n.href?n.href:String(n))||Zt,n=t.target||n.target,o=[],t)switch(s){case"width":case"height":case"top":case"left":o.push(s+"="+t[s]);break;case"target":case"noopener":case"noreferrer":break;default:o.push(s+"="+(t[s]?1:0))}var s=o.join(",");if((dt("iPhone")&&!dt("iPod")&&!dt("iPad")||dt("iPad")||dt("iPod"))&&i.navigator&&i.navigator.standalone&&n&&"_self"!=n?(yt(s=fe(document,"A"),"HTMLAnchorElement"),e=e instanceof At?e:Ft(e),s.href=It(e),s.setAttribute("target",n),t.noreferrer&&s.setAttribute("rel","noreferrer"),(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,i,1),s.dispatchEvent(t),s={}):t.noreferrer?(s=jt("",i,n,s),t=It(e),s&&(Wt&&ct(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),s.opener=null,t='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Gt(t)+'">',t=new qt(t=(i=Ot())?i.createHTML(t):t,null,Vt),i=s.document)&&(i.write(function(t){return t instanceof qt&&t.constructor===qt?t.a:(D("expected object of type SafeHtml, got '"+t+"' of type "+d(t)),"type_error:SafeHtml")}(t)),i.close())):(s=jt(e,i,n,s))&&t.noopener&&(s.opener=null),s)try{s.focus()}catch(a){}return s}var mi=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,_i=/^[^@]+@[^@]+$/;function yi(){var t=null;return new ve(function(e){"complete"==a.document.readyState?e():(t=function(){e()},hn(window,"load",t))}).o(function(e){throw dn(window,"load",t),e})}function bi(t){return t=t||ki(),!("file:"!==Ri()&&"ionic:"!==Ri()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function vi(){var t=a.window;try{return!(!t||t==t.top)}catch(e){return!1}}function Ci(){return void 0!==a.WorkerGlobalScope&&"function"==typeof a.importScripts}function xi(){return i.Z.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":i.Z.INTERNAL.hasOwnProperty("node")?"Node":Ci()?"Worker":"Browser"}function wi(){var t=xi();return"ReactNative"===t||"Node"===t}var Oi="Firefox";function Pi(t){var e=t.toLowerCase();return ct(e,"opera/")||ct(e,"opr/")||ct(e,"opios/")?"Opera":ct(e,"iemobile")?"IEMobile":ct(e,"msie")||ct(e,"trident/")?"IE":ct(e,"edge/")?"Edge":ct(e,"firefox/")?Oi:ct(e,"silk/")?"Silk":ct(e,"blackberry")?"Blackberry":ct(e,"webos")?"Webos":!ct(e,"safari/")||ct(e,"chrome/")||ct(e,"crios/")||ct(e,"android")?!ct(e,"chrome/")&&!ct(e,"crios/")||ct(e,"edge/")?ct(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":"Chrome":"Safari"}var Mi={md:"FirebaseCore-web",od:"FirebaseUI-web"};function Ti(t,e){e=e||[];var n,i=[],o={};for(n in Mi)o[Mi[n]]=!0;for(n=0;n<e.length;n++)void 0!==o[e[n]]&&(delete o[e[n]],i.push(e[n]));return i.sort(),(e=i).length||(e=["FirebaseCore-web"]),"Browser"===(i=xi())?i=Pi(o=ki()):"Worker"===i&&(i=Pi(o=ki())+"-"+i),i+"/JsCore/"+t+"/"+e.join(",")}function ki(){return a.navigator&&a.navigator.userAgent||""}function Si(t,e){t=t.split("."),e=e||a;for(var n=0;n<t.length&&"object"==typeof e&&null!=e;n++)e=e[t[n]];return n!=t.length&&(e=void 0),e}function Ei(){try{var t=a.localStorage,e=Ui();if(t)return t.setItem(e,"1"),t.removeItem(e),!ui()||!!a.indexedDB}catch(n){return Ci()&&!!a.indexedDB}return!1}function Ai(){return(Ii()||"chrome-extension:"===Ri()||bi())&&!wi()&&Ei()&&!Ci()}function Ii(){return"http:"===Ri()||"https:"===Ri()}function Ri(){return a.location&&a.location.protocol||null}function Ni(t){return!(pi(t=t||ki())||Pi(t)==Oi)}function Li(t){return void 0===t?null:ii(t)}function Di(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&null!=t[e]&&(n[e]=t[e]);return n}function Fi(t){if(null!==t)return JSON.parse(t)}function Ui(t){return t||Math.floor(1e9*Math.random()).toString()}function Zi(t){return!("Safari"==Pi(t=t||ki())||t.toLowerCase().match(/iphone|ipad|ipod/))}function qi(){var t=a.___jsl;if(t&&t.H)for(var e in t.H)if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=t.H[e].L.concat(),t.CP)for(var n=0;n<t.CP.length;n++)t.CP[n]=null}function Vi(t,e){if(t>
1e)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=ki(),e=xi(),this.b=pi(t)||"ReactNative"===e}function ji(){var t=a.document;return!t||void 0===t.visibilityState||"visible"==t.visibilityState}function zi(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(n){}return null}function Gi(){return!(!Si("fireauth.oauthhelper",a)&&!Si("fireauth.iframe",a))}Vi.prototype.get=function(){var t=a.navigator;return!t||"boolean"!=typeof t.onLine||!Ii()&&"chrome-extension:"!==Ri()&&void 0===t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Bi,Hi={};function Yi(t){Hi[t]||(Hi[t]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t))}try{var Qi={};Object.defineProperty(Qi,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Qi,"abcd",{configurable:!0,enumerable:!0,value:2}),Bi=2==Qi.abcd}catch(Yt){Bi=!1}function Ji(t,e,n){Bi?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function $i(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&Ji(t,n,e[n])}function Wi(t){var e={};return $i(e,t),e}function Ki(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)Ji(e,n,Ki(t[n]));return e}function Xi(t){var e=t&&(t[oo]?"phone":null);if(!(e&&t&&t[io]))throw new M("internal-error","Internal assert: invalid MultiFactorInfo object");Ji(this,"uid",t[io]),Ji(this,"displayName",t[eo]||null);var n=null;t[no]&&(n=new Date(t[no]).toUTCString()),Ji(this,"enrollmentTime",n),Ji(this,"factorId",e)}function to(t){try{var e=new ro(t)}catch(n){e=null}return e}Xi.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var eo="displayName",no="enrolledAt",io="mfaEnrollmentId",oo="phoneInfo";function ro(t){Xi.call(this,t),Ji(this,"phoneNumber",t[oo])}function so(t){var e={},n=t[lo],i=t[po],o=t[fo];if(t=to(t[ho]),!o||o!=co&&o!=uo&&!n||o==uo&&!i||o==ao&&!t)throw Error("Invalid checkActionCode response!");
1o==uo?(e[mo]=n||null,e[yo]=n||null,e[go]=i):(e[mo]=i||null,e[yo]=i||null,e[go]=n||null),e[_o]=t||null,Ji(this,vo,o),Ji(this,bo,Ki(e))}O(ro,Xi),ro.prototype.w=function(){var t=ro.bb.w.call(this);return t.phoneNumber=this.phoneNumber,t};var ao="REVERT_SECOND_FACTOR_ADDITION",co="EMAIL_SIGNIN",uo="VERIFY_AND_CHANGE_EMAIL",lo="email",ho="mfaInfo",po="newEmail",fo="requestType",go="email",mo="fromEmail",_o="multiFactorInfo",yo="previousEmail",bo="data",vo="operation";function Co(t){var e=Un(t=Zn(t),xo)||null,n=Un(t,wo)||null,i=Un(t,Mo)||null;if(i=i&&ko[i]||null,!e||!n||!i)throw new M("argument-error",xo+", "+wo+"and "+Mo+" are required in a valid action code URL.");$i(this,{apiKey:e,operation:i,code:n,continueUrl:Un(t,Oo)||null,languageCode:Un(t,Po)||null,tenantId:Un(t,To)||null})}var xo="apiKey",wo="oobCode",Oo="continueUrl",Po="languageCode",Mo="mode",To="tenantId",ko={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:ao,signIn:co,verifyAndChangeEmail:uo,verifyEmail:"VERIFY_EMAIL"};function So(t){try{return new Co(t)}catch(e){return null}}function Eo(t){var e=t[Lo];if(void 0===e)throw new M("missing-continue-uri");if("string"!=typeof e||"string"==typeof e&&!e.length)throw new M("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[Ao];if(n&&"object"==typeof n){e=n[Uo];var i=n[Do];if(n=n[Fo],"string"==typeof e&&e.length){if(this.a=e,void 0!==i&&"boolean"!=typeof i)throw new M("argument-error",Do+" property must be a boolean when specified.");if(this.g=!!i,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new M("argument-error",Fo+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==e)throw new M("argument-error",Uo+" property must be a non empty string when specified.");if(void 0!==i||void 0!==n)throw new M("missing-android-pkg-name")}}else if(void 0!==n)throw new M("argument-error",Ao+" property must be a non null object when specified.");if(this.f=null,(e=t[No])&&"object"==typeof e){if("string"==typeof(e=e[Zo])&&e.length)this.f=e;else if(void 0!==e)throw new M("argument-error",Zo+" property must be a non empty string when specified.")}else if(void 0!==e)throw new M("argument-error",No+" property must be a non null object when specified.");if(void 0!==(e=t[Ro])&&"boolean"!=typeof e)throw new M("argument-error",Ro+" property must be a boolean when specified.");if(this.c=!!e,void 0!==(t=t[Io])&&("string"!=typeof t||"string"==typeof t&&!t.length))throw new M("argument-error",Io+" property must be a non empty string when specified.");this.i=t||null}var Ao="android",Io="dynamicLinkDomain",Ro="handleCodeInApp",No="iOS",Lo="url",Do="installApp",Fo="minimumVersion",Uo="packageName",Zo="bundleId";function qo(t){var e={};for(var n in e.continueUrl=t.h,e.canHandleCodeInApp=t.c,(e.androidPackageName=t.a)&&(e.androidMinimumVersion=t.b,e.androidInstallApp=t.g),e.iOSBundleId=t.f,e.dynamicLinkDomain=t.i,e)null===e[n]&&delete e[n];return e}var Vo=null;function jo(t){var e=Go(t);if(!(e&&e.sub&&e.iss&&e.aud&&e.exp))throw Error("Invalid JWT");this.h=t,this.a=e.exp,this.i=e.sub,t=Date.now()/1e3,this.g=e.iat||(t>this.a?this.a:t),this.b=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.f=e.firebase&&e.firebase.tenant||null,this.c=!!e.is_anonymous||"anonymous"==this.b}function zo(t){try{return new jo(t)}catch(e){return null}}function Go(t){if(!t||3!=(t=t.split(".")).length)return null;for(var e=(4-(t=t[1]).length%4)%4,n=0;n<e;n++)t+=".";try{var i=function(t){var e=[];return function(t,e){function n(e){for(;i<t.length;){var n=t.charAt(i++),o=Vo[n];if(null!=o)return o;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}!function(){if(!Vo){Vo={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var i=t.concat(e[n].split("")),o=0;o<i.length;o++){var r=i[o];void 0===Vo[r]&&(Vo[r]=o)}}}();for(var i=0;;){var o=n(-1),r=n(0),s=n(64),a=n(64);if(64===a&&-1===o)break;e(o<<2|r>>4),64!=s&&(e(r<<4&240|s>>2),64!=a&&e(s<<6&192|a))}}(t,function(t){e.push(t)}),e}(t);for(t=[],n=e=0;e<i.length;){var o=i[e++];if(128>o)t[n++]=String.fromCharCode(o);else if(191<o&&224>o){var r=i[e++];t[n++]=String.fromCharCode((31&o)<<6|63&r)}else if(239<o&&365>o){r=i[e++];var s=i[e++],a=((7&o)<<18|(63&r)<<12|(63&s)<<6|63&i[e++])-65536;t[n++]=String.fromCharCode(55296+(a>>10)),t[n++]=String.fromCharCode(56320+(1023&a))}
1else r=i[e++],s=i[e++],t[n++]=String.fromCharCode((15&o)<<12|(63&r)<<6|63&s)}return JSON.parse(t.join(""))}catch(c){}return null}jo.prototype.T=function(){return this.f},jo.prototype.l=function(){return this.c},jo.prototype.toString=function(){return this.h};var Bo="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Ho=["client_id","response_type","scope","redirect_uri","state"],Yo={nd:{Ja:"locale",va:700,ua:600,fa:"facebook.com",Ya:Ho},pd:{Ja:null,va:500,ua:750,fa:"github.com",Ya:Ho},qd:{Ja:"hl",va:515,ua:680,fa:"google.com",Ya:Ho},wd:{Ja:"lang",va:485,ua:705,fa:"twitter.com",Ya:Bo},kd:{Ja:"locale",va:640,ua:600,fa:"apple.com",Ya:[]}};function Qo(t){for(var e in Yo)if(Yo[e].fa==t)return Yo[e];return null}function Jo(t){var e={};e["facebook.com"]=tr,e["google.com"]=nr,e["github.com"]=er,e["twitter.com"]=ir;var n=t&&t[Wo];try{if(n)return e[n]?new e[n](t):new Xo(t);if(void 0!==t[$o])return new Ko(t)}catch(i){}return null}var $o="idToken",Wo="providerId";function Ko(t){var e=t[Wo];if(!e&&t[$o]){var n=zo(t[$o]);n&&n.b&&(e=n.b)}if(!e)throw Error("Invalid additional user info!");("anonymous"==e||"custom"==e)&&(e=null),n=!1,void 0!==t.isNewUser?n=!!t.isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(n=!0),Ji(this,"providerId",e),Ji(this,"isNewUser",n)}function Xo(t){Ko.call(this,t),Ji(this,"profile",Ki((t=Fi(t.rawUserInfo||"{}"))||{}))}function tr(t){if(Xo.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function er(t){if(Xo.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Ji(this,"username",this.profile&&this.profile.login||null)}function nr(t){if(Xo.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function ir(t){if(Xo.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Ji(this,"username",t.screenName||null)}function or(t){var e=Zn(t),n=Un(e,"link"),i=Un(Zn(n),"link");return e=Un(e,"deep_link_id"),Un(Zn(e),"link")||e||i||n||t}function rr(t,e){if(!t&&!e)throw new M("internal-error","Internal assert: no raw session string available");if(t&&e)throw new M("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=e||null,this.type=this.a?sr:ar}O(Xo,Ko),O(tr,Xo),O(er,Xo),O(nr,Xo),O(ir,Xo);var sr="enroll",ar="signin";function cr(){}function ur(t,e){return t.then(function(t){if(t[Js]){var n=zo(t[Js]);if(!n||e!=n.i)throw new M("user-mismatch");return t}throw new M("user-mismatch")}).o(function(t){throw t&&t.code&&t.code==S+"user-not-found"?new M("user-mismatch"):t})}function lr(t,e){if(!e)throw new M("internal-error","failed to construct a credential");this.a=e,Ji(this,"providerId",t),Ji(this,"signInMethod",t)}function hr(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function dr(t){if(t&&t.providerId&&t.signInMethod&&0==t.providerId.indexOf("saml.")&&t.pendingToken)try{return new lr(t.providerId,t.pendingToken)}catch(e){}return null}function pr(t,e,n){if(this.a=null,e.idToken||e.accessToken)e.idToken&&Ji(this,"idToken",e.idToken),e.accessToken&&Ji(this,"accessToken",e.accessToken),e.nonce&&!e.pendingToken&&Ji(this,"nonce",e.nonce),e.pendingToken&&(this.a=e.pendingToken);else{if(!e.oauthToken||!e.oauthTokenSecret)throw new M("internal-error","failed to construct a credential");Ji(this,"accessToken",e.oauthToken),Ji(this,"secret",e.oauthTokenSecret)}Ji(this,"providerId",t),Ji(this,"signInMethod",n)}function fr(t){var e={};return t.idToken&&(e.id_token=t.idToken),t.accessToken&&(e.access_token=t.accessToken),t.secret&&(e.oauth_token_secret=t.secret),e.providerId=t.providerId,t.nonce&&!t.a&&(e.nonce=t.nonce),e={postBody:Wn(e).toString(),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function gr(t){if(t&&t.providerId&&t.signInMethod){var e={idToken:t.oauthIdToken,accessToken:t.oauthTokenSecret?null:t.oauthAccessToken,oauthTokenSecret:t.oauthTokenSecret,oauthToken:t.oauthTokenSecret&&t.oauthAccessToken,nonce:t.nonce,pendingToken:t.pendingToken};try{return new pr(t.providerId,e,t.signInMethod)}catch(n){}}return null}function mr(t,e){this.Qc=e||[],$i(this,{providerId:t,isOAuthProvider:!0}),this.Jb={},this.qb=(Qo(t)||{}).Ja||null,this.pb=null}function _r(t){if("string"!=typeof t||0!=t.indexOf("saml."))throw new M("argument-error",'SAML provider IDs must be prefixed with "saml."');mr.call(this,t,[])}function yr(t){mr.call(this,t,Ho),this.a=[]}function br(){yr.call(this,"facebook.com")}function vr(t){if(!t)throw new M("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return g(t)&&(e=t.accessToken),(new br).credential({accessToken:e})}function Cr(){yr.call(this,"github.com")}function xr(t){if(!t)throw new M("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return g(t)&&(e=t.accessToken),(new Cr).credential({accessToken:e})}function wr(){yr.call(this,"google.com"),this.Ca("profile")}function Or(t,e){var n=t;return g(t)&&(n=t.idToken,e=t.accessToken),(new wr).credential({idToken:n,accessToken:e})}function Pr(){mr.call(this,"twitter.com",Bo)}function Mr(t,e){var n=t;if(g(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new M("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new pr("twitter.com",n,"twitter.com")}function Tr(t,e,n){this.a=t,this.f=e,Ji(this,"providerId","password"),Ji(this,"signInMethod",n===Sr.EMAIL_LINK_SIGN_IN_METHOD?Sr.EMAIL_LINK_SIGN_IN_METHOD:Sr.EMAIL_PASSWORD_SIGN_IN_METHOD)}function kr(t){return t&&t.email&&t.password?new Tr(t.email,t.password,t.signInMethod):null}function Sr(){$i(this,{providerId:"password",isOAuthProvider:!1})}function Er(t,e){if(!(e=Ar(e)))throw new M("argument-error","Invalid email link!");return new Tr(t,e.code,Sr.EMAIL_LINK_SIGN_IN_METHOD)}function Ar(t){return(t=So(t=or(t)))&&t.operation===co?t:null}function Ir(t){if(!(t.fb&&t.eb||t.La&&t.ea))throw new M("internal-error");this.a=t,Ji(this,"providerId","phone"),this.fa="phone",Ji(this,"signInMethod","phone")}function Rr(t){if(t&&"phone"===t.providerId&&(t.verificationId&&t.verificationCode||t.temporaryProof&&t.phoneNumber)){var e={};return G(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(n){t[n]&&(e[n]=t[n])}),new Ir(e)}return null}function Nr(t){return t.a.La&&t.a.ea?{temporaryProof:t.a.La,phoneNumber:t.a.ea}:{sessionInfo:t.a.fb,code:t.a.eb}}function Lr(t){try{this.a=t||i.Z.auth()}catch(e){throw new M("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}$i(this,{providerId:"phone",isOAuthProvider:!1})}function Dr(t,e){if(!t)throw new M("missing-verification-id");if(!e)throw new M("missing-verification-code");return new Ir({fb:t,eb:e})}function Fr(t){if(t.temporaryProof&&t.phoneNumber)return new Ir({La:t.temporaryProof,ea:t.phoneNumber});var e=t&&t.providerId;if(!e||"password"===e)return null;var n=t&&t.oauthAccessToken,i=t&&t.oauthTokenSecret,o=t&&t.nonce,r=t&&t.oauthIdToken,s=t&&t.pendingToken;try{switch(e){case"google.com":return Or(r,n);case"facebook.com":return vr(n);case"github.com":return xr(n);case"twitter.com":return Mr(n,i);default:return n||i||r||s?s?0==e.indexOf("saml.")?new lr(e,s):new pr(e,{pendingToken:s,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new yr(e).credential({idToken:r,accessToken:n,rawNonce:o}):null}}catch(a){return null}}function Ur(t){if(!t.isOAuthProvider)throw new M("invalid-oauth-provider")}function Zr(t,e,n,i,o,r,s){if(this.c=t,this.b=e||null,this.g=n||null,this.f=i||null,this.i=r||null,this.h=s||null,this.a=o||null,!this.g&&!this.a)throw new M("invalid-auth-event");
1if(this.g&&this.a)throw new M("invalid-auth-event");if(this.g&&!this.f)throw new M("invalid-auth-event")}function qr(t){return(t=t||{}).type?new Zr(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&T(t.error),t.postBody,t.tenantId):null}function Vr(){this.b=null,this.a=[]}rr.prototype.Ha=function(){return Te(this.a?this.a:this.b)},rr.prototype.w=function(){return this.type==sr?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},cr.prototype.ka=function(){},cr.prototype.b=function(){},cr.prototype.c=function(){},cr.prototype.w=function(){},lr.prototype.ka=function(t){return ma(t,hr(this))},lr.prototype.b=function(t,e){var n=hr(this);return n.idToken=e,_a(t,n)},lr.prototype.c=function(t,e){return ur(ya(t,hr(this)),e)},lr.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},pr.prototype.ka=function(t){return ma(t,fr(this))},pr.prototype.b=function(t,e){var n=fr(this);return n.idToken=e,_a(t,n)},pr.prototype.c=function(t,e){return ur(ya(t,fr(this)),e)},pr.prototype.w=function(){var t={providerId:this.providerId,sign
1InMethod:this.signInMethod};return this.idToken&&(t.oauthIdToken=this.idToken),this.accessToken&&(t.oauthAccessToken=this.accessToken),this.secret&&(t.oauthTokenSecret=this.secret),this.nonce&&(t.nonce=this.nonce),this.a&&(t.pendingToken=this.a),t},mr.prototype.Ka=function(t){return this.Jb=gt(t),this},O(_r,mr),O(yr,mr),yr.prototype.Ca=function(t){return Q(this.a,t)||this.a.push(t),this},yr.prototype.Rb=function(){return K(this.a)},yr.prototype.credential=function(t,e){var n;if(!(n=g(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:e||null}).idToken&&!n.accessToken)throw new M("argument-error","credential failed: must provide the ID token and/or the access token.");return new pr(this.providerId,n,this.providerId)},O(br,yr),Ji(br,"PROVIDER_ID","facebook.com"),Ji(br,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),O(Cr,yr),Ji(Cr,"PROVIDER_ID","github.com"),Ji(Cr,"GITHUB_SIGN_IN_METHOD","github.com"),O(wr,yr),Ji(wr,"PROVIDER_ID","google.com"),Ji(wr,"GOOGLE_SIGN_IN_METHOD","google.com"),O(Pr,mr),Ji(Pr,"PROVIDER_ID","twitter.com"),Ji(Pr,"TWITTER_SIGN_IN_METHOD","twitter.com"),Tr.prototype.ka=function(t){return this.signInMethod==Sr.EMAIL_LINK_SIGN_IN_METHOD?Xa(t,Ma,{email:this.a,oobCode:this.f}):Xa(t,Qa,{email:this.a,password:this.f})},Tr.prototype.b=function(t,e){return this.signInMethod==Sr.EMAIL_LINK_SIGN_IN_METHOD?Xa(t,Ta,{idToken:e,email:this.a,oobCode:this.f}):Xa(t,qa,{idToken:e,email:this.a,password:this.f})},Tr.prototype.c=function(t,e){return ur(this.ka(t),e)},Tr.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},$i(Sr,{PROVIDER_ID:"password"}),$i(Sr,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),$i(Sr,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Ir.prototype.ka=function(t){return t.gb(Nr(this))},Ir.prototype.b=function(t,e){var n=Nr(this);return n.idToken=e,Xa(t,$a,n)},Ir.prototype.c=function(t,e){var n=Nr(this);return n.operation="REAUTH",ur(t=Xa(t,Wa,n),e)},Ir.prototype.w=function(){var t={providerId:"phone"};return this.a.fb&&(t.verificationId=this.a.fb),this.a.eb&&(t.verificationCode=this.a.eb),this.a.La&&(t.temporaryProof=this.a.La),this.a.ea&&(t.phoneNumber=this.a.ea),t},Lr.prototype.gb=function(t,e){var n=this.a.a;return Te(e.verify()).then(function(i){if("string"!=typeof i)throw new M("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");if("recaptcha"===e.type){var o,r=g(t)?t.session:null,s=g(t)?t.phoneNumber:t;return o=r&&r.type==sr?r.Ha().then(function(t){return function(t,e){return Xa(t,ja,e).then(function(t){return t.phoneSessionInfo.sessionInfo})}(n,{idToken:t,phoneEnrollmentInfo:{phoneNumber:s,recaptchaToken:i}})}):r&&r.type==ar?r.Ha().then(function(e){return function(t,e){return Xa(t,za,e).then(function(t){return t.phoneResponseInfo.sessionInfo})}(n,{mfaPendingCredential:e,mfaEnrollmentId:t.multiFactorHint&&t.multiFactorHint.uid||t.multiFactorUid,phoneSignInInfo:{recaptchaToken:i}})}):function(t,e){return Xa(t,Ua,e)}(n,{phoneNumber:s,recaptchaToken:i}),o.then(function(t){return"function"==typeof e.reset&&e.reset(),t},function(t){throw"function"==typeof e.reset&&e.reset(),t})}throw new M("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')})},$i(Lr,{PROVIDER_ID:"phone"}),$i(Lr,{PHONE_SIGN_IN_METHOD:"phone"}),Zr.prototype.getUid=function(){var t=[];return t.push(this.c),this.b&&t.push(this.b),this.f&&t.push(this.f),this.h&&t.push(this.h),t.join("-")},Zr.prototype.T=function(){return this.h},Zr.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var jr,zr=null;function Gr(t){var e="unauthorized-domain",n=void 0,i=Zn(t);t=i.a,"chrome-extension"==(i=i.c)?n=zt("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):"http"==i||"https"==i?n=zt("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):e="operation-not-supported-in-this-environment",M.call(this,e,n)}function Br(t,e,n){M.call(this,t,n),(t=e||{}).Kb&&Ji(this,"email",t.Kb),t.ea&&Ji(this,"phoneNumber",t.ea),t.credential&&Ji(this,"credential",t.credential),t.$b&&Ji(this,"tenantId",t.$b)}function Hr(t){if(t.code){var e=t.code||"";0==e.indexOf(S)&&(e=e.substring(S.length));var n={credential:Fr(t),$b:t.tenantId};if(t.email)n.Kb=t.email;else if(t.phoneNumber)n.ea=t.phoneNumber;else if(!n.credential)return new M(e,t.message||void 0);return new Br(e,n,t.message)}return null}function Yr(){}function Qr(){}function Jr(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<e.length;n++){var i=e[n];try{return new ActiveXObject(i),t.f=i}catch(o){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return t.f}function $r(){}function Wr(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=C(this.qc,this),this.a.onerror=C(this.Tb,this),this.a.onprogress=C(this.rc,this),this.a.ontimeout=C(this.vc,this)}function Kr(t,e){t.readyState=e,t.onreadystatechange&&t.onreadystatechange()}function Xr(t,e,n){this.reset(t,e,n,void 0,void 0)}function ts(t){this.f=t,this.b=this.c=this.a=null}function es(t,e){this.name=t,this.value=e}O(Gr,M),O(Br,M),Br.prototype.w=function(){var t={code:this.code,message:this.message};this.email&&(t.email=this.email),this.phoneNumber&&(t.phoneNumber=this.phoneNumber),this.tenantId&&(t.tenantId=this.tenantId);var e=this.credential&&this.credential.w();return e&&_t(t,e),t},Br.prototype.toJSON=function(){return this.w()},Yr.prototype.c=null,O(Qr,Yr),Qr.prototype.a=function(){var t=Jr(this);return t?new ActiveXObject(t):new XMLHttpRequest},Qr.prototype.b=function(){var t={};return Jr(this)&&(t[0]=!0,t[1]=!0),t},jr=new Qr,O($r,Yr),$r.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new Wr;throw Error("Unsupported browser")},$r.prototype.b=function(){return{}},(t=Wr.prototype).open=function(t,e,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(t,e)},t.send=function(t){if(t){if("string"!=typeof t)throw Error("Only string data is supported");this.a.send(t)}else this.a.send()},t.abort=function(){this.a.abort()},t.setRequestHeader=function(){},t.getResponseHeader=function(t){return"content-type"==t.toLowerCase()?this.a.contentType:""},t.qc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Kr(this,4)},t.Tb=function(){this.status=500,this.response=this.responseText="",Kr(this,4)},t.vc=function(){this.Tb()},t.rc=function(){this.status=200,Kr(this,1)},t.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Xr.prototype.a=null,Xr.prototype.reset=function(t,e,n,i,o){i||w(),delete this.a},es.prototype.toString=function(){return this.name};var ns=new es("SEVERE",1e3),is=new es("WARNING",900),os=new es("CONFIG",700),rs=new es("FINE",500);function ss(t){return t.c?t.c:t.a?ss(t.a):(D("Root logger has no level set."),null)}ts.prototype.log=function(t,e,n){if(t.value>=ss(this).value)for(f(e)&&(e=e()),t=new Xr(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var as={},cs=null;function us(t){var e;if(cs||(cs=new ts(""),as[""]=cs,cs.c=os),!(e=as[t])){e=new ts(t);var n=t.lastIndexOf("."),i=t.substr(n+1);(n=us(t.substr(0,n))).b||(n.b={}),n.b[i]=e,e.a=n,as[t]=e}return e}function ls(t,e){t&&t.log(rs,e,void 0)}function hs(t){this.f=t}function ds(t){Cn.call(this),this.u=t,this.h=void 0,this.readyState=ps,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.l=new Headers,this.b=null,this.s="GET",this.f="",this.a=!1,this.i=us("goog.net.FetchXmlHttp"),this.m=this.c=this.g=null}O(hs,Yr),hs.prototype.a=function(){return new ds(this.f)},hs.prototype.b=function(t){return function(){return t}}({}),O(ds,Cn);var ps=0;function fs(t){t.c.read().then(t.pc.bind(t)).catch(t.Va.bind(t))}function gs(t){t.readyState=4,t.g=null,t.c=null,t.m=null,ms(t)}function ms(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function _s(t){Cn.call(this),this.headers=new Sn,this.D=t||null,this.c=!1,this.C=this.a=null,this.h=this.P=this.l="",this.f=this.N=this.i=this.J=!1,this.g=0,this.s=null,this.m=ys,this.u=this.S=!1}(t=ds.prototype).open=function(t,e){if(this.readyState!=ps)throw this.abort(),Error("Error reopening a connection");this.s=t,this.f=e,this.readyState=1,ms(this)},t.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.l,method:this.s,credentials:this.h,cache:void 0};
1t&&(e.body=t),this.u.fetch(new Request(this.f,e)).then(this.uc.bind(this),this.Va.bind(this))},t.abort=function(){this.response=this.responseText="",this.l=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,gs(this)),this.readyState=ps},t.uc=function(t){this.a&&(this.g=t,this.b||(this.status=this.g.status,this.statusText=this.g.statusText,this.b=t.headers,this.readyState=2,ms(this)),this.a&&(this.readyState=3,ms(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.sc.bind(this),this.Va.bind(this)):void 0!==a.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.m=new TextDecoder,fs(this)):t.text().then(this.tc.bind(this),this.Va.bind(this)))))},t.pc=function(t){if(this.a){var e=this.m.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?gs(this):ms(this),3==this.readyState&&fs(this)}},t.tc=function(t){this.a&&(this.response=this.responseText=t,gs(this))},t.sc=function(t){this.a&&(this.response=t,gs(this))},t.Va=function(t){var e=this.i;e&&e.log(is,"Failed to fetch url "+this.f,t instanceof Error?t:Error(t)),this.a&&gs(this)},t.setRequestHeader=function(t,e){this.l.append(t,e)},t.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.i)&&t.log(is,"Attempting to get response header but no headers have been received for url: "+this.f,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var t=this.i;return t&&t.log(is,"Attempting to get all response headers but no headers have been received for url: "+this.f,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)t.push((n=n.value)[0]+": "+n[1]),n=e.next();return t.join("\r\n")},Object.defineProperty(ds.prototype,"withCredentials",{get:function(){return"include"===this.h},set:function(t){this.h=t?"include":"same-origin"}}),O(_s,Cn);var ys="";_s.prototype.b=us("goog.net.XhrIo");var bs=/^https?$/i,vs=["POST","PUT"];function Cs(t){return"content-type"==t.toLowerCase()}function xs(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,ws(t),Ps(t)}function ws(t){t.J||(t.J=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function Os(t){if(t.c&&void 0!==s)if(t.C[1]&&4==Ts(t)&&2==ks(t))ls(t.b,Ss(t,"Local request error detected and ignored"));else if(t.i&&4==Ts(t))Pn(t.Wb,0,t);else if(t.dispatchEvent("readystatechange"),4==Ts(t)){ls(t.b,Ss(t,"Request complete")),t.c=!1;try{var e,n=ks(t);t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var i=!0;break t;default:i=!1}if(!(e=i)){var o;if(o=0===n){var r=String(t.l).match(In)[1]||null;if(!r&&a.self&&a.self.location){var c=a.self.location.protocol;r=c.substr(0,c.length-1)}o=!bs.test(r?r.toLowerCase():"")}e=o}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var u=2<Ts(t)?t.a.statusText:""}catch(l){ls(t.b,"Can not get status: "+l.message),u=""}t.h=u+" ["+ks(t)+"]",ws(t)}}finally{Ps(t)}}}function Ps(t,e){if(t.a){Ms(t);var n=t.a,i=t.C[0]?h:null;t.a=null,t.C=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=i}catch(o){(t=t.b)&&t.log(ns,"Problem encountered resetting onreadystatechange: "+o.message,void 0)}}}function Ms(t){t.a&&t.u&&(t.a.ontimeout=null),t.s&&(a.clearTimeout(t.s),t.s=null)}function Ts(t){return t.a?t.a.readyState:0}function ks(t){try{return 2<Ts(t)?t.a.status:-1}catch(e){return-1}}function Ss(t,e){return e+" ["+t.P+" "+t.l+" "+ks(t)+"]"}function Es(t){var e=Vs;this.g=[],this.u=e,this.s=t||null,this.f=this.a=!1,this.c=void 0,this.v=this.C=this.i=!1,this.h=0,this.b=null,this.l=0}function As(t,e,n){t.a=!0,t.c=n,t.f=!e,Ls(t)}function Is(t){if(t.a){if(!t.v)throw new Ds(t);t.v=!1}}function Rs(t,e,n,i){t.g.push([e,n,i]),t.a&&Ls(t)}function Ns(t){return Y(t.g,function(t){return f(t[1])})}function Ls(t){if(t.h&&t.a&&Ns(t)){var e=t.h,n=Zs[e];n&&(a.clearTimeout(n.a),delete Zs[e]),t.h=0}t.b&&(t.b.l--,delete t.b),e=t.c;for(var i=n=!1;t.g.length&&!t.i;){var o=t.g.shift(),r=o[0],s=o[1];if(o=o[2],r=t.f?s:r)try{var c=r.call(o||t.s,e);void 0!==c&&(t.f=t.f&&(c==e||c instanceof Error),t.c=e=c),(R(e)||"function"==typeof a.Promise&&e instanceof a.Promise)&&(i=!0,t.i=!0)}catch(u){e=u,t.f=!0,Ns(t)||(n=!0)}}t.c=e,i&&(c=C(t.m,t,!0),i=C(t.m,t,!1),e instanceof Es?(Rs(e,c,i),e.C=!0):e.then(c,i)),n&&(e=new Us(e),Zs[e.a]=e,t.h=e.a)}function Ds(){N.call(this)}function Fs(){N.call(this)}function Us(t){this.a=a.setTimeout(C(this.c,this),0),this.b=t}(t=_s.prototype).Ma=function(){void 0!==s&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",ls(this.b,Ss(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},t.abort=function(){this.a&&this.c&&(ls(this.b,Ss(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Ps(this))},t.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Ps(this,!0)),_s.bb.Da.call(this)},t.Wb=function(){this.ya||(this.N||this.i||this.f?Os(this):this.Jc())},t.Jc=function(){Os(this)},t.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case ys:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var t=this.b;return t&&t.log(ns,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(e){return ls(this.b,"Can not get response: "+e.message),null}},Es.prototype.cancel=function(t){if(this.a)this.c instanceof Es&&this.c.cancel();else{if(this.b){var e=this.b;delete this.b,t?e.cancel(t):(e.l--,0>=e.l&&e.cancel())}this.u?this.u.call(this.s,this):this.v=!0,this.a||(t=new Fs(this),Is(this),As(this,!1,t))}},Es.prototype.m=function(t,e){this.i=!1,As(this,t,e)},Es.prototype.then=function(t,e,n){var i,o,r=new ve(function(t,e){i=t,o=e});return Rs(this,i,function(t){t instanceof Fs?r.cancel():o(t)}),r.then(t,e,n)}
1,Es.prototype.$goog_Thenable=!0,O(Ds,N),Ds.prototype.message="Deferred has already fired",Ds.prototype.name="AlreadyCalledError",O(Fs,N),Fs.prototype.message="Deferred was canceled",Fs.prototype.name="CanceledError",Us.prototype.c=function(){throw delete Zs[this.a],this.b};var Zs={};function qs(t){var e={},n=e.document||document,i=Mt(t).toString(),o=fe(document,"SCRIPT"),r={Xb:o,Ma:void 0},s=new Es(r),c=null,h=null!=e.timeout?e.timeout:5e3;return 0<h&&(c=window.setTimeout(function(){js(o,!0);var t=new Bs(Gs,"Timeout reached for loading script "+i);Is(s),As(s,!1,t)},h),r.Ma=c),o.onload=o.onreadystatechange=function(){o.readyState&&"loaded"!=o.readyState&&"complete"!=o.readyState||(js(o,e.xd||!1,c),Is(s),As(s,!0,null))},o.onerror=function(){js(o,!0,c);var t=new Bs(zs,"Error while loading script "+i);Is(s),As(s,!1,t)},_t(r=e.attributes||{},{type:"text/javascript",charset:"UTF-8"}),ue(o,r),function(t,e){yt(t,"HTMLScriptElement"),t.src=Mt(e),(e=t.ownerDocument&&t.ownerDocument.defaultView)&&e!=a?e=l(e.document):(null===u&&(u=l(a.document)),e=u),e&&t.setAttribute("nonce",e)}(o,t),function(t){var e;return(e=(t||document).getElementsByTagName("HEAD"))&&0!=e.length?e[0]:t.documentElement}(n).appendChild(o),s}function Vs(){if(this&&this.Xb){var t=this.Xb;t&&"SCRIPT"==t.tagName&&js(t,!0,this.Ma)}}function js(t,e,n){null!=n&&a.clearTimeout(n),t.onload=h,t.onerror=h,t.onreadystatechange=h,e&&window.setTimeout(function(){t&&t.parentNode&&t.parentNode.removeChild(t)},0)}var zs=0,Gs=1;function Bs(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),N.call(this,n),this.code=t}function Hs(t){this.f=t}function Ys(t,e,n){if(this.c=t,this.l=(t=e||{}).secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=t.secureTokenTimeout||$s,this.g=gt(t.secureTokenHeaders||Ws),this.h=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=t.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.v=t.firebaseTimeout||Ks,this.a=gt(t.firebaseHeaders||Xs),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==xi(),!(n=a.XMLHttpRequest||n&&i.Z.INTERNAL.node&&i.Z.INTERNAL.node.XMLHttpRequest)&&!Ci())throw new M("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,this.f=Ci()?new hs(self):wi()?new Hs(n):new $r,this.b=null}O(Bs,N),O(Hs,Yr),Hs.prototype.a=function(){return new this.f},Hs.prototype.b=function(){return{}};var Qs,Js="idToken",$s=new Vi(3e4,6e4),Ws={"Content-Type":"application/x-www-form-urlencoded"},Ks=new Vi(3e4,6e4),Xs={"Content-Type":"application/json"};function ta(t,e){e?t.a["X-Firebase-Locale"]=e:delete t.a["X-Firebase-Locale"]}function ea(t,e){e&&(t.l=na("https://securetoken.googleapis.com/v1/token",e),t.h=na("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",e),t.i=na("https://identitytoolkit.googleapis.com/v2/",e))}function na(t,e){return t=Zn(t),e=Zn(e.url),t.f=t.a+t.f,Nn(t,e.c),t.a=e.a,Ln(t,e.g),t.toString()}function ia(t,e){e?(t.a["X-Client-Version"]=e,t.g["X-Client-Version"]=e):(delete t.a["X-Client-Version"],delete t.g["X-Client-Version"])}function oa(t,e,n,i,o,r,s){(function(){var t=ki();return!((t="Chrome"!=Pi(t)?null:(t=t.match(/\sChrome\/(\d+)/i))&&2==t.length?parseInt(t[1],10):null)&&30>t||Jt&&se&&!(9<se))})()||Ci()?t=C(t.u,t):(Qs||(Qs=new ve(function(t,e){!function(t,e){((window.gapi||{}).client||{}).request?t():(a[sa]=function(){((window.gapi||{}).client||{}).request?t():e(Error("CORS_UNSUPPORTED"))},function(t,e){Rs(t,null,e,void 0)}(qs(Tt(ra,{onload:sa})),function(){e(Error("CORS_UNSUPPORTED"))}))}(t,e)})),t=C(t.s,t)),t(e,n,i,o,r,s)}Ys.prototype.T=function(){return this.b},Ys.prototype.u=function(t,e,n,i,o,r){if(Ci()&&(void 0===a.fetch||void 0===a.Headers||void 0===a.Request))throw new M("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var s=new _s(this.f);if(r){s.g=Math.max(0,r);var c=setTimeout(function(){s.dispatchEvent("timeout")},r)}xn(s,"complete",function(){c&&clearTimeout(c);var t=null;try{t=JSON.parse(function(t){try{return t.a?t.a.responseText:""}catch(e){return ls(t.b,"Can not get responseText: "+e.message),""}}(this))||null}catch(n){t=null}e&&e(t)}),wn(s,"ready",function(){c&&clearTimeout(c),Be(this)}),wn(s,"timeout",function(){c&&clearTimeout(c),Be(this),e&&e(null)}),function(t,e,n,i,o){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.l+"; newUri="+e);n=n?n.toUpperCase():"GET",t.l=e,t.h="",t.P=n,t.J=!1,t.c=!0,t.a=t.D?t.D.a():jr.a(),t.C=function(t){return t.c||(t.c=t.b())}(t.D?t.D:jr),t.a.onreadystatechange=C(t.Wb,t);try{ls(t.b,Ss(t,"Opening Xhr")),t.N=!0,t.a.open(n,String(e),!0),t.N=!1}catch(s){return ls(t.b,Ss(t,"Error opening Xhr: "+s.message)),void xs(t,s)}e=i||"";var r=new Sn(t.headers);o&&function(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(p(t)||"string"==typeof t)G(t,e,void 0);else for(var n=kn(t),i=Tn(t),o=i.length,r=0;r<o;r++)e.call(void 0,i[r],n&&n[r],t)}(o,function(t,e){r.set(e,t)}),o=function(t){t:{for(var e=Cs,n=t.length,i="string"==typeof t?t.split(""):t,o=0;o<n;o++)if(o in i&&e.call(void 0,i[o],o,t)){e=o;break t}e=-1}return 0>e?null:"string"==typeof t?t.charAt(e):t[e]}
1(r.Y()),i=a.FormData&&e instanceof a.FormData,!Q(vs,n)||o||i||r.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),r.forEach(function(t,e){this.a.setRequestHeader(e,t)},t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.S&&(t.a.withCredentials=t.S);try{Ms(t),0<t.g&&(t.u=function(t){return Jt&&re(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(t.a),ls(t.b,Ss(t,"Will abort after "+t.g+"ms if incomplete, xhr2 "+t.u)),t.u?(t.a.timeout=t.g,t.a.ontimeout=C(t.Ma,t)):t.s=Pn(t.Ma,t.g,t)),ls(t.b,Ss(t,"Sending request")),t.i=!0,t.a.send(e),t.i=!1}catch(s){ls(t.b,Ss(t,"Send error: "+s.message)),xs(t,s)}}(s,t,n,i,o)};var ra=new bt(wt,"https://apis.google.com/js/client.js?onload=%{onload}"),sa="__fcb"+Math.floor(1e6*Math.random()).toString();function aa(t){if("string"!=typeof(t=t.email)||!_i.test(t))throw new M("invalid-email")}function ca(t){"email"in t&&aa(t)}function ua(t){if(!t[Js])throw t.mfaPendingCredential?new M("multi-factor-auth-required",null,gt(t)):new M("internal-error")}function la(t){if(t.phoneNumber||t.temporaryProof){if(!t.phoneNumber||!t.temporaryProof)throw new M("internal-error")}else{if(!t.sessionInfo)throw new M("missing-verification-id");if(!t.code)throw new M("missing-verification-code")}}Ys.prototype.s=function(t,e,n,i,o){var r=this;Qs.then(function(){window.gapi.client.setApiKey(r.c);var s=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:t,method:n,body:i,headers:o,authType:"none",callback:function(t){window.gapi.auth.setToken(s),e&&e(t)}})}).o(function(t){e&&e({error:{message:t&&t.message||"CORS_UNSUPPORTED"}})})},Ys.prototype.Ab=function(){return Xa(this,Va,{})},Ys.prototype.Cb=function(t,e){return Xa(this,Za,{idToken:t,email:e})},Ys.prototype.Db=function(t,e){return Xa(this,qa,{idToken:t,password:e})};var ha={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function da(t){if(!t.phoneVerificationInfo)throw new M("internal-error");if(!t.phoneVerificationInfo.sessionInfo)throw new M("missing-verification-id");if(!t.phoneVerificationInfo.code)throw new M("missing-verification-code")}function pa(t){if(!t.requestUri||!t.sessionId&&!t.postBody&&!t.pendingToken)throw new M("internal-error")}function fa(t,e){return e.oauthIdToken&&e.providerId&&0==e.providerId.indexOf("oidc.")&&!e.pendingToken&&(t.sessionId?e.nonce=t.sessionId:t.postBody&&Xn(t=new Jn(t.postBody),"nonce")&&(e.nonce=t.get("nonce"))),e}function ga(t){var e=null;if(t.needConfirmation?(t.code="account-exists-with-different-credential",e=Hr(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",e=Hr(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",e=Hr(t)):t.errorMessage&&(e=tc(t.errorMessage)),e)throw e;ua(t)}function ma(t,e){return e.returnIdpCredential=!0,Xa(t,Ga,e)}function _a(t,e){return e.returnIdpCredential=!0,Xa(t,Ha,e)}function ya(t,e){return e.returnIdpCredential=!0,e.autoCreate=!1,Xa(t,Ba,e)}function ba(t){if(!t.oobCode)throw new M("invalid-action-code")}(t=Ys.prototype).Eb=function(t,e){var n={idToken:t},i=[];return pt(ha,function(t,o){var r=e[o];null===r?i.push(t):o in e&&(n[o]=r)}),i.length&&(n.deleteAttribute=i),Xa(this,Za,n)},t.wb=function(t,e){return _t(t={requestType:"PASSWORD_RESET",email:t},e),Xa(this,Na,t)},t.xb=function(t,e){return _t(t={requestType:"EMAIL_SIGNIN",email:t},e),Xa(this,Aa,t)},t.vb=function(t,e){return _t(t={requestType:"VERIFY_EMAIL",idToken:t},e),Xa(this,Ia,t)},t.Fb=function(t,e,n){return _t(t={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:t,newEmail:e},n),Xa(this,Ra,t)},t.gb=function(t){return Xa(this,Ja,t)},t.ob=function(t,e){return Xa(this,Fa,{oobCode:t,newPassword:e})},t.Sa=function(t){return Xa(this,Ca,{oobCode:t})},t.kb=function(t){return Xa(this,va,{oobCode:t})};var va={endpoint:"setAccountInfo",A:ba,Z:"email",B:!0},Ca={endpoint:"resetPassword",A:ba,G:function(t){var e=t.requestType;if(!e||!t.email&&"EMAIL_SIGNIN"!=e&&"VERIFY_AND_CHANGE_EMAIL"!=e)throw new M("internal-error")},B:!0},xa={endpoint:"signupNewUser",A:function(t){if(aa(t),!t.password)throw new M("weak-password")},G:ua,V:!0,B:!0},wa={endpoint:"createAuthUri",B:!0},Oa={endpoint:"deleteAccount",O:["idToken"]},Pa={endpoint:"setAccountInfo",O:["idToken","deleteProvider"],A:function(t){if(!Array.isArray(t.deleteProvider))throw new M("internal-error")}},Ma={endpoint:"emailLinkSignin",O:["email","oobCode"],A:aa,G:ua,V:!0,B:!0},Ta={endpoint:"emailLinkSignin",O:["idToken","email","oobCode"],A:aa,G:ua,V:!0},ka={endpoint:"accounts/mfaEnrollment:finalize",O:["idToken","phoneVerificationInfo"],A:da,G:ua,B:!0,Na:!0},Sa={endpoint:"accounts/mfaSignIn:finalize",O:["mfaPendingCredential","phoneVerificationInfo"],A:da,G:ua,B:!0,Na:!0},Ea={endpoint:"getAccountInfo"},Aa={endpoint:"getOobConfirmationCode",O:["requestType"],A:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new M("internal-error");aa(t)},Z:"email",B:!0},Ia={endpoint:"getOobConfirmationCode",O:["idToken","requestType"],A:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new M("internal-error")},Z:"email",B:!0},Ra={endpoint:"getOobConfirmationCode",O:["idToken","newEmail","requestType"],A:function(t){if("VERIFY_AND_CHANGE_EMAIL"!=t.requestType)throw new M("internal-error")},Z:"email",B:!0},Na={endpoint:"getOobConfirmationCode",O:["requestType"],A:function(t){if("PASSWORD_RESET"!=t.requestType)throw new M("internal-error");aa(t)},Z:"email",B:!0},La={mb:!0,endpoint:"getProjectConfig",Vb:"GET"},Da={mb:!0,endpoint:"getRecaptchaParam",Vb:"GET",G:function(t){if(!t.recaptchaSiteKey)throw new M("internal-error")}},Fa={endpoint:"resetPassword",A:ba,Z:"email",B:!0},Ua={endpoint:"sendVerificationCode",O:["phoneNumber","recaptchaToken"],Z:"sessionInfo",B:!0},Za={endpoint:"setAccountInfo",O:["idToken"],A:ca,V:!0},qa={endpoint:"setAccountInfo",O:["idToken"],A:function(t){if(ca(t),!t.password)throw new M("weak-password")},G:ua,V:!0},Va={endpoint:"signupNewUser",G:ua,V:!0,B:!0},ja={endpoint:"accounts/mfaEnrollment:start",O:["idToken","phoneEnrollmentInfo"],A:function(t){if(!t.phone
1EnrollmentInfo)throw new M("internal-error");if(!t.phoneEnrollmentInfo.phoneNumber)throw new M("missing-phone-number");if(!t.phoneEnrollmentInfo.recaptchaToken)throw new M("missing-app-credential")},G:function(t){if(!t.phoneSessionInfo||!t.phoneSessionInfo.sessionInfo)throw new M("internal-error")},B:!0,Na:!0},za={endpoint:"accounts/mfaSignIn:start",O:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],A:function(t){if(!t.phoneSignInInfo||!t.phoneSignInInfo.recaptchaToken)throw new M("missing-app-credential")},G:function(t){if(!t.phoneResponseInfo||!t.phoneResponseInfo.sessionInfo)throw new M("internal-error")},B:!0,Na:!0},Ga={endpoint:"verifyAssertion",A:pa,Za:fa,G:ga,V:!0,B:!0},Ba={endpoint:"verifyAssertion",A:pa,Za:fa,G:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new M("user-not-found");if(t.errorMessage)throw tc(t.errorMessage);ua(t)},V:!0,B:!0},Ha={endpoint:"verifyAssertion",A:function(t){if(pa(t),!t.idToken)throw new M("internal-error")},Za:fa,G:ga,V:!0},Ya={endpoint:"verifyCustomToken",A:function(t){if(!t.token)throw new M("invalid-custom-token")},G:ua,V:!0,B:!0},Qa={endpoint:"verifyPassword",A:function(t){if(aa(t),!t.password)throw new M("wrong-password")},G:ua,V:!0,B:!0},Ja={endpoint:"verifyPhoneNumber",A:la,G:ua,B:!0},$a={endpoint:"verifyPhoneNumber",A:function(t){if(!t.idToken)throw new M("internal-error");la(t)},G:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",Hr(t);ua(t)}},Wa={Ib:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:la,G:ua,B:!0},Ka={endpoint:"accounts/mfaEnrollment:withdraw",O:["idToken","mfaEnrollmentId"],G:function(t){if(!!t[Js]^!!t.refreshToken)throw new M("internal-error")},B:!0,Na:!0};function Xa(t,e,n){if(!function(t,e){if(!e||!e.length)return!0;if(!t)return!1;for(var n=0;n<e.length;n++){var i=t[e[n]];if(null==i||""===i)return!1}return!0}(n,e.O))return ke(new M("internal-error"));var i,o=!!e.Na,r=e.Vb||"POST";return Te(n).then(e.A).then(function(){return e.V&&(n.returnSecureToken=!0),e.B&&t.b&&void 0===n.tenantId&&(n.tenantId=t.b),function(t,e,n,i,o,r,s){var a=Zn(e+n);Fn(a,"key",t.c),s&&Fn(a,"cb",Date.now().toString());var c="GET"==i;if(c)for(var u in o)o.hasOwnProperty(u)&&Fn(a,u,o[u]);return new ve(function(e,n){oa(t,a.toString(),function(t){t?t.error?n(ec(t,r||{})):e(t):n(new M("network-request-failed"))},i,c?void 0:ii(Di(o)),t.a,t.v.get())})}(t,o?t.i:t.h,e.endpoint,r,n,e.Ib,e.mb||!1)}).then(function(t){return i=t,e.Za?e.Za(n,i):i}).then(e.G).then(function(){if(!e.Z)return i;if(!(e.Z in i))throw new M("internal-error");return i[e.Z]})}function tc(t){return ec({error:{errors:[{message:t}],code:400,message:t}})}function ec(t,e){var n=(t.error&&t.error.errors&&t.error.errors[0]||{}).reason||"",i={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=i[n]?new M(i[n]):null)return n;for(var o in n=t.error&&t.error.message||"",_t(i={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_
1NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},e||{}),e=(e=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<e.length?e[1]:void 0,i)if(0===n.indexOf(o))return new M(i[o],e);return!e&&t&&(e=Li(t)),new M("internal-error",e)}function nc(t){this.b=t,this.a=null,this.sb=function(t){return(sc||(sc=new ve(function(t,e){function n(){qi(),Si("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){qi(),e(Error("Network Error"))},timeout:oc.get()})}if(Si("gapi.iframes.Iframe"))t();else if(Si("gapi.load"))n();else{var i="__iframefcb"+Math.floor(1e6*Math.random()).toString();a[i]=function(){Si("gapi.load")?n():e(Error("Network Error"))},Te(qs(i=Tt(ic,{onload:i}))).o(function(){e(Error("Network Error"))})}}).o(function(t){throw sc=null,t}))).then(function(){return new ve(function(e,n){Si("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:Si("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(i){function o(){clearTimeout(r),e()}t.a=i,t.a.restyle({setHideOnLeave:!1});var r=setTimeout(function(){n(Error("Network Error"))},rc.get());i.ping(o).then(o,function(){n(Error("Network Error"))})})})})}(this)}var ic=new bt(wt,"https://apis.google.com/js/api.js?onload=%{onload}"),oc=new Vi(3e4,6e4),rc=new Vi(5e3,15e3),sc=null;function ac(t,e,n,i){this.l=t,this.h=e,this.i=n,this.g=i,this.f=null,t=this.g?qn((t=Zn(this.g.url)).c,t.a,t.g,"/emulator/auth/iframe"):qn("https",this.l,null,"/__/auth/iframe"),this.a=t,Fn(this.a,"apiKey",this.h),Fn(this.a,"appName",this.i),this.b=null,this.c=[]}function cc(t,e,n,i,o,r){this.u=t,this.s=e,this.c=n,this.m=i,this.v=r,this.i=this.g=this.l=null,this.a=o,this.h=this.f=null}function uc(t){try{return i.Z.app(t).auth().Ga()}catch(e){return[]}}function lc(t,e,n,i,o,r){this.s=t,this.g=e,this.b=n,this.f=r,this.c=i||null,this.i=o||null,this.l=this.u=this.C=null,this.h=[],this.m=this.a=null}function hc(t){var e=li();return function(t){return Xa(t,La,{}).then(function(t){return t.authorizedDomains||[]})}(t).then(function(t){t:{var n=Zn(e),i=n.c;n=n.a;for(var o=0;o<t.length;o++){var r=t[o],s=n,a=i;if(0==r.indexOf("chrome-extension://")?s=Zn(r).a==s&&"chrome-extension"==a:"http"!=a&&"https"!=a?s=!1:mi.test(r)?s=s==r:(r=r.split(".").join("\\."),s=new RegExp("^(.+\\."+r+"|"+r+")$","i").test(s)),s){t=!0;break t}}t=!1}if(!t)throw new Gr(li())})}function dc(t){return t.m||(t.m=yi().then(function(){if(!t.u){var e=t.c,n=t.i,i=uc(t.b),o=new ac(t.s,t.g,t.b,t.f);o.f=e,o.b=n,o.c=K(i||[]),t.u=o.toString()}t.v=new nc(t.u),function(t){if(!t.v)throw Error("IfcHandler must be initialized!");!function(t,e){t.sb.then(function(){t.a.register("authEvent",e,Si("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})}(t.v,function(e){var n={};if(e&&e.authEvent){var i=!1;for(e=qr(e.authEvent),n=0;n<t.h.length;n++)i=t.h[n](e)||i;return(n={}).status=i?"ACK":"ERROR",Te(n)}return n.status="ERROR",Te(n)})}(t)})),t.m}function pc(t){return t.l||(t.C=t.c?Ti(t.c,uc(t.b)):null,t.l=new Ys(t.g,I(t.i),t.C),t.f&&ea(t.l,t.f)),t.l}function fc(t,e,n,i,o,r,s,a,c,u,l,h){return(t=new cc(t,e,n,i,o,h)).l=r,t.g=s,t.i=a,t.b=gt(c||null),t.f=u,t.zb(l).toString()}function gc(t){if(this.a=t||i.Z.INTERNAL.reactNative&&i.Z.INTERNAL.reactNative.AsyncStorage,!this.a)throw new M("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function mc(t){this.b=t,this.a={},this.f=C(this.c,this)}ac.prototype.toString=function(){return this.f?Fn(this.a,"v",this.f):Kn(this.a.b,"v"),this.b?Fn(this.a,"eid",this.b):Kn(this.a.b,"eid"),this.c.length?Fn(this.a,"fw",this.c.join(",")):Kn(this.a.b,"fw"),this.a.toString()},cc.prototype.zb=function(t){return this.h=t,this},cc.prototype.toString=function(){if(this.v){var t=Zn(this.v.url);t=qn(t.c,t.a,t.g,"/emulator/auth/handler")}else t=qn("https",this.u,null,"/__/auth/handler");if(Fn(t,"apiKey",this.s),Fn(t,"appName",this.c),Fn(t,"authType",this.m),this.a.isOAuthProvider){var e=this.a;try{var n=i.Z.app(this.c).auth().la()}catch(c){n=null}for(var o in e.pb=n,Fn(t,"providerId",this.a.providerId),e=Di((n=this.a).Jb))e[o]=e[o].toString();o=n.Qc,e=gt(e);for(var r=0;r<o.length;r++){var s=o[r];s in e&&delete e[s]}
1n.qb&&n.pb&&!e[n.qb]&&(e[n.qb]=n.pb),ft(e)||Fn(t,"customParameters",Li(e))}if("function"==typeof this.a.Rb&&(n=this.a.Rb()).length&&Fn(t,"scopes",n.join(",")),this.l?Fn(t,"redirectUrl",this.l):Kn(t.b,"redirectUrl"),this.g?Fn(t,"eventId",this.g):Kn(t.b,"eventId"),this.i?Fn(t,"v",this.i):Kn(t.b,"v"),this.b)for(var a in this.b)this.b.hasOwnProperty(a)&&!Un(t,a)&&Fn(t,a,this.b[a]);return this.h?Fn(t,"tid",this.h):Kn(t.b,"tid"),this.f?Fn(t,"eid",this.f):Kn(t.b,"eid"),(a=uc(this.c)).length&&Fn(t,"fw",a.join(",")),t.toString()},(t=lc.prototype).Pb=function(t,e,n){var i=new M("popup-closed-by-user"),o=new M("web-storage-unsupported"),r=this,s=!1;return this.ma().then(function(){(function(t){var e={type:"webStorageSupport"};return dc(t).then(function(){return function(t,e){return t.sb.then(function(){return new ve(function(n){t.a.send(e.type,e,n,Si("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}(t.v,e)}).then(function(t){if(t&&t.length&&void 0!==t[0].webStorageSupport)return t[0].webStorageSupport;throw Error()})})(r).then(function(n){n||(t&&fi(t),e(o),s=!0)})}).o(function(){}).then(function(){if(!s)return function(t){return new ve(function(e){return function n(){Mn(2e3).then(function(){if(t&&!t.closed)return n();e()})}()})}(t)}).then(function(){if(!s)return Mn(n).then(function(){e(i)})})},t.Yb=function(){var t=ki();return!Ni(t)&&!Zi(t)},t.Ub=function(){return!1},t.Nb=function(t,e,n,i,o,r,s,a){if(!t)return ke(new M("popup-blocked"));if(s&&!Ni())return this.ma().o(function(e){fi(t),o(e)}),i(),Te();this.a||(this.a=hc(pc(this)));var c=this;return this.a.then(function(){var e=c.ma().o(function(e){throw fi(t),o(e),e});return i(),e}).then(function(){Ur(n),s||hi(fc(c.s,c.g,c.b,e,n,null,r,c.c,void 0,c.i,a,c.f),t)}).o(function(t){throw"auth/network-request-failed"==t.code&&(c.a=null),t})},t.Ob=function(t,e,n,i){this.a||(this.a=hc(pc(this)));var o=this;return this.a.then(function(){Ur(e),hi(fc(o.s,o.g,o.b,t,e,li(),n,o.c,void 0,o.i,i,o.f))}).o(function(t){throw"auth/network-request-failed"==t.code&&(o.a=null),t})},t.ma=function(){var t=this;return dc(this).then(function(){return t.v.sb}).o(function(){throw t.a=null,new M("network-request-failed")})},t.ac=function(){return!0},t.Ea=function(t){this.h.push(t)},t.Ta=function(t){$(this.h,function(e){return e==t})},(t=gc.prototype).get=function(t){return Te(this.a.getItem(t)).then(function(t){return t&&Fi(t)})},t.set=function(t,e){return Te(this.a.setItem(t,Li(e)))},t.U=function(t){return Te(this.a.removeItem(t))},t.ca=function(){},t.ia=function(){};var _c,yc=[];function bc(t,e,n){ft(t.a)&&t.b.addEventListener("message",t.f),void 0===t.a[e]&&(t.a[e]=[]),t.a[e].push(n)}function vc(t){this.a=t}function Cc(t){this.c=t,this.b=!1,this.a=[]}function xc(t,e,n,i){var o,r,s,a,c=n||{},u=null;if(t.b)return ke(Error("connection_unavailable"));var l=i?800:50,h="undefined"!=typeof MessageChannel?new MessageChannel:null;return new ve(function(n,i){h?(o=Math.floor(Math.random()*Math.pow(10,20)).toString(),h.port1.start(),s=setTimeout(function(){i(Error("unsupported_event"))},l),t.a.push(u={messageChannel:h,onMessage:r=function(t){t.data.eventId===o&&("ack"===t.data.status?(clearTimeout(s),a=setTimeout(function(){i(Error("timeout"))},3e3)):"done"===t.data.status?(clearTimeout(a),void 0!==t.data.response?n(t.data.response):i(Error("unknown_error"))):(clearTimeout(s),clearTimeout(a),i(Error("invalid_response"))))}}),h.port1.addEventListener("message",r),t.c.postMessage({eventType:e,eventId:o,data:c},[h.port2])):i(Error("connection_unavailable"))}).then(function(e){return wc(t,u),e}).o(function(e){throw wc(t,u),e})}function wc(t,e){if(e){var n=e.messageChannel;n&&(n.port1.removeEventListener("message",e.onMessage),n.port1.close()),$(t.a,function(t){return t==e})}}function Oc(){if(!kc())throw new M("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=a.indexedDB,this.type="indexedDB",this.g=this.v=this.f=this.l=null,this.s=!1,this.h=null;var t=this;Ci()&&self?(this.v=function(){var t=Ci()?self:null;if(G(yc,function(n){n.b==t&&(e=n)}),!e){var e=new mc(t);yc.push(e)}return e}(),bc(this.v,"keyChanged",function(e,n){return Rc(t).then(function(e){return 0<e.length&&G(t.a,function(t){t(e)}),{keyProcessed:Q(e,n.key)}})}),bc(this.v,"ping",function(){return Te(["keyChanged"])})):function(){var t=a.navigator;return t&&t.serviceWorker?Te().then(function(){return t.serviceWorker.ready}).then(function(t){return t.active||null}).o(function(){return null}
1):Te(null)}().then(function(e){(t.h=e)&&(t.g=new Cc(new vc(e)),xc(t.g,"ping",null,!0).then(function(e){e[0].fulfilled&&Q(e[0].value,"keyChanged")&&(t.s=!0)}).o(function(){}))})}function Pc(t){return new ve(function(e,n){var i=t.m.open("firebaseLocalStorageDb",1);i.onerror=function(t){try{t.preventDefault()}catch(e){}n(Error(t.target.error))},i.onupgradeneeded=function(t){t=t.target.result;try{t.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){n(e)}},i.onsuccess=function(i){(i=i.target.result).objectStoreNames.contains("firebaseLocalStorage")?e(i):function(t){return new ve(function(e,n){var i=t.m.deleteDatabase("firebaseLocalStorageDb");i.onsuccess=function(){e()},i.onerror=function(t){n(Error(t.target.error))}})}(t).then(function(){return Pc(t)}).then(function(t){e(t)}).o(function(t){n(t)})}})}function Mc(t){return t.i||(t.i=Pc(t)),t.i}function Tc(t,e){var n=0;return new ve(function i(o,r){Mc(t).then(e).then(o).o(function(e){if(!(3<++n))return Mc(t).then(function(e){return e.close(),t.i=void 0,i(o,r)}).o(function(t){r(t)});r(e)})})}function kc(){try{return!!a.indexedDB}catch(Yt){return!1}}function Sc(t){return t.objectStore("firebaseLocalStorage")}function Ec(t,e){return t.transaction(["firebaseLocalStorage"],e?"readwrite":"readonly")}function Ac(t){return new ve(function(e,n){t.onsuccess=function(t){t&&t.target?e(t.target.result):e()},t.onerror=function(t){n(t.target.error)}})}function Ic(t,e){return t.g&&t.h&&function(){var t=a.navigator;return t&&t.serviceWorker&&t.serviceWorker.controller||null}()===t.h?xc(t.g,"keyChanged",{key:e},t.s).then(function(){}).o(function(){}):Te()}function Rc(t){return Mc(t).then(function(t){var e=Sc(Ec(t,!1));return e.getAll?Ac(e.getAll()):new ve(function(t,n){var i=[],o=e.openCursor();o.onsuccess=function(e){(e=e.target.result)?(i.push(e.value),e.continue()):t(i)},o.onerror=function(t){n(t.target.error)}})}).then(function(e){var n={},i=[];if(0==t.b){for(i=0;i<e.length;i++)n[e[i].fbase_key]=e[i].value;i=di(t.c,n),t.c=n}return i})}function Nc(t){t.l&&t.l.cancel("STOP_EVENT"),t.f&&(clearTimeout(t.f),t.f=null)}function Lc(t){var e=this,n=null;this.a=[],this.type="indexedDB",this.c=t,this.b=Te().then(function(){if(kc()){var t=Ui(),i="__sak"+t;return _c||(_c=new Oc),(n=_c).set(i,t).then(function(){return n.get(i)}).then(function(e){if(e!==t)throw Error("indexedDB not supported!");return n.U(i)}).then(function(){return n}).o(function(){return e.c})}return e.c}).then(function(t){return e.type=t.type,t.ca(function(t){G(e.a,function(e){e(t)})}),t})}function Dc(){this.a={},this.type="inMemory"}function Fc(){if(!function(){var t="Node"==xi();if(!(t=Uc()||t&&i.Z.INTERNAL.node&&i.Z.INTERNAL.node.localStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}())throw"Node"==xi()?new M("internal-error","The LocalStorage compatibility library was not found."):new M("web-storage-unsupported");this.a=Uc()||i.Z.INTERNAL.node.localStorage,this.type="localStorage"}function Uc(){try{var t=a.localStorage,e=Ui();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Zc(){this.type="nullStorage"}function qc(){if(!function(){var t="Node"==xi();if(!(t=Vc()||t&&i.Z.INTERNAL.node&&i.Z.INTERNAL.node.sessionStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}())throw"Node"==xi()?new M("internal-error","The SessionStorage compatibility library was not found."):new M("web-storage-unsupported");this.a=Vc()||i.Z.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Vc(){try{var t=a.sessionStorage,e=Ui();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function jc(){var t={};t.Browser=Bc,t.Node=Hc,t.ReactNative=Yc,t.Worker=Qc,this.a=t[xi()]}mc.prototype.c=function(t){var e=t.data.eventType,n=t.data.eventId,i=this.a[e];if(i&&0<i.length){t.ports[0].postMessage({status:"ack",eventId:n,eventType:e,response:null});var o=[];G(i,function(e){o.push(Te().then(function(){return e(t.origin,t.data.data)}))}),Ee(o).then(function(i){var o=[];G(i,function(t){o.push({fulfilled:t.Qb,value:t.value,reason:t.reason?t.reason.message:void 0})}),G(o,function(t){for(var e in t)void 0===t[e]&&delete t[e]}),t.ports[0].postMessage({status:"done",eventId:n,eventType:e,response:o})})}},vc.prototype.postMessage=function(t,e){this.a.postMessage(t,e)},Cc.prototype.close=function(){for(;0<this.a.length;)wc(this,this.a[0]);this.b=!0},(t=Oc.prototype).set=function(t,e){var n=this,i=!1;return Tc(this,function(e){return Ac((e=Sc(Ec(e,!0))).get(t))}).then(function(o){return Tc(n,function(r){if(r=Sc(Ec(r,!0)),o)return o.value=e,Ac(r.put(o));n.b++,i=!0;var s={};return s.fbase_key=t,s.value=e,Ac(r.add(s))})}).then(function(){return n.c[t]=e,Ic(n,t)}).oa(function(){i&&n.b--})},t.get=function(t){return Tc(this,function(e){return Ac(Sc(Ec(e,!1)).get(t))}).then(function(t){return t&&t.value})},t.U=function(t){var e=this,n=!1;return Tc(this,function(i){return n=!0,e.b++,Ac(Sc(Ec(i,!0)).delete(t))}).then(function(){return delete e.c[t],Ic(e,t)}).oa(function(){n&&e.b--})},t.ca=function(t){0==this.a.length&&function(t){Nc(t),function e(){t.f=setTimeout(function(){t.l=Rc(t).then(function(e){0<e.length&&G(t.a,function(t){t(e)})}).then(function(){e()}).o(function(t){"STOP_EVENT"!=t.message&&e()})},800)}()}(this),this.a.push(t)},t.ia=function(t){$(this.a,function(e){return e==t}),0==this.a.length&&Nc(this)},(t=Lc.prototype).get=function(t){return this.b.then(function(e){return e.get(t)})},t.set=function(t,e){return this.b.then(function(n){return n.set(t,e)})},t.U=function(t){return this.b.then(function(e){return e.U(t)})},t.ca=function(t){this.a.push(t)},t.ia=function(t){$(this.a,function(e){return e==t})},(t=Dc.prototype).get=function(t){return Te(this.a[t])},t.set=function(t,e){return this.a[t]=e,Te()}
1,t.U=function(t){return delete this.a[t],Te()},t.ca=function(){},t.ia=function(){},(t=Fc.prototype).get=function(t){var e=this;return Te().then(function(){return Fi(e.a.getItem(t))})},t.set=function(t,e){var n=this;return Te().then(function(){var i=Li(e);null===i?n.U(t):n.a.setItem(t,i)})},t.U=function(t){var e=this;return Te().then(function(){e.a.removeItem(t)})},t.ca=function(t){a.window&&un(a.window,"storage",t)},t.ia=function(t){a.window&&dn(a.window,"storage",t)},(t=Zc.prototype).get=function(){return Te(null)},t.set=function(){return Te()},t.U=function(){return Te()},t.ca=function(){},t.ia=function(){},(t=qc.prototype).get=function(t){var e=this;return Te().then(function(){return Fi(e.a.getItem(t))})},t.set=function(t,e){var n=this;return Te().then(function(){var i=Li(e);null===i?n.U(t):n.a.setItem(t,i)})},t.U=function(t){var e=this;return Te().then(function(){e.a.removeItem(t)})},t.ca=function(){},t.ia=function(){};var zc,Gc,Bc={F:Fc,cb:qc},Hc={F:Fc,cb:qc},Yc={F:gc,cb:Zc},Qc={F:Fc,cb:Zc},Jc={rd:"local",NONE:"none",td:"session"};function $c(){var t=!(Zi(ki())||!vi()),e=Ni(),n=Ei();this.m=t,this.h=e,this.l=n,this.a={},zc||(zc=new jc),t=zc;try{this.g=!ui()&&Gi()||!a.indexedDB?new t.a.F:new Lc(Ci()?new Dc:new t.a.F)}catch(i){this.g=new Dc,this.h=!0}try{this.i=new t.a.cb}catch(i){this.i=new Dc}this.v=new Dc,this.f=C(this.Zb,this),this.b={}}function Wc(){return Gc||(Gc=new $c),Gc}function Kc(t,e){switch(e){case"session":return t.i;case"none":return t.v;default:return t.g}}function Xc(t,e){return"firebase:"+t.name+(e?":"+e:"")}function tu(t,e,n){return n=Xc(e,n),"local"==e.F&&(t.b[n]=null),Kc(t,e.F).U(n)}function eu(t){t.c&&(clearInterval(t.c),t.c=null)}function nu(t){this.a=t,this.b=Wc()}(t=$c.prototype).get=function(t,e){return Kc(this,t.F).get(Xc(t,e))},t.set=function(t,e,n){var i=Xc(t,n),o=this,r=Kc(this,t.F);return r.set(i,e).then(function(){return r.get(i)}).then(function(e){"local"==t.F&&(o.b[i]=e)})},t.addListener=function(t,e,n){t=Xc(t,e),this.l&&(this.b[t]=a.localStorage.getItem(t)),ft(this.a)&&(Kc(this,"local").ca(this.f),this.h||(ui()||!Gi())&&a.indexedDB||!this.l||function(t){eu(t),t.c=setInterval(function(){for(var e in t.a){var n=a.localStorage.getItem(e),i=t.b[e];n!=i&&(t.b[e]=n,n=new We({type:"storage",key:e,target:window,oldValue:i,newValue:n,a:!0}),t.Zb(n))}},1e3)}(this)),this.a[t]||(this.a[t]=[]),this.a[t].push(n)},t.removeListener=function(t,e,n){t=Xc(t,e),this.a[t]&&($(this.a[t],function(t){return t==n}),0==this.a[t].length&&delete this.a[t]),ft(this.a)&&(Kc(this,"local").ia(this.f),eu(this))},t.Zb=function(t){if(t&&t.g){var e=t.a.key;if(null==e)for(var n in this.a){var i=this.b[n];void 0===i&&(i=null);var o=a.localStorage.getItem(n);o!==i&&(this.b[n]=o,this.nb(n))}else if(0==e.indexOf("firebase:")&&this.a[e]){if(void 0!==t.a.a?Kc(this,"local").ia(this.f):eu(this),this.m)if(n=a.localStorage.getItem(e),(i=t.a.newValue)!==n)null!==i?a.localStorage.setItem(e,i):a.localStorage.removeItem(e);else if(this.b[e]===i&&void 0===t.a.a)return;var r=this;n=function(){(void 0!==t.a.a||r.b[e]!==a.localStorage.getItem(e))&&(r.b[e]=a.localStorage.getItem(e),r.nb(e))},Jt&&se&&10==se&&a.localStorage.getItem(e)!==t.a.newValue&&t.a.newValue!==t.a.oldValue?setTimeout(n,10):n()}}else G(t,C(this.nb,this))},t.nb=function(t){this.a[t]&&G(this.a[t],function(t){t()})};var iu,ou={name:"authEvent",F:"local"};function ru(){this.a=Wc()}function su(t,e){this.b=au,this.f=a.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=e,this.l=a.Int32Array?new Int32Array(64):Array(64),void 0===iu&&(iu=a.Int32Array?new Int32Array(fu):fu),this.reset()}O(su,function(){this.b=-1});for(var au=64,cu=au-1,uu=[],lu=0;lu<cu;lu++)uu[lu]=0;var hu=W(128,uu);function du(t){for(var e=t.f,n=t.l,i=0,o=0;o<e.length;)n[i++]=e[o]<<24|e[o+1]<<16|e[o+2]<<8|e[o+3],o=4*i;for(e=16;64>e;e++){var r=(0|n[e-16])+(((o=0|n[e-15])>>>7|o<<25)^(o>>>18|o<<14)^o>>>3)|0,s=(0|n[e-7])+(((i=0|n[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)|0;n[e]=r+s|0}i=0|t.a[0],o=0|t.a[1];var a=0|t.a[2],c=0|t.a[3],u=0|t.a[4],l=0|t.a[5],h=0|t.a[6];for(r=0|t.a[7],e=0;64>e;e++){var d=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&o^i&a^o&a)|0;s=(r=r+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))|0)+((s=(s=u&l^~u&h)+(0|iu[e])|0)+(0|n[e])|0)|0,r=h,h=l,l=u,u=c+s|0,c=a,a=o,o=i,i=s+d|0}t.a[0]=t.a[0]+i|0,t.a[1]=t.a[1]+o|0,t.a[2]=t.a[2]+a|0,t.a[3]=t.a[3]+c|0,t.a[4]=t.a[4]+u|0,t.a[5]=t.a[5]+l|0,t.a[6]=t.a[6]+h|0,t.a[7]=t.a[7]+r|0}function pu(t,e,n){void 0===n&&(n=e.length);var i=0,o=t.c;if("string"==typeof e)for(;i<n;)t.f[o++]=e.charCodeAt(i++),o==t.b&&(du(t),o=0);else{if(!p(e))throw Error("message must be string or array");for(;i<n;){var r=e[i++];if(!("number"==typeof r&&0<=r&&255>=r&&r==(0|r)))throw Error("message must be a byte array");t.f[o++]=r,o==t.b&&(du(t),o=0)}}t.c=o,t.g+=n}su.prototype.reset=function(){this.g=this.c=0,this.a=a.Int32Array?new Int32Array(this.h):K(this.h)};var fu=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
1734187,3204031479,3329325298];function gu(){su.call(this,8,mu)}O(gu,su);var mu=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function _u(t,e,n,i,o,r){this.v=t,this.i=e,this.l=n,this.m=i||null,this.u=o||null,this.s=r,this.h=e+":"+n,this.C=new ru,this.g=new nu(this.h),this.f=null,this.b=[],this.a=this.c=null}function yu(t){return new M("invalid-cordova-configuration",t)}function bu(t,e){for(var n=0;n<t.b.length;n++)try{t.b[n](e)}catch(i){}}function vu(t){return t.f||(t.f=t.ma().then(function(){return new ve(function(e){t.Ea(function n(i){return e(i),t.Ta(n),!1}),function(t){function e(e){i=!0,o&&o.cancel(),Cu(t).then(function(i){var o=n;if(i&&e&&e.url){var r=null;-1!=(o=or(e.url)).indexOf("/__/auth/callback")&&(r=(r="object"==typeof(r=Fi(Un(r=Zn(o),"firebaseError")||null))?T(r):null)?new Zr(i.c,i.b,null,null,r,null,i.T()):new Zr(i.c,i.b,o,i.f,null,null,i.T())),o=r||n}bu(t,o)})}var n=new Zr("unknown",null,null,null,new M("no-auth-event")),i=!1,o=Mn(500).then(function(){return Cu(t).then(function(){i||bu(t,n)})}),r=a.handleOpenURL;a.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(Si("BuildInfo.packageName",a).toLowerCase()+"://")&&e({url:t}),"function"==typeof r)try{r(t)}catch(n){console.error(n)}},zr||(zr=new Vr),function(t){var e=zr;e.a.push(t),e.b||(e.b=function(t){for(var n=0;n<e.a.length;n++)e.a[n](t)},"function"==typeof(t=Si("universalLinks.subscribe",a))&&t(null,e.b))}(e)}(t)})})),t.f}function Cu(t){var e=null;return function(t){return t.b.get(ou,t.a).then(function(t){return qr(t)})}(t.g).then(function(n){return e=n,tu((n=t.g).b,ou,n.a)}).then(function(){return e})}function xu(t){this.a=t,this.b=Wc()}(t=_u.prototype).ma=function(){return this.Ia?this.Ia:this.Ia=(bi(void 0)?yi().then(function(){return new ve(function(t,e){var n=a.document,i=setTimeout(function(){e(Error("Cordova framework is not ready."))},1e3);n.addEventListener("deviceready",function(){clearTimeout(i),t()},!1)})}):ke(Error("Cordova must run in an Android or iOS file scheme."))).then(function(){if("function"!=typeof Si("universalLinks.subscribe",a))throw yu("cordova-universal-links-plugin-fix is not installed");if(void 0===Si("BuildInfo.packageName",a))throw yu("cordova-plugin-buildinfo is not installed");if("function"!=typeof Si("cordova.plugins.browsertab.openUrl",a))throw yu("cordova-plugin-browsertab is not installed");if("function"!=typeof Si("cordova.InAppBrowser.open",a))throw yu("cordova-plugin-inappbrowser is not installed")},function(){throw new M("cordova-not-ready")})},t.Pb=function(t,e){return e(new M("operation-not-supported-in-this-environment")),Te()},t.Nb=function(){return ke(new M("operation-not-supported-in-this-environment"))},t.ac=function(){return!1},t.Yb=function(){return!0},t.Ub=function(){return!0},t.Ob=function(t,e,n,i){if(this.c)return ke(new M("redirect-operation-pending"));var o=this,r=a.document,s=null,c=null,u=null,l=null;return this.c=Te().then(function(){return Ur(e),vu(o)}).then(function(){return function(t,e,n,i,o){var r=function(){for(var t=20,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}(),s=new Zr(e,i,null,r,new M("no-auth-event"),null,o),c=Si("BuildInfo.packageName",a);if("string"!=typeof c)throw new M("invalid-cordova-configuration");var u=Si("BuildInfo.displayName",a),l={};if(ki().toLowerCase().match(/iphone|ipad|ipod/))l.ibi=c;else{if(!ki().toLowerCase().match(/android/))return ke(new M("operation-not-supported-in-this-environment"));l.apn=c}u&&(l.appDisplayName=u),r=function(t){var e=new gu;pu(e,t),t=[];var n=8*e.g;pu(e,hu,56>e.c?56-e.c:e.b-(e.c-56));for(var i=63;56<=i;i--)e.f[i]=255&n,n/=256;for(du(e),i=n=0;i<e.i;i++)for(var o=24;0<=o;o-=8)t[n++]=e.a[i]>>o&255;return function(t){return H(t,function(t){return 1<(t=t.toString(16)).length?t:"0"+t}).join("")}(t)}(r),l.sessionId=r;var h=fc(t.v,t.i,t.l,e,n,null,i,t.m,l,t.u,o,t.s);return t.ma().then(function(){var e=t.h;return t.C.a.set(ou,s.w(),e)}).then(function(){var e=Si("cordova.plugins.browsertab.isAvailable",a);if("function"!=typeof e)throw new M("invalid-cordova-configuration");var n=null;e(function(e){if(e){if("function"!=typeof(n=Si("cordova.plugins.browsertab.openUrl",a)))throw new M("invalid-cordova-configuration");n(h)}else{if("function"!=typeof(n=Si("cordova.InAppBrowser.open",a)))throw new M("invalid-cordova-configuration");e=ki(),t.a=n(h,e.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||e.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}})})}(o,t,e,n,i)}).then(function(){return new ve(function(t,e){c=function(){var e=Si("cordova.plugins.browsertab.close",a);return t(),"function"==typeof e&&e(),o.a&&"function"==typeof o.a.close&&(o.a.close(),o.a=null),!1},o.Ea(c),l=function(){ji()&&u()},r.addEventListener("resume",u=function(){s||(s=Mn(2e3).then(function(){e(new M("redirect-cancelled-by-user"))}))},!1),ki().toLowerCase().match(/android/)||r.addEventListener("visibilitychange",l,!1)}).o(function(t){return Cu(o).then(function(){throw t})})}).oa(function(){u&&r.removeEventListener("resume",u,!1),l&&r.removeEventListener("visibilitychange",l,!1),s&&s.cancel(),c&&o.Ta(c),o.c=null})},t.Ea=function(t){this.b.push(t),vu(this).o(function(e){"auth/invalid-cordova-configuration"===e.code&&(e=new Zr("unknown",null,null,null,new M("no-auth-event")),t(e))})},t.Ta=function(t){$(this.b,function(e){return e==t})};var wu={name:"pendingRedirect",F:"session"};function Ou(t){return tu(t.b,wu,t.a)}function Pu(t,e,n,i){this.i={},this.u=0,this.D=t,this.v=e,this.m=n,this.J=i,this.h=[],this.f=!1,this.l=C(this.s,this),this.b=new qu,this.C=new Bu,this.g=new xu(Uu(this.v,this.m)),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.C,this.c.linkViaPopup=this.C,this.c.reauthViaPopup=this.C,this.a=Mu(this.D,this.v,this.m,k,this.J)}function Mu(t,e,n,o,r){var s=i.Z.SDK_VERSION||null;
1return bi()?new _u(t,e,n,s,o,r):new lc(t,e,n,s,o,r)}function Tu(t){t.f||(t.f=!0,t.a.Ea(t.l));var e=t.a;return t.a.ma().o(function(n){throw t.a==e&&t.reset(),n})}function ku(t){t.a.Yb()&&Tu(t).o(function(e){var n=new Zr("unknown",null,null,null,new M("operation-not-supported-in-this-environment"));Nu(e)&&t.s(n)}),t.a.Ub()||Vu(t.b)}function Su(t,e){Q(t.h,e)||t.h.push(e),t.f||function(t){return t.b.get(wu,t.a).then(function(t){return"pending"==t})}(t.g).then(function(e){e?Ou(t.g).then(function(){Tu(t).o(function(e){var n=new Zr("unknown",null,null,null,new M("operation-not-supported-in-this-environment"));Nu(e)&&t.s(n)})}):ku(t)}).o(function(){ku(t)})}function Eu(t,e){$(t.h,function(t){return t==e})}Pu.prototype.reset=function(){this.f=!1,this.a.Ta(this.l),this.a=Mu(this.D,this.v,this.m,null,this.J),this.i={}},Pu.prototype.s=function(t){if(!t)throw new M("invalid-auth-event");if(6e5<=Date.now()-this.u&&(this.i={},this.u=0),t&&t.getUid()&&this.i.hasOwnProperty(t.getUid()))return!1;for(var e=!1,n=0;n<this.h.length;n++){var i=this.h[n];if(i.Gb(t.c,t.b)){(e=this.c[t.c])&&(e.h(t,i),t&&(t.f||t.b)&&(this.i[t.getUid()]=!0,this.u=Date.now())),e=!0;break}}return Vu(this.b),e};var Au=new Vi(2e3,1e4),Iu=new Vi(3e4,6e4);function Ru(t,e,n,i,o,r,s){return t.a.Nb(e,n,i,function(){t.f||(t.f=!0,t.a.Ea(t.l))},function(){t.reset()},o,r,s)}function Nu(t){return!(!t||"auth/cordova-not-ready"!=t.code)}function Lu(t,e,n,i,o){var r;return function(t){return t.b.set(wu,"pending",t.a)}(t.g).then(function(){return t.a.Ob(e,n,i,o).o(function(e){if(Nu(e))throw new M("operation-not-supported-in-this-environment");return r=e,Ou(t.g).then(function(){throw r})}).then(function(){return t.a.ac()?new ve(function(){}):Ou(t.g).then(function(){return t.ra()}).then(function(){}).o(function(){})})})}function Du(t,e,n,i,o){return t.a.Pb(i,function(t){e.na(n,null,t,o)},Au.get())}Pu.prototype.ra=function(){return this.b.ra()};var Fu={};function Uu(t,e,n){return t=t+":"+e,n&&(t=t+":"+n.url),t}function Zu(t,e,n,i){var o=Uu(e,n,i);return Fu[o]||(Fu[o]=new Pu(t,e,n,i)),Fu[o]}function qu(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Vu(t){t.g||(t.g=!0,Gu(t,!1,null,null))}function ju(t){t.g&&!t.i&&Gu(t,!1,null,null)}function zu(t,e){if(t.b=function(){return Te(e)},t.f.length)for(var n=0;n<t.f.length;n++)t.f[n](e)}function Gu(t,e,n,i){e?i?function(t,e){if(t.b=function(){return ke(e)},t.c.length)for(var n=0;n<t.c.length;n++)t.c[n](e)}(t,i):zu(t,n):zu(t,{user:null}),t.f=[],t.c=[]}function Bu(){}function Hu(){this.jb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.jb},set:function(t){this.jb=t},enumerable:!1})}function Yu(t,e){this.a=e,Ji(this,"verificationId",t)}function Qu(t,e,n,i){return new Lr(t).gb(e,n).then(function(t){return new Yu(t,i)})}function Ju(t){var e=Go(t);if(!(e&&e.exp&&e.auth_time&&e.iat))throw new M("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");$i(this,{token:t,expirationTime:zi(1e3*e.exp),authTime:zi(1e3*e.auth_time),issuedAtTime:zi(1e3*e.iat),signInProvider:e.firebase&&e.firebase.sign_in_provider?e.firebase.sign_in_provider:null,signInSecondFactor:e.firebase&&e.firebase.sign_in_second_factor?e.firebase.sign_in_second_factor:null,claims:e})}function $u(t,e,n){var i=e&&e[Ku];if(!i)throw new M("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=t,this.f=gt(e),this.g=n,this.c=new rr(null,i),this.b=[];var o=this;G(e[Wu]||[],function(t){(t=to(t))&&o.b.push(t)}),Ji(this,"auth",this.a),Ji(this,"session",this.c),Ji(this,"hints",this.b)}qu.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},qu.prototype.h=function(t,e){if(t){this.reset(),this.g=!0;var n=t.c,i=t.b,o=t.a&&"auth/web-storage-unsupported"==t.a.code,r=t.a&&"auth/operation-not-supported-in-this-environment"==t.a.code;this.i=!(!o&&!r),"unknown"!=n||o||r?t.a?(Gu(this,!0,null,t.a),Te()):e.Fa(n,i)?function(t,e,n){n=n.Fa(e.c,e.b);var i=e.g,o=e.f,r=e.i,s=e.T(),a=!!e.c.match(/Redirect$/);n(i,o,s,r).then(function(e){Gu(t,a,e,null)}).o(function(e){Gu(t,a,null,e)})}(this,t,e):ke(new M("invalid-auth-event")):(Gu(this,!1,null,null),Te())}
1else ke(new M("invalid-auth-event"))},qu.prototype.ra=function(){var t=this;return new ve(function(e,n){t.b?t.b().then(e,n):(t.f.push(e),t.c.push(n),function(t){var e=new M("timeout");t.a&&t.a.cancel(),t.a=Mn(Iu.get()).then(function(){t.b||(t.g=!0,Gu(t,!0,null,e))})}(t))})},Bu.prototype.h=function(t,e){if(t){var n=t.c,i=t.b;t.a?(e.na(t.c,null,t.a,t.b),Te()):e.Fa(n,i)?function(t,e){var n=t.b,i=t.c;e.Fa(i,n)(t.g,t.f,t.T(),t.i).then(function(t){e.na(i,t,null,n)}).o(function(t){e.na(i,null,t,n)})}(t,e):ke(new M("invalid-auth-event"))}else ke(new M("invalid-auth-event"))},Yu.prototype.confirm=function(t){return t=Dr(this.verificationId,t),this.a(t)};var Wu="mfaInfo",Ku="mfaPendingCredential";function Xu(t,e,n,i){M.call(this,"multi-factor-auth-required",i,e),this.b=new $u(t,e,n),Ji(this,"resolver",this.b)}function tl(t,e,n){if(t&&g(t.serverResponse)&&"auth/multi-factor-auth-required"===t.code)try{return new Xu(e,t.serverResponse,n,t.message)}catch(i){}return null}function el(){}function nl(t){Ji(this,"factorId",t.fa),this.a=t}function il(t){if(nl.call(this,t),this.a.fa!=Lr.PROVIDER_ID)throw new M("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function ol(t,e){for(var n in $e.call(this,t),e)this[n]=e[n]}function rl(t,e){this.a=t,this.b=[],this.c=C(this.yc,this),un(this.a,"userReloaded",this.c);var n=[];e&&e.multiFactor&&e.multiFactor.enrolledFactors&&G(e.multiFactor.enrolledFactors,function(t){var e=null,i={};if(t){t.uid&&(i[io]=t.uid),t.displayName&&(i[eo]=t.displayName),t.enrollmentTime&&(i[no]=new Date(t.enrollmentTime).toISOString()),t.phoneNumber&&(i[oo]=t.phoneNumber);try{e=new ro(i)}catch(o){}t=e}else t=null;t&&n.push(t)}),sl(this,n)}function sl(t,e){t.b=e,Ji(t,"enrolledFactors",e)}function al(t,e,n){if(this.h=t,this.i=e,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function cl(t,e){t.stop(),t.b=Mn(function(t,e){return e?(t.a=t.c,t.g()):(e=t.a,t.a*=2,t.a>t.f&&(t.a=t.f),e)}(t,e)).then(function(){return function(){var t=a.document,e=null;return ji()||!t?Te():new ve(function(n){e=function(){ji()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)}).o(function(n){throw t.removeEventListener("visibilitychange",e,!1),n})}()}).then(function(){return t.h()}).then(function(){cl(t,!0)}).o(function(e){t.i(e)&&cl(t,!1)})}function ul(t){this.f=t,this.b=this.a=null,this.c=Date.now()}function ll(t,e){void 0===e&&(e=t.b?(e=t.b).a-e.g:0),t.c=Date.now()+1e3*e}function hl(t,e){t.b=zo(e[Js]||""),t.a=e.refreshToken,ll(t,void 0!==(e=e.expiresIn)?Number(e):void 0)}function dl(t,e){this.a=t||null,this.b=e||null,$i(this,{lastSignInTime:zi(e||null),creationTime:zi(t||null)})}function pl(t,e,n,i,o,r){$i(this,{uid:t,displayName:i||null,photoURL:o||null,email:n||null,phoneNumber:r||null,providerId:e})}function fl(t,e,n){this.N=[],this.l=t.apiKey,this.m=t.appName,this.s=t.authDomain||null;var o=i.Z.SDK_VERSION?Ti(i.Z.SDK_VERSION):null;this.a=new Ys(this.l,I(k),o),(this.u=t.emulatorConfig||null)&&ea(this.a,this.u),this.h=new ul(this.a),wl(this,e[Js]),hl(this.h,e),Ji(this,"refreshToken",this.h.a),Ml(this,n||{}),Cn.call(this),this.P=!1,this.s&&Ai()&&(this.b=Zu(this.s,this.l,this.m,this.u)),this.W=[],this.i=null,this.D=function(t){return new al(function(){return t.I(!0)},function(t){return!(!t||"auth/network-request-failed"!=t.code)},function(){var e=t.h.c-Date.now()-3e5;return 0<e?e:0})}(this),this.ba=C(this.ib,this);var r=this;this.za=null,this.Pa=function(t){r.xa(t.h)},this.qa=null,this.Ba=function(t){gl(r,t.c)},this.$=null,this.aa=[],this.Oa=function(t){yl(r,t.f)},this.ja=null,this.S=new rl(this,n),Ji(this,"multiFactor",this.S)}function gl(t,e){t.u=e,ea(t.a,e),t.b&&(e=t.b,t.b=Zu(t.s,t.l,t.m,t.u),t.P&&(Eu(e,t),Su(t.b,t)))}function ml(t,e){t.qa&&dn(t.qa,"languageCodeChanged",t.Pa),(t.qa=e)&&un(e,"languageCodeChanged",t.Pa)}function _l(t,e){t.$&&dn(t.$,"emulatorConfigChanged",t.Ba),(t.$=e)&&un(e,"emulatorConfigChanged",t.Ba)}function yl(t,e){t.aa=e,ia(t.a,i.Z.SDK_VERSION?Ti(i.Z.SDK_VERSION,t.aa):null)}function bl(t,e){t.ja&&dn(t.ja,"frameworkChanged",t.Oa),(t.ja=e)&&un(e,"frameworkChanged",t.Oa)}function vl(t){try{return i.Z.app(t.m).auth()}catch(e){throw new M("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.m+"'!")}}function Cl(t){t.J||t.D.b||(t.D.start(),dn(t,"tokenChanged",t.ba),un(t,"tokenChanged",t.ba))}function xl(t){dn(t,"tokenChanged",t.ba),t.D.stop()}function wl(t,e){t.Aa=e,Ji(t,"_lat",e)}function Ol(t){for(var e=[],n=0;n<t.W.length;n++)e.push(t.W[n](t));return Ee(e).then(function(){return t})}function Pl(t){t.b&&!t.P&&(t.P=!0,Su(t.b,t))}function Ml(t,e){$i(t,{uid:e.uid,displayName:e.displayName||null,photoURL:e.ph
1otoURL||null,email:e.email||null,emailVerified:e.emailVerified||!1,phoneNumber:e.phoneNumber||null,isAnonymous:e.isAnonymous||!1,tenantId:e.tenantId||null,metadata:new dl(e.createdAt,e.lastLoginAt),providerData:[]}),t.a.b=t.tenantId}function Tl(){}function kl(t){return Te().then(function(){if(t.J)throw new M("app-deleted")})}function Sl(t){return H(t.providerData,function(t){return t.providerId})}function El(t,e){e&&(Al(t,e.providerId),t.providerData.push(e))}function Al(t,e){$(t.providerData,function(t){return t.providerId==e})}function Il(t,e,n){("uid"!=e||n)&&t.hasOwnProperty(e)&&Ji(t,e,n)}function Rl(t,e){t!=e&&($i(t,{uid:e.uid,displayName:e.displayName,photoURL:e.photoURL,email:e.email,emailVerified:e.emailVerified,phoneNumber:e.phoneNumber,isAnonymous:e.isAnonymous,tenantId:e.tenantId,providerData:[]}),Ji(t,"metadata",e.metadata?function(t){return new dl(t.a,t.b)}(e.metadata):new dl),G(e.providerData,function(e){El(t,e)}),function(t,e){t.b=e.b,t.a=e.a,t.c=e.c}(t.h,e.h),Ji(t,"refreshToken",t.h.a),sl(t.S,e.S.b))}function Nl(t){return t.I().then(function(e){var n=t.isAnonymous;return function(t,e){return Xa(t.a,Ea,{idToken:e}).then(C(t.Kc,t))}(t,e).then(function(){return n||Il(t,"isAnonymous",!1),e})})}function Ll(t,e){e[Js]&&t.Aa!=e[Js]&&(hl(t.h,e),t.dispatchEvent(new ol("tokenChanged")),wl(t,e[Js]),Il(t,"refreshToken",t.h.a))}function Dl(t,e){return Nl(t).then(function(){if(Q(Sl(t),e))return Ol(t).then(function(){throw new M("provider-already-linked")})})}function Fl(t,e,n){return Wi({user:t,credential:Fr(e),additionalUserInfo:e=Jo(e),operationType:n})}function Ul(t,e){return Ll(t,e),t.reload().then(function(){return t})}function Zl(t,e,n,o,r){if(!Ai())return ke(new M("operation-not-supported-in-this-environment"));if(t.i&&!r)return ke(t.i);var s=Qo(n.providerId),a=Ui(t.uid+":::"),c=null;(!Ni()||vi())&&t.s&&n.isOAuthProvider&&(c=fc(t.s,t.l,t.m,e,n,null,a,i.Z.SDK_VERSION||null,null,null,t.tenantId,t.u));var u=gi(c,s&&s.va,s&&s.ua);return o=o().then(function(){if(Vl(t),!r)return t.I().then(function(){})}).then(function(){return Ru(t.b,u,e,n,a,!!c,t.tenantId)}).then(function(){return new ve(function(n,i){t.na(e,null,new M("cancelled-popup-request"),t.g||null),t.f=n,t.C=i,t.g=a,t.c=Du(t.b,t,e,u,a)})}).then(function(t){return u&&fi(u),t?Wi(t):null}).o(function(t){throw u&&fi(u),t}),jl(t,o,r)}function ql(t,e,n,i,o){if(!Ai())return ke(new M("operation-not-supported-in-this-environment"));if(t.i&&!o)return ke(t.i);var r=null,s=Ui(t.uid+":::");return i=i().then(function(){if(Vl(t),!o)return t.I().then(function(){})}).then(function(){return t.ga=s,Ol(t)}).then(function(e){return t.ha&&(e=(e=t.ha).b.set(Bl,t.w(),e.a)),e}).then(function(){return Lu(t.b,e,n,s,t.tenantId)}).o(function(e){if(r=e,t.ha)return Hl(t.ha);throw r}).then(function(){if(r)throw r}),jl(t,i,o)}function Vl(t){if(!t.b||!t.P)throw new M(t.b&&!t.P?"internal-error":"auth-domain-config-required")}function jl(t,e,n){var i=function(t,e,n){return t.i&&!n?(e.cancel(),ke(t.i)):e.o(function(e){throw!e||"auth/user-disabled"!=e.code&&"auth/user-token-expired"!=e.code||(t.i||t.dispatchEvent(new ol("userInvalidated")),t.i=e),e})}(t,e,n);return t.N.push(i),i.oa(function(){J(t.N,i)}),i.o(function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=tl(e.w(),vl(t),C(t.jc,t))),n||e})}function zl(t){if(!t.apiKey)return null;var e={apiKey:t.apiKey,authDomain:t.authDomain,appName:t.appName,emulatorConfig:t.emulatorConfig},n={};if(!t.stsTokenManager||!t.stsTokenManager.accessToken)return null;n[Js]=t.stsTokenManager.accessToken,n.refreshToken=t.stsTokenManager.refreshToken||null;var i=t.stsTokenManager.expirationTime;i&&(n.expiresIn=(i-Date.now())/1e3);var o=new fl(e,n,t);return t.providerData&&G(t.providerData,function(t){t&&El(o,Wi(t))}),t.redirectEventId&&(o.ga=t.redirectEventId),o}function Gl(t){this.a=t,this.b=Wc()}$u.prototype.Rc=function(t){var e=this;return t.tb(this.a.a,this.c).then(function(t){var n=gt(e.f);return delete n[Wu],delete n[Ku],_t(n,t),e.g(n)})},O(Xu,M),el.prototype.tb=function(t,e,n){return e.type==sr?function(t,e,n,i){return n.Ha().then(function(n){return n={idToken:n},void 0!==i&&(n.displayName=i),_t(n,{phoneVerificationInfo:Nr(t.a)}),Xa(e,ka,n)})}(this,t,e,n):function(t,e,n){return n.Ha().then(function(n){return _t(n={mfaPendingCredential:n},{phoneVerificationInfo:Nr(t.a)}),Xa(e,Sa,n)})}(this,t,e)},O(nl,el),O(il,nl),O(ol,$e),(t=rl.prototype).yc=function(t){sl(this,function(t){var e=[];return G(t.mfaInfo||[],function(t){(t=to(t))&&e.push(t)}),e}(t.hd))},t.Sb=function(){return this.a.I().then(function(t){return new rr(t,null)})},t.fc=function(t,e){var n=this,i=this.a.a;return this.Sb().then(function(n){return t.tb(i,n,e)}).then(function(t){return Ll(n.a,t),n.a.reload()})},t.bd=function(t){var e=this,n="string"==typeof t?t:t.uid,i=this.a.a;return this.a.I().then(function(t){return Xa(i,Ka,{idToken:t,mfaEnrollmentId:n})}).then(function(t){var i=B(e.b,function(t){return t.uid!=n});return sl(e,i),Ll(e.a,t),e.a.reload().o(function(t){if("auth/user-token-expired"!=t.code)throw t})})},t.w=function(){return{multiFactor:{enrolledFactors:H(this.b,function(t){return t.w()})}}},al.prototype.start=function(){this.a=this.c,cl(this,!0)},al.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},ul.prototype.w=function(){return{apiKey:this.f.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:this.c}},ul.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?ke(new M("user-token-expired")):t||!this.b||Date.now()>this.c-3e4?this.a?function(t,e){return function(t,e){return new ve(function(n,i){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?oa(t,t.l+"?key="+encodeURIComponent(t.c),function(t){t?t.error?i(ec(t)):t.access_token&&t.refresh_token?n(t):i(new M("internal-error")):i(new M("network-request-failed"))},"POST",Wn(e).toString(),t.g,t.m.get()):i(new M("internal-error"))})}(t.f,e).then(function(e){return t.b=zo(e.access_token),t.a=e.refresh_token,ll(t,e.expires_in),{accessToken:t.b.toString(),refreshToken:t.a}}).o(function(e){throw"auth/user-token-expired"==e.code&&(t.a=null),e})}(this,{grant_type:"refresh_token",refresh_token:this.a}):Te(null):Te({accessToken:this.b.toString(),refreshToken:this.a})},dl.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},O(fl,Cn),fl.prototype.xa=function(t){this.za=t,ta(this.a,t)},fl.prototype.la=function(){return this.za},fl.prototype.Ga=function(){return K(this.aa)},fl.prototype.ib=function(){this.D.b&&(this.D.stop(),this.D.start())},Ji(fl.prototype,"providerId","firebase"),(t=fl.prototype).reload=function(){var t=this;return jl(this,kl(this).then(function(){return Nl(t).then(function(){return Ol(t)}).then(Tl)}))},t.oc=function(t){return this.I(t).then(function(t){return new Ju(t)})},t.I=function(t){var e=this;return jl(this,kl(this).then(function(){return e.h.getToken(t)}).then(function(t){if(!t)throw new M("internal-error");return t.accessToken!=e.Aa&&(wl(e,t.accessToken),e.dispatchEvent(new ol("tokenChanged"))),Il(e,"refreshToken",t.refreshToken),t.accessToken}))},t.Kc=function(t){if(!(t=t.users)||!t.length)throw new M("internal-error");Ml(this,{uid:(t=t[0]).localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt,tenantId:t.tenantId});for(var e=function(t){return(t=t.providerUserInfo)&&t.length?H(t,function(t){return new pl(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)}):[]}(t),n=0;n<e.length;n++)El(this,e[n]);Il(this,"isAnonymous",!(this.email&&t.passwordHash||this.providerData&&this.providerData.length)),this.dispatchEvent(new ol("userReloaded",{hd:t}))},t.Lc=function(t){return Yi("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.ub(t)},t.ub=function(t){var e=this,n=null;return jl(this,t.c(this.a,this.uid).then(function(t){return Ll(e,t),n=Fl(e,t,"reauthenticate"),e.i=null,e.reload()}).then(function(){return n}),!0)},t.Cc=function(t){return Yi("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.rb(t)},t.rb=function(t){var e=this,n=null;return jl(this,Dl(this,t.providerId).then(function(){return e.I()}).then(function(n){return t.b(e.a,n)}).then(function(t){return n=Fl(e,t,"link"),Ul(e,t)}).then(function(){return n}))},t.Dc=function(t,e){var n=this;return jl(this,Dl(this,"phone").then(function(){return Qu(vl(n),t,e,C(n.rb,n))}))},t.Mc=function(t,e){var n=this;return jl(this,Te().then(function(){return Qu(vl(n),t,e,C(n.ub,n))}),!0)},t.Cb=function(t){var e=this;return jl(this,this.I().then(function(n){return e.a.Cb(n,t)}).then(function(t){return Ll(e,t),e.reload()}))},t.ed=function(t){var e=this;return jl(this,this.I().then(function(n){return t.b(e.a,n)}).then(function(t){return Ll(e,t),e.reload()}))},t.Db=function(t){var e=this;return jl(this,this.I().then(function(n){return e.a.Db(n,t)}).then(function(t){return Ll(e,t),e.reload()}))},t.Eb=function(t){if(void 0===t.displayName&&void 0===t.photoURL)return kl(this);var e=this;return jl(this,this.I().then(function(n){return e.a.Eb(n,{displayName:t.displayName,photoUrl:t.photoURL})}).then(function(t){return Ll(e,t),Il(e,"displayName",t.displayName||null),Il(e,"photoURL",t.photoUrl||null),G(e.providerData,function(t){"password"===t.providerId&&(Ji(t,"displayName",e.displayName),Ji(t,"photoURL",e.photoURL))}),Ol(e)}).then(Tl))},t.cd=function(t){var e=this;return jl(this,Nl(this).then(function(n){return Q(Sl(e),t)?function(t,e,n){return Xa(t,Pa,{idToken:e,deleteProvider:n})}(e.a,n,[t]).then(function(t){var n={};return G(t.providerUserInfo||[],function(t){n[t.providerId]=!0}),G(Sl(e),function(t){n[t]||Al(e,t)}
1),n[Lr.PROVIDER_ID]||Ji(e,"phoneNumber",null),Ol(e)}):Ol(e).then(function(){throw new M("no-such-provider")})}))},t.delete=function(){var t=this;return jl(this,this.I().then(function(e){return Xa(t.a,Oa,{idToken:e})}).then(function(){t.dispatchEvent(new ol("userDeleted"))})).then(function(){for(var e=0;e<t.N.length;e++)t.N[e].cancel("app-deleted");ml(t,null),_l(t,null),bl(t,null),t.N=[],t.J=!0,xl(t),Ji(t,"refreshToken",null),t.b&&Eu(t.b,t)})},t.Gb=function(t,e){return!!("linkViaPopup"==t&&(this.g||null)==e&&this.f||"reauthViaPopup"==t&&(this.g||null)==e&&this.f||"linkViaRedirect"==t&&(this.ga||null)==e||"reauthViaRedirect"==t&&(this.ga||null)==e)},t.na=function(t,e,n,i){"linkViaPopup"!=t&&"reauthViaPopup"!=t||i!=(this.g||null)||(n&&this.C?this.C(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.C)},t.Fa=function(t,e){return"linkViaPopup"==t&&e==(this.g||null)?C(this.Lb,this):"reauthViaPopup"==t&&e==(this.g||null)?C(this.Mb,this):"linkViaRedirect"==t&&(this.ga||null)==e?C(this.Lb,this):"reauthViaRedirect"==t&&(this.ga||null)==e?C(this.Mb,this):null},t.Ec=function(t){var e=this;return Zl(this,"linkViaPopup",t,function(){return Dl(e,t.providerId).then(function(){return Ol(e)})},!1)},t.Nc=function(t){return Zl(this,"reauthViaPopup",t,function(){return Te()},!0)},t.Fc=function(t){var e=this;return ql(this,"linkViaRedirect",t,function(){return Dl(e,t.providerId)},!1)},t.Oc=function(t){return ql(this,"reauthViaRedirect",t,function(){return Te()},!0)},t.Lb=function(t,e,n,i){var o=this;this.c&&(this.c.cancel(),this.c=null);var r=null;return jl(this,this.I().then(function(n){return _a(o.a,{requestUri:t,postBody:i,sessionId:e,idToken:n})}).then(function(t){return r=Fl(o,t,"link"),Ul(o,t)}).then(function(){return r}))},t.Mb=function(t,e,n,i){var o=this;this.c&&(this.c.cancel(),this.c=null);var r=null;return jl(this,Te().then(function(){return ur(ya(o.a,{requestUri:t,sessionId:e,postBody:i,tenantId:n}),o.uid)}).then(function(t){return r=Fl(o,t,"reauthenticate"),Ll(o,t),o.i=null,o.reload()}).then(function(){return r}),!0)},t.vb=function(t){var e=this,n=null;return jl(this,this.I().then(function(e){return n=e,void 0===t||ft(t)?{}:qo(new Eo(t))}).then(function(t){return e.a.vb(n,t)}).then(function(t){if(e.email!=t)return e.reload()}).then(function(){}))},t.Fb=function(t,e){var n=this,i=null;return jl(this,this.I().then(function(t){return i=t,void 0===e||ft(e)?{}:qo(new Eo(e))}).then(function(e){return n.a.Fb(i,t,e)}).then(function(t){if(n.email!=t)return n.reload()}).then(function(){}))},t.jc=function(t){var e=null,n=this;return jl(this,t=ur(Te(t),n.uid).then(function(t){return e=Fl(n,t,"reauthenticate"),Ll(n,t),n.i=null,n.reload()}).then(function(){return e}),!0)},t.toJSON=function(){return this.w()},t.w=function(){var t={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.s,stsTokenManager:this.h.w(),redirectEventId:this.ga||null};return this.metadata&&_t(t,this.metadata.w()),G(this.providerData,function(e){t.providerData.push(function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}(e))}),_t(t,this.S.w()),t};var Bl={name:"redirectUser",F:"session"};function Hl(t){return tu(t.b,Bl,t.a)}function Yl(t){this.a=t,this.b=Wc(),this.c=null,this.f=function(t){var e=$l("local"),n=$l("session"),i=$l("none");return function(t,e,n){var i=Xc(e,n),o=Kc(t,e.F);return t.get(e,n).then(function(r){var s=null;try{s=Fi(a.localStorage.getItem(i))}catch(c){}if(s&&!r)return a.localStorage.removeItem(i),t.set(e,s,n);s&&r&&"localStorage"!=o.type&&a.localStorage.removeItem(i)})}(t.b,e,t.a).then(function(){return t.b.get(n,t.a)}).then(function(o){return o?n:t.b.get(i,t.a).then(function(n){return n?i:t.b.get(e,t.a).then(function(n){return n?e:t.b.get(Jl,t.a).then(function(t){return t?$l(t):e})})})}).then(function(e){return t.c=e,Ql(t,e.F)}).o(function(){t.c||(t.c=e)})}(this),this.b.addListener($l("local"),this.a,C(this.g,this))}function Ql(t,e){var n,i=[];for(n in Jc)Jc[n]!==e&&i.push(tu(t.b,$l(Jc[n]),t.a));return i.push(tu(t.b,Jl,t.a)),function(t){return new ve(function(e,n){var i=t.length,o=[];if(i)for(var r=function(t,n){i--,o[t]=n,0==i&&e(o)},s=function(t){n(t)},a=0;a<t.length;a++)Se(t[a],x(r,a),s);else e(o)})}(i)}Yl.prototype.g=function(){var t=this,e=$l("local");th(this,function(){return Te().then(function(){return t.c&&"local"!=t.c.F?t.b.get(e,t.a):null}).then(function(n){if(n)return Ql(t,"local").then(function(){t.c=e})})})};var Jl={name:"persistence",F:"session"};function $l(t){return{name:"authUser",F:t}}function Wl(t,e){return th(t,function(){return t.b.set(t.c,e.w(),t.a)})}function Kl(t){return th(t,function(){return tu(t.b,t.c,t.a)})}function Xl(t,e,n){return th(t,function(){return t.b.get(t.c,t.a).then(function(t){return t&&e&&(t.authDomain=e),t&&n&&(t.emulatorConfig=n),zl(t||{})})})}function th(t,e){return t.f=t.f.then(e,e),t.f}function eh(t){if(this.l=!1,Ji(this,"settings",new Hu),Ji(this,"app",t),!uh(this).options||!uh(this).options.apiKey)throw new M("invalid-api-key");t=i.Z.SDK_VERSION?Ti(i.Z.SDK_VERSION):null,this.a=new Ys(uh(this).options&&uh(this).options.apiKey,I(k),t),this.P=[],this.s=[],this.N=[],this.Pa=i.Z.INTERNAL.createSubscribe(C(this.zc,this)),this.W=void 0,this.ib=i.Z.INTERNAL.createSubscribe(C(this.Ac,this)),ah(this,null),this.i=new Yl(uh(this).options.apiKey+":"+uh(this).name),this.D=new Gl(uh(this).options.apiKey+":"+uh(this).name),this.$=ph(this,function(t){var e=uh(t).options.authDomain,n=function(t){var e=function(t,e){return t.b.get(Bl,t.a).then(function(t){return t&&e&&(t.authDomain=e),zl(t||{})})}(t.D,uh(t).options.authDomain).then(function(e){return(t.m=e)&&(e.ha=t.D),Hl(t.D)});return ph(t,e)}(t).then(function(){return Xl(t.i,e,t.R)}).then(function(e){return e?(e.ha=t.D,t.m&&(t.m.ga||null)==(e.ga||null)?e:e.reload().then(function(){return Wl(t.i,e).then(function(){return e})}).o(function(n){return"auth/network-request-failed"==n.code?e:Kl(t.i)})):null}).then(function(e){ah(t,e||null)});return ph(t,n)}(this)),this.h=ph(this,function(t){return t.$.then(function(){return sh(t)}).o(function(){}).then(function(){if(!t.l)return t.ja()}).o(function(){}).then(function(){if(!t.l){t.ba=!0;var e=t.i;e.b.addListener($l("local"),e.a,t.ja)}})}(this)),this.ba=!1,this.ja=C(this.Zc,this),this.Ba=C(this.da,this),this.qa=C(this.mc,this),this.za=C(this.wc,this),this.Aa=C(this.xc,this),this.b=null,function(t){var e=uh(t).options.authDomain,n=uh(t).options.apiKey;e&&Ai()&&(t.Oa=t.$.then(function(){if(!t.l){if(t.b=Zu(e,n,uh(t).name,t.R),Su(t.b,t),lh(t)&&Pl(lh(t)),t.m){Pl(t.m);var i=t.m;i.xa(t.la()),ml(i,t),yl(i=t.m,t.J),bl(i,t),gl(i=t.m,t.R),_l(i,t),t.m=null}return t.b}}))}(this),this.INTERNAL={},this.INTERNAL.delete=C(this.delete,this),this.INTERNAL.logFramework=C(this.Gc,this),this.u=0,Cn.call(this),function(t){Object.defineProperty(t,"lc",{get:function(){return this.la()},set:function(t){this.xa(t)},enumerable:!1}),t.aa=null,Object.defineProperty(t,"ti",{get:function(){return this.T()},set:function(t){this.zb(t)},enumerable:!1}),t.S=null,Object.defineProperty(t,"emulatorConfig",{get:function(){if(this.R){var t=Zn(this.R.url);t=Wi({protocol:t.c,host:t.a,port:t.g,options:Wi({disableWarnings:this.R.ec})})}else t=null;return t},enumerable:!1})}(this),this.J=[],this.R=null}function nh(t){$e.call(this,"languageCodeChanged"),this.h=t}function ih(t){$e.call(this,"emulatorConfigChanged"),this.c=t}function oh(t){$e.call(this,"frameworkChanged"),this.f=t}
1function rh(t){return t.Oa||ke(new M("auth-domain-config-required"))}function sh(t){if(!Ai())return ke(new M("operation-not-supported-in-this-environment"));var e=rh(t).then(function(){return t.b.ra()}).then(function(t){return t?Wi(t):null});return ph(t,e)}function ah(t,e){lh(t)&&(function(t,e){$(t.W,function(t){return t==e})}(lh(t),t.Ba),dn(lh(t),"tokenChanged",t.qa),dn(lh(t),"userDeleted",t.za),dn(lh(t),"userInvalidated",t.Aa),xl(lh(t))),e&&(e.W.push(t.Ba),un(e,"tokenChanged",t.qa),un(e,"userDeleted",t.za),un(e,"userInvalidated",t.Aa),0<t.u&&Cl(e)),Ji(t,"currentUser",e),e&&(e.xa(t.la()),ml(e,t),yl(e,t.J),bl(e,t),gl(e,t.R),_l(e,t))}function ch(t,e){var n=null,i=null;return ph(t,e.then(function(e){return n=Fr(e),i=Jo(e),function(t,e){var n={};return n.apiKey=uh(t).options.apiKey,n.authDomain=uh(t).options.authDomain,n.appName=uh(t).name,t.R&&(n.emulatorConfig=t.R),t.$.then(function(){return function(t,e,n,i){var o=new fl(t,e);return n&&(o.ha=n),i&&yl(o,i),o.reload().then(function(){return o})}(n,e,t.D,t.Ga())}).then(function(e){return lh(t)&&e.uid==lh(t).uid?(Rl(lh(t),e),t.da(e)):(ah(t,e),Pl(e),t.da(e))}).then(function(){dh(t)})}(t,e)},function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=tl(e.w(),t,C(t.kc,t))),n||e}).then(function(){return Wi({user:lh(t),credential:n,additionalUserInfo:i,operationType:"signIn"})}))}function uh(t){return t.app}function lh(t){return t.currentUser}function hh(t){return lh(t)&&lh(t)._lat||null}function dh(t){if(t.ba){for(var e=0;e<t.s.length;e++)t.s[e]&&t.s[e](hh(t));if(t.W!==t.getUid()&&t.N.length)for(t.W=t.getUid(),e=0;e<t.N.length;e++)t.N[e]&&t.N[e](hh(t))}}function ph(t,e){return t.P.push(e),e.oa(function(){J(t.P,e)}),e}function fh(){}function gh(){this.a={},this.b=1e12}Yl.prototype.yb=function(t){var e=null,n=this;return function(t){var e=new M("invalid-persistence-type"),n=new M("unsupported-persistence-type");t:{for(i in Jc)if(Jc[i]==t){var i=!0;break t}i=!1}if(!i||"string"!=typeof t)throw e;switch(xi()){case"ReactNative":if("session"===t)throw n;break;case"Node":if("none"!==t)throw n;break;case"Worker":if("session"===t||!kc()&&"none"!==t)throw n;break;default:if(!Ei()&&"none"!==t)throw n}}(t),th(this,function(){return t!=n.c.F?n.b.get(n.c,n.a).then(function(i){return e=i,Ql(n,t)}).then(function(){if(n.c=$l(t),e)return n.b.set(n.c,e,n.a)}):Te()})},O(eh,Cn),O(nh,$e),O(ih,$e),O(oh,$e),(t=eh.prototype).yb=function(t){return ph(this,t=this.i.yb(t))},t.xa=function(t){this.aa===t||this.l||(this.aa=t,ta(this.a,this.aa),this.dispatchEvent(new nh(this.la())))},t.la=function(){return this.aa},t.fd=function(){var t=a.navigator;this.xa(t&&(t.languages&&t.languages[0]||t.language||t.userLanguage)||null)},t.gd=function(t,e){if(!this.R){if(!/^https?:\/\//.test(t))throw new M("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");(function(t){"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),a.document&&!t&&yi().then(function(){var t=a.document.createElement("div");t.innerText="Running in emulator mode. Do not use with production credentials.",t.style.position="fixed",t.style.width="100%",t.style.backgroundColor="#ffffff",t.style.border=".1em solid #000000",t.style.color="#b50000",t.style.bottom="0px",t.style.left="0px",t.style.margin="0px",t.style.zIndex=1e4,t.style.textAlign="center",t.classList.add("firebase-emulator-warning"),a.document.body.appendChild(t)})})(e=!!e&&!!e.disableWarnings),this.R={url:t,ec:e},this.settings.jb=!0,ea(this.a,this.R),this.dispatchEvent(new ih(this.R))}},t.Gc=function(t){this.J.push(t),ia(this.a,i.Z.SDK_VERSION?Ti(i.Z.SDK_VERSION,this.J):null),this.dispatchEvent(new oh(this.J))},t.Ga=function(){return K(this.J)},t.zb=function(t){this.S===t||this.l||(this.S=t,this.a.b=this.S)},t.T=function(){return this.S},t.toJSON=function(){return{apiKey:uh(this).options.apiKey,authDomain:uh(this).options.authDomain,appName:uh(this).name,currentUser:lh(this)&&lh(this).w()}},t.Gb=function(t,e){switch(t){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==e&&!!this.f;default:return!1}},t.na=function(t,e,n,i){"signInViaPopup"==t&&this.g==i&&(n&&this.C?this.C(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.C)},t.Fa=function(t,e){return"signInViaRedirect"==t||"signInViaPopup"==t&&this.g==e&&this.f?C(this.ic,this):null},t.ic=function(t,e,n,i){var o=this,r={requestUri:t,postBody:i,sessionId:e,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),o.$.then(function(){return ch(o,ma(o.a,r))})},t.Xc=function(t){if(!Ai())return ke(new M("operation-not-supported-in-this-environment"));var e=this,n=Qo(t.providerId),o=Ui(),r=null;(!Ni()||vi())&&uh(this).options.authDomain&&t.isOAuthProvider&&(r=fc(uh(this).options.authDomain,uh(this).options.apiKey,uh(this).name,"signInViaPopup",t,null,o,i.Z.SDK_VERSION||null,null,null,this.T(),this.R));var s=gi(r,n&&n.va,n&&n.ua);return ph(this,n=rh(this).then(function(n){return Ru(n,s,"signInViaPopup",t,o,!!r,e.T())}).then(function(){return new ve(function(t,n){e.na("signInViaPopup",null,new M("cancelled-popup-request"),e.g),e.f=t,e.C=n,e.g=o,e.c=Du(e.b,e,"signInViaPopup",s,o)})}).then(function(t){return s&&fi(s),t?Wi(t):null}).o(function(t){throw s&&fi(s),t}))},t.Yc=function(t){if(!Ai())return ke(new M("operation-not-supported-in-this-environment"));var e=this,n=rh(this).then(function(){return function(t){return th(t,function(){return t.b.set(Jl,t.c.F,t.a)})}(e.i)}).then(function(){return Lu(e.b,"signInViaRedirect",t,void 0,e.T())});return ph(this,n)},t.ra=function(){var t=this;return sh(this).then(function(e){return t.b&&ju(t.b.b),e}).o(function(e){throw t.b&&ju(t.b.b),e})},t.dd=function(t){if(!t)return ke(new M("null-user"));if(this.S!=t.tenantId)return ke(new M("tenant-id-mismatch"));var e=this,n={};n.apiKey=uh(this).options.apiKey,n.authDomain=uh(this).options.authDomain,n.appName=uh(this).name;var i=function(t,e,n,i){var o=t.h,r={};return r[Js]=o.b&&o.b.toString(),r.refreshToken=o.a,e=new fl(e||{apiKey:t.l,authDomain:t.s,appName:t.m},r),n&&(e.ha=n),i&&yl(e,i),Rl(e,t),e}(t,n,e.D,e.Ga());return ph(this,this.h.then(function(){if(uh(e).options.apiKey!=t.l)return i.reload()}).then(function(){return lh(e)&&t.uid==lh(e).uid?(Rl(lh(e),t),e.da(t)):(ah(e,i),Pl(i),e.da(i))}).then(function(){dh(e)}))},t.Bb=function(){var t=this;return ph(this,this.h.then(function(){return t.b&&ju(t.b.b),lh(t)?(ah(t,null),Kl(t.i).then(function(){dh(t)})):Te()}))},t.Zc=function(){var t=this;return Xl(this.i,uh(this).options.authDomain).then(function(e){if(!t.l){var n;if(n=lh(t)&&e){n=lh(t).uid;var i=e.uid;n=null!=n&&""!==n&&null!=i&&""!==i&&n==i}if(n)return Rl(lh(t),e),lh(t).I();(lh(t)||e)&&(ah(t,e),e&&(Pl(e),e.ha=t.D),t.b&&Su(t.b,t),dh(t))}})},t.da=function(t){return Wl(this.i,t)},t.mc=function(){dh(this),this.da(lh(this))},t.wc=function(){this.Bb()},t.xc=function(){this.Bb()},t.kc=function(t){var e=this;return this.h.then(function(){return ch(e,Te(t))})},t.zc=function(t){var e=this;this.addAuthTokenListener(function(){t.next(lh(e))})},t.Ac=function(t){var e=this;!function(t,e){t.N.push(e),ph(t,t.h.then(function(){!t.l&&Q(t.N,e)&&t.W!==t.getUid()&&(t.W
1=t.getUid(),e(hh(t)))}))}(this,function(){t.next(lh(e))})},t.Ic=function(t,e,n){var i=this;return this.ba&&Promise.resolve().then(function(){"function"==typeof t?t(lh(i)):"function"==typeof t.next&&t.next(lh(i))}),this.Pa(t,e,n)},t.Hc=function(t,e,n){var i=this;return this.ba&&Promise.resolve().then(function(){i.W=i.getUid(),"function"==typeof t?t(lh(i)):"function"==typeof t.next&&t.next(lh(i))}),this.ib(t,e,n)},t.nc=function(t){var e=this;return ph(this,this.h.then(function(){return lh(e)?lh(e).I(t).then(function(t){return{accessToken:t}}):null}))},t.Tc=function(t){var e=this;return this.h.then(function(){return ch(e,Xa(e.a,Ya,{token:t}))}).then(function(t){var n=t.user;return Il(n,"isAnonymous",!1),e.da(n),t})},t.Uc=function(t,e){var n=this;return this.h.then(function(){return ch(n,Xa(n.a,Qa,{email:t,password:e}))})},t.dc=function(t,e){var n=this;return this.h.then(function(){return ch(n,Xa(n.a,xa,{email:t,password:e}))})},t.ab=function(t){var e=this;return this.h.then(function(){return ch(e,t.ka(e.a))})},t.Sc=function(t){return Yi("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.ab(t)},t.Ab=function(){var t=this;return this.h.then(function(){var e=lh(t);if(e&&e.isAnonymous){var n=Wi({providerId:null,isNewUser:!1});return Wi({user:e,credential:null,additionalUserInfo:n,operationType:"signIn"})}return ch(t,t.a.Ab()).then(function(e){var n=e.user;return Il(n,"isAnonymous",!0),t.da(n),e})})},t.getUid=function(){return lh(this)&&lh(this).uid||null},t.cc=function(t){this.addAuthTokenListener(t),this.u++,0<this.u&&lh(this)&&Cl(lh(this))},t.Pc=function(t){var e=this;G(this.s,function(n){n==t&&e.u--}),0>this.u&&(this.u=0),0==this.u&&lh(this)&&xl(lh(this)),this.removeAuthTokenListener(t)},t.addAuthTokenListener=function(t){var e=this;this.s.push(t),ph(this,this.h.then(function(){e.l||Q(e.s,t)&&t(hh(e))}))},t.removeAuthTokenListener=function(t){$(this.s,function(e){return e==t})},t.delete=function(){this.l=!0;for(var t=0;t<this.P.length;t++)this.P[t].cancel("app-deleted");return this.P=[],this.i&&(t=this.i).b.removeListener($l("local"),t.a,this.ja),this.b&&(Eu(this.b,this),ju(this.b.b)),Promise.resolve()},t.hc=function(t){return ph(this,function(t,e){return Xa(t,wa,{identifier:e,continueUri:Ii()?li():"http://localhost"}).then(function(t){return t.signinMethods||[]})}(this.a,t))},t.Bc=function(t){return!!Ar(t)},t.xb=function(t,e){var n=this;return ph(this,Te().then(function(){var t=new Eo(e);if(!t.c)throw new M("argument-error",Ro+" must be true when sending sign in link to email");return qo(t)}).then(function(e){return n.a.xb(t,e)}).then(function(){}))},t.jd=function(t){return this.Sa(t).then(function(t){return t.data.email})},t.ob=function(t,e){return ph(this,this.a.ob(t,e).then(function(){}))},t.Sa=function(t){return ph(this,this.a.Sa(t).then(function(t){return new so(t)}))},t.kb=function(t){return ph(this,this.a.kb(t).then(function(){}))},t.wb=function(t,e){var n=this;return ph(this,Te().then(function(){return void 0===e||ft(e)?{}:qo(new Eo(e))}).then(function(e){return n.a.wb(t,e)}).then(function(){}))},t.Wc=function(t,e){return ph(this,Qu(this,t,e,C(this.ab,this)))},t.Vc=function(t,e){var n=this;return ph(this,Te().then(function(){var i=e||li(),o=Er(t,i);if(!(i=Ar(i)))throw new M("argument-error","Invalid email link!");if(i.tenantId!==n.T())throw new M("tenant-id-mismatch");return n.ab(o)}))},fh.prototype.render=function(){},fh.prototype.reset=function(){},fh.prototype.getResponse=function(){},fh.prototype.execute=function(){};var mh=null;function _h(t,e){return(e=yh(e))&&t.a[e]||null}function yh(t){return(t=void 0===t?1e12:t)?t.toString():null}function bh(t,e){this.g=!1,this.c=e,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=ce(t);var n=this;this.i=function(){n.execute()},this.h?this.execute():un(this.f,"click",this.i)}function vh(t){if(t.g)throw Error("reCAPTCHA mock was already deleted!")}function Ch(){}function xh(){}gh.prototype.render=function(t,e){return this.a[this.b.toString()]=new bh(t,e),this.b++},gh.prototype.reset=function(t){var e=_h(this,t);t=yh(t),e&&t&&(e.delete(),delete this.a[t])},gh.prototype.getResponse=function(t){return(t=_h(this,t))?t.getResponse():null},gh.prototype.execute=function(t){(t=_h(this,t))&&t.execute()},bh.prototype.getResponse=function(){return vh(this),this.b},bh.prototype.execute=function(){vh(this);var t=this;this.a||(this.a=setTimeout(function(){t.b=function(){for(var t=50,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}();var e=t.c.callback,n=t.c["expired-callback"];if(e)try{e(t.b)}catch(i){}t.a=setTimeout(function(){if(t.a=null,t.b=null,n)try{n()}catch(i){}t.h&&t.execute()},6e4)},500))},bh.prototype.delete=function(){vh(this),this.g=!0,clearTimeout(this.a),this.a=null,dn(this.f,"click",this.i)},Ji(Ch,"FACTOR_ID","phone"),xh.prototype.g=function(){return mh||(mh=new gh),Te(mh)},xh.prototype.c=function(){};var wh=null;
1function Oh(){this.b=a.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var Ph=new bt(wt,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Mh=new Vi(3e4,6e4);Oh.prototype.g=function(t){var e=this;return new ve(function(n,i){var o=setTimeout(function(){i(new M("network-request-failed"))},Mh.get());!a.grecaptcha||t!==e.f&&!e.b?(a[e.a]=function(){if(a.grecaptcha){e.f=t;var r=a.grecaptcha.render;a.grecaptcha.render=function(t,n){return t=r(t,n),e.b++,t},clearTimeout(o),n(a.grecaptcha)}else clearTimeout(o),i(new M("internal-error"));delete a[e.a]},Te(qs(Tt(Ph,{onload:e.a,hl:t||""}))).o(function(){clearTimeout(o),i(new M("internal-error","Unable to load external reCAPTCHA dependencies!"))})):(clearTimeout(o),n(a.grecaptcha))})},Oh.prototype.c=function(){this.b--};var Th=null;function kh(t,e,n,i,o,r,s){if(Ji(this,"type","recaptcha"),this.c=this.f=null,this.J=!1,this.v=e,this.g=null,s?(wh||(wh=new xh),s=wh):(Th||(Th=new Oh),s=Th),this.m=s,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[Ah])throw new M("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[Ih],!a.document)throw new M("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!ce(e)||!this.i&&ce(e).hasChildNodes())throw new M("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.s=new Ys(t,r||null,o||null),this.u=i||function(){return null};var c=this;this.l=[];var u=this.a[Sh];this.a[Sh]=function(t){if(Rh(c,t),"function"==typeof u)u(t);else if("string"==typeof u){var e=Si(u,a);"function"==typeof e&&e(t)}};var l=this.a[Eh];this.a[Eh]=function(){if(Rh(c,null),"function"==typeof l)l();else if("string"==typeof l){var t=Si(l,a);"function"==typeof t&&t()}}}var Sh="callback",Eh="expired-callback",Ah="sitekey",Ih="size";function Rh(t,e){for(var n=0;n<t.l.length;n++)try{t.l[n](e)}catch(i){}}function Nh(t,e){return t.h.push(e),e.oa(function(){J(t.h,e)}),e}function Lh(t){if(t.J)throw new M("internal-error","RecaptchaVerifier instance has been destroyed.")}function Dh(t,e,n){var o=!1;try{this.b=n||i.Z.app()}catch(a){throw new M("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new M("invalid-api-key");n=this.b.options.apiKey;var r=this,s=null;try{s=this.b.auth().Ga()}catch(a){}try{o=this.b.auth().settings.appVerificationDisabledForTesting}catch(a){}s=i.Z.SDK_VERSION?Ti(i.Z.SDK_VERSION,s):null,kh.call(this,n,t,e,function(){try{var t=r.b.auth().la()}catch(e){t=null}return t},s,I(k),o)}function Fh(t,e,n,i){t:{n=Array.prototype.slice.call(n);for(var o=0,r=!1,s=0;s<e.length;s++)if(e[s].optional)r=!0;else{if(r)throw new M("internal-error","Argument validator encountered a required argument after an optional argument.");o++}if(r=e.length,n.length<o||r<n.length)i="Expected "+(o==r?1==o?"1 argument":o+" arguments":o+"-"+r+" arguments")+" but got "+n.length+".";else{for(o=0;o<n.length;o++)if(r=e[o].optional&&void 0===n[o],!e[o].M(n[o])&&!r){if(e=e[o],0>o||o>=Uh.length)throw new M("internal-error","Argument validator received an unsupported number of arguments.");n=Uh[o],i=(i?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.K+".";break t}i=null}}if(i)throw new M("argument-error",t+" failed: "+i)}(t=kh.prototype).Ia=function(){var t=this;return this.f?this.f:this.f=Nh(this,Te().then(function(){if(Ii()&&!Ci())return yi();throw new M("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return t.m.g(t.u())}).then(function(e){return t.g=e,Xa(t.s,Da,{})}).then(function(e){t.a[Ah]=e.recaptchaSiteKey}).o(function(e){throw t.f=null,e}))},t.render=function(){Lh(this);var t=this;return Nh(this,this.Ia().then(function(){if(null===t.c){var e=t.v;if(!t.i){var n=ce(e);e=function(t,e,n){var i=arguments,o=document,r=String(i[0]),s=i[1];if(!ae&&s&&(s.name||s.type)){if(r=["<",r],s.name&&r.push(' name="',Gt(s.name),'"'),s.type){r.pu
1sh(' type="',Gt(s.type),'"');var a={};_t(a,s),delete a.type,s=a}r.push(">"),r=r.join("")}return r=fe(o,r),s&&("string"==typeof s?r.className=s:Array.isArray(s)?r.className=s.join(" "):ue(r,s)),2<i.length&&pe(o,r,i),r}("DIV"),n.appendChild(e)}t.c=t.g.render(e,t.a)}return t.c}))},t.verify=function(){Lh(this);var t=this;return Nh(this,this.render().then(function(e){return new ve(function(n){var i=t.g.getResponse(e);if(i)n(i);else{var o=function(e){e&&(function(t,e){$(t.l,function(t){return t==e})}(t,o),n(e))};t.l.push(o),t.i&&t.g.execute(t.c)}})}))},t.reset=function(){Lh(this),null!==this.c&&this.g.reset(this.c)},t.clear=function(){Lh(this),this.J=!0,this.m.c();for(var t=0;t<this.h.length;t++)this.h[t].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){t=ce(this.v);for(var e;e=t.firstChild;)t.removeChild(e)}},O(Dh,kh);var Uh="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function Zh(t,e){return{name:t||"",K:"a valid string",optional:!!e,M:function(t){return"string"==typeof t}}}function qh(t,e){return{name:t||"",K:"a boolean",optional:!!e,M:function(t){return"boolean"==typeof t}}}function Vh(t,e){return{name:t||"",K:"a valid object",optional:!!e,M:g}}function jh(t,e){return{name:t||"",K:"a function",optional:!!e,M:function(t){return"function"==typeof t}}}function zh(t,e){return{name:t||"",K:"null",optional:!!e,M:function(t){return null===t}}}function Gh(t){return{name:t?t+"Credential":"credential",K:t?"a valid "+t+" credential":"a valid credential",optional:!1,M:function(e){return!!e&&!(!e.ka||t&&e.providerId!==t)}}}function Bh(t,e){return g(t)&&"string"==typeof t.type&&t.type===e&&"function"==typeof t.Ha}function Hh(t){return g(t)&&"string"==typeof t.uid}function Yh(t,e,n,i){return{name:n||"",K:t.K+" or "+e.K,optional:!!i,M:function(n){return t.M(n)||e.M(n)}}}function Qh(t,e){for(var n in e){var i=e[n].name;t[i]=Wh(i,t[n],e[n].j)}}function Jh(t,e){for(var n in e){var i=e[n].name;i!==n&&Object.defineProperty(t,i,{get:x(function(t){return this[t]},n),set:x(function(t,e,n,i){Fh(t,[n],[i],!0),this[e]=i},i,n,e[n].lb),enumerable:!0})}}function $h(t,e,n,i){t[e]=Wh(e,n,i)}function Wh(t,e,n){function i(){var t=Array.prototype.slice.call(arguments);return Fh(r,n,t),e.apply(this,t)}if(!n)return e;var o,r=function(t){return(t=t.split("."))[t.length-1]}(t);for(o in e)i[o]=e[o];for(o in e.prototype)i.prototype[o]=e.prototype[o];return i}Qh(eh.prototype,{kb:{name:"applyActionCode",j:[Zh("code")]},Sa:{name:"checkActionCode",j:[Zh("code")]},ob:{name:"confirmPasswordReset",j:[Zh("code"),Zh("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[Zh("email"),Zh("password")]},hc:{name:"fetchSignInMethodsForEmail",j:[Zh("email")]},ra:{name:"getRedirectResult",j:[]},Bc:{name:"isSignInWithEmailLink",j:[Zh("emailLink")]},Hc:{name:"onAuthStateChanged",j:[Yh(Vh(),jh(),"nextOrObserver"),jh("opt_error",!0),jh("opt_completed",!0)]},Ic:{name:"onIdTokenChanged",j:[Yh(Vh(),jh(),"nextOrObserver"),jh("opt_error",!0),jh("opt_completed",!0)]},wb:{name:"sendPasswordResetEmail",j:[Zh("email"),Yh(Vh("opt_actionCodeSettings",!0),zh(null,!0),"opt_actionCodeSettings",!0)]},xb:{name:"sendSignInLinkToEmail",j:[Zh("email"),Vh("actionCodeSettings")]},yb:{name:"setPersistence",j:[Zh("persistence")]},Sc:{name:"signInAndRetrieveDataWithCredential",j:[Gh()]},Ab:{name:"signInAnonymously",j:[]},ab:{name:"signInWithCredential",j:[Gh()]},Tc:{name:"signInWithCustomToken",j:[Zh("token")]},Uc:{name:"signInWithEmailAndPassword",j:[Zh("email"),Zh("password")]},Vc:{name:"signInWithEmailLink",j:[Zh("email"),Zh("emailLink",!0)]},Wc:{name:"signInWithPhoneNumber",j:[Zh("phoneNumber"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]},Xc:{name:"signInWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Yc:{name:"signInWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]}
1,dd:{name:"updateCurrentUser",j:[Yh({name:"user",K:"an instance of Firebase User",optional:!1,M:function(t){return!!(t&&t instanceof fl)}},zh(),"user")]},Bb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Zh(null,!0)]},fd:{name:"useDeviceLanguage",j:[]},gd:{name:"useEmulator",j:[Zh("url"),Vh("options",!0)]},jd:{name:"verifyPasswordResetCode",j:[Zh("code")]}}),Jh(eh.prototype,{lc:{name:"languageCode",lb:Yh(Zh(),zh(),"languageCode")},ti:{name:"tenantId",lb:Yh(Zh(),zh(),"tenantId")}}),(eh.Persistence=Jc).LOCAL="local",eh.Persistence.SESSION="session",eh.Persistence.NONE="none",Qh(fl.prototype,{delete:{name:"delete",j:[]},oc:{name:"getIdTokenResult",j:[qh("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[qh("opt_forceRefresh",!0)]},Cc:{name:"linkAndRetrieveDataWithCredential",j:[Gh()]},rb:{name:"linkWithCredential",j:[Gh()]},Dc:{name:"linkWithPhoneNumber",j:[Zh("phoneNumber"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]},Ec:{name:"linkWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Fc:{name:"linkWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Lc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[Gh()]},ub:{name:"reauthenticateWithCredential",j:[Gh()]},Mc:{name:"reauthenticateWithPhoneNumber",j:[Zh("phoneNumber"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]},Nc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Oc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},vb:{name:"sendEmailVerification",j:[Yh(Vh("opt_actionCodeSettings",!0),zh(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[Zh(null,!0)]},cd:{name:"unlink",j:[Zh("provider")]},Cb:{name:"updateEmail",j:[Zh("email")]},Db:{name:"updatePassword",j:[Zh("password")]},ed:{name:"updatePhoneNumber",j:[Gh("phone")]},Eb:{name:"updateProfile",j:[Vh("profile")]},Fb:{name:"verifyBeforeUpdateEmail",j:[Zh("email"),Yh(Vh("opt_actionCodeSettings",!0),zh(null,!0),"opt_actionCodeSettings",!0)]}}),Qh(gh.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Qh(fh.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Qh(ve.prototype,{oa:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),Jh(Hu.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",lb:qh("appVerificationDisabledForTesting")}}),Qh(Yu.prototype,{confirm:{name:"confirm",j:[Zh("verificationCode")]}}),$h(cr,"fromJSON",function(t){t="string"==typeof t?JSON.parse(t):t;for(var e,n=[gr,kr,Rr,dr],i=0;i<n.length;i++)if(e=n[i](t))return e;return null},[Yh(Zh(),Vh(),"json")]),$h(Sr,"credential",function(t,e){return new Tr(t,e)},[Zh("email"),Zh("password")]),Qh(Tr.prototype,{w:{name:"toJSON",j:[Zh(null,!0)]}}),Qh(br.prototype,{Ca:{name:"addScope",j:[Zh("scope")]},Ka:{name:"setCustomParameters",j:[Vh("customOAuthParameters")]}}),$h(br,"credential",vr,[Yh(Zh(),Vh(),"token")]),$h(Sr,"credentialWithLink",Er,[Zh("email"),Zh("emailLink")]),Qh(Cr.prototype,{Ca:{name:"addScope",j:[Zh("scope")]},Ka:{name:"setCustomParameters",j:[Vh("customOAuthParameters")]}}),$h(Cr,"credential",xr,[Yh(Zh(),Vh(),"token")]),Qh(wr.prototype,{Ca:{name:"addScope",j:[Zh("scope")]},Ka:{name:"setCustomParameters",j:[Vh("customOAuthParameters")]}}),$h(wr,"credential",Or,[Yh(Zh(),Yh(Vh(),zh()),"idToken"),Yh(Zh(),zh(),"accessToken",!0)]),Qh(Pr.prototype,{Ka:{name:"setCustomParameters",j:[Vh("customOAuthParameters")]}}),$h(Pr,"credential",Mr,[Yh(Zh(),Vh(),"token"),Zh("secret",!0)]),Qh(yr.prototype,{Ca:{name:"addScope",j:[Zh("scope")]},credential:{name:"credential",j:[Yh(Zh(),Yh(Vh(),zh()),"optionsOrIdToken"),Yh(Zh(),zh(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[Vh("customOAuthParameters")]}}),Qh(pr.prototype,{w:{name:"toJSON",j:[Zh(null,!0)]}}),Qh(lr.prototype,{w:{name:"toJSON",j:[Zh(null,!0)]}}),$h(Lr,"credential",Dr,[Zh("verificationId"),Zh("verificationCode")]),Qh(Lr.prototype,{gb:{name:"verifyPhoneNumber",j:[Yh(Zh(),{name:"phoneInfoOptions",K:"valid phone info o
1ptions",optional:!1,M:function(t){return!!t&&(t.session&&t.phoneNumber?Bh(t.session,sr)&&"string"==typeof t.phoneNumber:t.session&&t.multiFactorHint?Bh(t.session,ar)&&Hh(t.multiFactorHint):t.session&&t.multiFactorUid?Bh(t.session,ar)&&"string"==typeof t.multiFactorUid:!!t.phoneNumber&&"string"==typeof t.phoneNumber)}},"phoneInfoOptions"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]}}),Qh(Ir.prototype,{w:{name:"toJSON",j:[Zh(null,!0)]}}),Qh(M.prototype,{toJSON:{name:"toJSON",j:[Zh(null,!0)]}}),Qh(Br.prototype,{toJSON:{name:"toJSON",j:[Zh(null,!0)]}}),Qh(Gr.prototype,{toJSON:{name:"toJSON",j:[Zh(null,!0)]}}),Qh(Xu.prototype,{toJSON:{name:"toJSON",j:[Zh(null,!0)]}}),Qh($u.prototype,{Rc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",K:"a valid multiFactorAssertion",optional:!1,M:function(t){return!!t&&!!t.tb}}]}}),Qh(rl.prototype,{Sb:{name:"getSession",j:[]},fc:{name:"enroll",j:[{name:"multiFactorAssertion",K:"a valid multiFactorAssertion",optional:!1,M:function(t){return!!t&&!!t.tb}},Zh("displayName",!0)]},bd:{name:"unenroll",j:[Yh({name:"multiFactorInfo",K:"a valid multiFactorInfo",optional:!1,M:Hh},Zh(),"multiFactorInfoIdentifier")]}}),Qh(Dh.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),$h(Co,"parseLink",So,[Zh("link")]),$h(Ch,"assertion",function(t){return new il(t)},[Gh("phone")]),function(){if(void 0===i.Z||!i.Z.INTERNAL||!i.Z.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var t={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:co,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:ao,VERIFY_AND_CHANGE_EMAIL:uo,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:eh,AuthCredential:cr,Error:M};$h(t,"EmailAuthProvider",Sr,[]),$h(t,"FacebookAuthProvider",br,[]),$h(t,"GithubAuthProvider",Cr,[]),$h(t,"GoogleAuthProvider",wr,[]),$h(t,"TwitterAuthProvider",Pr,[]),$h(t,"OAuthProvider",yr,[Zh("providerId")]),$h(t,"SAMLAuthProvider",_r,[Zh("providerId")]),$h(t,"PhoneAuthProvider",Lr,[{name:"auth",K:"an instance of Firebase Auth",optional:!0,M:function(t){return!!(t&&t instanceof eh)}}]),$h(t,"RecaptchaVerifier",Dh,[Yh(Zh(),{name:"",K:"an HTML element",optional:!1,M:function(t){return!!(t&&t instanceof Element)}},"recaptchaContainer"),Vh("recaptchaParameters",!0),{name:"app",K:"an instance of Firebase App",optional:!0,M:function(t){return!!(t&&t instanceof i.Z.app.App)}}]),$h(t,"ActionCodeURL",Co,[]),$h(t,"PhoneMultiFactorGenerator",Ch,[]),i.Z.INTERNAL.registerComponent({name:"auth",instanceFactory:function(t){return new eh(t=t.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:t,instantiationMode:"LAZY",type:"PUBLIC",onInstanceCreated:function(t){t.getProvider("auth-internal").initialize()}}),i.Z.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(t){return{getUid:C((t=t.getProvider("auth").getImmediate()).getUid,t),getToken:C(t.nc,t),addAuthTokenListener:C(t.cc,t),removeAuthTokenListener:C(t.Pc,t)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),i.Z.registerVersion("@firebase/auth","0.16.8"),i.Z.INTERNAL.extendNamespace({User:fl})}()}).apply("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},268:function(t,e,n){"use strict";n.d(e,{d:function(){return o}});var i=n(7393);class o extends i.L{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},3098:function(t,e,n){"use strict";n.d(e,{P:function(){return s}});var i=n(9193),o=n(5917),r=n(205);class s{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return(0,o.of)(this.value);case"E":return(0,r._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new s("N",t):s.undefinedValueNotification}static createError(t){return new s("E",void 0,t)}static createComplete(){return s.completeNotification}}s.completeNotification=new s("C"),s.undefinedValueNotification=new s("N",void 0)},7574:function(t,e,n){"use strict";n.d(e,{y:function(){return u}});var i=n(7393),o=n(9181),r=n(6490),s=n(6554),a=n(4487);var c=n(2494);let u=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:s}=this,a=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[o.b])return t[o.b]()}return t||e||n?new i.L(t,e,n):new i.L(r.c)}(t,e,n);if(a.add(s?s.call(a,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:o}=t;if(e||o)return!1;t=n&&n instanceof i.L?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=l(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(o){n(o),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[s.L](){return this}pipe(...t){return 0===t.length?this:function(t){return 0===t.length?a.y:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}(t)(this)}toPromise(t){return new(t=l(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function l(t){if(t||(t=c.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},6490:function(t,e,n){"use strict";n.d(e,{c:function(){return r}});var i=n(2494),o=n(4449);const r={closed:!0,next(t){},error(t){if(i.v.useDeprecatedSynchronousErrorHandling)throw t;(0,o.z)(t)},complete(){}}},5197:function(t,e,n){"use strict";n.d(e,{L:function(){return o}});var i=n(7393);class o extends i.L{notifyNext(t,e,n,i,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},9765:function(t,e,n){"use strict";n.d(e,{Yc:function(){return u},xQ:function(){return l}});var i=n(7574),o=n(7393),r=n(5319),s=n(7971),a=n(8858),c=n(9181);class u extends o.L{constructor(t){super(t),this.destination=t}}let l=(()=>{class t extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.b](){return new u(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new s.N;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let o=0;o<n;o++)i[o].next(t)}}error(t){if(this.closed)throw new s.N;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let o=0;o<n;o++)i[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new s.N;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new s.N;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new s.N;return this.hasError?(t.error(this.thrownError),r.w.EMPTY):this.isStopped?(t.complete(),r.w.E
1MPTY):(this.observers.push(t),new a.W(this,t))}asObservable(){const t=new i.y;return t.source=this,t}}return t.create=(t,e)=>new h(t,e),t})();class h extends l{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):r.w.EMPTY}}},8858:function(t,e,n){"use strict";n.d(e,{W:function(){return o}});var i=n(5319);class o extends i.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},7393:function(t,e,n){"use strict";n.d(e,{L:function(){return u}});var i=n(9105),o=n(6490),r=n(5319),s=n(9181),a=n(2494),c=n(4449);class u extends r.w{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=o.c;break;case 1:if(!t){this.destination=o.c;break}if("object"==typeof t){t instanceof u?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,t,e,n)}}[s.b](){return this}static create(t,e,n){const i=new u(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class l extends u{constructor(t,e,n,r){super(),this._parentSubscriber=t;let s,a=this;(0,i.m)(e)?s=e:e&&(s=e.next,n=e.error,r=e.complete,e!==o.c&&(a=Object.create(e),(0,i.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=s,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.v;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,c.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw n;(0,c.z)(n)}}__tryOrSetError(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):((0,c.z)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},5319:function(t,e,n){"use strict";n.d(e,{w:function(){return a}});var i=n(9796),o=n(1555),r=n(9105);const s=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_unsubscribe:n,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof a)e.remove(this);else if(null!==e)for(let i=0;i<e.length;++i)e[i].remove(this);if((0,r.m)(n))try{n.call(this)}
1catch(l){t=l instanceof s?u(l.errors):[l]}if((0,i.k)(c)){let e=-1,n=c.length;for(;++e<n;){const n=c[e];if((0,o.K)(n))try{n.unsubscribe()}catch(h){t=t||[],h instanceof s?t=t.concat(u(h.errors)):t.push(h)}}}if(t)throw new s(t)}add(t){let e=t;if(!t)return a.EMPTY;switch(typeof t){case"function":e=new a(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof a)){const t=e;e=new a,e._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else if(n instanceof a){if(n===this)return e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[e]:i.push(e),e}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var c;function u(t){return t.reduce((t,e)=>t.concat(e instanceof s?e.errors:e),[])}a.EMPTY=((c=new a).closed=!0,c)},2494:function(t,e,n){"use strict";n.d(e,{v:function(){return o}});let i=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},2441:function(t,e,n){"use strict";n.d(e,{c:function(){return a},N:function(){return c}});var i=n(9765),o=n(7574),r=n(5319),s=n(1307);class a extends o.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new r.w,t.add(this.source.subscribe(new u(this.getSubject(),this))),t.closed&&(this._connection=null,t=r.w.EMPTY)),t}refCount(){return(0,s.x)()(this)}}const c=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class u extends i.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},9193:function(t,e,n){"use strict";n.d(e,{E:function(){return o},c:function(){return r}});var i=n(7574);const o=new i.y(t=>t.complete());function r(t){return t?function(t){return new i.y(e=>t.schedule(()=>e.complete()))}(t):o}},5372:function(t,e,n){"use strict";n.d(e,{D:function(){return d}});var i=n(7574),o=n(5905),r=n(5319),s=n(6554),a=n(4531),c=n(4087),u=n(377),l=n(4072),h=n(9489);function d(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[s.L]}(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>{const o=t[s.L]();i.add(o.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if((0,l.t)(t))return(0,a.c)(t,e);if((0,h.z)(t))return(0,c.r)(t,e);if(function(t){return t&&"function"==typeof t[u.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.y(n=>{const i=new r.w;let o;return i.add(()=>{o&&"function"==typeof o.return&&o.return()}),i.add(e.schedule(()=>{o=t[u.hZ](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=o.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.y?t:new i.y((0,o.s)(t))}},6693:function(t,e,n){"use strict";n.d(e,{n:function(){return s}});var i=n(7574),o=n(5015),r=n(4087);
1function s(t,e){return e?(0,r.r)(t,e):new i.y((0,o.V)(t))}},6682:function(t,e,n){"use strict";n.d(e,{T:function(){return a}});var i=n(7574),o=n(4869),r=n(3282),s=n(6693);function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return(0,o.K)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.y?t[0]:(0,r.J)(e)((0,s.n)(t,n))}},5917:function(t,e,n){"use strict";n.d(e,{of:function(){return s}});var i=n(4869),o=n(6693),r=n(4087);function s(...t){let e=t[t.length-1];return(0,i.K)(e)?(t.pop(),(0,r.r)(t,e)):(0,o.n)(t)}},205:function(t,e,n){"use strict";n.d(e,{_:function(){return o}});var i=n(7574);function o(t,e){return new i.y(e?n=>e.schedule(r,0,{error:t,subscriber:n}):e=>e.error(t))}function r({error:t,subscriber:e}){e.error(t)}},8002:function(t,e,n){"use strict";n.d(e,{U:function(){return o}});var i=n(7393);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(t,e))}}
1class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new s(t,this.project,this.thisArg))}}class s extends i.L{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},3282:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});var i=n(9773),o=n(4487);function r(t=Number.POSITIVE_INFINITY){return(0,i.zg)(o.y,t)}},9773:function(t,e,n){"use strict";n.d(e,{zg:function(){return c}});var i=n(5604),o=n(5197),r=n(268),s=n(8002),a=n(5372);function c(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(c((n,i)=>(0,a.D)(t(n,i)).pipe((0,s.U)((t,o)=>e(n,t,i,o))),n)):("number"==typeof e&&(n=e),e=>e.lift(new u(t,n)))}class u{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends o.L{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e,t,n)}_innerSub(t,e,n){const o=new r.d(this,e,n),s=this.destination;s.add(o);const a=(0,i.D)(this,t,void 0,void 0,o);a!==o&&s.add(a)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,i,o){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},9746:function(t,e,n){"use strict";n.d(e,{QV:function(){return r},ht:function(){return a}});var i=n(7393),o=n(3098);function r(t,e=0){return function(n){return n.lift(new s(t,e))}}class s{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))}}class a extends i.L{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new c(t,this.destination)))}_next(t){this.scheduleMessage(o.P.createNext(t))}_error(t){this.scheduleMessage(o.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(o.P.createComplete()),this.unsubscribe()}}class c{constructor(t,e){this.notification=t,this.destination=e}}},1307:function(t,e,n){"use strict";n.d(e,{x:function(){return o}});var i=n(7393);function o(){return function(t){return t.lift(new r(t))}}
1class r{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new s(t,n),o=e.subscribe(i);return i.closed||(i.connection=n.connect()),o}}class s extends i.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}},8819:function(t,e,n){"use strict";n.d(e,{B:function(){return a}});var i=n(2441);var o=n(1307),r=n(9765);function s(){return new r.xQ}function a(){return t=>(0,o.x)()(function(t,e){return function(e){let n;n="function"==typeof t?t:function(){return t};const o=Object.create(e,i.N);return o.source=e,o.subjectFactory=n,o}}(s)(t))}},9673:function(t,e,n){"use strict";n.d(e,{R:function(){return a}});var i=n(7574),o=n(4581),r=n(6561);class s extends i.y{constructor(t,e=0,n=o.e){super(),this.source=t,this.delayTime=e,this.scheduler=n,(!(0,r.k)(e)||e<0)&&(this.delayTime=0),(!n||"function"!=typeof n.schedule)&&(this.scheduler=o.e)}static create(t,e=0,n=o.e){return new s(t,e,n)}static dispatch(t){const{source:e,subscriber:n}=t;return this.add(e.subscribe(n))}_subscribe(t){return this.scheduler.schedule(s.dispatch,this.delayTime,{source:this.source,subscriber:t})}}function a(t,e=0){return function(n){return n.lift(new c(t,e))}}class c{constructor(t,e){this.scheduler=t,this.delay=e}call(t,e){return new s(e,this.delay,this.scheduler).subscribe(t)}}},8307:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var i=n(7393),o=n(8640),r=n(9105);function s(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends i.L{constructor(t,e,n,i){super(t),this._tapNext=o.Z,this._tapError=o.Z,this._tapComplete=o.Z,this._tapError=n||o.Z,this._tapComplete=i||o.Z,(0,r.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||o.Z,this._tapError=e.error||o.Z,this._tapComplete=e.complete||o.Z)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},4087:function(t,e,n){"use strict";n.d(e,{r:function(){return r}});var i=n(7574),o=n(5319);function r(t,e){return new i.y(n=>{const i=new o.w;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},4531:function(t,e,n){"use strict";n.d(e,{c:function(){return r}});var i=n(7574),o=n(5319);function r(t,e){return new i.y(n=>{const i=new o.w;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}},6465:function(t,e,n){"use strict";n.d(e,{o:function(){return r}});var i=n(5319);class o extends i.w{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(o){i=!0,n=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);
1this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},6102:function(t,e,n){"use strict";n.d(e,{v:function(){return o}});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class o extends i{constructor(t,e=i.now){super(t,()=>o.delegate&&o.delegate!==this?o.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return o.delegate&&o.delegate!==this?o.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},4581:function(t,e,n){"use strict";n.d(e,{e:function(){return l}});let i=1;const o=Promise.resolve(),r={};function s(t){return t in r&&(delete r[t],!0)}const a={setImmediate(t){const e=i++;return r[e]=!0,o.then(()=>s(e)&&t()),e},clearImmediate(t){s(t)}};var c=n(6465),u=n(6102);const l=new class extends u.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,o=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<o&&(t=e.shift()));if(this.active=!1,n){for(;++i<o&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends c.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}})},3637:function(t,e,n){"use strict";n.d(e,{P:function(){return o}});var i=n(6465);const o=new(n(6102).v)(i.o)},7771:function(t,e,n){"use strict";n.d(e,{c:function(){return r}});var i=n(6465),o=n(6102);const r=new class extends o.v{}(class extends i.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}})},377:function(t,e,n){"use strict";n.d(e,{hZ:function(){return i}});const i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7971:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4449:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,{z:function(){return i}})},4487:function(t,e,n){"use strict";function i(t){return t}n.d(e,{y:function(){return i}})},9796:function(t,e,n){"use strict";n.d(e,{k:function(){return i}});const i=Array.isArray||(t=>t&&"number"==typeof t.length)},9489:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},9105:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,{m:function(){return i}})},6561:function(t,e,n){"use strict";n.d(e,{k:function(){return o}});var i=n(9796);function o(t){return!(0,i.k)(t)&&t-parseFloat(t)+1>=0}},1555:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,{K:function(){return i}})},4072:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:function(){return i}})},4869:function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,{K:function(){return i}})},8640:function(t,e,n){"use strict";function i(){}n.d(e,{Z:function(){return i}})},5905:function(t,e,n){"use strict";n.d(e,{s:function(){return l}});var i=n(5015),o=n(5104),r=n(377),s=n(6554),a=n(9489),c=n(4072),u=n(1555);const l=t=>{if(t&&"function"==typeof t[s.L])return(t=>e=>{const n=t[s.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if((0,a.z)(t))return(0,i.V)(t);if((0,c.t)(t))return(0,o.A)(t);if(t&&"function"==typeof t[r.hZ])return(t=>e=>{const n=t[r.hZ]();for(;;){const t=n.next();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})(t);
1{const e=`You provided ${(0,u.K)(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}}},5015:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});const i=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()}},5104:function(t,e,n){"use strict";n.d(e,{A:function(){return o}});var i=n(4449);const o=t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,i.z),e)},5604:function(t,e,n){"use strict";n.d(e,{D:function(){return s}});var i=n(268),o=n(5905),r=n(7574);function s(t,e,n,s,a=new i.d(t,n,s)){if(!a.closed)return e instanceof r.y?e.subscribe(a):(0,o.s)(e)(a)}},2001:function(t,e,n){"use strict";var i=n(7716);let o=null;function r(){return o}const s=new i.OlP("DocumentToken");let a=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:c,token:t,providedIn:"platform"}),t})();function c(){return(0,i.LFG)(l)}const u=new i.OlP("Location Initialized");let l=(()=>{class t extends a{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){h()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){h()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s))},t.\u0275prov=(0,i.Yz7)({factory:d,token:t,providedIn:"platform"}),t})();function h(){return!!window.history.pushState}function d(){return new l((0,i.LFG)(s))}function p(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function f(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function g(t){return t&&"?"!==t[0]?"?"+t:t}let m=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:_,token:t,providedIn:"root"}),t})();function _(t){const e=(0,i.LFG)(s).location;return new b((0,i.LFG)(a),e&&e.origin||"")}const y=new i.OlP("appBaseHref");let b=(()=>{class t extends m{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return p(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const o=this.prepareExternalUrl(n+g(i));this._platformLocation.pushState(t,e,o)}replaceState(t,e,n,i){const o=this.prepareExternalUrl(n+g(i));this._platformLocation.replaceState(t,e,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(a),i.LFG(y,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),v=(()=>{class t extends m{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.on
1HashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=p(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let o=this.prepareExternalUrl(n+g(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)}replaceState(t,e,n,i){let o=this.prepareExternalUrl(n+g(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(a),i.LFG(y,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=f(w(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+g(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,w(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+g(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+g(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(m),i.LFG(a))},t.normalizeQueryParams=g,t.joinWithSlash=p,t.stripTrailingSlash=f,t.\u0275prov=(0,i.Yz7)({factory:x,token:t,providedIn:"root"}),t})();function x(){return new C((0,i.LFG)(m),(0,i.LFG)(a))}function w(t){return t.replace(/\/index.html$/,"")}var O=(()=>((O=O||{})[O.Zero=0]="Zero",O[O.One=1]="One",O[O.Two=2]="Two",O[O.Few=3]="Few",O[O.Many=4]="Many",O[O.Other=5]="Other",O))();const P=i.kL8;class M{}let T=(()=>{class t extends M{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(P(e||this.locale)(t)){case O.Zero:return"zero";case O.One:return"one";case O.Two:return"two";case O.Few:return"few";case O.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.soG))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function k(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,o]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}let S=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>
vendor: 2,442 bytes, line 1
1{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class E{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let A=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(t){return t.name||typeof t}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new E(null,this._ngForOf,-1,-1),null===i?void 0:i),o=new I(t,n);e.push(o)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const o=this._viewContainer.get(n);this._viewContainer.move(o,i);const r=new I(t,o);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);
vendor: 4,579 bytes, line 1
1t.context.index=n,t.context.count=i,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class I{constructor(t,e){this.record=t,this.view=e}}let R=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new N,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){L("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){L("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class N{constructor(){this.$implicit=null,this.ngIf=null}}function L(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class D{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let F=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),U=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new D(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(F,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Z=(()=>{class t{constructor(t,e,n){n._addDefault(new D(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(F,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})();class q{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class V{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const j=new V,z=new q;let G=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,i.QGY)(e))return j;if((0,i.F4k)(e))return z;throw function(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}(t,e)}
1_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO,16))},t.\u0275pipe=i.Yjl({name:"async",type:t,pure:!1}),t})(),B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:M,useClass:T}]}),t})();function H(t){return"browser"===t}function Y(t){return"server"===t}let Q=(()=>{class t{}return t.\u0275prov=(0,i.Yz7)({token:t,providedIn:"root",factory:()=>new J((0,i.LFG)(s),window)}),t})();class J{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=$(this.window.history)||$(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function $(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class W{}class K extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new K,o||(o=t)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(tt=tt||document.querySelector("base"),tt?tt.getAttribute("href"):null);return null==e?null:function(t){X=X||document.createElement("a"),X.setAttribute("href",t);const e=X.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){tt=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return k(document.cookie,t)}}let X,tt=null;const et=new i.OlP("TRANSITION_ID"),nt=[{provide:i.ip1,useFactory:function(t,e,n){return()=>{n.get(i.CZH).donePromise.then(()=>{const n=r(),i=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let t=0;t<i.length;t++)n.remove(i[t])})}},deps:[et,s,i.zs3],multi:!0}];class it{static init(){(0,i.VLi)(new it)}addToWindow(t){i.dqk.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},i.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const e=i.dqk.getAllAngularTestabilities();let n=e.length,o=!1;const r=function(e){o=o||e,n--,0==n&&t(o)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?r().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let ot=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const rt=new i.OlP("EventManagerPlugins");let st=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(rt),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class at{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=r().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let ct=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),ut=(()=>{class t extends ct{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(lt),this._hostNodes.delete(t)}
vendor: 5,860 bytes, line 1
1onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(lt))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function lt(t){r().remove(t)}const ht={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/"},dt=/%COMP%/g;function pt(t,e,n){for(let i=0;i<e.length;i++){let o=e[i];Array.isArray(o)?pt(t,o,n):(o=o.replace(dt,t),n.push(o))}return n}function ft(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let gt=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new mt(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case i.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new _t(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case i.ifc.ShadowDom:return new yt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=pt(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(st),i.LFG(ut),i.LFG(i.AFp))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class mt{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(ht[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const o=ht[i];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=ht[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,o){o&(i.JOm.DashCase|i.JOm.Important)?t.style.setProperty(e,n,o&i.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&i.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,ft(n)):this.eventManager.addEventListener(t,e,ft(n))}}class _t extends mt{constructor(t,e,n,i){super(t),this.component=n;const o=pt(i+"-"+n.id,n.styles,[]);e.addStyles(o),this.contentAttr="_ngcontent-%COMP%".replace(dt,i+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(dt,t)}(i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class yt extends mt{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=pt(i.id,i.styles,[]);for(let r=0;r<o.length;r++){const t=document.createElement("style");t.textContent=o[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let bt=(()=>{class t extends at{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const vt=["alt","control","meta","shift"],Ct={"\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"},xt={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"},wt={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Ot=(()=>{class t extends at{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const o=t.parseEventName(n),s=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>r().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const o=t._normalizeKey(n.pop());let r="";if(vt.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=o,0!=n.length||0===o.length)return null;const s={};return s.domEventName=i,s.fullKey=r,s}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&xt.hasOwnProperty(e)&&(e=xt[e]))}return Ct[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),vt.forEach(i=>
1{i!=n&&wt[i](t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return o=>{t.getEventFullKey(o)===e&&i.runGuarded(()=>n(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),Pt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:function(){return(0,i.LFG)(Mt)},token:t,providedIn:"root"}),t})(),Mt=(()=>{class t extends Pt{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case i.q3G.NONE:return e;case i.q3G.HTML:return(0,i.qzn)(e,"HTML")?(0,i.z3N)(e):(0,i.EiD)(this._doc,String(e)).toString();case i.q3G.STYLE:return(0,i.qzn)(e,"Style")?(0,i.z3N)(e):e;case i.q3G.SCRIPT:if((0,i.qzn)(e,"Script"))return(0,i.z3N)(e);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.yhl)(e),(0,i.qzn)(e,"URL")?(0,i.z3N)(e):(0,i.mCW)(String(e));case i.q3G.RESOURCE_URL:if((0,i.qzn)(e,"ResourceURL"))return(0,i.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,i.JVY)(t)}bypassSecurityTrustStyle(t){return(0,i.L6k)(t)}bypassSecurityTrustScript(t){return(0,i.eBb)(t)}bypassSecurityTrustUrl(t){return(0,i.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,i.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s))},t.\u0275prov=(0,i.Yz7)({factory:function(){return function(t){return new Mt(t.get(s))}((0,i.LFG)(i.gxx))},token:t,providedIn:"root"}),t})();const Tt=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:"browser"},{provide:i.g9A,useValue:function(){K.makeCurrent(),it.init()},multi:!0},{provide:s,useFactory:function(){return(0,i.RDi)(document),document},deps:[]}]),kt=[[],{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function(){return new i.qLn},deps:[]},{provide:rt,useClass:bt,multi:!0,deps:[s,i.R0b,i.Lbi]},{provide:rt,useClass:Ot,multi:!0,deps:[s]},[],{provide:gt,useClass:gt,deps:[st,ut,i.AFp]},{provide:i.FYo,useExisting:gt},{provide:ct,useExisting:ut},{provide:ut,useClass:ut,deps:[s]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b]},{provide:st,useClass:st,deps:[rt,i.R0b]},{provide:W,useClass:ot,deps:[]},[]];let St=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:i.AFp,useValue:e.appId},{provide:et,useExisting:i.AFp},nt]}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(t,12))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:kt,imports:[B,i.hGG]}),t})();"undefined"!=typeof window&&window;var Et=n(5917),At=n(7574),It=n(9773);function Rt(t,e){return(0,It.zg)(t,e,1)}var Nt=n(7393);function Lt(t,e){return function(n){return n.lift(new Dt(t,e))}}class Dt{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Ft(t,this.predicate,this.thisArg))}}class Ft extends Nt.L{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}var Ut=n(8002);class Zt{}class qt{}class Vt{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),o=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(o):this.headers.set(i,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Vt?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}
1copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Vt;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Vt?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const o=t.value;if(o){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===o.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class jt{encodeKey(t){return Bt(t)}encodeValue(t){return Bt(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const zt=/%(\d[a-f0-9])/gi,Gt={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Bt(t){return encodeURIComponent(t).replace(zt,(t,e)=>{var n;return null!==(n=Gt[e])&&void 0!==n?n:t})}function Ht(t){return`${t}`}class Yt{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new jt,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[o,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],s=n.get(o)||[];s.push(r),n.set(o,s)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Yt({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Ht(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(Ht(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class Qt{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function Jt(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function $t(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Wt(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Kt{constructor(t,e,n,i){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Vt),this.context||(this.context=new Qt),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new Yt,this.urlWithParams=e}serializeBody(){return null===this.body?null:Jt(this.body)||$t(this.body)||Wt(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof Yt?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||Wt(this.body)?null:$t(this.body)?this.body.type||null:Jt(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Yt?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const n=t.method||this.method,i=t.url||this.url,o=t.responseType||this.responseType,r=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,u=t.params||this.params;const l=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),u)),new Kt(n,i,r,{params:u,headers:c,context:l,reportProgress:a,responseType:o,withCredentials:s})}}var Xt=(()=>((Xt=Xt||{}
1)[Xt.Sent=0]="Sent",Xt[Xt.UploadProgress=1]="UploadProgress",Xt[Xt.ResponseHeader=2]="ResponseHeader",Xt[Xt.DownloadProgress=3]="DownloadProgress",Xt[Xt.Response=4]="Response",Xt[Xt.User=5]="User",Xt))();class te{constructor(t,e=200,n="OK"){this.headers=t.headers||new Vt,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class ee extends te{constructor(t={}){super(t),this.type=Xt.ResponseHeader}clone(t={}){return new ee({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class ne extends te{constructor(t={}){super(t),this.type=Xt.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new ne({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class ie extends te{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function oe(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let re=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof Kt)i=t;else{let o,r;o=n.headers instanceof Vt?n.headers:new Vt(n.headers),n.params&&(r=n.params instanceof Yt?n.params:new Yt({fromObject:n.params})),i=new Kt(t,e,void 0!==n.body?n.body:null,{headers:o,context:n.context,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const o=(0,Et.of)(i).pipe(Rt(t=>this.handler.handle(t)));if(t instanceof Kt||"events"===n.observe)return o;const r=o.pipe(Lt(t=>t instanceof ne));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe((0,Ut.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe((0,Ut.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe((0,Ut.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));default:return r.pipe((0,Ut.U)(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Yt).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,oe(n,e))}post(t,e,n={}){return this.request("POST",t,oe(n,e))}put(t,e,n={}){return this.request("PUT",t,oe(n,e))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Zt))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class se{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const ae=new i.OlP("HTTP_INTERCEPTORS");let ce=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const ue=/^\)\]\}',?\n/;let le=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new At.y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let o=null;const r=()=>{if(null!==o)return o;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new Vt(n.getAllResponseHeaders()),s=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return o=new ee({headers:r,status:e,statusText:i,url:s}),o},s=()=>{let{headers:i,status:o,statusText:s,url:a}=r(),c=null;204!==o&&(c=void 0===n.response?n.responseText:n.response),0===o&&(o=c?200:0);let u=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(ue,"");try{c=""!==c?JSON.parse(c):null}catch(l){c=t,u&&(u=!1,c={error:l,text:c})}}u?(e.next(new ne({body:c,headers:i,status:o,statusText:s,url:a||void 0})),e.complete()):e.error(new ie({error:c,headers:i,status:o,statusText:s,url:a||void 0}))},a=t=>{const{url:i}=r(),o=new ie({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(o)};let c=!1;const u=i=>{c||(e.next(r()),c=!0);let o={type:Xt.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(o.total=i.total),"text"===t.responseType&&!!n.responseText&&(o.partialText=n.responseText),e.next(o)},l=t=>{let n={type:Xt.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",u),null!==i&&n.upload&&n.upload.addEventListener("progress",l)),n.send(i),e.next({type:Xt.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",s),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",u),null!==i&&n.upload&&n.upload.removeEventListener("progress",l)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(W))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const he=new i.OlP("XSRF_COOKIE_NAME"),de=new i.OlP("XSRF_HEADER_NAME");class pe{}let fe=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=k(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s),i.LFG(i.Lbi),i.LFG(he))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),ge=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null!==i&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(pe),i.LFG(de))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),me=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(ae,[]);this.chain=t.reduceRight((t,e)=>new se(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(qt),i.LFG(i.zs3))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),_e=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:ge,useClass:ce}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:he,useValue:e.cookieName}:[],e.headerName?{provide:de,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[ge,{provide:ae,useExisting:ge,multi:!0},{provide:pe,useClass:fe},{provide:he,useValue:"XSRF-TOKEN"},{provide:de,useValue:"X-XSRF-TOKEN"}
1]}),t})(),ye=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[re,{provide:Zt,useClass:me},le,{provide:qt,useExisting:le}],imports:[[_e.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();var be=n(57),ve=n(9765),Ce=n(5372),xe=n(6682),we=n(9746),Oe=n(5197),Pe=n(268),Me=n(5604);function Te(t,e){return"function"==typeof e?n=>n.pipe(Te((n,i)=>(0,Ce.D)(t(n,i)).pipe((0,Ut.U)((t,o)=>e(n,t,i,o))))):e=>e.lift(new ke(t))}class ke{constructor(t){this.project=t}call(t,e){return e.subscribe(new Se(t,this.project))}}class Se extends Oe.L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)}_innerSub(t,e,n){const i=this.innerSubscription;i&&i.unsubscribe();const o=new Pe.d(this,e,n),r=this.destination;r.add(o),this.innerSubscription=(0,Me.D)(this,t,void 0,void 0,o),this.innerSubscription!==o&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,i,o){this.destination.next(e)}}var Ee=n(7771),Ae=n(5319),Ie=n(7971),Re=n(8858);class Ne extends ve.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Le(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=n.length;let r;if(this.closed)throw new Ie.N;if(this.isStopped||this.hasError?r=Ae.w.EMPTY:(this.observers.push(t),r=new Re.W(this,t)),i&&t.add(t=new we.ht(t,i)),e)for(let s=0;s<o&&!t.closed;s++)t.next(n[s]);else for(let s=0;s<o&&!t.closed;s++)t.next(n[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||Ee.c).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,o=i.length;let r=0;for(;r<o&&!(t-i[r].time<n);)r++;return o>e&&(r=Math.max(r,o-e)),r>0&&i.splice(0,r),i}}class Le{constructor(t,e){this.time=t,this.value=e}}function De(t,e,n){let i;return i=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:i}){let o,r,s=0,a=!1,c=!1;return function(u){s++,(!o||a)&&(a=!1,o=new Ne(t,e,i),r=u.subscribe({next(t){o.next(t)},error(t){a=!0,o.error(t)},complete(){c=!0,r=void 0,o.complete()}}));const l=o.subscribe(this);this.add(()=>{s--,l.unsubscribe(),r&&!c&&n&&0===s&&(r.unsubscribe(),r=void 0,o=void 0)})}}(i))}const Fe=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Ue=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();var Ze=n(9193);function qe(t){return e=>0===t?(0,Ze.c)():e.lift(new Ve(t))}class Ve{constructor(t){if(this.total=t,this.total<0)throw new Ue}call(t,e){return e.subscribe(new je(t,this.total))}}class je extends Nt.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function ze(t=null){return e=>e.lift(new Ge(t))}class Ge{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Be(t,this.defaultValue))}}class Be extends Nt.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function He(t=Je){return e=>e.lift(new Ye(t))}class Ye{constructor(t){this.errorFactory=t}
1call(t,e){return e.subscribe(new Qe(t,this.errorFactory))}}class Qe extends Nt.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Je(){return new Fe}var $e=n(4487);function We(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Lt((e,n)=>t(e,n,i)):$e.y,qe(1),n?ze(e):He(()=>new Fe))}function Ke(t,e){return e?Te(()=>t,e):Te(()=>t)}var Xe=n(9673);const tn=new i.OlP("angularfire2.auth.use-emulator"),en=new i.OlP("angularfire2.auth.settings"),nn=new i.OlP("angularfire2.auth.tenant-id"),on=new i.OlP("angularfire2.auth.langugage-code"),rn=new i.OlP("angularfire2.auth.use-device-language"),sn=new i.OlP("angularfire.auth.persistence");let an=(()=>{class t{constructor(t,e,i,o,r,s,a,c,u,l){const h=new be.HU(o),d=(0,be.ss)(h),p=new ve.xQ,f=(0,Et.of)(void 0).pipe((0,we.QV)(h.outsideAngular),Te(()=>o.runOutsideAngular(()=>Promise.resolve().then(n.bind(n,1336)))),(0,Ut.U)(()=>(0,be.on)(t,o,e)),(0,Ut.U)(t=>o.runOutsideAngular(()=>{const e=r,n=s;return(0,be.sI)(`${t.name}.auth`,"AngularFireAuth",t,()=>{const i=o.runOutsideAngular(()=>t.auth());if(e&&i.useEmulator(`http://${e.join(":")}`),a&&(i.tenantId=a),i.languageCode=c,u&&i.useDeviceLanguage(),n)for(const[t,e]of Object.entries(n))i.settings[t]=e;return l&&i.setPersistence(l),i},[e,a,c,u,n,l])})),De({bufferSize:1,refCount:!1}));if(Y(i))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,Et.of)(null);else{f.pipe(We()).subscribe();const t=f.pipe(Te(t=>t.getRedirectResult().then(t=>t,()=>null)),d,De({bufferSize:1,refCount:!1})),e=t=>new At.y(e=>({unsubscribe:o.runOutsideAngular(()=>t(e))})),n=f.pipe(Te(t=>e(t.onAuthStateChanged.bind(t)))),i=f.pipe(Te(t=>e(t.onIdTokenChanged.bind(t))));this.authState=t.pipe(Ke(n),(0,Xe.R)(h.outsideAngular),(0,we.QV)(h.insideAngular)),this.user=t.pipe(Ke(i),(0,Xe.R)(h.outsideAngular),(0,we.QV)(h.insideAngular)),this.idToken=this.user.pipe(Te(t=>t?(0,Ce.D)(t.getIdToken()):(0,Et.of)(null))),this.idTokenResult=this.user.pipe(Te(t=>t?(0,Ce.D)(t.getIdTokenResult()):(0,Et.of)(null))),this.credential=(0,xe.T)(t,p,this.authState.pipe(Lt(t=>!t))).pipe((0,Ut.U)(t=>(null==t?void 0:t.user)?t:null),(0,Xe.R)(h.outsideAngular),(0,we.QV)(h.insideAngular))}return(0,be.pX)(this,f,o,{spy:{apply:(t,e,n)=>{(t.startsWith("signIn")||t.startsWith("createUser"))&&n.then(t=>p.next(t))}}})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(be.Dh),i.LFG(be.xv,8),i.LFG(i.Lbi),i.LFG(i.R0b),i.LFG(tn,8),i.LFG(en,8),i.LFG(nn,8),i.LFG(on,8),i.LFG(rn,8),i.LFG(sn,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(be.Dh),i.LFG(be.xv,8),i.LFG(i.Lbi),i.LFG(i.R0b),i.LFG(tn,8),i.LFG(en,8),i.LFG(nn,8),i.LFG(on,8),i.LFG(rn,8),i.LFG(sn,8))},token:t,providedIn:"any"}),t})(),cn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[an]}),t})();var un=n(3637),ln=n(3282);function hn(...t){return(0,ln.J)(1)((0,Et.of)(...t))}var dn=n(4869);function pn(...t){const e=t[t.length-1];return(0,dn.K)(e)?(t.pop(),n=>hn(t,n,e)):e=>hn(t,e)}function fn(){return t=>t.lift(new gn)}class gn{call(t,e){return e.subscribe(new mn(t))}}class mn extends Nt.L{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}function _n(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new yn(t,e,n))}}class yn{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new bn(t,this.accumulator,this.seed,this.hasSeed))}}class bn extends Nt.L{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function vn(t,e){return n=>n.lift(new Cn(t,e))}class Cn{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new xn(t,this.compare,this.keySelector))}}class xn extends Nt.L{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;
1n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}var wn=n(2329),On=n(9759),Pn=n(7582),Mn=n(4685),Tn=n(300),kn=function(t,e){return(kn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function Sn(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var En,An="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},In=In||{},Rn=An||self;function Nn(){}function Ln(t){var e=typeof t;return"array"==(e="object"!=e?e:t?Array.isArray(t)?"array":e:"null")||"object"==e&&"number"==typeof t.length}function Dn(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var Fn="closure_uid_"+(1e9*Math.random()>>>0),Un=0;function Zn(t,e,n){return t.call.apply(t.bind,arguments)}function qn(t,e,n){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function Vn(t,e,n){return(Vn=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Zn:qn).apply(null,arguments)}function jn(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}function zn(t,e){function n(){}n.prototype=e.prototype,t.Z=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.Vb=function(t,n,i){for(var o=Array(arguments.length-2),r=2;r<arguments.length;r++)o[r-2]=arguments[r];return e.prototype[n].apply(t,o)}}function Gn(){this.s=this.s,this.o=this.o}var Bn={};Gn.prototype.s=!1,Gn.prototype.na=function(){if(!this.s&&(this.s=!0,this.M(),0)){var t=function(t){return Object.prototype.hasOwnProperty.call(t,Fn)&&t[Fn]||(t[Fn]=++Un)}(this);delete Bn[t]}},Gn.prototype.M=function(){if(this.o)for(;this.o.length;)this.o.shift()()};var Hn=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},Yn=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var i=t.length,o="string"==typeof t?t.split(""):t,r=0;r<i;r++)r in o&&e.call(n,o[r],r,t)};function Qn(t){return Array.prototype.concat.apply([],arguments)}function Jn(t){var e=t.length;if(0<e){for(var n=Array(e),i=0;i<e;i++)n[i]=t[i];return n}return[]}function $n(t){return/^[\s\xa0]*$/.test(t)}var Wn,Kn=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function Xn(t,e){return-1!=t.indexOf(e)}function ti(t,e){return t<e?-1:t>e?1:0}t:{var ei=Rn.navigator;if(ei){var ni=ei.userAgent;if(ni){Wn=ni;break t}}Wn=""}function ii(t,e,n){for(var i in t)e.call(n,t[i],i,t)}function oi(t){var e={};for(var n in t)e[n]=t[n];return e}var ri="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function si(t,e){for(var n,i,o=1;o<arguments.length;o++){for(n in i=arguments[o])t[n]=i[n];for(var r=0;r<ri.length;r++)n=ri[r],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}function ai(t){return ai[" "](t),t}ai[" "]=Nn;var ci,ui,li=Xn(Wn,"Opera"),hi=Xn(Wn,"Trident")||Xn(Wn,"MSIE"),di=Xn(Wn,"Edge"),pi=di||hi,fi=Xn(Wn,"Gecko")&&!(Xn(Wn.toLowerCase(),"webkit")&&!Xn(Wn,"Edge"))&&!(Xn(Wn,"Trident")||Xn(Wn,"MSIE"))&&!Xn(Wn,"Edge"),gi=Xn(Wn.toLowerCase(),"webkit")&&!Xn(Wn,"Edge");function mi(){var t=Rn.document;return t?t.documentMode:void 0}t:{var _i="",yi=(ui=Wn,fi?/rv:([^\);]+)(\)|;)/.exec(ui):di?/Edge\/([\d\.]+)/.exec(ui):hi?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(ui):gi?/WebKit\/(\S+)/.exec(ui):li?/(?:Version)[ \/]?(\S+)/.exec(ui):void 0);if(yi&&(_i=yi?yi[1]:""),hi){var bi=mi();if(null!=bi&&bi>parseFloat(_i)){ci=String(bi);break t}}ci=_i}var vi={};function Ci(){return t=vi,Object.prototype.hasOwnProperty.call(t,9)?t[9]:t[9]=function(){for(var t=0,e=Kn(String(ci)).split("."),n=Kn("9").split("."),i=Math.max(e.length,n.length),o=0;0==t&&o<i;o++){var r=e[o]||"",s=n[o]||"";do{if(r=/(\d*)(\D*)(.*)/.exec(r)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==r[0].length&&0==s[0].length)break;t=ti(0==r[1].length?0:parseInt(r[1],10),0==s[1].length?0:parseInt(s[1],10))||ti(0==r[2].length,0==s[2].length)||ti(r[2],s[2]),r=r[3],s=s[3]}while(0==t)}return 0<=t}();var t}var xi=Rn.document&&hi&&(mi()||parseInt(ci,10))||void 0,wi=function(){if(!Rn.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{Rn.addEventListener("test",Nn,e),Rn.removeEventListener("test",Nn,e)}catch(n){}return t}();function Oi(t,e){this.type=t,this.g=this.target=e,this.defaultPrevented=!1}function Pi(t,e){if(Oi.call(this,t?t.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,t){var n=this.type=t.type,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=e,e=t.relatedTarget){if(fi){t:{try{ai(e.nodeName);var o=!0;break t}catch(r){}o=!1}o||(e=null)}}
vendor: 5,888 bytes, line 1
1else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:Mi[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&Pi.Z.h.call(this)}}Oi.prototype.h=function(){this.defaultPrevented=!0},zn(Pi,Oi);var Mi={2:"touch",3:"pen",4:"mouse"};Pi.prototype.h=function(){Pi.Z.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var Ti="closure_listenable_"+(1e6*Math.random()|0),ki=0;function Si(t,e,n,i,o){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!i,this.ia=o,this.key=++ki,this.ca=this.fa=!1}function Ei(t){t.ca=!0,t.listener=null,t.proxy=null,t.src=null,t.ia=null}function Ai(t){this.src=t,this.g={},this.h=0}function Ii(t,e){var n=e.type;if(n in t.g){var i,o=t.g[n],r=Hn(o,e);(i=0<=r)&&Array.prototype.splice.call(o,r,1),i&&(Ei(e),0==t.g[n].length&&(delete t.g[n],t.h--))}}function Ri(t,e,n,i){for(var o=0;o<t.length;++o){var r=t[o];if(!r.ca&&r.listener==e&&r.capture==!!n&&r.ia==i)return o}return-1}Ai.prototype.add=function(t,e,n,i,o){var r=t.toString();(t=this.g[r])||(t=this.g[r]=[],this.h++);var s=Ri(t,e,i,o);return-1<s?(e=t[s],n||(e.fa=!1)):((e=new Si(e,this.src,r,!!i,o)).fa=n,t.push(e)),e};var Ni="closure_lm_"+(1e6*Math.random()|0),Li={};function Di(t,e,n,i,o){if(i&&i.once)return Ui(t,e,n,i,o);if(Array.isArray(e)){for(var r=0;r<e.length;r++)Di(t,e[r],n,i,o);return null}return n=Bi(n),t&&t[Ti]?t.N(e,n,Dn(i)?!!i.capture:!!i,o):Fi(t,e,n,!1,i,o)}function Fi(t,e,n,i,o,r){if(!e)throw Error("Invalid event type");var s=Dn(o)?!!o.capture:!!o,a=zi(t);if(a||(t[Ni]=a=new Ai(t)),(n=a.add(e,n,i,s,r)).proxy)return n;if(i=function(){var t=ji;return function e(n){return t.call(e.src,e.listener,n)}}(),n.proxy=i,i.src=t,i.listener=n,t.addEventListener)wi||(o=s),void 0===o&&(o=!1),t.addEventListener(e.toString(),i,o);else if(t.attachEvent)t.attachEvent(Vi(e.toString()),i);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(i)}return n}function Ui(t,e,n,i,o){if(Array.isArray(e)){for(var r=0;r<e.length;r++)Ui(t,e[r],n,i,o);return null}return n=Bi(n),t&&t[Ti]?t.O(e,n,Dn(i)?!!i.capture:!!i,o):Fi(t,e,n,!0,i,o)}function Zi(t,e,n,i,o){if(Array.isArray(e))for(var r=0;r<e.length;r++)Zi(t,e[r],n,i,o);else i=Dn(i)?!!i.capture:!!i,n=Bi(n),t&&t[Ti]?(t=t.i,(e=String(e).toString())in t.g&&-1<(n=Ri(r=t.g[e],n,i,o))&&(Ei(r[n]),Array.prototype.splice.call(r,n,1),0==r.length&&(delete t.g[e],t.h--))):t&&(t=zi(t))&&(e=t.g[e.toString()],t=-1,e&&(t=Ri(e,n,i,o)),(n=-1<t?e[t]:null)&&qi(n))}function qi(t){if("number"!=typeof t&&t&&!t.ca){var e=t.src;if(e&&e[Ti])Ii(e.i,t);else{var n=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(n,i,t.capture):e.detachEvent?e.detachEvent(Vi(n),i):e.addListener&&e.removeListener&&e.removeListener(i),(n=zi(e))?(Ii(n,t),0==n.h&&(n.src=null,e[Ni]=null)):Ei(t)}}}function Vi(t){return t in Li?Li[t]:Li[t]="on"+t}function ji(t,e){if(t.ca)t=!0;else{e=new Pi(e,this);var n=t.listener,i=t.ia||t.src;t.fa&&qi(t),t=n.call(i,e)}return t}function zi(t){return(t=t[Ni])instanceof Ai?t:null}var Gi="__closure_events_fn_"+(1e9*Math.random()>>>0);function Bi(t){return"function"==typeof t?t:(t[Gi]||(t[Gi]=function(e){return t.handleEvent(e)}),t[Gi])}function Hi(){Gn.call(this),this.i=new Ai(this),this.P=this,this.I=null}function Yi(t,e){var n,i=t.I;if(i)for(n=[];i;i=i.I)n.push(i);if(t=t.P,i=e.type||e,"string"==typeof e)e=new Oi(e,t);else if(e instanceof Oi)e.target=e.target||t;else{var o=e;si(e=new Oi(i,t),o)}if(o=!0,n)for(var r=n.length-1;0<=r;r--){var s=e.g=n[r];o=Qi(s,i,!0,e)&&o}if(o=Qi(s=e.g=t,i,!0,e)&&o,o=Qi(s,i,!1,e)&&o,n)for(r=0;r<n.length;r++)o=Qi(s=e.g=n[r],i,!1,e)&&o}function Qi(t,e,n,i){if(!(e=t.i.g[String(e)]))return!0;e=e.concat();for(var o=!0,r=0;r<e.length;++r){var s=e[r];if(s&&!s.ca&&s.capture==n){var a=s.listener,c=s.ia||s.src;s.fa&&Ii(t.i,s),o=!1!==a.call(c,i)&&o}}return o&&!i.defaultPrevented}zn(Hi,Gn),Hi.prototype[Ti]=!0,Hi.prototype.removeEventListener=function(t,e,n,i){Zi(this,t,e,n,i)},Hi.prototype.M=function(){if(Hi.Z.M.call(this),this.i){var t,e=this.i;for(t in e.g){for(var n=e.g[t],i=0;i<n.length;i++)Ei(n[i]);delete e.g[t],e.h--}}this.I=null},Hi.prototype.N=function(t,e,n,i){return this.i.add(String(t),e,!1,n,i)},Hi.prototype.O=function(t,e,n,i){return this.i.add(String(t),e,!0,n,i)};var Ji=Rn.JSON.stringify;function $i(){var t=oo,e=null;return t.g&&(e=t.g,t.g=t.g.next,t.g||(t.h=null),e.next=null),e}var Wi,Ki=function(){function t(){this.h=this.g=null}return t.prototype.add=function(t,e){var n=Xi.get();n.set(t,e),this.h?this.h.next=n:this.g=n,this.h=n},t}(),Xi=new(function(){function t(t,e){this.i=t,this.j=e,this.h=0,this.g=null}return t.prototype.get=function(){var t;return 0<this.h?(this.h--,this.g=(t=this.g).next,t.next=null):t=this.i(),t},t}())(function(){return new to},function(t){return t.reset()}),to=function(){function t(){this.next=this.g=this.h=null}return t.prototype.set=function(t,e){this.h=t,this.g=e,this.next=null},t.prototype.reset=function(){this.next=this.g=this.h=null},t}();function eo(t){Rn.setTimeout(function(){throw t},0)}function no(t,e){Wi||function(){var t=Rn.Promise.resolve(void 0);Wi=function(){t.then(ro)}}(),io||(Wi(),io=!0),oo.add(t,e)}var io=!1,oo=new Ki;function ro(){for(var t;t=$i();){try{t.h.call(t.g)}catch(n){eo(n)}var e=Xi;e.j(t),100>e.h&&(e.h++,t.next=e.g,e.g=t)}io=!1}
1function so(t,e){Hi.call(this),this.h=t||1,this.g=e||Rn,this.j=Vn(this.kb,this),this.l=Date.now()}function ao(t){t.da=!1,t.S&&(t.g.clearTimeout(t.S),t.S=null)}function co(t,e,n){if("function"==typeof t)n&&(t=Vn(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=Vn(t.handleEvent,t)}return 2147483647<Number(e)?-1:Rn.setTimeout(t,e||0)}function uo(t){t.g=co(function(){t.g=null,t.i&&(t.i=!1,uo(t))},t.j);var e=t.h;t.h=null,t.m.apply(null,e)}zn(so,Hi),(En=so.prototype).da=!1,En.S=null,En.kb=function(){if(this.da){var t=Date.now()-this.l;0<t&&t<.8*this.h?this.S=this.g.setTimeout(this.j,this.h-t):(this.S&&(this.g.clearTimeout(this.S),this.S=null),Yi(this,"tick"),this.da&&(ao(this),this.start()))}},En.start=function(){this.da=!0,this.S||(this.S=this.g.setTimeout(this.j,this.h),this.l=Date.now())},En.M=function(){so.Z.M.call(this),ao(this),delete this.g};var lo=function(t){function e(e,n){var i=t.call(this)||this;return i.m=e,i.j=n,i.h=null,i.i=!1,i.g=null,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}kn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.l=function(t){this.h=arguments,this.g?this.i=!0:uo(this)},e.prototype.M=function(){t.prototype.M.call(this),this.g&&(Rn.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)},e}(Gn);function ho(t){Gn.call(this),this.h=t,this.g={}}zn(ho,Gn);var po=[];function fo(t,e,n,i){Array.isArray(n)||(n&&(po[0]=n.toString()),n=po);for(var o=0;o<n.length;o++){var r=Di(e,n[o],i||t.handleEvent,!1,t.h||t);if(!r)break;t.g[r.key]=r}}function go(t){ii(t.g,function(t,e){this.g.hasOwnProperty(e)&&qi(t)},t),t.g={}}function mo(){this.g=!0}function _o(t,e,n,i){t.info(function(){return"XMLHTTP TEXT ("+e+"): "+function(t,e){if(!t.g)return e;if(!e)return null;try{var n=JSON.parse(e);if(n)for(t=0;t<n.length;t++)if(Array.isArray(n[t])){var i=n[t];if(!(2>i.length)){var o=i[1];if(Array.isArray(o)&&!(1>o.length)){var r=o[0];if("noop"!=r&&"stop"!=r&&"close"!=r)for(var s=1;s<o.length;s++)o[s]=""}}}return Ji(n)}catch(a){return e}}(t,n)+(i?" "+i:"")})}ho.prototype.M=function(){ho.Z.M.call(this),go(this)},ho.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},mo.prototype.Aa=function(){this.g=!1},mo.prototype.info=function(){};var yo={},bo=null;function vo(){return bo=bo||new Hi}function Co(t){Oi.call(this,yo.Ma,t)}function xo(t){var e=vo();Yi(e,new Co(e,t))}function wo(t,e){Oi.call(this,yo.STAT_EVENT,t),this.stat=e}function Oo(t){var e=vo();Yi(e,new wo(e,t))}function Po(t,e){Oi.call(this,yo.Na,t),this.size=e}function Mo(t,e){if("function"!=typeof t)throw Error("Fn must not be null and must be a function");return Rn.setTimeout(function(){t()},e)}yo.Ma="serverreachability",zn(Co,Oi),yo.STAT_EVENT="statevent",zn(wo,Oi),yo.Na="timingevent",zn(Po,Oi);var To={NO_ERROR:0,lb:1,yb:2,xb:3,sb:4,wb:5,zb:6,Ja:7,TIMEOUT:8,Cb:9},ko={qb:"complete",Mb:"success",Ka:"error",Ja:"abort",Eb:"ready",Fb:"readystatechange",TIMEOUT:"timeout",Ab:"incrementaldata",Db:"progress",tb:"downloadprogress",Ub:"uploadprogress"};function So(){}function Eo(){}So.prototype.h=null;var Ao,Io={OPEN:"a",pb:"b",Ka:"c",Bb:"d"};function Ro(){Oi.call(this,"d")}function No(){Oi.call(this,"c")}function Lo(){}function Do(t,e,n,i){this.l=t,this.j=e,this.m=n,this.X=i||1,this.V=new ho(this),this.P=Uo,this.W=new so(t=pi?125:void 0),this.H=null,this.i=!1,this.s=this.A=this.v=this.K=this.F=this.Y=this.B=null,this.D=[],this.g=null,this.C=0,this.o=this.u=null,this.N=-1,this.I=!1,this.O=0,this.L=null,this.aa=this.J=this.$=this.U=!1,this.h=new Fo}function Fo(){this.i=null,this.g="",this.h=!1}zn(Ro,Oi),zn(No,Oi),zn(Lo,So),Lo.prototype.g=function(){return new XMLHttpRequest},Lo.prototype.i=function(){return{}},Ao=new Lo;var Uo=45e3,Zo={},qo={};function Vo(t,e,n){t.K=1,t.v=lr(or(e)),t.s=n,t.U=!0,jo(t,null)}function jo(t,e){t.F=Date.now(),Ho(t),t.A=or(t.v);var n=t.A,i=t.X;Array.isArray(i)||(i=[String(i)]),wr(n.h,"t",i),t.C=0,n=t.l.H,t.h=new Fo,t.g=Os(t.l,n?e:null,!t.s),0<t.O&&(t.L=new lo(Vn(t.Ia,t,t.g),t.O)),fo(t.V,t.g,"readystatechange",t.gb),e=t.H?oi(t.H):{},t.s?(t.u||(t.u="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.g.ea(t.A,t.u,t.s,e)):(t.u="GET",t.g.ea(t.A,t.u,null,e)),xo(1),function(t,e,n,i,o,r){t.info(function(){if(t.g)if(r)for(var s="",a=r.split("&"),c=0;c<a.length;c++){var u=a[c].split("=");if(1<u.length){var l=u[0];u=u[1];var h=l.split("_");s=2<=h.length&&"type"==h[1]?s+(l+"=")+u+"&":s+(l+"=redacted&")}}else s=null;else s=r;return"XMLHTTP REQ ("+i+") [attempt "+o+"]: "+e+"\n"+n+"\n"+s})}(t.j,t.u,t.A,t.m,t.X,t.s)}function zo(t){return!!t.g&&"GET"==t.u&&2!=t.K&&t.l.Ba}function Go(t,e,n){for(var i,o=!0;!t.I&&t.C<n.length;){if((i=Bo(t,n))==qo){4==e&&(t.o=4,Oo(14),o=!1),_o(t.j,t.m,null,"[Incomplete Response]");break}if(i==Zo){t.o=4,Oo(15),_o(t.j,t.m,n,"[Invalid Chunk]"),o=!1;break}_o(t.j,t.m,i,null),Wo(t,i)}zo(t)&&i!=qo&&i!=Zo&&(t.h.g="",t.C=0),4!=e||0!=n.length||t.h.h||(t.o=1,Oo(16),o=!1),t.i=t.i&&o,o?0<n.length&&!t.aa&&(t.aa=!0,(e=t.l).g==t&&e.$&&!e.L&&(e.h.info("Great, no buffering proxy detected. Bytes received: "+n.length),ms(e),e.L=!0,Oo(11))):(_o(t.j,t.m,n,"[Invalid Chunked Response]"),$o(t),Jo(t))}function Bo(t,e){var n=t.C,i=e.indexOf("\n",n);return-1==i?qo:(n=Number(e.substring(n,i)),isNaN(n)?Zo:(i+=1)+n>e.length?qo:(e=e.substr(i,n),t.C=i+n,e))}function Ho(t){t.Y=Date.now()+t.P,Yo(t,t.P)}function Yo(t,e){if(null!=t.B)throw Error("WatchDog timer not null");t.B=Mo(Vn(t.eb,t),e)}function Qo(t){t.B&&(Rn.clearTimeout(t.B),t.B=null)}function Jo(t){0==t.l.G||t.I||bs(t.l,t)}function $o(t){Qo(t);var e=t.L;e&&"function"==typeof e.na&&e.na(),t.L=null,ao(t.W),go(t.V),t.g&&(e=t.g,t.g=null,e.abort(),e.na())}function Wo(t,e){try{var n=t.l;if(0!=n.G&&(n.g==t||Er(n.i,t)))if(n.I=t.N,!t.J&&Er(n.i,t)&&3==n.G){try{var i=n.Ca.g.parse(e)}catch(m){i=null}if(Array.isArray(i)&&3==i.length){var o=i;if(0==o[0])t:if(n.u)n.ta=o[1],0<n.ta-n.U&&37500>o[2]&&n.N&&0==n.A&&!n.v&&(n.v=Mo(Vn(n.ab,n),6e3));else{if(n.g){if(!(n.g.F+3e3<t.F))break t;ys(n),as(n)}gs(n),Oo(18)}if(1>=Sr(n.i)&&n.ka){try{n.ka()}catch(m){}n.ka=void 0}}else Cs(n,11)}
vendor: 6,147 bytes, line 1
1else if((t.J||n.g==t)&&ys(n),!$n(e))for(o=n.Ca.g.parse(e),e=0;e<o.length;e++){var r=o[e];if(n.U=r[0],r=r[1],2==n.G)if("c"==r[0]){n.J=r[1],n.la=r[2];var s=r[3];null!=s&&(n.ma=s,n.h.info("VER="+n.ma));var a=r[4];null!=a&&(n.za=a,n.h.info("SVER="+n.za));var c=r[5];null!=c&&"number"==typeof c&&0<c&&(n.K=i=1.5*c,n.h.info("backChannelRequestTimeoutMs_="+i)),i=n;var u=t.g;if(u){var l=u.g?u.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(l){var h=i.i;!h.g&&(Xn(l,"spdy")||Xn(l,"quic")||Xn(l,"h2"))&&(h.j=h.l,h.g=new Set,h.h&&(Ar(h,h.h),h.h=null))}if(i.D){var d=u.g?u.g.getResponseHeader("X-HTTP-Session-Id"):null;d&&(i.sa=d,ur(i.F,i.D,d))}}n.G=3,n.j&&n.j.xa(),n.$&&(n.O=Date.now()-t.F,n.h.info("Handshake RTT: "+n.O+"ms"));var p=t;if((i=n).oa=ws(i,i.H?i.la:null,i.W),p.J){Ir(i.i,p);var f=p,g=i.K;g&&f.setTimeout(g),f.B&&(Qo(f),Ho(f)),i.g=p}else fs(i);0<n.l.length&&ls(n)}else"stop"!=r[0]&&"close"!=r[0]||Cs(n,7);else 3==n.G&&("stop"==r[0]||"close"==r[0]?"stop"==r[0]?Cs(n,7):ss(n):"noop"!=r[0]&&n.j&&n.j.wa(r),n.A=0)}xo(4)}catch(m){}}function Ko(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(Ln(t)||"string"==typeof t)Yn(t,e,void 0);else{if(t.T&&"function"==typeof t.T)var n=t.T();else if(t.R&&"function"==typeof t.R)n=void 0;else if(Ln(t)||"string"==typeof t){n=[];for(var i=t.length,o=0;o<i;o++)n.push(o)}else for(o in n=[],i=0,t)n[i++]=o;i=function(t){if(t.R&&"function"==typeof t.R)return t.R();if("string"==typeof t)return t.split("");if(Ln(t)){for(var e=[],n=t.length,i=0;i<n;i++)e.push(t[i]);return e}for(i in e=[],n=0,t)e[n++]=t[i];return e}(t),o=i.length;for(var r=0;r<o;r++)e.call(void 0,i[r],n&&n[r],t)}}function Xo(t,e){this.h={},this.g=[],this.i=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else if(t)if(t instanceof Xo)for(n=t.T(),i=0;i<n.length;i++)this.set(n[i],t.get(n[i]));else for(i in t)this.set(i,t[i])}function tr(t){if(t.i!=t.g.length){for(var e=0,n=0;e<t.g.length;){var i=t.g[e];er(t.h,i)&&(t.g[n++]=i),e++}t.g.length=n}if(t.i!=t.g.length){var o={};for(n=e=0;e<t.g.length;)er(o,i=t.g[e])||(t.g[n++]=i,o[i]=1),e++;t.g.length=n}}function er(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(En=Do.prototype).setTimeout=function(t){this.P=t},En.gb=function(t){t=t.target;var e=this.L;e&&3==es(t)?e.l():this.Ia(t)},En.Ia=function(t){try{if(t==this.g)t:{var e=es(this.g),n=this.g.Da(),i=this.g.ba();if(!(3>e)&&(3!=e||pi||this.g&&(this.h.h||this.g.ga()||ns(this.g)))){this.I||4!=e||7==n||xo(8==n||0>=i?3:2),Qo(this);var o=this.g.ba();this.N=o;e:if(zo(this)){var r=ns(this.g);t="";var s=r.length,a=4==es(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){$o(this),Jo(this);var c="";break e}this.h.i=new Rn.TextDecoder}for(n=0;n<s;n++)this.h.h=!0,t+=this.h.i.decode(r[n],{stream:a&&n==s-1});r.splice(0,s),this.h.g+=t,this.C=0,c=this.h.g}else c=this.g.ga();if(this.i=200==o,function(t,e,n,i,o,r,s){t.info(function(){return"XMLHTTP RESP ("+i+") [ attempt "+o+"]: "+e+"\n"+n+"\n"+r+" "+s})}(this.j,this.u,this.A,this.m,this.X,e,o),this.i){if(this.$&&!this.J){e:{if(this.g){var u,l=this.g;if((u=l.g?l.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!$n(u)){var h=u;break e}}h=null}if(!(o=h)){this.i=!1,this.o=3,Oo(12),$o(this),Jo(this);break t}_o(this.j,this.m,o,"Initial handshake response via X-HTTP-Initial-Response"),this.J=!0,Wo(this,o)}this.U?(Go(this,e,c),pi&&this.i&&3==e&&(fo(this.V,this.W,"tick",this.fb),this.W.start())):(_o(this.j,this.m,c,null),Wo(this,c)),4==e&&$o(this),this.i&&!this.I&&(4==e?bs(this.l,this):(this.i=!1,Ho(this)))}else 400==o&&0<c.indexOf("Unknown SID")?(this.o=3,Oo(12)):(this.o=0,Oo(13)),$o(this),Jo(this)}}}catch(d){}},En.fb=function(){if(this.g){var t=es(this.g),e=this.g.ga();this.C<e.length&&(Qo(this),Go(this,t,e),this.i&&4!=t&&Ho(this))}},En.cancel=function(){this.I=!0,$o(this)},En.eb=function(){this.B=null;var t=Date.now();0<=t-this.Y?(function(t,e){t.info(function(){return"TIMEOUT: "+e})}(this.j,this.A),2!=this.K&&(xo(3),Oo(17)),$o(this),this.o=2,Jo(this)):Yo(this,this.Y-t)},(En=Xo.prototype).R=function(){tr(this);for(var t=[],e=0;e<this.g.length;e++)t.push(this.h[this.g[e]]);return t},En.T=function(){return tr(this),this.g.concat()},En.get=function(t,e){return er(this.h,t)?this.h[t]:e},En.set=function(t,e){er(this.h,t)||(this.i++,this.g.push(t)),this.h[t]=e},En.forEach=function(t,e){for(var n=this.T(),i=0;i<n.length;i++){var o=n[i],r=this.get(o);t.call(e,r,o,this)}};var nr=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function ir(t,e){if(this.i=this.s=this.j="",this.m=null,this.o=this.l="",this.g=!1,t instanceof ir){this.g=void 0!==e?e:t.g,rr(this,t.j),this.s=t.s,sr(this,t.i),ar(this,t.m),this.l=t.l,e=t.h;var n=new br;n.i=e.i,e.g&&(n.g=new Xo(e.g),n.h=e.h),cr(this,n),this.o=t.o}else t&&(n=String(t).match(nr))?(this.g=!!e,rr(this,n[1]||"",!0),this.s=hr(n[2]||""),sr(this,n[3]||"",!0),ar(this,n[4]),this.l=hr(n[5]||"",!0),cr(this,n[6]||"",!0),this.o=hr(n[7]||"")):(this.g=!!e,this.h=new br(null,this.g))}function or(t){return new ir(t)}function rr(t,e,n){t.j=n?hr(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function sr(t,e,n){t.i=n?hr(e,!0):e}function ar(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.m=e}else t.m=null}function cr(t,e,n){e instanceof br?(t.h=e,function(t,e){e&&!t.j&&(vr(t),t.i=null,t.g.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(Cr(this,e),wr(this,n,t))},t)),t.j=e}(t.h,t.g)):(n||(e=dr(e,_r)),t.h=new br(e,t.g))}function ur(t,e,n){t.h.set(e,n)}function lr(t){return ur(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function hr(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function dr(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,pr),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function pr(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}ir.prototype.toString=function(){var t=[],e=this.j;e&&t.push(dr(e,fr,!0),":");var n=this.i;
1return(n||"file"==e)&&(t.push("//"),(e=this.s)&&t.push(dr(e,fr,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&t.push(":",String(n))),(n=this.l)&&(this.i&&"/"!=n.charAt(0)&&t.push("/"),t.push(dr(n,"/"==n.charAt(0)?mr:gr,!0))),(n=this.h.toString())&&t.push("?",n),(n=this.o)&&t.push("#",dr(n,yr)),t.join("")};var fr=/[#\/\?@]/g,gr=/[#\?:]/g,mr=/[#\?]/g,_r=/[#\?@]/g,yr=/#/g;function br(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function vr(t){t.g||(t.g=new Xo,t.h=0,t.i&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var i=t[n].indexOf("="),o=null;if(0<=i){var r=t[n].substring(0,i);o=t[n].substring(i+1)}else r=t[n];e(r,o?decodeURIComponent(o.replace(/\+/g," ")):"")}}}(t.i,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function Cr(t,e){vr(t),e=Or(t,e),er(t.g.h,e)&&(t.i=null,t.h-=t.g.get(e).length,er((t=t.g).h,e)&&(delete t.h[e],t.i--,t.g.length>2*t.i&&tr(t)))}function xr(t,e){return vr(t),e=Or(t,e),er(t.g.h,e)}function wr(t,e,n){Cr(t,e),0<n.length&&(t.i=null,t.g.set(Or(t,e),Jn(n)),t.h+=n.length)}function Or(t,e){return e=String(e),t.j&&(e=e.toLowerCase()),e}(En=br.prototype).add=function(t,e){vr(this),this.i=null,t=Or(this,t);var n=this.g.get(t);return n||this.g.set(t,n=[]),n.push(e),this.h+=1,this},En.forEach=function(t,e){vr(this),this.g.forEach(function(n,i){Yn(n,function(n){t.call(e,n,i,this)},this)},this)},En.T=function(){vr(this);for(var t=this.g.R(),e=this.g.T(),n=[],i=0;i<e.length;i++)for(var o=t[i],r=0;r<o.length;r++)n.push(e[i]);return n},En.R=function(t){vr(this);var e=[];if("string"==typeof t)xr(this,t)&&(e=Qn(e,this.g.get(Or(this,t))));else{t=this.g.R();for(var n=0;n<t.length;n++)e=Qn(e,t[n])}return e},En.set=function(t,e){return vr(this),this.i=null,xr(this,t=Or(this,t))&&(this.h-=this.g.get(t).length),this.g.set(t,[e]),this.h+=1,this},En.get=function(t,e){return t&&0<(t=this.R(t)).length?String(t[0]):e},En.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var t=[],e=this.g.T(),n=0;n<e.length;n++){var i=e[n],o=encodeURIComponent(String(i));i=this.R(i);for(var r=0;r<i.length;r++){var s=o;""!==i[r]&&(s+="="+encodeURIComponent(String(i[r]))),t.push(s)}}return this.i=t.join("&")};var Pr=function(t,e){this.h=t,this.g=e};function Mr(t){this.l=t||Tr,t=Rn.PerformanceNavigationTiming?0<(t=Rn.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(Rn.g&&Rn.g.Ea&&Rn.g.Ea()&&Rn.g.Ea().Zb),this.j=t?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var Tr=10;function kr(t){return!!t.h||!!t.g&&t.g.size>=t.j}function Sr(t){return t.h?1:t.g?t.g.size:0}function Er(t,e){return t.h?t.h==e:!!t.g&&t.g.has(e)}function Ar(t,e){t.g?t.g.add(e):t.h=e}function Ir(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}function Rr(t){var e,n;if(null!=t.h)return t.i.concat(t.h.D);if(null!=t.g&&0!==t.g.size){var i=t.i;try{for(var o=Sn(t.g.values()),r=o.next();!r.done;r=o.next())i=i.concat(r.value.D)}catch(s){e={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i}return Jn(t.i)}function Nr(){}function Lr(){this.g=new Nr}function Dr(t,e,n){var i=n||"";try{Ko(t,function(t,n){var o=t;Dn(t)&&(o=Ji(t)),e.push(i+n+"="+encodeURIComponent(o))})}catch(o){throw e.push(i+"type="+encodeURIComponent("_badmap")),o}}function Fr(t,e,n,i,o){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,o(i)}catch(r){}}function Ur(t){this.l=t.$b||null,this.j=t.ib||!1}function Zr(t,e){Hi.call(this),this.D=t,this.u=e,this.m=void 0,this.readyState=qr,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}Mr.prototype.cancel=function(){var t,e;if(this.i=Rr(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){try{for(var n=Sn(this.g.values()),i=n.next();!i.done;i=n.next())i.value.cancel()}catch(o){t={error:o}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.g.clear()}},Nr.prototype.stringify=function(t){return Rn.JSON.stringify(t,void 0)},Nr.prototype.parse=function(t){return Rn.JSON.parse(t,void 0)},zn(Ur,So),Ur.prototype.g=function(){return new Zr(this.l,this.j)},Ur.prototype.i=function(t){return function(){return t}}({}),zn(Zr,Hi);var qr=0;function Vr(t){t.j.read().then(t.Sa.bind(t)).catch(t.ha.bind(t))}function jr(t){t.readyState=4,t.l=null,t.j=null,t.A=null,zr(t)}function zr(t){t.onreadystatechange&&t.onreadystatechange.call(t)}(En=Zr.prototype).open=function(t,e){if(this.readyState!=qr)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=e,this.readyState=1,zr(this)},En.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;var e={headers:this.v,method:this.C,credentials:this.m,cache:void 0};
vendor: 5,461 bytes, line 1
1t&&(e.body=t),(this.D||Rn).fetch(new Request(this.B,e)).then(this.Va.bind(this),this.ha.bind(this))},En.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted."),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,jr(this)),this.readyState=qr},En.Va=function(t){if(this.g&&(this.l=t,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=t.headers,this.readyState=2,zr(this)),this.g&&(this.readyState=3,zr(this),this.g)))if("arraybuffer"===this.responseType)t.arrayBuffer().then(this.Ta.bind(this),this.ha.bind(this));else if(void 0!==Rn.ReadableStream&&"body"in t){if(this.j=t.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;Vr(this)}else t.text().then(this.Ua.bind(this),this.ha.bind(this))},En.Sa=function(t){if(this.g){if(this.u&&t.value)this.response.push(t.value);else if(!this.u){var e=t.value?t.value:new Uint8Array(0);(e=this.A.decode(e,{stream:!t.done}))&&(this.response=this.responseText+=e)}t.done?jr(this):zr(this),3==this.readyState&&Vr(this)}},En.Ua=function(t){this.g&&(this.response=this.responseText=t,jr(this))},En.Ta=function(t){this.g&&(this.response=t,jr(this))},En.ha=function(){this.g&&jr(this)},En.setRequestHeader=function(t,e){this.v.append(t,e)},En.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},En.getAllResponseHeaders=function(){if(!this.h)return"";for(var t=[],e=this.h.entries(),n=e.next();!n.done;)t.push((n=n.value)[0]+": "+n[1]),n=e.next();return t.join("\r\n")},Object.defineProperty(Zr.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}});var Gr=Rn.JSON.parse;function Br(t){Hi.call(this),this.headers=new Xo,this.u=t||null,this.h=!1,this.C=this.g=null,this.H="",this.m=0,this.j="",this.l=this.F=this.v=this.D=!1,this.B=0,this.A=null,this.J=Hr,this.K=this.L=!1}zn(Br,Hi);var Hr="",Yr=/^https?$/i,Qr=["POST","PUT"];function Jr(t){return"content-type"==t.toLowerCase()}function $r(t,e){t.h=!1,t.g&&(t.l=!0,t.g.abort(),t.l=!1),t.j=e,t.m=5,Wr(t),Xr(t)}function Wr(t){t.D||(t.D=!0,Yi(t,"complete"),Yi(t,"error"))}function Kr(t){if(t.h&&void 0!==In&&(!t.C[1]||4!=es(t)||2!=t.ba()))if(t.v&&4==es(t))co(t.Fa,0,t);else if(Yi(t,"readystatechange"),4==es(t)){t.h=!1;try{var e,n=t.ba();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var i=!0;break t;default:i=!1}if(!(e=i)){var o;if(o=0===n){var r=String(t.H).match(nr)[1]||null;if(!r&&Rn.self&&Rn.self.location){var s=Rn.self.location.protocol;r=s.substr(0,s.length-1)}o=!Yr.test(r?r.toLowerCase():"")}e=o}if(e)Yi(t,"complete"),Yi(t,"success");else{t.m=6;try{var a=2<es(t)?t.g.statusText:""}catch(c){a=""}t.j=a+" ["+t.ba()+"]",Wr(t)}}finally{Xr(t)}}}function Xr(t,e){if(t.g){ts(t);var n=t.g,i=t.C[0]?Nn:null;t.g=null,t.C=null,e||Yi(t,"ready");try{n.onreadystatechange=i}catch(o){}}}function ts(t){t.g&&t.K&&(t.g.ontimeout=null),t.A&&(Rn.clearTimeout(t.A),t.A=null)}function es(t){return t.g?t.g.readyState:0}function ns(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.J){case Hr:case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch(e){return null}}function is(t,e,n){t:{for(i in n){var i=!1;break t}i=!0}i||(n=function(t){var e="";return ii(t,function(t,n){e+=n,e+=":",e+=t,e+="\r\n"}),e}(n),"string"==typeof t?null!=n&&encodeURIComponent(String(n)):ur(t,e,n))}function os(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function rs(t){this.za=0,this.l=[],this.h=new mo,this.la=this.oa=this.F=this.W=this.g=this.sa=this.D=this.aa=this.o=this.P=this.s=null,this.Za=this.V=0,this.Xa=os("failFast",!1,t),this.N=this.v=this.u=this.m=this.j=null,this.X=!0,this.I=this.ta=this.U=-1,this.Y=this.A=this.C=0,this.Pa=os("baseRetryDelayMs",5e3,t),this.$a=os("retryDelaySeedMs",1e4,t),this.Ya=os("forwardChannelMaxRetries",2,t),this.ra=os("forwardChannelRequestTimeoutMs",2e4,t),this.qa=t&&t.xmlHttpFactory||void 0,this.Ba=t&&t.Yb||!1,this.K=void 0,this.H=t&&t.supportsCrossDomainXhr||!1,this.J="",this.i=new Mr(t&&t.concurrentRequestLimit),this.Ca=new Lr,this.ja=t&&t.fastHandshake||!1,this.Ra=t&&t.Wb||!1,t&&t.Aa&&this.h.Aa(),t&&t.forceLongPolling&&(this.X=!1),this.$=!this.ja&&this.X&&t&&t.detectBufferingProxy||!1,this.ka=void 0,this.O=0,this.L=!1,this.B=null,this.Wa=!t||!1!==t.Xb}function ss(t){if(cs(t),3==t.G){var e=t.V++,n=or(t.F);ur(n,"SID",t.J),ur(n,"RID",e),ur(n,"TYPE","terminate"),ds(t,n),(e=new Do(t,t.h,e,void 0)).K=2,e.v=lr(or(n)),n=!1,Rn.navigator&&Rn.navigator.sendBeacon&&(n=Rn.navigator.sendBeacon(e.v.toString(),"")),!n&&Rn.Image&&((new Image).src=e.v,n=!0),n||(e.g=Os(e.l,null),e.g.ea(e.v)),e.F=Date.now(),Ho(e)}xs(t)}function as(t){t.g&&(ms(t),t.g.cancel(),t.g=null)}function cs(t){as(t),t.u&&(Rn.clearTimeout(t.u),t.u=null),ys(t),t.i.cancel(),t.m&&("number"==typeof t.m&&Rn.clearTimeout(t.m),t.m=null)}function us(t,e){t.l.push(new Pr(t.Za++,e)),3==t.G&&ls(t)}function ls(t){kr(t.i)||t.m||(t.m=!0,no(t.Ha,t),t.C=0)}function hs(t,e){var n;n=e?e.m:t.V++;var i=or(t.F);ur(i,"SID",t.J),ur(i,"RID",n),ur(i,"AID",t.U),ds(t,i),t.o&&t.s&&is(i,t.o,t.s),n=new Do(t,t.h,n,t.C+1),null===t.o&&(n.H=t.s),e&&(t.l=e.D.concat(t.l)),e=ps(t,n,1e3),n.setTimeout(
1Math.round(.5*t.ra)+Math.round(.5*t.ra*Math.random())),Ar(t.i,n),Vo(n,i,e)}function ds(t,e){t.j&&Ko({},function(t,n){ur(e,n,t)})}function ps(t,e,n){n=Math.min(t.l.length,n);var i=t.j?Vn(t.j.Oa,t.j,t):null;t:for(var o=t.l,r=-1;;){var s=["count="+n];-1==r?0<n?s.push("ofs="+(r=o[0].h)):r=0:s.push("ofs="+r);for(var a=!0,c=0;c<n;c++){var u=o[c].h,l=o[c].g;if(0>(u-=r))r=Math.max(0,o[c].h-100),a=!1;else try{Dr(l,s,"req"+u+"_")}catch(h){i&&i(l)}}if(a){i=s.join("&");break t}}return t=t.l.splice(0,n),e.D=t,i}function fs(t){t.g||t.u||(t.Y=1,no(t.Ga,t),t.A=0)}function gs(t){return!(t.g||t.u||3<=t.A||(t.Y++,t.u=Mo(Vn(t.Ga,t),vs(t,t.A)),t.A++,0))}function ms(t){null!=t.B&&(Rn.clearTimeout(t.B),t.B=null)}function _s(t){t.g=new Do(t,t.h,"rpc",t.Y),null===t.o&&(t.g.H=t.s),t.g.O=0;var e=or(t.oa);ur(e,"RID","rpc"),ur(e,"SID",t.J),ur(e,"CI",t.N?"0":"1"),ur(e,"AID",t.U),ds(t,e),ur(e,"TYPE","xmlhttp"),t.o&&t.s&&is(e,t.o,t.s),t.K&&t.g.setTimeout(t.K);var n=t.g;t=t.la,n.K=1,n.v=lr(or(e)),n.s=null,n.U=!0,jo(n,t)}function ys(t){null!=t.v&&(Rn.clearTimeout(t.v),t.v=null)}function bs(t,e){var n=null;if(t.g==e){ys(t),ms(t),t.g=null;var i=2}else{if(!Er(t.i,e))return;n=e.D,Ir(t.i,e),i=1}if(t.I=e.N,0!=t.G)if(e.i)if(1==i){n=e.s?e.s.length:0,e=Date.now()-e.F;var o=t.C;Yi(i=vo(),new Po(i,n,e,o)),ls(t)}else fs(t);else if(3==(o=e.o)||0==o&&0<t.I||!(1==i&&function(t,e){return!(Sr(t.i)>=t.i.j-(t.m?1:0)||(t.m?(t.l=e.D.concat(t.l),0):1==t.G||2==t.G||t.C>=(t.Xa?0:t.Ya)||(t.m=Mo(Vn(t.Ha,t,e),vs(t,t.C)),t.C++,0)))}(t,e)||2==i&&gs(t)))switch(n&&0<n.length&&(e=t.i,e.i=e.i.concat(n)),o){case 1:Cs(t,5);break;case 4:Cs(t,10);break;case 3:Cs(t,6);break;default:Cs(t,2)}}function vs(t,e){var n=t.Pa+Math.floor(Math.random()*t.$a);return t.j||(n*=2),n*e}function Cs(t,e){if(t.h.info("Error code "+e),2==e){var n=null;t.j&&(n=null);var i=Vn(t.jb,t);n||(n=new ir("//www.google.com/images/cleardot.gif"),Rn.location&&"http"==Rn.location.protocol||rr(n,"https"),lr(n)),function(t,e){var n=new mo;if(Rn.Image){var i=new Image;i.onload=jn(Fr,n,i,"TestLoadImage: loaded",!0,e),i.onerror=jn(Fr,n,i,"TestLoadImage: error",!1,e),i.onabort=jn(Fr,n,i,"TestLoadImage: abort",!1,e),i.ontimeout=jn(Fr,n,i,"TestLoadImage: timeout",!1,e),Rn.setTimeout(function(){i.ontimeout&&i.ontimeout()},1e4),i.src=t}else e(!1)}(n.toString(),i)}else Oo(2);t.G=0,t.j&&t.j.va(e),xs(t),cs(t)}function xs(t){t.G=0,t.I=-1,t.j&&((0!=Rr(t.i).length||0!=t.l.length)&&(t.i.i.length=0,Jn(t.l),t.l.length=0),t.j.ua())}function ws(t,e,n){var i=function(t){return t instanceof ir?or(t):new ir(t,void 0)}(n);if(""!=i.i)e&&sr(i,e+"."+i.i),ar(i,i.m);else{var o=Rn.location;i=function(t,e,n,i){var o=new ir(null,void 0);return t&&rr(o,t),e&&sr(o,e),n&&ar(o,n),i&&(o.l=i),o}(o.protocol,e?e+"."+o.hostname:o.hostname,+o.port,n)}return t.aa&&ii(t.aa,function(t,e){ur(i,e,t)}),n=t.sa,(e=t.D)&&n&&ur(i,e,n),ur(i,"VER",t.ma),ds(t,i),i}function Os(t,e,n){if(e&&!t.H)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new Br(n&&t.Ba&&!t.qa?new Ur({ib:!0}):t.qa)).L=t.H,e}function Ps(){}function Ms(){if(hi&&!(10<=Number(xi)))throw Error("Environmental error: no available transport.")}function Ts(t,e){Hi.call(this),this.g=new rs(e),this.l=t,this.h=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.g.s=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.ya&&(t?t["X-WebChannel-Client-Profile"]=e.ya:t={"X-WebChannel-Client-Profile":e.ya}),this.g.P=t,(t=e&&e.httpHeadersOverwriteParam)&&!$n(t)&&(this.g.o=t),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!$n(e)&&(this.g.D=e,null!==(t=this.h)&&e in t&&e in(t=this.h)&&delete t[e]),this.j=new Es(this)}function ks(t){Ro.call(this);var e=t.__sm__;if(e){t:{for(var n in e){t=n;break t}t=void 0}(this.i=t)&&(t=this.i,e=null!==e&&t in e?e[t]:void 0),this.data=e}else this.data=t}function Ss(){No.call(this),this.status=1}function Es(t){this.g=t}(En=Br.prototype).ea=function(t,e,n,i){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+t);e=e?e.toUpperCase():"GET",this.H=t,this.j="",this.m=0,this.D=!1,this.h=!0,this.g=this.u?this.u.g():Ao.g(),this.C=function(t){return t.h||(t.h=t.i())}(this.u?this.u:Ao),this.g.onreadystatechange=Vn(this.Fa,this);try{this.F=!0,this.g.open(e,String(t),!0),this.F=!1}catch(r){return void $r(this,r)}t=n||"";var o=new Xo(this.headers);i&&Ko(i,function(t,e){o.set(e,t)}),i=function(t){t:{for(var e=Jr,n=t.length,i="string"==typeof t?t.split(""):t,o=0;o<n;o++)if(o in i&&e.call(void 0,i[o],o,t)){e=o;break t}e=-1}return 0>e?null:"string"==typeof t?t.charAt(e):t[e]}(o.T()),n=Rn.FormData&&t instanceof Rn.FormData,!(0<=Hn(Qr,e))||i||n||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach(function(t,e){this.g.setRequestHeader(e,t)},this),this.J&&(this.g.responseType=this.J),"withCredentials"in this.g&&this.g.withCredentials!==this.L&&(this.g.withCredentials=this.L);try{ts(this),0<this.B&&((this.K=function(t){return hi&&Ci()&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=Vn(this.pa,this)):this.A=co(this.pa,this.B,this)),this.v=!0,this.g.send(t),this.v=!1}catch(r){$r(this,r)}},En.pa=function(){void 0!==In&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,Yi(this,"timeout"),this.abort(8))},En.abort=function(t){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=t||7,Yi(this,"complete"),Yi(this,"abort"),Xr(this))},En.M=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Xr(this,!0)),Br.Z.M.call(this)},En.Fa=function(){this.s||(this.F||this.v||this.l?Kr(this):this.cb())},En.cb=function(){Kr(this)},En.ba=function(){try{return 2<es(this)?this.g.status:-1}
1catch(ui){return-1}},En.ga=function(){try{return this.g?this.g.responseText:""}catch(ui){return""}},En.Qa=function(t){if(this.g){var e=this.g.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),Gr(e)}},En.Da=function(){return this.m},En.La=function(){return"string"==typeof this.j?this.j:String(this.j)},(En=rs.prototype).ma=8,En.G=1,En.hb=function(t){try{this.h.info("Origin Trials invoked: "+t)}catch(e){}},En.Ha=function(t){if(this.m)if(this.m=null,1==this.G){if(!t){this.V=Math.floor(1e5*Math.random()),t=this.V++;var e=new Do(this,this.h,t,void 0),n=this.s;if(this.P&&(n?si(n=oi(n),this.P):n=this.P),null===this.o&&(e.H=n),this.ja)t:{for(var i=0,o=0;o<this.l.length;o++){var r=this.l[o];if(void 0===(r="__data__"in r.g&&"string"==typeof(r=r.g.__data__)?r.length:void 0))break;if(4096<(i+=r)){i=o;break t}if(4096===i||o===this.l.length-1){i=o+1;break t}}i=1e3}else i=1e3;i=ps(this,e,i),ur(o=or(this.F),"RID",t),ur(o,"CVER",22),this.D&&ur(o,"X-HTTP-Session-Id",this.D),ds(this,o),this.o&&n&&is(o,this.o,n),Ar(this.i,e),this.Ra&&ur(o,"TYPE","init"),this.ja?(ur(o,"$req",i),ur(o,"SID","null"),e.$=!0,Vo(e,o,null)):Vo(e,o,i),this.G=2}}else 3==this.G&&(t?hs(this,t):0==this.l.length||kr(this.i)||hs(this))},En.Ga=function(){if(this.u=null,_s(this),this.$&&!(this.L||null==this.g||0>=this.O)){var t=2*this.O;this.h.info("BP detection timer enabled: "+t),this.B=Mo(Vn(this.bb,this),t)}},En.bb=function(){this.B&&(this.B=null,this.h.info("BP detection timeout reached."),this.h.info("Buffering proxy detected and switch to long-polling!"),this.N=!1,this.L=!0,Oo(10),as(this),_s(this))},En.ab=function(){null!=this.v&&(this.v=null,as(this),gs(this),Oo(19))},En.jb=function(t){t?(this.h.info("Successfully pinged google.com"),Oo(2)):(this.h.info("Failed to ping google.com"),Oo(1))},(En=Ps.prototype).xa=function(){},En.wa=function(){},En.va=function(){},En.ua=function(){},En.Oa=function(){},Ms.prototype.g=function(t,e){return new Ts(t,e)},zn(Ts,Hi),Ts.prototype.m=function(){this.g.j=this.j,this.A&&(this.g.H=!0);var t=this.g,e=this.l,n=this.h||void 0;t.Wa&&(t.h.info("Origin Trials enabled."),no(Vn(t.hb,t,e))),Oo(0),t.W=e,t.aa=n||{},t.N=t.X,t.F=ws(t,null,t.W),ls(t)},Ts.prototype.close=function(){ss(this.g)},Ts.prototype.u=function(t){if("string"==typeof t){var e={};e.__data__=t,us(this.g,e)}else this.v?((e={}).__data__=Ji(t),us(this.g,e)):us(this.g,t)},Ts.prototype.M=function(){this.g.j=null,delete this.j,ss(this.g),delete this.g,Ts.Z.M.call(this)},zn(ks,Ro),zn(Ss,No),zn(Es,Ps),Es.prototype.xa=function(){Yi(this.g,"a")},Es.prototype.wa=function(t){Yi(this.g,new ks(t))},Es.prototype.va=function(t){Yi(this.g,new Ss(t))},Es.prototype.ua=function(){Yi(this.g,"b")},Ms.prototype.createWebChannel=Ms.prototype.g,Ts.prototype.send=Ts.prototype.u,Ts.prototype.open=Ts.prototype.m,Ts.prototype.close=Ts.prototype.close,To.NO_ERROR=0,To.TIMEOUT=8,To.HTTP_ERROR=6,ko.COMPLETE="complete",Eo.EventType=Io,Io.OPEN="a",Io.CLOSE="b",Io.ERROR="c",Io.MESSAGE="d",Hi.prototype.listen=Hi.prototype.N,Br.prototype.listenOnce=Br.prototype.O,Br.prototype.getLastError=Br.prototype.La,Br.prototype.getLastErrorCode=Br.prototype.Da,Br.prototype.getStatus=Br.prototype.ba,Br.prototype.getResponseJson=Br.prototype.Qa,Br.prototype.getResponseText=Br.prototype.ga,Br.prototype.send=Br.prototype.ea;var As=To,Is=ko,Rs=yo,Ns=10,Ls=11,Ds=Ur,Fs=Eo,Us=Br,Zs=function(){function t(t,e){var n=this;this.previousValue=t,e&&(e.sequenceNumberHandler=function(t){return n.t(t)},this.i=function(t){return e.writeSequenceNumber(t)})}return t.prototype.t=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this.i&&this.i(t),t},t}();Zs.o=-1;var qs={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENT
1ED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},Vs=function(t){function e(e,n){var i=this;return(i=t.call(this,n)||this).code=e,i.message=n,i.name="FirebaseError",i.toString=function(){return i.name+": [code="+i.code+"]: "+i.message},i}return(0,Pn.ZT)(e,t),e}(Error),js=new Tn.Yd("@firebase/firestore");function zs(){return js.logLevel}function Gs(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(js.logLevel<=Tn.in.DEBUG){var i=e.map(Ys);js.debug.apply(js,(0,Pn.ev)(["Firestore (8.10.1): "+t],i))}}function Bs(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(js.logLevel<=Tn.in.ERROR){var i=e.map(Ys);js.error.apply(js,(0,Pn.ev)(["Firestore (8.10.1): "+t],i))}}function Hs(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(js.logLevel<=Tn.in.WARN){var i=e.map(Ys);js.warn.apply(js,(0,Pn.ev)(["Firestore (8.10.1): "+t],i))}}function Ys(t){if("string"==typeof t)return t;try{return JSON.stringify(t)}catch(e){return t}}function Qs(t){void 0===t&&(t="Unexpected state");var e="FIRESTORE (8.10.1) INTERNAL ASSERTION FAILED: "+t;throw Bs(e),new Error(e)}function Js(t,e){t||Qs()}function $s(t,e){return t}function Ws(t){var e="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(n);else for(var i=0;i<t;i++)n[i]=Math.floor(256*Math.random());return n}var Ks=function(){function t(){}return t.u=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=Math.floor(256/t.length)*t.length,n="";n.length<20;)for(var i=Ws(40),o=0;o<i.length;++o)n.length<20&&i[o]<e&&(n+=t.charAt(i[o]%t.length));return n},t}();function Xs(t,e){return t<e?-1:t>e?1:0}function ta(t,e,n){return t.length===e.length&&t.every(function(t,i){return n(t,e[i])})}function ea(t){return t+"\0"}var na=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new Vs(qs.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new Vs(qs.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new Vs(qs.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new Vs(qs.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return t.now=function(){return t.fromMillis(Date.now())},t.fromDate=function(e){return t.fromMillis(e.getTime())},t.fromMillis=function(e){var n=Math.floor(e/1e3);return new t(n,Math.floor(1e6*(e-1e3*n)))},t.prototype.toDate=function(){return new Date(this.toMillis())},t.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},t.prototype._compareTo=function(t){return this.seconds===t.seconds?Xs(this.nanoseconds,t.nanoseconds):Xs(this.seconds,t.seconds)},t.prototype.isEqual=function(t){return t.seconds===this.seconds&&t.nanoseconds===this.nanoseconds},t.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},t.prototype.toJSON=function(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}},t.prototype.valueOf=function(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")},t}(),ia=function(){function t(t){this.timestamp=t}return t.fromTimestamp=function(e){return new t(e)},t.min=function(){return new t(new na(0,0))},t.prototype.compareTo=function(t){return this.timestamp._compareTo(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.toMicroseconds=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.toTimestamp=function(){return this.timestamp},t}();function oa(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function ra(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function sa(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}var aa=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&Qs(),void 0===n?n=t.length-e:n>t.length-e&&Qs(),this.segments=t,this.offset=e,this.len=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.len}
1,enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.comparator(this,e)},t.prototype.child=function(e){var n=this.segments.slice(this.offset,this.limit());return e instanceof t?e.forEach(function(t){n.push(t)}):n.push(e),this.construct(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.popFirst=function(t){return this.construct(this.segments,this.offset+(t=void 0===t?1:t),this.length-t)},t.prototype.popLast=function(){return this.construct(this.segments,this.offset,this.length-1)},t.prototype.firstSegment=function(){return this.segments[this.offset]},t.prototype.lastSegment=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype.isEmpty=function(){return 0===this.length},t.prototype.isPrefixOf=function(t){if(t.length<this.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.isImmediateParentOf=function(t){if(this.length+1!==t.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.forEach=function(t){for(var e=this.offset,n=this.limit();e<n;e++)t(this.segments[e])},t.prototype.toArray=function(){return this.segments.slice(this.offset,this.limit())},t.comparator=function(t,e){for(var n=Math.min(t.length,e.length),i=0;i<n;i++){var o=t.get(i),r=e.get(i);if(o<r)return-1;if(o>r)return 1}return t.length<e.length?-1:t.length>e.length?1:0},t}(),ca=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Pn.ZT)(e,t),e.prototype.construct=function(t,n,i){return new e(t,n,i)},e.prototype.canonicalString=function(){return this.toArray().join("/")},e.prototype.toString=function(){return this.canonicalString()},e.fromString=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=[],o=0,r=t;o<r.length;o++){var s=r[o];if(s.indexOf("//")>=0)throw new Vs(qs.INVALID_ARGUMENT,"Invalid segment ("+s+"). Paths must not contain // in them.");i.push.apply(i,s.split("/").filter(function(t){return t.length>0}))}return new e(i)},e.emptyPath=function(){return new e([])},e}(aa),ua=/^[_a-zA-Z][_a-zA-Z0-9]*$/,la=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Pn.ZT)(e,t),e.prototype.construct=function(t,n,i){return new e(t,n,i)},e.isValidIdentifier=function(t){return ua.test(t)},e.prototype.canonicalString=function(){return this.toArray().map(function(t){return t=t.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),e.isValidIdentifier(t)||(t="`"+t+"`"),t}).join(".")},e.prototype.toString=function(){return this.canonicalString()},e.prototype.isKeyField=function(){return 1===this.length&&"__name__"===this.get(0)},e.keyField=function(){return new e(["__name__"])},e.fromServerFormat=function(t){for(var n=[],i="",o=0,r=function(){if(0===i.length)throw new Vs(qs.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(i),i=""},s=!1;o<t.length;){var a=t[o];if("\\"===a){if(o+1===t.length)throw new Vs(qs.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var c=t[o+1];if("\\"!==c&&"."!==c&&"`"!==c)throw new Vs(qs.INVALID_ARGUMENT,"Path has invalid escape sequence: "+t);i+=c,o+=2}else"`"===a?(s=!s,o++):"."!==a||s?(i+=a,o++):(r(),o++)}if(r(),s)throw new Vs(qs.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e.emptyPath=function(){return new e([])},e}(aa),ha=function(){function t(t){this.fields=t,t.sort(la.comparator)}return t.prototype.covers=function(t){for(var e=0,n=this.fields;e<n.length;e++)if(n[e].isPrefixOf(t))return!0;return!1},t.prototype.isEqual=function(t){return ta(this.fields,t.fields,function(t,e){return t.isEqual(e)})},t}(),da=function(){function t(t){this.binaryString=t}return t.fromBase64String=function(e){return new t(atob(e))},t.fromUint8Array=function(e){return new t(function(t){for(var e="",n=0;n<t.length;++n)e+=String.fromCharCode(t[n]);return e}(e))},t.prototype.toBase64=function(){return btoa(this.binaryString)},t.prototype.toUint8Array=function(){return function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}(this.binaryString)},t.prototype.approximateByteSize=function(){return 2*this.binaryString.length},t.prototype.compareTo=function(t){return Xs(this.binaryString,t.binaryString)},t.prototype.isEqual=function(t){return this.binaryString===t.binaryString},t}();da.EMPTY_BYTE_STRING=new da("");var pa=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function fa(t){if(Js(!!t),"string"==typeof t){var e=0,n=pa.exec(t);if(Js(!!n),n[1]){var i=n[1];i=(i+"000000000").substr(0,9),e=Number(i)}var o=new Date(t);return{seconds:Math.floor(o.getTime()/1e3),nanos:e}}return{seconds:ga(t.seconds),nanos:ga(t.nanos)}}function ga(t){return"number"==typeof t?t:"string"==typeof t?Number(t):0}function ma(t){return"string"==typeof t?da.fromBase64String(t):da.fromUint8Array(t)}function _a(t){var e,n;return"server_timestamp"===(null===(n=((null===(e=null==t?void 0:t.mapValue)||void 0===e?void 0:e.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function ya(t){var e=t.mapValue.fields.__previous_value__;return _a(e)?ya(e):e}function ba(t){var e=fa(t.mapValue.fields.__local_write_time__.timestampValue);return new na(e.seconds,e.nanos)}function va(t){return null==t}function Ca(t){return 0===t&&1/t==-1/0}function xa(t){return"number"==typeof t&&Number.isInteger(t)&&!Ca(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}var wa=function(){function t(t){this.path=t}return t.fromPath=function(e){return new t(ca.fromString(e))},t.fromName=function(e){return new t(ca.fromString(e).popFirst(5))},t.prototype.hasCollectionId=function(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===ca.comparator(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.comparator=function(t,e){return ca.comparator(t.path,e.path)},t.isDocumentKey=function(t){return t.length%2==0},t.fromSegments=function(e){return new t(new ca(e.slice()))},t}();function Oa(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?_a(t)?4:10:Qs()}function Pa(t,e){var n,i=Oa(t);if(i!==Oa(e))return!1;switch(i){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return ba(t).isEqual(ba(e));case 3:return function(t,e){if("string"==typeof t.timestampValue&&"string"==typeof e.timestampValue&&t.timestampValue.length===e.timestampValue.length)return t.timestampValue===e.timestampValue;var n=fa(t.timestampValue),i=fa(e.timestampValue);return n.seconds===i.seconds&&n.nanos===i.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return n=e,ma(t.bytesValue).isEqual(ma(n.bytesValue));case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return ga(t.geoPointValue.latitude)===ga(e.geoPointValue.latitude)&&ga(t.geoPointValue.longitude)===ga(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return ga(t.integerValue)===ga(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=ga(t.doubleValue),i=ga(e.doubleValue);return n===i?Ca(n)===Ca(i):isNaN(n)&&isNaN(i)}return!1}(t,e);case 9:return ta(t.arrayValue.values||[],e.arrayValue.values||[],Pa);case 10:return function(t,e){var n=t.mapValue.fields||{},i=e.mapValue.fields||{};if(oa(n)!==oa(i))return!1;for(var o in n)if(n.hasOwnProperty(o)&&(void 0===i[o]||!Pa(n[o],i[o])))return!1;return!0}(t,e);default:return Qs()}}function Ma(t,e){return void 0!==(t.values||[]).find(function(t){return Pa(t,e)})}function Ta(t,e){var n,i,o,r,s=Oa(t),a=Oa(e);if(s!==a)return Xs(s,a);switch(s){case 0:return 0;case 1:return Xs(t.booleanValue,e.booleanValue);case 2:return i=e,(o=ga((n=t).integerValue||n.doubleValue))<(r=ga(i.integerValue||i.doubleValue))?-1:o>r?1:o===r?0:isNaN(o)?isNaN(r)?0:-1:1;case 3:return ka(t.timestampValue,e.timestampValue);case 4:return ka(ba(t),ba(e));case 5:return Xs(t.stringValue,e.stringValue);case 6:return function(t,e){var n=ma(t),i=ma(e);return n.compareTo(i)}(t.bytesValue,e.bytesValue);case 7:return function(t,e){for(var n=t.split("/"),i=e.split("/"),o=0;o<n.length&&o<i.length;o++){var r=Xs(n[o],i[o]);if(0!==r)return r}return Xs(n.length,i.length)}(t.referenceValue,e.referenceValue);case 8:return function(t,e){var n=Xs(ga(t.latitude),ga(e.latitude));return 0!==n?n:Xs(ga(t.longitude),ga(e.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return function(t,e){for(var n=t.values||[],i=e.values||[],o=0;o<n.length&&o<i.length;++o){var r=Ta(n[o],i[o]);if(r)return r}return Xs(n.length,i.length)}(t.arrayValue,e.arrayValue);case 10:return function(t,e){var n=t.fields||{},i=Object.keys(n),o=e.fields||{},r=Object.keys(o);
1i.sort(),r.sort();for(var s=0;s<i.length&&s<r.length;++s){var a=Xs(i[s],r[s]);if(0!==a)return a;var c=Ta(n[i[s]],o[r[s]]);if(0!==c)return c}return Xs(i.length,r.length)}(t.mapValue,e.mapValue);default:throw Qs()}}function ka(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return Xs(t,e);var n=fa(t),i=fa(e),o=Xs(n.seconds,i.seconds);return 0!==o?o:Xs(n.nanos,i.nanos)}function Sa(t){return Ea(t)}function Ea(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?"time("+(e=fa(t.timestampValue)).seconds+","+e.nanos+")":"stringValue"in t?t.stringValue:"bytesValue"in t?ma(t.bytesValue).toBase64():"referenceValue"in t?wa.fromName(t.referenceValue).toString():"geoPointValue"in t?"geo("+(n=t.geoPointValue).latitude+","+n.longitude+")":"arrayValue"in t?function(t){for(var e="[",n=!0,i=0,o=t.values||[];i<o.length;i++)n?n=!1:e+=",",e+=Ea(o[i]);return e+"]"}(t.arrayValue):"mapValue"in t?function(t){for(var e="{",n=!0,i=0,o=Object.keys(t.fields||{}).sort();i<o.length;i++){var r=o[i];n?n=!1:e+=",",e+=r+":"+Ea(t.fields[r])}return e+"}"}(t.mapValue):Qs();var e,n}function Aa(t,e){return{referenceValue:"projects/"+t.projectId+"/databases/"+t.database+"/documents/"+e.path.canonicalString()}}function Ia(t){return!!t&&"integerValue"in t}function Ra(t){return!!t&&"arrayValue"in t}function Na(t){return!!t&&"nullValue"in t}function La(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function Da(t){return!!t&&"mapValue"in t}function Fa(t){if(t.geoPointValue)return{geoPointValue:Object.assign({},t.geoPointValue)};if(t.timestampValue&&"object"==typeof t.timestampValue)return{timestampValue:Object.assign({},t.timestampValue)};if(t.mapValue){var e={mapValue:{fields:{}}};return ra(t.mapValue.fields,function(t,n){return e.mapValue.fields[t]=Fa(n)}),e}if(t.arrayValue){for(var n={arrayValue:{values:[]}},i=0;i<(t.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=Fa(t.arrayValue.values[i]);return n}return Object.assign({},t)}var Ua=function(){function t(t){this.value=t}return t.empty=function(){return new t({mapValue:{}})},t.prototype.field=function(t){if(t.isEmpty())return this.value;for(var e=this.value,n=0;n<t.length-1;++n)if(!Da(e=(e.mapValue.fields||{})[t.get(n)]))return null;return(e=(e.mapValue.fields||{})[t.lastSegment()])||null},t.prototype.set=function(t,e){this.getFieldsMap(t.popLast())[t.lastSegment()]=Fa(e)},t.prototype.setAll=function(t){var e=this,n=la.emptyPath(),i={},o=[];t.forEach(function(t,r){if(!n.isImmediateParentOf(r)){var s=e.getFieldsMap(n);e.applyChanges(s,i,o),i={},o=[],n=r.popLast()}t?i[r.lastSegment()]=Fa(t):o.push(r.lastSegment())});var r=this.getFieldsMap(n);this.applyChanges(r,i,o)},t.prototype.delete=function(t){var e=this.field(t.popLast());Da(e)&&e.mapValue.fields&&delete e.mapValue.fields[t.lastSegment()]},t.prototype.isEqual=function(t){return Pa(this.value,t.value)},t.prototype.getFieldsMap=function(t){var e=this.value;e.mapValue.fields||(e.mapValue={fields:{}});for(var n=0;n<t.length;++n){var i=e.mapValue.fields[t.get(n)];Da(i)&&i.mapValue.fields||(i={mapValue:{fields:{}}},e.mapValue.fields[t.get(n)]=i),e=i}return e.mapValue.fields},t.prototype.applyChanges=function(t,e,n){ra(e,function(e,n){return t[e]=n});for(var i=0,o=n;i<o.length;i++)delete t[o[i]]},t.prototype.clone=function(){return new t(Fa(this.value))},t}();function Za(t){var e=[];return ra(t.fields,function(t,n){var i=new la([t]);if(Da(n)){var o=Za(n.mapValue).fields;if(0===o.length)e.push(i);else for(var r=0,s=o;r<s.length;r++)e.push(i.child(s[r]))}else e.push(i)}),new ha(e)}var qa=function(){function t(t,e,n,i,o){this.key=t,this.documentType=e,this.version=n,this.data=i,this.documentState=o}return t.newInvalidDocument=function(e){return new t(e,0,ia.min(),Ua.empty(),0)},t.newFoundDocument=function(e,n,i){return new t(e,1,n,i,0)},t.newNoDocument=function(e,n){return new t(e,2,n,Ua.empty(),0)},t.newUnknownDocument=function(e,n){return new t(e,3,n,Ua.empty(),2)},t.prototype.convertToFoundDocument=function(t,e){return this.version=t,this.documentType=1,this.data=e,this.documentState=0,this},t.prototype.convertToNoDocument=function(t){return this.version=t,this.documentType=2,this.data=Ua.empty(),this.documentState=0,this},t.prototype.convertToUnknownDocument=function(t){return this.version=t,this.documentType=3,this.data=Ua.empty(),this.documentState=2,this},t.prototype.setHasCommittedMutations=function(){return this.documentState=2,this},t.prototype.setHasLocalMutations=function(){return this.documentState=1,this},Object.defineProperty(t.prototype,"hasLocalMutations",{get:function(){return 1===this.documentState}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCommittedMutations",{get:function(){return 2===this.documentState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return this.hasLocalMutations||this.hasCommittedMutations},enumerable:!1,configurable:!0}),t.prototype.isValidDocument=function(){return 0!==this.documentType},t.prototype.isFoundDocument=function(){return 1===this.documentType},t.prototype.isNoDocument=function(){return 2===this.documentType},t.prototype.isUnknownDocument=function(){return 3===this.documentType},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)},t.prototype.clone=function(){return new t(this.key,this.documentType,this.version,this.data.clone(),this.documentState)},t.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+JSON.stringify(this.data.value)+", {documentType: "+this.documentType+"}), {documentState: "+this.documentState+"})"},t}(),Va=function(t,e,n,i,o,r,s){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===i&&(i=[]),void 0===o&&(o=null),void 0===r&&(r=null),void 0===s&&(s=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=i,this.limit=o,this.startAt=r,this.endAt=s,this.h=null};function ja(t,e,n,i,o,r,s){return void 0===e&&(e=null),void 0===n&&(n=[]),void 0===i&&(i=[]),void 0===o&&(o=null),void 0===r&&(r=null),void 0===s&&(s=null),new Va(t,e,n,i,o,r,s)}function za(t){var e=$s(t);if(null===e.h){var n=e.path.canonicalString();null!==e.collectionGroup&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map(function(t){return(e=t).field.canonicalString()+e.op.toString()+Sa(e.value);var e}).join(","),n+="|ob:",n+=e.orderBy.map(function(t){return(e=t).field.canonicalString()+e.dir;var e}).join(","),va(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=nc(e.startAt)),e.endAt&&(n+="|ub:",n+=nc(e.endAt)),e.h=n}return e.h}function Ga(t,e){if(t.limit!==e.limit||t.orderBy.length!==e.orderBy.length)return!1;for(var n=0;n<t.orderBy.length;n++)if(!oc(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(var i=0;i<t.filters.length;i++)if((o=t.filters[i]).op!==(r=e.filters[i]).op||!o.field.isEqual(r.field)||!Pa(o.value,r.value))return!1;var o,r;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!sc(t.startAt,e.startAt)&&sc(t.endAt,e.endAt)}function Ba(t){return wa.isDocumentKey(t.path)&&null===t.collectionGroup&&0===t.filters.length}var Ha=function(t){function e(e,n,i){var o=this;return(o=t.call(this)||this).field=e,o.op=n,o.value=i,o}return(0,Pn.ZT)(e,t),e.create=function(t,n,i){return t.isKeyField()?"in"===n||"not-in"===n?this.l(t,n,i):new Ya(t,n,i):"array-contains"===n?new Wa(t,i):"in"===n?new Ka(t,i):"not-in"===n?new Xa(t,i):"array-contains-any"===n?new tc(t,i):new e(t,n,i)},e.l=function(t,e,n){return"in"===e?new Qa(t,n):new Ja(t,n)},e.prototype.matches=function(t){var e=t.data.field(this.field);return"!="===this.op?null!==e&&this.m(Ta(e,this.value)):null!==e&&Oa(this.value)===Oa(e)&&this.m(Ta(e,this.value))},e.prototype.m=function(t){switch(this.op){case"<":return t<0;case"<=":return t<=0;case"==":return 0===t;case"!=":return 0!==t;case">":return t>0;case">=":return t>=0;default:return Qs()}},e.prototype.g=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},e}(function(){}),Ya=function(t){function e(e,n,i){var o=this;return(o=t.call(this,e,n,i)||this).key=wa.fromName(i.referenceValue),o}return(0,Pn.ZT)(e,t),e.prototype.matches=function(t){var e=wa.comparator(t.key,this.key);return this.m(e)},e}(Ha),Qa=function(t){function e(e,n){var i=this;return(i=t.call(this,e,"in",n)||this).keys=$a(0,n),i}return(0,Pn.ZT)(e,t),e.prototype.matches=function(t){return this.keys.some(function(e){return e.isEqual(t.key)})},e}(Ha),Ja=function(t){function e(e,n){var i=this;return(i=t.call(this,e,"not-in",n)||this).keys=$a(0,n),i}return(0,Pn.ZT)(e,t),e.prototype.matches=function(t){return!this.keys.some(function(e){return e.isEqual(t.key)})},e}(Ha);function $a(t,e){var n;return((null===(n=e.arrayValue)||void 0===n?void 0:n.values)||[]).map(function(t){return wa.fromName(t.referenceValue)})}var Wa=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return(0,Pn.ZT)(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return Ra(e)&&Ma(e.arrayValue,this.value)},e}(Ha),Ka=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return(0,Pn.ZT)(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return null!==e&&Ma(this.value.arrayValue,e)},e}(Ha),Xa=function(t){function e(e,n){return t.call(this,e,"not-in",n)||this}return(0,Pn.ZT)(e,t),e.prototype.matches=function(t){if(Ma(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var e=t.data.field(this.field);return null!==e&&!Ma(this.value.arrayValue,e)},e}(Ha),tc=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return(0,Pn.ZT)(e,t),e.prototype.matches=function(t){var e=this,n=t.data.field(this.field);return!(!Ra(n)||!n.arrayValue.values)&&n.arrayValue.values.some(function(t){return Ma(e.value.arrayValue,t)})},e}(Ha),ec=function(t,e){this.position=t,this.before=e};function nc(t){return(t.before?"b":"a")+":"+t.position.map(function(t){return Sa(t)}).join(",")}var ic=function(t,e){void 0===e&&(e="asc"),this.field=t,this.dir=e};function oc(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}function rc(t,e,n){for(var i=0,o=0;o<t.position.length;o++){var r=e[o],s=t.position[o];if(i=r.field.isKeyField()?wa.comparator(wa.fromName(s.referenceValue),n.key):Ta(s,n.data.field(r.field)),"desc"===r.dir&&(i*=-1),0!==i)break}return t.before?i<=0:i<0}function sc(t,e){if(null===t)return null===e;if(null===e||t.before!==e.before||t.position.length!==e.position.length)return!1;for(var n=0;n<t.position.length;n++)if(!Pa(t.position[n],e.position[n]))return!1;return!0}var ac=function(t,e,n,i,o,r,s,a){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===i&&(i=[]),void 0===o&&(o=null),void 0===r&&(r="F"),void 0===s&&(s=null),void 0===a&&(a=null),this.path=t,this.collectionGroup=e,this.explicitOrderBy=n,this.filters=i,this.limit=o,this.limitType=r,this.startAt=s,this.endAt=a,this.p=null,this.T=null};function cc(t,e,n,i,o,r,s,a){return new ac(t,e,n,i,o,r,s,a)}function uc(t){return new ac(t)}function lc(t){return!va(t.limit)&&"F"===t.limitType}function hc(t){return!va(t.limit)&&"L"===t.limitType}function dc(t){return t.explicitOrderBy.length>0?t.explicitOrderBy[0].field:null}function pc(t){for(var e=0,n=t.filters;e<n.length;e++){var i=n[e];if(i.g())return i.field}return null}function fc(t){return null!==t.collectionGroup}function gc(t){var e=$s(t);if(null===e.p){e.p=[];var n=pc(e),i=dc(e);if(null!==n&&null===i)n.isKeyField()||e.p.push(new ic(n)),e.p.push(new ic(la.keyField(),"asc"));else{for(var o=!1,r=0,s=e.explicitOrderBy;r<s.length;r++){var a=s[r];e.p.push(a),a.field.isKeyField()&&(o=!0)}if(!o){var c=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";e.p.push(new ic(la.keyField(),c))}}}return e.p}function mc(t){var e=$s(t);if(!e.T)if("F"===e.limitType)e.T=ja(e.path,e.collectionGroup,gc(e),e.filters,e.limit,e.startAt,e.endAt);else{for(var n=[],i=0,o=gc(e);i<o.length;i++){var r=o[i];n.push(new ic(r.field,"desc"===r.dir?"asc":"desc"))}var s=e.endAt?new ec(e.endAt.position,!e.endAt.before):null,a=e.startAt?new ec(e.startAt.position,!e.startAt.before):null;e.T=ja(e.path,e.collectionGroup,n,e.filters,e.limit,s,a)}return e.T}function _c(t,e,n){return new ac(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function yc(t,e){return Ga(mc(t),mc(e))&&t.limitType===e.limitType}function bc(t){return za(mc(t))+"|lt:"+t.limitType}function vc(t){return"Query(target="+(n=(e=mc(t)).path.canonicalString(),null!==e.collectionGroup&&(n+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(n+=", filters: ["+e.filters.map(function(t){return(e=t).field.canonicalString()+" "+e.op+" "+Sa(e.value);var e}).join(", ")+"]"),va(e.limit)||(n+=", limit: "+e.limit),e.orderBy.length>0&&(n+=", orderBy: ["+e.orderBy.map(function(t){return(e=t).field.canonicalString()+" ("+e.dir+")";var e}).join(", ")+"]"),e.startAt&&(n+=", startAt: "+nc(e.startAt)),e.endAt&&(n+=", endAt: "+nc(e.endAt)),"Target("+n+"); limitType=")+t.limitType+")";var e,n}
1function Cc(t,e){return e.isFoundDocument()&&(o=(i=e).key.path,null!==(n=t).collectionGroup?i.key.hasCollectionId(n.collectionGroup)&&n.path.isPrefixOf(o):wa.isDocumentKey(n.path)?n.path.isEqual(o):n.path.isImmediateParentOf(o))&&function(t,e){for(var n=0,i=t.explicitOrderBy;n<i.length;n++){var o=i[n];if(!o.field.isKeyField()&&null===e.data.field(o.field))return!1}return!0}(t,e)&&function(t,e){for(var n=0,i=t.filters;n<i.length;n++)if(!i[n].matches(e))return!1;return!0}(t,e)&&function(t,e){return!(t.startAt&&!rc(t.startAt,gc(t),e)||t.endAt&&rc(t.endAt,gc(t),e))}(t,e);var n,i,o}function xc(t){return function(e,n){for(var i=!1,o=0,r=gc(t);o<r.length;o++){var s=r[o],a=wc(s,e,n);if(0!==a)return a;i=i||s.field.isKeyField()}return 0}}function wc(t,e,n){var i,o,r,s,a=t.field.isKeyField()?wa.comparator(e.key,n.key):(o=n,r=e.data.field(i=t.field),s=o.data.field(i),null!==r&&null!==s?Ta(r,s):Qs());switch(t.dir){case"asc":return a;case"desc":return-1*a;default:return Qs()}}function Oc(t,e){if(t.I){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:Ca(e)?"-0":e}}function Pc(t){return{integerValue:""+t}}function Mc(t,e){return xa(e)?Pc(e):Oc(t,e)}var Tc=function(){this._=void 0};function kc(t,e,n){return t instanceof Ac?(r={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:(i=n).seconds,nanos:i.nanoseconds}}}},(o=e)&&(r.fields.__previous_value__=o),{mapValue:r}):t instanceof Ic?Rc(t,e):t instanceof Nc?Lc(t,e):function(t,e){var n=Ec(t,e),i=Fc(n)+Fc(t.A);return Ia(n)&&Ia(t.A)?Pc(i):Oc(t.R,i)}(t,e);var i,o,r}function Sc(t,e,n){return t instanceof Ic?Rc(t,e):t instanceof Nc?Lc(t,e):n}function Ec(t,e){return t instanceof Dc?Ia(i=e)||(n=i)&&"doubleValue"in n?e:{integerValue:0}:null;var n,i}var Ac=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Pn.ZT)(e,t),e}(Tc),Ic=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return(0,Pn.ZT)(e,t),e}(Tc);function Rc(t,e){for(var n=Uc(e),i=function(t){n.some(function(e){return Pa(e,t)})||n.push(t)},o=0,r=t.elements;o<r.length;o++)i(r[o]);return{arrayValue:{values:n}}}var Nc=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return(0,Pn.ZT)(e,t),e}(Tc);function Lc(t,e){for(var n=Uc(e),i=function(t){n=n.filter(function(e){return!Pa(e,t)})},o=0,r=t.elements;o<r.length;o++)i(r[o]);return{arrayValue:{values:n}}}var Dc=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).R=e,i.A=n,i}return(0,Pn.ZT)(e,t),e}(Tc);function Fc(t){return ga(t.integerValue||t.doubleValue)}function Uc(t){return Ra(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}var Zc=function(t,e){this.field=t,this.transform=e},qc=function(t,e){this.version=t,this.transformResults=e},Vc=function(){function t(t,e){this.updateTime=t,this.exists=e}return t.none=function(){return new t},t.exists=function(e){return new t(void 0,e)},t.updateTime=function(e){return new t(e)},Object.defineProperty(t.prototype,"isNone",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.exists===t.exists&&(this.updateTime?!!t.updateTime&&this.updateTime.isEqual(t.updateTime):!t.updateTime)},t}();function jc(t,e){return void 0!==t.updateTime?e.isFoundDocument()&&e.version.isEqual(t.updateTime):void 0===t.exists||t.exists===e.isFoundDocument()}var zc=function(){};function Gc(t,e,n){var i,o,r,s,a;t instanceof Jc?(o=e,r=n,s=(i=t).value.clone(),a=Kc(i.fieldTransforms,o,r.transformResults),s.setAll(a),o.convertToFoundDocument(r.version,s).setHasCommittedMutations()):t instanceof $c?function(t,e,n){if(jc(t.precondition,e)){var i=Kc(t.fieldTransforms,e,n.transformResults),o=e.data;o.setAll(Wc(t)),o.setAll(i),e.convertToFoundDocument(n.version,o).setHasCommittedMutations()}else e.convertToUnknownDocument(n.version)}(t,e,n):function(t,e,n){e.convertToNoDocument(n.version).setHasCommittedMutations()}(0,e,n)}function Bc(t,e,n){var i;t instanceof Jc?function(t,e,n){if(jc(t.precondition,e)){var i=t.value.clone(),o=Xc(t.fieldTransforms,n,e);i.setAll(o),e.convertToFoundDocument(Qc(e),i).setHasLocalMutations()}}(t,e,n):t instanceof $c?function(t,e,n){if(jc(t.precondition,e)){var i=Xc(t.fieldTransforms,n,e),o=e.data;o.setAll(Wc(t)),o.setAll(i),e.convertToFoundDocument(Qc(e),o).setHasLocalMutations()}}(t,e,n):jc(t.precondition,i=e)&&i.convertToNoDocument(ia.min())}function Hc(t,e){for(var n=null,i=0,o=t.fieldTransforms;i<o.length;i++){var r=o[i],s=e.data.field(r.field),a=Ec(r.transform,s||null);null!=a&&(null==n&&(n=Ua.empty()),n.set(r.field,a))}return n||null}function Yc(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&(i=e.fieldTransforms,!!(void 0===(n=t.fieldTransforms)&&void 0===i||n&&i&&ta(n,i,function(t,e){return(n=t).field.isEqual((i=e).field)&&(r=i.transform,(o=n.transform)instanceof Ic&&r instanceof Ic||o instanceof Nc&&r instanceof Nc?ta(o.elements,r.elements,Pa):o instanceof Dc&&r instanceof Dc?Pa(o.A,r.A):o instanceof Ac&&r instanceof Ac);var n,i,o,r})))&&(0===t.type?t.value.isEqual(e.value):1!==t.type||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask));var n,i}function Qc(t){return t.isFoundDocument()?t.version:ia.min()}var Jc=function(t){function e(e,n,i,o){void 0===o&&(o=[]);var r=this;return(r=t.call(this)||this).key=e,r.value=n,r.precondition=i,r.fieldTransforms=o,r.type=0,r}return(0,Pn.ZT)(e,t),e}(zc),$c=function(t){function e(e,n,i,o,r){void 0===r&&(r=[]);var s=this;return(s=t.call(this)||this).key=e,s.data=n,s.fieldMask=i,s.precondition=o,s.fieldTransforms=r,s.type=1,s}return(0,Pn.ZT)(e,t),e}(zc);function Wc(t){var e=new Map;return t.fieldMask.fields.forEach(function(n){if(!n.isEmpty()){var i=t.data.field(n);e.set(n,i)}}),e}function Kc(t,e,n){var i=new Map;Js(t.length===n.length);for(var o=0;o<n.length;o++){var r=t[o],s=r.transform,a=e.data.field(r.field);i.set(r.field,Sc(s,a,n[o]))}return i}function Xc(t,e,n){for(var i=new Map,o=0,r=t;o<r.length;o++){var s=r[o],a=s.transform,c=n.data.field(s.field);i.set(s.field,kc(a,c,e))}return i}var tu,eu,nu=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).key=e,i.precondition=n,i.type=2,i.fieldTransforms=[],i}return(0,Pn.ZT)(e,t),e}(zc),iu=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).key=e,i.precondition=n,i.type=3,i.fieldTransforms=[],i}return(0,Pn.ZT)(e,t),e}(zc),ou=function(t){this.count=t};function ru(t){switch(t){case qs.OK:return Qs();case qs.CANCELLED:case qs.UNKNOWN:case qs.DEADLINE_EXCEEDED:case qs.RESOURCE_EXHAUSTED:case qs.INTERNAL:case qs.UNAVAILABLE:case qs.UNAUTHENTICATED:return!1;case qs.INVALID_ARGUMENT:case qs.NOT_FOUND:case qs.ALREADY_EXISTS:case qs.PERMISSION_DENIED:case qs.FAILED_PRECONDITION:case qs.ABORTED:case qs.OUT_OF_RANGE:case qs.UNIMPLEMENT
1ED:case qs.DATA_LOSS:return!0;default:return Qs()}}function su(t){if(void 0===t)return Bs("GRPC error has no .code"),qs.UNKNOWN;switch(t){case tu.OK:return qs.OK;case tu.CANCELLED:return qs.CANCELLED;case tu.UNKNOWN:return qs.UNKNOWN;case tu.DEADLINE_EXCEEDED:return qs.DEADLINE_EXCEEDED;case tu.RESOURCE_EXHAUSTED:return qs.RESOURCE_EXHAUSTED;case tu.INTERNAL:return qs.INTERNAL;case tu.UNAVAILABLE:return qs.UNAVAILABLE;case tu.UNAUTHENTICATED:return qs.UNAUTHENTICATED;case tu.INVALID_ARGUMENT:return qs.INVALID_ARGUMENT;case tu.NOT_FOUND:return qs.NOT_FOUND;case tu.ALREADY_EXISTS:return qs.ALREADY_EXISTS;case tu.PERMISSION_DENIED:return qs.PERMISSION_DENIED;case tu.FAILED_PRECONDITION:return qs.FAILED_PRECONDITION;case tu.ABORTED:return qs.ABORTED;case tu.OUT_OF_RANGE:return qs.OUT_OF_RANGE;case tu.UNIMPLEMENTED:return qs.UNIMPLEMENTED;case tu.DATA_LOSS:return qs.DATA_LOSS;default:return Qs()}}(eu=tu||(tu={}))[eu.OK=0]="OK",eu[eu.CANCELLED=1]="CANCELLED",eu[eu.UNKNOWN=2]="UNKNOWN",eu[eu.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",eu[eu.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",eu[eu.NOT_FOUND=5]="NOT_FOUND",eu[eu.ALREADY_EXISTS=6]="ALREADY_EXISTS",eu[eu.PERMISSION_DENIED=7]="PERMISSION_DENIED",eu[eu.UNAUTHENTICATED=16]="UNAUTHENTICATED",eu[eu.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",eu[eu.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",eu[eu.ABORTED=10]="ABORTED",eu[eu.OUT_OF_RANGE=11]="OUT_OF_RANGE",eu[eu.UNIMPLEMENTED=12]="UNIMPLEMENTED",eu[eu.INTERNAL=13]="INTERNAL",eu[eu.UNAVAILABLE=14]="UNAVAILABLE",eu[eu.DATA_LOSS=15]="DATA_LOSS";var au=function(){function t(t,e){this.comparator=t,this.root=e||uu.EMPTY}return t.prototype.insert=function(e,n){return new t(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,uu.BLACK,null,null))},t.prototype.remove=function(e){return new t(this.comparator,this.root.remove(e,this.comparator).copy(null,null,uu.BLACK,null,null))},t.prototype.get=function(t){for(var e=this.root;!e.isEmpty();){var n=this.comparator(t,e.key);if(0===n)return e.value;n<0?e=e.left:n>0&&(e=e.right)}return null},t.prototype.indexOf=function(t){for(var e=0,n=this.root;!n.isEmpty();){var i=this.comparator(t,n.key);if(0===i)return e+n.left.size;i<0?n=n.left:(e+=n.left.size+1,n=n.right)}return-1},t.prototype.isEmpty=function(){return this.root.isEmpty()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),t.prototype.minKey=function(){return this.root.minKey()},t.prototype.maxKey=function(){return this.root.maxKey()},t.prototype.inorderTraversal=function(t){return this.root.inorderTraversal(t)},t.prototype.forEach=function(t){this.inorderTraversal(function(e,n){return t(e,n),!1})},t.prototype.toString=function(){var t=[];return this.inorderTraversal(function(e,n){return t.push(e+":"+n),!1}),"{"+t.join(", ")+"}"},t.prototype.reverseTraversal=function(t){return this.root.reverseTraversal(t)},t.prototype.getIterator=function(){return new cu(this.root,null,this.comparator,!1)},t.prototype.getIteratorFrom=function(t){return new cu(this.root,t,this.comparator,!1)},t.prototype.getReverseIterator=function(){return new cu(this.root,null,this.comparator,!0)},t.prototype.getReverseIteratorFrom=function(t){return new cu(this.root,t,this.comparator,!0)},t}(),cu=function(){function t(t,e,n,i){this.isReverse=i,this.nodeStack=[];for(var o=1;!t.isEmpty();)if(o=e?n(t.key,e):1,i&&(o*=-1),o<0)t=this.isReverse?t.left:t.right;else{if(0===o){this.nodeStack.push(t);break}this.nodeStack.push(t),t=this.isReverse?t.right:t.left}}return t.prototype.getNext=function(){var t=this.nodeStack.pop(),e={key:t.key,value:t.value};if(this.isReverse)for(t=t.left;!t.isEmpty();)this.nodeStack.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack.push(t),t=t.left;return e},t.prototype.hasNext=function(){return this.nodeStack.length>0},t.prototype.peek=function(){if(0===this.nodeStack.length)return null;var t=this.nodeStack[this.nodeStack.length-1];return{key:t.key,value:t.value}},t}(),uu=function(){function t(e,n,i,o,r){this.key=e,this.value=n,this.color=null!=i?i:t.RED,this.left=null!=o?o:t.EMPTY,this.right=null!=r?r:t.EMPTY,this.size=this.left.size+1+this.right.size}return t.prototype.copy=function(e,n,i,o,r){return new t(null!=e?e:this.key,null!=n?n:this.value,
1null!=i?i:this.color,null!=o?o:this.left,null!=r?r:this.right)},t.prototype.isEmpty=function(){return!1},t.prototype.inorderTraversal=function(t){return this.left.inorderTraversal(t)||t(this.key,this.value)||this.right.inorderTraversal(t)},t.prototype.reverseTraversal=function(t){return this.right.reverseTraversal(t)||t(this.key,this.value)||this.left.reverseTraversal(t)},t.prototype.min=function(){return this.left.isEmpty()?this:this.left.min()},t.prototype.minKey=function(){return this.min().key},t.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},t.prototype.insert=function(t,e,n){var i=this,o=n(t,i.key);return(i=o<0?i.copy(null,null,null,i.left.insert(t,e,n),null):0===o?i.copy(null,e,null,null,null):i.copy(null,null,null,null,i.right.insert(t,e,n))).fixUp()},t.prototype.removeMin=function(){if(this.left.isEmpty())return t.EMPTY;var e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),(e=e.copy(null,null,null,e.left.removeMin(),null)).fixUp()},t.prototype.remove=function(e,n){var i,o=this;if(n(e,o.key)<0)o.left.isEmpty()||o.left.isRed()||o.left.left.isRed()||(o=o.moveRedLeft()),o=o.copy(null,null,null,o.left.remove(e,n),null);else{if(o.left.isRed()&&(o=o.rotateRight()),o.right.isEmpty()||o.right.isRed()||o.right.left.isRed()||(o=o.moveRedRight()),0===n(e,o.key)){if(o.right.isEmpty())return t.EMPTY;i=o.right.min(),o=o.copy(i.key,i.value,null,null,o.right.removeMin())}o=o.copy(null,null,null,null,o.right.remove(e,n))}return o.fixUp()},t.prototype.isRed=function(){return this.color},t.prototype.fixUp=function(){var t=this;return t.right.isRed()&&!t.left.isRed()&&(t=t.rotateLeft()),t.left.isRed()&&t.left.left.isRed()&&(t=t.rotateRight()),t.left.isRed()&&t.right.isRed()&&(t=t.colorFlip()),t},t.prototype.moveRedLeft=function(){var t=this.colorFlip();return t.right.left.isRed()&&(t=(t=(t=t.copy(null,null,null,null,t.right.rotateRight())).rotateLeft()).colorFlip()),t},t.prototype.moveRedRight=function(){var t=this.colorFlip();return t.left.left.isRed()&&(t=(t=t.rotateRight()).colorFlip()),t},t.prototype.rotateLeft=function(){var e=this.copy(null,null,t.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)},t.prototype.rotateRight=function(){var e=this.copy(null,null,t.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)},t.prototype.colorFlip=function(){var t=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,e)},t.prototype.checkMaxDepth=function(){var t=this.check();return Math.pow(2,t)<=this.size+1},t.prototype.check=function(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw Qs();var t=this.left.check();if(t!==this.right.check())throw Qs();return t+(this.isRed()?0:1)},t}();uu.EMPTY=null,uu.RED=!0,uu.BLACK=!1,uu.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw Qs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw Qs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw Qs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw Qs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw Qs()},enumerable:!1,configurable:!0}),t.prototype.copy=function(t,e,n,i,o){return this},t.prototype.insert=function(t,e,n){return new uu(t,e)},t.prototype.remove=function(t,e){return this},t.prototype.isEmpty=function(){return!0},t.prototype.inorderTraversal=function(t){return!1},t.prototype.reverseTraversal=function(t){return!1},t.prototype.minKey=function(){return null},t.prototype.maxKey=function(){return null},t.prototype.isRed=function(){return!1},t.prototype.checkMaxDepth=function(){return!0},t.prototype.check=function(){return 0},t}());var lu=function(){function t(t){this.comparator=t,this.data=new au(this.comparator)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.minKey()},t.prototype.last=function(){return this.data.maxKey()},Object.defineProperty(t.prototype,"size",{get:function(){return this.data.size}
1,enumerable:!1,configurable:!0}),t.prototype.indexOf=function(t){return this.data.indexOf(t)},t.prototype.forEach=function(t){this.data.inorderTraversal(function(e,n){return t(e),!1})},t.prototype.forEachInRange=function(t,e){for(var n=this.data.getIteratorFrom(t[0]);n.hasNext();){var i=n.getNext();if(this.comparator(i.key,t[1])>=0)return;e(i.key)}},t.prototype.forEachWhile=function(t,e){var n;for(n=void 0!==e?this.data.getIteratorFrom(e):this.data.getIterator();n.hasNext();)if(!t(n.getNext().key))return},t.prototype.firstAfterOrEqual=function(t){var e=this.data.getIteratorFrom(t);return e.hasNext()?e.getNext().key:null},t.prototype.getIterator=function(){return new hu(this.data.getIterator())},t.prototype.getIteratorFrom=function(t){return new hu(this.data.getIteratorFrom(t))},t.prototype.add=function(t){return this.copy(this.data.remove(t).insert(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.copy(this.data.remove(t)):this},t.prototype.isEmpty=function(){return this.data.isEmpty()},t.prototype.unionWith=function(t){var e=this;return e.size<t.size&&(e=t,t=this),t.forEach(function(t){e=e.add(t)}),e},t.prototype.isEqual=function(e){if(!(e instanceof t)||this.size!==e.size)return!1;for(var n=this.data.getIterator(),i=e.data.getIterator();n.hasNext();){var o=n.getNext().key,r=i.getNext().key;if(0!==this.comparator(o,r))return!1}return!0},t.prototype.toArray=function(){var t=[];return this.forEach(function(e){t.push(e)}),t},t.prototype.toString=function(){var t=[];return this.forEach(function(e){return t.push(e)}),"SortedSet("+t.toString()+")"},t.prototype.copy=function(e){var n=new t(this.comparator);return n.data=e,n},t}(),hu=function(){function t(t){this.iter=t}return t.prototype.getNext=function(){return this.iter.getNext().key},t.prototype.hasNext=function(){return this.iter.hasNext()},t}(),du=new au(wa.comparator);function pu(){return du}var fu=new au(wa.comparator);function gu(){return fu}var mu=new au(wa.comparator);function _u(){return mu}var yu=new lu(wa.comparator);function bu(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=yu,i=0,o=t;i<o.length;i++){var r=o[i];n=n.add(r)}return n}var vu=new lu(Xs);function Cu(){return vu}var xu=function(){function t(t,e,n,i,o){this.snapshotVersion=t,this.targetChanges=e,this.targetMismatches=n,this.documentUpdates=i,this.resolvedLimboDocuments=o}return t.createSynthesizedRemoteEventForCurrentChange=function(e,n){var i=new Map;return i.set(e,wu.createSynthesizedTargetChangeForCurrentChange(e,n)),new t(ia.min(),i,Cu(),pu(),bu())},t}(),wu=function(){function t(t,e,n,i,o){this.resumeToken=t,this.current=e,this.addedDocuments=n,this.modifiedDocuments=i,this.removedDocuments=o}return t.createSynthesizedTargetChangeForCurrentChange=function(e,n){return new t(da.EMPTY_BYTE_STRING,n,bu(),bu(),bu())},t}(),Ou=function(t,e,n,i){this.v=t,this.removedTargetIds=e,this.key=n,this.P=i},Pu=function(t,e){this.targetId=t,this.V=e},Mu=function(t,e,n,i){void 0===n&&(n=da.EMPTY_BYTE_STRING),void 0===i&&(i=null),this.state=t,this.targetIds=e,this.resumeToken=n,this.cause=i},Tu=function(){function t(){this.S=0,this.D=Eu(),this.C=da.EMPTY_BYTE_STRING,this.N=!1,this.k=!0}return Object.defineProperty(t.prototype,"current",{get:function(){return this.N},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resumeToken",{get:function(){return this.C},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"F",{get:function(){return 0!==this.S},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"$",{get:function(){return this.k},enumerable:!1,configurable:!0}),t.prototype.O=function(t){t.approximateByteSize()>0&&(this.k=!0,this.C=t)},t.prototype.M=function(){var t=bu(),e=bu(),n=bu();return this.D.forEach(function(i,o){switch(o){case 0:t=t.add(i);break;case 2:e=e.add(i);break;case 1:n=n.add(i);break;default:Qs()}}),new wu(this.C,this.N,t,e,n)},t.prototype.L=function(){this.k=!1,this.D=Eu()},t.prototype.B=function(t,e){this.k=!0,this.D=this.D.insert(t,e)},t.prototype.q=function(t){this.k=!0,this.D=this.D.remove(t)},t.prototype.U=function(){this.S+=1},t.prototype.K=function(){this.S-=1},t.prototype.j=function(){this.k=!0,this.N=!0},t}(),ku=function(){function t(t){this.W=t,this.G=new Map,this.H=pu(),this.J=Su(),this.Y=new lu(Xs)}return t.prototype.X=function(t){for(var e=0,n=t.v;e<n.length;e++){var i=n[e];t.P&&t.P.isFoundDocument()?this.Z(i,t.P):this.tt(i,t.key,t.P)}for(var o=0,r=t.removedTargetIds;o<r.length;o++)this.tt(i=r[o],t.key,t.P)},t.prototype.et=function(t){var e=this;this.forEachTarget(t,function(n){var i=e.nt(n);switch(t.state){case 0:e.st(n)&&i.O(t.resumeToken);break;case 1:i.K(),i.F||i.L(),i.O(t.resumeToken);break;case 2:i.K(),i.F||e.removeTarget(n);break;case 3:e.st(n)&&(i.j(),i.O(t.resumeToken));break;case 4:e.st(n)&&(e.it(n),i.O(t.resumeToken));break;default:Qs()}})},t.prototype.forEachTarget=function(t,e){var n=this;t.targetIds.length>0?t.targetIds.forEach(e):this.G.forEach(function(t,i){n.st(i)&&e(i)})},t.prototype.rt=function(t){var e=t.targetId,n=t.V.count,i=this.ot(e);if(i){var o=i.target;if(Ba(o))if(0===n){var r=new wa(o.path);this.tt(e,r,qa.newNoDocument(r,ia.min()))}else Js(1===n);else this.ct(e)!==n&&(this.it(e),this.Y=this.Y.add(e))}},t.prototype.ut=function(t){var e=this,n=new Map;this.G.forEach(function(i,o){var r=e.ot(o);if(r){if(i.current&&Ba(r.target)){var s=new wa(r.target.path);null!==e.H.get(s)||e.at(o,s)||e.tt(o,s,qa.newNoDocument(s,t))}i.$&&(n.set(o,i.M()),i.L())}});var i=bu();this.J.forEach(function(t,n){var o=!0;
1n.forEachWhile(function(t){var n=e.ot(t);return!n||2===n.purpose||(o=!1,!1)}),o&&(i=i.add(t))});var o=new xu(t,n,this.Y,this.H,i);return this.H=pu(),this.J=Su(),this.Y=new lu(Xs),o},t.prototype.Z=function(t,e){if(this.st(t)){var n=this.at(t,e.key)?2:0;this.nt(t).B(e.key,n),this.H=this.H.insert(e.key,e),this.J=this.J.insert(e.key,this.ht(e.key).add(t))}},t.prototype.tt=function(t,e,n){if(this.st(t)){var i=this.nt(t);this.at(t,e)?i.B(e,1):i.q(e),this.J=this.J.insert(e,this.ht(e).delete(t)),n&&(this.H=this.H.insert(e,n))}},t.prototype.removeTarget=function(t){this.G.delete(t)},t.prototype.ct=function(t){var e=this.nt(t).M();return this.W.getRemoteKeysForTarget(t).size+e.addedDocuments.size-e.removedDocuments.size},t.prototype.U=function(t){this.nt(t).U()},t.prototype.nt=function(t){var e=this.G.get(t);return e||(e=new Tu,this.G.set(t,e)),e},t.prototype.ht=function(t){var e=this.J.get(t);return e||(e=new lu(Xs),this.J=this.J.insert(t,e)),e},t.prototype.st=function(t){var e=null!==this.ot(t);return e||Gs("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.ot=function(t){var e=this.G.get(t);return e&&e.F?null:this.W.lt(t)},t.prototype.it=function(t){var e=this;this.G.set(t,new Tu),this.W.getRemoteKeysForTarget(t).forEach(function(n){e.tt(t,n,null)})},t.prototype.at=function(t,e){return this.W.getRemoteKeysForTarget(t).has(e)},t}();function Su(){return new au(wa.comparator)}function Eu(){return new au(wa.comparator)}var Au={asc:"ASCENDING",desc:"DESCENDING"},Iu={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Ru=function(t,e){this.databaseId=t,this.I=e};function Nu(t,e){return t.I?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}}function Lu(t,e){return t.I?e.toBase64():e.toUint8Array()}function Du(t,e){return Nu(t,e.toTimestamp())}function Fu(t){return Js(!!t),ia.fromTimestamp((e=fa(t),new na(e.seconds,e.nanos)));var e}function Uu(t,e){return(n=t,new ca(["projects",n.projectId,"databases",n.database])).child("documents").child(e).canonicalString();var n}function Zu(t){var e=ca.fromString(t);return Js(ul(e)),e}function qu(t,e){return Uu(t.databaseId,e.path)}function Vu(t,e){var n=Zu(e);if(n.get(1)!==t.databaseId.projectId)throw new Vs(qs.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new Vs(qs.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new wa(Bu(n))}function ju(t,e){return Uu(t.databaseId,e)}function zu(t){var e=Zu(t);return 4===e.length?ca.emptyPath():Bu(e)}function Gu(t){return new ca(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function Bu(t){return Js(t.length>4&&"documents"===t.get(4)),t.popFirst(5)}function Hu(t,e,n){return{name:qu(t,e),fields:n.value.mapValue.fields}}function Yu(t,e,n){var i=Vu(t,e.name),o=Fu(e.updateTime),r=new Ua({mapValue:{fields:e.fields}}),s=qa.newFoundDocument(i,o,r);return n&&s.setHasCommittedMutations(),n?s.setHasCommittedMutations():s}function Qu(t,e){var n,i;if(e instanceof Jc)n={update:Hu(t,e.key,e.value)};else if(e instanceof nu)n={delete:qu(t,e.key)};else if(e instanceof $c)n={update:Hu(t,e.key,e.data),updateMask:cl(e.fieldMask)};else{if(!(e instanceof iu))return Qs();n={verify:qu(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map(function(t){return function(t,e){var n=e.transform;if(n instanceof Ac)return{fieldPath:e.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof Ic)return{fieldPath:e.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof Nc)return{fieldPath:e.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof Dc)return{fieldPath:e.field.canonicalString(),increment:n.A};throw Qs()}(0,t)})),e.precondition.isNone||(n.currentDocument=void 0!==(i=e.precondition).updateTime?{updateTime:
1Du(t,i.updateTime)}:void 0!==i.exists?{exists:i.exists}:Qs()),n}function Ju(t,e){var n,i=e.currentDocument?void 0!==(n=e.currentDocument).updateTime?Vc.updateTime(Fu(n.updateTime)):void 0!==n.exists?Vc.exists(n.exists):Vc.none():Vc.none(),o=e.updateTransforms?e.updateTransforms.map(function(e){return function(t,e){var n=null;"setToServerValue"in e?(Js("REQUEST_TIME"===e.setToServerValue),n=new Ac):"appendMissingElements"in e?n=new Ic(e.appendMissingElements.values||[]):"removeAllFromArray"in e?n=new Nc(e.removeAllFromArray.values||[]):"increment"in e?n=new Dc(t,e.increment):Qs();var i=la.fromServerFormat(e.fieldPath);return new Zc(i,n)}(t,e)}):[];if(e.update){var r=Vu(t,e.update.name),s=new Ua({mapValue:{fields:e.update.fields}});if(e.updateMask){var a=function(t){return new ha((t.fieldPaths||[]).map(function(t){return la.fromServerFormat(t)}))}(e.updateMask);return new $c(r,s,a,i,o)}return new Jc(r,s,i,o)}if(e.delete){var c=Vu(t,e.delete);return new nu(c,i)}if(e.verify){var u=Vu(t,e.verify);return new iu(u,i)}return Qs()}function $u(t,e){return{documents:[ju(t,e.path)]}}function Wu(t,e){var n={structuredQuery:{}},i=e.path;null!==e.collectionGroup?(n.parent=ju(t,i),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=ju(t,i.popLast()),n.structuredQuery.from=[{collectionId:i.lastSegment()}]);var o=function(t){if(0!==t.length){var e=t.map(function(t){return function(t){if("=="===t.op){if(La(t.value))return{unaryFilter:{field:ol(t.field),op:"IS_NAN"}};if(Na(t.value))return{unaryFilter:{field:ol(t.field),op:"IS_NULL"}}}else if("!="===t.op){if(La(t.value))return{unaryFilter:{field:ol(t.field),op:"IS_NOT_NAN"}};if(Na(t.value))return{unaryFilter:{field:ol(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:ol(t.field),op:il(t.op),value:t.value}}}(t)});return 1===e.length?e[0]:{compositeFilter:{op:"AND",filters:e}}}}(e.filters);o&&(n.structuredQuery.where=o);var r=function(t){if(0!==t.length)return t.map(function(t){return{field:ol((e=t).field),direction:nl(e.dir)};var e})}(e.orderBy);r&&(n.structuredQuery.orderBy=r);var s,a=(s=e.limit,t.I||va(s)?s:{value:s});return null!==a&&(n.structuredQuery.limit=a),e.startAt&&(n.structuredQuery.startAt=tl(e.startAt)),e.endAt&&(n.structuredQuery.endAt=tl(e.endAt)),n}function Ku(t){var e=zu(t.parent),n=t.structuredQuery,i=n.from?n.from.length:0,o=null;if(i>0){Js(1===i);var r=n.from[0];r.allDescendants?o=r.collectionId:e=e.child(r.collectionId)}var s=[];n.where&&(s=Xu(n.where));var a=[];n.orderBy&&(a=n.orderBy.map(function(t){return new ic(rl((e=t).field),function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction));var e}));var c,u,l=null;n.limit&&(l=va(u="object"==typeof(c=n.limit)?c.value:c)?null:u);var h=null;n.startAt&&(h=el(n.startAt));var d=null;return n.endAt&&(d=el(n.endAt)),cc(e,o,a,s,l,"F",h,d)}function Xu(t){return t?void 0!==t.unaryFilter?[al(t)]:void 0!==t.fieldFilter?[sl(t)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map(function(t){return Xu(t)}).reduce(function(t,e){return t.concat(e)}):Qs():[]}function tl(t){return{before:t.before,values:t.position}}function el(t){return new ec(t.values||[],!!t.before)}function nl(t){return Au[t]}function il(t){return Iu[t]}function ol(t){return{fieldPath:t.canonicalString()}}function rl(t){return la.fromServerFormat(t.fieldPath)}function sl(t){return Ha.create(rl(t.fieldFilter.field),function(t){switch(t){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return Qs()}}(t.fieldFilter.op),t.fieldFilter.value)}function al(t){switch(t.unaryFilter.op){case"IS_NAN":var e=rl(t.unaryFilter.field);return Ha.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=rl(t.unaryFilter.field);return Ha.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var i=rl(t.unaryFilter.field);return Ha.create(i,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var o=rl(t.unaryFilter.field);return Ha.create(o,"!=",{nullValue:"NULL_VALUE"});default:return Qs()}}function cl(t){var e=[];return t.fields.forEach(function(t){return e.push(t.canonicalString())}),{fieldPaths:e}}function ul(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}function ll(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=dl(e)),e=hl(t.get(n),e);return dl(e)}function hl(t,e){for(var n=e,i=t.length,o=0;o<i;o++){var r=t.charAt(o);switch(r){case"\0":n+="\x01\x10";break;case"\x01":n+="\x01\x11";break;default:n+=r}}return n}function dl(t){return t+"\x01\x01"}function pl(t){var e=t.length;if(Js(e>=2),2===e)return Js("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),ca.emptyPath();for(var n=e-2,i=[],o="",r=0;r<e;){var s=t.indexOf("\x01",r);switch((s<0||s>n)&&Qs(),t.charAt(s+1)){case"\x01":var a=t.substring(r,s),c=void 0;0===o.length?c=a:(c=o+=a,o=""),i.push(c);break;case"\x10":o+=t.substring(r,s),o+="\0";break;case"\x11":o+=t.substring(r,s+1);break;default:Qs()}r=s+2}return new ca(i)}var fl=function(t,e){this.seconds=t,this.nanoseconds=e},gl=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};gl.store="owner",gl.key="owner";var ml=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};
1ml.store="mutationQueues",ml.keyPath="userId";var _l=function(t,e,n,i,o){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=i,this.mutations=o};_l.store="mutations",_l.keyPath="batchId",_l.userMutationsIndex="userMutationsIndex",_l.userMutationsKeyPath=["userId","batchId"];var yl=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,ll(e)]},t.key=function(t,e,n){return[t,ll(e),n]},t}();yl.store="documentMutations",yl.PLACEHOLDER=new yl;var bl=function(t,e){this.path=t,this.readTime=e},vl=function(t,e){this.path=t,this.version=e},Cl=function(t,e,n,i,o,r){this.unknownDocument=t,this.noDocument=e,this.document=n,this.hasCommittedMutations=i,this.readTime=o,this.parentPath=r};Cl.store="remoteDocuments",Cl.readTimeIndex="readTimeIndex",Cl.readTimeIndexPath="readTime",Cl.collectionReadTimeIndex="collectionReadTimeIndex",Cl.collectionReadTimeIndexPath=["parentPath","readTime"];var xl=function(t){this.byteSize=t};xl.store="remoteDocumentGlobal",xl.key="remoteDocumentGlobalKey";var wl=function(t,e,n,i,o,r,s){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=i,this.lastListenSequenceNumber=o,this.lastLimboFreeSnapshotVersion=r,this.query=s};wl.store="targets",wl.keyPath="targetId",wl.queryTargetsIndexName="queryTargetsIndex",wl.queryTargetsKeyPath=["canonicalId","targetId"];var Ol=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};Ol.store="targetDocuments",Ol.keyPath=["targetId","path"],Ol.documentTargetsIndex="documentTargetsIndex",Ol.documentTargetsKeyPath=["path","targetId"];var Pl=function(t,e,n,i){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=i};Pl.key="targetGlobalKey",Pl.store="targetGlobal";var Ml=function(t,e){this.collectionId=t,this.parent=e};Ml.store="collectionParents",Ml.keyPath=["collectionId","parent"];var Tl=function(t,e,n,i){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=i};Tl.store="clientMetadata",Tl.keyPath="clientId";var kl=function(t,e,n){this.bundleId=t,this.createTime=e,this.version=n};kl.store="bundles",kl.keyPath="bundleId";var Sl=function(t,e,n){this.name=t,this.readTime=e,this.bundledQuery=n};Sl.store="namedQueries",Sl.keyPath="name";var El=(0,Pn.ev)((0,Pn.ev)([],(0,Pn.ev)((0,Pn.ev)([],(0,Pn.ev)((0,Pn.ev)([],(0,Pn.ev)((0,Pn.ev)([],[ml.store,_l.store,yl.store,Cl.store,wl.store,gl.store,Pl.store,Ol.store]),[Tl.store])),[xl.store])),[Ml.store])),[kl.store,Sl.store]),Al="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Il=function(){function t(){this.onCommittedListeners=[]}return t.prototype.addOnCommittedListener=function(t){this.onCommittedListeners.push(t)},t.prototype.raiseOnCommittedEvent=function(){this.onCommittedListeners.forEach(function(t){return t()})},t}(),Rl=function(){var t=this;this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})},Nl=function(){function t(t){var e=this;this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,t(function(t){e.isDone=!0,e.result=t,e.nextCallback&&e.nextCallback(t)},function(t){e.isDone=!0,e.error=t,e.catchCallback&&e.catchCallback(t)})}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var i=this;return this.callbackAttached&&Qs(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new t(function(t,o){i.nextCallback=function(n){i.wrapSuccess(e,n).next(t,o)},i.catchCallback=function(e){i.wrapFailure(n,e).next(t,o)}})},t.prototype.toPromise=function(){var t=this;return new Promise(function(e,n){t.next(e,n)})},t.prototype.wrapUserFunction=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(i){return t.reject(i)}},t.prototype.wrapSuccess=function(e,n){return e?this.wrapUserFunction(function(){return e(n)}):t.resolve(n)},t.prototype.wrapFailure=function(e,n){return e?this.wrapUserFunction(function(){return e(n)}):t.reject(n)},t.resolve=function(e){return new t(function(t,n){t(e)})},t.reject=function(e){return new t(function(t,n){n(e)})},t.waitFor=function(e){return new t(function(t,n){var i=0,o=0,r=!1;e.forEach(function(e){++i,e.next(function(){++o,r&&o===i&&t()},function(t){return n(t)})}),r=!0,o===i&&t()})},t.or=function(e){for(var n=t.resolve(!1),i=function(e){n=n.next(function(n){return n?t.resolve(n):e()})},o=0,r=e;o<r.length;o++)i(r[o]);return n},t.forEach=function(t,e){var n=this,i=[];return t.forEach(function(t,o){i.push(e.call(n,t,o))}),this.waitFor(i)},t}(),Ll=function(){function t(t,e){var n=this;this.action=t,this.transaction=e,this.aborted=!1,this.ft=new Rl,this.transaction.oncomplete=function(){n.ft.resolve()}
1,this.transaction.onabort=function(){e.error?n.ft.reject(new Ul(t,e.error)):n.ft.resolve()},this.transaction.onerror=function(e){var i=zl(e.target.error);n.ft.reject(new Ul(t,i))}}return t.open=function(e,n,i,o){try{return new t(n,e.transaction(o,i))}catch(r){throw new Ul(n,r)}},Object.defineProperty(t.prototype,"dt",{get:function(){return this.ft.promise},enumerable:!1,configurable:!0}),t.prototype.abort=function(t){t&&this.ft.reject(t),this.aborted||(Gs("SimpleDb","Aborting transaction:",t?t.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},t.prototype.store=function(t){var e=this.transaction.objectStore(t);return new ql(e)},t}(),Dl=function(){function t(e,n,i){this.name=e,this.version=n,this.wt=i,12.2===t._t((0,Mn.z$)())&&Bs("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return t.delete=function(t){return Gs("SimpleDb","Removing database:",t),Vl(window.indexedDB.deleteDatabase(t)).toPromise()},t.yt=function(){if("undefined"==typeof indexedDB)return!1;if(t.gt())return!0;var e=(0,Mn.z$)(),n=t._t(e),i=0<n&&n<10,o=t.Et(e),r=0<o&&o<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||i||r)},t.gt=function(){var t;return"undefined"!=typeof process&&"YES"===(null===(t=process.env)||void 0===t?void 0:t.Tt)},t.It=function(t,e){return t.store(e)},t._t=function(t){var e=t.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=e?e[1].split("_").slice(0,2).join("."):"-1";return Number(n)},t.Et=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.At=function(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e,n=this;return(0,Pn.Jh)(this,function(i){switch(i.label){case 0:return this.db?[3,2]:(Gs("SimpleDb","Opening database:",this.name),e=this,[4,new Promise(function(e,i){var o=indexedDB.open(n.name,n.version);o.onsuccess=function(t){e(t.target.result)},o.onblocked=function(){i(new Ul(t,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},o.onerror=function(e){var n=e.target.error;i("VersionError"===n.name?new Vs(qs.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh."):new Ul(t,n))},o.onupgradeneeded=function(t){Gs("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',t.oldVersion),n.wt.Rt(t.target.result,o.transaction,t.oldVersion,n.version).next(function(){Gs("SimpleDb","Database upgrade to version "+n.version+" complete")})}})]);case 1:e.db=i.sent(),i.label=2;case 2:return[2,(this.bt&&(this.db.onversionchange=function(t){return n.bt(t)}),this.db)]}})})},t.prototype.vt=function(t){this.bt=t,this.db&&(this.db.onversionchange=function(e){return t(e)})},t.prototype.runTransaction=function(t,e,n,i){return(0,Pn.mG)(this,void 0,void 0,function(){var o,r,s,a,c;return(0,Pn.Jh)(this,function(u){switch(u.label){case 0:o="readonly"===e,r=0,s=function(){var e,s,c,u,l;return(0,Pn.Jh)(this,function(h){switch(h.label){case 0:++r,h.label=1;case 1:return h.trys.push([1,4,,5]),[4,a.At(t)];case 2:return a.db=h.sent(),e=Ll.open(a.db,t,o?"readonly":"readwrite",n),s=i(e).catch(function(t){return e.abort(t),Nl.reject(t)}).toPromise(),c={},s.catch(function(){}),[4,e.dt];case 3:return[2,(c.value=(h.sent(),s),c)];case 4:return Gs("SimpleDb","Transaction failed with error:",(u=h.sent()).message,"Retrying:",l="FirebaseError"!==u.name&&r<3),a.close(),l?[3,5]:[2,{value:Promise.reject(u)}];case 5:return[2]}})},a=this,u.label=1;case 1:return[5,s()];case 2:if("object"==typeof(c=u.sent()))return[2,c.value];u.label=3;case 3:return[3,1];case 4:return[2]}})})},t.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},t}(),Fl=function(){function t(t){this.Pt=t,this.Vt=!1,this.St=null}return Object.defineProperty(t.prototype,"isDone",{get:function(){return this.Vt}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dt",{get:function(){return this.St},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.Pt=t},enumerable:!1,configurable:!0}),t.prototype.done=function(){this.Vt=!0},t.prototype.Ct=function(t){this.St=t},t.prototype.delete=function(){return Vl(this.Pt.delete())},t}(),Ul=function(t){function e(e,n){var i=this;return(i=t.call(this,qs.UNAVAILABLE,"IndexedDB transaction '"+e+"' failed: "+n)||this).name="IndexedDbTransactionError",i}return(0,Pn.ZT)(e,t),e}(Vs);function Zl(t){return"IndexedDbTransactionError"===t.name}var ql=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(Gs("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(Gs("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),Vl(n)},t.prototype.add=function(t){return Gs("SimpleDb","ADD",this.store.name,t,t),Vl(this.store.add(t))},t.prototype.get=function(t){var e=this;return Vl(this.store.get(t)).next(function(n){return void 0===n&&(n=null),Gs("SimpleDb","GET",e.store.name,t,n),n})},t.prototype.delete=function(t){return Gs("SimpleDb","DELETE",this.store.name,t),Vl(this.store.delete(t))},t.prototype.count=function(){return Gs("SimpleDb","COUNT",this.store.name),Vl(this.store.count())},t.prototype.Nt=function(t,e){var n=this.cursor(this.options(t,e)),i=[];return this.xt(n,function(t,e){i.push(e)}).next(function(){return i})},t.prototype.kt=function(t,e){Gs("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.Ft=!1;var i=this.cursor(n);return this.xt(i,function(t,e,n){return n.delete()})},t.prototype.$t=function(t,e){var n;e?n=t:(n={},e=t);var i=this.cursor(n);return this.xt(i,e)},t.prototype.Ot=function(t){var e=this.cursor({});return new Nl(function(n,i){e.onerror=function(t){var e=zl(t.target.error);i(e)},e.onsuccess=function(e){var i=e.target.result;i?t(i.primaryKey,i.value).next(function(t){t?i.continue():n()}):n()}})},t.prototype.xt=function(t,e){var n=[];return new Nl(function(i,o){t.onerror=function(t){o(t.target.error)},t.onsuccess=function(t){var o=t.target.result;if(o){var r=new Fl(o),s=e(o.primaryKey,o.value,r);if(s instanceof Nl){var a=s.catch(function(t){return r.done(),Nl.reject(t)});n.push(a)}r.isDone?i():null===r.Dt?o.continue():o.continue(r.Dt)}else i()}}).next(function(){return Nl.waitFor(n)})},t.prototype.options=function(t,e){var n;return void 0!==t&&("string"==typeof t?n=t:e=t),{index:n,range:e}},t.prototype.cursor=function(t){var e="next";if(t.reverse&&(e="prev"),t.index){var n=this.store.index(t.index);return t.Ft?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function Vl(t){return new Nl(function(e,n){t.onsuccess=function(t){e(t.target.result)},t.onerror=function(t){var e=zl(t.target.error);n(e)}})}var jl=!1;function zl(t){var e=Dl._t((0,Mn.z$)());if(e>=12.2&&e<13){var n="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(n)>=0){var i=new Vs("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return jl||(jl=!0,setTimeout(function(){throw i},0)),i}}return t}var Gl=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).Mt=e,i.currentSequenceNumber=n,i}return(0,Pn.ZT)(e,t),e}(Il);function Bl(t,e){var n=$s(t);return Dl.It(n.Mt,e)}var Hl=function(){function t(t,e,n,i){this.batchId=t,this.localWriteTime=e,this.baseMutations=n,this.mutations=i}return t.prototype.applyToRemoteDocument=function(t,e){for(var n=e.mutationResults,i=0;i<this.mutations.length;i++){var o=this.mutations[i];o.key.isEqual(t.key)&&Gc(o,t,n[i])}},t.prototype.applyToLocalView=function(t){for(var e=0,n=this.baseMutations;e<n.length;e++)(r=n[e]).key.isEqual(t.key)&&Bc(r,t,this.localWriteTime);for(var i=0,o=this.mutations;i<o.length;i++){var r;(r=o[i]).key.isEqual(t.key)&&Bc(r,t,this.localWriteTime)}},t.prototype.applyToLocalDocumentSet=function(t){var e=this;this.mutations.forEach(function(n){var i=t.get(n.key),o=i;e.applyToLocalView(o),i.isValidDocument()||o.convertToNoDocument(ia.min())})},t.prototype.keys=function(){return this.mutations.reduce(function(t,e){return t.add(e.key)},bu())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&ta(this.mutations,t.mutations,function(t,e){return Yc(t,e)})&&ta(this.baseMutations,t.baseMutations,function(t,e){return Yc(t,e)})},t}(),Yl=function(){function t(t,e,n,i){this.batch=t,this.commitVersion=e,this.mutationResults=n,this.docVersions=i}return t.from=function(e,n,i){Js(e.mutations.length===i.length);for(var o=_u(),r=e.mutations,s=0;s<r.length;s++)o=o.insert(r[s].key,i[s].version);return new t(e,n,i,o)},t}(),Ql=function(){function t(t,e,n,i,o,r,s){void 0===o&&(o=ia.min()),void 0===r&&(r=ia.min()),void 0===s&&(s=da.E
1MPTY_BYTE_STRING),this.target=t,this.targetId=e,this.purpose=n,this.sequenceNumber=i,this.snapshotVersion=o,this.lastLimboFreeSnapshotVersion=r,this.resumeToken=s}return t.prototype.withSequenceNumber=function(e){return new t(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)},t.prototype.withResumeToken=function(e,n){return new t(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e)},t.prototype.withLastLimboFreeSnapshotVersion=function(e){return new t(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken)},t}(),Jl=function(t){this.Lt=t};function $l(t,e){if(e.document)return Yu(t.Lt,e.document,!!e.hasCommittedMutations);if(e.noDocument){var n=wa.fromSegments(e.noDocument.path),i=eh(e.noDocument.readTime),o=qa.newNoDocument(n,i);return e.hasCommittedMutations?o.setHasCommittedMutations():o}if(e.unknownDocument){var r=wa.fromSegments(e.unknownDocument.path);return i=eh(e.unknownDocument.version),qa.newUnknownDocument(r,i)}return Qs()}function Wl(t,e,n){var i,o,r=Kl(n),s=e.key.path.popLast().toArray();if(e.isFoundDocument()){var a={name:qu(i=t.Lt,(o=e).key),fields:o.data.value.mapValue.fields,updateTime:Nu(i,o.version.toTimestamp())},c=e.hasCommittedMutations;return new Cl(null,null,a,c,r,s)}if(e.isNoDocument()){var u=e.key.path.toArray(),l=th(e.version);return c=e.hasCommittedMutations,new Cl(null,new bl(u,l),null,c,r,s)}if(e.isUnknownDocument()){var h=e.key.path.toArray(),d=th(e.version);return new Cl(new vl(h,d),null,null,!0,r,s)}return Qs()}function Kl(t){var e=t.toTimestamp();return[e.seconds,e.nanoseconds]}function Xl(t){var e=new na(t[0],t[1]);return ia.fromTimestamp(e)}function th(t){var e=t.toTimestamp();return new fl(e.seconds,e.nanoseconds)}function eh(t){var e=new na(t.seconds,t.nanoseconds);return ia.fromTimestamp(e)}function nh(t,e){for(var n=(e.baseMutations||[]).map(function(e){return Ju(t.Lt,e)}),i=0;i<e.mutations.length-1;++i)i+1<e.mutations.length&&void 0!==e.mutations[i+1].transform&&(e.mutations[i].updateTransforms=e.mutations[i+1].transform.fieldTransforms,e.mutations.splice(i+1,1),++i);var o=e.mutations.map(function(e){return Ju(t.Lt,e)}),r=na.fromMillis(e.localWriteTimeMs);return new Hl(e.batchId,r,n,o)}function ih(t){var e,n,i=eh(t.readTime),o=void 0!==t.lastLimboFreeSnapshotVersion?eh(t.lastLimboFreeSnapshotVersion):ia.min();return void 0!==t.query.documents?(Js(1===(n=t.query).documents.length),e=mc(uc(zu(n.documents[0])))):e=mc(Ku(t.query)),new Ql(e,t.targetId,0,t.lastListenSequenceNumber,i,o,da.fromBase64String(t.resumeToken))}function oh(t,e){var n,i=th(e.snapshotVersion),o=th(e.lastLimboFreeSnapshotVersion);n=Ba(e.target)?$u(t.Lt,e.target):Wu(t.Lt,e.target);var r=e.resumeToken.toBase64();return new wl(e.targetId,za(e.target),i,r,e.sequenceNumber,o,n)}function rh(t){var e=Ku({parent:t.parent,structuredQuery:t.structuredQuery});return"LAST"===t.limitType?_c(e,e.limit,"L"):e}var sh=function(){function t(){}return t.prototype.getBundleMetadata=function(t,e){return ah(t).get(e).next(function(t){if(t)return{id:(e=t).bundleId,createTime:eh(e.createTime),version:e.version};var e})},t.prototype.saveBundleMetadata=function(t,e){return ah(t).put({bundleId:(n=e).id,createTime:th(Fu(n.createTime)),version:n.version});var n},t.prototype.getNamedQuery=function(t,e){return ch(t).get(e).next(function(t){if(t)return{name:(e=t).name,query:rh(e.bundledQuery),readTime:eh(e.readTime)};var e})},t.prototype.saveNamedQuery=function(t,e){return ch(t).put({name:(n=e).name,readTime:th(Fu(n.readTime)),bundledQuery:n.bundledQuery});var n},t}();function ah(t){return Bl(t,kl.store)}function ch(t){return Bl(t,Sl.store)}var uh=function(){function t(){this.Bt=new lh}return t.prototype.addToCollectionParentIndex=function(t,e){return this.Bt.add(e),Nl.resolve()},t.prototype.getCollectionParents=function(t,e){return Nl.resolve(this.Bt.getEntries(e))},t}(),lh=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t.lastSegment(),n=t.popLast(),i=this.index[e]||new lu(ca.comparator),o=!i.has(n);return this.index[e]=i.add(n),o},t.prototype.has=function(t){var e=t.lastSegment(),n=t.popLast(),i=this.index[e];return i&&i.has(n)},t.prototype.getEntries=function(t){return(this.index[t]||new lu(ca.comparator)).toArray()},t}(),hh=function(){function t(){this.qt=new lh}return t.prototype.addToCollectionParentIndex=function(t,e){var n=this;if(!this.qt.has(e)){var i=e.lastSegment(),o=e.popLast();t.addOnCommittedListener(function(){n.qt.add(e)});var r={collectionId:i,parent:ll(o)};return dh(t).put(r)}return Nl.resolve()},t.prototype.getCollectionParents=function(t,e){var n=[],i=IDBKeyRange.bound([e,""],[ea(e),""],!1,!0);return dh(t).Nt(i).next(function(t){for(var i=0,o=t;i<o.length;i++){var r=o[i];if(r.collectionId!==e)break;n.push(pl(r.parent))}return n})},t}();function dh(t){return Bl(t,Ml.store)}var ph={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},fh=function(){function t(t,e,n){this.cacheSizeCollectionThreshold=t,this.percentileToCollect=e,this.maximumSequenceNumbersToCollect=n}return t.withCacheSize=function(e){return new t(e,t.DEFAULT_COLLECTION_PE
1RCENTILE,t.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)},t}();function gh(t,e,n){var i=t.store(_l.store),o=t.store(yl.store),r=[],s=IDBKeyRange.only(n.batchId),a=0,c=i.$t({range:s},function(t,e,n){return a++,n.delete()});r.push(c.next(function(){Js(1===a)}));for(var u=[],l=0,h=n.mutations;l<h.length;l++){var d=h[l],p=yl.key(e,d.key.path,n.batchId);r.push(o.delete(p)),u.push(d.key)}return Nl.waitFor(r).next(function(){return u})}function mh(t){if(!t)return 0;var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw Qs();e=t.noDocument}return JSON.stringify(e).length}fh.DEFAULT_COLLECTION_PERCENTILE=10,fh.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,fh.DEFAULT=new fh(41943040,fh.DEFAULT_COLLECTION_PERCENTILE,fh.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),fh.DISABLED=new fh(-1,0,0);var _h=function(){function t(t,e,n,i){this.userId=t,this.R=e,this.Ut=n,this.referenceDelegate=i,this.Kt={}}return t.Qt=function(e,n,i,o){return Js(""!==e.uid),new t(e.isAuthenticated()?e.uid:"",n,i,o)},t.prototype.checkEmpty=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return bh(t).$t({index:_l.userMutationsIndex,range:n},function(t,n,i){e=!1,i.done()}).next(function(){return e})},t.prototype.addMutationBatch=function(t,e,n,i){var o=this,r=vh(t),s=bh(t);return s.add({}).next(function(a){Js("number"==typeof a);for(var c=new Hl(a,e,n,i),u=function(t,e,n){var i=n.baseMutations.map(function(e){return Qu(t.Lt,e)}),o=n.mutations.map(function(e){return Qu(t.Lt,e)});return new _l(e,n.batchId,n.localWriteTime.toMillis(),i,o)}(o.R,o.userId,c),l=[],h=new lu(function(t,e){return Xs(t.canonicalString(),e.canonicalString())}),d=0,p=i;d<p.length;d++){var f=p[d],g=yl.key(o.userId,f.key.path,a);h=h.add(f.key.path.popLast()),l.push(s.put(u)),l.push(r.put(g,yl.PLACEHOLDER))}return h.forEach(function(e){l.push(o.Ut.addToCollectionParentIndex(t,e))}),t.addOnCommittedListener(function(){o.Kt[a]=c.keys()}),Nl.waitFor(l).next(function(){return c})})},t.prototype.lookupMutationBatch=function(t,e){var n=this;return bh(t).get(e).next(function(t){return t?(Js(t.userId===n.userId),nh(n.R,t)):null})},t.prototype.jt=function(t,e){var n=this;return this.Kt[e]?Nl.resolve(this.Kt[e]):this.lookupMutationBatch(t,e).next(function(t){if(t){var i=t.keys();return n.Kt[e]=i,i}return null})},t.prototype.getNextMutationBatchAfterBatchId=function(t,e){var n=this,i=e+1,o=IDBKeyRange.lowerBound([this.userId,i]),r=null;return bh(t).$t({index:_l.userMutationsIndex,range:o},function(t,e,o){e.userId===n.userId&&(Js(e.batchId>=i),r=nh(n.R,e)),o.done()}).next(function(){return r})},t.prototype.getHighestUnacknowledgedBatchId=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return bh(t).$t({index:_l.userMutationsIndex,range:e,reverse:!0},function(t,e,i){n=e.batchId,i.done()}).next(function(){return n})},t.prototype.getAllMutationBatches=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return bh(t).Nt(_l.userMutationsIndex,n).next(function(t){return t.map(function(t){return nh(e.R,t)})})},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,i=yl.prefixForPath(this.userId,e.path),o=IDBKeyRange.lowerBound(i),r=[];return vh(t).$t({range:o},function(i,o,s){var a=i[0],c=i[2],u=pl(i[1]);if(a===n.userId&&e.path.isEqual(u))return bh(t).get(c).next(function(t){if(!t)throw Qs();Js(t.userId===n.userId),r.push(nh(n.R,t))});s.done()}).next(function(){return r})},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,i=new lu(Xs),o=[];return e.forEach(function(e){var r=yl.prefixForPath(n.userId,e.path),s=IDBKeyRange.lowerBound(r),a=vh(t).$t({range:s},function(t,o,r){var s=t[0],a=t[2],c=pl(t[1]);s===n.userId&&e.path.isEqual(c)?i=i.add(a):r.done()});o.push(a)}),Nl.waitFor(o).next(function(){return n.Wt(t,i)})},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=this,i=e.path,o=i.length+1,r=yl.prefixForPath(this.userId,i),s=IDBKeyRange.lowerBound(r),a=new lu(Xs);return vh(t).$t({range:s},function(t,e,r){var s=t[0],c=t[2],u=pl(t[1]);s===n.userId&&i.isPrefixOf(u)?u.length===o&&(a=a.add(c)):r.done()}).next(function(){return n.Wt(t,a)})},t.prototype.Wt=function(t,e){var n=this,i=[],o=[];return e.forEach(function(e){o.push(bh(t).get(e).next(function(t){if(null===t)throw Qs();Js(t.userId===n.userId),i.push(nh(n.R,t))}))}),Nl.waitFor(o).next(function(){return i})},t.prototype.removeMutationBatch=function(t,e){var n=this;return gh(t.Mt,this.userId,e).next(function(i){return t.addOnCommittedListener(function(){n.Gt(e.batchId)}),Nl.forEach(i,function(e){return n.referenceDelegate.markPotentiallyOrphaned(t,e)})})},t.prototype.Gt=function(t){delete this.Kt[t]},t.prototype.performConsistencyCheck=function(t){var e=this;return this.checkEmpty(t).next(function(n){if(!n)return Nl.resolve();
1var i=IDBKeyRange.lowerBound(yl.prefixForUser(e.userId)),o=[];return vh(t).$t({range:i},function(t,n,i){if(t[0]===e.userId){var r=pl(t[1]);o.push(r)}else i.done()}).next(function(){Js(0===o.length)})})},t.prototype.containsKey=function(t,e){return yh(t,this.userId,e)},t.prototype.zt=function(t){var e=this;return Ch(t).get(this.userId).next(function(t){return t||new ml(e.userId,-1,"")})},t}();function yh(t,e,n){var i=yl.prefixForPath(e,n.path),o=i[1],r=IDBKeyRange.lowerBound(i),s=!1;return vh(t).$t({range:r,Ft:!0},function(t,n,i){t[0]===e&&t[1]===o&&(s=!0),i.done()}).next(function(){return s})}function bh(t){return Bl(t,_l.store)}function vh(t){return Bl(t,yl.store)}function Ch(t){return Bl(t,ml.store)}var xh=function(){function t(t){this.Ht=t}return t.prototype.next=function(){return this.Ht+=2,this.Ht},t.Jt=function(){return new t(0)},t.Yt=function(){return new t(-1)},t}(),wh=function(){function t(t,e){this.referenceDelegate=t,this.R=e}return t.prototype.allocateTargetId=function(t){var e=this;return this.Xt(t).next(function(n){var i=new xh(n.highestTargetId);return n.highestTargetId=i.next(),e.Zt(t,n).next(function(){return n.highestTargetId})})},t.prototype.getLastRemoteSnapshotVersion=function(t){return this.Xt(t).next(function(t){return ia.fromTimestamp(new na(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))})},t.prototype.getHighestSequenceNumber=function(t){return this.Xt(t).next(function(t){return t.highestListenSequenceNumber})},t.prototype.setTargetsMetadata=function(t,e,n){var i=this;return this.Xt(t).next(function(o){return o.highestListenSequenceNumber=e,n&&(o.lastRemoteSnapshotVersion=n.toTimestamp()),e>o.highestListenSequenceNumber&&(o.highestListenSequenceNumber=e),i.Zt(t,o)})},t.prototype.addTargetData=function(t,e){var n=this;return this.te(t,e).next(function(){return n.Xt(t).next(function(i){return i.targetCount+=1,n.ee(e,i),n.Zt(t,i)})})},t.prototype.updateTargetData=function(t,e){return this.te(t,e)},t.prototype.removeTargetData=function(t,e){var n=this;return this.removeMatchingKeysForTargetId(t,e.targetId).next(function(){return Oh(t).delete(e.targetId)}).next(function(){return n.Xt(t)}).next(function(e){return Js(e.targetCount>0),e.targetCount-=1,n.Zt(t,e)})},t.prototype.removeTargets=function(t,e,n){var i=this,o=0,r=[];return Oh(t).$t(function(s,a){var c=ih(a);c.sequenceNumber<=e&&null===n.get(c.targetId)&&(o++,r.push(i.removeTargetData(t,c)))}).next(function(){return Nl.waitFor(r)}).next(function(){return o})},t.prototype.forEachTarget=function(t,e){return Oh(t).$t(function(t,n){var i=ih(n);e(i)})},t.prototype.Xt=function(t){return Ph(t).get(Pl.key).next(function(t){return Js(null!==t),t})},t.prototype.Zt=function(t,e){return Ph(t).put(Pl.key,e)},t.prototype.te=function(t,e){return Oh(t).put(oh(this.R,e))},t.prototype.ee=function(t,e){var n=!1;return t.targetId>e.highestTargetId&&(e.highestTargetId=t.targetId,n=!0),t.sequenceNumber>e.highestListenSequenceNumber&&(e.highestListenSequenceNumber=t.sequenceNumber,n=!0),n},t.prototype.getTargetCount=function(t){return this.Xt(t).next(function(t){return t.targetCount})},t.prototype.getTargetData=function(t,e){var n=za(e),i=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),o=null;return Oh(t).$t({range:i,index:wl.queryTargetsIndexName},function(t,n,i){var r=ih(n);Ga(e,r.target)&&(o=r,i.done())}).next(function(){return o})},t.prototype.addMatchingKeys=function(t,e,n){var i=this,o=[],r=Mh(t);return e.forEach(function(e){var s=ll(e.path);o.push(r.put(new Ol(n,s))),o.push(i.referenceDelegate.addReference(t,n,e))}),Nl.waitFor(o)},t.prototype.removeMatchingKeys=function(t,e,n){var i=this,o=Mh(t);return Nl.forEach(e,function(e){var r=ll(e.path);return Nl.waitFor([o.delete([n,r]),i.referenceDelegate.removeReference(t,n,e)])})},t.prototype.removeMatchingKeysForTargetId=function(t,e){var n=Mh(t),i=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(i)},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),i=Mh(t),o=bu();return i.$t({range:n,Ft:!0},function(t,e,n){var i=pl(t[1]),r=new wa(i);o=o.add(r)}).next(function(){return o}
1)},t.prototype.containsKey=function(t,e){var n=ll(e.path),i=IDBKeyRange.bound([n],[ea(n)],!1,!0),o=0;return Mh(t).$t({index:Ol.documentTargetsIndex,Ft:!0,range:i},function(t,e,n){0!==t[0]&&(o++,n.done())}).next(function(){return o>0})},t.prototype.lt=function(t,e){return Oh(t).get(e).next(function(t){return t?ih(t):null})},t}();function Oh(t){return Bl(t,wl.store)}function Ph(t){return Bl(t,Pl.store)}function Mh(t){return Bl(t,Ol.store)}function Th(t){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(e){if(t.code!==qs.FAILED_PRECONDITION||t.message!==Al)throw t;return Gs("LocalStore","Unexpectedly lost primary lease"),[2]})})}function kh(t,e){var n=t[1],i=e[1],o=Xs(t[0],e[0]);return 0===o?Xs(n,i):o}var Sh=function(){function t(t){this.ne=t,this.buffer=new lu(kh),this.se=0}return t.prototype.ie=function(){return++this.se},t.prototype.re=function(t){var e=[t,this.ie()];if(this.buffer.size<this.ne)this.buffer=this.buffer.add(e);else{var n=this.buffer.last();kh(e,n)<0&&(this.buffer=this.buffer.delete(n).add(e))}},Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!1,configurable:!0}),t}(),Eh=function(){function t(t,e){this.garbageCollector=t,this.asyncQueue=e,this.oe=!1,this.ce=null}return t.prototype.start=function(t){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.ue(t)},t.prototype.stop=function(){this.ce&&(this.ce.cancel(),this.ce=null)},Object.defineProperty(t.prototype,"started",{get:function(){return null!==this.ce},enumerable:!1,configurable:!0}),t.prototype.ue=function(t){var e=this,n=this.oe?3e5:6e4;Gs("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.ce=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",n,function(){return(0,Pn.mG)(e,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:this.ce=null,this.oe=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,t.collectGarbage(this.garbageCollector)];case 2:return n.sent(),[3,7];case 3:return Zl(e=n.sent())?(Gs("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e),[3,6]):[3,4];case 4:return[4,Th(e)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.ue(t)];case 8:return n.sent(),[2]}})})})},t}(),Ah=function(){function t(t,e){this.ae=t,this.params=e}return t.prototype.calculateTargetCount=function(t,e){return this.ae.he(t).next(function(t){return Math.floor(e/100*t)})},t.prototype.nthSequenceNumber=function(t,e){var n=this;if(0===e)return Nl.resolve(Zs.o);var i=new Sh(e);return this.ae.forEachTarget(t,function(t){return i.re(t.sequenceNumber)}).next(function(){return n.ae.le(t,function(t){return i.re(t)})}).next(function(){return i.maxValue})},t.prototype.removeTargets=function(t,e,n){return this.ae.removeTargets(t,e,n)},t.prototype.removeOrphanedDocuments=function(t,e){return this.ae.removeOrphanedDocuments(t,e)},t.prototype.collect=function(t,e){var n=this;return-1===this.params.cacheSizeCollectionThreshold?(Gs("LruGarbageCollector","Garbage collection skipped; disabled"),Nl.resolve(ph)):this.getCacheSize(t).next(function(i){return i<n.params.cacheSizeCollectionThreshold?(Gs("LruGarbageCollector","Garbage collection skipped; Cache size "+i+" is lower than threshold "+n.params.cacheSizeCollectionThreshold),ph):n.fe(t,e)})},t.prototype.getCacheSize=function(t){return this.ae.getCacheSize(t)},t.prototype.fe=function(t,e){var n,i,o,r,s,a,c,u=this,l=Date.now();return this.calculateTargetCount(t,this.params.percentileToCollect).next(function(e){return e>u.params.maximumSequenceNumbersToCollect?(Gs("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+u.params.maximumSequenceNumbersToCollect+" from "+e),i=u.params.maximumSequenceNumbersToCollect):i=e,r=Date.now(),u.nthSequenceNumber(t,i)}).next(function(i){return n=i,s=Date.now(),u.removeTargets(t,n,e)}).next(function(e){return o=e,a=Date.now(),u.removeOrphanedDocuments(t,n)}).next(function(t){return c=Date.now(),zs()<=Tn.in.DEBUG&&Gs("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(r-l)+"ms\n\tDetermined least recently used "+i+" in "+(s-r)+"ms\n\tRemoved "+o+" targets in "+(a-s)+"ms\n\tRemoved "+t+" documents in "+(c-a)+"ms\nTotal Duration: "+(c-l)+"ms"),Nl.resolve({didRun:!0,sequenceNumbersCollected:i,targetsRemoved:o,documentsRemoved:t})})},t}(),Ih=function(){function t(t,e){this.db=t,this.garbageCollector=new Ah(this,e)}return t.prototype.he=function(t){var e=this.de(t);return this.db.getTargetCache().getTargetCount(t).next(function(t){return e.next(function(e){return t+e})})},t.prototype.de=function(t){var e=0;return this.le(t,function(t){e++}).next(function(){return e})},t.prototype.forEachTarget=function(t,e){return this.db.getTargetCache().forEac
1hTarget(t,e)},t.prototype.le=function(t,e){return this.we(t,function(t,n){return e(n)})},t.prototype.addReference=function(t,e,n){return Rh(t,n)},t.prototype.removeReference=function(t,e,n){return Rh(t,n)},t.prototype.removeTargets=function(t,e,n){return this.db.getTargetCache().removeTargets(t,e,n)},t.prototype.markPotentiallyOrphaned=function(t,e){return Rh(t,e)},t.prototype._e=function(t,e){return i=e,o=!1,Ch(n=t).Ot(function(t){return yh(n,t,i).next(function(t){return t&&(o=!0),Nl.resolve(!t)})}).next(function(){return o});var n,i,o},t.prototype.removeOrphanedDocuments=function(t,e){var n=this,i=this.db.getRemoteDocumentCache().newChangeBuffer(),o=[],r=0;return this.we(t,function(s,a){if(a<=e){var c=n._e(t,s).next(function(e){if(!e)return r++,i.getEntry(t,s).next(function(){return i.removeEntry(s),Mh(t).delete([0,ll(s.path)])})});o.push(c)}}).next(function(){return Nl.waitFor(o)}).next(function(){return i.apply(t)}).next(function(){return r})},t.prototype.removeTarget=function(t,e){var n=e.withSequenceNumber(t.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(t,n)},t.prototype.updateLimboDocument=function(t,e){return Rh(t,e)},t.prototype.we=function(t,e){var n,i=Mh(t),o=Zs.o;return i.$t({index:Ol.documentTargetsIndex},function(t,i){var r=i.path,s=i.sequenceNumber;0===t[0]?(o!==Zs.o&&e(new wa(pl(n)),o),o=s,n=r):o=Zs.o}).next(function(){o!==Zs.o&&e(new wa(pl(n)),o)})},t.prototype.getCacheSize=function(t){return this.db.getRemoteDocumentCache().getSize(t)},t}();function Rh(t,e){return Mh(t).put((n=t.currentSequenceNumber,new Ol(0,ll(e.path),n)));var n}var Nh=function(){function t(t,e){this.mapKeyFn=t,this.equalsFn=e,this.inner={}}return t.prototype.get=function(t){var e=this.mapKeyFn(t),n=this.inner[e];if(void 0!==n)for(var i=0,o=n;i<o.length;i++){var r=o[i],s=r[1];if(this.equalsFn(r[0],t))return s}},t.prototype.has=function(t){return void 0!==this.get(t)},t.prototype.set=function(t,e){var n=this.mapKeyFn(t),i=this.inner[n];if(void 0!==i){for(var o=0;o<i.length;o++)if(this.equalsFn(i[o][0],t))return void(i[o]=[t,e]);i.push([t,e])}else this.inner[n]=[[t,e]]},t.prototype.delete=function(t){var e=this.mapKeyFn(t),n=this.inner[e];if(void 0===n)return!1;for(var i=0;i<n.length;i++)if(this.equalsFn(n[i][0],t))return 1===n.length?delete this.inner[e]:n.splice(i,1),!0;return!1},t.prototype.forEach=function(t){ra(this.inner,function(e,n){for(var i=0,o=n;i<o.length;i++){var r=o[i];t(r[0],r[1])}})},t.prototype.isEmpty=function(){return sa(this.inner)},t}(),Lh=function(){function t(){this.changes=new Nh(function(t){return t.toString()},function(t,e){return t.isEqual(e)}),this.changesApplied=!1}return t.prototype.getReadTime=function(t){var e=this.changes.get(t);return e?e.readTime:ia.min()},t.prototype.addEntry=function(t,e){this.assertNotApplied(),this.changes.set(t.key,{document:t,readTime:e})},t.prototype.removeEntry=function(t,e){void 0===e&&(e=null),this.assertNotApplied(),this.changes.set(t,{document:qa.newInvalidDocument(t),readTime:e})},t.prototype.getEntry=function(t,e){this.assertNotApplied();var n=this.changes.get(e);return void 0!==n?Nl.resolve(n.document):this.getFromCache(t,e)},t.prototype.getEntries=function(t,e){return this.getAllFromCache(t,e)},t.prototype.apply=function(t){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(t)},t.prototype.assertNotApplied=function(){},t}(),Dh=function(){function t(t,e){this.R=t,this.Ut=e}return t.prototype.addEntry=function(t,e,n){return Zh(t).put(qh(e),n)},t.prototype.removeEntry=function(t,e){var n=Zh(t),i=qh(e);return n.delete(i)},t.prototype.updateMetadata=function(t,e){var n=this;return this.getMetadata(t).next(function(i){return i.byteSize+=e,n.me(t,i)})},t.prototype.getEntry=function(t,e){var n=this;return Zh(t).get(qh(e)).next(function(t){return n.ye(e,t)})},t.prototype.ge=function(t,e){var n=this;return Zh(t).get(qh(e)).next(function(t){return{document:n.ye(e,t),size:mh(t)}})},t.prototype.getEntries=function(t,e){var n=this,i=pu();return this.pe(t,e,function(t,e){var o=n.ye(t,e);i=i.insert(t,o)}).next(function(){return i})},t.prototype.Ee=function(t,e){var n=this,i=pu(),o=new au(wa.comparator);return this.pe(t,e,function(t,e){var r=n.ye(t,e);i=i.insert(t,r),o=o.insert(t,mh(e))}).next(function(){return{documents:i,Te:o}})},t.prototype.pe=function(t,e,n){if(e.isEmpty())return Nl.resolve();var i=IDBKeyRange.bound(e.first().path.toArray(),e.last().path.toArray()),o=e.getIterator(),r=o.getNext();return Zh(t).$t({range:i}
1,function(t,e,i){for(var s=wa.fromSegments(t);r&&wa.comparator(r,s)<0;)n(r,null),r=o.getNext();r&&r.isEqual(s)&&(n(r,e),r=o.hasNext()?o.getNext():null),r?i.Ct(r.path.toArray()):i.done()}).next(function(){for(;r;)n(r,null),r=o.hasNext()?o.getNext():null})},t.prototype.getDocumentsMatchingQuery=function(t,e,n){var i=this,o=pu(),r=e.path.length+1,s={};if(n.isEqual(ia.min())){var a=e.path.toArray();s.range=IDBKeyRange.lowerBound(a)}else{var c=e.path.toArray(),u=Kl(n);s.range=IDBKeyRange.lowerBound([c,u],!0),s.index=Cl.collectionReadTimeIndex}return Zh(t).$t(s,function(t,n,s){if(t.length===r){var a=$l(i.R,n);e.path.isPrefixOf(a.key.path)?Cc(e,a)&&(o=o.insert(a.key,a)):s.done()}}).next(function(){return o})},t.prototype.newChangeBuffer=function(t){return new Fh(this,!!t&&t.trackRemovals)},t.prototype.getSize=function(t){return this.getMetadata(t).next(function(t){return t.byteSize})},t.prototype.getMetadata=function(t){return Uh(t).get(xl.key).next(function(t){return Js(!!t),t})},t.prototype.me=function(t,e){return Uh(t).put(xl.key,e)},t.prototype.ye=function(t,e){if(e){var n=$l(this.R,e);if(!n.isNoDocument()||!n.version.isEqual(ia.min()))return n}return qa.newInvalidDocument(t)},t}(),Fh=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).Ie=e,i.trackRemovals=n,i.Ae=new Nh(function(t){return t.toString()},function(t,e){return t.isEqual(e)}),i}return(0,Pn.ZT)(e,t),e.prototype.applyChanges=function(t){var e=this,n=[],i=0,o=new lu(function(t,e){return Xs(t.canonicalString(),e.canonicalString())});
1return this.changes.forEach(function(r,s){var a=e.Ae.get(r);if(s.document.isValidDocument()){var c=Wl(e.Ie.R,s.document,e.getReadTime(r));o=o.add(r.path.popLast());var u=mh(c);i+=u-a,n.push(e.Ie.addEntry(t,r,c))}else if(i-=a,e.trackRemovals){var l=Wl(e.Ie.R,qa.newNoDocument(r,ia.min()),e.getReadTime(r));n.push(e.Ie.addEntry(t,r,l))}else n.push(e.Ie.removeEntry(t,r))}),o.forEach(function(i){n.push(e.Ie.Ut.addToCollectionParentIndex(t,i))}),n.push(this.Ie.updateMetadata(t,i)),Nl.waitFor(n)},e.prototype.getFromCache=function(t,e){var n=this;return this.Ie.ge(t,e).next(function(t){return n.Ae.set(e,t.size),t.document})},e.prototype.getAllFromCache=function(t,e){var n=this;return this.Ie.Ee(t,e).next(function(t){var e=t.documents;return t.Te.forEach(function(t,e){n.Ae.set(t,e)}),e})},e}(Lh);function Uh(t){return Bl(t,xl.store)}function Zh(t){return Bl(t,Cl.store)}function qh(t){return t.path.toArray()}var Vh=function(){function t(t){this.R=t}return t.prototype.Rt=function(t,e,n,i){var o=this;Js(n<i&&n>=0&&i<=11);var r,s=new Ll("createOrUpgrade",e);n<1&&i>=1&&(t.createObjectStore(gl.store),(r=t).createObjectStore(ml.store,{keyPath:ml.keyPath}),r.createObjectStore(_l.store,{keyPath:_l.keyPath,autoIncrement:!0}).createIndex(_l.userMutationsIndex,_l.userMutationsKeyPath,{unique:!0}),r.createObjectStore(yl.store),jh(t),function(t){t.createObjectStore(Cl.store)}(t));var a=Nl.resolve();return n<3&&i>=3&&(0!==n&&(function(t){t.deleteObjectStore(Ol.store),t.deleteObjectStore(wl.store),t.deleteObjectStore(Pl.store)}(t),jh(t)),a=a.next(function(){return function(t){var e=t.store(Pl.store),n=new Pl(0,0,ia.min().toTimestamp(),0);return e.put(Pl.key,n)}(s)})),n<4&&i>=4&&(0!==n&&(a=a.next(function(){return function(t,e){return e.store(_l.store).Nt().next(function(n){t.deleteObjectStore(_l.store),t.createObjectStore(_l.store,{keyPath:_l.keyPath,autoIncrement:!0}).createIndex(_l.userMutationsIndex,_l.userMutationsKeyPath,{unique:!0});var i=e.store(_l.store),o=n.map(function(t){return i.put(t)});return Nl.waitFor(o)})}(t,s)})),a=a.next(function(){!function(t){t.createObjectStore(Tl.store,{keyPath:Tl.keyPath})}(t)})),n<5&&i>=5&&(a=a.next(function(){return o.Re(s)})),n<6&&i>=6&&(a=a.next(function(){return function(t){t.createObjectStore(xl.store)}(t),o.be(s)})),n<7&&i>=7&&(a=a.next(function(){return o.ve(s)})),n<8&&i>=8&&(a=a.next(function(){return o.Pe(t,s)})),n<9&&i>=9&&(a=a.next(function(){(function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")})(t),function(t){var e=t.objectStore(Cl.store);e.createIndex(Cl.readTimeIndex,Cl.readTimeIndexPath,{unique:!1}),e.createIndex(Cl.collectionReadTimeIndex,Cl.collectionReadTimeIndexPath,{unique:!1})}(e)})),n<10&&i>=10&&(a=a.next(function(){return o.Ve(s)})),n<11&&i>=11&&(a=a.next(function(){(function(t){t.createObjectStore(kl.store,{keyPath:kl.keyPath})})(t),function(t){t.createObjectStore(Sl.store,{keyPath:Sl.keyPath})}(t)})),a},t.prototype.be=function(t){var e=0;return t.store(Cl.store).$t(function(t,n){e+=mh(n)}).next(function(){var n=new xl(e);return t.store(xl.store).put(xl.key,n)})},t.prototype.Re=function(t){var e=this,n=t.store(ml.store),i=t.store(_l.store);return n.Nt().next(function(n){return Nl.forEach(n,function(n){var o=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return i.Nt(_l.userMutationsIndex,o).next(function(i){return Nl.forEach(i,function(i){Js(i.userId===n.userId);var o=nh(e.R,i);return gh(t,n.userId,o).next(function(){})})})})})},t.prototype.ve=function(t){var e=t.store(Ol.store),n=t.store(Cl.store);return t.store(Pl.store).get(Pl.key).next(function(t){var i=[];return n.$t(function(n,o){var r=new ca(n),s=[0,ll(r)];i.push(e.get(s).next(function(n){return n?Nl.resolve():e.put(new Ol(0,ll(r),t.highestListenSequenceNumber))}))}).next(function(){return Nl.waitFor(i)})})},t.prototype.Pe=function(t,e){t.createObjectStore(Ml.store,{keyPath:Ml.keyPath});var n=e.store(Ml.store),i=new lh,o=function(t){if(i.add(t)){var e=t.lastSegment(),o=t.popLast();return n.put({collectionId:e,parent:ll(o)})}};return e.store(Cl.store).$t({Ft:!0},function(t,e){var n=new ca(t);return o(n.popLast())}).next(function(){return e.store(yl.store).$t({Ft:!0},function(t,e){var n=pl(t[1]);return o(n.popLast())})})},t.prototype.Ve=function(t){var e=this,n=t.store(wl.store);return n.$t(function(t,i){var o=ih(i),r=oh(e.R,o);return n.put(r)})},t}();function jh(t){t.createObjectStore(Ol.store,{keyPath:Ol.keyPath}).createIndex(Ol.documentTargetsIndex,Ol.documentTargetsKeyPath,{unique:!0}
1),t.createObjectStore(wl.store,{keyPath:wl.keyPath}).createIndex(wl.queryTargetsIndexName,wl.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(Pl.store)}var zh="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",Gh=function(){function t(e,n,i,o,r,s,a,c,u,l){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=i,this.Se=r,this.window=s,this.document=a,this.De=u,this.Ce=l,this.Ne=null,this.xe=!1,this.isPrimary=!1,this.networkEnabled=!0,this.ke=null,this.inForeground=!1,this.Fe=null,this.$e=null,this.Oe=Number.NEGATIVE_INFINITY,this.Me=function(t){return Promise.resolve()},!t.yt())throw new Vs(qs.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new Ih(this,o),this.Le=n+"main",this.R=new Jl(c),this.Be=new Dl(this.Le,11,new Vh(this.R)),this.qe=new wh(this.referenceDelegate,this.R),this.Ut=new hh,this.Ue=new Dh(this.R,this.Ut),this.Ke=new sh,this.window&&this.window.localStorage?this.Qe=this.window.localStorage:(this.Qe=null,!1===l&&Bs("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return t.prototype.start=function(){var t=this;return this.je().then(function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new Vs(qs.FAILED_PRECONDITION,zh);return t.We(),t.Ge(),t.ze(),t.runTransaction("getHighestListenSequenceNumber","readonly",function(e){return t.qe.getHighestSequenceNumber(e)})}).then(function(e){t.Ne=new Zs(e,t.De)}).then(function(){t.xe=!0}).catch(function(e){return t.Be&&t.Be.close(),Promise.reject(e)})},t.prototype.He=function(t){var e=this;return this.Me=function(n){return(0,Pn.mG)(e,void 0,void 0,function(){return(0,Pn.Jh)(this,function(e){return this.started?[2,t(n)]:[2]})})},t(this.isPrimary)},t.prototype.setDatabaseDeletedListener=function(t){var e=this;this.Be.vt(function(n){return(0,Pn.mG)(e,void 0,void 0,function(){return(0,Pn.Jh)(this,function(e){switch(e.label){case 0:return null===n.newVersion?[4,t()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})})},t.prototype.setNetworkEnabled=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.Se.enqueueAndForget(function(){return(0,Pn.mG)(e,void 0,void 0,function(){return(0,Pn.Jh)(this,function(t){switch(t.label){case 0:return this.started?[4,this.je()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})}))},t.prototype.je=function(){var t=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",function(e){return Hh(e).put(new Tl(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next(function(){if(t.isPrimary)return t.Je(e).next(function(e){e||(t.isPrimary=!1,t.Se.enqueueRetryable(function(){return t.Me(!1)}))})}).next(function(){return t.Ye(e)}).next(function(n){return t.isPrimary&&!n?t.Xe(e).next(function(){return!1}):!!n&&t.Ze(e).next(function(){return!0})})}).catch(function(e){if(Zl(e))return Gs("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;if(!t.allowTabSynchronization)throw e;return Gs("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1}).then(function(e){t.isPrimary!==e&&t.Se.enqueueRetryable(function(){return t.Me(e)}),t.isPrimary=e})},t.prototype.Je=function(t){var e=this;return Bh(t).get(gl.key).next(function(t){return Nl.resolve(e.tn(t))})},t.prototype.en=function(t){return Hh(t).delete(this.clientId)},t.prototype.nn=function(){return(0,Pn.mG)(this,void 0,void 0,function(){var t,e,n,i=this;return(0,Pn.Jh)(this,function(o){switch(o.label){case 0:return!this.isPrimary||this.sn(this.Oe,18e5)?[3,2]:(this.Oe=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",function(t){var e=Bl(t,Tl.store);return e.Nt().next(function(t){var n=i.rn(t,18e5),o=t.filter(function(t){return-1===n.indexOf(t)});return Nl.forEach(o,function(t){return e.delete(t.clientId)}).next(function(){return o}
1)})}).catch(function(){return[]})]);case 1:if(t=o.sent(),this.Qe)for(e=0,n=t;e<n.length;e++)this.Qe.removeItem(this.on(n[e].clientId));o.label=2;case 2:return[2]}})})},t.prototype.ze=function(){var t=this;this.$e=this.Se.enqueueAfterDelay("client_metadata_refresh",4e3,function(){return t.je().then(function(){return t.nn()}).then(function(){return t.ze()})})},t.prototype.tn=function(t){return!!t&&t.ownerId===this.clientId},t.prototype.Ye=function(t){var e=this;return this.Ce?Nl.resolve(!0):Bh(t).get(gl.key).next(function(n){if(null!==n&&e.sn(n.leaseTimestampMs,5e3)&&!e.cn(n.ownerId)){if(e.tn(n)&&e.networkEnabled)return!0;if(!e.tn(n)){if(!n.allowTabSynchronization)throw new Vs(qs.FAILED_PRECONDITION,zh);return!1}}return!(!e.networkEnabled||!e.inForeground)||Hh(t).Nt().next(function(t){return void 0===e.rn(t,5e3).find(function(t){return!(e.clientId===t.clientId||!(!e.networkEnabled&&t.networkEnabled||!e.inForeground&&t.inForeground&&e.networkEnabled===t.networkEnabled))})})}).next(function(t){return e.isPrimary!==t&&Gs("IndexedDbPersistence","Client "+(t?"is":"is not")+" eligible for a primary lease."),t})},t.prototype.shutdown=function(){return(0,Pn.mG)(this,void 0,void 0,function(){var t=this;return(0,Pn.Jh)(this,function(e){switch(e.label){case 0:return this.xe=!1,this.un(),this.$e&&(this.$e.cancel(),this.$e=null),this.an(),this.hn(),[4,this.Be.runTransaction("shutdown","readwrite",[gl.store,Tl.store],function(e){var n=new Gl(e,Zs.o);return t.Xe(n).next(function(){return t.en(n)})})];case 1:return e.sent(),this.Be.close(),this.ln(),[2]}})})},t.prototype.rn=function(t,e){var n=this;return t.filter(function(t){return n.sn(t.updateTimeMs,e)&&!n.cn(t.clientId)})},t.prototype.fn=function(){var t=this;return this.runTransaction("getActiveClients","readonly",function(e){return Hh(e).Nt().next(function(e){return t.rn(e,18e5).map(function(t){return t.clientId})})})},Object.defineProperty(t.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),t.prototype.getMutationQueue=function(t){return _h.Qt(t,this.R,this.Ut,this.referenceDelegate)},t.prototype.getTargetCache=function(){return this.qe},t.prototype.getRemoteDocumentCache=function(){return this.Ue},t.prototype.getIndexManager=function(){return this.Ut},t.prototype.getBundleCache=function(){return this.Ke},t.prototype.runTransaction=function(t,e,n){var i,o=this;return Gs("IndexedDbPersistence","Starting transaction:",t),this.Be.runTransaction(t,"readonly"===e?"readonly":"readwrite",El,function(r){return i=new Gl(r,o.Ne?o.Ne.next():Zs.o),"readwrite-primary"===e?o.Je(i).next(function(t){return!!t||o.Ye(i)}).next(function(e){if(!e)throw Bs("Failed to obtain primary lease for action '"+t+"'."),o.isPrimary=!1,o.Se.enqueueRetryable(function(){return o.Me(!1)}),new Vs(qs.FAILED_PRECONDITION,Al);return n(i)}).next(function(t){return o.Ze(i).next(function(){return t})}):o.dn(i).next(function(){return n(i)})}).then(function(t){return i.raiseOnCommittedEvent(),t})},t.prototype.dn=function(t){var e=this;return Bh(t).get(gl.key).next(function(t){if(null!==t&&e.sn(t.leaseTimestampMs,5e3)&&!e.cn(t.ownerId)&&!e.tn(t)&&!(e.Ce||e.allowTabSynchronization&&t.allowTabSynchronization))throw new Vs(qs.FAILED_PRECONDITION,zh)})},t.prototype.Ze=function(t){var e=new gl(this.clientId,this.allowTabSynchronization,Date.now());return Bh(t).put(gl.key,e)},t.yt=function(){return Dl.yt()},t.prototype.Xe=function(t){var e=this,n=Bh(t);return n.get(gl.key).next(function(t){return e.tn(t)?(Gs("IndexedDbPersistence","Releasing primary lease."),n.delete(gl.key)):Nl.resolve()})},t.prototype.sn=function(t,e){var n=Date.now();return!(t<n-e||t>n&&(Bs("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.We=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Fe=function(){t.Se.enqueueAndForget(function(){return t.inForeground="visible"===t.document.visibilityState,t.je()})},this.document.addEventListener("visibilitychange",this.Fe),this.inForeground="visible"===this.document.visibilityState)},t.prototype.an=function(){this.Fe&&(this.document.removeEventListener("visibilitychange",this.Fe),this.Fe=null)},t.prototype.Ge=function(){var t,e=this;"function"==typeof(null===(t=this.window)||void 0===t?void 0:t.addEventListener)&&(this.ke=function(){e.un(),(0,Mn.G6)()&&navigator.appVersion.match("Version/14")&&e.Se.enterRestrictedMode(!0),e.Se.enqueueAndForget(function(){return e.shutdown()})},this.window.addEventListener("pagehide",this.ke))},t.prototype.hn=function(){this.ke&&(this.window.removeEventListener("pagehide",this.ke),this.ke=null)},t.prototype.cn=function(t){var e;try{var n=null!==(null===(e=this.Qe)||void 0===e?void 0:e.getItem(this.on(t)));return Gs("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(i){return Bs("IndexedDbPersistence","Failed to get zombied client id.",i
1),!1}},t.prototype.un=function(){if(this.Qe)try{this.Qe.setItem(this.on(this.clientId),String(Date.now()))}catch(t){Bs("Failed to set zombie client id.",t)}},t.prototype.ln=function(){if(this.Qe)try{this.Qe.removeItem(this.on(this.clientId))}catch(t){}},t.prototype.on=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function Bh(t){return Bl(t,gl.store)}function Hh(t){return Bl(t,Tl.store)}function Yh(t,e){var n=t.projectId;return t.isDefaultDatabase||(n+="."+t.database),"firestore/"+e+"/"+n+"/"}var Qh=function(t,e){this.progress=t,this.wn=e},Jh=function(){function t(t,e,n){this.Ue=t,this._n=e,this.Ut=n}return t.prototype.mn=function(t,e){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKey(t,e).next(function(i){return n.yn(t,e,i)})},t.prototype.yn=function(t,e,n){return this.Ue.getEntry(t,e).next(function(t){for(var e=0,i=n;e<i.length;e++)i[e].applyToLocalView(t);return t})},t.prototype.gn=function(t,e){t.forEach(function(t,n){for(var i=0,o=e;i<o.length;i++)o[i].applyToLocalView(n)})},t.prototype.pn=function(t,e){var n=this;return this.Ue.getEntries(t,e).next(function(e){return n.En(t,e).next(function(){return e})})},t.prototype.En=function(t,e){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKeys(t,e).next(function(t){return n.gn(e,t)})},t.prototype.getDocumentsMatchingQuery=function(t,e,n){return wa.isDocumentKey((i=e).path)&&null===i.collectionGroup&&0===i.filters.length?this.Tn(t,e.path):fc(e)?this.In(t,e,n):this.An(t,e,n);var i},t.prototype.Tn=function(t,e){return this.mn(t,new wa(e)).next(function(t){var e=gu();return t.isFoundDocument()&&(e=e.insert(t.key,t)),e})},t.prototype.In=function(t,e,n){var i=this,o=e.collectionGroup,r=gu();return this.Ut.getCollectionParents(t,o).next(function(s){return Nl.forEach(s,function(s){var a,c,u=(a=e,c=s.child(o),new ac(c,null,a.explicitOrderBy.slice(),a.filters.slice(),a.limit,a.limitType,a.startAt,a.endAt));return i.An(t,u,n).next(function(t){t.forEach(function(t,e){r=r.insert(t,e)})})}).next(function(){return r})})},t.prototype.An=function(t,e,n){var i,o,r=this;return this.Ue.getDocumentsMatchingQuery(t,e,n).next(function(n){return i=n,r._n.getAllMutationBatchesAffectingQuery(t,e)}).next(function(e){return r.Rn(t,o=e,i).next(function(t){i=t;for(var e=0,n=o;e<n.length;e++)for(var r=n[e],s=0,a=r.mutations;s<a.length;s++){var c=a[s],u=c.key,l=i.get(u);null==l&&(l=qa.newInvalidDocument(u),i=i.insert(u,l)),Bc(c,l,r.localWriteTime),l.isFoundDocument()||(i=i.remove(u))}})}).next(function(){return i.forEach(function(t,n){Cc(e,n)||(i=i.remove(t))}),i})},t.prototype.Rn=function(t,e,n){for(var i=bu(),o=0,r=e;o<r.length;o++)for(var s=0,a=r[o].mutations;s<a.length;s++){var c=a[s];c instanceof $c&&null===n.get(c.key)&&(i=i.add(c.key))}var u=n;return this.Ue.getEntries(t,i).next(function(t){return t.forEach(function(t,e){e.isFoundDocument()&&(u=u.insert(t,e))}),u})},t}(),$h=function(){function t(t,e,n,i){this.targetId=t,this.fromCache=e,this.bn=n,this.vn=i}return t.Pn=function(e,n){for(var i=bu(),o=bu(),r=0,s=n.docChanges;r<s.length;r++){var a=s[r];switch(a.type){case 0:i=i.add(a.doc.key);break;case 1:o=o.add(a.doc.key)}}return new t(e,n.fromCache,i,o)},t}(),Wh=function(){function t(){}return t.prototype.Vn=function(t){this.Sn=t},t.prototype.getDocumentsMatchingQuery=function(t,e,n,i){var o,r=this;return 0===(o=e).filters.length&&null===o.limit&&null==o.startAt&&null==o.endAt&&(0===o.explicitOrderBy.length||1===o.explicitOrderBy.length&&o.explicitOrderBy[0].field.isKeyField())||n.isEqual(ia.min())?this.Dn(t,e):this.Sn.pn(t,i).next(function(o){var s=r.Cn(e,o);return(lc(e)||hc(e))&&r.Nn(e.limitType,s,i,n)?r.Dn(t,e):(zs()<=Tn.in.DEBUG&&Gs("QueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),vc(e)),r.Sn.getDocumentsMatchingQuery(t,e,n).next(function(t){return s.forEach(function(e){t=t.insert(e.key,e)}),t}))})},t.prototype.Cn=function(t,e){var n=new lu(xc(t));return e.forEach(function(e,i){Cc(t,i)&&(n=n.add(i))}),n},t.prototype.Nn=function(t,e,n,i){if(n.size!==e.size)return!0;var o="F"===t?e.last():e.first();return!!o&&(o.hasPendingWrites||o.version.compareTo(i)>0)},t.prototype.Dn=function(t,e){return zs()<=Tn.in.DEBUG&&Gs("QueryEngine","Using full collection scan to execute query:",vc(e)),this.Sn.getDocumentsMatchingQuery(t,e,ia.min())},t}(),Kh=function(){function t(t,e,n,i){this.persistence=t,this.xn=e,this.R=i,this.kn=new au(Xs),this.Fn=new Nh(function(t){return za(t)},Ga),this.$n=ia.min(),this._n=t.getMutationQueue(n),this.On=t.getRemoteDocumentCache(),this.qe=t.getTargetCache(),this.Mn=new Jh(this.On,this._n,this.persistence.getIndexManager()),this.Ke=t.getBundleCache(),this.xn.Vn(this.Mn)}return t.prototype.collectGarbage=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",function(n){return t.collect(n,e.kn)})},t}();function Xh(t,e,n,i){return new Kh(t,e,n,i)}function td(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i,o,r;return(0,Pn.Jh)(this,function(s){switch(s.label){case 0:return n=$s(t),i=n._n,o=n.Mn,[4,n.persistence.runTransaction("Handle user change","readonly",function(t){var r;return n._n.getAllMutationBatches(t).next(function(s){return r=s,i=n.persistence.getMutationQueue(e),o=new Jh(n.On,i,n.persistence.getIndexManager()),i.getAllMutationBatches(t)}).next(function(e){for(var n=[],i=[],s=bu(),a=0,c=r;a<c.length;a++){var u=c[a];n.push(u.batchId);for(var l=0,h=u.mutations;l<h.length;l++)s=s.add(h[l].key)}for(var d=0,p=e;d<p.length;d++){var f=p[d];i.push(f.batchId);for(var g=0,m=f.mutations;g<m.length;g++)s=s.add(m[g].key)}return o.pn(t,s).next(function(t){return{Ln:t,removedBatchIds:n,addedBatchIds:i}})})})];case 1:return r=s.sent(),[2,(n._n=i,n.Mn=o,n.xn.Vn(n.Mn),r)]}})})}function ed(t,e){var n=$s(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",function(t){var i,o,r,s,a,c,u,l=e.batch.keys(),h=n.On.newChangeBuffer({trackRemovals:!0});return(i=n,o=t,r=e,s=h,a=r.batch,c=a.keys(),u=Nl.resolve(),c.forEac
1h(function(t){u=u.next(function(){return s.getEntry(o,t)}).next(function(e){var n=r.docVersions.get(t);Js(null!==n),e.version.compareTo(n)<0&&(a.applyToRemoteDocument(e,r),e.isValidDocument()&&s.addEntry(e,r.commitVersion))})}),u.next(function(){return i._n.removeMutationBatch(o,a)})).next(function(){return h.apply(t)}).next(function(){return n._n.performConsistencyCheck(t)}).next(function(){return n.Mn.pn(t,l)})})}function nd(t){var e=$s(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",function(t){return e.qe.getLastRemoteSnapshotVersion(t)})}function id(t,e){var n=$s(t),i=e.snapshotVersion,o=n.kn;return n.persistence.runTransaction("Apply remote event","readwrite-primary",function(t){var r=n.On.newChangeBuffer({trackRemovals:!0});o=n.kn;var s=[];e.targetChanges.forEach(function(e,r){var a,c,u,l=o.get(r);if(l){s.push(n.qe.removeMatchingKeys(t,e.removedDocuments,r).next(function(){return n.qe.addMatchingKeys(t,e.addedDocuments,r)}));var h=e.resumeToken;if(h.approximateByteSize()>0){var d=l.withResumeToken(h,i).withSequenceNumber(t.currentSequenceNumber);o=o.insert(r,d),a=l,u=e,Js((c=d).resumeToken.approximateByteSize()>0),(0===a.resumeToken.approximateByteSize()||c.snapshotVersion.toMicroseconds()-a.snapshotVersion.toMicroseconds()>=3e8||u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size>0)&&s.push(n.qe.updateTargetData(t,d))}}});var a=pu();if(e.documentUpdates.forEach(function(i,o){e.resolvedLimboDocuments.has(i)&&s.push(n.persistence.referenceDelegate.updateLimboDocument(t,i))}),s.push(od(t,r,e.documentUpdates,i,void 0).next(function(t){a=t})),!i.isEqual(ia.min())){var c=n.qe.getLastRemoteSnapshotVersion(t).next(function(e){return n.qe.setTargetsMetadata(t,t.currentSequenceNumber,i)});s.push(c)}return Nl.waitFor(s).next(function(){return r.apply(t)}).next(function(){return n.Mn.En(t,a)}).next(function(){return a})}).then(function(t){return n.kn=o,t})}function od(t,e,n,i,o){var r=bu();return n.forEach(function(t){return r=r.add(t)}),e.getEntries(t,r).next(function(t){var r=pu();return n.forEach(function(n,s){var a=t.get(n),c=(null==o?void 0:o.get(n))||i;s.isNoDocument()&&s.version.isEqual(ia.min())?(e.removeEntry(n,c),r=r.insert(n,s)):!a.isValidDocument()||s.version.compareTo(a.version)>0||0===s.version.compareTo(a.version)&&a.hasPendingWrites?(e.addEntry(s,c),r=r.insert(n,s)):Gs("LocalStore","Ignoring outdated watch update for ",n,". Current version:",a.version," Watch version:",s.version)}),r})}function rd(t,e){var n=$s(t);return n.persistence.runTransaction("Get next mutation batch","readonly",function(t){return void 0===e&&(e=-1),n._n.getNextMutationBatchAfterBatchId(t,e)})}function sd(t,e){var n=$s(t);return n.persistence.runTransaction("Allocate target","readwrite",function(t){var i;return n.qe.getTargetData(t,e).next(function(o){return o?Nl.resolve(i=o):n.qe.allocateTargetId(t).next(function(o){return i=new Ql(e,o,0,t.currentSequenceNumber),n.qe.addTargetData(t,i).next(function(){return i})})})}).then(function(t){var i=n.kn.get(t.targetId);return(null===i||t.snapshotVersion.compareTo(i.snapshotVersion)>0)&&(n.kn=n.kn.insert(t.targetId,t),n.Fn.set(e,t.targetId)),t})}function ad(t,e,n){return(0,Pn.mG)(this,void 0,void 0,function(){var i,o,r,s;return(0,Pn.Jh)(this,function(a){switch(a.label){case 0:i=$s(t),o=i.kn.get(e),r=n?"readwrite":"readwrite-primary",a.label=1;case 1:return a.trys.push([1,4,,5]),n?[3,3]:[4,i.persistence.runTransaction("Release target",r,function(t){return i.persistence.referenceDelegate.removeTarget(t,o)})];case 2:a.sent(),a.label=3;case 3:return[3,5];case 4:if(!Zl(s=a.sent()))throw s;return Gs("LocalStore","Failed to update sequence numbers for target "+e+": "+s),[3,5];case 5:return i.kn=i.kn.remove(e),i.Fn.delete(o.target),[2]}})})}function cd(t,e,n){var i=$s(t),o=ia.min(),r=bu();return i.persistence.runTransaction("Execute query","readonly",function(t){return(s=i,a=t,c=mc(e),u=$s(s),l=u.Fn.get(c),void 0!==l?Nl.resolve(u.kn.get(l)):u.qe.getTargetData(a,c)).next(function(e){if(e)return o=e.lastLimboFreeSnapshotVersion,i.qe.getMatchingKeysForTargetId(t,e.targetId).next(function(t){r=t})}).next(function(){return i.xn.getDocumentsMatchingQuery(t,e,n?o:ia.min(),n?r:bu())}).next(function(t){return{documents:t,Bn:r}});var s,a,c,u,l})}function ud(t,e){var n=$s(t),i=$s(n.qe),o=n.kn.get(e);return o?Promise.resolve(o.target):n.persistence.runTransaction("Get target data","readonly",function(t){return i.lt(t,e).next(function(t){return t?t.target:null})})}function ld(t){var e=$s(t);return e.persistence.runTransaction("Get new document changes","readonly",function(t){return n=t,i=e.$
1n,o=$s(e.On),r=pu(),s=Kl(i),a=Zh(n),c=IDBKeyRange.lowerBound(s,!0),a.$t({index:Cl.readTimeIndex,range:c},function(t,e){var n=$l(o.R,e);r=r.insert(n.key,n),s=e.readTime}).next(function(){return{wn:r,readTime:Xl(s)}});var n,i,o,r,s,a,c}).then(function(t){var n=t.wn;return e.$n=t.readTime,n})}function hd(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(n){return[2,(e=$s(t)).persistence.runTransaction("Synchronize last document change read time","readonly",function(t){return e=Zh(t),n=ia.min(),e.$t({index:Cl.readTimeIndex,reverse:!0},function(t,e,i){e.readTime&&(n=Xl(e.readTime)),i.done()}).next(function(){return n});var e,n}).then(function(t){e.$n=t})]})})}function dd(t,e,n,i){return(0,Pn.mG)(this,void 0,void 0,function(){var o,r,s,a,c,u,l,h,d,p;return(0,Pn.Jh)(this,function(f){switch(f.label){case 0:for(o=$s(t),r=bu(),s=pu(),a=_u(),c=0,u=n;c<u.length;c++)h=e.qn((l=u[c]).metadata.name),l.document&&(r=r.add(h)),s=s.insert(h,e.Un(l)),a=a.insert(h,e.Kn(l.metadata.readTime));return d=o.On.newChangeBuffer({trackRemovals:!0}),[4,sd(o,(g=i,mc(uc(ca.fromString("__bundle__/docs/"+g)))))];case 1:return p=f.sent(),[2,o.persistence.runTransaction("Apply bundle documents","readwrite",function(t){return od(t,d,s,ia.min(),a).next(function(e){return d.apply(t),e}).next(function(e){return o.qe.removeMatchingKeysForTargetId(t,p.targetId).next(function(){return o.qe.addMatchingKeys(t,r,p.targetId)}).next(function(){return o.Mn.En(t,e)}).next(function(){return e})})})]}var g})})}function pd(t,e,n){return void 0===n&&(n=bu()),(0,Pn.mG)(this,void 0,void 0,function(){var i,o;return(0,Pn.Jh)(this,function(r){switch(r.label){case 0:return[4,sd(t,mc(rh(e.bundledQuery)))];case 1:return i=r.sent(),[2,(o=$s(t)).persistence.runTransaction("Save named query","readwrite",function(t){var r=Fu(e.readTime);if(i.snapshotVersion.compareTo(r)>=0)return o.Ke.saveNamedQuery(t,e);var s=i.withResumeToken(da.EMPTY_BYTE_STRING,r);return o.kn=o.kn.insert(s.targetId,s),o.qe.updateTargetData(t,s).next(function(){return o.qe.removeMatchingKeysForTargetId(t,i.targetId)}).next(function(){return o.qe.addMatchingKeys(t,n,i.targetId)}).next(function(){return o.Ke.saveNamedQuery(t,e)})})]}})})}var fd=function(){function t(t){this.R=t,this.Qn=new Map,this.jn=new Map}return t.prototype.getBundleMetadata=function(t,e){return Nl.resolve(this.Qn.get(e))},t.prototype.saveBundleMetadata=function(t,e){var n;return this.Qn.set(e.id,{id:(n=e).id,version:n.version,createTime:Fu(n.createTime)}),Nl.resolve()},t.prototype.getNamedQuery=function(t,e){return Nl.resolve(this.jn.get(e))},t.prototype.saveNamedQuery=function(t,e){return this.jn.set(e.name,{name:(n=e).name,query:rh(n.bundledQuery),readTime:Fu(n.readTime)}),Nl.resolve();var n},t}(),gd=function(){function t(){this.Wn=new lu(md.Gn),this.zn=new lu(md.Hn)}return t.prototype.isEmpty=function(){return this.Wn.isEmpty()},t.prototype.addReference=function(t,e){var n=new md(t,e);this.Wn=this.Wn.add(n),this.zn=this.zn.add(n)},t.prototype.Jn=function(t,e){var n=this;t.forEach(function(t){return n.addReference(t,e)})},t.prototype.removeReference=function(t,e){this.Yn(new md(t,e))},t.prototype.Xn=function(t,e){var n=this;t.forEach(function(t){return n.removeReference(t,e)})},t.prototype.Zn=function(t){var e=this,n=new wa(new ca([])),i=new md(n,t),o=new md(n,t+1),r=[];return this.zn.forEachInRange([i,o],function(t){e.Yn(t),r.push(t.key)}),r},t.prototype.ts=function(){var t=this;this.Wn.forEach(function(e){return t.Yn(e)})},t.prototype.Yn=function(t){this.Wn=this.Wn.delete(t),this.zn=this.zn.delete(t)},t.prototype.es=function(t){var e=new wa(new ca([])),n=new md(e,t),i=new md(e,t+1),o=bu();return this.zn.forEachInRange([n,i],function(t){o=o.add(t.key)}),o},t.prototype.containsKey=function(t){var e=new md(t,0),n=this.Wn.firstAfterOrEqual(e);return null!==n&&t.isEqual(n.key)},t}(),md=function(){function t(t,e){this.key=t,this.ns=e}return t.Gn=function(t,e){return wa.comparator(t.key,e.key)||Xs(t.ns,e.ns)},t.Hn=function(t,e){return Xs(t.ns,e.ns)||wa.comparator(t.key,e.key)},t}(),_d=function(){function t(t,e){this.Ut=t,this.referenceDelegate=e,this._n=[],this.ss=1,this.rs=new lu(md.Gn)}return t.prototype.checkEmpty=function(t){return Nl.resolve(0===this._n.length)},t.prototype.addMutationBatch=function(t,e,n,i){var o=this.ss;this.ss++;var r=new Hl(o,e,n,i);this._n.push(r);for(var s=0,a=i;s<a.length;s++){var c=a[s];this.rs=this.rs.add(new md(c.key,o)),this.Ut.addToCollectionParentIndex(t,c.key.path.popLast())}return Nl.resolve(r)},t.prototype.lookupMutationBatch=function(t,e){return Nl.resolve(this.os(e))},t.prototype.getNextMutationBatchAfterBatchId=function(t,e){var n=this.cs(e+1),i=n<0?0:n;return Nl.resolve(this._n.length>i?this._n[i]:null)},t.prototype.getHighestUnacknowledgedBatchId=function(){return Nl.resolve(0===this._n.length?-1:this.ss-1)},t.prototype.getAllMutationBatches=function(t){return Nl.resolve(this._n.slice())},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,i=new md(e,0),o=new md(e,Number.POSITIVE_INFINITY),r=[];
1return this.rs.forEachInRange([i,o],function(t){var e=n.os(t.ns);r.push(e)}),Nl.resolve(r)},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,i=new lu(Xs);return e.forEach(function(t){var e=new md(t,0),o=new md(t,Number.POSITIVE_INFINITY);n.rs.forEachInRange([e,o],function(t){i=i.add(t.ns)})}),Nl.resolve(this.us(i))},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=e.path,i=n.length+1,o=n;wa.isDocumentKey(o)||(o=o.child(""));var r=new md(new wa(o),0),s=new lu(Xs);return this.rs.forEachWhile(function(t){var e=t.key.path;return!!n.isPrefixOf(e)&&(e.length===i&&(s=s.add(t.ns)),!0)},r),Nl.resolve(this.us(s))},t.prototype.us=function(t){var e=this,n=[];return t.forEach(function(t){var i=e.os(t);null!==i&&n.push(i)}),n},t.prototype.removeMutationBatch=function(t,e){var n=this;Js(0===this.hs(e.batchId,"removed")),this._n.shift();var i=this.rs;return Nl.forEach(e.mutations,function(o){var r=new md(o.key,e.batchId);return i=i.delete(r),n.referenceDelegate.markPotentiallyOrphaned(t,o.key)}).next(function(){n.rs=i})},t.prototype.Gt=function(t){},t.prototype.containsKey=function(t,e){var n=new md(e,0),i=this.rs.firstAfterOrEqual(n);return Nl.resolve(e.isEqual(i&&i.key))},t.prototype.performConsistencyCheck=function(t){return Nl.resolve()},t.prototype.hs=function(t,e){return this.cs(t)},t.prototype.cs=function(t){return 0===this._n.length?0:t-this._n[0].batchId},t.prototype.os=function(t){var e=this.cs(t);return e<0||e>=this._n.length?null:this._n[e]},t}(),yd=function(){function t(t,e){this.Ut=t,this.ls=e,this.docs=new au(wa.comparator),this.size=0}return t.prototype.addEntry=function(t,e,n){var i=e.key,o=this.docs.get(i),r=o?o.size:0,s=this.ls(e);return this.docs=this.docs.insert(i,{document:e.clone(),size:s,readTime:n}),this.size+=s-r,this.Ut.addToCollectionParentIndex(t,i.path.popLast())},t.prototype.removeEntry=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.getEntry=function(t,e){var n=this.docs.get(e);return Nl.resolve(n?n.document.clone():qa.newInvalidDocument(e))},t.prototype.getEntries=function(t,e){var n=this,i=pu();return e.forEach(function(t){var e=n.docs.get(t);i=i.insert(t,e?e.document.clone():qa.newInvalidDocument(t))}),Nl.resolve(i)},t.prototype.getDocumentsMatchingQuery=function(t,e,n){for(var i=pu(),o=new wa(e.path.child("")),r=this.docs.getIteratorFrom(o);r.hasNext();){var s=r.getNext(),a=s.value,c=a.document,u=a.readTime;if(!e.path.isPrefixOf(s.key.path))break;u.compareTo(n)<=0||Cc(e,c)&&(i=i.insert(c.key,c.clone()))}return Nl.resolve(i)},t.prototype.fs=function(t,e){return Nl.forEach(this.docs,function(t){return e(t)})},t.prototype.newChangeBuffer=function(t){return new bd(this)},t.prototype.getSize=function(t){return Nl.resolve(this.size)},t}(),bd=function(t){function e(e){var n=this;return(n=t.call(this)||this).Ie=e,n}return(0,Pn.ZT)(e,t),e.prototype.applyChanges=function(t){var e=this,n=[];
1return this.changes.forEach(function(i,o){o.document.isValidDocument()?n.push(e.Ie.addEntry(t,o.document,e.getReadTime(i))):e.Ie.removeEntry(i)}),Nl.waitFor(n)},e.prototype.getFromCache=function(t,e){return this.Ie.getEntry(t,e)},e.prototype.getAllFromCache=function(t,e){return this.Ie.getEntries(t,e)},e}(Lh),vd=function(){function t(t){this.persistence=t,this.ds=new Nh(function(t){return za(t)},Ga),this.lastRemoteSnapshotVersion=ia.min(),this.highestTargetId=0,this.ws=0,this._s=new gd,this.targetCount=0,this.ys=xh.Jt()}return t.prototype.forEachTarget=function(t,e){return this.ds.forEach(function(t,n){return e(n)}),Nl.resolve()},t.prototype.getLastRemoteSnapshotVersion=function(t){return Nl.resolve(this.lastRemoteSnapshotVersion)},t.prototype.getHighestSequenceNumber=function(t){return Nl.resolve(this.ws)},t.prototype.allocateTargetId=function(t){return this.highestTargetId=this.ys.next(),Nl.resolve(this.highestTargetId)},t.prototype.setTargetsMetadata=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.ws&&(this.ws=e),Nl.resolve()},t.prototype.te=function(t){this.ds.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.ys=new xh(e),this.highestTargetId=e),t.sequenceNumber>this.ws&&(this.ws=t.sequenceNumber)},t.prototype.addTargetData=function(t,e){return this.te(e),this.targetCount+=1,Nl.resolve()},t.prototype.updateTargetData=function(t,e){return this.te(e),Nl.resolve()},t.prototype.removeTargetData=function(t,e){return this.ds.delete(e.target),this._s.Zn(e.targetId),this.targetCount-=1,Nl.resolve()},t.prototype.removeTargets=function(t,e,n){var i=this,o=0,r=[];return this.ds.forEach(function(s,a){a.sequenceNumber<=e&&null===n.get(a.targetId)&&(i.ds.delete(s),r.push(i.removeMatchingKeysForTargetId(t,a.targetId)),o++)}),Nl.waitFor(r).next(function(){return o})},t.prototype.getTargetCount=function(t){return Nl.resolve(this.targetCount)},t.prototype.getTargetData=function(t,e){var n=this.ds.get(e)||null;return Nl.resolve(n)},t.prototype.addMatchingKeys=function(t,e,n){return this._s.Jn(e,n),Nl.resolve()},t.prototype.removeMatchingKeys=function(t,e,n){this._s.Xn(e,n);var i=this.persistence.referenceDelegate,o=[];return i&&e.forEach(function(e){o.push(i.markPotentiallyOrphaned(t,e))}),Nl.waitFor(o)},t.prototype.removeMatchingKeysForTargetId=function(t,e){return this._s.Zn(e),Nl.resolve()},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=this._s.es(e);return Nl.resolve(n)},t.prototype.containsKey=function(t,e){return Nl.resolve(this._s.containsKey(e))},t}(),Cd=function(){function t(t,e){var n=this;this.gs={},this.Ne=new Zs(0),this.xe=!1,this.xe=!0,this.referenceDelegate=t(this),this.qe=new vd(this),this.Ut=new uh,this.Ue=new yd(this.Ut,function(t){return n.referenceDelegate.ps(t)}),this.R=new Jl(e),this.Ke=new fd(this.R)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.shutdown=function(){return this.xe=!1,Promise.resolve()},Object.defineProperty(t.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),t.prototype.setDatabaseDeletedListener=function(){},t.prototype.setNetworkEnabled=function(){},t.prototype.getIndexManager=function(){return this.Ut},t.prototype.getMutationQueue=function(t){var e=this.gs[t.toKey()];return e||(e=new _d(this.Ut,this.referenceDelegate),this.gs[t.toKey()]=e),e},t.prototype.getTargetCache=function(){return this.qe},t.prototype.getRemoteDocumentCache=function(){return this.Ue},t.prototype.getBundleCache=function(){return this.Ke},t.prototype.runTransaction=function(t,e,n){var i=this;Gs("MemoryPersistence","Starting transaction:",t);var o=new xd(this.Ne.next());return this.referenceDelegate.Es(),n(o).next(function(t){return i.referenceDelegate.Ts(o).next(function(){return t})}).toPromise().then(function(t){return o.raiseOnCommittedEvent(),t})},t.prototype.Is=function(t,e){return Nl.or(Object.values(this.gs).map(function(n){return function(){return n.containsKey(t,e)}}))},t}(),xd=function(t){function e(e){var n=this;return(n=t.call(this)||this).currentSequenceNumber=e,n}return(0,Pn.ZT)(e,t),e}(Il),wd=function(){function t(t){this.persistence=t,this.As=new gd,this.Rs=null}return t.bs=function(e){return new t(e)},Object.defineProperty(t.prototype,"vs",{get:function(){if(this.Rs)return this.Rs;throw Qs()}
1,enumerable:!1,configurable:!0}),t.prototype.addReference=function(t,e,n){return this.As.addReference(n,e),this.vs.delete(n.toString()),Nl.resolve()},t.prototype.removeReference=function(t,e,n){return this.As.removeReference(n,e),this.vs.add(n.toString()),Nl.resolve()},t.prototype.markPotentiallyOrphaned=function(t,e){return this.vs.add(e.toString()),Nl.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.As.Zn(e.targetId).forEach(function(t){return n.vs.add(t.toString())});var i=this.persistence.getTargetCache();return i.getMatchingKeysForTargetId(t,e.targetId).next(function(t){t.forEach(function(t){return n.vs.add(t.toString())})}).next(function(){return i.removeTargetData(t,e)})},t.prototype.Es=function(){this.Rs=new Set},t.prototype.Ts=function(t){var e=this,n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return Nl.forEach(this.vs,function(i){var o=wa.fromPath(i);return e.Ps(t,o).next(function(t){t||n.removeEntry(o)})}).next(function(){return e.Rs=null,n.apply(t)})},t.prototype.updateLimboDocument=function(t,e){var n=this;return this.Ps(t,e).next(function(t){t?n.vs.delete(e.toString()):n.vs.add(e.toString())})},t.prototype.ps=function(t){return 0},t.prototype.Ps=function(t,e){var n=this;return Nl.or([function(){return Nl.resolve(n.As.containsKey(e))},function(){return n.persistence.getTargetCache().containsKey(t,e)},function(){return n.persistence.Is(t,e)}])},t}(),Od=function(){function t(t){this.uid=t}return t.prototype.isAuthenticated=function(){return null!=this.uid},t.prototype.toKey=function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();function Pd(t,e){return"firestore_clients_"+t+"_"+e}function Md(t,e,n){var i="firestore_mutations_"+t+"_"+n;return e.isAuthenticated()&&(i+="_"+e.uid),i}function Td(t,e){return"firestore_targets_"+t+"_"+e}Od.UNAUTHENTICATED=new Od(null),Od.GOOGLE_CREDENTIALS=new Od("google-credentials-uid"),Od.FIRST_PARTY=new Od("first-party-uid"),Od.MOCK_USER=new Od("mock-user");var kd=function(){function t(t,e,n,i){this.user=t,this.batchId=e,this.state=n,this.error=i}return t.Vs=function(e,n,i){var o,r=JSON.parse(i),s="object"==typeof r&&-1!==["pending","acknowledged","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error);return s&&r.error&&(s="string"==typeof r.error.message&&"string"==typeof r.error.code)&&(o=new Vs(r.error.code,r.error.message)),s?new t(e,n,r.state,o):(Bs("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+i),null)},t.prototype.Ss=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),Sd=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.Vs=function(e,n){var i,o=JSON.parse(n),r="object"==typeof o&&-1!==["not-current","current","rejected"].indexOf(o.state)&&(void 0===o.error||"object"==typeof o.error);return r&&o.error&&(r="string"==typeof o.error.message&&"string"==typeof o.error.code)&&(i=new Vs(o.error.code,o.error.message)),r?new t(e,o.state,i):(Bs("SharedClientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.Ss=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),Ed=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.Vs=function(e,n){for(var i=JSON.parse(n),o="object"==typeof i&&i.activeTargetIds instanceof Array,r=Cu(),s=0;o&&s<i.activeTargetIds.length;++s)o=xa(i.activeTargetIds[s]),r=r.add(i.activeTargetIds[s]);return o?new t(e,r):(Bs("SharedClientState","Failed to parse client data for instance '"+e+"': "+n),null)},t}(),Ad=function(){function t(t,e){this.clientId=t,this.onlineState=e}return t.Vs=function(e){var n=JSON.parse(e);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new t(n.clientId,n.onlineState):(Bs("SharedClientState","Failed to parse online state: "+e),null)},t}(),Id=function(){function t(){this.activeTargetIds=Cu()}return t.prototype.Ds=function(t){this.activeTargetIds=this.activeTargetIds.add(t)},t.prototype.Cs=function(t){this.activeTargetIds=this.activeTargetIds.delete(t)},t.prototype.Ss=function(){var t={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(t)},t}(),Rd=function(){function t(t,e,n,i,o){this.window=t,this.Se=e,this.persistenceKey=n,this.Ns=i,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.xs=this.ks.bind(this),this.Fs=new au(Xs),this.started=!1,this.$s=[];var r=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=o,this.Os=Pd(this.persistenceKey,this.Ns),this.Ms="firestore_sequence_number_"+this.persistenceKey,this.Fs=this.Fs.insert(this.Ns,new Id),this.Ls=new RegExp("^firestore_clients_"+r+"_([^_]*)$"),this.Bs=new RegExp("^firestore_mutations_"+r+"_(\\d+)(?:_(.*))?$"),this.qs=new RegExp("^firestore_targets_"+r+"_(\\d+)$"),this.Us="firestore_online_state_"+this.persistenceKey,this.Ks=function(t){return"firestore_bundle_loaded_"+t}(this.persistenceKey),this.window.addEventListener("storage",this.xs)}return t.yt=function(t){return!(!t||!t.localStorage)},t.prototype.start=function(){return(0,Pn.mG)(this,void 0,void 0,function(){var t,e,n,i,o,r,s,a,c,u,l=this;return(0,Pn.Jh)(this,function(h){switch(h.label){case 0:return[4,this.syncEngine.fn()];case 1:for(t=h.sent(),e=0,n=t;e<n.length;e++)(i=n[e])!==this.Ns&&(o=this.getItem(Pd(this.persistenceKey,i)))&&
1(r=Ed.Vs(i,o))&&(this.Fs=this.Fs.insert(r.clientId,r));for(this.Qs(),(s=this.storage.getItem(this.Us))&&(a=this.js(s))&&this.Ws(a),c=0,u=this.$s;c<u.length;c++)this.ks(u[c]);return this.$s=[],this.window.addEventListener("pagehide",function(){return l.shutdown()}),this.started=!0,[2]}})})},t.prototype.writeSequenceNumber=function(t){this.setItem(this.Ms,JSON.stringify(t))},t.prototype.getAllActiveQueryTargets=function(){return this.Gs(this.Fs)},t.prototype.isActiveQueryTarget=function(t){var e=!1;return this.Fs.forEach(function(n,i){i.activeTargetIds.has(t)&&(e=!0)}),e},t.prototype.addPendingMutation=function(t){this.zs(t,"pending")},t.prototype.updateMutationState=function(t,e,n){this.zs(t,e,n),this.Hs(t)},t.prototype.addLocalQueryTarget=function(t){var e="not-current";if(this.isActiveQueryTarget(t)){var n=this.storage.getItem(Td(this.persistenceKey,t));if(n){var i=Sd.Vs(t,n);i&&(e=i.state)}}return this.Js.Ds(t),this.Qs(),e},t.prototype.removeLocalQueryTarget=function(t){this.Js.Cs(t),this.Qs()},t.prototype.isLocalQueryTarget=function(t){return this.Js.activeTargetIds.has(t)},t.prototype.clearQueryState=function(t){this.removeItem(Td(this.persistenceKey,t))},t.prototype.updateQueryState=function(t,e,n){this.Ys(t,e,n)},t.prototype.handleUserChange=function(t,e,n){var i=this;e.forEach(function(t){i.Hs(t)}),this.currentUser=t,n.forEach(function(t){i.addPendingMutation(t)})},t.prototype.setOnlineState=function(t){this.Xs(t)},t.prototype.notifyBundleLoaded=function(){this.Zs()},t.prototype.shutdown=function(){this.started&&(this.window.removeEventListener("storage",this.xs),this.removeItem(this.Os),this.started=!1)},t.prototype.getItem=function(t){var e=this.storage.getItem(t);return Gs("SharedClientState","READ",t,e),e},t.prototype.setItem=function(t,e){Gs("SharedClientState","SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){Gs("SharedClientState","REMOVE",t),this.storage.removeItem(t)},t.prototype.ks=function(t){var e=this,n=t;if(n.storageArea===this.storage){if(Gs("SharedClientState","EVENT",n.key,n.newValue),n.key===this.Os)return void Bs("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Se.enqueueRetryable(function(){return(0,Pn.mG)(e,void 0,void 0,function(){var t,e,i,o,r,s;return(0,Pn.Jh)(this,function(a){if(this.started){if(null!==n.key)if(this.Ls.test(n.key)){if(null==n.newValue)return t=this.ti(n.key),[2,this.ei(t,null)];if(e=this.ni(n.key,n.newValue))return[2,this.ei(e.clientId,e)]}else if(this.Bs.test(n.key)){if(null!==n.newValue&&(i=this.si(n.key,n.newValue)))return[2,this.ii(i)]}else if(this.qs.test(n.key)){if(null!==n.newValue&&(o=this.ri(n.key,n.newValue)))return[2,this.oi(o)]}else if(n.key===this.Us){if(null!==n.newValue&&(r=this.js(n.newValue)))return[2,this.Ws(r)]}else if(n.key===this.Ms)(s=function(t){var e=Zs.o;if(null!=t)try{var n=JSON.parse(t);Js("number"==typeof n),e=n}catch(i){Bs("SharedClientState","Failed to read sequence number from WebStorage",i)}return e}(n.newValue))!==Zs.o&&this.sequenceNumberHandler(s);else if(n.key===this.Ks)return[2,this.syncEngine.ci()]}else this.$s.push(n);return[2]})})})}},Object.defineProperty(t.prototype,"Js",{get:function(){return this.Fs.get(this.Ns)},enumerable:!1,configurable:!0}),t.prototype.Qs=function(){this.setItem(this.Os,this.Js.Ss())},t.prototype.zs=function(t,e,n){var i=new kd(this.currentUser,t,e,n),o=Md(this.persistenceKey,this.currentUser,t);this.setItem(o,i.Ss())},t.prototype.Hs=function(t){var e=Md(this.persistenceKey,this.currentUser,t);this.removeItem(e)},t.prototype.Xs=function(t){this.storage.setItem(this.Us,JSON.stringify({clientId:this.Ns,onlineState:t}))},t.prototype.Ys=function(t,e,n){var i=Td(this.persistenceKey,t),o=new Sd(t,e,n);this.setItem(i,o.Ss())},t.prototype.Zs=function(){this.setItem(this.Ks,"value-not-used")},t.prototype.ti=function(t){var e=this.Ls.exec(t);return e?e[1]:null},t.prototype.ni=function(t,e){var n=this.ti(t);return Ed.Vs(n,e)},t.prototype.si=function(t,e){var n=this.Bs.exec(t),i=Number(n[1]);return kd.Vs(new Od(void 0!==n[2]?n[2]:null),i,e)},t.prototype.ri=function(t,e){var n=this.qs.exec(t),i=Number(n[1]);return Sd.Vs(i,e)},t.prototype.js=function(t){return Ad.Vs(t)},t.prototype.ii=function(t){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(e){return t.user.uid===this.currentUser.uid?[2,this.syncEngine.ui(t.batchId,t.state,t.error)]:(Gs("SharedCl
1ientState","Ignoring mutation for non-active user "+t.user.uid),[2])})})},t.prototype.oi=function(t){return this.syncEngine.ai(t.targetId,t.state,t.error)},t.prototype.ei=function(t,e){var n=this,i=e?this.Fs.insert(t,e):this.Fs.remove(t),o=this.Gs(this.Fs),r=this.Gs(i),s=[],a=[];return r.forEach(function(t){o.has(t)||s.push(t)}),o.forEach(function(t){r.has(t)||a.push(t)}),this.syncEngine.hi(s,a).then(function(){n.Fs=i})},t.prototype.Ws=function(t){this.Fs.get(t.clientId)&&this.onlineStateHandler(t.onlineState)},t.prototype.Gs=function(t){var e=Cu();return t.forEach(function(t,n){e=e.unionWith(n.activeTargetIds)}),e},t}(),Nd=function(){function t(){this.li=new Id,this.fi={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}return t.prototype.addPendingMutation=function(t){},t.prototype.updateMutationState=function(t,e,n){},t.prototype.addLocalQueryTarget=function(t){return this.li.Ds(t),this.fi[t]||"not-current"},t.prototype.updateQueryState=function(t,e,n){this.fi[t]=e},t.prototype.removeLocalQueryTarget=function(t){this.li.Cs(t)},t.prototype.isLocalQueryTarget=function(t){return this.li.activeTargetIds.has(t)},t.prototype.clearQueryState=function(t){delete this.fi[t]},t.prototype.getAllActiveQueryTargets=function(){return this.li.activeTargetIds},t.prototype.isActiveQueryTarget=function(t){return this.li.activeTargetIds.has(t)},t.prototype.start=function(){return this.li=new Id,Promise.resolve()},t.prototype.handleUserChange=function(t,e,n){},t.prototype.setOnlineState=function(t){},t.prototype.shutdown=function(){},t.prototype.writeSequenceNumber=function(t){},t.prototype.notifyBundleLoaded=function(){},t}(),Ld=function(){function t(){}return t.prototype.di=function(t){},t.prototype.shutdown=function(){},t}(),Dd=function(){function t(){var t=this;this.wi=function(){return t._i()},this.mi=function(){return t.yi()},this.gi=[],this.pi()}return t.prototype.di=function(t){this.gi.push(t)},t.prototype.shutdown=function(){window.removeEventListener("online",this.wi),window.removeEventListener("offline",this.mi)},t.prototype.pi=function(){window.addEventListener("online",this.wi),window.addEventListener("offline",this.mi)},t.prototype._i=function(){Gs("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var t=0,e=this.gi;t<e.length;t++)(0,e[t])(0)},t.prototype.yi=function(){Gs("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var t=0,e=this.gi;t<e.length;t++)(0,e[t])(1)},t.yt=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},t}(),Fd={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},Ud=function(){function t(t){this.Ei=t.Ei,this.Ti=t.Ti}return t.prototype.Ii=function(t){this.Ai=t},t.prototype.Ri=function(t){this.bi=t},t.prototype.onMessage=function(t){this.vi=t},t.prototype.close=function(){this.Ti()},t.prototype.send=function(t){this.Ei(t)},t.prototype.Pi=function(){this.Ai()},t.prototype.Vi=function(t){this.bi(t)},t.prototype.Si=function(t){this.vi(t)},t}(),Zd=function(t){function e(e){var n=this;return(n=t.call(this,e)||this).forceLongPolling=e.forceLongPolling,n.autoDetectLongPolling=e.autoDetectLongPolling,n.useFetchStreams=e.useFetchStreams,n}return(0,Pn.ZT)(e,t),e.prototype.Fi=function(t,e,n,i){return new Promise(function(o,r){var s=new Us;s.listenOnce(Is.COMPLETE,function(){try{switch(s.getLastErrorCode()){case As.NO_ERROR:var e=s.getResponseJson();Gs("Connection","XHR received:",JSON.stringify(e)),o(e);break;case As.TIMEOUT:Gs("Connection",'RPC "'+t+'" timed out'),r(new Vs(qs.DEADLINE_EXCEEDED,"Request time out"));break;case As.HTTP_ERROR:var n=s.getStatus();if(Gs("Connection",'RPC "'+t+'" failed with status:',n,"response text:",s.getResponseText()),n>0){var i=s.getResponseJson().error;if(i&&i.status&&i.message){var a=(c=i.status.toLowerCase().replace(/_/g,"-"),Object.values(qs).indexOf(c)>=0?c:qs.UNKNOWN);r(new Vs(a,i.message))}else r(new Vs(qs.UNKNOWN,"Server responded with status "+s.getStatus()))}else r(new Vs(qs.UNAVAILABLE,"Connection failed."));break;default:Qs()}}finally{Gs("Connection",'RPC "'+t+'" completed.')}var c});var a=JSON.stringify(i);s.send(e,"POST",a,n,15)})},e.prototype.Oi=function(t,e){var n=[this.Di,"/","google.firestore.v1.Firestore","/",t,"/channel"],i=new Ms,o=vo(),r={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database}
1,sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling};this.useFetchStreams&&(r.xmlHttpFactory=new Ds({})),this.ki(r.initMessageHeaders,e),(0,Mn.uI)()||(0,Mn.b$)()||(0,Mn.d)()||(0,Mn.w1)()||(0,Mn.Mn)()||(0,Mn.ru)()||(r.httpHeadersOverwriteParam="$httpHeaders");var s=n.join("");Gs("Connection","Creating WebChannel: "+s,r);var a=i.createWebChannel(s,r),c=!1,u=!1,l=new Ud({Ei:function(t){u?Gs("Connection","Not sending because WebChannel is closed:",t):(c||(Gs("Connection","Opening WebChannel transport."),a.open(),c=!0),Gs("Connection","WebChannel sending:",t),a.send(t))},Ti:function(){return a.close()}}),h=function(t,e,n){t.listen(e,function(t){try{n(t)}catch(e){setTimeout(function(){throw e},0)}})};return h(a,Fs.EventType.OPEN,function(){u||Gs("Connection","WebChannel transport opened.")}),h(a,Fs.EventType.CLOSE,function(){u||(u=!0,Gs("Connection","WebChannel transport closed"),l.Vi())}),h(a,Fs.EventType.ERROR,function(t){u||(u=!0,Hs("Connection","WebChannel transport errored:",t),l.Vi(new Vs(qs.UNAVAILABLE,"The operation could not be completed")))}),h(a,Fs.EventType.MESSAGE,function(t){var e;if(!u){var n=t.data[0];Js(!!n);var i=n.error||(null===(e=n[0])||void 0===e?void 0:e.error);if(i){Gs("Connection","WebChannel received error:",i);var o=i.status,r=function(t){var e=tu[t];if(void 0!==e)return su(e)}(o),s=i.message;void 0===r&&(r=qs.INTERNAL,s="Unknown error status: "+o+" with message "+i.message),u=!0,l.Vi(new Vs(r,s)),a.close()}else Gs("Connection","WebChannel received:",n),l.Si(n)}}),h(o,Rs.STAT_EVENT,function(t){t.stat===Ns?Gs("Connection","Detected buffering proxy"):t.stat===Ls&&Gs("Connection","Detected no buffering proxy")}),setTimeout(function(){l.Pi()},0),l},e}(function(){function t(t){this.databaseInfo=t,this.databaseId=t.databaseId,this.Di=(t.ssl?"https":"http")+"://"+t.host,this.Ci="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}return t.prototype.Ni=function(t,e,n,i){var o=this.xi(t,e);Gs("RestConnection","Sending: ",o,n);var r={};return this.ki(r,i),this.Fi(t,o,r,n).then(function(t){return Gs("RestConnection","Received: ",t),t},function(e){throw Hs("RestConnection",t+" failed with error: ",e,"url: ",o,"request:",n),e})},t.prototype.$i=function(t,e,n,i){return this.Ni(t,e,n,i)},t.prototype.ki=function(t,e){if(t["X-Goog-Api-Client"]="gl-js/ fire/8.10.1",t["Content-Type"]="text/plain",this.databaseInfo.appId&&(t["X-Firebase-GMPID"]=this.databaseInfo.appId),e)for(var n in e.authHeaders)e.authHeaders.hasOwnProperty(n)&&(t[n]=e.authHeaders[n])},t.prototype.xi=function(t,e){return this.Di+"/v1/"+e+":"+Fd[t]},t}());function qd(){return"undefined"!=typeof window?window:null}function Vd(){return"undefined"!=typeof document?document:null}function jd(t){return new Ru(t,!0)}var zd=function(){function t(t,e,n,i,o){void 0===n&&(n=1e3),void 0===i&&(i=1.5),void 0===o&&(o=6e4),this.Se=t,this.timerId=e,this.Mi=n,this.Li=i,this.Bi=o,this.qi=0,this.Ui=null,this.Ki=Date.now(),this.reset()}return t.prototype.reset=function(){this.qi=0},t.prototype.Qi=function(){this.qi=this.Bi},t.prototype.ji=function(t){var e=this;this.cancel();var n=Math.floor(this.qi+this.Wi()),i=Math.max(0,Date.now()-this.Ki),o=Math.max(0,n-i);o>0&&Gs("ExponentialBackoff","Backing off for "+o+" ms (base delay: "+this.qi+" ms, delay with jitter: "+n+" ms, last attempt: "+i+" ms ago)"),this.Ui=this.Se.enqueueAfterDelay(this.timerId,o,function(){return e.Ki=Date.now(),t()}),this.qi*=this.Li,this.qi<this.Mi&&(this.qi=this.Mi),this.qi>this.Bi&&(this.qi=this.Bi)},t.prototype.Gi=function(){null!==this.Ui&&(this.Ui.skipDelay(),this.Ui=null)},t.prototype.cancel=function(){null!==this.Ui&&(this.Ui.cancel(),this.Ui=null)},t.prototype.Wi=function(){return(Math.random()-.5)*this.qi},t}(),Gd=function(){function t(t,e,n,i,o,r){this.Se=t,this.zi=n,this.Hi=i,this.Ji=o,this.listener=r,this.state=0,this.Yi=0,this.Xi=null,this.stream=null,this.Zi=new zd(t,e)}return t.prototype.tr=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.er=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.nr()},t.prototype.stop=function(){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(t){switch(t.label){case 0:return this.tr()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},t.prototype.sr=function(){this.state=0,this.Zi.reset()},t.prototype.ir=function(){var t=this;this.er()&&null===this.Xi&&(this.Xi=this.Se.enqueueAfterDelay(this.zi,6e4,function(){return t.rr()}))},t.prototype.cr=function(t){this.ur(),this.stream.send(t)},t.prototype.rr=function(){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(t){return this.er()?[2,this.close(0)]:[2]})})},t.prototype.ur=function(){this.Xi&&(this.Xi.cancel(),this.Xi=null)},t.prototype.close=function(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return this.ur(),this.Zi.cancel(),this.Yi++,3!==t?this.Zi.reset():e&&e.code===qs.RESOURCE_EXHAUSTED?(Bs(e.toString()),Bs("Using maximum backoff delay to prevent overloading the backend."),this.Zi.Qi()):e&&e.code===qs.UNAUTHENTICATED&&this.Ji.invalidateToken(),null!==this.stream&&(this.ar(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Ri(e)];case 1:return n.sent(),[2]}})})},t.prototype.ar=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.hr(this.Yi),n=this.Yi;this.Ji.getToken().then(function(e){t.Yi===n&&t.lr(e)},function(n){e(function(){var e=new Vs(qs.UNKNOWN,"Fetching auth token failed: "+n.message);return t.dr(e)})})},t.prototype.lr=function(t){var e=this,n=this.hr(this.Yi);this.stream=this.wr(t),this.stream.Ii(function(){n(function(){return e.state=2,e.listener.Ii()})}),this.stream.Ri(function(t){n(function(){return e.dr(t)})}),this.stream.onMessage(function(t){n(function(){return e.onMessage(t)})})},t.prototype.nr=function(){var t=this;this.state=4,this.Zi.ji(function(){return(0,Pn.mG)(t,void 0,void 0,function(){return(0,Pn.Jh)(this,function(t){return this.state=0,this.start(),[2]})})})},t.prototype.dr=function(t){return Gs("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.hr=function(t){var e=this;return function(n){e.Se.enqueueAndForget(function(){return e.Yi===t?n():(Gs("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())})}},t}(),Bd=function(t){function e(e,n,i,o,r){var s=this;return(s=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,i,r)||this).R=o,s}return(0,Pn.ZT)(e,t),e.prototype.wr=function(t){return this.Hi.Oi("Listen",t)},e.prototype.onMessage=function(t){this.Zi.reset();var e=function(t,e){var n,i;if("targetChange"in e){var o="NO_CHANGE"===(i=e.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===i?1:"REMOVE"===i?2:"CURRENT"===i?3:"RESET"===i?4:Qs(),r=e.targetChange.targetIds||[],s=function(t,e){return t.I?(Js(void 0===e||"string"==typeof e),da.fromBase64String(e||"")):(Js(void 0===e||e instanceof Uint8Array),da.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),a=(c=e.targetChange.cause)&&function(t){var e=void 0===t.code?qs.UNKNOWN:su(t.code);return new Vs(e,t.message||"")}(c);n=new Mu(o,r,s,a||null)}else if("documentChange"in e){r=Vu(t,(o=e.documentChange).document.name),s=Fu(o.document.updateTime);var c=new Ua({mapValue:{fields:o.document.fields}}),u=(a=qa.newFoundDocument(r,s,c),o.targetIds||[]);n=new Ou(u,o.removedTargetIds||[],a.key,a)}else if("documentDelete"in e)r=Vu(t,(o=e.documentDelete).document),s=o.readTime?Fu(o.readTime):ia.min(),c=qa.newNoDocument(r,s),n=new Ou([],a=o.removedTargetIds||[],c.key,c);else if("documentRemove"in e)r=Vu(t,(o=e.documentRemove).document),n=new Ou([],s=o.removedTargetIds||[],r,null);else{if(!("filter"in e))return Qs();var l=e.filter;r=new ou(o=l.count||0),n=new Pu(s=l.targetId,r)}return n}(this.R,t),n=function(t){if(!("targetChange"in t))return ia.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?ia.min():e.readTime?Fu(e.readTime):ia.min()}(t);return this.listener._r(e,n)},e.prototype.mr=function(t){var e,n,i,o,r={};r.database=Gu(this.R),r.addTarget=(e=this.R,(i=Ba(o=(n=t).target)?{documents:$u(e,o)}:{query:Wu(e,o)}).targetId=n.targetId,n.resumeToken.approximateByteSize()>0?i.resumeToken=Lu(e,n.resumeToken):n.snapshotVersion.compareTo(ia.min())>0&&(i.readTime=Nu(e,n.snapshotVersion.toTimestamp())),i);var s=function(t,e){var n=function(t,e){switch(e){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return Qs()}}(0,e.purpose);return null==n?null:{"goog-listen-tags":n}}(0,t);s&&(r.labels=s),this.cr(r)},e.prototype.yr=function(t){var e={};e.database=Gu(this.R),e.removeTarget=t,this.cr(e)},e}(Gd),Hd=function(t){function e(e,n,i,o,r){var s=this;return(s=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,i,r)||this).R=o,s.gr=!1,s}return(0,Pn.ZT)(e,t),Object.defineProperty(e.prototype,"pr",{get:function(){return this.gr}
1,enumerable:!1,configurable:!0}),e.prototype.start=function(){this.gr=!1,this.lastStreamToken=void 0,t.prototype.start.call(this)},e.prototype.ar=function(){this.gr&&this.Er([])},e.prototype.wr=function(t){return this.Hi.Oi("Write",t)},e.prototype.onMessage=function(t){if(Js(!!t.streamToken),this.lastStreamToken=t.streamToken,this.gr){this.Zi.reset();var e=(o=t.commitTime,(i=t.writeResults)&&i.length>0?(Js(void 0!==o),i.map(function(t){return n=o,(i=Fu((e=t).updateTime?e.updateTime:n)).isEqual(ia.min())&&(i=Fu(n)),new qc(i,e.transformResults||[]);var e,n,i})):[]),n=Fu(t.commitTime);return this.listener.Tr(n,e)}var i,o;return Js(!t.writeResults||0===t.writeResults.length),this.gr=!0,this.listener.Ir()},e.prototype.Ar=function(){var t={};t.database=Gu(this.R),this.cr(t)},e.prototype.Er=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map(function(t){return Qu(e.R,t)})};this.cr(n)},e}(Gd),Yd=function(t){function e(e,n,i){var o=this;return(o=t.call(this)||this).credentials=e,o.Hi=n,o.R=i,o.Rr=!1,o}return(0,Pn.ZT)(e,t),e.prototype.br=function(){if(this.Rr)throw new Vs(qs.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.Ni=function(t,e,n){var i=this;return this.br(),this.credentials.getToken().then(function(o){return i.Hi.Ni(t,e,n,o)}).catch(function(t){throw"FirebaseError"===t.name?(t.code===qs.UNAUTHENTICATED&&i.credentials.invalidateToken(),t):new Vs(qs.UNKNOWN,t.toString())})},e.prototype.$i=function(t,e,n){var i=this;return this.br(),this.credentials.getToken().then(function(o){return i.Hi.$i(t,e,n,o)}).catch(function(t){throw"FirebaseError"===t.name?(t.code===qs.UNAUTHENTICATED&&i.credentials.invalidateToken(),t):new Vs(qs.UNKNOWN,t.toString())})},e.prototype.terminate=function(){this.Rr=!0},e}(function(){}),Qd=function(){function t(t,e){this.asyncQueue=t,this.onlineStateHandler=e,this.state="Unknown",this.vr=0,this.Pr=null,this.Vr=!0}return t.prototype.Sr=function(){var t=this;0===this.vr&&(this.Dr("Unknown"),this.Pr=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,function(){return t.Pr=null,t.Cr("Backend didn't respond within 10 seconds."),t.Dr("Offline"),Promise.resolve()}))},t.prototype.Nr=function(t){"Online"===this.state?this.Dr("Unknown"):(this.vr++,this.vr>=1&&(this.kr(),this.Cr("Connection failed 1 times. Most recent error: "+t.toString()),this.Dr("Offline")))},t.prototype.set=function(t){this.kr(),this.vr=0,"Online"===t&&(this.Vr=!1),this.Dr(t)},t.prototype.Dr=function(t){t!==this.state&&(this.state=t,this.onlineStateHandler(t))},t.prototype.Cr=function(t){var e="Could not reach Cloud Firestore backend. "+t+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.Vr?(Bs(e),this.Vr=!1):Gs("OnlineStateTracker",e)},t.prototype.kr=function(){null!==this.Pr&&(this.Pr.cancel(),this.Pr=null)},t}(),Jd=function(t,e,n,i,o){var r=this;this.localStore=t,this.datastore=e,this.asyncQueue=n,this.remoteSyncer={},this.Fr=[],this.$r=new Map,this.Or=new Set,this.Mr=[],this.Lr=o,this.Lr.di(function(t){n.enqueueAndForget(function(){return(0,Pn.mG)(r,void 0,void 0,function(){return(0,Pn.Jh)(this,function(t){switch(t.label){case 0:return op(this)?(Gs("RemoteStore","Restarting streams for network reachability change."),[4,function(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return(e=$s(t)).Or.add(4),[4,Wd(e)];case 1:return n.sent(),e.Br.set("Unknown"),e.Or.delete(4),[4,$d(e)];case 2:return n.sent(),[2]}})})}(this)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})})}),this.Br=new Qd(n,i)};function $d(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e,n;return(0,Pn.Jh)(this,function(i){switch(i.label){case 0:if(!op(t))return[3,4];e=0,n=t.Mr,i.label=1;case 1:return e<n.length?[4,(0,n[e])(!0)]:[3,4];case 2:i.sent(),i.label=3;case 3:return e++,[3,1];case 4:return[2]}})})}function Wd(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e,n;return(0,Pn.Jh)(this,function(i){switch(i.label){case 0:e=0,n=t.Mr,i.label=1;case 1:return e<n.length?[4,(0,n[e])(!1)]:[3,4];case 2:i.sent(),i.label=3;case 3:return e++,[3,1];case 4:return[2]}})})}function Kd(t,e){var n=$s(t);n.$r.has(e.targetId)||(n.$r.set(e.targetId,e),ip(n)?np(n):bp(n).er()&&tp(n,e))}function Xd(t,e){var n=$s(t),i=bp(n);n.$r.delete(e),i.er()&&ep(n,e),0===n.$r.size&&(i.er()?i.ir():op(n)&&n.Br.set("Unknown"))}function tp(t,e){t.qr.U(e.targetId),bp(t).mr(e)}function ep(t,e){t.qr.U(e),bp(t).yr(e)}function np(t){t.qr=new ku({getRemoteKeysForTarget:function(e){return t.remoteSyncer.getRemoteKeysForTarget(e)},lt:function(e){return t.$r.get(e)||null}}),bp(t).start(),t.Br.Sr()}function ip(t){return op(t)&&!bp(t).tr()&&t.$r.size>0}function op(t){return 0===$s(t).Or.size}function rp(t){t.qr=void 0}function sp(t){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(e){return t.$r.forEach(function(e,n){tp(t,e)}),[2]})})}function ap(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(n){return rp(t),ip(t)?(t.Br.Nr(e),np(t)):t.Br.set("Unknown"),[2]})})}function cp(t,e,n){return(0,Pn.mG)(this,void 0,void 0,function(){var i,o,r;return(0,Pn.Jh)(this,function(s){switch(s.label){case 0:if(t.Br.set("Online"),!(e instanceof Mu&&2===e.state&&e.cause))return[3,6];s.label=1;case 1:return s.trys.push([1,3,,5]),[4,function(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i,o,r;return(0,Pn.Jh)(this,function(s){switch(s.label){case 0:n=e.cause,i=0,o=e.targetIds,s.label=1;case 1:return i<o.length?t.$r.has(r=o[i])?[4,t.remoteSyncer.rejectListen(r,n)]:[3,3]:[3,5];case 2:s.sent(),t.$r.delete(r),t.qr.removeTarget(r),s.label=3;case 3:s.label=4;case 4:return i++,[3,1];case 5:return[2]}})})}(t,e)];case 2:return s.sent(),[3,5];case 3:return i=s.sent(),Gs("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),i),[4,up(t,i)];case 4:return s.sent(),[3,5];case 5:return[3,13];case 6:if(e instanceof Ou?t.qr.X(e):e instanceof Pu?t.qr.rt(e):t.qr.et(e),n.isEqual(ia.min()))return[3,13];s.label=7;case 7:return s.trys.push([7,11,,13]),[4,nd(t.localStore)];case 8:return o=s.sent(),n.compareTo(o)>
1=0?[4,(a=t,c=n,u=a.qr.ut(c),u.targetChanges.forEach(function(t,e){if(t.resumeToken.approximateByteSize()>0){var n=a.$r.get(e);n&&a.$r.set(e,n.withResumeToken(t.resumeToken,c))}}),u.targetMismatches.forEach(function(t){var e=a.$r.get(t);if(e){a.$r.set(t,e.withResumeToken(da.EMPTY_BYTE_STRING,e.snapshotVersion)),ep(a,t);var n=new Ql(e.target,t,1,e.sequenceNumber);tp(a,n)}}),a.remoteSyncer.applyRemoteEvent(u))]:[3,10];case 9:s.sent(),s.label=10;case 10:return[3,13];case 11:return Gs("RemoteStore","Failed to raise snapshot:",r=s.sent()),[4,up(t,r)];case 12:return s.sent(),[3,13];case 13:return[2]}var a,c,u})})}function up(t,e,n){return(0,Pn.mG)(this,void 0,void 0,function(){var i=this;return(0,Pn.Jh)(this,function(o){switch(o.label){case 0:if(!Zl(e))throw e;return t.Or.add(1),[4,Wd(t)];case 1:return o.sent(),t.Br.set("Offline"),n||(n=function(){return nd(t.localStore)}),t.asyncQueue.enqueueRetryable(function(){return(0,Pn.mG)(i,void 0,void 0,function(){return(0,Pn.Jh)(this,function(e){switch(e.label){case 0:return Gs("RemoteStore","Retrying IndexedDB access"),[4,n()];case 1:return e.sent(),t.Or.delete(1),[4,$d(t)];case 2:return e.sent(),[2]}})})}),[2]}})})}function lp(t,e){return e().catch(function(n){return up(t,n,e)})}function hp(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e,n,i,o,r;return(0,Pn.Jh)(this,function(s){switch(s.label){case 0:e=$s(t),n=vp(e),i=e.Fr.length>0?e.Fr[e.Fr.length-1].batchId:-1,s.label=1;case 1:if(!(op(a=e)&&a.Fr.length<10))return[3,7];s.label=2;case 2:return s.trys.push([2,4,,6]),[4,rd(e.localStore,i)];case 3:return null===(o=s.sent())?(0===e.Fr.length&&n.ir(),[3,7]):(i=o.batchId,function(t,e){t.Fr.push(e);var n=vp(t);n.er()&&n.pr&&n.Er(e.mutations)}(e,o),[3,6]);case 4:return r=s.sent(),[4,up(e,r)];case 5:return s.sent(),[3,6];case 6:return[3,1];case 7:return dp(e)&&pp(e),[2]}var a})})}function dp(t){return op(t)&&!vp(t).tr()&&t.Fr.length>0}function pp(t){vp(t).start()}function fp(t){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(e){return vp(t).Ar(),[2]})})}function gp(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e,n,i;return(0,Pn.Jh)(this,function(o){for(e=vp(t),n=0,i=t.Fr;n<i.length;n++)e.Er(i[n].mutations);return[2]})})}function mp(t,e,n){return(0,Pn.mG)(this,void 0,void 0,function(){var i,o;return(0,Pn.Jh)(this,function(r){switch(r.label){case 0:return i=t.Fr.shift(),o=Yl.from(i,e,n),[4,lp(t,function(){return t.remoteSyncer.applySuccessfulWrite(o)})];case 1:return r.sent(),[4,hp(t)];case 2:return r.sent(),[2]}})})}function _p(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return e&&vp(t).pr?[4,function(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i;return(0,Pn.Jh)(this,function(o){switch(o.label){case 0:return ru(i=e.code)&&i!==qs.ABORTED?(n=t.Fr.shift(),vp(t).sr(),[4,lp(t,function(){return t.remoteSyncer.rejectFailedWrite(n.batchId,e)})]):[3,3];case 1:return o.sent(),[4,hp(t)];case 2:o.sent(),o.label=3;case 3:return[2]}})})}(t,e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return dp(t)&&pp(t),[2]}})})}function yp(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n;return(0,Pn.Jh)(this,function(i){switch(i.label){case 0:return n=$s(t),e?(n.Or.delete(2),[4,$d(n)]):[3,2];case 1:return i.sent(),[3,5];case 2:return e?[3,4]:(n.Or.add(2),[4,Wd(n)]);case 3:i.sent(),n.Br.set("Unknown"),i.label=4;case 4:i.label=5;case 5:return[2]}})})}function bp(t){var e,n,i,o,r=this;return t.Ur||(t.Ur=(e=t.datastore,n=t.asyncQueue,i={Ii:sp.bind(null,t),Ri:ap.bind(null,t),_r:cp.bind(null,t)},(o=$s(e)).br(),new Bd(n,o.Hi,o.credentials,o.R,i)),t.Mr.push(function(e){return(0,Pn.mG)(r,void 0,void 0,function(){return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return e?(t.Ur.sr(),ip(t)?np(t):t.Br.set("Unknown"),[3,3]):[3,1];case 1:return[4,t.Ur.stop()];case 2:n.sent(),rp(t),n.label=3;case 3:return[2]}})})})),t.Ur}function vp(t){var e,n,i,o,r=this;return t.Kr||(t.Kr=(e=t.datastore,n=t.asyncQueue,i={Ii:fp.bind(null,t),Ri:_p.bind(null,t),Ir:gp.bind(null,t),Tr:mp.bind(null,t)},(o=$s(e)).br(),new Hd(n,o.Hi,o.credentials,o.R,i)),t.Mr.push(function(e){return(0,Pn.mG)(r,void 0,void 0,function(){return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return e?(t.Kr.sr(),[4,hp(t)]):[3,2];case 1:return n.sent(),[3,4];case 2:return[4,t.Kr.stop()];case 3:n.sent(),t.Fr.length>0&&(Gs("RemoteStore","Stopping write stream with "+t.Fr.length+" pending writes"),t.Fr=[]),n.label=4;case 4:return[2]}})})})),t.Kr}var Cp=function(){function t(t,e,n,i,o){this.asyncQueue=t,this.timerId=e,this.targetTimeMs=n,this.op=i,this.removalCallback=o,this.deferred=new Rl,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(function(t){})}return t.createAndSchedule=function(e,n,i,o,r){var s=new t(e,n,Date.now()+i,o,r);return s.start(i),s},t.prototype.start=function(t){var e=this;this.timerHandle=setTimeout(function(){return e.handleDelayElapsed()},t)},t.prototype.skipDelay=function(){return this.handleDelayElapsed()},t.prototype.cancel=function(t){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Vs(qs.CANCELLED,"Operation cancelled"+(t?": "+t:"")))
1)},t.prototype.handleDelayElapsed=function(){var t=this;this.asyncQueue.enqueueAndForget(function(){return null!==t.timerHandle?(t.clearTimeout(),t.op().then(function(e){return t.deferred.resolve(e)})):Promise.resolve()})},t.prototype.clearTimeout=function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)},t}();function xp(t,e){if(Bs("AsyncQueue",e+": "+t),Zl(t))return new Vs(qs.UNAVAILABLE,e+": "+t);throw t}var wp=function(){function t(t){this.comparator=t?function(e,n){return t(e,n)||wa.comparator(e.key,n.key)}:function(t,e){return wa.comparator(t.key,e.key)},this.keyedMap=gu(),this.sortedSet=new au(this.comparator)}return t.emptySet=function(e){return new t(e.comparator)},t.prototype.has=function(t){return null!=this.keyedMap.get(t)},t.prototype.get=function(t){return this.keyedMap.get(t)},t.prototype.first=function(){return this.sortedSet.minKey()},t.prototype.last=function(){return this.sortedSet.maxKey()},t.prototype.isEmpty=function(){return this.sortedSet.isEmpty()},t.prototype.indexOf=function(t){var e=this.keyedMap.get(t);return e?this.sortedSet.indexOf(e):-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.sortedSet.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t){this.sortedSet.inorderTraversal(function(e,n){return t(e),!1})},t.prototype.add=function(t){var e=this.delete(t.key);return e.copy(e.keyedMap.insert(t.key,t),e.sortedSet.insert(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.copy(this.keyedMap.remove(t),this.sortedSet.remove(e)):this},t.prototype.isEqual=function(e){if(!(e instanceof t)||this.size!==e.size)return!1;for(var n=this.sortedSet.getIterator(),i=e.sortedSet.getIterator();n.hasNext();){var o=n.getNext().key,r=i.getNext().key;if(!o.isEqual(r))return!1}return!0},t.prototype.toString=function(){var t=[];return this.forEach(function(e){t.push(e.toString())}),0===t.length?"DocumentSet ()":"DocumentSet (\n  "+t.join("  \n")+"\n)"},t.prototype.copy=function(e,n){var i=new t;return i.comparator=this.comparator,i.keyedMap=e,i.sortedSet=n,i},t}(),Op=function(){function t(){this.Qr=new au(wa.comparator)}return t.prototype.track=function(t){var e=t.doc.key,n=this.Qr.get(e);n?0!==t.type&&3===n.type?this.Qr=this.Qr.insert(e,t):3===t.type&&1!==n.type?this.Qr=this.Qr.insert(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.Qr=this.Qr.insert(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.Qr=this.Qr.insert(e,{type:0,doc:t.doc}):1===t.type&&0===n.type?this.Qr=this.Qr.remove(e):1===t.type&&2===n.type?this.Qr=this.Qr.insert(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.Qr=this.Qr.insert(e,{type:2,doc:t.doc}):Qs():this.Qr=this.Qr.insert(e,t)},t.prototype.jr=function(){var t=[];return this.Qr.inorderTraversal(function(e,n){t.push(n)}),t},t}(),Pp=function(){function t(t,e,n,i,o,r,s,a){this.query=t,this.docs=e,this.oldDocs=n,this.docChanges=i,this.mutatedKeys=o,this.fromCache=r,this.syncStateChanged=s,this.excludesMetadataChanges=a}return t.fromInitialDocuments=function(e,n,i,o){var r=[];return n.forEach(function(t){r.push({type:0,doc:t})}),new t(e,n,wp.emptySet(n),r,i,o,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.mutatedKeys.isEmpty()},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.syncStateChanged===t.syncStateChanged&&this.mutatedKeys.isEqual(t.mutatedKeys)&&yc(this.query,t.query)&&this.docs.isEqual(t.docs)&&this.oldDocs.isEqual(t.oldDocs)))return!1;var e=this.docChanges,n=t.docChanges;if(e.length!==n.length)return!1;for(var i=0;i<e.length;i++)if(e[i].type!==n[i].type||!e[i].doc.isEqual(n[i].doc))return!1;return!0},t}(),Mp=function(){this.Wr=void 0,this.listeners=[]},Tp=function(){this.queries=new Nh(function(t){return bc(t)},yc),this.onlineState="Unknown",this.Gr=new Set};function kp(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i,o,r,s,a,c;return(0,Pn.Jh)(this,function(u){switch(u.label){case 0:if(n=$s(t),o=!1,(r=n.queries.get(i=e.query))||(o=!0,r=new Mp),!o)return[3,4];u.label=1;case 1:return u.trys.push([1,3,,4]),s=r,[4,n.onListen(i)];case 2:return s.Wr=u.sent(),[3,4];case 3:return a=u.sent(),c=xp(a,"Initialization of query '"+vc(e.query)+"' failed"),[2,void e.onError(c)];case 4:return n.queries.set(i,r),r.listeners.push(e),e.zr(n.onlineState),r.Wr&&e.Hr(r.Wr)&&Ip(n),[2]}})})}function Sp(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i,o,r,s;return(0,Pn.Jh)(this,function(a){return n=$s(t),o=!1,(r=n.queries.get(i=e.query))&&
1(s=r.listeners.indexOf(e))>=0&&(r.listeners.splice(s,1),o=0===r.listeners.length),o?[2,(n.queries.delete(i),n.onUnlisten(i))]:[2]})})}function Ep(t,e){for(var n=$s(t),i=!1,o=0,r=e;o<r.length;o++){var s=r[o],a=n.queries.get(s.query);if(a){for(var c=0,u=a.listeners;c<u.length;c++)u[c].Hr(s)&&(i=!0);a.Wr=s}}i&&Ip(n)}function Ap(t,e,n){var i=$s(t),o=i.queries.get(e);if(o)for(var r=0,s=o.listeners;r<s.length;r++)s[r].onError(n);i.queries.delete(e)}function Ip(t){t.Gr.forEach(function(t){t.next()})}var Rp=function(){function t(t,e,n){this.query=t,this.Jr=e,this.Yr=!1,this.Xr=null,this.onlineState="Unknown",this.options=n||{}}return t.prototype.Hr=function(t){if(!this.options.includeMetadataChanges){for(var e=[],n=0,i=t.docChanges;n<i.length;n++){var o=i[n];3!==o.type&&e.push(o)}t=new Pp(t.query,t.docs,t.oldDocs,e,t.mutatedKeys,t.fromCache,t.syncStateChanged,!0)}var r=!1;return this.Yr?this.Zr(t)&&(this.Jr.next(t),r=!0):this.eo(t,this.onlineState)&&(this.no(t),r=!0),this.Xr=t,r},t.prototype.onError=function(t){this.Jr.error(t)},t.prototype.zr=function(t){this.onlineState=t;var e=!1;return this.Xr&&!this.Yr&&this.eo(this.Xr,t)&&(this.no(this.Xr),e=!0),e},t.prototype.eo=function(t,e){return!t.fromCache||!(this.options.so&&"Offline"!==e||t.docs.isEmpty()&&"Offline"!==e)},t.prototype.Zr=function(t){return t.docChanges.length>0||!!(t.syncStateChanged||this.Xr&&this.Xr.hasPendingWrites!==t.hasPendingWrites)&&!0===this.options.includeMetadataChanges},t.prototype.no=function(t){t=Pp.fromInitialDocuments(t.query,t.docs,t.mutatedKeys,t.fromCache),this.Yr=!0,this.Jr.next(t)},t}(),Np=function(){function t(t,e){this.payload=t,this.byteLength=e}return t.prototype.io=function(){return"metadata"in this.payload},t}(),Lp=function(){function t(t){this.R=t}return t.prototype.qn=function(t){return Vu(this.R,t)},t.prototype.Un=function(t){return t.metadata.exists?Yu(this.R,t.document,!1):qa.newNoDocument(this.qn(t.metadata.name),this.Kn(t.metadata.readTime))},t.prototype.Kn=function(t){return Fu(t)},t}();!function(){function t(t,e,n){this.ro=t,this.localStore=e,this.R=n,this.queries=[],this.documents=[],this.progress=function(t){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:t.totalDocuments,totalBytes:t.totalBytes}}(t)}t.prototype.oo=function(t){this.progress.bytesLoaded+=t.byteLength;var e=this.progress.documentsLoaded;return t.payload.namedQuery?this.queries.push(t.payload.namedQuery):t.payload.documentMetadata?(this.documents.push({metadata:t.payload.documentMetadata}),t.payload.documentMetadata.exists||++e):t.payload.document&&(this.documents[this.documents.length-1].document=t.payload.document,++e),e!==this.progress.documentsLoaded?(this.progress.documentsLoaded=e,Object.assign({},this.progress)):null},t.prototype.co=function(t){for(var e=new Map,n=new Lp(this.R),i=0,o=t;i<o.length;i++){var r=o[i];if(r.metadata.queries)for(var s=n.qn(r.metadata.name),a=0,c=r.metadata.queries;a<c.length;a++){var u=c[a],l=(e.get(u)||bu()).add(s);e.set(u,l)}}return e},t.prototype.complete=function(){return(0,Pn.mG)(this,void 0,void 0,function(){var t,e,n,i,o;return(0,Pn.Jh)(this,function(r){switch(r.label){case 0:return[4,dd(this.localStore,new Lp(this.R),this.documents,this.ro.id)];case 1:t=r.sent(),e=this.co(this.documents),n=0,i=this.queries,r.label=2;case 2:return n<i.length?[4,pd(this.localStore,o=i[n],e.get(o.name))]:[3,5];case 3:r.sent(),r.label=4;case 4:return n++,[3,2];case 5:return[2,(this.progress.taskState="Success",new Qh(Object.assign({},this.progress),t))]}})})}}();var Dp=function(t){this.key=t},Fp=function(t){this.key=t},Up=function(){function t(t,e){this.query=t,this.uo=e,this.ao=null,this.current=!1,this.ho=bu(),this.mutatedKeys=bu(),this.lo=xc(t),this.fo=new wp(this.lo)}return Object.defineProperty(t.prototype,"wo",{get:function(){return this.uo},enumerable:!1,configurable:!0}),t.prototype._o=function(t,e){var n=this,i=e?e.mo:new Op,o=e?e.fo:this.fo,r=e?e.mutatedKeys:this.mutatedKeys,s=o,a=!1,c=lc(this.query)&&o.size===this.query.limit?o.last():null,u=hc(this.query)&&o.size===this.query.limit?o.first():null;if(t.inorderTraversal(function(t,e){var l=o.get(t),h=Cc(n.query,e)?e:null,d=!!l&&n.mutatedKeys.has(l.key),p=!!h&&(h.hasLocalMutations||n.mutatedKeys.has(h.key)&&h.hasCommittedMutations),f=!1;l&&h?l.data.isEqual(h.data)?d!==p&&(i.track({type:3,doc:h}),f=!0):n.yo(l,h)||(i.track({type:2,doc:h}),f=!0,(c&&n.lo(h,c)>0||u&&n.lo(h,u)<0)&&(a=!0)):!l&&h?(i.track({type:0,doc:h}),f=!0):l&&!h&&(i.track({type:1,doc:l}),f=!0,(c||u)&&(a=!0)),f&&(h?(s=s.add(h),r=p?r.add(t):r.delete(t)):(s=s.delete(t),r=r.delete(t)))}),lc(this.query)||hc(this.query))for(;s.size>this.query.limit;){var l=lc(this.query)?s.last():s.first();s=s.delete(l.key),r=r.delete(l.key),i.track({type:1,doc:l})}return{fo:s,mo:i,Nn:a,mutatedKeys:r}},t.prototype.yo=function(t,e){return t.hasLocalMutations&&e.hasCommittedMutations&&!e.hasLocalMutations},t.prototype.applyChanges=function(t,e,n){var i=this,o=this.fo;this.fo=t.fo,this.mutatedKeys=t.mutatedKeys;var r=t.mo.jr();r.sort(function(t,e){return n=e.type,(o=function(t){switch(t){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Qs()}})(t.type)-o(n)||i.lo(t.doc,e.doc);var n,o}),this.po(n);var s=e?this.Eo():[],a=0===this.ho.size&&this.current?1:0,c=a!==this.ao;return this.ao=a,0!==r.length||c?{snapshot:new Pp(this.query,t.fo,o,r,t.mutatedKeys,0===a,c,!1),To:s}:{To:s}},t.prototype.zr=function(t){return this.current&&"Offline"===t?(this.current=!1,this.applyChanges({fo:this.fo,mo:new Op,mutatedKeys:this.mutatedKeys,Nn:!1},!1)):{To:[]}},t.prototype.Io=function(t){return!this.uo.has(t)&&!!this.fo.has(t)&&!this.fo.get(t).hasLocalMutations},t.prototype.po=function(t){var e=this;
1t&&(t.addedDocuments.forEach(function(t){return e.uo=e.uo.add(t)}),t.modifiedDocuments.forEach(function(t){}),t.removedDocuments.forEach(function(t){return e.uo=e.uo.delete(t)}),this.current=t.current)},t.prototype.Eo=function(){var t=this;if(!this.current)return[];var e=this.ho;this.ho=bu(),this.fo.forEach(function(e){t.Io(e.key)&&(t.ho=t.ho.add(e.key))});var n=[];return e.forEach(function(e){t.ho.has(e)||n.push(new Fp(e))}),this.ho.forEach(function(t){e.has(t)||n.push(new Dp(t))}),n},t.prototype.Ao=function(t){this.uo=t.Bn,this.ho=bu();var e=this._o(t.documents);return this.applyChanges(e,!0)},t.prototype.Ro=function(){return Pp.fromInitialDocuments(this.query,this.fo,this.mutatedKeys,0===this.ao)},t}(),Zp=function(t,e,n){this.query=t,this.targetId=e,this.view=n},qp=function(t){this.key=t,this.bo=!1},Vp=function(){function t(t,e,n,i,o,r){this.localStore=t,this.remoteStore=e,this.eventManager=n,this.sharedClientState=i,this.currentUser=o,this.maxConcurrentLimboResolutions=r,this.vo={},this.Po=new Nh(function(t){return bc(t)},yc),this.Vo=new Map,this.So=new Set,this.Do=new au(wa.comparator),this.Co=new Map,this.No=new gd,this.xo={},this.ko=new Map,this.Fo=xh.Yt(),this.onlineState="Unknown",this.$o=void 0}return Object.defineProperty(t.prototype,"isPrimaryClient",{get:function(){return!0===this.$o},enumerable:!1,configurable:!0}),t}();function jp(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i,o,r,s;return(0,Pn.Jh)(this,function(a){switch(a.label){case 0:return n=yf(t),(o=n.Po.get(e))?(n.sharedClientState.addLocalQueryTarget(o.targetId),i=o.view.Ro(),[3,4]):[3,1];case 1:return[4,sd(n.localStore,mc(e))];case 2:return r=a.sent(),s=n.sharedClientState.addLocalQueryTarget(r.targetId),[4,zp(n,e,r.targetId,"current"===s)];case 3:i=a.sent(),n.isPrimaryClient&&Kd(n.remoteStore,r),a.label=4;case 4:return[2,i]}})})}function zp(t,e,n,i){return(0,Pn.mG)(this,void 0,void 0,function(){var o,r,s,a,c,u;return(0,Pn.Jh)(this,function(l){switch(l.label){case 0:return t.Oo=function(e,n,i){return function(t,e,n,i){return(0,Pn.mG)(this,void 0,void 0,function(){var o,r,s;return(0,Pn.Jh)(this,function(a){switch(a.label){case 0:return(o=e.view._o(n)).Nn?[4,cd(t.localStore,e.query,!1).then(function(t){return e.view._o(t.documents,o)})]:[3,2];case 1:o=a.sent(),a.label=2;case 2:return r=i&&i.targetChanges.get(e.targetId),s=e.view.applyChanges(o,t.isPrimaryClient,r),[2,(nf(t,e.targetId,s.To),s.snapshot)]}})})}(t,e,n,i)},[4,cd(t.localStore,e,!0)];case 1:return o=l.sent(),r=new Up(e,o.Bn),s=r._o(o.documents),a=wu.createSynthesizedTargetChangeForCurrentChange(n,i&&"Offline"!==t.onlineState),c=r.applyChanges(s,t.isPrimaryClient,a),nf(t,n,c.To),u=new Zp(e,n,r),[2,(t.Po.set(e,u),t.Vo.has(n)?t.Vo.get(n).push(e):t.Vo.set(n,[e]),c.snapshot)]}})})}function Gp(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i,o;return(0,Pn.Jh)(this,function(r){switch(r.label){case 0:return n=$s(t),i=n.Po.get(e),(o=n.Vo.get(i.targetId)).length>1?[2,(n.Vo.set(i.targetId,o.filter(function(t){return!yc(t,e)})),void n.Po.delete(e))]:n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(i.targetId),n.sharedClientState.isActiveQueryTarget(i.targetId)?[3,2]:[4,ad(n.localStore,i.targetId,!1).then(function(){n.sharedClientState.clearQueryState(i.targetId),Xd(n.remoteStore,i.targetId),tf(n,i.targetId)}).catch(Th)]):[3,3];case 1:r.sent(),r.label=2;case 2:return[3,5];case 3:return tf(n,i.targetId),[4,ad(n.localStore,i.targetId,!0)];case 4:r.sent(),r.label=5;case 5:return[2]}})})}function Bp(t,e,n){return(0,Pn.mG)(this,void 0,void 0,function(){var i,o,r,s;return(0,Pn.Jh)(this,function(a){switch(a.label){case 0:i=bf(t),a.label=1;case 1:return a.trys.push([1,5,,6]),[4,(c=i.localStore,u=e,h=$s(c),d=na.now(),p=u.reduce(function(t,e){return t.add(e.key)},bu()),h.persistence.runTransaction("Locally write mutations","readwrite",function(t){return h.Mn.pn(t,p).next(function(e){l=e;for(var n=[],i=0,o=u;i<o.length;i++){var r=o[i],s=Hc(r,l.get(r.key));null!=s&&n.push(new $c(r.key,s,Za(s.value.mapValue),Vc.exists(!0)))}return h._n.addMutationBatch(t,d,n,u)})}).then(function(t){return t.applyToLocalDocumentSet(l),{batchId:t.batchId,changes:l}}))];
1case 2:return o=a.sent(),i.sharedClientState.addPendingMutation(o.batchId),function(t,e,n){var i=t.xo[t.currentUser.toKey()];i||(i=new au(Xs)),i=i.insert(e,n),t.xo[t.currentUser.toKey()]=i}(i,o.batchId,n),[4,sf(i,o.changes)];case 3:return a.sent(),[4,hp(i.remoteStore)];case 4:return a.sent(),[3,6];case 5:return r=a.sent(),s=xp(r,"Failed to persist write"),n.reject(s),[3,6];case 6:return[2]}var c,u,l,h,d,p})})}function Hp(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i;return(0,Pn.Jh)(this,function(o){switch(o.label){case 0:n=$s(t),o.label=1;case 1:return o.trys.push([1,4,,6]),[4,id(n.localStore,e)];case 2:return i=o.sent(),e.targetChanges.forEach(function(t,e){var i=n.Co.get(e);i&&(Js(t.addedDocuments.size+t.modifiedDocuments.size+t.removedDocuments.size<=1),t.addedDocuments.size>0?i.bo=!0:t.modifiedDocuments.size>0?Js(i.bo):t.removedDocuments.size>0&&(Js(i.bo),i.bo=!1))}),[4,sf(n,i,e)];case 3:return o.sent(),[3,6];case 4:return[4,Th(o.sent())];case 5:return o.sent(),[3,6];case 6:return[2]}})})}function Yp(t,e,n){var i=$s(t);if(i.isPrimaryClient&&0===n||!i.isPrimaryClient&&1===n){var o=[];i.Po.forEach(function(t,n){var i=n.view.zr(e);i.snapshot&&o.push(i.snapshot)}),function(t,e){var n=$s(t);n.onlineState=e;var i=!1;n.queries.forEach(function(t,n){for(var o=0,r=n.listeners;o<r.length;o++)r[o].zr(e)&&(i=!0)}),i&&Ip(n)}(i.eventManager,e),o.length&&i.vo._r(o),i.onlineState=e,i.isPrimaryClient&&i.sharedClientState.setOnlineState(e)}}function Qp(t,e,n){return(0,Pn.mG)(this,void 0,void 0,function(){var i,o,r,s,a,c;return(0,Pn.Jh)(this,function(u){switch(u.label){case 0:return(i=$s(t)).sharedClientState.updateQueryState(e,"rejected",n),o=i.Co.get(e),(r=o&&o.key)?(s=(s=new au(wa.comparator)).insert(r,qa.newNoDocument(r,ia.min())),a=bu().add(r),c=new xu(ia.min(),new Map,new lu(Xs),s,a),[4,Hp(i,c)]):[3,2];case 1:return u.sent(),i.Do=i.Do.remove(r),i.Co.delete(e),rf(i),[3,4];case 2:return[4,ad(i.localStore,e,!1).then(function(){return tf(i,e,n)}).catch(Th)];case 3:u.sent(),u.label=4;case 4:return[2]}})})}function Jp(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i,o;return(0,Pn.Jh)(this,function(r){switch(r.label){case 0:n=$s(t),i=e.batch.batchId,r.label=1;case 1:return r.trys.push([1,4,,6]),[4,ed(n.localStore,e)];case 2:return o=r.sent(),Xp(n,i,null),Kp(n,i),n.sharedClientState.updateMutationState(i,"acknowledged"),[4,sf(n,o)];case 3:return r.sent(),[3,6];case 4:return[4,Th(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}})})}function $p(t,e,n){return(0,Pn.mG)(this,void 0,void 0,function(){var i,o;return(0,Pn.Jh)(this,function(r){switch(r.label){case 0:i=$s(t),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,(s=i.localStore,a=e,c=$s(s),c.persistence.runTransaction("Reject batch","readwrite-primary",function(t){var e;return c._n.lookupMutationBatch(t,a).next(function(n){return Js(null!==n),e=n.keys(),c._n.removeMutationBatch(t,n)}).next(function(){return c._n.performConsistencyCheck(t)}).next(function(){return c.Mn.pn(t,e)})}))];case 2:return o=r.sent(),Xp(i,e,n),Kp(i,e),i.sharedClientState.updateMutationState(e,"rejected",n),[4,sf(i,o)];case 3:return r.sent(),[3,6];case 4:return[4,Th(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}var s,a,c})})}function Wp(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i,o,r,s;return(0,Pn.Jh)(this,function(a){switch(a.label){case 0:op((n=$s(t)).remoteStore)||Gs("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,(c=n.localStore,u=$s(c),u.persistence.runTransaction("Get highest unacknowledged batch id","readonly",function(t){return u._n.getHighestUnacknowledgedBatchId(t)}))];case 2:return-1===(i=a.sent())?[2,void e.resolve()]:((o=n.ko.get(i)||[]).push(e),n.ko.set(i,o),[3,4]);case 3:return r=a.sent(),s=xp(r,"Initialization of waitForPendingWrites() operation failed"),e.reject(s),[3,4];case 4:return[2]}var c,u})})}function Kp(t,e){(t.ko.get(e)||[]).forEach(function(t){t.resolve()}),t.ko.delete(e)}function Xp(t,e,n){var i=$s(t),o=i.xo[i.currentUser.toKey()];if(o){var r=o.get(e);r&&(n?r.reject(n):r.resolve(),o=o.remove(e)),i.xo[i.currentUser.toKey()]=o}}
1function tf(t,e,n){void 0===n&&(n=null),t.sharedClientState.removeLocalQueryTarget(e);for(var i=0,o=t.Vo.get(e);i<o.length;i++){var r=o[i];t.Po.delete(r),n&&t.vo.Mo(r,n)}t.Vo.delete(e),t.isPrimaryClient&&t.No.Zn(e).forEach(function(e){t.No.containsKey(e)||ef(t,e)})}function ef(t,e){t.So.delete(e.path.canonicalString());var n=t.Do.get(e);null!==n&&(Xd(t.remoteStore,n),t.Do=t.Do.remove(e),t.Co.delete(n),rf(t))}function nf(t,e,n){for(var i=0,o=n;i<o.length;i++){var r=o[i];r instanceof Dp?(t.No.addReference(r.key,e),of(t,r)):r instanceof Fp?(Gs("SyncEngine","Document no longer in limbo: "+r.key),t.No.removeReference(r.key,e),t.No.containsKey(r.key)||ef(t,r.key)):Qs()}}function of(t,e){var n=e.key,i=n.path.canonicalString();t.Do.get(n)||t.So.has(i)||(Gs("SyncEngine","New document in limbo: "+n),t.So.add(i),rf(t))}function rf(t){for(;t.So.size>0&&t.Do.size<t.maxConcurrentLimboResolutions;){var e=t.So.values().next().value;t.So.delete(e);var n=new wa(ca.fromString(e)),i=t.Fo.next();t.Co.set(i,new qp(n)),t.Do=t.Do.insert(n,i),Kd(t.remoteStore,new Ql(mc(uc(n.path)),i,2,Zs.o))}}function sf(t,e,n){return(0,Pn.mG)(this,void 0,void 0,function(){var i,o,r,s;return(0,Pn.Jh)(this,function(a){switch(a.label){case 0:return i=$s(t),o=[],r=[],s=[],i.Po.isEmpty()?[3,3]:(i.Po.forEach(function(t,a){s.push(i.Oo(a,e,n).then(function(t){if(t){i.isPrimaryClient&&i.sharedClientState.updateQueryState(a.targetId,t.fromCache?"not-current":"current"),o.push(t);var e=$h.Pn(a.targetId,t);r.push(e)}}))}),[4,Promise.all(s)]);case 1:return a.sent(),i.vo._r(o),[4,function(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i,o,r,s,a,c,u;return(0,Pn.Jh)(this,function(l){switch(l.label){case 0:n=$s(t),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,n.persistence.runTransaction("notifyLocalViewChanges","readwrite",function(t){return Nl.forEach(e,function(e){return Nl.forEach(e.bn,function(i){return n.persistence.referenceDelegate.addReference(t,e.targetId,i)}).next(function(){return Nl.forEach(e.vn,function(i){return n.persistence.referenceDelegate.removeReference(t,e.targetId,i)})})})})];case 2:return l.sent(),[3,4];case 3:if(!Zl(i=l.sent()))throw i;return Gs("LocalStore","Failed to update sequence numbers: "+i),[3,4];case 4:for(o=0,r=e;o<r.length;o++)a=(s=r[o]).targetId,s.fromCache||(c=n.kn.get(a),u=c.withLastLimboFreeSnapshotVersion(c.snapshotVersion),n.kn=n.kn.insert(a,u));return[2]}})})}(i.localStore,r)];case 2:a.sent(),a.label=3;case 3:return[2]}})})}function af(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i;return(0,Pn.Jh)(this,function(o){switch(o.label){case 0:return(n=$s(t)).currentUser.isEqual(e)?[3,3]:(Gs("SyncEngine","User change. New user:",e.toKey()),[4,td(n.localStore,e)]);case 1:return i=o.sent(),n.currentUser=e,(r=n).ko.forEach(function(t){t.forEach(function(t){t.reject(new Vs(qs.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),r.ko.clear(),n.sharedClientState.handleUserChange(e,i.removedBatchIds,i.addedBatchIds),[4,sf(n,i.Ln)];case 2:o.sent(),o.label=3;case 3:return[2]}var r})})}function cf(t,e){var n=$s(t),i=n.Co.get(e);if(i&&i.bo)return bu().add(i.key);var o=bu(),r=n.Vo.get(e);if(!r)return o;for(var s=0,a=r;s<a.length;s++){var c=n.Po.get(a[s]);o=o.unionWith(c.view.wo)}return o}function uf(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i,o;return(0,Pn.Jh)(this,function(r){switch(r.label){case 0:return[4,cd((n=$s(t)).localStore,e.query,!0)];case 1:return i=r.sent(),o=e.view.Ao(i),[2,(n.isPrimaryClient&&nf(n,e.targetId,o.To),o)]}})})}function lf(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(n){return[2,ld((e=$s(t)).localStore).then(function(t){return sf(e,t)})]})})}function hf(t,e,n,i){return(0,Pn.mG)(this,void 0,void 0,function(){var o,r;return(0,Pn.Jh)(this,function(s){switch(s.label){case 0:return[4,(a=(o=$s(t)).localStore,c=e,u=$s(a),l=$s(u._n),u.persistence.runTransaction("Lookup mutation documents","readonly",function(t){return l.jt(t,c).next(function(e){return e?u.Mn.pn(t,e):Nl.resolve(null)})}))];case 1:return null===(r=s.sent())?[3,6]:"pending"!==n?[3,3]:[4,hp(o.remoteStore)];case 2:return s.sent(),[3,4];case 3:"acknowledged"===n||"rejected"===n?(Xp(o,e,i||null),Kp(o,e),function(t,e){$s($s(t)._n).Gt(e)}(o.localStore,e)):Qs(),s.label=4;case 4:return[4,sf(o,r)];case 5:return s.sent(),[3,7];case 6:Gs("SyncEngine","Cannot apply mutation batch with id: "+e),s.label=7;case 7:return[2]}var a,c,u,l})})}function df(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i,o,r,s,a,c;return(0,Pn.Jh)(this,function(u){switch(u.label){case 0:return yf(n=$s(t)),bf(n),!0!==e||!0===n.$o?[3,3]:(i=n.sharedCl
1ientState.getAllActiveQueryTargets(),[4,pf(n,i.toArray())]);case 1:return o=u.sent(),n.$o=!0,[4,yp(n.remoteStore,!0)];case 2:for(u.sent(),r=0,s=o;r<s.length;r++)Kd(n.remoteStore,s[r]);return[3,7];case 3:return!1!==e||!1===n.$o?[3,7]:(a=[],c=Promise.resolve(),n.Vo.forEach(function(t,e){n.sharedClientState.isLocalQueryTarget(e)?a.push(e):c=c.then(function(){return tf(n,e),ad(n.localStore,e,!0)}),Xd(n.remoteStore,e)}),[4,c]);case 4:return u.sent(),[4,pf(n,a)];case 5:return u.sent(),(l=$s(n)).Co.forEach(function(t,e){Xd(l.remoteStore,e)}),l.No.ts(),l.Co=new Map,l.Do=new au(wa.comparator),n.$o=!1,[4,yp(n.remoteStore,!1)];case 6:u.sent(),u.label=7;case 7:return[2]}var l})})}function pf(t,e,n){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i,o,r,s,a,c,u,l,h,d,p,f;return(0,Pn.Jh)(this,function(g){switch(g.label){case 0:n=$s(t),i=[],o=[],r=0,s=e,g.label=1;case 1:return r<s.length?(c=void 0,(u=n.Vo.get(a=s[r]))&&0!==u.length?[4,sd(n.localStore,mc(u[0]))]:[3,7]):[3,13];case 2:c=g.sent(),l=0,h=u,g.label=3;case 3:return l<h.length?(d=n.Po.get(h[l]),[4,uf(n,d)]):[3,6];case 4:(p=g.sent()).snapshot&&o.push(p.snapshot),g.label=5;case 5:return l++,[3,3];case 6:return[3,11];case 7:return[4,ud(n.localStore,a)];case 8:return f=g.sent(),[4,sd(n.localStore,f)];case 9:return c=g.sent(),[4,zp(n,ff(f),a,!1)];case 10:g.sent(),g.label=11;case 11:i.push(c),g.label=12;case 12:return r++,[3,1];case 13:return[2,(n.vo._r(o),i)]}})})}function ff(t){return cc(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)}function gf(t){var e=$s(t);return $s($s(e.localStore).persistence).fn()}function mf(t,e,n,i){return(0,Pn.mG)(this,void 0,void 0,function(){var o,r,s;return(0,Pn.Jh)(this,function(a){switch(a.label){case 0:return(o=$s(t)).$o?(Gs("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!o.Vo.has(e))return[3,8];switch(n){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,ld(o.localStore)];case 3:return r=a.sent(),s=xu.createSynthesizedRemoteEventForCurrentChange(e,"current"===n),[4,sf(o,r,s)];case 4:return a.sent(),[3,8];case 5:return[4,ad(o.localStore,e,!0)];case 6:return a.sent(),tf(o,e,i),[3,8];case 7:Qs(),a.label=8;case 8:return[2]}})})}function _f(t,e,n){return(0,Pn.mG)(this,void 0,void 0,function(){var i,o,r,s,a,c,u,l,h;return(0,Pn.Jh)(this,function(d){switch(d.label){case 0:if(!(i=yf(t)).$o)return[3,10];o=0,r=e,d.label=1;case 1:return o<r.length?i.Vo.has(s=r[o])?(Gs("SyncEngine","Adding an already active target "+s),[3,5]):[4,ud(i.localStore,s)]:[3,6];case 2:return a=d.sent(),[4,sd(i.localStore,a)];case 3:return c=d.sent(),[4,zp(i,ff(a),c.targetId,!1)];case 4:d.sent(),Kd(i.remoteStore,c),d.label=5;case 5:return o++,[3,1];case 6:u=function(t){return(0,Pn.Jh)(this,function(e){switch(e.label){case 0:return i.Vo.has(t)?[4,ad(i.localStore,t,!1).then(function(){Xd(i.remoteStore,t),tf(i,t)}).catch(Th)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})},l=0,h=n,d.label=7;case 7:return l<h.length?[5,u(h[l])]:[3,10];case 8:d.sent(),d.label=9;case 9:return l++,[3,7];case 10:return[2]}})})}function yf(t){var e=$s(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=Hp.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=cf.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=Qp.bind(null,e),e.vo._r=Ep.bind(null,e.eventManager),e.vo.Mo=Ap.bind(null,e.eventManager),e}function bf(t){var e=$s(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=Jp.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=$p.bind(null,e),e}var vf=function(){function t(){this.synchronizeTabs=!1}return t.prototype.initialize=function(t){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(e){switch(e.label){case 0:return this.R=jd(t.databaseInfo.databaseId),this.sharedClientState=this.Bo(t),this.persistence=this.qo(t),[4,this.persistence.start()];case 1:return e.sent(),this.gcScheduler=this.Uo(t),this.localStore=this.Ko(t),[2]}})})},t.prototype.Uo=function(t){return null},t.prototype.Ko=function(t){return Xh(this.persistence,new Wh,t.initialUser,this.R)},t.prototype.qo=function(t){return new Cd(wd.bs,this.R)},t.prototype.Bo=function(t){return new Nd},t.prototype.terminate=function(){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(t){switch(t.label){case 0:return this.gcScheduler&&this.gcScheduler.stop(),[4,this.sharedCl
1ientState.shutdown()];case 1:return t.sent(),[4,this.persistence.shutdown()];case 2:return t.sent(),[2]}})})},t}(),Cf=function(t){function e(e,n,i){var o=this;return(o=t.call(this)||this).Qo=e,o.cacheSizeBytes=n,o.forceOwnership=i,o.synchronizeTabs=!1,o}return(0,Pn.ZT)(e,t),e.prototype.initialize=function(e){return(0,Pn.mG)(this,void 0,void 0,function(){var n=this;return(0,Pn.Jh)(this,function(i){switch(i.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return i.sent(),[4,hd(this.localStore)];case 2:return i.sent(),[4,this.Qo.initialize(this,e)];case 3:return i.sent(),[4,bf(this.Qo.syncEngine)];case 4:return i.sent(),[4,hp(this.Qo.remoteStore)];case 5:return i.sent(),[4,this.persistence.He(function(){return n.gcScheduler&&!n.gcScheduler.started&&n.gcScheduler.start(n.localStore),Promise.resolve()})];case 6:return i.sent(),[2]}})})},e.prototype.Ko=function(t){return Xh(this.persistence,new Wh,t.initialUser,this.R)},e.prototype.Uo=function(t){return new Eh(this.persistence.referenceDelegate.garbageCollector,t.asyncQueue)},e.prototype.qo=function(t){var e=Yh(t.databaseInfo.databaseId,t.databaseInfo.persistenceKey),n=void 0!==this.cacheSizeBytes?fh.withCacheSize(this.cacheSizeBytes):fh.DEFAULT;return new Gh(this.synchronizeTabs,e,t.clientId,n,t.asyncQueue,qd(),Vd(),this.R,this.sharedClientState,!!this.forceOwnership)},e.prototype.Bo=function(t){return new Nd},e}(vf),xf=function(t){function e(e,n){var i=this;return(i=t.call(this,e,n,!1)||this).Qo=e,i.cacheSizeBytes=n,i.synchronizeTabs=!0,i}return(0,Pn.ZT)(e,t),e.prototype.initialize=function(e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i=this;return(0,Pn.Jh)(this,function(o){switch(o.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return o.sent(),n=this.Qo.syncEngine,this.sharedClientState instanceof Rd?(this.sharedClientState.syncEngine={ui:hf.bind(null,n),ai:mf.bind(null,n),hi:_f.bind(null,n),fn:gf.bind(null,n),ci:lf.bind(null,n)},[4,this.sharedClientState.start()]):[3,3];case 2:o.sent(),o.label=3;case 3:return[4,this.persistence.He(function(t){return(0,Pn.mG)(i,void 0,void 0,function(){return(0,Pn.Jh)(this,function(e){switch(e.label){case 0:return[4,df(this.Qo.syncEngine,t)];case 1:return e.sent(),this.gcScheduler&&(t&&!this.gcScheduler.started?this.gcScheduler.start(this.localStore):t||this.gcScheduler.stop()),[2]}})})})];case 4:return o.sent(),[2]}})})},e.prototype.Bo=function(t){var e=qd();if(!Rd.yt(e))throw new Vs(qs.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var n=Yh(t.databaseInfo.databaseId,t.databaseInfo.persistenceKey);return new Rd(e,t.asyncQueue,n,t.clientId,t.initialUser)},e}(Cf),wf=function(){function t(){}return t.prototype.initialize=function(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n=this;return(0,Pn.Jh)(this,function(i){switch(i.label){case 0:return this.localStore?[3,2]:(this.localStore=t.localStore,this.sharedClientState=t.sharedClientState,this.datastore=this.createDatastore(e),this.remoteStore=this.createRemoteStore(e),this.eventManager=this.createEventManager(e),this.syncEngine=this.createSyncEngine(e,!t.synchronizeTabs),this.sharedClientState.onlineStateHandler=function(t){return Yp(n.syncEngine,t,1)},this.remoteStore.remoteSyncer.handleCredentialChange=af.bind(null,this.syncEngine),[4,yp(this.remoteStore,this.syncEngine.isPrimaryClient)]);case 1:i.sent(),i.label=2;case 2:return[2]}})})},t.prototype.createEventManager=function(t){return new Tp},t.prototype.createDatastore=function(t){var e=jd(t.databaseInfo.databaseId),n=new Zd(t.databaseInfo);return new Yd(t.credentials,n,e)},t.prototype.createRemoteStore=function(t){var e,n,i,o,r,s=this;return e=this.localStore,n=this.datastore,i=t.asyncQueue,o=function(t){return Yp(s.syncEngine,t,0)},r=Dd.yt()?new Dd:new Ld,new Jd(e,n,i,o,r)},t.prototype.createSyncEngine=function(t,e){return n=e,i=new Vp(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,t.initialUser,t.maxConcurrentLimboResolutions),n&&(i.$o=!0),i;var n,i},t.prototype.terminate=function(){return function(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return e=$s(t),Gs("RemoteStore","RemoteStore shutting down."),e.Or.add(5),[4,Wd(e)];case 1:return n.sent(),e.Lr.shutdown(),e.Br.set("Unknown"),[2]}})})}(this.remoteStore)},t}(),Of=function(){function t(t){this.observer=t,this.muted=!1}return t.prototype.next=function(t){this.observer.next&&this.jo(this.observer.next,t)},t.prototype.error=function(t){this.observer.error?this.jo(this.observer.error,t):console.error("Uncaught Error in snapshot listener:",t)},t.prototype.Wo=function(){this.muted=!0}
1,t.prototype.jo=function(t,e){var n=this;this.muted||setTimeout(function(){n.muted||t(e)},0)},t}(),Pf=(function(){function t(t,e){var n=this;this.Go=t,this.R=e,this.metadata=new Rl,this.buffer=new Uint8Array,this.zo=new TextDecoder("utf-8"),this.Ho().then(function(t){t&&t.io()?n.metadata.resolve(t.payload.metadata):n.metadata.reject(new Error("The first element of the bundle is not a metadata, it is\n             "+JSON.stringify(null==t?void 0:t.payload)))},function(t){return n.metadata.reject(t)})}t.prototype.close=function(){return this.Go.cancel()},t.prototype.getMetadata=function(){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(t){return[2,this.metadata.promise]})})},t.prototype.Lo=function(){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(t){switch(t.label){case 0:return[4,this.getMetadata()];case 1:return[2,(t.sent(),this.Ho())]}})})},t.prototype.Ho=function(){return(0,Pn.mG)(this,void 0,void 0,function(){var t,e,n,i;return(0,Pn.Jh)(this,function(o){switch(o.label){case 0:return[4,this.Jo()];case 1:return null===(t=o.sent())?[2,null]:(e=this.zo.decode(t),n=Number(e),isNaN(n)&&this.Yo("length string ("+e+") is not valid number"),[4,this.Xo(n)]);case 2:return i=o.sent(),[2,new Np(JSON.parse(i),t.length+n)]}})})},t.prototype.Zo=function(){return this.buffer.findIndex(function(t){return t==="{".charCodeAt(0)})},t.prototype.Jo=function(){return(0,Pn.mG)(this,void 0,void 0,function(){var t,e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return this.Zo()<0?[4,this.tc()]:[3,3];case 1:if(n.sent())return[3,3];n.label=2;case 2:return[3,0];case 3:return 0===this.buffer.length?[2,null]:((t=this.Zo())<0&&this.Yo("Reached the end of bundle when a length string is expected."),e=this.buffer.slice(0,t),[2,(this.buffer=this.buffer.slice(t),e)])}})})},t.prototype.Xo=function(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return this.buffer.length<t?[4,this.tc()]:[3,3];case 1:n.sent()&&this.Yo("Reached the end of bundle when more is expected."),n.label=2;case 2:return[3,0];case 3:return e=this.zo.decode(this.buffer.slice(0,t)),[2,(this.buffer=this.buffer.slice(t),e)]}})})},t.prototype.Yo=function(t){throw this.Go.cancel(),new Error("Invalid bundle format: "+t)},t.prototype.tc=function(){return(0,Pn.mG)(this,void 0,void 0,function(){var t,e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return[4,this.Go.read()];case 1:return(t=n.sent()).done||((e=new Uint8Array(this.buffer.length+t.value.length)).set(this.buffer),e.set(t.value,this.buffer.length),this.buffer=e),[2,t.done]}})})}}(),function(){function t(t){this.datastore=t,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastWriteError=null,this.writtenDocs=new Set}return t.prototype.lookup=function(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e,n=this;return(0,Pn.Jh)(this,function(i){switch(i.label){case 0:if(this.ensureCommitNotCalled(),this.mutations.length>0)throw new Vs(qs.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i,o,r,s,a;return(0,Pn.Jh)(this,function(c){switch(c.label){case 0:return n=$s(t),i=Gu(n.R)+"/documents",o={documents:e.map(function(t){return qu(n.R,t)})},[4,n.$i("BatchGetDocuments",i,o)];case 1:return r=c.sent(),s=new Map,r.forEach(function(t){var e,i,o=(e=n.R,"found"in(i=t)?function(t,e){Js(!!e.found);var n=Vu(t,e.found.name),i=Fu(e.found.updateTime),o=new Ua({mapValue:{fields:e.found.fields}});return qa.newFoundDocument(n,i,o)}(e,i):"missing"in i?function(t,e){Js(!!e.missing),Js(!!e.readTime);var n=Vu(t,e.missing),i=Fu(e.readTime);return qa.newNoDocument(n,i)}(e,i):Qs());s.set(o.key.toString(),o)}),a=[],[2,(e.forEach(function(t){var e=s.get(t.toString());Js(!!e),a.push(e)}),a)]}})})}(this.datastore,t)];case 1:return[2,((e=i.sent()).forEach(function(t){return n.recordVersion(t)}),e)]}})})},t.prototype.set=function(t,e){this.write(e.toMutation(t,this.precondition(t))),this.writtenDocs.add(t.toString())},t.prototype.update=function(t,e){try{this.write(e.toMutation(t,this.prec
1onditionForUpdate(t)))}catch(n){this.lastWriteError=n}this.writtenDocs.add(t.toString())},t.prototype.delete=function(t){this.write(new nu(t,this.precondition(t))),this.writtenDocs.add(t.toString())},t.prototype.commit=function(){return(0,Pn.mG)(this,void 0,void 0,function(){var t,e=this;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:if(this.ensureCommitNotCalled(),this.lastWriteError)throw this.lastWriteError;return t=this.readVersions,this.mutations.forEach(function(e){t.delete(e.key.toString())}),t.forEach(function(t,n){var i=wa.fromPath(n);e.mutations.push(new iu(i,e.precondition(i)))}),[4,function(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i,o;return(0,Pn.Jh)(this,function(r){switch(r.label){case 0:return n=$s(t),i=Gu(n.R)+"/documents",o={writes:e.map(function(t){return Qu(n.R,t)})},[4,n.Ni("Commit",i,o)];case 1:return r.sent(),[2]}})})}(this.datastore,this.mutations)];case 1:return n.sent(),this.committed=!0,[2]}})})},t.prototype.recordVersion=function(t){var e;if(t.isFoundDocument())e=t.version;else{if(!t.isNoDocument())throw Qs();e=ia.min()}var n=this.readVersions.get(t.key.toString());if(n){if(!e.isEqual(n))throw new Vs(qs.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(t.key.toString(),e)},t.prototype.precondition=function(t){var e=this.readVersions.get(t.toString());return!this.writtenDocs.has(t.toString())&&e?Vc.updateTime(e):Vc.none()},t.prototype.preconditionForUpdate=function(t){var e=this.readVersions.get(t.toString());if(!this.writtenDocs.has(t.toString())&&e){if(e.isEqual(ia.min()))throw new Vs(qs.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return Vc.updateTime(e)}return Vc.exists(!0)},t.prototype.write=function(t){this.ensureCommitNotCalled(),this.mutations.push(t)},t.prototype.ensureCommitNotCalled=function(){},t}()),Mf=function(){function t(t,e,n,i){this.asyncQueue=t,this.datastore=e,this.updateFunction=n,this.deferred=i,this.ec=5,this.Zi=new zd(this.asyncQueue,"transaction_retry")}return t.prototype.run=function(){this.ec-=1,this.nc()},t.prototype.nc=function(){var t=this;this.Zi.ji(function(){return(0,Pn.mG)(t,void 0,void 0,function(){var t,e,n=this;return(0,Pn.Jh)(this,function(i){return t=new Pf(this.datastore),(e=this.sc(t))&&e.then(function(e){n.asyncQueue.enqueueAndForget(function(){return t.commit().then(function(){n.deferred.resolve(e)}).catch(function(t){n.ic(t)})})}).catch(function(t){n.ic(t)}),[2]})})})},t.prototype.sc=function(t){try{var e=this.updateFunction(t);return!va(e)&&e.catch&&e.then?e:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(n){return this.deferred.reject(n),null}},t.prototype.ic=function(t){var e=this;this.ec>0&&this.rc(t)?(this.ec-=1,this.asyncQueue.enqueueAndForget(function(){return e.nc(),Promise.resolve()})):this.deferred.reject(t)},t.prototype.rc=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!ru(e)}return!1},t}(),Tf=function(){function t(t,e,n){var i=this;this.credentials=t,this.asyncQueue=e,this.databaseInfo=n,this.user=Od.UNAUTHENTICATED,this.clientId=Ks.u(),this.credentialListener=function(){return Promise.resolve()},this.credentials.setChangeListener(e,function(t){return(0,Pn.mG)(i,void 0,void 0,function(){return(0,Pn.Jh)(this,function(e){switch(e.label){case 0:return Gs("FirestoreClient","Received user=",t.uid),[4,this.credentialListener(t)];case 1:return e.sent(),this.user=t,[2]}})})})}return t.prototype.getConfiguration=function(){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(t){return[2,{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,credentials:this.credentials,initialUser:this.user,maxConcurrentLimboResolutions:100}]})})},t.prototype.setCredentialChangeListener=function(t){this.credentialListener=t},t.prototype.verifyNotTerminated=function(){if(this.asyncQueue.isShuttingDown)throw new Vs(qs.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.terminate=function(){var t=this;this.asyncQueue.enterRestrictedMode();var e=new Rl;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(function(){return(0,Pn.mG)(t,void 0,void 0,function(){var t,n;return(0,Pn.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,5,,6]),this.onlineComponents?[4,this.onlineComponents.terminate()]:[3,2];case 1:i.sent(),i.label=2;case 2:return this.offlineComponents?[4,this.offlineComponents.terminate()]:[3,4];case 3:i.sent(),i.label=4;case 4:return this.credentials.removeChangeListener(),e.resolve(),[3,6];case 5:return t=i.sent(),n=xp(t,"Failed to shutdown persistence"),e.reject(n),[3,6];case 6:return[2]}})})}),e.promise},t}();function kf(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i,o=this;return(0,Pn.Jh)(this,function(r){switch(r.label){case 0:return t.asyncQueue.verifyOperationInProgress(),Gs("FirestoreClient","Initializing OfflineComponentProvider"),[4,t.getConfiguration()];case 1:return n=r.sent(),[4,e.initialize(n)];case 2:return r.sent(),i=n.initialUser,t.setCredentialChangeListener(function(t){return(0,Pn.mG)(o,void 0,void 0,function(){return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return i.isEqual(t)?[3,2]:[4,td(e.localStore,t)];case 1:n.sent(),i=t,n.label=2;case 2:return[2]}})})}),e.persistence.setDatabaseDeletedListener(function(){return t.terminate()}),t.offlineComponents=e,[2]}})})}function Sf(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i;return(0,Pn.Jh)(this,function(o){switch(o.label){case 0:return t.asyncQueue.verifyOperationInProgress(),[4,Ef(t)];case 1:return n=o.sent(),Gs("FirestoreClient","Initializing OnlineComponentProvider"),[4,t.getConfiguration()];case 2:return i=o.sent(),[4,e.initialize(n,i)];case 3:return o.sent(),t.setCredentialChangeListener(function(t){return function(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i;return(0,Pn.Jh)(this,function(o){switch(o.label){case 0:return(n=$s(t)).asyncQueue.verifyOperationInProgress(),Gs("RemoteStore","RemoteStore received new credentials"),i=op(n),n.Or.add(3),[4,Wd(n)];case 1:return o.sent(),i&&n.Br.set("Unknown"),[4,n.remoteSyncer.handleCredentialChange(e)];case 2:return o.sent(),n.Or.delete(3),[4,$d(n)];case 3:return o.sent(),[2]}})})}(e.remoteStore,t)}),t.onlineComponents=e,[2]}})})}function Ef(t){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(e){switch(e.label){case 0:return t.offlineComponents?[3,2]:(Gs("FirestoreClient","Using default OfflineComponentProvider"),[4,kf(t,new vf)]);case 1:e.sent(),e.label=2;case 2:return[2,t.offlineComponents]}})})}function Af(t){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(e){switch(e.label){case 0:return t.onlineComponents?[3,2]:(Gs("FirestoreClient","Using default OnlineComponentProvider"),[4,Sf(t,new wf)]);case 1:e.sent(),e.label=2;case 2:return[2,t.onlineComponents]}})})}function If(t){return Ef(t).then(function(t){return t.persistence})}function Rf(t){return Ef(t).then(function(t){return t.localStore})}function Nf(t){return Af(t).then(function(t){return t.remoteStore})}function Lf(t){return Af(t).then(function(t){return t.syncEngine})}function Df(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e,n;return(0,Pn.Jh)(this,function(i){switch(i.label){case 0:return[4,Af(t)];case 1:return e=i.sent(),[2,((n=e.eventManager).onListen=jp.bind(null,e.syncEngine),n.onUnlisten=Gp.bind(null,e.syncEngine),n)]}})})}function Ff(t,e,n){var i=this;void 0===n&&(n={});var o=new Rl;return t.asyncQueue.enqueueAndForget(function(){return(0,Pn.mG)(i,void 0,void 0,function(){var i;return(0,Pn.Jh)(this,function(r){switch(r.label){case 0:return i=function(t,e,n,i,o){var r=new Of({next:function(r){e.enqueueAndForget(function(){return Sp(t,s)});var a=r.docs.has(n);!a&&r.fromCache?o.reject(new Vs(qs.UNAVAILABLE,"Failed to get document because the client is offline.")):a&&r.fromCache&&i&&"server"===i.source?o.reject(new Vs(qs.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):o.resolve(r)},error:function(t){return o.reject(t)}}),s=new Rp(uc(n.path),r,{includeMetadataChanges:!0,so:!0});return kp(t,s)},[4,Df(t)];case 1:return[2,i.apply(void 0,[r.sent(),t.asyncQueue,e,n,o])]}})})}),o.promise}function Uf(t,e,n){var i=this;void 0===n&&(n={});var o=new Rl;return t.asyncQueue.enqueueAndForget(function(){return(0,Pn.mG)(i,void 0,void 0,function(){var i;return(0,Pn.Jh)(this,function(r){switch(r.label){case 0:return i=function(t,e,n,i,o){var r=new Of({next:function(n){e.enqueueAndForget(function(){return Sp(t,s)}),n.fromCache&&"server"===i.source?o.reject(new Vs(qs.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):o.resolve(n)},error:function(t){return o.reject(t)}}),s=new Rp(n,r,{includeMetadataChanges:!0,so:!0});return kp(t,s)},[4,Df(t)];case 1:return[2,i.apply(void 0,[r.sent(),t.asyncQueue,e,n,o])]}})})}),o.promise}var Zf=function(t,e,n,i,o,r,s,a){this.databaseId=t,this.appId=e,this.persistenceKey=n,this.host=i,this.ssl=o,this.forceLongPolling=r,this.autoDetectLongPolling=s,this.useFetchStreams=a},qf=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"isDefaultDatabase",{get:function(){return"(default)"===this.database}
1,enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t}(),Vf=new Map,jf=function(t,e){this.user=e,this.type="OAuth",this.authHeaders={},this.authHeaders.Authorization="Bearer "+t},zf=function(){function t(){this.changeListener=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype.invalidateToken=function(){},t.prototype.setChangeListener=function(t,e){this.changeListener=e,t.enqueueRetryable(function(){return e(Od.UNAUTHENTICATED)})},t.prototype.removeChangeListener=function(){this.changeListener=null},t}(),Gf=function(){function t(t){this.token=t,this.changeListener=null}return t.prototype.getToken=function(){return Promise.resolve(this.token)},t.prototype.invalidateToken=function(){},t.prototype.setChangeListener=function(t,e){var n=this;this.changeListener=e,t.enqueueRetryable(function(){return e(n.token.user)})},t.prototype.removeChangeListener=function(){this.changeListener=null},t}(),Bf=function(){function t(t){var e=this;this.currentUser=Od.UNAUTHENTICATED,this.oc=new Rl,this.cc=0,this.forceRefresh=!1,this.auth=null,this.asyncQueue=null,this.uc=function(){e.cc++,e.currentUser=e.ac(),e.oc.resolve(),e.changeListener&&e.asyncQueue.enqueueRetryable(function(){return e.changeListener(e.currentUser)})};var n=function(t){Gs("FirebaseCredentialsProvider","Auth detected"),e.auth=t,e.auth.addAuthTokenListener(e.uc)};t.onInit(function(t){return n(t)}),setTimeout(function(){if(!e.auth){var i=t.getImmediate({optional:!0});i?n(i):(Gs("FirebaseCredentialsProvider","Auth not yet detected"),e.oc.resolve())}},0)}return t.prototype.getToken=function(){var t=this,e=this.cc,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(function(n){return t.cc!==e?(Gs("FirebaseCredentialsProvider","getToken aborted due to token change."),t.getToken()):n?(Js("string"==typeof n.accessToken),new jf(n.accessToken,t.currentUser)):null}):Promise.resolve(null)},t.prototype.invalidateToken=function(){this.forceRefresh=!0},t.prototype.setChangeListener=function(t,e){var n=this;this.asyncQueue=t,this.asyncQueue.enqueueRetryable(function(){return(0,Pn.mG)(n,void 0,void 0,function(){return(0,Pn.Jh)(this,function(t){switch(t.label){case 0:return[4,this.oc.promise];case 1:return t.sent(),[4,e(this.currentUser)];case 2:return t.sent(),this.changeListener=e,[2]}})})})},t.prototype.removeChangeListener=function(){this.auth&&this.auth.removeAuthTokenListener(this.uc),this.changeListener=function(){return Promise.resolve()}},t.prototype.ac=function(){var t=this.auth&&this.auth.getUid();return Js(null===t||"string"==typeof t),new Od(t)},t}(),Hf=function(){function t(t,e,n){this.hc=t,this.lc=e,this.fc=n,this.type="FirstParty",this.user=Od.FIRST_PARTY}return Object.defineProperty(t.prototype,"authHeaders",{get:function(){var t={"X-Goog-AuthUser":this.lc},e=this.hc.auth.getAuthHeaderValueForFirstParty([]);return e&&(t.Authorization=e),this.fc&&(t["X-Goog-Iam-Authorization-Token"]=this.fc),t},enumerable:!1,configurable:!0}),t}(),Yf=function(){function t(t,e,n){this.hc=t,this.lc=e,this.fc=n}return t.prototype.getToken=function(){return Promise.resolve(new Hf(this.hc,this.lc,this.fc))},t.prototype.setChangeListener=function(t,e){t.enqueueRetryable(function(){return e(Od.FIRST_PARTY)})},t.prototype.removeChangeListener=function(){},t.prototype.invalidateToken=function(){},t}();function Qf(t,e,n){if(!n)throw new Vs(qs.INVALID_ARGUMENT,"Function "+t+"() cannot be called with an empty "+e+".")}function Jf(t,e){if(void 0===e)return{merge:!1};if(void 0!==e.mergeFields&&void 0!==e.merge)throw new Vs(qs.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function $f(t,e,n,i){if(!0===e&&!0===i)throw new Vs(qs.INVALID_ARGUMENT,t+" and "+n+" cannot be used together.")}function Wf(t){if(!wa.isDocumentKey(t))throw new Vs(qs.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t+" has "+t.length+".")}function Kf(t){if(wa.isDocumentKey(t))throw new Vs(qs.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t+" has "+t.length+".")}function Xf(t){if(void 0===t)return"undefined";if(null===t)return"null";if("string"==typeof t)return t.length>20&&(t=t.substring(0,20)+"..."),JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return""+t;if("object"==typeof t){if(t instanceof Array)return"an array";var e=function(t){if(t.constructor){var e=/function\s+([^\s(]+)\s*\(/.exec(t.constructor.toString());if(e&&e.length>1)return e[1]}return null}(t);return e?"a custom "+e+" object":"an object"}return"function"==typeof t?"a function":Qs()}function tg(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new Vs(qs.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");var n=Xf(t);throw new Vs(qs.INVALID_ARGUMENT,"Expected type '"+e.name+"', but it was: "+n)}return t}function eg(t,e){if(e<=0)throw new Vs(qs.INVALID_ARGUMENT,"Function "+t+"() requires a positive number, but it was: "+e+".")}var ng=function(){function t(t){var e;if(void 0===t.host){if(void 0!==t.ssl)throw new Vs(qs.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=t.host,this.ssl=null===(e=t.ssl)||void 0===e||e;if(this.credentials=t.credentials,this.ignoreUndefinedProperties=!!t.ignoreUndefinedProperties,void 0===t.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==t.cacheSizeBytes&&t.cacheSizeBytes<1048576)throw new Vs(qs.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!t.experimentalAutoDetectLongPolling,this.useFetchStreams=!!t.useFetchStreams,$f("experimentalForceLongPolling",t.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling)}return t.prototype.isEqual=function(t){return this.host===t.host&&this.ssl===t.ssl&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.experimentalForceLongPolling===t.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===t.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties&&this.useFetchStreams===t.useFetchStreams},t}(),ig=function(){function t(t,e){this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new ng({}),this._settingsFrozen=!1,t instanceof qf?(this._databaseId=t,this._credentials=new zf):(this._app=t,this._databaseId=function(t){if(!Object.prototype.hasOwnProperty.apply(t.options,["projectId"]))throw new Vs(qs.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new qf(t.options.projectId)}(t),this._credentials=new Bf(e))}return Object.defineProperty(t.prototype,"app",{get:function(){if(!this._app)throw new Vs(qs.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initialized",{get:function(){return this._settingsFrozen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_terminated",{get:function(){return void 0!==this._terminateTask},enumerable:!1,configurable:!0}),t.prototype._setSettings=function(t){if(this._settingsFrozen)throw new Vs(qs.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new ng(t),void 0!==t.credentials&&(this._credentials=function(t){if(!t)return new zf;switch(t.type){case"gapi":var e=t.client;return Js(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new Yf(e,t.sessionIndex||"0",t.iamToken||null);case"provider":return t.client;default:throw new Vs(qs.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(t.credentials))},t.prototype._getSettings=function(){return this._settings},t.prototype._freezeSettings=function(){return this._settingsFrozen=!0,this._settings},t.prototype._delete=function(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask},t.prototype.toJSON=function(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}},t.prototype._terminate=function(){return(t=Vf.get(this))&&(Gs("ComponentProvider","Removing Datastore"),Vf.delete(this),t.terminate()),Promise.resolve();var t},t}(),og=function(){function t(t,e,n){this.converter=e,this._key=n,this.type="document",this.firestore=t}return Object.defineProperty(t.prototype,"_path",{get:function(){return this._key.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._key.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new sg(this.firestore,this.converter,this._key.path.popLast())},enumerable:!1,configurable:!0}),t.prototype.withConverter=function(e){return new t(this.firestore,e,this._key)},t}(),rg=function(){function t(t,e,n){this.converter=e,this._query=n,this.type="query",this.firestore=t}return t.prototype.withConverter=function(e){return new t(this.firestore,e,this._query)},t}(),sg=function(t){function e(e,n,i){var o=this;return(o=t.call(this,e,n,uc(i))||this)._path=i,o.type="collection",o}return(0,Pn.ZT)(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._query.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this._path.popLast();return t.isEmpty()?null:new og(this.firestore,null,new wa(t))},enumerable:!1,configurable:!0}),e.prototype.withConverter=function(t){return new e(this.firestore,t,this._path)},e}(rg);function ag(t,e){for(var n,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];if(t=(0,Mn.m9)(t),Qf("collection","path",e),t instanceof ig)return Kf(n=ca.fromString.apply(ca,(0,Pn.ev)([e],i))),new sg(t,null,n);if(!(t instanceof og||t instanceof sg))throw new Vs(qs.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return Kf(n=ca.fromString.apply(ca,(0,Pn.ev)([t.path],i)).child(ca.fromString(e))),new sg(t.firestore,null,n)}function cg(t,e){for(var n,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];if(t=(0,Mn.m9)(t),1===arguments.length&&(e=Ks.u()),Qf("doc","path",e),t instanceof ig)return Wf(n=ca.fromString.apply(ca,(0,Pn.ev)([e],i))),new og(t,null,new wa(n));if(!(t instanceof og||t instanceof sg))throw new Vs(qs.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return Wf(n=t._path.child(ca.fromString.apply(ca,(0,Pn.ev)([e],i)))),new og(t.firestore,t instanceof sg?t.converter:null,new wa(n))}function ug(t,e){return t=(0,Mn.m9)(t),e=(0,Mn.m9)(e),(t instanceof og||t instanceof sg)&&(e instanceof og||e instanceof sg)&&t.firestore===e.firestore&&t.path===e.path&&t.converter===e.converter}function lg(t,e){return t=(0,Mn.m9)(t),e=(0,Mn.m9)(e),t instanceof rg&&e instanceof rg&&t.firestore===e.firestore&&yc(t._query,e._query)&&t.converter===e.converter}var hg=function(){function t(){var t=this;
1this.dc=Promise.resolve(),this.wc=[],this._c=!1,this.mc=[],this.yc=null,this.gc=!1,this.Ec=!1,this.Tc=[],this.Zi=new zd(this,"async_queue_retry"),this.Ic=function(){var e=Vd();e&&Gs("AsyncQueue","Visibility state changed to "+e.visibilityState),t.Zi.Gi()};var e=Vd();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Ic)}return Object.defineProperty(t.prototype,"isShuttingDown",{get:function(){return this._c},enumerable:!1,configurable:!0}),t.prototype.enqueueAndForget=function(t){this.enqueue(t)},t.prototype.enqueueAndForgetEvenWhileRestricted=function(t){this.Ac(),this.Rc(t)},t.prototype.enterRestrictedMode=function(t){if(!this._c){this._c=!0,this.Ec=t||!1;var e=Vd();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("visibilitychange",this.Ic)}},t.prototype.enqueue=function(t){var e=this;if(this.Ac(),this._c)return new Promise(function(){});var n=new Rl;return this.Rc(function(){return e._c&&e.Ec?Promise.resolve():(t().then(n.resolve,n.reject),n.promise)}).then(function(){return n.promise})},t.prototype.enqueueRetryable=function(t){var e=this;this.enqueueAndForget(function(){return e.wc.push(t),e.bc()})},t.prototype.bc=function(){return(0,Pn.mG)(this,void 0,void 0,function(){var t,e=this;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:if(0===this.wc.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.wc[0]()];case 2:return n.sent(),this.wc.shift(),this.Zi.reset(),[3,4];case 3:if(!Zl(t=n.sent()))throw t;return Gs("AsyncQueue","Operation failed with retryable error: "+t),[3,4];case 4:this.wc.length>0&&this.Zi.ji(function(){return e.bc()}),n.label=5;case 5:return[2]}})})},t.prototype.Rc=function(t){var e=this,n=this.dc.then(function(){return e.gc=!0,t().catch(function(t){throw e.yc=t,e.gc=!1,Bs("INTERNAL UNHANDLED ERROR: ",(i=(n=t).message||"",n.stack&&(i=n.stack.includes(n.message)?n.stack:n.message+"\n"+n.stack),i)),t;var n,i}).then(function(t){return e.gc=!1,t})});return this.dc=n,n},t.prototype.enqueueAfterDelay=function(t,e,n){var i=this;this.Ac(),this.Tc.indexOf(t)>-1&&(e=0);var o=Cp.createAndSchedule(this,t,e,n,function(t){return i.vc(t)});return this.mc.push(o),o},t.prototype.Ac=function(){this.yc&&Qs()},t.prototype.verifyOperationInProgress=function(){},t.prototype.Pc=function(){return(0,Pn.mG)(this,void 0,void 0,function(){var t;return(0,Pn.Jh)(this,function(e){switch(e.label){case 0:return[4,t=this.dc];case 1:e.sent(),e.label=2;case 2:if(t!==this.dc)return[3,0];e.label=3;case 3:return[2]}})})},t.prototype.Vc=function(t){for(var e=0,n=this.mc;e<n.length;e++)if(n[e].timerId===t)return!0;return!1},t.prototype.Sc=function(t){var e=this;return this.Pc().then(function(){e.mc.sort(function(t,e){return t.targetTimeMs-e.targetTimeMs});for(var n=0,i=e.mc;n<i.length;n++){var o=i[n];if(o.skipDelay(),"all"!==t&&o.timerId===t)break}return e.Pc()})},t.prototype.Dc=function(t){this.Tc.push(t)},t.prototype.vc=function(t){var e=this.mc.indexOf(t);this.mc.splice(e,1)},t}();function dg(t){return function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=t,i=0,o=["next","error","complete"];i<o.length;i++){var r=o[i];if(r in n&&"function"==typeof n[r])return!0}return!1}(t)}!function(){function t(){this._progressObserver={},this._taskCompletionResolver=new Rl,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}t.prototype.onProgress=function(t,e,n){this._progressObserver={next:t,error:e,complete:n}},t.prototype.catch=function(t){return this._taskCompletionResolver.promise.catch(t)},t.prototype.then=function(t,e){return this._taskCompletionResolver.promise.then(t,e)},t.prototype._completeWith=function(t){this._updateProgress(t),this._progressObserver.complete&&this._progressObserver.complete(),this._taskCompletionResolver.resolve(t)},t.prototype._failWith=function(t){this._lastProgress.taskState="Error",this._progressObserver.next&&this._progressObserver.next(this._lastProgress),this._progressObserver.error&&this._progressObserver.error(t),this._taskCompletionResolver.reject(t)},t.prototype._updateProgress=function(t){this._lastProgress=t,this._progressObserver.next&&this._progressObserver.next(t)}}();var pg=function(t){function e(e,n){var i=this;return(i=t.call(this,e,n)||this).type="firestore",i._queue=new hg,i._persistenceKey="name"in e?e.name:"[DEFAULT]",i}return(0,Pn.ZT)(e,t),e.prototype._terminate=function(){return this._firestoreClient||gg(this),this._firestoreClient.terminate()},e}(ig);function fg(t){return t._firestoreClient||gg(t),t._firestoreClient.verifyNotTerminated(),t._firestoreClient}function gg(t){var e,n,i,o=t._freezeSettings(),r=(n=(null===(e=t._app)||void 0===e?void 0:e.options.appId)||"",new Zf(t._databaseId,n,t._persistenceKey,(i=o).host,i.ssl,i.experimentalForceLongPolling,i.experimentalAutoDetectLongPolling,i.useFetchStreams));t._firestoreClient=new Tf(t._credentials,t._queue,r)}function mg(t,e,n){var i=this,o=new Rl;return t.asyncQueue.enqueue(function(){return(0,Pn.mG)(i,void 0,void 0,function(){var i;return(0,Pn.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,kf(t,n)];case 1:return r.sent(),[4,Sf(t,e)];case 2:return r.sent(),o.resolve(),[3,4];case 3:if(!("FirebaseError"===(s=i=r.sent()).name?s.code===qs.FAILED_PRECONDITION||s.code===qs.UNIMPLEMENT
1ED:!("undefined"!=typeof DOMException&&s instanceof DOMException)||22===s.code||20===s.code||11===s.code))throw i;return console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+i),o.reject(i),[3,4];case 4:return[2]}var s})})}).then(function(){return o.promise})}function _g(t){if(t._initialized||t._terminated)throw new Vs(qs.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.")}var yg=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0;n<t.length;++n)if(0===t[n].length)throw new Vs(qs.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new la(t)}return t.prototype.isEqual=function(t){return this._internalPath.isEqual(t._internalPath)},t}(),bg=function(){function t(t){this._byteString=t}return t.fromBase64String=function(e){try{return new t(da.fromBase64String(e))}catch(n){throw new Vs(qs.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}},t.fromUint8Array=function(e){return new t(da.fromUint8Array(e))},t.prototype.toBase64=function(){return this._byteString.toBase64()},t.prototype.toUint8Array=function(){return this._byteString.toUint8Array()},t.prototype.toString=function(){return"Bytes(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this._byteString.isEqual(t._byteString)},t}(),vg=function(t){this._methodName=t},Cg=function(){function t(t,e){if(!isFinite(t)||t<-90||t>90)throw new Vs(qs.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new Vs(qs.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this._lat=t,this._long=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this._lat},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this._long},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this._lat===t._lat&&this._long===t._long},t.prototype.toJSON=function(){return{latitude:this._lat,longitude:this._long}},t.prototype._compareTo=function(t){return Xs(this._lat,t._lat)||Xs(this._long,t._long)},t}(),xg=/^__.*__$/,wg=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutation=function(t,e){return null!==this.fieldMask?new $c(t,this.data,this.fieldMask,e,this.fieldTransforms):new Jc(t,this.data,e,this.fieldTransforms)},t}(),Og=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutation=function(t,e){return new $c(t,this.data,this.fieldMask,e,this.fieldTransforms)},t}();function Pg(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Qs()}}var Mg=function(){function t(t,e,n,i,o,r){this.settings=t,this.databaseId=e,this.R=n,this.ignoreUndefinedProperties=i,void 0===o&&this.Cc(),this.fieldTransforms=o||[],this.fieldMask=r||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Nc",{get:function(){return this.settings.Nc},enumerable:!1,configurable:!0}),t.prototype.xc=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.R,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)},t.prototype.kc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),i=this.xc({path:n,Fc:!1});return i.$c(t),i},t.prototype.Oc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),i=this.xc({path:n,Fc:!1});return i.Cc(),i},t.prototype.Mc=function(t){return this.xc({path:void 0,Fc:!0})},t.prototype.Lc=function(t){return Hg(t,this.settings.methodName,this.settings.Bc||!1,this.path,this.settings.qc)},t.prototype.contains=function(t){return void 0!==this.fieldMask.find(function(e){return t.isPrefixOf(e)})||void 0!==this.fieldTransforms.find(function(e){return t.isPrefixOf(e.field)})},t.prototype.Cc=function(){if(this.path)for(var t=0;t<this.path.length;t++)this.$c(this.path.get(t))},t.prototype.$c=function(t){if(0===t.length)throw this.Lc("Document fields must not be empty");if(Pg(this.Nc)&&xg.test(t))throw this.Lc('Document fields cannot begin and end with "__"')},t}(),Tg=function(){function t(t,e,n){this.databaseId=t,this.ignoreUndefinedProperties=e,this.R=n||jd(t)}return t.prototype.Uc=function(t,e,n,i){return void 0===i&&(i=!1),new Mg({Nc:t,methodName:e,qc:n,path:la.emptyPath(),Fc:!1,Bc:i},this.databaseId,this.R,this.ignoreUndefinedProperties)},t}();function kg(t){var e=t._freezeSettings(),n=jd(t._databaseId);return new Tg(t._databaseId,!!e.ignoreUndefinedProperties,n)}function Sg(t,e,n,i,o,r){void 0===r&&(r={});var s=t.Uc(r.merge||r.mergeFields?2:0,e,n,o);jg("Data must be an object, but it was:",s,i);var a,c,u=qg(i,s);if(r.merge)a=new ha(s.fieldMask),c=s.fieldTransforms;else if(r.mergeFields){for(var l=[],h=0,d=r.mergeFields;h<d.length;h++){var p=zg(e,d[h],n);if(!s.contains(p))throw new Vs(qs.INVALID_ARGUMENT,"Field '"+p+"' is specified in your field mask but missing from your input data.");Yg(l,p)||l.push(p)}a=new ha(l),c=s.fieldTransforms.filter(function(t){return a.covers(t.field)})}else a=null,c=s.fieldTransforms;
1return new wg(new Ua(u),a,c)}var Eg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Pn.ZT)(e,t),e.prototype._toFieldTransform=function(t){if(2!==t.Nc)throw t.Lc(1===t.Nc?this._methodName+"() can only appear at the top level of your update data":this._methodName+"() cannot be used with set() unless you pass {merge:true}");return t.fieldMask.push(t.path),null},e.prototype.isEqual=function(t){return t instanceof e},e}(vg);function Ag(t,e,n){return new Mg({Nc:3,qc:e.settings.qc,methodName:t._methodName,Fc:n},e.databaseId,e.R,e.ignoreUndefinedProperties)}var Ig=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Pn.ZT)(e,t),e.prototype._toFieldTransform=function(t){return new Zc(t.path,new Ac)},e.prototype.isEqual=function(t){return t instanceof e},e}(vg),Rg=function(t){function e(e,n){var i=this;return(i=t.call(this,e)||this).Kc=n,i}return(0,Pn.ZT)(e,t),e.prototype._toFieldTransform=function(t){var e=Ag(this,t,!0),n=this.Kc.map(function(t){return Zg(t,e)}),i=new Ic(n);return new Zc(t.path,i)},e.prototype.isEqual=function(t){return this===t},e}(vg),Ng=function(t){function e(e,n){var i=this;return(i=t.call(this,e)||this).Kc=n,i}return(0,Pn.ZT)(e,t),e.prototype._toFieldTransform=function(t){var e=Ag(this,t,!0),n=this.Kc.map(function(t){return Zg(t,e)}),i=new Nc(n);return new Zc(t.path,i)},e.prototype.isEqual=function(t){return this===t},e}(vg),Lg=function(t){function e(e,n){var i=this;return(i=t.call(this,e)||this).Qc=n,i}return(0,Pn.ZT)(e,t),e.prototype._toFieldTransform=function(t){var e=new Dc(t.R,Mc(t.R,this.Qc));return new Zc(t.path,e)},e.prototype.isEqual=function(t){return this===t},e}(vg);function Dg(t,e,n,i){var o=t.Uc(1,e,n);jg("Data must be an object, but it was:",o,i);var r=[],s=Ua.empty();ra(i,function(t,i){var a=Bg(e,t,n);i=(0,Mn.m9)(i);var c=o.Oc(a);if(i instanceof Eg)r.push(a);else{var u=Zg(i,c);null!=u&&(r.push(a),s.set(a,u))}});var a=new ha(r);return new Og(s,a,o.fieldTransforms)}function Fg(t,e,n,i,o,r){var s=t.Uc(1,e,n),a=[zg(e,i,n)],c=[o];if(r.length%2!=0)throw new Vs(qs.INVALID_ARGUMENT,"Function "+e+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var u=0;u<r.length;u+=2)a.push(zg(e,r[u])),c.push(r[u+1]);for(var l=[],h=Ua.empty(),d=a.length-1;d>=0;--d)if(!Yg(l,a[d])){var p=a[d],f=c[d];f=(0,Mn.m9)(f);var g=s.Oc(p);if(f instanceof Eg)l.push(p);else{var m=Zg(f,g);null!=m&&(l.push(p),h.set(p,m))}}var _=new ha(l);return new Og(h,_,s.fieldTransforms)}function Ug(t,e,n,i){return void 0===i&&(i=!1),Zg(n,t.Uc(i?4:3,e))}function Zg(t,e){if(Vg(t=(0,Mn.m9)(t)))return jg("Unsupported field value:",e,t),qg(t,e);if(t instanceof vg)return function(t,e){if(!Pg(e.Nc))throw e.Lc(t._methodName+"() can only be used with update() and set()");if(!e.path)throw e.Lc(t._methodName+"() is not currently supported inside arrays");var n=t._toFieldTransform(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(void 0===t&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.Fc&&4!==e.Nc)throw e.Lc("Nested arrays are not supported");return function(t,e){for(var n=[],i=0,o=0,r=t;o<r.length;o++){var s=Zg(r[o],e.Mc(i));null==s&&(s={nullValue:"NULL_VALUE"}),n.push(s),i++}return{arrayValue:{values:n}}}(t,e)}return function(t,e){if(null===(t=(0,Mn.m9)(t)))return{nullValue:"NULL_VALUE"};if("number"==typeof t)return Mc(e.R,t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){var n=na.fromDate(t);return{timestampValue:Nu(e.R,n)}}if(t instanceof na)return n=new na(t.seconds,1e3*Math.floor(t.nanoseconds/1e3)),{timestampValue:Nu(e.R,n)};if(t instanceof Cg)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof bg)return{bytesValue:Lu(e.R,t._byteString)};if(t instanceof og){var i=t.firestore._databaseId;if(!i.isEqual(n=e.databaseId))throw e.Lc("Document reference is for database "+i.projectId+"/"+i.database+" but should be for database "+n.projectId+"/"+n.database);return{referenceValue:Uu(t.firestore._databaseId||e.databaseId,t._key.path)}}throw e.Lc("Unsupported field value: "+Xf(t))}(t,e)}function qg(t,e){var n={};return sa(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):ra(t,function(t,i){var o=Zg(i,e.kc(t));null!=o&&(n[t]=o)}),{mapValue:{fields:n}}}function Vg(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof na||t instanceof Cg||t instanceof bg||t instanceof og||t instanceof vg)}function jg(t,e,n){if(!Vg(n)||"object"!=typeof(o=n)||null===o||Object.getPrototypeOf(o
1)!==Object.prototype&&null!==Object.getPrototypeOf(o)){var i=Xf(n);throw e.Lc("an object"===i?t+" a custom object":t+" "+i)}var o}function zg(t,e,n){if((e=(0,Mn.m9)(e))instanceof yg)return e._internalPath;if("string"==typeof e)return Bg(t,e);throw Hg("Field path arguments must be of type string or FieldPath.",t,!1,void 0,n)}var Gg=new RegExp("[~\\*/\\[\\]]");function Bg(t,e,n){if(e.search(Gg)>=0)throw Hg("Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'",t,!1,void 0,n);try{return(new(yg.bind.apply(yg,(0,Pn.ev)([void 0],e.split(".")))))._internalPath}catch(i){throw Hg("Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'",t,!1,void 0,n)}}function Hg(t,e,n,i,o){var r=i&&!i.isEmpty(),s=void 0!==o,a="Function "+e+"() called with invalid data";n&&(a+=" (via `toFirestore()`)");var c="";return(r||s)&&(c+=" (found",r&&(c+=" in field "+i),s&&(c+=" in document "+o),c+=")"),new Vs(qs.INVALID_ARGUMENT,(a+=". ")+t+c)}function Yg(t,e){return t.some(function(t){return t.isEqual(e)})}var Qg=function(){function t(t,e,n,i,o){this._firestore=t,this._userDataWriter=e,this._key=n,this._document=i,this._converter=o}return Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new og(this._firestore,this._converter,this._key)},enumerable:!1,configurable:!0}),t.prototype.exists=function(){return null!==this._document},t.prototype.data=function(){if(this._document){if(this._converter){var t=new Jg(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(t)}return this._userDataWriter.convertValue(this._document.data.value)}},t.prototype.get=function(t){if(this._document){var e=this._document.data.field($g("DocumentSnapshot.get",t));if(null!==e)return this._userDataWriter.convertValue(e)}},t}(),Jg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Pn.ZT)(e,t),e.prototype.data=function(){return t.prototype.data.call(this)},e}(Qg);function $g(t,e){return"string"==typeof e?Bg(t,e):e instanceof yg?e._internalPath:e._delegate._internalPath}var Wg=function(){function t(t,e){this.hasPendingWrites=t,this.fromCache=e}return t.prototype.isEqual=function(t){return this.hasPendingWrites===t.hasPendingWrites&&this.fromCache===t.fromCache},t}(),Kg=function(t){function e(e,n,i,o,r,s){var a=this;return(a=t.call(this,e,n,i,o,s)||this)._firestore=e,a._firestoreImpl=e,a.metadata=r,a}return(0,Pn.ZT)(e,t),e.prototype.exists=function(){return t.prototype.exists.call(this)},e.prototype.data=function(t){if(void 0===t&&(t={}),this._document){if(this._converter){var e=new Xg(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(e,t)}return this._userDataWriter.convertValue(this._document.data.value,t.serverTimestamps)}},e.prototype.get=function(t,e){if(void 0===e&&(e={}),this._document){var n=this._document.data.field($g("DocumentSnapshot.get",t));if(null!==n)return this._userDataWriter.convertValue(n,e.serverTimestamps)}},e}(Qg),Xg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Pn.ZT)(e,t),e.prototype.data=function(e){return void 0===e&&(e={}),t.prototype.data.call(this,e)},e}(Kg),tm=function(){function t(t,e,n,i){this._firestore=t,this._userDataWriter=e,this._snapshot=i,this.metadata=new Wg(i.hasPendingWrites,i.fromCache),this.query=n}return Object.defineProperty(t.prototype,"docs",{get:function(){var t=[];return this.forEach(function(e){return t.push(e)}),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._snapshot.docs.size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;this._snapshot.docs.forEach(function(i){t.call(e,new Xg(n._firestore,n._userDataWriter,i.key,i,new Wg(n._snapshot.mutatedKeys.has(i.key),n._snapshot.fromCache),n.query.converter))})},t.prototype.docChanges=function(t){void 0===t&&(t={});var e=!!t.includeMetadataChanges;if(e&&this._snapshot.excludesMetadataChanges)throw new Vs(qs.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=function(t,e){if(t._snapshot.oldDocs.isEmpty()){var n=0;return t._snapshot.docChanges.map(function(e){return{type:"added",doc:new Xg(t._firestore,t._userDataWriter,e.doc.key,e.doc,new Wg(t._snapshot.mutatedKeys.has(e.doc.key),t._snapshot.fromCache),t.query.converter),oldIndex:-1,newIndex:n++}})}var i=t._snapshot.oldDocs;return t._snapshot.docChanges.filter(function(t){return e||3!==t.type}).map(function(e){var n=new Xg(t._firestore,t._userDataWriter,e.doc.key,e.doc,new Wg(t._snapshot.mutatedKeys.has(e.doc.key),t._snapshot.fromCache),t.query.converter),o=-1,r=-1;return 0!==e.type&&(o=i.indexOf(e.doc.key),i=i.delete(e.doc.key)),1!==e.type&&(r=(i=i.add(e.doc)).indexOf(e.doc.key)),{type:em(e.type),doc:n,oldIndex:o,newIndex:r}})}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges},t}();function em(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Qs()}}function nm(t,e){return t instanceof Kg&&e instanceof Kg?t._firestore===e._firestore&&t._key.isEqual(e._key)&&(null===t._document?null===e._document:t._document.isEqual(e._document))&&t._
1converter===e._converter:t instanceof tm&&e instanceof tm&&t._firestore===e._firestore&&lg(t.query,e.query)&&t.metadata.isEqual(e.metadata)&&t._snapshot.isEqual(e._snapshot)}function im(t){if(hc(t)&&0===t.explicitOrderBy.length)throw new Vs(qs.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var om=function(){};function rm(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,o=e;i<o.length;i++){var r=o[i];t=r._apply(t)}return t}var sm=function(t){function e(e,n,i){var o=this;return(o=t.call(this)||this).jc=e,o.Wc=n,o.Gc=i,o.type="where",o}return(0,Pn.ZT)(e,t),e.prototype._apply=function(t){var e,n,i=kg(t.firestore),o=function(t,e,n,i,o,r,s){var a;if(o.isKeyField()){if("array-contains"===r||"array-contains-any"===r)throw new Vs(qs.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+r+"' queries on FieldPath.documentId().");if("in"===r||"not-in"===r){pm(s,r);for(var c=[],u=0,l=s;u<l.length;u++)c.push(dm(i,t,l[u]));a={arrayValue:{values:c}}}else a=dm(i,t,s)}else"in"!==r&&"not-in"!==r&&"array-contains-any"!==r||pm(s,r),a=Ug(n,"where",s,"in"===r||"not-in"===r);var h=Ha.create(o,r,a);return function(t,e){if(e.g()){var n=pc(t);if(null!==n&&!n.isEqual(e.field))throw new Vs(qs.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+e.field.toString()+"'");var i=dc(t);null!==i&&fm(0,e.field,i)}var o=function(t,e){for(var n=0,i=t.filters;n<i.length;n++){var o=i[n];if(e.indexOf(o.op)>=0)return o.op}return null}(t,function(t){switch(t){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(null!==o)throw new Vs(qs.INVALID_ARGUMENT,o===e.op?"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter.":"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+o.toString()+"' filters.")}(t,h),h}(t._query,0,i,t.firestore._databaseId,this.jc,this.Wc,this.Gc);return new rg(t.firestore,t.converter,(n=(e=t._query).filters.concat([o]),new ac(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)))},e}(om),am=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).jc=e,i.zc=n,i.type="orderBy",i}return(0,Pn.ZT)(e,t),e.prototype._apply=function(t){var e,n,i=function(t,e,n){if(null!==t.startAt)throw new Vs(qs.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==t.endAt)throw new Vs(qs.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var i=new ic(e,n);return function(t,e){if(null===dc(t)){var n=pc(t);
1null!==n&&fm(0,n,e.field)}}(t,i),i}(t._query,this.jc,this.zc);return new rg(t.firestore,t.converter,(n=(e=t._query).explicitOrderBy.concat([i]),new ac(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)))},e}(om),cm=function(t){function e(e,n,i){var o=this;return(o=t.call(this)||this).type=e,o.Hc=n,o.Jc=i,o}return(0,Pn.ZT)(e,t),e.prototype._apply=function(t){return new rg(t.firestore,t.converter,_c(t._query,this.Hc,this.Jc))},e}(om),um=function(t){function e(e,n,i){var o=this;return(o=t.call(this)||this).type=e,o.Yc=n,o.Xc=i,o}return(0,Pn.ZT)(e,t),e.prototype._apply=function(t){var e,n,i=hm(t,this.type,this.Yc,this.Xc);return new rg(t.firestore,t.converter,(n=i,new ac((e=t._query).path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,n,e.endAt)))},e}(om),lm=function(t){function e(e,n,i){var o=this;return(o=t.call(this)||this).type=e,o.Yc=n,o.Xc=i,o}return(0,Pn.ZT)(e,t),e.prototype._apply=function(t){var e,n,i=hm(t,this.type,this.Yc,this.Xc);return new rg(t.firestore,t.converter,(n=i,new ac((e=t._query).path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,n)))},e}(om);function hm(t,e,n,i){if(n[0]=(0,Mn.m9)(n[0]),n[0]instanceof Qg)return function(t,e,n,i,o){if(!i)throw new Vs(qs.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var r=[],s=0,a=gc(t);s<a.length;s++){var c=a[s];if(c.field.isKeyField())r.push(Aa(e,i.key));else{var u=i.data.field(c.field);if(_a(u))throw new Vs(qs.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+c.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===u){var l=c.field.canonicalString();throw new Vs(qs.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+l+"' (used as the orderBy) does not exist.")}r.push(u)}}return new ec(r,o)}(t._query,t.firestore._databaseId,e,n[0]._document,i);var o=kg(t.firestore);return function(t,e,n,i,o,r){var s=t.explicitOrderBy;if(o.length>s.length)throw new Vs(qs.INVALID_ARGUMENT,"Too many arguments provided to "+i+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var a=[],c=0;c<o.length;c++){var u=o[c];if(s[c].field.isKeyField()){if("string"!=typeof u)throw new Vs(qs.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+i+"(), but got a "+typeof u);if(!fc(t)&&-1!==u.indexOf("/"))throw new Vs(qs.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+i+"() must be a plain document ID, but '"+u+"' contains a slash.");var l=t.path.child(ca.fromString(u));if(!wa.isDocumentKey(l))throw new Vs(qs.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+i+"() must result in a valid document path, but '"+l+"' is not because it contains an odd number of segments.");var h=new wa(l);a.push(Aa(e,h))}else{var d=Ug(n,i,u);a.push(d)}}return new ec(a,r)}(t._query,t.firestore._databaseId,o,e,n,i)}function dm(t,e,n){if("string"==typeof(n=(0,Mn.m9)(n))){if(""===n)throw new Vs(qs.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!fc(e)&&-1!==n.indexOf("/"))throw new Vs(qs.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+n+"' contains a '/' character.");var i=e.path.child(ca.fromString(n));if(!wa.isDocumentKey(i))throw new Vs(qs.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+i+"' is not because it has an odd number of segments ("+i.length+").");return Aa(t,new wa(i))}if(n instanceof og)return Aa(t,n._key);throw new Vs(qs.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+Xf(n)+".")}function pm(t,e){if(!Array.isArray(t)||0===t.length)throw new Vs(qs.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new Vs(qs.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.")}function fm(t,e,n){if(!n.isEqual(e))throw new Vs(qs.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first argument to orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}var gm=function(){function t(){}return t.prototype.convertValue=function(t,e){switch(void 0===e&&(e="none"),Oa(t)){case 0:return null;case 1:return t.booleanValue;case 2:return ga(t.integerValue||t.doubleValue);case 3:return this.convertTimestamp(t.timestampValue);case 4:return this.convertServerTimestamp(t,e);case 5:return t.stringValue;case 6:return this.convertBytes(ma(t.bytesValue));case 7:return this.convertReference(t.referenceValue);case 8:return this.convertGeoPoint(t.geoPointValue);case 9:return this.convertArray(t.arrayValue,e);case 10:return this.convertObject(t.mapValue,e);default:throw Qs()}},t.prototype.convertObject=function(t,e){var n=this,i={};return ra(t.fields,function(t,o){i[t]=n.convertValue(o,e)}),i},t.prototype.convertGeoPoint=function(t){return new Cg(ga(t.latitude),ga(t.longitude))},t.prototype.convertArray=function(t,e){var n=this;return(t.values||[]).map(function(t){return n.convertValue(t,e)})},t.prototype.convertServerTimestamp=function(t,e){switch(e){case"previous":var n=ya(t);return null==n?null:this.convertValue(n,e);case"estimate":return this.convertTimestamp(ba(t));default:return null}},t.prototype.convertTimestamp=function(t){var e=fa(t);return new na(e.seconds,e.nanos)},t.prototype.convertDocumentKey=function(t,e){var n=ca.fromString(t);Js(ul(n));var i=new qf(n.get(1),n.get(3)),o=new wa(n.popFirst(5));return i.isEqual(e)||Bs("Document "+o+" contains a document reference within a different database ("+i.projectId+"/"+i.database+") which is not supported. It will be treated as a reference in the current database ("+e.projectId+"/"+e.database+") instead."),o},t}();function mm(t,e,n){return t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e}var _m=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return(0,Pn.ZT)(e,t),e.prototype.convertBytes=function(t){return new bg(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);
1return new og(this.firestore,null,e)},e}(gm),ym=function(){function t(t,e){this._firestore=t,this._commitHandler=e,this._mutations=[],this._committed=!1,this._dataReader=kg(t)}return t.prototype.set=function(t,e,n){this._verifyNotCommitted();var i=bm(t,this._firestore),o=mm(i.converter,e,n),r=Sg(this._dataReader,"WriteBatch.set",i._key,o,null!==i.converter,n);return this._mutations.push(r.toMutation(i._key,Vc.none())),this},t.prototype.update=function(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];this._verifyNotCommitted();var r,s=bm(t,this._firestore);return r="string"==typeof(e=(0,Mn.m9)(e))||e instanceof yg?Fg(this._dataReader,"WriteBatch.update",s._key,e,n,i):Dg(this._dataReader,"WriteBatch.update",s._key,e),this._mutations.push(r.toMutation(s._key,Vc.exists(!0))),this},t.prototype.delete=function(t){this._verifyNotCommitted();var e=bm(t,this._firestore);return this._mutations=this._mutations.concat(new nu(e._key,Vc.none())),this},t.prototype.commit=function(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()},t.prototype._verifyNotCommitted=function(){if(this._committed)throw new Vs(qs.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}();function bm(t,e){if((t=(0,Mn.m9)(t)).firestore!==e)throw new Vs(qs.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}var vm=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return(0,Pn.ZT)(e,t),e.prototype.convertBytes=function(t){return new bg(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return new og(this.firestore,null,e)},e}(gm);function Cm(t,e,n){t=tg(t,og);var i=tg(t.firestore,pg),o=mm(t.converter,e,n);return Om(i,[Sg(kg(i),"setDoc",t._key,o,null!==t.converter,n).toMutation(t._key,Vc.none())])}function xm(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];t=tg(t,og);var r=tg(t.firestore,pg),s=kg(r);return Om(r,[("string"==typeof(e=(0,Mn.m9)(e))||e instanceof yg?Fg(s,"updateDoc",t._key,e,n,i):Dg(s,"updateDoc",t._key,e)).toMutation(t._key,Vc.exists(!0))])}function wm(t){for(var e,n,i,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];t=(0,Mn.m9)(t);var s={includeMetadataChanges:!1},a=0;"object"!=typeof o[a]||dg(o[a])||(s=o[a],a++);var c,u,l,h={includeMetadataChanges:s.includeMetadataChanges};if(dg(o[a])){var d=o[a];o[a]=null===(e=d.next)||void 0===e?void 0:e.bind(d),o[a+1]=null===(n=d.error)||void 0===n?void 0:n.bind(d),o[a+2]=null===(i=d.complete)||void 0===i?void 0:i.bind(d)}if(t instanceof og)u=tg(t.firestore,pg),l=uc(t._key.path),c={next:function(e){o[a]&&o[a](Pm(u,t,e))},error:o[a+1],complete:o[a+2]};else{var p=tg(t,rg);u=tg(p.firestore,pg),l=p._query;var f=new vm(u);c={next:function(t){o[a]&&o[a](new tm(u,f,p,t))},error:o[a+1],complete:o[a+2]},im(t._query)}return function(t,e,n,i){var o=this,r=new Of(i),s=new Rp(e,r,n);return t.asyncQueue.enqueueAndForget(function(){return(0,Pn.mG)(o,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return e=kp,[4,Df(t)];case 1:return[2,e.apply(void 0,[n.sent(),s])]}})})}),function(){r.Wo(),t.asyncQueue.enqueueAndForget(function(){return(0,Pn.mG)(o,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return e=Sp,[4,Df(t)];case 1:return[2,e.apply(void 0,[n.sent(),s])]}})})})}}(fg(u),l,h,c)}function Om(t,e){return function(t,e){var n=this,i=new Rl;return t.asyncQueue.enqueueAndForget(function(){return(0,Pn.mG)(n,void 0,void 0,function(){var n;return(0,Pn.Jh)(this,function(o){switch(o.label){case 0:return n=Bp,[4,Lf(t)];case 1:return[2,n.apply(void 0,[o.sent(),e,i])]}})})}),i.promise}(fg(t),e)}function Pm(t,e,n){var i=n.docs.get(e._key),o=new vm(t);return new Kg(t,o,e._key,i,new Wg(n.hasPendingWrites,n.fromCache),e.converter)}var Mm=function(t){function e(e,n){var i=this;return(i=t.call(this,e,n)||this)._firestore=e,i}return(0,Pn.ZT)(e,t),e.prototype.get=function(e){var n=this,i=bm(e,this._firestore),o=new vm(this._firestore);return t.prototype.get.call(this,e).then(function(t){return new Kg
1(n._firestore,o,i._key,t._document,new Wg(!1,!1),i.converter)})},e}(function(){function t(t,e){this._firestore=t,this._transaction=e,this._dataReader=kg(t)}return t.prototype.get=function(t){var e=this,n=bm(t,this._firestore),i=new _m(this._firestore);return this._transaction.lookup([n._key]).then(function(t){if(!t||1!==t.length)return Qs();var o=t[0];if(o.isFoundDocument())return new Qg(e._firestore,i,o.key,o,n.converter);if(o.isNoDocument())return new Qg(e._firestore,i,n._key,null,n.converter);throw Qs()})},t.prototype.set=function(t,e,n){var i=bm(t,this._firestore),o=mm(i.converter,e,n),r=Sg(this._dataReader,"Transaction.set",i._key,o,null!==i.converter,n);return this._transaction.set(i._key,r),this},t.prototype.update=function(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var r,s=bm(t,this._firestore);return r="string"==typeof(e=(0,Mn.m9)(e))||e instanceof yg?Fg(this._dataReader,"Transaction.update",s._key,e,n,i):Dg(this._dataReader,"Transaction.update",s._key,e),this._transaction.update(s._key,r),this},t.prototype.delete=function(t){var e=bm(t,this._firestore);return this._transaction.delete(e._key),this},t}());function Tm(){if("undefined"==typeof Uint8Array)throw new Vs(qs.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function km(){if("undefined"==typeof atob)throw new Vs(qs.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var Sm=function(){function t(t){this._delegate=t}return t.fromBase64String=function(e){return km(),new t(bg.fromBase64String(e))},t.fromUint8Array=function(e){return Tm(),new t(bg.fromUint8Array(e))},t.prototype.toBase64=function(){return km(),this._delegate.toBase64()},t.prototype.toUint8Array=function(){return Tm(),this._delegate.toUint8Array()},t.prototype.isEqual=function(t){return this._delegate.isEqual(t._delegate)},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t}(),Em=function(){function t(){}return t.prototype.enableIndexedDbPersistence=function(t,e){return function(t,e){_g(t=tg(t,pg));var n=fg(t),i=t._freezeSettings(),o=new wf;return mg(n,o,new Cf(o,i.cacheSizeBytes,null==e?void 0:e.forceOwnership))}(t._delegate,{forceOwnership:e})},t.prototype.enableMultiTabIndexedDbPersistence=function(t){return function(t){_g(t=tg(t,pg));var e=fg(t),n=t._freezeSettings(),i=new wf;return mg(e,i,new xf(i,n.cacheSizeBytes))}(t._delegate)},t.prototype.clearIndexedDbPersistence=function(t){return function(t){var e=this;if(t._initialized&&!t._terminated)throw new Vs(qs.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");var n=new Rl;return t._queue.enqueueAndForgetEvenWhileRestricted(function(){return(0,Pn.mG)(e,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,function(t){return(0,Pn.mG)(this,void 0,void 0,function(){return(0,Pn.Jh)(this,function(e){switch(e.label){case 0:return Dl.yt()?[4,Dl.delete(t+"main")]:[2,Promise.resolve()];case 1:return e.sent(),[2]}})})}(Yh(t._databaseId,t._persistenceKey))];case 1:return i.sent(),n.resolve(),[3,3];case 2:return e=i.sent(),n.reject(e),[3,3];case 3:return[2]}})})}),n.promise}(t._delegate)},t}(),Am=function(){function t(t,e,n){var i=this;this._delegate=e,this.Zc=n,this.INTERNAL={delete:function(){return i.terminate()}},t instanceof qf||(this.tu=t)}return Object.defineProperty(t.prototype,"_databaseId",{get:function(){return this._delegate._databaseId},enumerable:!1,configurable:!0}),t.prototype.settings=function(t){var e=this._delegate._getSettings();t.merge||e.host===t.host||Hs("You are overriding the original host. If you did not intend to override your settings, use {merge: true}."),t.merge&&delete(t=Object.assign(Object.assign({},e),t)).merge,this._delegate._setSettings(t)},t.prototype.useEmulator=function(t,e,n){void 0===n&&(n={}),function(t,e,n,i){var o;void 0===i&&(i={});var r=(t=tg(t,ig))._getSettings();if("firestore.googleapis.com"!==r.host&&r.host!==e&&Hs("Host has been set in both settings() and useEmulator(), emulator host will be used"),t._setSettings(Object.assign(Object.assign({},r),{host:e+":"+n,ssl:!1})),i.mockUserToken){var s,a;if("string"==typeof i.mockUserToken)s=i.mockUserToken,a=Od.MOCK_USER;else{s=(0,Mn.Sg)(i.mockUserToken,null===(o=t._app)||void 0===o?void 0:o.options.projectId);var c=i.mockUserToken.sub||i.mockUserToken.user_id;if(!c)throw new Vs(qs.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");a=new Od(c)}t._credentials=new Gf(new jf(s,a))}}(this._delegate,t,e,n)},t.prototype.enableNetwork=function(){return function(t){var e=this;return t.asyncQueue.enqueue(function(){return(0,Pn.mG)(e,void 0,void 0,function(){var e,n;return(0,Pn.Jh)(this,function(i){switch(i.label){case 0:return[4,If(t)];case 1:return e=i.sent(),[4,Nf(t)];case 2:return n=i.sent(),[2,(e.setNetworkEnabled(!0),o=n,r=$s(o),r.Or.delete(0),$d(r))]}var o,r})})})}(fg(tg(this._delegate,pg)))},t.prototype.disableNetwork=function(){return function(t){var e=this;return t.asyncQueue.enqueue(function(){return(0,Pn.mG)(e,void 0,void 0,function(){var e,n;return(0,Pn.Jh)(this,function(i){switch(i.label){case 0:return[4,If(t)];case 1:return e=i.sent(),[4,Nf(t)];case 2:return n=i.sent(),[2,(e.setNetworkEnabled(!1),function(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return(e=$s(t)).Or.add(0),[4,Wd(e)];case 1:return n.sent(),e.Br.set("Offline"),[2]}})})}(n))]}})})})}(fg(tg(this._delegate,pg)))},t.prototype.enablePersistence=function(t){var e=!1,n=!1;return t&&$f("synchronizeTabs",e=!!t.synchronizeTabs,"experimentalForceOwningTab",n=!!t.experimentalForceOwningTab),e?this.Zc.enableMultiTabIndexedDbPersistence(this):this.Zc.enableIndexedDbPersistence(this,n)},t.prototype.clearPersistence=function(){return this.Zc.clearIndexedDbPersistence(this)},t.prototype.terminate=function(){return this.tu&&(this.tu._removeServiceInstance("firestore"),this.tu._removeServiceInstance("firestore-exp")),this._delegate._delete()},t.prototype.waitForPendingWrites=function(){return function(t){var e=this,n=new Rl;return t.asyncQueue.enqueueAndForget(function(){return(0,Pn.mG)(e,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(i){switch(i.label){case 0:return e=Wp,[4,Lf(t)];case 1:return[2,e.apply(void 0,[i.sent(),n])]}})})}),n.promise}(fg(tg(this._delegate,pg)))},t.prototype.onSnapshotsInSync=function(t){return e=t,function(t,e){var n=this,i=new Of(e);return t.asyncQueue.enqueueAndForget(function(){return(0,Pn.mG)(n,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return e=function(t,e){$s(t).Gr.add(e),e.next()},[4,Df(t)];case 1:return[2,e.apply(void 0,[n.sent(),i])]}})})}),function(){i.Wo(),t.asyncQueue.enqueueAndForget(function(){return(0,Pn.mG)(n,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return e=function(t,e){$s(t).Gr.delete(e)},[4,Df(t)];case 1:return[2,e.apply(void 0,[n.sent(),i])]}})})})}}(fg(tg(this._delegate,pg)),dg(e)?e:{next:e});var e},Object.defineProperty(t.prototype,"app",{get:function(){if(!this.tu)throw new Vs(qs.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.tu}
1,enumerable:!1,configurable:!0}),t.prototype.collection=function(t){try{return new Bm(this,ag(this._delegate,t))}catch(e){throw Fm(e,"collection()","Firestore.collection()")}},t.prototype.doc=function(t){try{return new Dm(this,cg(this._delegate,t))}catch(e){throw Fm(e,"doc()","Firestore.doc()")}},t.prototype.collectionGroup=function(t){try{return new jm(this,function(t,e){if(t=tg(t,ig),Qf("collectionGroup","collection id",e),e.indexOf("/")>=0)throw new Vs(qs.INVALID_ARGUMENT,"Invalid collection ID '"+e+"' passed to function collectionGroup(). Collection IDs must not contain '/'.");return new rg(t,null,(n=e,new ac(ca.emptyPath(),n)));var n}(this._delegate,t))}catch(e){throw Fm(e,"collectionGroup()","Firestore.collectionGroup()")}},t.prototype.runTransaction=function(t){var e,n=this;return function(t,e){var n=this,i=new Rl;return t.asyncQueue.enqueueAndForget(function(){return(0,Pn.mG)(n,void 0,void 0,function(){var n;return(0,Pn.Jh)(this,function(o){switch(o.label){case 0:return[4,(r=t,Af(r).then(function(t){return t.datastore}))];case 1:return n=o.sent(),new Mf(t.asyncQueue,n,e,i).run(),[2]}var r})})}),i.promise}(fg(e=this._delegate),function(i){return function(e){return t(new Rm(n,e))}(new Mm(e,i))})},t.prototype.batch=function(){var t=this;return fg(this._delegate),new Nm(new ym(this._delegate,function(e){return Om(t._delegate,e)}))},t.prototype.loadBundle=function(t){throw new Vs(qs.FAILED_PRECONDITION,'"loadBundle()" does not exist, have you imported "firebase/firestore/bundle"?')},t.prototype.namedQuery=function(t){throw new Vs(qs.FAILED_PRECONDITION,'"namedQuery()" does not exist, have you imported "firebase/firestore/bundle"?')},t}(),Im=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return(0,Pn.ZT)(e,t),e.prototype.convertBytes=function(t){return new Sm(new bg(t))},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return Dm.eu(e,this.firestore,null)},e}(gm),Rm=function(){function t(t,e){this._firestore=t,this._delegate=e,this._userDataWriter=new Im(t)}return t.prototype.get=function(t){var e=this,n=Hm(t);return this._delegate.get(n).then(function(t){return new qm(e._firestore,new Kg(e._firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,n.converter))})},t.prototype.set=function(t,e,n){var i=Hm(t);return n?(Jf("Transaction.set",n),this._delegate.set(i,e,n)):this._delegate.set(i,e),this},t.prototype.update=function(t,e,n){for(var i,o=[],r=3;r<arguments.length;r++)o[r-3]=arguments[r];var s=Hm(t);return 2===arguments.length?this._delegate.update(s,e):(i=this._delegate).update.apply(i,(0,Pn.ev)([s,e,n],o)),this},t.prototype.delete=function(t){var e=Hm(t);return this._delegate.delete(e),this},t}(),Nm=function(){function t(t){this._delegate=t}return t.prototype.set=function(t,e,n){var i=Hm(t);return n?(Jf("WriteBatch.set",n),this._delegate.set(i,e,n)):this._delegate.set(i,e),this},t.prototype.update=function(t,e,n){for(var i,o=[],r=3;r<arguments.length;r++)o[r-3]=arguments[r];var s=Hm(t);return 2===arguments.length?this._delegate.update(s,e):(i=this._delegate).update.apply(i,(0,Pn.ev)([s,e,n],o)),this},t.prototype.delete=function(t){var e=Hm(t);return this._delegate.delete(e),this},t.prototype.commit=function(){return this._delegate.commit()},t}(),Lm=function(){function t(t,e,n){this._firestore=t,this._userDataWriter=e,this._delegate=n}return t.prototype.fromFirestore=function(t,e){var n=new Xg(this._firestore._delegate,this._userDataWriter,t._key,t._document,t.metadata,null);return this._delegate.fromFirestore(new Vm(this._firestore,n),null!=e?e:{})},t.prototype.toFirestore=function(t,e){return e?this._delegate.toFirestore(t,e):this._delegate.toFirestore(t)},t.nu=function(e,n){var i=t.su,o=i.get(e);o||(o=new WeakMap,i.set(e,o));var r=o.get(n);return r||(r=new t(e,new Im(e),n),o.set(n,r)),r},t}();Lm.su=new WeakMap;var Dm=function(){function t(t,e){this.firestore=t,this._delegate=e,this._userDataWriter=new Im(t)}return t.iu=function(e,n,i){if(e.length%2!=0)throw new Vs(qs.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+e.canonicalString()+" has "+e.length);return new t(n,new og(n._delegate,i,new wa(e)))},t.eu=function(e,n,i){return new t(n,new og(n._delegate,i,e))},Object.defineProperty(t.prototype,"id",{get:function(){return this._delegate.id}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new Bm(this.firestore,this._delegate.parent)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),t.prototype.collection=function(t){try{return new Bm(this.firestore,ag(this._delegate,t))}catch(e){throw Fm(e,"collection()","DocumentReference.collection()")}},t.prototype.isEqual=function(t){return(t=(0,Mn.m9)(t))instanceof og&&ug(this._delegate,t)},t.prototype.set=function(t,e){e=Jf("DocumentReference.set",e);try{return e?Cm(this._delegate,t,e):Cm(this._delegate,t)}catch(n){throw Fm(n,"setDoc()","DocumentReference.set()")}},t.prototype.update=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];try{return 1===arguments.length?xm(this._delegate,t):xm.apply(void 0,(0,Pn.ev)([this._delegate,t,e],n))}catch(o){throw Fm(o,"updateDoc()","DocumentReference.update()")}},t.prototype.delete=function(){return Om(tg((t=this._delegate).firestore,pg),[new nu(t._key,Vc.none())]);var t},t.prototype.onSnapshot=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=Um(e),o=Zm(e,function(e){return new qm(t.firestore,new Kg(t.firestore._delegate,t._userDataWriter,e._key,e._document,e.metadata,t._delegate.converter))});return wm(this._delegate,i,o)},t.prototype.get=function(t){var e=this;return("cache"===(null==t?void 0:t.source)?function(t){t=tg(t,og);var e=tg(t.firestore,pg),n=fg(e),i=new vm(e);return function(t,e){var n=this,i=new Rl;return t.asyncQueue.enqueueAndForget(function(){return(0,Pn.mG)(n,void 0,void 0,function(){var n;return(0,Pn.Jh)(this,function(o){switch(o.label){case 0:return n=function(t,e,n){return(0,Pn.mG)(this,void 0,void 0,function(){var i,o;return(0,Pn.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(s=t,a=e,c=$s(s),c.persistence.runTransaction("read document","readonly",function(t){return c.Mn.mn(t,a)}))];case 1:return(o=r.sent()).isFoundDocument()?n.resolve(o):o.isNoDocument()?n.resolve(null):n.reject(new Vs(qs.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")),[3,3];case 2:return i=r.sent(),o=xp(i,"Failed to get document '"+e+" from cache"),n.reject(o),[3,3];case 3:return[2]}var s,a,c})})},[4,Rf(t)];case 1:return[2,n.apply(void 0,[o.sent(),e,i])]}})})}),i.promise}(n,t._key).then(function(n){return new Kg(e,i,t._key,n,new Wg(null!==n&&n.hasLocalMutations,!0),t.converter)})}(this._delegate):"server"===(null==t?void 0:t.source)?function(t){t=tg(t,og);var e=tg(t.firestore,pg);return Ff(fg(e),t._key,{source:"server"}).then(function(n){return Pm(e,t,n)})}(this._delegate):function(t){t=tg(t,og);var e=tg(t.firestore,pg);return Ff(fg(e),t._key).then(function(n){return Pm(e,t,n)})}(this._delegate)).then(function(t){return new qm(e.firestore,new Kg(e.firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,e._delegate.converter))})},t.prototype.withConverter=function(e){return new t(this.firestore,this._delegate.withConverter(e?Lm.nu(this.firestore,e):null))},t}();function Fm(t,e,n){return t.message=t.message.replace(e,n),t}function Um(t){for(var e=0,n=t;e<n.length;e++){var i=n[e];if("object"==typeof i&&!dg(i))return i}return{}}function Zm(t,e){var n,i,o;return{next:function(t){o.next&&o.next(e(t))},error:null===(n=(o=dg(t[0])?t[0]:dg(t[1])?t[1]:"function"==typeof t[0]?{next:t[0],error:t[1],complete:t[2]}:{next:t[1],error:t[2],complete:t[3]}).error)||void 0===n?void 0:n.bind(o),complete:null===(i=o.complete)||void 0===i?void 0:i.bind(o)}}var qm=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"ref",{get:function(){return new Dm(this._firestore,this._delegate.ref)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return this._delegate.metadata}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exists",{get:function(){return this._delegate.exists()},enumerable:!1,configurable:!0}),t.prototype.data=function(t){return this._delegate.data(t)},t.prototype.get=function(t,e){return this._delegate.get(t,e)},t.prototype.isEqual=function(t){return nm(this._delegate,t._delegate)},t}(),Vm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Pn.ZT)(e,t),e.prototype.data=function(t){return this._delegate.data(t)},e}(qm),jm=function(){function t(t,e){this.firestore=t,this._delegate=e,this._userDataWriter=new Im(t)}return t.prototype.where=function(e,n,i){try{return new t(this.firestore,rm(this._delegate,(r=i,s=n,a=$g("where",o=e),new sm(a,s,r))))}catch(o){throw Fm(o,/(orderBy|where)\(\)/,"Query.$1()")}var o,r,s,a},t.prototype.orderBy=function(e,n){try{return new t(this.firestore,rm(this._delegate,function(t,e){void 0===e&&(e="asc");var n=e,i=$g("orderBy",t);return new am(i,n)}(e,n)))}catch(i){throw Fm(i,/(orderBy|where)\(\)/,"Query.$1()")}},t.prototype.limit=function(e){try{return new t(this.firestore,rm(this._delegate,(eg("limit",n=e),new cm("limit",n,"F"))))}catch(n){throw Fm(n,"limit()","Query.limit()")}var n},t.prototype.limitToLast=function(e){try{return new t(this.firestore,rm(this._delegate,(eg("limitToLast",n=e),new cm("limitToLast",n,"L"))))}catch(n){throw Fm(n,"limitToLast()","Query.limitToLast()")}var n},t.prototype.startAt=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,rm(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new um("startAt",t,!0)}).apply(void 0,e)))}catch(i){throw Fm(i,"startAt()","Query.startAt()")}},t.prototype.startAfter=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,rm(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new um("startAfter",t,!1)}).apply(void 0,e)))}catch(i){throw Fm(i,"startAfter()","Query.startAfter()")}},t.prototype.endBefore=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,rm(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new lm("endBefore",t,!0)}).apply(void 0,e)))}catch(i){throw Fm(i,"endBefore()","Query.endBefore()")}},t.prototype.endAt=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,rm(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new lm("endAt",t,!1)}).apply(void 0,e)))}catch(i){throw Fm(i,"endAt()","Query.endAt()")}},t.prototype.isEqual=function(t){return lg(this._delegate,t._delegate)},t.prototype.get=function(t){var e=this;return("cache"===(null==t?void 0:t.source)?function(t){t=tg(t,rg);var e=tg(t.firestore,pg),n=fg(e),i=new vm(e);return function(t,e){var n=this,i=new Rl;return t.asyncQueue.enqueueAndForget(function(){return(0,Pn.mG)(n,void 0,void 0,function(){var n;return(0,Pn.Jh)(this,function(o){switch(o.label){case 0:return n=function(t,e,n){return(0,Pn.mG)(this,void 0,void 0,function(){var i,o,r,s,a;return(0,Pn.Jh)(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,cd(t,e,!0)];case 1:return a=c.sent(),i=new Up(e,a.Bn),o=i._o(a.documents),r=i.applyChanges(o,!1),n.resolve(r.snapshot),[3,3];case 2:return s=c.sent(),a=xp(s,"Failed to execute query '"+e+" against cache"),n.reject(a),[3,3];case 3:return[2]}})})},[4,Rf(t)];case 1:return[2,n.apply(void 0,[o.sent(),e,i])]}})})}),i.promise}(n,t._query).then(function(n){return new tm(e,i,t,n)})}(this._delegate):"server"===(null==t?void 0:t.source)?function(t){t=tg(t,rg);var e=tg(t.firestore,pg),n=fg(e),i=new vm(e);return Uf(n,t._query,{source:"server"}).then(function(n){return new tm(e,i,t,n)})}(this._delegate):function(t){t=tg(t,rg);var e=tg(t.firestore,pg),n=fg(e),i=new vm(e);return im(t._query),Uf(n,t._query).then(function(n){return new tm(e,i,t,n)})}(this._delegate)).then(function(t){return new Gm(e.firestore,new tm(e.firestore._delegate,e._userDataWriter,e._delegate,t._snapshot))})},t.prototype.onSnapshot=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];
1var i=Um(e),o=Zm(e,function(e){return new Gm(t.firestore,new tm(t.firestore._delegate,t._userDataWriter,t._delegate,e._snapshot))});return wm(this._delegate,i,o)},t.prototype.withConverter=function(e){return new t(this.firestore,this._delegate.withConverter(e?Lm.nu(this.firestore,e):null))},t}(),zm=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"type",{get:function(){return this._delegate.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"doc",{get:function(){return new Vm(this._firestore,this._delegate.doc)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"oldIndex",{get:function(){return this._delegate.oldIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newIndex",{get:function(){return this._delegate.newIndex},enumerable:!1,configurable:!0}),t}(),Gm=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"query",{get:function(){return new jm(this._firestore,this._delegate.query)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._delegate.size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this._delegate.empty},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"docs",{get:function(){var t=this;return this._delegate.docs.map(function(e){return new Vm(t._firestore,e)})},enumerable:!1,configurable:!0}),t.prototype.docChanges=function(t){var e=this;return this._delegate.docChanges(t).map(function(t){return new zm(e._firestore,t)})},t.prototype.forEach=function(t,e){var n=this;this._delegate.forEach(function(i){t.call(e,new Vm(n._firestore,i))})},t.prototype.isEqual=function(t){return nm(this._delegate,t._delegate)},t}(),Bm=function(t){function e(e,n){var i=this;return(i=t.call(this,e,n)||this).firestore=e,i._delegate=n,i}return(0,Pn.ZT)(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this._delegate.parent;return t?new Dm(this.firestore,t):null},enumerable:!1,configurable:!0}),e.prototype.doc=function(t){try{return new Dm(this.firestore,void 0===t?cg(this._delegate):cg(this._delegate,t))}catch(e){throw Fm(e,"doc()","CollectionReference.doc()")}},e.prototype.add=function(t){var e,n,i,o,r,s=this;return(e=this._delegate,n=t,i=tg(e.firestore,pg),o=cg(e),r=mm(e.converter,n),Om(i,[Sg(kg(e.firestore),"addDoc",o._key,r,null!==e.converter,{}).toMutation(o._key,Vc.exists(!1))]).then(function(){return o})).then(function(t){return new Dm(s.firestore,t)})},e.prototype.isEqual=function(t){return ug(this._delegate,t._delegate)},e.prototype.withConverter=function(t){return new e(this.firestore,this._delegate.withConverter(t?Lm.nu(this.firestore,t):null))},e}(jm);function Hm(t){return tg(t,og)}var Ym=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._delegate=new(yg.bind.apply(yg,(0,Pn.ev)([void 0],t)))}return t.documentId=function(){return new t(la.keyField().canonicalString())},t.prototype.isEqual=function(t){return(t=(0,Mn.m9)(t))instanceof yg&&this._delegate._internalPath.isEqual(t._internalPath)},t}(),Qm=function(){function t(t){this._delegate=t}return t.serverTimestamp=function(){var e=new Ig("serverTimestamp");return e._methodName="FieldValue.serverTimestamp",new t(e)},t.delete=function(){var e=new Eg("deleteField");return e._methodName="FieldValue.delete",new t(e)},t.arrayUnion=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new Rg("arrayUnion",t)}).apply(void 0,e);return i._methodName="FieldValue.arrayUnion",new t(i)},t.arrayRemove=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new Ng("arrayRemove",t)}).apply(void 0,e);return i._methodName="FieldValue.arrayRemove",new t(i)},t.increment=function(e){var n=new Lg("increment",e);return n._methodName="FieldValue.increment",new t(n)},t.prototype.isEqual=function(t){return this._delegate.isEqual(t._delegate)},t}(),Jm=n(6034),$m={Firestore:Am,GeoPoint:Cg,Timestamp:na,Blob:Sm,Transaction:Rm,WriteBatch:Nm,DocumentReference:Dm,DocumentSnapshot:qm,Query:jm,QueryDocumentSnapshot:Vm,QuerySnapsh
1ot:Gm,CollectionReference:Bm,FieldPath:Ym,FieldValue:Qm,setLogLevel:function(t){js.setLogLevel(t)},CACHE_SIZE_UNLIMITED:-1};function Wm(t,e){return function(t,e=un.P){return new At.y(n=>{let i;return null!=e?e.schedule(()=>{i=t.onSnapshot({includeMetadataChanges:!0},n)}):i=t.onSnapshot({includeMetadataChanges:!0},n),()=>{null!=i&&i()}})}(t,e)}function Km(t,e){return Wm(t,e).pipe((0,Ut.U)(t=>({payload:t,type:"query"})))}function Xm(t,e){return Km(t,e).pipe(pn(void 0),fn(),(0,Ut.U)(([t,e])=>{const n=e.payload.docChanges(),i=n.map(t=>({type:t.type,payload:t}));return t&&JSON.stringify(t.payload.metadata)!==JSON.stringify(e.payload.metadata)&&e.payload.docs.forEach((e,o)=>{const r=n.find(t=>t.doc.ref.isEqual(e.ref)),s=null==t?void 0:t.payload.docs.find(t=>t.ref.isEqual(e.ref));r&&JSON.stringify(r.doc.metadata)===JSON.stringify(e.metadata)||!r&&s&&JSON.stringify(s.metadata)===JSON.stringify(e.metadata)||i.push({type:"modified",payload:{oldIndex:o,newIndex:o,type:"modified",doc:e}})}),i}))}function t_(t,e,n){return Xm(t,n).pipe(_n((t,n)=>function(t,e,n){return e.forEach(e=>{n.indexOf(e.type)>-1&&(t=function(t,e){switch(e.type){case"added":if(!t[e.newIndex]||!t[e.newIndex].doc.ref.isEqual(e.doc.ref))return e_(t,e.newIndex,0,e);break;case"modified":if(null==t[e.oldIndex]||t[e.oldIndex].doc.ref.isEqual(e.doc.ref)){if(e.oldIndex!==e.newIndex){const n=t.slice();return n.splice(e.oldIndex,1),n.splice(e.newIndex,0,e),n}return e_(t,e.newIndex,1,e)}break;case"removed":if(t[e.oldIndex]&&t[e.oldIndex].doc.ref.isEqual(e.doc.ref))return e_(t,e.oldIndex,1)}return t}(t,e))}),t}(t,n.map(t=>t.payload),e),[]),vn(),(0,Ut.U)(t=>t.map(t=>({type:t.type,payload:t}))))}function e_(t,e,n,...i){const o=t.slice();return o.splice(e,n,...i),o}function n_(t){return(!t||0===t.length)&&(t=["added","removed","modified"]),t}!function(t){t.INTERNAL.registerComponent(new Jm.wA("firestore",function(t){return e=t.getProvider("app").getImmediate(),n=t.getProvider("auth-internal"),new Am(e,new pg(e,n),new Em);var e,n},"PUBLIC").setServiceProps(Object.assign({},$m))),t.registerVersion("@firebase/firestore","2.4.1")}(On.Z);class i_{constructor(t,e,n){this.ref=t,this.query=e,this.afs=n}stateChanges(t){let e=Xm(this.query,this.afs.schedulers.outsideAngular);return t&&t.length>0&&(e=e.pipe((0,Ut.U)(e=>e.filter(e=>t.indexOf(e.type)>-1)))),e.pipe(pn(void 0),fn(),Lt(([t,e])=>e.length>0||!t),(0,Ut.U)(([t,e])=>e),this.afs.keepUnstableUntilFirst)}auditTrail(t){return this.stateChanges(t).pipe(_n((t,e)=>[...t,...e],[]))}snapshotChanges(t){const e=n_(t);return t_(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(t={}){return Km(this.query,this.afs.schedulers.outsideAngular).pipe((0,Ut.U)(e=>e.payload.docs.map(e=>t.idField?Object.assign(Object.assign({},e.data()),{[t.idField]:e.id}):e.data())),this.afs.keepUnstableUntilFirst)}get(t){return(0,Ce.D)(this.query.get(t)).pipe((0,we.QV)(this.afs.schedulers.insideAngular))}add(t){return this.ref.add(t)}doc(t){return new o_(this.ref.doc(t),this.afs)}}class o_{constructor(t,e){this.ref=t,this.afs=e}set(t,e){return this.ref.set(t,e)}update(t){return this.ref.update(t)}delete(){return this.ref.delete()}collection(t,e){const n=this.ref.collection(t),{ref:i,query:o}=l_(n,e);return new i_(i,o,this.afs)}snapshotChanges(){return function(t,e){return Wm(t,e).pipe(pn(void 0),fn(),(0,Ut.U)(([t,e])=>e.exists?(null==t?void 0:t.exists)?{payload:e,type:"modified"}:{payload:e,type:"added"}:{payload:e,type:"removed"}))}(this.ref,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(t={}){return this.snapshotChanges().pipe((0,Ut.U)(({payload:e})=>t.idField?Object.assign(Object.assign({},e.data()),{[t.idField]:e.id}):e.data()))}get(t){return(0,Ce.D)(this.ref.get(t)).pipe((0,we.QV)(this.afs.schedulers.insideAngular))}}class r_{constructor(t,e){this.query=t,this.afs=e}stateChanges(t){return t&&0!==t.length?Xm(this.query,this.afs.schedulers.outsideAngular).pipe((0,Ut.U)(e=>e.filter(e=>t.indexOf(e.type)>-1)),Lt(t=>t.length>0),this.afs.keepUnstableUntilFirst):Xm(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(t){return this.stateChanges(t).pipe(_n((t,e)=>[...t,...e],[]))}
1snapshotChanges(t){const e=n_(t);return t_(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(t={}){return Km(this.query,this.afs.schedulers.outsideAngular).pipe((0,Ut.U)(e=>e.payload.docs.map(e=>t.idField?Object.assign({[t.idField]:e.id},e.data()):e.data())),this.afs.keepUnstableUntilFirst)}get(t){return(0,Ce.D)(this.query.get(t)).pipe((0,we.QV)(this.afs.schedulers.insideAngular))}}const s_=new i.OlP("angularfire2.enableFirestorePersistence"),a_=new i.OlP("angularfire2.firestore.persistenceSettings"),c_=new i.OlP("angularfire2.firestore.settings"),u_=new i.OlP("angularfire2.firestore.use-emulator");function l_(t,e=(t=>t)){return{query:e(t),ref:t}}let h_=(()=>{class t{constructor(t,e,n,i,o,r,s,a,c){this.schedulers=new be.HU(r),this.keepUnstableUntilFirst=(0,be.ss)(this.schedulers);const u=(0,be.on)(t,r,e);!wn.Z.auth&&c&&(0,be.yq)();const l=a;[this.firestore,this.persistenceEnabled$]=(0,be.sI)(`${u.name}.firestore`,"AngularFirestore",u,()=>{const t=r.runOutsideAngular(()=>u.firestore());if(i&&t.settings(i),l&&t.useEmulator(...l),n&&!Y(o)){const e=()=>{try{return(0,Ce.D)(t.enablePersistence(s||void 0).then(()=>!0,()=>!1))}catch(e){return"undefined"!=typeof console&&console.warn(e),(0,Et.of)(!1)}};return[t,r.runOutsideAngular(e)]}return[t,(0,Et.of)(!1)]},[i,l,n])}collection(t,e){let n;n="string"==typeof t?this.firestore.collection(t):t;const{ref:i,query:o}=l_(n,e),r=this.schedulers.ngZone.run(()=>i);return new i_(r,o,this)}collectionGroup(t,e){const n=e||(t=>t),i=this.firestore.collectionGroup(t);return new r_(n(i),this)}doc(t){let e;e="string"==typeof t?this.firestore.doc(t):t;const n=this.schedulers.ngZone.run(()=>e);return new o_(n,this)}createId(){return this.firestore.collection("_").doc().id}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(be.Dh),i.LFG(be.xv,8),i.LFG(s_,8),i.LFG(c_,8),i.LFG(i.Lbi),i.LFG(i.R0b),i.LFG(a_,8),i.LFG(u_,8),i.LFG(tn,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(be.Dh),i.LFG(be.xv,8),i.LFG(s_,8),i.LFG(c_,8),i.LFG(i.Lbi),i.LFG(i.R0b),i.LFG(a_,8),i.LFG(u_,8),i.LFG(tn,8))},token:t,providedIn:"any"}),t})(),d_=(()=>{class t{static enablePersistence(e){return{ngModule:t,providers:[{provide:s_,useValue:!0},{provide:a_,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[h_]}),t})();class p_{}const f_="*";function g_(t,e){return{type:7,name:t,definitions:e,options:{}}}function m_(t,e=null){return{type:4,styles:e,timings:t}}function __(t,e=null){return{type:2,steps:t,options:e}}function y_(t){return{type:6,styles:t,offset:null}}function b_(t,e,n){return{type:0,name:t,styles:e,options:n}}function v_(t){return{type:5,steps:t}}function C_(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function x_(t){Promise.resolve(null).then(t)}class w_{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){x_(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class O_{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const o=this.players.length;0==o?x_(()=>
1this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==o&&this._onFinish()}),t.onDestroy(()=>{++n==o&&this._onDestroy()}),t.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function P_(){return"undefined"!=typeof window&&void 0!==window.document}function M_(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function T_(t){switch(t.length){case 0:return new w_;case 1:return t[0];default:return new O_(t)}}function k_(t,e,n,i,o={},r={}){const s=[],a=[];let c=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==c,l=i&&u||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,s),a){case"!":a=o[n];break;case f_:a=r[n];break;default:a=e.normalizeStyleValue(n,i,a,s)}l[i]=a}),i||a.push(l),u=l,c=n}),s.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${s.join(t)}`)}return a}function S_(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&E_(n,"start",t)));break;case"done":t.onDone(()=>i(n&&E_(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&E_(n,"destroy",t)))}}function E_(t,e,n){const i=n.totalTime,o=A_(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(o._data=r),o}function A_(t,e,n,i,o="",r=0,s){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:o,totalTime:r,disabled:!!s}}function I_(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function R_(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let N_=(t,e)=>!1,L_=(t,e)=>!1,D_=(t,e,n)=>[];const F_=M_();(F_||"undefined"!=typeof Element)&&(N_=P_()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),L_=(()=>{if(F_||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):L_}})(),D_=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t<n.length;t++)i.push(n[t])}else{const n=t.querySelector(e);n&&i.push(n)}return i});let U_=null,Z_=!1;function q_(t){U_||(U_=("undefined"!=typeof document?document.body:null)||{},Z_=!!U_.style&&"WebkitAppearance"in U_.style);let e=!0;return U_.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in U_.style,!e&&Z_&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in U_.style)),e}const V_=L_,j_=N_,z_=D_;function G_(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let B_=(()=>{class t{validateStyleProperty(t){return q_(t)}
1matchesElement(t,e){return V_(t,e)}containsElement(t,e){return j_(t,e)}query(t,e,n){return z_(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,o,r=[],s){return new w_(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),H_=(()=>{class t{}return t.NOOP=new B_,t})();const Y_="ng-enter",Q_="ng-leave",J_="ng-trigger",$_=".ng-trigger",W_="ng-animating",K_=".ng-animating";function X_(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ty(parseFloat(e[1]),e[2])}function ty(t,e){return"s"===e?1e3*t:t}function ey(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,o=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=ty(parseFloat(n[1]),n[2]);const s=n[3];null!=s&&(o=ty(parseFloat(s),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),o<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:o,easing:r}}(t,e,n)}function ny(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function iy(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else ny(t,n);return n}function oy(t,e,n){return n?e+":"+n+";":""}function ry(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=oy(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=oy(0,gy(n),t.style[n]));t.setAttribute("style",e)}function sy(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const o=fy(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[o]),t.style[o]=e[i]}),M_()&&ry(t))}function ay(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=fy(e);t.style[n]=""}),M_()&&ry(t))}function cy(t){return Array.isArray(t)?1==t.length?t[0]:__(t):t}const uy=new RegExp("{{\\s*(.+?)\\s*}}","g");function ly(t){let e=[];
1if("string"==typeof t){let n;for(;n=uy.exec(t);)e.push(n[1]);uy.lastIndex=0}return e}function hy(t,e,n){const i=t.toString(),o=i.replace(uy,(t,i)=>{let o=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),o=""),o.toString()});return o==i?t:o}function dy(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const py=/-+([a-z0-9])/g;function fy(t){return t.replace(py,(...t)=>t[1].toUpperCase())}function gy(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function my(t,e){return 0===t||0===e}function _y(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],s=[];if(i.forEach(t=>{r.hasOwnProperty(t)||s.push(t),r[t]=n[t]}),s.length)for(var o=1;o<e.length;o++){let n=e[o];s.forEach(function(e){n[e]=by(t,e)})}}return e}function yy(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error(`Unable to resolve animation metadata node #${e.type}`)}}function by(t,e){return window.getComputedStyle(t)[e]}function vy(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const o=i[1],r=i[2],s=i[3];e.push(wy(o,s));"<"==r[0]&&!("*"==o&&"*"==s)&&e.push(wy(s,o))}(t,n,e)):n.push(t),n}const Cy=new Set(["true","1"]),xy=new Set(["false","0"]);function wy(t,e){const n=Cy.has(t)||xy.has(t),i=Cy.has(e)||xy.has(e);return(o,r)=>{let s="*"==t||t==o,a="*"==e||e==r;return!s&&n&&"boolean"==typeof o&&(s=o?Cy.has(t):xy.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?Cy.has(e):xy.has(e)),s&&a}}const Oy=new RegExp("s*:selfs*,?","g");function Py(t,e,n){return new My(t).build(e,n)}class My{constructor(t){this._driver=t}build(t,e){const n=new Ty(e);return this._resetContextStyleTimingState(n),yy(this,cy(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const o=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,o.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const o=this.visitTransition(t,e);n+=o.queryCount,i+=o.depCount,r.push(o)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:o,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const o=new Set,r=i||{};if(n.styles.forEach(t=>{if(ky(t)){const e=t;Object.keys(e).forEach(t=>{ly(e[t]).forEach(t=>{r.hasOwnProperty(t)||o.add(t)})})}}),o.size){const n=dy(o.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=yy(this,cy(t.animation),e);return{type:1,matchers:vy(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Sy(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>yy(this,t,e)),options:Sy(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const o=t.steps.map(t=>{e.currentTime=n;const o=yy(this,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:Sy(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Ey(ey(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Ey(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||ey(i,e),Ey(n.duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let i,o=t.styles?t.styles:y_({});if(5==o.type)i=this.visitKeyframes(o,e);else{let o=t.styles,r=!1;if(!o){r=!0;const t={};n.easing&&(t.easing=n.easing),o=y_(t)}e.currentTime+=n.duration+n.delay;const s=this.visitStyle(o,e);s.isEmptyStep=r,i=s}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);
1return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==f_?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,o=null;return n.forEach(t=>{if(ky(t)){const e=t,n=e.easing;if(n&&(o=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],s=r[n];let a=!0;s&&(o!=i&&o>=s.startTime&&i<=s.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${s.startTime}ms" and "${s.endTime}ms" is also being animated in a parallel animation between the times of "${o}ms" and "${i}ms"`),a=!1),o=s.startTime),a&&(r[n]={startTime:o,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},o=ly(t);o.length&&o.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const o=[];let r=!1,s=!1,a=0;const c=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let c=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(ky(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(ky(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),u=0;return null!=c&&(i++,u=n.offset=c),s=s||u<0||u>1,r=r||u<a,a=u,o.push(u),n});s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const u=t.steps.length;let l=0;i>0&&i<u?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(l=1/(u-1));const h=u-1,d=e.currentTime,p=e.currentAnimateTimings,f=p.duration;return c.forEach((t,i)=>{const r=l>0?i==h?1:l*i:o[i],s=r*f;e.currentTime=d+p.delay+s,p.duration=s,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:yy(this,cy(t.animation),e),options:Sy(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Sy(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Sy(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[o,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Oy,"")),t=t.replace(/@\*/g,$_).replace(/@\w+/g,t=>$_+"-"+t.substr(1)).replace(/:animating/g,K_),[t,e]}(t.selector);e.currentQuerySelector=n.length?n+" "+o:o,I_(e.collectedStyles,e.currentQuerySelector,{});const s=yy(this,cy(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:s,originalSelector:t.selector,options:Sy(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:ey(t.timings,e.errors,!0);return{type:12,animation:yy(this,cy(t.animation),e),timings:n,options:null}}}class Ty{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ky(t){return!Array.isArray(t)&&"object"==typeof t}function Sy(t){return t?(t=ny(t)).params&&(t.params=function(t){return t?ny(t):null}(t.params)):t={},t}function Ey(t,e,n){return{duration:t,delay:e,easing:n}}function Ay(t,e,n,i,o,r,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}class Iy{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Ry=new RegExp(":enter","g"),Ny=new RegExp(":leave","g");function Ly(t,e,n,i,o,r={},s={},a,c,u=[]){return(new Dy).buildKeyframes(t,e,n,i,o,r,s,a,c,u)}class Dy{buildKeyframes(t,e,n,i,o,r,s,a,c,u=[]){c=c||new Iy;const l=new Uy(t,e,c,i,o,u,[]);l.options=a,l.currentTimeline.setStyles([r],null,l.errors,a),yy(this,n,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(s).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([s],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Ay(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}
vendor: 3,154 bytes, line 1
1visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),o=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);o!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const o=null!=n.duration?X_(n.duration):null,r=null!=n.delay?X_(n.delay):null;return 0!==o&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,o,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),yy(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const o=t.options;if(o&&(o.params||o.delay)&&(i=e.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Fy);const t=X_(o.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>yy(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?X_(t.options.delay):0;t.steps.forEach(r=>{const s=e.createSubContext(t.options);o&&s.delayNextStep(o),yy(this,r,s),i=Math.max(i,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return ey(e.params?hy(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const o=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,o=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*o),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+o),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?X_(i.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Fy);let r=n;const s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;let a=null;
1s.forEach((n,i)=>{e.currentQueryIndex=i;const s=e.createSubContext(t.options,n);o&&s.delayNextStep(o),n===e.element&&(a=s.currentTimeline),yy(this,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,o=t.timings,r=Math.abs(o.duration),s=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;yy(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}const Fy={};class Uy{constructor(t,e,n,i,o,r,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=o,this.errors=r,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Fy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Zy(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=X_(n.duration)),null!=n.delay&&(i.delay=X_(n.delay));const o=n.params;if(o){let t=i.params;t||(t=this.options.params={}),Object.keys(o).forEach(n=>{(!e||!t.hasOwnProperty(n))&&(t[n]=hy(o[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,o=new Uy(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=Fy,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},o=new qy(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,o,r){let s=[];if(i&&s.push(this.element),t.length>0){t=(t=t.replace(Ry,"."+this._enterClassName)).replace(Ny,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),s.push(...e)}return!o&&0==s.length&&r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),s}}class Zy{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pe
1ndingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Zy(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||f_,this._currentKeyframe[t]=f_}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const o=i&&i.params||{},r=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=f_})):iy(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=hy(r[t],o,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:f_),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((o,r)=>{const s=iy(o,!0);Object.keys(s).forEach(n=>{const i=s[n];"!"==i?t.add(n):i==f_&&e.add(n)}),n||(s.offset=r/this.duration),i.push(s)});const o=t.size?dy(t.values()):[],r=e.size?dy(e.values()):[];if(n){const t=i[0],e=ny(t);t.offset=0,e.offset=1,i=[t,e]}return Ay(this.element,i,o,r,this.duration,this.startTime,this.easing,!1)}}class qy extends Zy{constructor(t,e,n,i,o,r,s=!1){super(t,e,r.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],r=n+e,s=e/r,a=iy(t[0],!1);a.offset=0,o.push(a);const c=iy(t[0],!1);c.offset=Vy(s),o.push(c);const u=t.length-1;for(let i=1;i<=u;i++){let s=iy(t[i],!1);s.offset=Vy((e+s.offset*n)/r),o.push(s)}n=r,e=0,i="",t=o}return Ay(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function Vy(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class jy{}class zy extends jy{normalizePropertyName(t,e){return fy(t)}normalizeStyleValue(t,e,n,i){let o="";const r=n.toString().trim();if(Gy[e]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+o}}const Gy=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function By(t,e,n,i,o,r,s,a,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:r,toState:i,toStyles:s,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}const Hy={};class Yy{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,o){return t.some(t=>t(e,n,i,o))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],o=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return o?o.buildStyles(e,n):r}build(t,e,n,i,o,r,s,a,c,u){const l=[],h=this.ast.options&&this.ast.options.params||Hy,d=this.buildStyles(n,s&&s.params||Hy,l),p=a&&a.params||Hy,f=this.buildStyles(i,p,l),g=new Set,m=new Map,_=new Map,y="void"===i,b={params:Object.assign(Object.assign({},h),p)},v=u?[]:Ly(t,e,this.ast.animation,o,r,d,f,b,c,l);let C=0;if(v.forEach(t=>{C=Math.max(t.duration+t.delay,C)}),l.length)return By(e,this._triggerName,n,i,y,d,f,[],[],m,_,C,l);v.forEach(t=>{const n=t.element,i=I_(m,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const o=I_(_,n,{});t.postStyleProps.forEach(t=>o[t]=!0),n!==e&&g.add(n)});const x=dy(g.values());return By(e,this._triggerName,n,i,y,d,f,v,x,m,_,C)}}class Qy{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=ny(this.defaultParams);
1return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const o=t;Object.keys(o).forEach(t=>{let r=o[t];r.length>1&&(r=hy(r,i,e));const s=this.normalizer.normalizePropertyName(t,e);r=this.normalizer.normalizeStyleValue(t,s,r,e),n[s]=r})}}),n}}class Jy{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Qy(t.style,t.options&&t.options.params||{},n)}),$y(this.states,"true","1"),$y(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Yy(t,e,this.states))}),this.fallbackTransition=function(t,e,n){return new Yy(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},e)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(o=>o.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function $y(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Wy=new Iy;class Ky{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=Py(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,o=k_(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],o=this._animations[t];let r;const s=new Map;if(o?(r=Ly(this._driver,e,o,Y_,Q_,{},{},n,Wy,i),r.forEach(t=>{const e=I_(s,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);s.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,f_)})});const a=T_(r.map(t=>{const e=s.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const o=A_(e,"","","");return S_(this._getPlayer(t),n,o,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Xy="ng-animate-queued",tb="ng-animate-disabled",eb=".ng-animate-disabled",nb=[],ib={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ob={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},rb="__ng_removed";class sb{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){const e=ny(t);delete e.value,this.options=e}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const ab="void",cb=new sb(ab);class ub{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
1+t,_b(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function(t){return"start"==t||"done"==t}(n))throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);const o=I_(this._elementListeners,t,[]),r={name:e,phase:n,callback:i};o.push(r);const s=I_(this._engine.statesByElement,t,{});return s.hasOwnProperty(e)||(_b(t,J_),_b(t,J_+"-"+e),s[e]=cb),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(r);t>=0&&o.splice(t,1),this._triggers[e]||delete s[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const o=this._getTrigger(e),r=new hb(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(_b(t,J_),_b(t,J_+"-"+e),this._engine.statesByElement.set(t,s={}));let a=s[e];const c=new sb(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),s[e]=c,a||(a=cb),c.value!==ab&&a.value===c.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let o=0;o<n.length;o++){const i=n[o];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,c.params)){const e=[],n=o.matchStyles(a.value,a.params,e),i=o.matchStyles(c.value,c.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{ay(t,n),sy(t,i)})}return}const u=I_(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=o.matchTransition(a.value,c.value,t,c.params),h=!1;if(!l){if(!i)return;l=o.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:c,player:r,isFallbackTransition:h}),h||(_b(t,Xy),r.onStart(()=>{yb(t,Xy)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),u.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,$_,!0);n.forEach(t=>{if(t[rb])return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const o=this._engine.statesByElement.get(t);if(o){const r=[];if(Object.keys(o).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,ab,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&T_(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const o=e.name;if(i.has(o))return;i.add(o);const r=this._triggers[o].fallbackTransition,s=n[o]||cb,a=new sb(ab),c=new hb(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:r,fromState:s,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t[rb];(!i||i===ib)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){_b(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const o=n.element,r=this._elementListeners.get(o);
1r&&r.forEach(e=>{if(e.name==n.triggerName){const i=A_(o,n.triggerName,n.fromState.value,n.toState.value);i._data=t,S_(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class lb{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new ub(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,e)){this._namespaceList.splice(o+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const o=n[t[i]].namespaceId;if(o){const t=this._fetchNamespace(o);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(db(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!db(e))return;const o=e[rb];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),_b(t,tb)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),yb(t,tb))}removeNode(t,e,n,i){if(db(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e[rb]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,o){return db(e)?this._fetchNamespace(t).listen(e,n,i,o):()=>{}}_buildInstruction(t,e,n,i,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,$_,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,K_,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return T_(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[rb];if(e&&e.setForRemoval){if(t[rb]=ib,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,eb)&&this.markElementAsDisabled(t,!1),this.driver.query(t,eb,!0).forEac
1h(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)_b(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?T_(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new Iy,i=[],o=new Map,r=[],s=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)u.add(e[n])});const l=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=gb(h,this.collectedEnterElements),p=new Map;let f=0;d.forEach((t,e)=>{const n=Y_+f++;p.set(e,n),t.forEach(t=>_b(t,n))});const g=[],m=new Set,_=new Set;for(let E=0;E<this.collectedLeaveElements.length;E++){const t=this.collectedLeaveElements[E],e=t[rb];e&&e.setForRemoval&&(g.push(t),m.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>m.add(t)):_.add(t))}const y=new Map,b=gb(h,Array.from(m));b.forEach((t,e)=>{const n=Q_+f++;y.set(e,n),t.forEach(t=>_b(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>yb(t,n))}),b.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>yb(t,n))}),g.forEach(t=>{this.processLeaveNode(t)})});const v=[],C=[];for(let E=this._namespaceList.length-1;E>=0;E--)this._namespaceList[E].drainQueuedTransitions(e).forEach(t=>{const e=t.player,o=t.element;if(v.push(e),this.collectedEnterElements.length){const t=o[rb];if(t&&t.setForMove)return void e.destroy()}const u=!l||!this.driver.containsElement(l,o),h=y.get(o),d=p.get(o),f=this._buildInstruction(t,n,d,h,u);if(f.errors&&f.errors.length)C.push(f);else{if(u)return e.onStart(()=>ay(o,f.fromStyles)),e.onDestroy(()=>sy(o,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>ay(o,f.fromStyles)),e.onDestroy(()=>sy(o,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(o,f.timelines),r.push({instruction:f,player:e,element:o}),f.queriedElements.forEach(t=>I_(s,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=c.get(e);i||c.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(C.length){const t=[];C.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),v.forEach(t=>t.destroy()),this.reportError(t)}const x=new Map,w=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(w.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,x))}
vendor: 1,102 bytes, line 1
1),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{I_(x,e,[]).push(t),t.destroy()})});const O=g.filter(t=>Cb(t,a,c)),P=new Map;fb(P,this.driver,_,c,f_).forEach(t=>{Cb(t,a,c)&&O.push(t)});const M=new Map;d.forEach((t,e)=>{fb(M,this.driver,new Set(t),a,"!")}),O.forEach(t=>{const e=P.get(t),n=M.get(t);P.set(t,Object.assign(Object.assign({},e),n))});const T=[],k=[],S={};r.forEach(t=>{const{element:e,player:r,instruction:s}=t;if(n.has(e)){if(u.has(e))return r.onDestroy(()=>sy(e,s.toStyles)),r.disabled=!0,r.overrideTotalTime(s.totalTime),void i.push(r);let t=S;if(w.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=w.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>w.set(e,t))}const n=this._buildAnimation(r.namespaceId,s,x,o,M,P);if(r.setRealPlayer(n),t===S)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=T_(e)),i.push(r)}}else ay(e,s.fromStyles),r.onDestroy(()=>sy(e,s.toStyles)),k.push(r),u.has(e)&&i.push(r)}),k.forEach(t=>{const e=o.get(t.element);if(e&&e.length){const n=T_(e);t.setRealPlayer(n)}}
1),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let E=0;E<g.length;E++){const t=g[E],e=t[rb];if(yb(t,Q_),e&&e.hasAnimation)continue;let n=[];if(s.size){let e=s.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,K_,!0);for(let t=0;t<i.length;t++){let e=s.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?bb(this,t,i):this.processLeaveNode(t)}return g.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const i=e[rb];return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,o){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!o||o==ab;e.forEach(e=>{e.queued||!t&&e.triggerName!=i||r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,o=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const s of e.timelines){const t=s.element,a=t!==i,c=I_(n,t,[]);this._getPreviousPlayers(t,a,o,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}ay(i,e.fromStyles)}_buildAnimation(t,e,n,i,o,r){const s=e.triggerName,a=e.element,c=[],u=new Set,l=new Set,h=e.timelines.map(e=>{const h=e.element;u.add(h);const d=h[rb];if(d&&d.removedBeforeQueried)return new w_(e.duration,e.delay);const p=h!==a,f=function(t){const e=[];return vb(t,e),e}((n.get(h)||nb).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=o.get(h),m=r.get(h),_=k_(0,this._normalizer,0,e.keyframes,g,m),y=this._buildPlayer(e,_,f);if(e.subTimeline&&i&&l.add(h),p){const e=new hb(t,s,h);e.setRealPlayer(y),c.push(e)}return y});c.forEach(t=>{I_(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),u.forEach(t=>_b(t,W_));const d=T_(h);return d.onDestroy(()=>{u.forEach(t=>yb(t,W_)),sy(a,e.toStyles)}),l.forEach(t=>{I_(i,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new w_(t.duration,t.delay)}}class hb{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new w_,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEac
1h(e=>{this._queuedCallbacks[e].forEach(n=>S_(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){I_(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function db(t){return t&&1===t.nodeType}function pb(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function fb(t,e,n,i,o){const r=[];n.forEach(t=>r.push(pb(t)));const s=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,o);(!n||0==n.length)&&(i[rb]=ob,s.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>pb(t,r[a++])),s}function gb(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),o=new Map;function r(t){if(!t)return 1;let e=o.get(t);if(e)return e;const s=t.parentNode;return e=n.has(s)?s:i.has(s)?1:r(s),o.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}const mb="$$classes";function _b(t,e){if(t.classList)t.classList.add(e);else{let n=t[mb];n||(n=t[mb]={}),n[e]=!0}}function yb(t,e){if(t.classList)t.classList.remove(e);else{let n=t[mb];n&&delete n[e]}}function bb(t,e,n){T_(n).onDone(()=>t.processLeaveNode(e))}function vb(t,e){for(let n=0;n<t.length;n++){const i=t[n];i instanceof O_?vb(i.players,e):e.push(i)}}function Cb(t,e,n){const i=n.get(t);if(!i)return!1;let o=e.get(t);return o?i.forEach(t=>o.add(t)):e.set(t,i),n.delete(t),!0}class xb{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new lb(t,e,n),this._timelineEngine=new Ky(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,o){const r=t+"-"+i;let s=this._triggerCache[r];if(!s){const t=[],e=Py(this._driver,o,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);s=function(t,e,n){return new Jy(t,e,n)}(i,e,this._normalizer),this._triggerCache[r]=s}this._transitionEngine.registerTrigger(e,i,s)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,o]=R_(n);this._timelineEngine.command(t,e,o,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,o){if("@"==n.charAt(0)){const[t,i]=R_(n);return this._timelineEngine.listen(t,e,i,o)}return this._transitionEngine.listen(t,e,n,i,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function wb(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Pb(e[0]),e.length>1&&(i=Pb(e[e.length-1]))):e&&(n=Pb(e)),n||i?new Ob(t,n,i):null}let Ob=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o={}),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&sy(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(sy(this._element,this._initialStyles),this._endStyles&&(sy(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ay(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ay(this._element,this._endStyles),this._endStyles=null),sy(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Pb(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const o=n[i];
1Mb(o)&&(e=e||{},e[o]=t[o])}return e}function Mb(t){return"display"===t||"position"===t}const Tb="animation",kb="animationend";class Sb{constructor(t,e,n,i,o,r,s){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=o,this._fillMode=r,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){(function(t,e){const n=Lb(t,"").trim();let i=0;n.length&&(function(t,e){let n=0;for(let i=0;i<t.length;i++)","===t.charAt(i)&&n++;return n}(n)+1,e=`${n}, ${e}`),Nb(t,"",e)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Rb(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Eb(this._element,this._name,"paused")}resume(){Eb(this._element,this._name,"running")}setPosition(t){const e=Ab(this._element,this._name);this._position=t*this._duration,Nb(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Rb(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Lb(t,"").split(","),i=Ib(n,e);i>=0&&(n.splice(i,1),Nb(t,"",n.join(",")))}(this._element,this._name))}}function Eb(t,e,n){Nb(t,"PlayState",n,Ab(t,e))}function Ab(t,e){const n=Lb(t,"");return n.indexOf(",")>0?Ib(n.split(","),e):Ib([n],e)}function Ib(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Rb(t,e,n){n?t.removeEventListener(kb,e):t.addEventListener(kb,e)}function Nb(t,e,n,i){const o=Tb+e;if(null!=i){const e=t.style[o];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[o]=n}function Lb(t,e){return t.style[Tb+e]||""}class Db{constructor(t,e,n,i,o,r,s,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=o,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+o,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Sb(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:by(this.element,n))})}this.currentSnapshot=t}}class Fb extends w_{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=G_(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEac
1h(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Ub{constructor(){this._count=0}validateStyleProperty(t){return q_(t)}matchesElement(t,e){return V_(t,e)}containsElement(t,e){return j_(t,e)}query(t,e,n){return z_(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>G_(t));let i=`@keyframes ${e} {\n`,o="";n.forEach(t=>{o=" ";const e=parseFloat(t.offset);i+=`${o}${100*e}% {\n`,o+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${o}animation-timing-function: ${n};\n`));default:return void(i+=`${o}${e}: ${n};\n`)}}),i+=`${o}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,o,r=[],s){const a=r.filter(t=>t instanceof Db),c={};my(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"==n||"easing"==n||(e[n]=t[n])})}),e}(e=_y(t,e,c));if(0==n)return new Fb(t,u);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(h);const d=wb(t,e),p=new Db(t,e,l,n,i,o,u,d);return p.onDestroy(()=>function(t){t.parentNode.removeChild(t)}(h)),p}}class Zb{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:by(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class qb{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Vb().toString()),this._cssKeyframesDriver=new Ub}validateStyleProperty(t){return q_(t)}
1matchesElement(t,e){return V_(t,e)}containsElement(t,e){return j_(t,e)}query(t,e,n){return z_(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,o,r=[],s){if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,o,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};o&&(a.easing=o);const c={},u=r.filter(t=>t instanceof Zb);my(n,i)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=wb(t,e=_y(t,e=e.map(t=>iy(t,!1)),c));return new Zb(t,e,a,l)}}function Vb(){return P_()&&Element.prototype.animate||{}}let jb=(()=>{class t extends p_{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?__(t):t;return Bb(this._renderer,null,e,"register",[n]),new zb(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(s))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class zb extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Gb(this._id,t,e||{},this._renderer)}}class Gb{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Bb(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Bb(t,e,n,i,o){return t.setProperty(e,`@@${n}:${i}`,o)}const Hb="@.disabled";let Yb=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Qb("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,o=e.id+"-"+this._currentId;this._currentId++,this.engine.register(o,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,o,t,e.name,e)};return e.data.animation.forEach(r),new Jb(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(xb),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Qb{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}
1appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==Hb?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Jb extends Qb{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Hb?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let o=e.substr(1),r="";return"@"!=o.charAt(0)&&([o,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(o)),this.engine.listen(this.namespaceId,i,o,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let $b=(()=>{class t extends xb{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s),i.LFG(H_),i.LFG(jy))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const Wb=new i.OlP("AnimationModuleType"),Kb=[{provide:p_,useClass:jb},{provide:jy,useFactory:function(){return new zy}},{provide:xb,useClass:$b},{provide:i.FYo,useFactory:function(t,e,n){return new Yb(t,e,n)},deps:[gt,xb,i.R0b]}],Xb=[{provide:H_,useFactory:function(){return"function"==typeof Vb()?new qb:new Ub}},{provide:Wb,useValue:"BrowserAnimations"},...Kb],tv=[{provide:H_,useClass:B_},{provide:Wb,useValue:"NoopAnimations"},...Kb];let ev=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?tv:Xb}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:Xb,imports:[St]}),t})();var nv=n(9796),iv=n(1555);function ov(...t){if(1===t.length){const e=t[0];if((0,nv.k)(e))return rv(e,null);if((0,iv.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return rv(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return rv(t=1===t.length&&(0,nv.k)(t[0])?t[0]:t,null).pipe((0,Ut.U)(t=>e(...t)))}return rv(t,null)}function rv(t,e){return new At.y(n=>{const i=t.length;if(0===i)return void n.complete();const o=new Array(i);let r=0,s=0;for(let a=0;a<i;a++){const c=(0,Ce.D)(t[a]);let u=!1;n.add(c.subscribe({next:t=>{u||(u=!0,s++),o[a]=t},error:t=>n.error(t),complete:()=>{r++,(r===i||!u)&&(s===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=o[n],t),{}):o),n.complete())}}))}})}let sv=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t}),t})(),av=(()=>{class t extends sv{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();const cv=new i.OlP("NgValueAccessor"),uv={provide:cv,useExisting:(0,i.Gpc)(()=>hv),multi:!0},lv=new i.OlP("CompositionEventMode");let hv=(()=>{class t extends sv{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=r()?r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}
1_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(lv,8))},t.\u0275dir=i.lG2({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&i.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[i._Bn([uv]),i.qOj]}),t})();function dv(t){return null==t||0===t.length}function pv(t){return null!=t&&"number"==typeof t.length}const fv=new i.OlP("NgValidators"),gv=new i.OlP("NgAsyncValidators"),mv=/^(?=.{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 _v{static min(t){return function(t){return e=>{if(dv(e.value)||dv(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}(t)}static max(t){return function(t){return e=>{if(dv(e.value)||dv(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return function(t){return dv(t.value)?{required:!0}:null}(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return dv(t.value)||mv.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>dv(e.value)||!pv(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static maxLength(t){return function(t){return e=>pv(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return yv;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(dv(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return Ov(t)}static composeAsync(t){return Mv(t)}}function yv(t){return null}function bv(t){return null!=t}function vv(t){const e=(0,i.QGY)(t)?(0,Ce.D)(t):t;return(0,i.CqO)(e),e}function Cv(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function xv(t,e){return e.map(e=>e(t))}function wv(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function Ov(t){if(!t)return null;const e=t.filter(bv);return 0==e.length?null:function(t){return Cv(xv(t,e))}}function Pv(t){return null!=t?Ov(wv(t)):null}function Mv(t){if(!t)return null;const e=t.filter(bv);return 0==e.length?null:function(t){return ov(xv(t,e).map(vv)).pipe((0,Ut.U)(Cv))}}function Tv(t){return null!=t?Mv(wv(t)):null}function kv(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Sv(t){return t._rawValidators}function Ev(t){return t._rawAsyncValidators}function Av(t){return t?Array.isArray(t)?t:[t]:[]}function Iv(t,e){return Array.isArray(t)?t.includes(e):t===e}function Rv(t,e){const n=Av(e);return Av(t).forEach(t=>{Iv(n,t)||n.push(t)}),n}function Nv(t,e){return Av(e).filter(e=>!Iv(t,e))}let Lv=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Pv(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Tv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t}),t})(),Dv=(()=>{class t extends Lv{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();class Fv extends Lv{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Uv{constructor(t){this._cd=t}is(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}let Zv=(()=>{class t extends Uv{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Fv,2))},t.\u0275dir=i.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[i.qOj]}),t})(),qv=(()=>{class t extends Uv{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Dv,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[i.qOj]}),t})();function Vv(t,e){return[...e.path,t]}function jv(t,e){Bv(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Yv(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Yv(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function zv(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),Hv(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Gv(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)}
1)}function Bv(t,e){const n=Sv(t);null!==e.validator?t.setValidators(kv(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=Ev(t);null!==e.asyncValidator?t.setAsyncValidators(kv(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();Gv(e._rawValidators,o),Gv(e._rawAsyncValidators,o)}function Hv(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=Sv(t);if(Array.isArray(i)&&i.length>0){const o=i.filter(t=>t!==e.validator);o.length!==i.length&&(n=!0,t.setValidators(o))}}if(null!==e.asyncValidator){const i=Ev(t);if(Array.isArray(i)&&i.length>0){const o=i.filter(t=>t!==e.asyncValidator);o.length!==i.length&&(n=!0,t.setAsyncValidators(o))}}}const i=()=>{};return Gv(e._rawValidators,i),Gv(e._rawAsyncValidators,i),n}function Yv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Qv(t,e){Bv(t,e)}function Jv(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function $v(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Wv(t,e){if(!e)return null;let n,i,o;return Array.isArray(e),e.forEach(t=>{t.constructor===hv?n=t:function(t){return Object.getPrototypeOf(t.constructor)===av}(t)?i=t:o=t}),o||i||n||null}function Kv(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Xv="VALID",tC="INVALID",eC="PENDING",nC="DISABLED";function iC(t){return(aC(t)?t.validators:t)||null}function oC(t){return Array.isArray(t)?Pv(t):t||null}function rC(t,e){return(aC(e)?e.asyncValidators:t)||null}function sC(t){return Array.isArray(t)?Tv(t):t||null}function aC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class cC{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=oC(this._rawValidators),this._composedAsyncValidatorFn=sC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Xv}get invalid(){return this.status===tC}get pending(){return this.status==eC}get disabled(){return this.status===nC}get enabled(){return this.status!==nC}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=oC(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=sC(t)}addValidators(t){this.setValidators(Rv(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Rv(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Nv(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Nv(t,this._rawAsyncValidators))}hasValidator(t){return Iv(this._rawValidators,t)}hasAsyncValidator(t){return Iv(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=eC,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}
1disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=nC,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Xv,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Xv||this.status===eC)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?nC:Xv}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=eC,this._hasOwnPendingAsyncValidator=!0;const e=vv(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let i=t;return e.forEach(t=>{i=i instanceof lC?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof hC&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?nC:this.errors?tC:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(eC)?eC:this._anyControlsHaveStatus(tC)?tC:Xv}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){aC(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class uC extends cC{constructor(t=null,e,n){super(iC(e),rC(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>
vendor: 4,119 bytes, line 1
1t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Kv(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Kv(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class lC extends cC{constructor(t,e,n){super(iC(e),rC(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof uC?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class hC extends cC{constructor(t,e,n){super(iC(e),rC(n,e)),this.controls=t,this._initOb
1servables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof uC?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const dC={provide:Dv,useExisting:(0,i.Gpc)(()=>fC)},pC=(()=>Promise.resolve(null))();let fC=(()=>{class t extends Dv{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.vpe,this.form=new lC({},Pv(t),Tv(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){pC.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),jv(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}
1removeControl(t){pC.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Kv(this._directives,t)})}addFormGroup(t){pC.then(()=>{const e=this._findContainer(t.path),n=new lC({});Qv(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){pC.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){pC.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,$v(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(fv,10),i.Y36(gv,10))},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([dC]),i.qOj]}),t})();const gC={provide:Fv,useExisting:(0,i.Gpc)(()=>_C)},mC=(()=>Promise.resolve(null))();let _C=(()=>{class t extends Fv{constructor(t,e,n,o){super(),this.control=new uC,this._registered=!1,this.update=new i.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Wv(0,o)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Jv(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Vv(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){jv(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(t){mC.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;mC.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Dv,9),i.Y36(fv,10),i.Y36(gv,10),i.Y36(cv,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([gC]),i.qOj,i.TTD]}),t})(),yC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),bC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const vC=new i.OlP("NgModelWithFormControlWarning"),CC={provide:Dv,useExisting:(0,i.Gpc)(()=>xC)};let xC=(()=>{class t extends Dv{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateV
1alidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Hv(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return jv(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){zv(t.control||null,t,!1),Kv(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,$v(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(zv(e||null,t),n instanceof uC&&(jv(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);Qv(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return Hv(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Bv(this.form,this),this._oldForm&&Hv(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(fv,10),i.Y36(gv,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([CC]),i.qOj,i.TTD]}),t})();const wC={provide:Fv,useExisting:(0,i.Gpc)(()=>OC)};let OC=(()=>{class t extends Fv{constructor(t,e,n,o,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Wv(0,o)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),Jv(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Vv(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Dv,13),i.Y36(fv,10),i.Y36(gv,10),i.Y36(cv,10),i.Y36(vC,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([wC]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})(),PC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[bC]]}),t})(),MC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[PC]}),t})(),TC=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:vC,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[PC]}),t})(),kC=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i,o=null,r=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(o=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(o=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new lC(n,{asyncValidators:r,updateOn:i,validators:o})}control(t,e,n){return new uC(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new hC(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof uC||t instanceof lC||t instanceof hC?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t},token:t,providedIn:TC}),t})();var SC=n(8307);function EC(t){return e=>e.lift(new AC(t))}class AC{constructor(t){this.notifier=t}call(t,e){const n=new IC(t),i=(0,Me.D)(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class IC extends Oe.L{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,i,o){this.seenValue=!0,this.complete()}notifyComplete(){}}function RC(t){return e=>e.lift(new NC(t))}class NC{constructor(t){this.callback=t}call(t,e){return e.subscribe(new LC(t,this.callback))}}class LC extends Nt.L{constructor(t,e){super(t),this.add(new Ae.w(e))}}const DC=[{name:"United Kingdom",iso:"GB"},{name:"United States of America",iso:"US"}],FC=[{name:"Afghanistan",iso:"AF"},{name:"\xc5land Islands",iso:"AX"},{name:"Albania",iso:"AL"},{name:"Algeria",iso:"DZ"},{name:"American Samoa",iso:"AS"},{name:"Andorra",iso:"AD"},{name:"Angola",iso:"AO"},{name:"Anguilla",iso:"AI"},{name:"Antarctica",iso:"AQ"},{name:"Antigua and Barbuda",iso:"AG"},{name:"Argentina",iso:"AR"},{name:"Armenia",iso:"AM"},{name:"Aruba",iso:"AW"},{name:"Australia",iso:"AU"},{name:"Austria",iso:"AT"},{name:"Azerbaijan",iso:"AZ"},{name:"Bahamas",iso:"BS"},{name:"Bahrain",iso:"BH"},{name:"Bangladesh",iso:"BD"},{name:"Barbados",iso:"BB"},{name:"Belarus",iso:"BY"},{name:"Belgium",iso:"BE"},{name:"Belize",iso:"BZ"},{name:"Benin",iso:"BJ"},{name:"Bermuda",iso:"BM"},{name:"Bhutan",iso:"BT"},{name:"Bolivia (Plurinational State of)",iso:"BO"},{name:"Bonaire, Sint Eustatius and Saba",iso:"BQ"},{name:"Bosnia and Herzegovina",iso:"BA"},{name:"Botswana",iso:"BW"},{name:"Bouvet Island",iso:"BV"},{name:"Brazil",iso:"BR"},{name:"British Indian Ocean Territory",iso:"IO"},{name:"Brunei Darussalam",iso:"BN"},{name:"Bulgaria",iso:"BG"},{name:"Burkina Faso",iso:"BF"},{name:"Burundi",iso:"BI"},{name:"Cambodia",iso:"KH"},{name:"Cameroon",iso:"CM"},{name:"Canada",iso:"CA"},{name:"Cabo Verde",iso:"CV"},{name:"Cayman Islands",iso:"KY"},{name:"Central African Republic",iso:"CF"}
1,{name:"Chad",iso:"TD"},{name:"Chile",iso:"CL"},{name:"China",iso:"CN"},{name:"Christmas Island",iso:"CX"},{name:"Cocos (Keeling) Islands",iso:"CC"},{name:"Colombia",iso:"CO"},{name:"Comoros",iso:"KM"},{name:"Congo",iso:"CG"},{name:"Congo (Democratic Republic of the)",iso:"CD"},{name:"Cook Islands",iso:"CK"},{name:"Costa Rica",iso:"CR"},{name:"C\xf4te d'Ivoire",iso:"CI"},{name:"Croatia",iso:"HR"},{name:"Cuba",iso:"CU"},{name:"Cura\xe7ao",iso:"CW"},{name:"Cyprus",iso:"CY"},{name:"Czech Republic",iso:"CZ"},{name:"Denmark",iso:"DK"},{name:"Djibouti",iso:"DJ"},{name:"Dominica",iso:"DM"},{name:"Dominican Republic",iso:"DO"},{name:"Ecuador",iso:"EC"},{name:"Egypt",iso:"EG"},{name:"El Salvador",iso:"SV"},{name:"Equatorial Guinea",iso:"GQ"},{name:"Eritrea",iso:"ER"},{name:"Estonia",iso:"EE"},{name:"Ethiopia",iso:"ET"},{name:"Falkland Islands (Malvinas)",iso:"FK"},{name:"Faroe Islands",iso:"FO"},{name:"Fiji",iso:"FJ"},{name:"Finland",iso:"FI"},{name:"France",iso:"FR"},{name:"French Guiana",iso:"GF"},{name:"French Polynesia",iso:"PF"},{name:"French Southern Territories",iso:"TF"},{name:"Gabon",iso:"GA"},{name:"Gambia",iso:"GM"},{name:"Georgia",iso:"GE"},{name:"Germany",iso:"DE"},{name:"Ghana",iso:"GH"},{name:"Gibraltar",iso:"GI"},{name:"Greece",iso:"GR"},{name:"Greenland",iso:"GL"},{name:"Grenada",iso:"GD"},{name:"Guadeloupe",iso:"GP"},{name:"Guam",iso:"GU"},{name:"Guatemala",iso:"GT"},{name:"Guernsey",iso:"GG"},{name:"Guinea",iso:"GN"},{name:"Guinea-Bissau",iso:"GW"},{name:"Guyana",iso:"GY"},{name:"Haiti",iso:"HT"},{name:"Heard Island and McDonald Islands",iso:"HM"},{name:"Holy See",iso:"VA"},{name:"Honduras",iso:"HN"},{name:"Hong Kong",iso:"HK"},{name:"Hungary",iso:"HU"},{name:"Iceland",iso:"IS"},{name:"India",iso:"IN"},{name:"Indonesia",iso:"ID"},{name:"Iran (Islamic Republic of)",iso:"IR"},{name:"Iraq",iso:"IQ"},{name:"Ireland",iso:"IE"},{name:"Isle of Man",iso:"IM"},{name:"Israel",iso:"IL"},{name:"Italy",iso:"IT"},{name:"Jamaica",iso:"JM"},{name:"Japan",iso:"JP"},{name:"Jersey",iso:"JE"},{name:"Jordan",iso:"JO"},{name:"Kazakhstan",iso:"KZ"},{name:"Kenya",iso:"KE"},{name:"Kiribati",iso:"KI"},{name:"Korea (Democratic People's Republic of)",iso:"KP"},{name:"Korea (Republic of)",iso:"KR"},{name:"Kuwait",iso:"KW"},{name:"Kyrgyzstan",iso:"KG"},{name:"Lao People's Democratic Republic",iso:"LA"},{name:"Latvia",iso:"LV"},{name:"Lebanon",iso:"LB"},{name:"Lesotho",iso:"LS"},{name:"Liberia",iso:"LR"},{name:"Libya",iso:"LY"},{name:"Liechtenstein",iso:"LI"},{name:"Lithuania",iso:"LT"},{name:"Luxembourg",iso:"LU"},{name:"Macao",iso:"MO"},{name:"Macedonia (the former Yugoslav Republic of)",iso:"MK"},{name:"Madagascar",iso:"MG"},{name:"Malawi",iso:"MW"},{name:"Malaysia",iso:"MY"},{name:"Maldives",iso:"MV"},{name:"Mali",iso:"ML"},{name:"Malta",iso:"MT"},{name:"Marshall Islands",iso:"MH"},{name:"Martinique",iso:"MQ"},{name:"Mauritania",iso:"MR"},{name:"Mauritius",iso:"MU"},{name:"Mayotte",iso:"YT"},{name:"Mexico",iso:"MX"},{name:"Micronesia (Federated States of)",iso:"FM"},{name:"Moldova (Republic of)",iso:"MD"},{name:"Monaco",iso:"MC"},{name:"Mongolia",iso:"MN"},{name:"Montenegro",iso:"ME"},{name:"Montserrat",iso:"MS"},{name:"Morocco",iso:"MA"},{name:"Mozambique",iso:"MZ"},{name:"Myanmar",iso:"MM"},{name:"Namibia",iso:"NA"},{name:"Nauru",iso:"NR"},{name:"Nepal",iso:"NP"},{name:"Netherlands",iso:"NL"},{name:"New Caledonia",iso:"NC"},{name:"New Zealand",iso:"NZ"},{name:"Nicaragua",iso:"NI"},{name:"Niger",iso:"NE"},{name:"Nigeria",iso:"NG"},{name:"Niue",iso:"NU"},{name:"Norfolk Island",iso:"NF"},{name:"Northern Mariana Islands",iso:"MP"},{name:"Norway",iso:"NO"},{name:"Oman",iso:"OM"},{name:"Pakistan",iso:"PK"},{name:"Palau",iso:"PW"},{name:"Palestine, State of",iso:"PS"},{name:"Panama",iso:"PA"},{name:"Papua New Guinea",iso:"PG"},{name:"Paraguay",iso:"PY"},{name:"Peru",iso:"PE"},{name:"Philippines",iso:"PH"},{name:"Pitcairn",iso:"PN"},{name:"Poland",iso:"PL"},{name:"Portugal",iso:"PT"},{name:"Puerto Rico",iso:"PR"},{name:"Qatar",iso:"QA"},{name:"Republic of Kosovo",iso:"XK"},{name:"R\xe9union",iso:"RE"},{name:"Romania",iso:"RO"},{name:"Russian Federation",iso:"RU"},{name:"Rwanda",iso:"RW"},{name:"Saint Barth\xe9lemy",iso:"BL"},{name:"Saint Helena, Ascension and Tristan da Cunha",iso:"SH"},{name:"Saint Kitts and Nevis",iso:"KN"},{name:"Saint Lucia",iso:"LC"},{name:"Saint Martin (French part)",iso:"MF"},{name:"Saint Pierre and Miquelon",iso:"PM"},{name:"Saint Vincent and the Grenadines",iso:"VC"},{name:"Samoa",iso:"WS"},{name:"San Marino",iso:"SM"},{name:"Sao Tome and Principe",iso:"ST"},{name:"Saudi Arabia",iso:"SA"},{name:"Senegal",iso:"SN"},{name:"Serbia",iso:"RS"},{name:"Seychelles",iso:"SC"},{name:"Sierra Leone",iso:"SL"},{name:"Singapore",iso:"SG"},{name:"Sint Maarten (Dutch part)",iso:"SX"},{name:"Slovakia",iso:"SK"},{name:"Slovenia",iso:"SI"},{name:"Solomon Islands",iso:"SB"}
1,{name:"Somalia",iso:"SO"},{name:"South Africa",iso:"ZA"},{name:"South Georgia and the South Sandwich Islands",iso:"GS"},{name:"South Sudan",iso:"SS"},{name:"Spain",iso:"ES"},{name:"Sri Lanka",iso:"LK"},{name:"Sudan",iso:"SD"},{name:"Suriname",iso:"SR"},{name:"Svalbard and Jan Mayen",iso:"SJ"},{name:"Swaziland",iso:"SZ"},{name:"Sweden",iso:"SE"},{name:"Switzerland",iso:"CH"},{name:"Syrian Arab Republic",iso:"SY"},{name:"Taiwan",iso:"TW"},{name:"Tajikistan",iso:"TJ"},{name:"Tanzania, United Republic of",iso:"TZ"},{name:"Thailand",iso:"TH"},{name:"Timor-Leste",iso:"TL"},{name:"Togo",iso:"TG"},{name:"Tokelau",iso:"TK"},{name:"Tonga",iso:"TO"},{name:"Trinidad and Tobago",iso:"TT"},{name:"Tunisia",iso:"TN"},{name:"Turkey",iso:"TR"},{name:"Turkmenistan",iso:"TM"},{name:"Turks and Caicos Islands",iso:"TC"},{name:"Tuvalu",iso:"TV"},{name:"Uganda",iso:"UG"},{name:"Ukraine",iso:"UA"},{name:"United Arab Emirates",iso:"AE"},{name:"United Kingdom",iso:"GB"},{name:"United States of America",iso:"US"},{name:"United States Minor Outlying Islands",iso:"UM"},{name:"Uruguay",iso:"UY"},{name:"Uzbekistan",iso:"UZ"},{name:"Vanuatu",iso:"VU"},{name:"Venezuela (Bolivarian Republic of)",iso:"VE"},{name:"Vietnam",iso:"VN"},{name:"Virgin Islands (British)",iso:"VG"},{name:"Virgin Islands (U.S.)",iso:"VI"},{name:"Wallis and Futuna",iso:"WF"},{name:"Western Sahara",iso:"EH"},{name:"Yemen",iso:"YE"},{name:"Zambia",iso:"ZM"},{name:"Zimbabwe",iso:"ZW"}],UC=["F1","F2","F3 or similar","ST/CT1","ST/CT2","ST/CT3","ST/CT4","ST/CT5","ST/CT6","ST/CT7","ST/CT8","SAS","General practitioner","Consultant"],ZC=["Year 1","Year 2","Year 3","Year 4","Year 5","Year 6"],qC=["GMT Greenwich Mean Time GMT","UTC Universal Coordinated Time GMT","ECT European Central Time GMT+1:00","EET Eastern European Time GMT+2:00","ART (Arabic) Egypt Standard Time GMT+2:00","EAT Eastern African Time GMT+3:00","MET Middle East Time GMT+3:30","NET Near East Time GMT+4:00","PLT Pakistan Lahore Time GMT+5:00","IST India Standard Time GMT+5:30","BST Bangladesh Standard Time GMT+6:00","VST Vietnam Standard Time GMT+7:00","CTT China Taiwan Time GMT+8:00","JST Japan Standard Time GMT+9:00","ACT Australia Central Time GMT+9:30","AET Australia Eastern Time GMT+10:00","SST Solomon Standard Time GMT+11:00","NST New Zealand Standard Time GMT+12:00","MIT Midway Islands Time GMT-11:00","HST Hawaii Standard Time GMT-10:00","AST Alaska Standard Time GMT-9:00","PST Pacific Standard Time GMT-8:00","PNT Phoenix Standard Time GMT-7:00","MST Mountain Standard Time GMT-7:00","CST Central Standard Time GMT-6:00","EST Eastern Standard Time GMT-5:00","IET Indiana Eastern Standard Time GMT-5:00","PRT Puerto Rico and US Virgin Islands Time GMT-4:00","CNT Canada Newfoundland Time GMT-3:30","AGT Argentina Standard Time GMT-3:00","BET Brazil Eastern Time GMT-3:00","CAT Central African Time GMT-1:00"],VC=t=>`An email to verify your email has been sent to ${t}`,jC="Oops! Something went wrong. Try again later",zC="Please fill all required fields";n(1336);class GC extends ve.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ie.N;return this._value}next(t){super.next(this._value=t)}}let BC=(()=>{class t{constructor(){this.loading$=new GC(!1)}get loading(){return this.loading$.getValue()}set loading(t){this.loading$.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var HC=n(6693);const YC={};function QC(...t){let e=null,n=null;return(0,dn.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,nv.k)(t[0])&&(t=t[0]),(0,HC.n)(t,n).lift(new JC(e))}class JC{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new $C(t,this.resultSelector))}}class $C extends Oe.L{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(YC),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++){const e=t[n];this.add((0,Me.D)(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,i,o){const r=this.values,s=this.toRespond?r[n]===YC?--this.toRespond:this.toRespond:0;r[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function WC(t){return new At.y(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?(0,Ce.D)(n):(0,Ze.c)()).subscribe(e)})}var KC=n(2441);function XC(t){return function(e){const n=new tx(t),i=e.lift(n);return n.caught=i}}class tx{constructor(t){this.selector=t}call(t,e){return e.subscribe(new ex(t,this.selector,this.caught))}}class ex extends Oe.L{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new Pe.d(this,void 0,void 0);this.add(i);const o=(0,Me.D)(this,n,void 0,void 0,i);o!==i&&this.add(o)}}}function nx(t){return function(e){return 0===t?(0,Ze.c)():e.lift(new ix(t))}}class ix{constructor(t){if(this.total=t,this.total<0)throw new Ue}call(t,e){return e.subscribe(new ox(t,this.total))}}class ox extends Nt.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let o=0;o<n;o++){const o=e++%n;t.next(i[o])}}t.complete()}}function rx(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Lt((e,n)=>t(e,n,i)):$e.y,nx(1),n?ze(e):He(()=>new Fe))}var sx=n(1307);class ax{constructor(t,e){this.id=t,this.url=e}}class cx extends ax{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ux extends ax{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class lx extends ax{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class hx extends ax{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class dx extends ax{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class px extends ax{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fx extends ax{constructor(t,e,n,i,o){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class gx extends ax{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mx extends ax{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _x{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class yx{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bx{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vx{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cx{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xx{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wx{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ox="primary";class Px{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Mx(t){return new Px(t)}const Tx="ngNavigationCancelingError";function kx(t){const e=Error("NavigationCancelingError: "+t);return e[Tx]=!0,e}function Sx(t,e,n){const i=n.path.split("/");if(i.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;const o={};for(let r=0;r<i.length;r++){const e=i[r],n=t[r];
1if(e.startsWith(":"))o[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,i.length),posParams:o}}function Ex(t,e){const n=t?Object.keys(t):void 0,i=e?Object.keys(e):void 0;if(!n||!i||n.length!=i.length)return!1;let o;for(let r=0;r<n.length;r++)if(o=n[r],!Ax(t[o],e[o]))return!1;return!0}function Ax(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),i=[...e].sort();return n.every((t,e)=>i[e]===t)}return t===e}function Ix(t){return Array.prototype.concat.apply([],t)}function Rx(t){return t.length>0?t[t.length-1]:null}function Nx(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Lx(t){return(0,i.CqO)(t)?t:(0,i.QGY)(t)?(0,Ce.D)(Promise.resolve(t)):(0,Et.of)(t)}const Dx={exact:function t(e,n,i){if(!Bx(e.segments,n.segments)||!Vx(e.segments,n.segments,i)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const o in n.children)if(!e.children[o]||!t(e.children[o],n.children[o],i))return!1;return!0},subset:Zx},Fx={exact:function(t,e){return Ex(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Ax(t[n],e[n]))},ignored:()=>!0};function Ux(t,e,n){return Dx[n.paths](t.root,e.root,n.matrixParams)&&Fx[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function Zx(t,e,n){return qx(t,e,e.segments,n)}function qx(t,e,n,i){if(t.segments.length>n.length){const o=t.segments.slice(0,n.length);return!(!Bx(o,n)||e.hasChildren()||!Vx(o,n,i))}if(t.segments.length===n.length){if(!Bx(t.segments,n)||!Vx(t.segments,n,i))return!1;for(const n in e.children)if(!t.children[n]||!Zx(t.children[n],e.children[n],i))return!1;return!0}{const o=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!(Bx(t.segments,o)&&Vx(t.segments,o,i)&&t.children[Ox])&&qx(t.children[Ox],e,r,i)}}function Vx(t,e,n){return e.every((e,i)=>Fx[n](t[i].parameters,e.parameters))}class jx{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Mx(this.queryParams)),this._queryParamMap}toString(){return Qx.serialize(this)}}class zx{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Nx(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Jx(this)}}class Gx{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Mx(this.parameters)),this._parameterMap}toString(){return nw(this)}}function Bx(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Hx{}class Yx{parse(t){const e=new aw(t);return new jx(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${$x(t.root,!0)}`,n=function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Kx(e)}=${Kx(t)}`).join("&"):`${Kx(e)}=${Kx(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams),i="string"==typeof t.fragment?`#${function(t){return encodeURI(t)}(t.fragment)}`:"";return`${e}${n}${i}`}}const Qx=new Yx;function Jx(t){return t.segments.map(t=>nw(t)).join("/")}function $x(t,e){if(!t.hasChildren())return Jx(t);if(e){const e=t.children[Ox]?$x(t.children[Ox],!1):"",n=[];return Nx(t.children,(t,e)=>{e!==Ox&&n.push(`${e}:${$x(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return Nx(t.children,(t,i)=>{i===Ox&&(n=n.concat(e(t,i)))}),Nx(t.children,(t,i)=>{i!==Ox&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===Ox?[$x(t.children[Ox],!1)]:[`${n}:${$x(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ox]?`${Jx(t)}/${e[0]}`:`${Jx(t)}/(${e.join("//")})`}}function Wx(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Kx(t){return Wx(t).replace(/%3B/gi,";")}function Xx(t){return Wx(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function tw(t){return decodeURIComponent(t)}function ew(t){return tw(t.replace(/\+/g,"%20"))}function nw(t){return`${Xx(t.path)}${function(t){return Object.keys(t).map(e=>`;${Xx(e)}=${Xx(t[e])}`).join("")}(t.parameters)}`}const iw=/^[^\/()?;=#]+/;function ow(t){const e=t.match(iw);return e?e[0]:""}const rw=/^[^=?&#]+/,sw=/^[^?&#]+/;class aw{constructor(t){this.url=t,this.remaining=t}
vendor: 4,744 bytes, line 1
1parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new zx([],{}):new zx([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Ox]=new zx(t,e)),n}parseSegment(){const t=ow(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Gx(tw(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=ow(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=ow(this.remaining);t&&(n=t,this.capture(n))}t[tw(e)]=tw(n)}parseQueryParam(t){const e=function(t){const e=t.match(rw);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(sw);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=ew(e),o=ew(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(o)}else t[i]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=ow(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let o;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Ox);const r=this.parseChildren();e[o]=1===Object.keys(r).length?r[Ox]:new zx([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class cw{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=uw(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=uw(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=lw(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return lw(t,this._root).map(t=>t.value)}}function uw(t,e){if(t===e.value)return e;for(const n of e.children){const e=uw(t,n);if(e)return e}return null}function lw(t,e){if(t===e.value)return[e];for(const n of e.children){const i=lw(t,n);if(i.length)return i.unshift(e),i}return[]}class hw{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function dw(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class pw extends cw{constructor(t,e){super(t),this.snapshot=e,bw(this,t)}toString(){return this.snapshot.toString()}}function fw(t,e){const n=function(t,e){const n=new _w([],{},{},"",{},Ox,e,null,t.root,-1,{});return new yw("",new hw(n,[]))}(t,e),i=new GC([new Gx("",{})]),o=new GC({}),r=new GC({}),s=new GC({}),a=new GC(""),c=new gw(i,o,s,a,r,Ox,e,n.root);return c.snapshot=n.root,new pw(new hw(c,[]),n)}class gw{constructor(t,e,n,i,o,r,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=r,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Ut.U)(t=>Mx(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ut.U)(t=>Mx(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function mw(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;
1i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class _w{constructor(t,e,n,i,o,r,s,a,c,u,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=r,this.component=s,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Mx(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Mx(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class yw extends cw{constructor(t,e){super(e),this.url=t,bw(this,e)}toString(){return vw(this._root)}}function bw(t,e){e.value._routerState=t,e.children.forEach(e=>bw(t,e))}function vw(t){const e=t.children.length>0?` { ${t.children.map(vw).join(", ")} } `:"";return`${t.value}${e}`}function Cw(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Ex(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Ex(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!Ex(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Ex(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function xw(t,e){const n=Ex(t.params,e.params)&&function(t,e){return Bx(t,e)&&t.every((t,n)=>Ex(t.parameters,e[n].parameters))}(t.url,e.url);return n&&!(!t.parent!=!e.parent)&&(!t.parent||xw(t.parent,e.parent))}function ww(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const o=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return ww(t,e,i);return ww(t,e)})}(t,e,n);return new hw(i,o)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return Ow(e,t),t}}const n=function(t){return new gw(new GC(t.url),new GC(t.params),new GC(t.queryParams),new GC(t.fragment),new GC(t.data),t.outlet,t.component,t)}(e.value),i=e.children.map(e=>ww(t,e));return new hw(n,i)}}function Ow(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)Ow(t.children[n],e.children[n])}function Pw(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Mw(t){return"object"==typeof t&&null!=t&&t.outlets}function Tw(t,e,n,i,o){let r={};return i&&Nx(i,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new jx(n.root===t?e:kw(n.root,t,e),r,o)}function kw(t,e,n){const i={};return Nx(t.children,(t,o)=>{i[o]=t===e?n:kw(t,e,n)}),new zx(t.segments,i)}class Sw{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Pw(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Mw);if(i&&i!==Rx(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ew{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Aw(t,e,n){if(t||(t=new zx([],{})),0===t.segments.length&&t.hasChildren())return Iw(t,e,n);const i=function(t,e,n){let i=0,o=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(i>=n.length)return r;const e=t.segments[o],s=n[i];if(Mw(s))break;const a=`${s}`,c=i<n.length-1?n[i+1]:null;if(o>0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!Dw(a,c,e))return r;i+=2}else{if(!Dw(a,{},e))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,e,n),o=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const e=new zx(t.segments.slice(0,i.pathIndex),{});return e.children[Ox]=new zx(t.segments.slice(i.pathIndex),t.children),Iw(e,0,o)}return i.match&&0===o.length?new zx(t.segments,{}):i.match&&!t.hasChildren()?Rw(t,e,n):i.match?Iw(t,0,o):Rw(t,e,n)}function Iw(t,e,n){if(0===n.length)return new zx(t.segments,{});{const i=function(t){return Mw(t[0])?t[0].outlets:{[Ox]:t}}(n),o={};return Nx(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(o[i]=Aw(t.children[i],e,n))}),Nx(t.children,(t,e)=>{void 0===i[e]&&(o[e]=t)}),new zx(t.segments,o)}}function Rw(t,e,n){const i=t.segments.slice(0,e);let o=0;for(;o<n.length;){const r=n[o];if(Mw(r)){const t=Nw(r.outlets);return new zx(i,t)}if(0===o&&Pw(n[0])){i.push(new Gx(t.segments[e].path,Lw(n[0]))),o++;continue}const s=Mw(r)?r.outlets[Ox]:`${r}`,a=o<n.length-1?n[o+1]:null;s&&a&&Pw(a)?(i.push(new Gx(s,Lw(a))),o+=2):(i.push(new Gx(s,{})),o++)}return new zx(i,{})}function Nw(t){const e={};return Nx(t,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Rw(new zx([],{}),0,t))}),e}function Lw(t){const e={};return Nx(t,(t,n)=>e[n]=`${t}`),e}function Dw(t,e,n){return t==n.path&&Ex(e,n.parameters)}class Fw{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Cw(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=dw(e);
1t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Nx(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,o=e?e.value:null;if(i===o)if(i.component){const o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,o=dw(t);for(const r of Object.keys(o))this.deactivateRouteAndItsChildren(o[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=dw(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new xx(t.value.snapshot))}),t.children.length&&this.forwardEvent(new vx(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,o=e?e.value:null;if(Cw(i),i===o)if(i.component){const o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Uw(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),o=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=o,e.outlet&&e.outlet.activateWith(i,o),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Uw(t){Cw(t.value),t.children.forEach(Uw)}class Zw{constructor(t,e){this.routes=t,this.module=e}}function qw(t){return"function"==typeof t}function Vw(t){return t instanceof jx}const jw=Symbol("INITIAL_VALUE");function zw(){return Te(t=>QC(t.map(t=>t.pipe(qe(1),pn(jw)))).pipe(_n((t,e)=>{let n=!1;return e.reduce((t,i,o)=>t!==jw?t:(i===jw&&(n=!0),n||!1!==i&&o!==e.length-1&&!Vw(i)?t:i),t)},jw),Lt(t=>t!==jw),(0,Ut.U)(t=>Vw(t)?t:!0===t),qe(1)))}let Gw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&i._UZ(0,"router-outlet")},directives:function(){return[zO]},encapsulation:2}),t})();function Bw(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];Hw(i,Yw(e,i))}}function Hw(t,e){t.children&&Bw(t.children,e)}function Yw(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Qw(t){const e=t.children&&t.children.map(Qw),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==Ox&&(n.component=Gw),n}function Jw(t){return t.outlet||Ox}function $w(t,e){const n=t.filter(t=>Jw(t)===e);return n.push(...t.filter(t=>Jw(t)!==e)),n}const Ww={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Kw(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Ww):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const o=(e.matcher||Sx)(n,t,e);if(!o)return Object.assign({},Ww);const r={};Nx(o.posParams,(t,e)=>{r[e]=t.path});const s=o.consumed.length>0?Object.assign(Object.assign({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:s,positionalParamSegments:null!==(i=o.posParams)&&void 0!==i?i:{}}}function Xw(t,e,n,i,o="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>tO(t,e,n)&&Jw(n)!==Ox)}(t,n,i)){const o=new zx(e,function(t,e,n,i){const o={};o[Ox]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&Jw(r)!==Ox){const n=new zx([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,o[Jw(r)]=n}return o}(t,e,i,new zx(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>tO(t,e,n))}(t,n,i)){const r=new zx(t.segments,function(t,e,n,i,o,r){const s={};for(const a of i)if(tO(t,n,a)&&!o[Jw(a)]){const n=new zx([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,s[Jw(a)]=n}return Object.assign(Object.assign({},o),s)}(t,e,n,i,t.children,o));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new zx(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function tO(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function eO(t,e,n,i){return!!(Jw(t)===i||i!==Ox&&tO(e,n,t))&&("**"===t.path||Kw(e,t,n).matched)}function nO(t,e,n){return 0===e.length&&!t.children[n]}class iO{constructor(t){this.segmentGroup=t||null}}class oO{constructor(t){this.urlTree=t}}function rO(t){return new At.y(e=>e.error(new iO(t)))}function sO(t){return new At.y(e=>e.error(new oO(t)))}function aO(t){return new At.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class cO{constructor(t,e,n,o,r){this.configLoader=e,this.urlSerializer
1=n,this.urlTree=o,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(i.h0i)}apply(){const t=Xw(this.urlTree.root,[],[],this.config).segmentGroup,e=new zx(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Ox).pipe((0,Ut.U)(t=>this.createUrlTree(uO(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(XC(t=>{if(t instanceof oO)return this.allowRedirects=!1,this.match(t.urlTree);throw t instanceof iO?this.noMatchError(t):t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Ox).pipe((0,Ut.U)(e=>this.createUrlTree(uO(e),t.queryParams,t.fragment))).pipe(XC(t=>{throw t instanceof iO?this.noMatchError(t):t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new zx([],{[Ox]:t}):t;return new jx(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,Ut.U)(t=>new zx([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const o of Object.keys(n.children))"primary"===o?i.unshift(o):i.push(o);return(0,Ce.D)(i).pipe(Rt(i=>{const o=n.children[i],r=$w(e,i);return this.expandSegmentGroup(t,r,o,i).pipe((0,Ut.U)(t=>({segment:t,outlet:i})))}),_n((t,e)=>(t[e.outlet]=e.segment,t),{}),rx())}expandSegment(t,e,n,i,o,r){return(0,Ce.D)(n).pipe(Rt(s=>this.expandSegmentAgainstRoute(t,e,n,s,i,o,r).pipe(XC(t=>{if(t instanceof iO)return(0,Et.of)(null);throw t}))),We(t=>!!t),XC((t,n)=>{if(t instanceof Fe||"EmptyError"===t.name){if(nO(e,i,o))return(0,Et.of)(new zx([],{}));throw new iO(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,o,r,s){return eO(i,e,o,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,o,r):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,o,r):rO(e):rO(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,o,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,o,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?sO(o):this.lineralizeSegments(n,o).pipe((0,It.zg)(n=>{const o=new zx(n,{});return this.expandSegment(t,o,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,o,r){const{matched:s,consumedSegments:a,lastChild:c,positionalParamSegments:u}=Kw(e,i,o);if(!s)return rO(e);const l=this.applyRedirectCommands(a,i.redirectTo,u);return i.redirectTo.startsWith("/")?sO(l):this.lineralizeSegments(i,l).pipe((0,It.zg)(i=>this.expandSegment(t,e,n,i.concat(o.slice(c)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i,o){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,Et.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,Ut.U)(t=>(n._loadedConfig=t,new zx(i,{})))):(0,Et.of)(new zx(i,{}));const{matched:r,consumedSegments:s,lastChild:a}=Kw(e,n,i);if(!r)return rO(e);const c=i.slice(a);return this.getChildConfig(t,n,i).pipe((0,It.zg)(t=>{const i=t.module,r=t.routes,{segmentGroup:a,slicedSegments:u}=Xw(e,s,c,r),l=new zx(a.segments,a.children);if(0===u.length&&l.hasChildren())return this.expandChildren(i,r,l).pipe((0,Ut.U)(t=>new zx(s,t)));if(0===r.length&&0===u.length)return(0,Et.of)(new zx(s,{}));const h=Jw(n)===o;return this.expandSegment(i,l,r,u,h?Ox:o,!0).pipe((0,Ut.U)(t=>new zx(s.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?(0,Et.of)(new Zw(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,Et.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,It.zg)(n=>n?this.configLoader.load(t.injector,e).pipe((0,Ut.U)(t=>(e._loadedConfig=t,t))):function(t){return new At.y(e=>e.error(kx(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,Et.of)(new Zw([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return(0,Et.of)(!0);const o=i.map(i=>{const o=t.get(i);let r;if(function(t){return t&&qw(t.canLoad)}(o))r=o.canLoad(e,n);else{if(!qw(o))throw new Error("Invalid CanLoad guard");r=o(e,n)}return Lx(r)});return(0,Et.of)(o).pipe(zw(),(0,SC.b)(t=>{if(!Vw(t))return;const e=kx(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,Ut.U)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,Et.of)(n);if(i.numberOfChildren>1||!i.children[Ox])return aO(t.redirectTo);i=i.children[Ox]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const o=this.createSegmentGroup(t,e.root,n,i);return new jx(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Nx(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const o=t.substring(1);n[i]=e[o]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const o=this.createSegments(t,e.segments,n,i);let r={};return Nx(e.children,(e,o)=>{r[o]=this.createSegmentGroup(t,e,n,i)}),new zx(o,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function uO(t){const e={};for(const n of Object.keys(t.children)){const i=uO(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children[Ox]){const e=t.children[Ox];return new zx(t.segments.concat(e.segments),e.children)}return t}(new zx(t.segments,e))}class lO{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class hO{constructor(t,e){this.component=t,this.route=e}}function dO(t,e,n){const i=t._root;return fO(i,e?e._root:null,n,[i.value])}function pO(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function fO(t,e,n,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=dw(e);
1return t.children.forEach(t=>{(function(t,e,n,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&r.routeConfig===s.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Bx(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Bx(t.url,e.url)||!Ex(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xw(t,e)||!Ex(t.queryParams,e.queryParams);default:return!xw(t,e)}}(s,r,r.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new lO(i)):(r.data=s.data,r._resolvedData=s._resolvedData),fO(t,e,r.component?a?a.children:null:n,i,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new hO(a.outlet.component,s))}else s&&gO(e,a,o),o.canActivateChecks.push(new lO(i)),fO(t,null,r.component?a?a.children:null:n,i,o)})(t,r[t.value.outlet],n,i.concat([t.value]),o),delete r[t.value.outlet]}),Nx(r,(t,e)=>gO(t,n.getContext(e),o)),o}function gO(t,e,n){const i=dw(t),o=t.value;Nx(i,(t,i)=>{gO(t,o.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new hO(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}class mO{}function _O(t){return new At.y(e=>e.error(t))}class yO{constructor(t,e,n,i,o,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=r}recognize(){const t=Xw(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Ox);if(null===e)return null;const n=new _w([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ox,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new hw(n,e),o=new yw(this.url,i);return this.inheritParamsAndData(o._root),o}inheritParamsAndData(t){const e=t.value,n=mw(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const o of Object.keys(e.children)){const i=e.children[o],r=$w(t,o),s=this.processSegmentGroup(r,i,o);if(null===s)return null;n.push(...s)}const i=vO(n);return function(t){t.sort((t,e)=>t.value.outlet===Ox?-1:e.value.outlet===Ox?1:t.value.outlet.localeCompare(e.value.outlet))}(i),i}processSegment(t,e,n,i){for(const o of t){const t=this.processSegmentAgainstRoute(o,e,n,i);if(null!==t)return t}return nO(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!eO(t,e,n,i))return null;let o,r=[],s=[];if("**"===t.path){const i=n.length>0?Rx(n).parameters:{};o=new _w(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wO(t),Jw(t),t.component,t,CO(e),xO(e)+n.length,OO(t))}else{const i=Kw(e,t,n);if(!i.matched)return null;r=i.consumedSegments,s=n.slice(i.lastChild),o=new _w(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wO(t),Jw(t),t.component,t,CO(e),xO(e)+r.length,OO(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=Xw(e,r,s,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new hw(o,t)]}if(0===a.length&&0===u.length)return[new hw(o,[])];const l=Jw(t)===i,h=this.processSegment(a,c,u,l?Ox:i);return null===h?null:[new hw(o,h)]}}function bO(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function vO(t){const e=[],n=new Set;for(const i of t){if(!bO(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=vO(i.children);e.push(new hw(i.value,t))}return e.filter(t=>!n.has(t))}function CO(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function xO(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function wO(t){return t.data||{}}function OO(t){return t.resolve||{}}function PO(t){return Te(e=>{const n=t(e);return n?(0,Ce.D)(n).pipe((0,Ut.U)(()=>e)):(0,Et.of)(e)})}class MO extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const TO=new i.OlP("ROUTES");class kO{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,Ut.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const o=n.create(t);return new Zw(Ix(o.injector.get(TO,void 0,i.XFs.Self|i.XFs.Optional)).map(Qw),o)}),XC(t=>{throw e._loader$=void 0,t}));return e._loader$=new KC.c(n,()=>new ve.xQ).pipe((0,sx.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,Ce.D)(this.loader.load(t)):Lx(t()).pipe((0,It.zg)(t=>t instanceof i.YKP?(0,Et.of)(t):(0,Ce.D)(this.compiler.compileModuleAsync(t))))}}class SO{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new EO,this.attachRef=null}}class EO{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new SO,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class AO{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function IO(t){throw t}function RO(t,e,n){return e.parse("/")}function NO(t,e){return(0,Et.of)(null)}const LO={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},DO={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let FO=(()=>{class t{constructor(t,e,n,o,r,s,a,c){this.rootComponentType=t,this.urlSerializer
1=e,this.rootContexts=n,this.location=o,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ve.xQ,this.errorHandler=IO,this.malformedUriErrorHandler=RO,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:NO,afterPreactivation:NO},this.urlHandlingStrategy=new AO,this.routeReuseStrategy=new MO,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=r.get(i.h0i),this.console=r.get(i.c2e);const u=r.get(i.R0b);this.isNgZoneEnabled=u instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new jx(new zx([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new kO(s,a,t=>this.triggerEvent(new _x(t)),t=>this.triggerEvent(new yx(t))),this.routerState=fw(this.currentUrlTree,this.rootComponentType),this.transitions=new GC({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe(Lt(t=>0!==t.id),(0,Ut.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Te(t=>{let n=!1,i=!1;return(0,Et.of)(t).pipe((0,SC.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Te(t=>{const n=this.browserUrlTree.toString(),o=!this.navigated||t.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||o)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return UO(t.source)&&(this.browserUrlTree=t.extractedUrl),(0,Et.of)(t).pipe(Te(t=>{const n=this.transitions.getValue();return e.next(new cx(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Ze.E:Promise.resolve(t)}),function(t,e,n,i){return Te(o=>function(t,e,n,i,o){return new cO(t,e,n,i,o).apply()}(t,e,n,o.extractedUrl,i).pipe((0,Ut.U)(t=>Object.assign(Object.assign({},o),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,SC.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,o,r){return(0,It.zg)(s=>function(t,e,n,o,r="emptyOnly",s="legacy"){try{const i=new yO(t,e,n,o,r,s).recognize();return null===i?_O(new mO):(0,Et.of)(i)}catch(i){return _O(i)}}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),o,r).pipe((0,Ut.U)(t=>Object.assign(Object.assign({},s),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,SC.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new dx(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(o&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:o,restoredState:r,extras:s}=t,a=new cx(n,this.serializeUrl(i),o,r);e.next(a);const c=fw(i,this.rootComponentType).snapshot;return(0,Et.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}
1))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Ze.E}),PO(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:o,extras:{skipLocationChange:r,replaceUrl:s}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!r,replaceUrl:!!s})}),(0,SC.b)(t=>{const e=new px(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,Ut.U)(t=>Object.assign(Object.assign({},t),{guards:dO(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,It.zg)(n=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:s}}=n;return 0===s.length&&0===r.length?(0,Et.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,Ce.D)(t).pipe((0,It.zg)(t=>function(t,e,n,i,o){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return(0,Et.of)(!0);const s=r.map(r=>{const s=pO(r,e,o);let a;if(function(t){return t&&qw(t.canDeactivate)}(s))a=Lx(s.canDeactivate(t,e,n,i));else{if(!qw(s))throw new Error("Invalid CanDeactivate guard");a=Lx(s(t,e,n,i))}return a.pipe(We())});return(0,Et.of)(s).pipe(zw())}(t.component,t.route,n,e,i)),We(t=>!0!==t,!0))}(s,i,o,t).pipe((0,It.zg)(n=>n&&function(t){return"boolean"==typeof t}(n)?function(t,e,n,i){return(0,Ce.D)(e).pipe(Rt(e=>hn(function(t,e){return null!==t&&e&&e(new bx(t)),(0,Et.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new Cx(t)),(0,Et.of)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>WC(()=>{const o=e.guards.map(o=>{const r=pO(o,e.node,n);let s;if(function(t){return t&&qw(t.canActivateChild)}(r))s=Lx(r.canActivateChild(i,t));else{if(!qw(r))throw new Error("Invalid CanActivateChild guard");s=Lx(r(i,t))}return s.pipe(We())});return(0,Et.of)(o).pipe(zw())}));return(0,Et.of)(o).pipe(zw())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,Et.of)(!0);const o=i.map(i=>WC(()=>{const o=pO(i,e,n);let r;if(function(t){return t&&qw(t.canActivate)}(o))r=Lx(o.canActivate(e,t));else{if(!qw(o))throw new Error("Invalid CanActivate guard");r=Lx(o(e,t))}return r.pipe(We())}));return(0,Et.of)(o).pipe(zw())}(t,e.route,n))),We(t=>!0!==t,!0))}(i,r,t,e):(0,Et.of)(n)),(0,Ut.U)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,SC.b)(t=>{if(Vw(t.guardsResult)){const e=kx(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new fx(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Lt(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1)),PO(t=>{if(t.guards.canActivateChecks.length)return(0,Et.of)(t).pipe((0,SC.b)(t=>{const e=new gx(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Te(t=>{let e=!1;return(0,Et.of)(t).pipe(function(t,e){return(0,It.zg)(n=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=n;if(!o.length)return(0,Et.of)(n);let r=0;return(0,Ce.D)(o).pipe(Rt(n=>function(t,e,n,i){return function(t,e,n,i){const o=Object.keys(t);if(0===o.length)return(0,Et.of)({});const r={};return(0,Ce.D)(o).pipe((0,It.zg)(o=>function(t,e,n,i){const o=pO(t,e,i);return Lx(o.resolve?o.resolve(e,n):o(e,n))}(t[o],e,n,i).pipe((0,SC.b)(t=>{r[o]=t}))),nx(1),(0,It.zg)(()=>Object.keys(r).length===o.length?(0,Et.of)(r):Ze.E))}(t._resolve,t,e,i).pipe((0,Ut.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),mw(t,n).resolve),null)))}(n.route,i,t,e)),(0,SC.b)(()=>r++),nx(1),(0,It.zg)(t=>r===o.length?(0,Et.of)(n):Ze.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,SC.b)({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}))}),(0,SC.b)(t=>{const e=new mx(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),PO(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:o,extras:{skipLocationChange:r,replaceUrl:s}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!r,replaceUrl:!!s})}),(0,Ut.U)(t=>{const e=function(t,e,n){const i=ww(t,e._root,n?n._root:void 0);return new pw(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,SC.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(t.urlAfterRedirects,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),((t,e,n)=>(0,Ut.U)(i=>(new Fw(e,i.targetRouterState,i.currentRouterState,n).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,t=>
1this.triggerEvent(t)),(0,SC.b)({next(){n=!0},complete(){n=!0}}),RC(()=>{var e;if(!n&&!i){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}(null===(e=this.currentNavigation)||void 0===e?void 0:e.id)===t.id&&(this.currentNavigation=null)}),XC(n=>{if(i=!0,function(t){return t&&t[Tx]}(n)){const i=Vw(n.url);i||(this.navigated=!0,this.restoreHistory(t,!0));const o=new lx(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(o),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),i={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||UO(t.source)};this.scheduleNavigation(e,"imperative",null,i,{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.restoreHistory(t,!0);const i=new hx(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(o){t.reject(o)}}return Ze.E}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,o={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(o.state=t)}this.scheduleNavigation(i,t,n,o)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return e.transitionId!==t.transitionId||!n||!("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Bw(t),this.config=t.map(Qw),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:o,queryParamsHandling:r,preserveFragment:s}=e,a=n||this.routerState.root,c=s?this.currentUrlTree.fragment:o;let u=null;switch(r){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,n,i,o){if(0===n.length)return Tw(e.root,e.root,e,i,o);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Sw(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,o)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Nx(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===o?(i.split("/").forEach((i,o)=>{0==o&&"."===i||(0==o&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Sw(n,e,i)}(n);if(r.toRoot())return Tw(e.root,new zx([],{}),e,i,o);const s=function(t,e,n){if(t.isAbsolute)return new Ew(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Ew(t,t===e.root,0)}const i=Pw(t.commands[0])?0:1;return function(t,e,n){let i=t,o=e,r=n;for(;r>o;){if(r-=o,i=i.parent,!i)throw new Error("Invalid number of '../'");o=i.segments.length}return new Ew(i,!1,o-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=s.processChildren?Iw(s.segmentGroup,s.index,r.commands):Aw(s.segmentGroup,s.index,r.commands);return Tw(s.segmentGroup,a,e,i,o)}(a,this.currentUrlTree,t,u,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Vw(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){let n;if(n=!0===e?Object.assign({},LO):!1===e?Object.assign({},DO):e,Vw(t))return Ux(this.currentUrlTree,t,n);const i=this.parseUrl(t);return Ux(this.currentUrlTree,i,n)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new ux(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,e,n,i,o){var r,s;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),c=UO(e)&&a&&!UO(a.source),u=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(c&&u)return Promise.resolve(!0);let l,h,d;o?(l=o.resolve,h=o.reject,d=o.promise):d=new Promise((t,e)=>{l=t,h=e});const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(r=this.browserPageId)&&void 0!==r?r:0:(null!==(s=this.browserPageId)&&void 0!==s?s:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}
1),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}restoreHistory(t,e=!1){var n,i;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new lx(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.DyG),i.LFG(Hx),i.LFG(EO),i.LFG(C),i.LFG(i.zs3),i.LFG(i.v3s),i.LFG(i.Sil),i.LFG(void 0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function UO(t){return"imperative"!==t}let ZO=(()=>{class t{constructor(t,e,n,i,o){this.router=t,this.route=e,this.commands=[],this.onChanges=new ve.xQ,null==n&&i.setAttribute(o.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:VO(this.skipLocationChange),replaceUrl:VO(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:VO(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(FO),i.Y36(gw),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[i.TTD]}),t})(),qO=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new ve.xQ,this.subscription=t.events.subscribe(t=>{t instanceof ux&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,o){if(0!==t||e||n||i||o||"string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:VO(this.skipLocationChange),replaceUrl:VO(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:VO(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(FO),i.Y36(gw),i.Y36(m))},t.\u0275dir=i.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("
1click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(i.Ikx("href",e.href,i.LSH),i.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[i.TTD]}),t})();function VO(t){return""===t||!!t}let jO=(()=>{class t{constructor(t,e,n,i,o,r){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=o,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof ux&&this.update()})}ngAfterContentInit(){(0,Et.of)(this.links.changes,this.linksWithHrefs.changes,(0,Et.of)(null)).pipe((0,ln.J)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=(0,Ce.D)(e).pipe((0,ln.J)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){const e=function(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>t.isActive(n.urlTree,e)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(FO),i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.sBO),i.Y36(ZO,8),i.Y36(qO,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,ZO,5),i.Suo(n,qO,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.links=t),i.iGM(t=i.CRH())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[i.TTD]}),t})(),zO=(()=>{class t{constructor(t,e,n,o,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.name=o||Ox,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;
1const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,o=new GO(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(EO),i.Y36(i.s_b),i.Y36(i._Vd),i.$8M("name"),i.Y36(i.sBO))},t.\u0275dir=i.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class GO{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===gw?this.route:t===EO?this.childContexts:this.parent.get(t,e)}}class BO{}class HO{preload(t,e){return(0,Et.of)(null)}}let YO=(()=>{class t{constructor(t,e,n,i,o){this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=new kO(e,n,e=>t.triggerEvent(new _x(e)),e=>t.triggerEvent(new yx(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Lt(t=>t instanceof ux),Rt(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(i.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return(0,Ce.D)(n).pipe((0,ln.J)(),(0,Ut.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,Et.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,It.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(FO),i.LFG(i.v3s),i.LFG(i.Sil),i.LFG(i.zs3),i.LFG(BO))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),QO=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof cx?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ux&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof wx&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new wx(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(FO),i.LFG(Q),i.LFG(void 0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const JO=new i.OlP("ROUTER_CONFIGURATION"),$O=new i.OlP("ROUTER_FORROOT_GUARD"),WO=[C,{provide:Hx,useClass:Yx},{provide:FO,useFactory:function(t,e,n,i,o,r,s,a={},c,u){const l=new FO(null,t,e,n,i,o,r,Ix(s));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,l),a.enableTracing&&l.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}
1),l},deps:[Hx,EO,C,i.zs3,i.v3s,i.Sil,TO,JO,[class{},new i.FiY],[class{},new i.FiY]]},EO,{provide:gw,useFactory:function(t){return t.routerState.root},deps:[FO]},{provide:i.v3s,useClass:i.EAV},YO,HO,class{preload(t,e){return e().pipe(XC(()=>(0,Et.of)(null)))}},{provide:JO,useValue:{enableTracing:!1}}];function KO(){return new i.PXZ("Router",FO)}let XO=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[WO,iP(e),{provide:$O,useFactory:nP,deps:[[FO,new i.FiY,new i.tp0]]},{provide:JO,useValue:n||{}},{provide:m,useFactory:eP,deps:[a,[new i.tBr(y),new i.FiY],JO]},{provide:QO,useFactory:tP,deps:[FO,Q,JO]},{provide:BO,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:HO},{provide:i.PXZ,multi:!0,useFactory:KO},[oP,{provide:i.ip1,multi:!0,useFactory:rP,deps:[oP]},{provide:aP,useFactory:sP,deps:[oP]},{provide:i.tb,multi:!0,useExisting:aP}]]}}static forChild(e){return{ngModule:t,providers:[iP(e)]}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG($O,8),i.LFG(FO,8))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();function tP(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new QO(t,e,n)}function eP(t,e,n={}){return n.useHash?new v(t,e):new b(t,e)}function nP(t){return"guarded"}function iP(t){return[{provide:i.deG,multi:!0,useValue:t},{provide:TO,multi:!0,useValue:t}]}let oP=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new ve.xQ}appInitializer(){return this.injector.get(u,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(FO),i=this.injector.get(JO);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,Et.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(JO),n=this.injector.get(YO),o=this.injector.get(QO),r=this.injector.get(FO),s=this.injector.get(i.z2F);t===s.components[0]&&(("enabledNonBlocking"===e.initialNavigation||void 0===e.initialNavigation)&&r.initialNavigation(),n.setUpPreloading(),o.init(),r.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.zs3))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function rP(t){return t.appInitializer.bind(t)}function sP(t){return t.bootstrapListener.bind(t)}const aP=new i.OlP("Router Initializer"),cP="https://us-central1-medicsacademy-sso.cloudfunctions.net",uP="https://sso.medics.academy",lP="https://medicsacademy-sso-admin.web.app",hP={apiKey:"AIzaSyCh75x-1e1OfOGkpcLQ-HzY4tdPJ8NHl88",authDomain:"medicsacademy-sso.firebaseapp.com",projectId:"medicsacademy-sso",databaseURL:"https://medicsacademy-sso.firebaseio.com",storageBucket:"medicsacademy-sso.appspot.com",messagingSenderId:"821010433216"},dP="6LdKfcccAAAAANruwaRymsOBHFQKXi7dWtrwFEQf";var pP=n(205),fP="firebasestorage.googleapis.com",gP="storageBucket",mP=function(t){function e(n,i){var o=t.call(this,_P(n),"Firebase Storage: "+i+" ("+_P(n)+")")||this;return o.customData={serverResponse:null},o._baseMessage=o.message,Object.setPrototypeOf(o,e.prototype),o}return(0,Pn.ZT)(e,t),e.prototype._codeEquals=function(t){return _P(t)===this.code},Object.defineProperty(e.prototype,"serverResponse",{get:function(){return this.customData.serverResponse},set:function(t){this.customData.serverResponse=t,this.message=this.customData.serverResponse?this._baseMessage+"\n"+this.customData.serverResponse:this._baseMessage},enumerable:!1,configurable:!0}),e}(Mn.ZR);function _P(t){return"storage/"+t}function yP(){return new mP("unknown","An unknown error occurred, please check the error payload for server response.")}function bP(){return new mP("canceled","User canceled the upload/download.")}function vP(){return new mP("cannot-slice-blob","Cannot slice blob for upload. Please retry the upload.")}function CP(t){return new mP("invalid-argument",t)}function xP(){return new mP("app-deleted","The Firebase app was deleted.")}function wP(t){return new mP("invalid-root-operation","The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function OP(t,e){return new mP("invalid-format","String does not match format '"+t+"': "+e)}function PP(t){throw new mP("internal-error","Internal error: "+t)}var MP={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"},TP=function(t,e){this.data=t,this.contentType=e||null};function kP(t,e){switch(t){case MP.RAW:return new TP(SP(e));case MP.BASE64:case MP.BASE64URL:return new TP(EP(t,e));case MP.DATA_URL:return new TP(function(t){var e=new AP(t);return e.base64?EP(MP.BASE64,e.rest):function(t){var e;try{e=decodeURIComponent(t)}catch(n){throw OP(MP.DATA_URL,"Malformed data URL.")}return SP(e)}(e.rest)}(e),function(t){return new AP(t).contentType}(e))}throw yP()}function SP(t){for(var e=[],n=0;n<t.length;n++){var i=t.charCodeAt(n);if(i<=127)e.push(i);else if(i<=2047)e.push(192|i>>6,128|63&i);else if(55296==(64512&i))if(n<t.length-1&&56320==(64512&t.charCodeAt(n+1))){var o=i,r=t.charCodeAt(++n);e.push(240|(i=65536|(1023&o)<<10|1023&r)>>18,128|i>>12&63,128|i>>6&63,128|63&i)}else e.push(239,191,189);else 56320==(64512&i)?e.push(239,191,189):e.push(224|i>>12,128|i>>6&63,128|63&i)}return new Uint8Array(e)}function EP(t,e){switch(t){case MP.BASE64:var n=-1!==e.indexOf("-"),i=-1!==e.indexOf("_");if(n||i)throw OP(t,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case MP.BASE64URL:var o=-1!==e.indexOf("+"),r=-1!==e.indexOf("/");if(o||r)throw OP(t,"Invalid character '"+(o?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/")}var s;try{s=function(t){return atob(t)}(e)}catch(u){throw OP(t,"Invalid character found")}for(var a=new Uint8Array(s.length),c=0;c<s.length;c++)a[c]=s.charCodeAt(c);return a}var AP=function(t){this.base64=!1,this.contentType=null;var e=t.match(/^data:([^,]+)?,/);if(null===e)throw OP(MP.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n=e[1]||null;null!=n&&(this.base64=function(t,e){return t.length>=e.length&&t.substring(t.length-e.length)===e}(n,";base64"),this.contentType=this.base64?n.substring(0,n.length-";base64".length):n),this.rest=t.substring(t.indexOf(",")+1)},IP={STATE_CHANGED:"state_changed"},RP={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function NP(t){switch(t){case"running":case"pausing":case"canceling":return RP.RUNNING;case"paused":return RP.PAUSED;case"success":return RP.SUCCESS;case"canceled":return RP.CANCELED;default:return RP.ERROR}}var LP=(()=>
1(function(t){t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_ERROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT"}(LP||(LP={})),LP))(),DP=function(){function t(){var t=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=LP.NO_ERROR,this.sendPromise_=new Promise(function(e){t.xhr_.addEventListener("abort",function(){t.errorCode_=LP.ABORT,e()}),t.xhr_.addEventListener("error",function(){t.errorCode_=LP.NETWORK_ERROR,e()}),t.xhr_.addEventListener("load",function(){e()})})}return t.prototype.send=function(t,e,n,i){if(this.sent_)throw PP("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(e,t,!0),void 0!==i)for(var o in i)i.hasOwnProperty(o)&&this.xhr_.setRequestHeader(o,i[o].toString());return void 0!==n?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},t.prototype.getErrorCode=function(){if(!this.sent_)throw PP("cannot .getErrorCode() before sending");return this.errorCode_},t.prototype.getStatus=function(){if(!this.sent_)throw PP("cannot .getStatus() before sending");try{return this.xhr_.status}catch(t){return-1}},t.prototype.getResponseText=function(){if(!this.sent_)throw PP("cannot .getResponseText() before sending");return this.xhr_.responseText},t.prototype.abort=function(){this.xhr_.abort()},t.prototype.getResponseHeader=function(t){return this.xhr_.getResponseHeader(t)},t.prototype.addUploadProgressListener=function(t){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",t)},t.prototype.removeUploadProgressListener=function(t){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",t)},t}(),FP=function(){function t(){}return t.prototype.createConnection=function(){return new DP},t}(),UP=function(){function t(t,e){this.bucket=t,this.path_=e}return Object.defineProperty(t.prototype,"path",{get:function(){return this.path_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!1,configurable:!0}),t.prototype.fullServerUrl=function(){var t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o/"+t(this.path)},t.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},t.makeFromBucketSpec=function(e,n){var i;try{i=t.makeFromUrl(e,n)}catch(o){return new t(e,"")}if(""===i.path)return i;throw function(t){return new mP("invalid-default-bucket","Invalid default bucket '"+t+"'.")}(e)},t.makeFromUrl=function(e,n){var i=null,o="([A-Za-z0-9.\\-_]+)",r=new RegExp("^gs://"+o+"(/(.*))?$","i");function s(t){t.path_=decodeURIComponent(t.path)}for(var a=n.replace(/[.]/g,"\\."),c=[{regex:r,indices:{bucket:1,path:3},postModify:function(t){"/"===t.path.charAt(t.path.length-1)&&(t.path_=t.path_.slice(0,-1))}},{regex:new RegExp("^https?://"+a+"/v[A-Za-z0-9_]+/b/"+o+"/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:s},{regex:new RegExp("^https?://"+(n===fP?"(?:storage.googleapis.com|storage.cloud.google.com)":n)+"/"+o+"/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:s}],u=0;u<c.length;u++){var l=c[u],h=l.regex.exec(e);if(h){var d=h[l.indices.path];d||(d=""),i=new t(h[l.indices.bucket],d),l.postModify(i);break}}if(null==i)throw function(t){return new mP("invalid-url","Invalid URL '"+t+"'.")}(e);return i},t}(),ZP=function(){function t(t){this.promise_=Promise.reject(t)}return t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){},t}();function qP(t){return"string"==typeof t||t instanceof String}function VP(t){return jP()&&t instanceof Blob}function jP(){return"undefined"!=typeof Blob}function zP(t,e,n,i){if(i<e)throw CP("Invalid value for '"+t+"'. Expected "+e+" or greater.");if(i>n)throw CP("Invalid value for '"+t+"'. Expected "+n+" or less.")}function GP(t,e){var n=e.match(/^(\w+):\/\/.+/),i=e;return null==(null==n?void 0:n[1])&&(i="https://"+e),i+"/v0"+t}function BP(t){var e=encodeURIComponent,n="?";for(var i in t)t.hasOwnProperty(i)&&(n=n+(e(i)+"=")+e(t[i])+"&");return n.slice(0,-1)}var HP=function(){function t(t,e,n,i,o,r,s,a,c,u,l){var h=this;this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=t,this.method_=e,this.headers_=n,this.body_=i,this.successCodes_=o.slice(),this.additionalRetryCodes_=r.slice(),this.callback_=s,this.errorCallback_=a,this.progressCallback_=u,this.timeout_=c,this.pool_=l,this.promise_=new Promise(function(t,e){h.resolve_=t,h.reject_=e,h.start_()})}return t.prototype.start_=function(){var t=this;function e(e,n){var i=t.resolve_,o=t.reject_,r=n.connection;if(n.wasSuccessCode)try{var s=t.callback_(r,r.getResponseText());!function(t){return void 0!==t}(s)?i():i(s)}catch(c){o(c)}else if(null!==r)(a=yP()).serverResponse=r.getResponseText(),o(t.errorCallback_?t.errorCallback_(r,a):a);else if(n.canceled)o(a=t.appDelete_?xP():bP());else{var a;o(a=new mP("retry-limit-exceeded","Max retry time for operation exceeded, please try again."))}}this.canceled_?e(0,new YP(!1,null,!0)):this.backoffId_=function(t,e,n){var i=1,o=null,r=!1,s=0;function a(){return 2===s}var c=!1;function u(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];
1c||(c=!0,e.apply(null,t))}function l(e){o=setTimeout(function(){o=null,t(h,a())},e)}function h(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!c){if(t)return void u.call.apply(u,(0,Pn.ev)([null,t],e));var o;if(a()||r)return void u.call.apply(u,(0,Pn.ev)([null,t],e));i<64&&(i*=2),1===s?(s=2,o=0):o=1e3*(i+Math.random()),l(o)}}var d=!1;function p(t){d||(d=!0,!c&&(null!==o?(t||(s=2),clearTimeout(o),l(0)):t||(s=1)))}return l(0),setTimeout(function(){r=!0,p(!0)},n),p}(function(e,n){if(n)e(!1,new YP(!1,null,!0));else{var i=t.pool_.createConnection();t.pendingConnection_=i,null!==t.progressCallback_&&i.addUploadProgressListener(o),i.send(t.url_,t.method_,t.body_,t.headers_).then(function(){null!==t.progressCallback_&&i.removeUploadProgressListener(o),t.pendingConnection_=null;var n=i.getErrorCode()===LP.NO_ERROR,r=i.getStatus();if(n&&!t.isRetryStatusCode_(r)){var s=-1!==t.successCodes_.indexOf(r);e(!0,new YP(s,i))}else{var a=i.getErrorCode()===LP.ABORT;e(!1,new YP(!1,null,a))}})}function o(e){null!==t.progressCallback_&&t.progressCallback_(e.loaded,e.lengthComputable?e.total:-1)}},e,this.timeout_)},t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){this.canceled_=!0,this.appDelete_=t||!1,null!==this.backoffId_&&function(t){t(!1)}(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()},t.prototype.isRetryStatusCode_=function(t){var e=t>=500&&t<600,n=-1!==[408,429].indexOf(t),i=-1!==this.additionalRetryCodes_.indexOf(t);return e||n||i},t}(),YP=function(t,e,n){this.wasSuccessCode=t,this.connection=e,this.canceled=!!n};function QP(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function JP(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=QP();if(void 0!==n){for(var i=new n,o=0;o<t.length;o++)i.append(t[o]);return i.getBlob()}if(jP())return new Blob(t);throw new mP("unsupported-environment","This browser doesn't seem to support creating Blobs")}var $P=function(){function t(t,e){var n=0,i="";VP(t)?(this.data_=t,n=t.size,i=t.type):t instanceof ArrayBuffer?(e?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),n=this.data_.length):t instanceof Uint8Array&&(e?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),n=t.length),this.size_=n,this.type_=i}return t.prototype.size=function(){return this.size_},t.prototype.type=function(){return this.type_},t.prototype.slice=function(e,n){if(VP(this.data_)){var i=function(t,e,n){return t.webkitSlice?t.webkitSlice(e,n):t.mozSlice?t.mozSlice(e,n):t.slice?t.slice(e,n):null}(this.data_,e,n);return null===i?null:new t(i)}return new t(new Uint8Array(this.data_.buffer,e,n-e),!0)},t.getBlob=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(jP()){var i=e.map(function(e){return e instanceof t?e.data_:e});return new t(JP.apply(null,i))}var o=e.map(function(t){return qP(t)?kP(MP.RAW,t).data:t.data_}),r=0;o.forEach(function(t){r+=t.byteLength});var s=new Uint8Array(r),a=0;return o.forEach(function(t){for(var e=0;e<t.length;e++)s[a++]=t[e]}),new t(s,!0)},t.prototype.uploadData=function(){return this.data_},t}();function WP(t){var e;try{e=JSON.parse(t)}catch(n){return null}return function(t){return"object"==typeof t&&!Array.isArray(t)}(e)?e:null}function KP(t){var e=t.lastIndexOf("/",t.length-2);return-1===e?t:t.slice(e+1)}function XP(t,e){return e}var tM=function(t,e,n,i){this.server=t,this.local=e||t,this.writable=!!n,this.xform=i||XP},eM=null;function nM(){if(eM)return eM;var t=[];t.push(new tM("bucket")),t.push(new tM("generation")),t.push(new tM("metageneration")),t.push(new tM("name","fullPath",!0));var e=new tM("name");e.xform=function(t,e){return function(t){return!qP(t)||t.length<2?t:KP(t)}(e)},t.push(e);var n=new tM("size");return n.xform=function(t,e){return void 0!==e?Number(e):e},t.push(n),t.push(new tM("timeCreated")),t.push(new tM("updated")),t.push(new tM("md5Hash",null,!0)),t.push(new tM("cacheControl",null,!0)),t.push(new tM("contentDisposition",null,!0)),t.push(new tM("contentEncoding",null,!0)),t.push(new tM("contentLanguage",null,!0)),t.push(new tM("contentType",null,!0)),t.push(new tM("metadata","customMetadata",!0)),eM=t}function iM(t,e,n){var i=WP(e);return null===i?null:function(t,e,n){for(var i={type:"file"},o=n.length,r=0;r<o;r++){var s=n[r];i[s.local]=s.xform(i,e[s.server])}return function(t,e){Object.defineProperty(t,"ref",{get:function(){var n=new UP(t.bucket,t.fullPath);return e._makeStorageReference(n)}})}(i,t),i}(t,i,n)}function oM(t,e){for(var n={},i=e.length,o=0;o<i;o++){var r=e[o];r.writable&&(n[r.server]=t[r.local])}return JSON.stringify(n)}var rM="prefixes";var sM=function(t,e,n,i){this.url=t,this.method=e,this.handler=n,this.timeout=i,this.urlParam
1s={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]};function aM(t){if(!t)throw yP()}function cM(t,e){return function(n,i){var o=iM(t,i,e);return aM(null!==o),o}}function uM(t){return function(e,n){var i;return i=401===e.getStatus()?e.getResponseText().includes("Firebase App Check token is invalid")?new mP("unauthorized-app","This app does not have permission to access Firebase Storage on this project."):new mP("unauthenticated","User is not authenticated, please authenticate using Firebase Authentication and try again."):402===e.getStatus()?function(t){return new mP("quota-exceeded","Quota for bucket '"+t+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}(t.bucket):403===e.getStatus()?function(t){return new mP("unauthorized","User does not have permission to access '"+t+"'.")}(t.path):n,i.serverResponse=n.serverResponse,i}}function lM(t){var e=uM(t);return function(n,i){var o=e(n,i);return 404===n.getStatus()&&(o=function(t){return new mP("object-not-found","Object '"+t+"' does not exist.")}(t.path)),o.serverResponse=i.serverResponse,o}}function hM(t,e,n){var i=GP(e.fullServerUrl(),t.host),o=t.maxOperationRetryTime,r=new sM(i,"GET",cM(t,n),o);return r.errorHandler=lM(e),r}function dM(t,e,n,i,o){var r={};r.prefix=e.isRoot?"":e.path+"/",n&&n.length>0&&(r.delimiter=n),i&&(r.pageToken=i),o&&(r.maxResults=o);var s=GP(e.bucketOnlyServerUrl(),t.host),a=t.maxOperationRetryTime,c=new sM(s,"GET",function(t,e){return function(n,i){var o=function(t,e,n){var i=WP(n);return null===i?null:function(t,e,n){var i={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n[rM])for(var o=0,r=n[rM];o<r.length;o++){var s=r[o].replace(/\/$/,""),a=t._makeStorageReference(new UP(e,s));i.prefixes.push(a)}if(n.items)for(var c=0,u=n.items;c<u.length;c++)a=t._makeStorageReference(new UP(e,u[c].name)),i.items.push(a);return i}(t,e,i)}(t,e,i);return aM(null!==o),o}}(t,e.bucket),a);return c.urlParams=r,c.errorHandler=uM(e),c}function pM(t,e,n){var i=Object.assign({},n);return i.fullPath=t.path,i.size=e.size(),i.contentType||(i.contentType=function(t,e){return e&&e.type()||"application/octet-stream"}(0,e)),i}var fM=function(t,e,n,i){this.current=t,this.total=e,this.finalized=!!n,this.metadata=i||null};function gM(t,e){var n=null;try{n=t.getResponseHeader("X-Goog-Upload-Status")}catch(i){aM(!1)}return aM(!!n&&-1!==(e||["active"]).indexOf(n)),n}var mM=function(t,e,n){var i=function(t){return"function"==typeof t}(t)||null!=e||null!=n;if(i)this.next=t,this.error=e,this.complete=n;else{var o=t;this.next=o.next,this.error=o.error,this.complete=o.complete}};function _M(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];Promise.resolve().then(function(){return t.apply(void 0,e)})}}var yM=function(){function t(t,e,n){var i=this;void 0===n&&(n=null),this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=t,this._blob=e,this._metadata=n,this._mappings=nM(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=function(t){i._request=void 0,i._chunkMultiplier=1,t._codeEquals("canceled")?(i._needToFetchStatus=!0,i.completeTransitions_()):(i._error=t,i._transition("error"))},this._metadataErrorHandler=function(t){i._request=void 0,t._codeEquals("canceled")?i.completeTransitions_():(i._error=t,i._transition("error"))},this._promise=new Promise(function(t,e){i._resolve=t,i._reject=e,i._start()}),this._promise.then(null,function(){})}return t.prototype._makeProgressCallback=function(){var t=this,e=this._transferred;return function(n){return t._updateProgress(e+n)}},t.prototype._shouldDoResumable=function(t){return t.size()>262144},t.prototype._start=function(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this._continueUpload():this._oneShotUpload())},t.prototype._resolveToken=function(t){var e=this;Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(function(n){var i=n[0],o=n[1];switch(e._state){case"running":t(i,o);break;case"canceling":e._transition("canceled");break;case"pausing":e._transition("paused")}})},t.prototype._createResumable=function(){var t=this;this._resolveToken(function(e,n){var i=function(t,e,n,i,o){var r=e.bucketOnlyServerUrl(),s=pM(e,i,o),a={name:s.fullPath},c=GP(r,t.host),u={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":""+i.size(),"X-Goog-Upload-Header-Content-Type":s.contentType,"Content-Type":"application/json; charset=utf-8"},l=oM(s,n),h=new sM(c,"POST",function(t){var e;gM(t);try{e=t.getResponseHeader("X-Goog-Upload-URL")}catch(n){aM(!1)}return aM(qP(e)),e},t.maxUploadRetryTime);
1return h.urlParams=a,h.headers=u,h.body=l,h.errorHandler=uM(e),h}(t._ref.storage,t._ref._location,t._mappings,t._blob,t._metadata),o=t._ref.storage._makeRequest(i,e,n);t._request=o,o.getPromise().then(function(e){t._request=void 0,t._uploadUrl=e,t._needToFetchStatus=!1,t.completeTransitions_()},t._errorHandler)})},t.prototype._fetchStatus=function(){var t=this,e=this._uploadUrl;this._resolveToken(function(n,i){var o=function(t,e,n,i){var o=new sM(n,"POST",function(t){var e=gM(t,["active","final"]),n=null;try{n=t.getResponseHeader("X-Goog-Upload-Size-Received")}catch(r){aM(!1)}n||aM(!1);var o=Number(n);return aM(!isNaN(o)),new fM(o,i.size(),"final"===e)},t.maxUploadRetryTime);return o.headers={"X-Goog-Upload-Command":"query"},o.errorHandler=uM(e),o}(t._ref.storage,t._ref._location,e,t._blob),r=t._ref.storage._makeRequest(o,n,i);t._request=r,r.getPromise().then(function(e){t._request=void 0,t._updateProgress(e.current),t._needToFetchStatus=!1,e.finalized&&(t._needToFetchMetadata=!0),t.completeTransitions_()},t._errorHandler)})},t.prototype._continueUpload=function(){var t=this,e=262144*this._chunkMultiplier,n=new fM(this._transferred,this._blob.size()),i=this._uploadUrl;this._resolveToken(function(o,r){var s;try{s=function(t,e,n,i,o,r,s,a){var c=new fM(0,0);if(s?(c.current=s.current,c.total=s.total):(c.current=0,c.total=i.size()),i.size()!==c.total)throw new mP("server-file-wrong-size","Server recorded incorrect upload file size, please retry the upload.");var u=c.total-c.current,l=u;o>0&&(l=Math.min(l,o));var h=c.current,d={"X-Goog-Upload-Command":l===u?"upload, finalize":"upload","X-Goog-Upload-Offset":""+c.current},p=i.slice(h,h+l);if(null===p)throw vP();var f=new sM(n,"POST",function(t,n){var o,s=gM(t,["active","final"]),a=c.current+l,u=i.size();return o="final"===s?cM(e,r)(t,n):null,new fM(a,u,"final"===s,o)},e.maxUploadRetryTime);return f.headers=d,f.body=p.uploadData(),f.progressCallback=a||null,f.errorHandler=uM(t),f}(t._ref._location,t._ref.storage,i,t._blob,e,t._mappings,n,t._makeProgressCallback())}catch(c){return t._error=c,void t._transition("error")}var a=t._ref.storage._makeRequest(s,o,r);t._request=a,a.getPromise().then(function(e){t._increaseMultiplier(),t._request=void 0,t._updateProgress(e.current),e.finalized?(t._metadata=e.metadata,t._transition("success")):t.completeTransitions_()},t._errorHandler)})},t.prototype._increaseMultiplier=function(){262144*this._chunkMultiplier<33554432&&(this._chunkMultiplier*=2)},t.prototype._fetchMetadata=function(){var t=this;this._resolveToken(function(e,n){var i=hM(t._ref.storage,t._ref._location,t._mappings),o=t._ref.storage._makeRequest(i,e,n);t._request=o,o.getPromise().then(function(e){t._request=void 0,t._metadata=e,t._transition("success")},t._metadataErrorHandler)})},t.prototype._oneShotUpload=function(){var t=this;this._resolveToken(function(e,n){var i=function(t,e,n,i,o){var r=e.bucketOnlyServerUrl(),s={"X-Goog-Upload-Protocol":"multipart"},a=function(){for(var t="",e=0;e<2;e++)t+=Math.random().toString().slice(2);return t}();s["Content-Type"]="multipart/related; boundary="+a;var c=pM(e,i,o),u=oM(c,n),l=$P.getBlob("--"+a+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+u+"\r\n--"+a+"\r\nContent-Type: "+c.contentType+"\r\n\r\n",i,"\r\n--"+a+"--");if(null===l)throw vP();var h={name:c.fullPath},d=GP(r,t.host),p=t.maxUploadRetryTime,f=new sM(d,"POST",cM(t,n),p);return f.urlParams=h,f.headers=s,f.body=l.uploadData(),f.errorHandler=uM(e),f}(t._ref.storage,t._ref._location,t._mappings,t._blob,t._metadata),o=t._ref.storage._makeRequest(i,e,n);t._request=o,o.getPromise().then(function(e){t._request=void 0,t._metadata=e,t._updateProgress(t._blob.size()),t._transition("success")},t._errorHandler)})},t.prototype._updateProgress=function(t){var e=this._transferred;this._transferred=t,this._transferred!==e&&this._notifyObservers()},t.prototype._transition=function(t){if(this._state!==t)switch(t){case"canceling":case"pausing":this._state=t,void 0!==this._request&&this._request.cancel();break;case"running":var e="paused"===this._state;this._state=t,e&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=t,this._notifyObservers();break;case"canceled":this._error=bP(),this._state=t,this._notifyObservers()}},t.prototype.completeTransitions_=function(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}},Object.defineProperty(t.prototype,"snapshot",{get:function(){var t=NP(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:t,metadata:this._metadata,task:this,ref:this._ref}}
1,enumerable:!1,configurable:!0}),t.prototype.on=function(t,e,n,i){var o=this,r=new mM(e,n,i);return this._addObserver(r),function(){o._removeObserver(r)}},t.prototype.then=function(t,e){return this._promise.then(t,e)},t.prototype.catch=function(t){return this.then(null,t)},t.prototype._addObserver=function(t){this._observers.push(t),this._notifyObserver(t)},t.prototype._removeObserver=function(t){var e=this._observers.indexOf(t);-1!==e&&this._observers.splice(e,1)},t.prototype._notifyObservers=function(){var t=this;this._finishPromise(),this._observers.slice().forEach(function(e){t._notifyObserver(e)})},t.prototype._finishPromise=function(){if(void 0!==this._resolve){var t=!0;switch(NP(this._state)){case RP.SUCCESS:_M(this._resolve.bind(null,this.snapshot))();break;case RP.CANCELED:case RP.ERROR:_M(this._reject.bind(null,this._error))();break;default:t=!1}t&&(this._resolve=void 0,this._reject=void 0)}},t.prototype._notifyObserver=function(t){switch(NP(this._state)){case RP.RUNNING:case RP.PAUSED:t.next&&_M(t.next.bind(t,this.snapshot))();break;case RP.SUCCESS:t.complete&&_M(t.complete.bind(t))();break;default:t.error&&_M(t.error.bind(t,this._error))()}},t.prototype.resume=function(){var t="paused"===this._state||"pausing"===this._state;return t&&this._transition("running"),t},t.prototype.pause=function(){var t="running"===this._state;return t&&this._transition("pausing"),t},t.prototype.cancel=function(){var t="running"===this._state||"pausing"===this._state;return t&&this._transition("canceling"),t},t}(),bM=function(){function t(t,e){this._service=t,this._location=e instanceof UP?e:UP.makeFromUrl(e,t.host)}return t.prototype.toString=function(){return"gs://"+this._location.bucket+"/"+this._location.path},t.prototype._newRef=function(e,n){return new t(e,n)},Object.defineProperty(t.prototype,"root",{get:function(){var t=new UP(this._location.bucket,"");return this._newRef(this._service,t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bucket",{get:function(){return this._location.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullPath",{get:function(){return this._location.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return KP(this._location.path)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storage",{get:function(){return this._service},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=function(t){if(0===t.length)return null;var e=t.lastIndexOf("/");return-1===e?"":t.slice(0,e)}(this._location.path);if(null===e)return null;var n=new UP(this._location.bucket,e);return new t(this._service,n)},enumerable:!1,configurable:!0}),t.prototype._throwIfRoot=function(t){if(""===this._location.path)throw wP(t)},t}();function vM(t){var e={prefixes:[],items:[]};return CM(t,e).then(function(){return e})}function CM(t,e,n){return(0,Pn.mG)(this,void 0,void 0,function(){var i,o,r;return(0,Pn.Jh)(this,function(s){switch(s.label){case 0:return[4,xM(t,{pageToken:n})];case 1:return i=s.sent(),(o=e.prefixes).push.apply(o,i.prefixes),(r=e.items).push.apply(r,i.items),null==i.nextPageToken?[3,3]:[4,CM(t,e,i.nextPageToken)];case 2:s.sent(),s.label=3;case 3:return[2]}})})}function xM(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n,i;return(0,Pn.Jh)(this,function(o){switch(o.label){case 0:return null!=e&&"number"==typeof e.maxResults&&zP("options.maxResults",1,1e3,e.maxResults),i=dM(t.storage,t._location,"/",(n=e||{}).pageToken,n.maxResults),[4,t.storage.makeRequestWithTokens(i)];case 1:return[2,o.sent().getPromise()]}})})}function wM(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return t._throwIfRoot("getDownloadURL"),e=function(t,e,n){var i=GP(e.fullServerUrl(),t.host),o=t.maxOperationRetryTime,r=new sM(i,"GET",function(t,e){return function(n,i){var o=iM(t,i,e);return aM(null!==o),function(t,e,n){var i=WP(e);if(null===i||!qP(i.downloadTokens))return null;var o=i.downloadTokens;if(0===o.length)return null;var r=encodeURIComponent;return o.split(",").map(function(e){var i=t.fullPath;return GP("/b/"+r(t.bucket)+"/o/"+r(i),n)+BP({alt:"media",token:e})})[0]}(o,i,t.host)}}(t,n),o);return r.errorHandler=lM(e),r}(t.storage,t._location,nM()),[4,t.storage.makeRequestWithTokens(e)];case 1:return[2,n.sent().getPromise().then(function(t){if(null===t)throw new mP("no-download-url","The given file does not have any download URLs.");return t})]}})})}function OM(t,e){var n=function(t,e){var n=e.split("/").filter(function(t){return t.length>0}).join("/");return 0===t.length?n:t+"/"+n}(t._location.path,e),i=new UP(t._location.bucket,n);return new bM(t.storage,i)}function PM(t){return/^[A-Za-z]+:\/\//.test(t)}function MM(t,e){if(t instanceof SM){var n=t;if(null==n._bucket)throw new mP("no-default-bucket","No default bucket found. Did you set the '"+gP+"' property when initializing the app?");var i=new bM(n,n._bucket);return null!=e?MM(i,e):i}return void 0!==e?OM(t,e):t}function TM(t,e){if(e&&PM(e)){if(t instanceof SM)return function(t,e){return new bM(t,e)}(t,e);throw CP("To use ref(service, url), the first argument must be a Storage instance.")}return MM(t,e)}function kM(t,e){var n=null==e?void 0:e[gP];return null==n?null:UP.makeFromBucketSpec(n,t)}var SM=function(){function t(t,e,n,i,o,r){this.app=t,this._authProvider=e,this._appCheckProvider=n,this._pool=i,this._url=o,this._firebaseVersion=r,this._bucket=null,this._host=fP,this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=o?UP.makeFromBucketSpec(o,this._host):kM(this._host,this.app.options)}return Object.defineProperty(t.prototype,"host",{get:function(){return this._host},set:function(t){this._host=t,this._bucket=null!=this._url?UP.makeFromBucketSpec(this._url,t):kM(t,this.app.options)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this._maxUploadRetryTime},set:function(t){zP("time",0,Number.POSITIVE_INFINITY,t),this._maxUploadRetryTime=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOperationRetryTime",{get:function(){return this._maxOperationRetryTime},set:function(t){zP("time",0,Number.POSITIVE_INFINITY,t),this._maxOperationRetryTime=t},enumerable:!1,configurable:!0}),t.prototype._getAuthToken=function(){return(0,Pn.mG)(this,void 0,void 0,function(){var t,e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return this._overrideAuthToken?[2,this._overrideAuthToken]:(t=this._authProvider.getImmediate({optional:!0}))?[4,t.getToken()]:[3,2];case 1:if(null!==(e=n.sent()))return[2,e.accessToken];n.label=2;case 2:return[2,null]}})})},t.prototype._getAppCheckToken=function(){return(0,Pn.mG)(this,void 0,void 0,function(){var t;return(0,Pn.Jh)(this,function(e){switch(e.label){case 0:return(t=this._appCheckProvider.getImmediate({optional:!0}))?[4,t.getToken()]:[3,2];case 1:return[2,e.sent().token];case 2:return[2,null]}})})},t.prototype._delete=function(){return this._deleted||(this._deleted=!0,this._requests.forEach(function(t){return t.cancel()}),this._requests.clear()),Promise.resolve()},t.prototype._makeStorageReference=function(t){return new bM(this,t)},t.prototype._makeRequest=function(t,e,n){var i=this;if(this._deleted)return new ZP(xP());var o=function(t,e,n,i,o,r){var s=BP(t.urlParams),a=t.url+s,c=Object.assign({},t.headers);return function(t,e){e&&(t["X-Firebase-GMPID"]=e)}(c,e),function(t,e){null!==e&&e.length>0&&(t.Authorization="Firebase "+e)}(c,n),function(t,e){t["X-Firebase-Storage-Version"]="webjs/"+(null!=e?e:"AppManager")}(c,r),function(t,e){null!==e&&(t["X-Firebase-AppCheck"]=e)}(c,i),new HP(a,t.method,c,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,o)}(t,this._appId,e,n,this._pool,this._firebaseVersion);return this._requests.add(o),o.getPromise().then(function(){return i._requests.delete(o)},function(){return i._requests.delete(o)}),o},t.prototype.makeRequestWithTokens=function(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return[4,Promise.all([this._getAuthToken(),this._getAppCheckToken()])];case 1:return e=n.sent(),[2,this._makeRequest(t,e[0],e[1])]}})})},t}();function EM(t,e){return TM(t=(0,Mn.m9)(t),e)}var AM=function(){function t(t,e,n){this._delegate=t,this.task=e,this.ref=n}return Object.defineProperty(t.prototype,"bytesTransferred",{get:function(){return this._delegate.bytesTransferred},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._delegate.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalBytes",{get:function(){return this._delegate.totalBytes},enumerable:!1,configurable:!0}),t}(),IM=function(){function t(t,e){this._delegate=t,this._ref=e,this.cancel=this._delegate.cancel.bind(this._delegate),this.catch=this._delegate.catch.bind(this._delegate),this.pause=this._delegate.pause.bind(this._delegate),this.resume=this._delegate.resume.bind(this._delegate)}return Object.defineProperty(t.prototype,"snapshot",{get:function(){return new AM(this._delegate.snapshot,this,this._ref)},enumerable:!1,configurable:!0}),t.prototype.then=function(t,e){var n=this;return this._delegate.then(function(e){if(t)return t(new AM(e,n,n._ref))},e)},t.prototype.on=function(t,e,n,i){var o=this,r=void 0;return e&&(r="function"==typeof e?function(t){return e(new AM(t,o,o._ref))}:{next:e.next?function(t){return e.next(new AM(t,o,o._ref))}:void 0,complete:e.complete||void 0,error:e.error||void 0}),this._delegate.on(t,r,n||void 0,i||void 0)},t}(),RM=function(){function t(t,e){this._delegate=t,this._service=e}return Object.defineProperty(t.prototype,"prefixes",{get:function(){var t=this;return this._delegate.prefixes.map(function(e){return new NM(e,t._service)})}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){var t=this;return this._delegate.items.map(function(e){return new NM(e,t._service)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextPageToken",{get:function(){return this._delegate.nextPageToken||null},enumerable:!1,configurable:!0}),t}(),NM=function(){function t(t,e){this._delegate=t,this.storage=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this._delegate.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bucket",{get:function(){return this._delegate.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullPath",{get:function(){return this._delegate.fullPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return this._delegate.toString()},t.prototype.child=function(e){var n=function(t,e){return OM(t,e)}(this._delegate,e);return new t(n,this.storage)},Object.defineProperty(t.prototype,"root",{get:function(){return new t(this._delegate.root,this.storage)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this._delegate.parent;return null==e?null:new t(e,this.storage)},enumerable:!1,configurable:!0}),t.prototype.put=function(t,e){return this._throwIfRoot("put"),new IM(function(t,e,n){return function(t,e,n){return t._throwIfRoot("uploadBytesResumable"),new yM(t,new $P(e),n)}(t=(0,Mn.m9)(t),e,n)}(this._delegate,t,e),this)},t.prototype.putString=function(t,e,n){void 0===e&&(e=MP.RAW),this._throwIfRoot("putString");var i=kP(e,t),o=(0,Pn.pi)({},n);return null==o.contentType&&null!=i.contentType&&(o.contentType=i.contentType),new IM(new yM(this._delegate,new $P(i.data,!0),o),this)},t.prototype.listAll=function(){var t=this;return function(t){return vM(t=(0,Mn.m9)(t))}(this._delegate).then(function(e){return new RM(e,t.storage)})},t.prototype.list=function(t){var e=this;return function(t,e){return xM(t=(0,Mn.m9)(t),e)}(this._delegate,t||void 0).then(function(t){return new RM(t,e.storage)})},t.prototype.getMetadata=function(){return function(t){return function(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return t._throwIfRoot("getMetadata"),e=hM(t.storage,t._location,nM()),[4,t.storage.makeRequestWithTokens(e)];case 1:return[2,n.sent().getPromise()]}})})}(t=(0,Mn.m9)(t))}(this._delegate)},t.prototype.updateMetadata=function(t){return function(t,e){return function(t,e){return(0,Pn.mG)(this,void 0,void 0,function(){var n;return(0,Pn.Jh)(this,function(i){switch(i.label){case 0:return t._throwIfRoot("updateMetadata"),n=function(t,e,n,i){var o=GP(e.fullServerUrl(),t.host),r=oM(n,i),s=t.maxOperationRetryTime,a=new sM(o,"PATCH",cM(t,i),s);return a.headers={"Content-Type":"application/json; charset=utf-8"},a.body=r,a.errorHandler=lM(e),a}(t.storage,t._location,e,nM()),[4,t.storage.makeRequestWithTokens(n)];case 1:return[2,i.sent().getPromise()]}})})}(t=(0,Mn.m9)(t),e)}(this._delegate,t)},t.prototype.getDownloadURL=function(){return function(t){return wM(t=(0,Mn.m9)(t))}(this._delegate)},t.prototype.delete=function(){return this._throwIfRoot("delete"),function(t){return function(t){return(0,Pn.mG)(this,void 0,void 0,function(){var e;return(0,Pn.Jh)(this,function(n){switch(n.label){case 0:return t._throwIfRoot("deleteObject"),e=function(t,e){var n=GP(e.fullServerUrl(),t.host),i=new sM(n,"DELETE",function(t,e){},t.maxOperationRetryTime);return i.successCodes=[200,204],i.errorHandler=lM(e),i}(t.storage,t._location),[4,t.storage.makeRequestWithTokens(e)];case 1:return[2,n.sent().getPromise()]}})})}(t=(0,Mn.m9)(t))}(this._delegate)},t.prototype._throwIfRoot=function(t){if(""===this._delegate._location.path)throw wP(t)},t}(),LM=function(){function t(t,e){this.app=t,this._delegate=e}return Object.defineProperty(t.prototype,"maxOperationRetryTime",{get:function(){return this._delegate.maxOperationRetryTime},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this._delegate.maxUploadRetryTime}
1,enumerable:!1,configurable:!0}),t.prototype.ref=function(t){if(PM(t))throw CP("ref() expected a child path but got a URL, use refFromURL instead.");return new NM(EM(this._delegate,t),this)},t.prototype.refFromURL=function(t){if(!PM(t))throw CP("refFromURL() expected a full URL but got a child path, use ref() instead.");try{UP.makeFromUrl(t,this._delegate.host)}catch(e){throw CP("refFromUrl() expected a valid full URL but got an invalid one.")}return new NM(EM(this._delegate,t),this)},t.prototype.setMaxUploadRetryTime=function(t){this._delegate.maxUploadRetryTime=t},t.prototype.setMaxOperationRetryTime=function(t){this._delegate.maxOperationRetryTime=t},t.prototype.useEmulator=function(t,e,n){void 0===n&&(n={}),function(t,e,n,i){void 0===i&&(i={}),function(t,e,n,i){void 0===i&&(i={}),t.host="http://"+e+":"+n;var o=i.mockUserToken;o&&(t._overrideAuthToken="string"==typeof o?o:(0,Mn.Sg)(o,t.app.options.projectId))}(t,e,n,i)}(this._delegate,t,e,n)},t}();function DM(t,e){var n=e.instanceIdentifier,i=t.getProvider("app").getImmediate(),o=t.getProvider("auth-internal"),r=t.getProvider("app-check-internal");return new LM(i,new SM(i,o,r,new FP,n,On.Z.SDK_VERSION))}!function(t){var e={TaskState:RP,TaskEvent:IP,StringFormat:MP,Storage:SM,Reference:NM};t.INTERNAL.registerComponent(new Jm.wA("storage",DM,"PUBLIC").setServiceProps(e).setMultipleInstances(!0)),t.registerVersion("@firebase/storage","0.7.1")}(On.Z);var FM=n(5104),UM=n(4531);function ZM(t,e){return e?(0,UM.c)(t,e):new At.y((0,FM.A)(t))}function qM(t,e=un.P){return n=>n.lift(new VM(t,e))}class VM{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new jM(t,this.dueTime,this.scheduler))}}class jM extends Nt.L{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(zM,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function zM(t){t.debouncedNext()}function GM(t){const e=function(t){return new At.y(e=>{const n=t=>e.next(t);n(t.snapshot);const i=t.on("state_changed",n);return t.then(t=>{n(t),e.complete()},i=>{n(t.snapshot),(t=>{e.error(t)})(i)}),function(){i()}}).pipe(qM(0))}(t);return{task:t,then:t.then.bind(t),catch:t.catch.bind(t),pause:t.pause.bind(t),cancel:t.cancel.bind(t),resume:t.resume.bind(t),snapshotChanges:()=>e,percentageChanges:()=>e.pipe((0,Ut.U)(t=>t.bytesTransferred/t.totalBytes*100))}}function BM(t,e,n){return{getDownloadURL:()=>(0,Et.of)(void 0).pipe((0,we.QV)(e.outsideAngular),Te(()=>t.getDownloadURL()),n),getMetadata:()=>(0,Et.of)(void 0).pipe((0,we.QV)(e.outsideAngular),Te(()=>t.getMetadata()),n),delete:()=>(0,Ce.D)(t.delete()),child:i=>BM(t.child(i),e,n),updateMetadata:e=>(0,Ce.D)(t.updateMetadata(e)),put:(e,n)=>GM(t.put(e,n)),putString:(e,n,i)=>GM(t.putString(e,n,i)),listAll:()=>(0,Ce.D)(t.listAll())}}const HM=new i.OlP("angularfire2.storageBucket"),YM=new i.OlP("angularfire2.storage.maxUploadRetryTime"),QM=new i.OlP("angularfire2.storage.maxOperationRetryTime");let JM=(()=>{class t{constructor(t,e,n,i,o,r,s){this.schedulers=new be.HU(o),this.keepUnstableUntilFirst=(0,be.ss)(this.schedulers);const a=(0,be.on)(t,o,e);this.storage=(0,be.sI)(`${a.name}.storage.${n}`,"AngularFireStorage",a,()=>{const t=o.runOutsideAngular(()=>a.storage(n||void 0));return r&&t.setMaxUploadRetryTime(r),s&&t.setMaxOperationRetryTime(s),t},[r,s])}ref(t){return BM(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst)}refFromURL(t){return BM(this.storage.refFromURL(t),this.schedulers,this.keepUnstableUntilFirst)}upload(t,e,n){return BM(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst).put(e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(be.Dh),i.LFG(be.xv,8),i.LFG(HM,8),i.LFG(i.Lbi),i.LFG(i.R0b),i.LFG(YM,8),i.LFG(QM,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(be.Dh),i.LFG(be.xv,8),i.LFG(HM,8),i.LFG(i.Lbi),i.LFG(i.R0b),i.LFG(YM,8),i.LFG(QM,8))},token:t,providedIn:"any"}),t})(),$M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})(),WM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[JM],imports:[$M]}),t})(),KM=(()=>{class t{constructor(t){this._afStorage=t,this.createRandomString=()=>Math.random().toString(36).substring(7)}get downloadURL(){return this.fileRef.getDownloadURL()}deleteFileFromURL(t){return(0,Ce.D)(this._afStorage.storage.refFromURL(t).delete())}uploadFile(t,e,n,i=!1){const o=t.target.files[0],r=o.name.split(".").pop()||null,s=i?n?`${n}-${this.createRandomString()}.${r}`:`${o.name}-${this.createRandomString()}.${r}`:n?`${n}.${r}`:o.name;console.log("Name image is: ",s);const a=`${e}/${s}`;return this.task=this._afStorage.upload(a,o),this.fileRef=this._afStorage.ref(a),this.uploadPercent$=this.task.percentageChanges(),this.task.snapshotChanges()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(JM))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var XM=wn.Z.firestore.FieldValue;class tT{static Parse(t){let e;switch(t){case"auth/wrong-password":e="Invalid login credentials";break;case"auth/network-request-failed":e="Please check your internet connection";break;case"auth/too-many-requests":e="We have detected too many requests from your device. Take a break please!";break;case"auth/user-disabled":e="Your account has been disabled. Please contact the system administrator.";break;case"auth/requires-recent-login":e="Please login again and try again!";break;case"auth/email-already-exists":e="The email address is already in use by an existing user";break;case"auth/email-already-in-use":e="The email address is already in use by another account";break;case"auth/user-not-found":e="There is no account associated with this email address. Please check your email address or sign up for an account";break;case"auth/phone-number-already-exists":e="The phone number is already in use by an existing user";break;case"auth/invalid-phone-number":e="The phone number is not a valid phone number!";break;case"auth/invalid-email":e="The email address is not a valid email address!";break;case"auth/invalid-action-code":e="This link is no longer valid";break;case"auth/cannot-delete-own-user-account":e="You cannot delete your own user account";break;default:e="Oops! Something went wrong. Try again later"}return e}}let eT=(()=>{class t{constructor(t,e,n,i,o,r){this._afs=t,this._afAuth=e,this._http=n,this.storage=i,this.router=o,this.appState=r,this.basePath="users",this.profilePictureUrl=void 0,this.checkId=!0,this.authUser=this._afAuth.user.pipe(De(1)),this.user$=this.currentUser.pipe(De(1)),this.user$.subscribe(t=>this.user=t)}get currentUser(){return this.authUser.pipe(Te(t=>t?this.getUserByID(t.uid):(0,Et.of)(null)))}get authenticated(){return this.authUser.pipe((0,Ut.U)(t=>!!t))}get fullName(){var t,e,n;return(null===(t=this.user)||void 0===t?void 0:t.first_name)&&(null===(e=this.user)||void 0===e?void 0:e.last_name)?`${this.user.first_name} ${this.user.last_name[0]}`:(null===(n=this.user)||void 0===n?void 0:n.first_name)?this.user.first_name:null}get profileImage(){var t;return(null===(t=this.user)||void 0===t?void 0:t.profile_image_url)?this.user.profile_image_url:"assets/random/user-avatar.png"}get emailVerified(){return this.authUser.pipe((0,Ut.U)(t=>!!(null==t?void 0:t.emailVerified)))}get checkThinkificId(){var t;if(null===(t=this.user)||void 0===t?void 0:t.thinkific_uid)return(0,Et.of)(!0)}get goodPasswordStrengthRegex(){return new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])")}getUserByID(t){return this._afs.collection(this.basePath).doc(t).valueChanges()}currentUserDoc(){return this._afs.collection(this.basePath).doc(this.user.uid)}getOrganisations(){return this._afs.collection("organisations",t=>t.where("org_name",">","").orderBy("org_name","asc")).get()}getProfessions(){return this._afs.collection("professions",t=>t.where("p_name",">","").orderBy("p_name","asc")).get()}getPasswordValidationError(t){return t.errors&&t.hasError("pattern")?"\n        At least 8 characters including at least a lower-case letter,\n        an upper-case letter and a number.\n         ":null}createUser(t,e){return ZM(this._afAuth.createUserWithEmailAndPassword(t,e)).pipe(qe(1))}getIdTokenFromUserCredentials(t){return ZM(t.user.getIdToken(!0))}signup(t){let e;return this.createUser(t.email,t.password).pipe(Te(t=>(e=t.user.uid,this.getIdTokenFromUserCredentials(t).pipe(qe(1)))),Te(e=>(delete t.password,this._http.post("https://us-central1-medicsacademy-sso.cloudfunctions.net/auth-signup",t,{headers:new Vt({Authorization:`Bearer ${e}`})}))))}signinClient(t){return(0,Ce.D)(this._afAuth.signInWithEmailAndPassword(t.email,t.password))}signinClientPersistence(t,e){return(0,Ce.D)(this._afAuth.setPersistence(e?wn.Z.auth.Auth.Persistence.LOCAL:wn.Z.auth.Auth.Persistence.SESSION).then(()=>this._afAuth.signInWithEmailAndPassword(t.email,t.password)))}updateLastLoginTime(){return this.getHeaders().pipe(qe(1),Te(t=>this._http.post("https://us-central1-medicsacademy-sso.cloudfunctions.net/auth-lastLogin",{},{headers:t})))}getAuthTokenFromServer(t){return this.getHeaders().pipe(qe(1),Te(e=>
1this._http.post(cP+"/auth-customToken",{redirect_url:t},{headers:e})))}trackEmailChange(t,e){return this.getHeaders().pipe(qe(1),Te(n=>this._http.put(cP+"/auth-profile-changeEmailTrack",{oldEmail:t,newEmail:e},{headers:n})))}checkEmailVerification(t){return this.getHeaders().pipe(qe(1),Te(e=>this._http.post(cP+"/auth-verifyEmail",{token:t},{headers:e})))}signinSchool(){return this.getHeaders().pipe(qe(1),Te(t=>this._http.get("https://us-central1-medicsacademy-sso.cloudfunctions.net/auth-signinSchool",{headers:t})),XC(t=>"auth/email-need-verification"===(this.appState.loading=!1,t.error.code)?(this.router.navigate(["auth","verify"]),(0,pP._)(t.error.message)):(0,pP._)(jC)))}signEnroll(t,e){return this.getHeaders().pipe(qe(1),Te(n=>this._http.post("https://us-central1-medicsacademy-sso.cloudfunctions.net/auth-signinSchool",{product_id:t,price_id:e,checkout:!0},{headers:n})),XC(t=>(0,pP._)(jC)))}signForFreeTrial(t,e){return this.getHeaders().pipe(qe(1),Te(n=>this._http.post("https://us-central1-medicsacademy-sso.cloudfunctions.net/auth-signinSchool",{product_id:t,freeTrial:e},{headers:n})),XC(t=>(0,pP._)(jC)))}getCardDetails(t){const e="https://us-central1-medics-academy-internal-db.cloudfunctions.net/api/productable?product_id="+t,n=new Vt({"ma-auth-api_key":"09ce9418e267c506fe4a03d79a06cf97063324a7"});return this._http.get(e,{headers:n})}checkUserEmail(t){return this.getHeaders().pipe(Te(e=>this._http.put("https://us-central1-medicsacademy-sso.cloudfunctions.net/auth-recoverEmail",{email:t},{headers:e})))}sendPasswordResetEmail(t){return(0,Ce.D)(this._afAuth.sendPasswordResetEmail(t))}sendVerificationMail(){return this.getHeaders().pipe(Te(t=>this._http.post("https://us-central1-medicsacademy-sso.cloudfunctions.net/auth-sendEmailVerification",{},{headers:t})))}logout(){return(0,Ce.D)(this._afAuth.signOut().then(()=>{localStorage.setItem("logged_out","true")}))}updateUser(t){return this.getHeaders().pipe(qe(1),Te(e=>this._http.put(`${cP}/auth-profile-update`,t,{headers:e})))}addCoupon(t){return this.getHeaders().pipe(Te(e=>this._http.post(`${cP}/auth-coupons`,t,{headers:e})))}updateUserProfileImage(t){return this.storage.uploadFile(t,`users/${this.user.uid}`,"avatar").pipe(rx(),Te(()=>this.storage.downloadURL),(0,SC.b)(()=>console.log("Upload is firing!")))}updateUserDoc(t){return(0,Ce.D)(this.currentUserDoc().get()).pipe(Lt(t=>t.exists),Te(e=>(0,Ce.D)(this.currentUserDoc().set(t,{merge:!0}))))}updateEmail(t){const e=function(t){let e="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=n.length;for(let o=0;o<40;o++)e+=n.charAt(Math.floor(Math.random()*i));return console.log("update email",e),e}();return this.authUser.pipe(qe(1),Te(e=>e.updateEmail(t)),Te(()=>this.updateUser({email:t,has_changed_email:!0,email_verification_token:e})))}reload(){return this.authUser.pipe(qe(1),Te(t=>t.reload()))}updateUserPassword(t){return this.getHeaders().pipe(Te(e=>this._http.put(`${cP}/auth-profile-password`,{password:t},{headers:e})))}deleteAccount(){return this.getHeaders().pipe(qe(1),Te(t=>this._http.delete(`${cP}/auth-deleteAccount`,{headers:t})))}deleteAuthUser(){return this.getHeaders().pipe(qe(1),Te(t=>this._http.delete(`${cP}/auth-deleteAuthUser`,{headers:t})))}recoverAccount(t){return this.getHeaders().pipe(qe(1),Te(e=>this._http.put(`${cP}/auth-recoverAccount`,{token:t},{headers:e})))}reauthenticateWithCredential(t,e){const n=wn.Z.auth.EmailAuthProvider.credential(e||wn.Z.auth().currentUser.email,t);return this.authUser.pipe(qe(1),Te(t=>t.reauthenticateWithCredential(n)))}getUpdatePayload(t,e,n,i){return console.log("getUpdatedPayload: ",{updateEmail:e,updateFirstName:n,updateLastName:i}),e&&(t.secondary_emails=[this.couponUserData.email],this.couponUserData.uid&&(t.potential_duplicate_of=XM.arrayUnion(this.couponUserData.uid))),n&&(t.secondary_first_names=[this.couponUserData.first_name]),i&&(t.secondary_last_names=[this.couponUserData.last_name]),t}handleAuthError(t,e,n){const i={};if(t&&(i.secondary_emails=XM.arrayRemove(this.couponUserData.email),this.couponUserData.uid&&(i.potential_duplicate_of=XM.arrayRemove(this.couponUserData.uid))),e&&(i.secondary_first_names=XM.arrayRemove(this.couponUserData.first_name)),n&&(i.secondary_last_names=XM.arrayRemove(this.couponUserData.last_name)),t||e||n)return this.updateUserDoc(i).pipe(qe(1))}getUserByEmail(t){return this._afs.collection(this.basePath,e=>e.where("email","==",t)).valueChanges()}getHeaders(){return this._afAuth.idToken.pipe(Te(t=>(0,Et.of)(new Vt({Authorization:`Bearer ${t}`}))))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(h_),i.LFG(an),i.LFG(re),i.LFG(KM),i.LFG(FO),i.LFG(BC))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function nT(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;
1a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}function iT(t,e){return function(n,i){e(n,i,t)}}const oT=["toast-component",""];function rT(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",5),i.NdJ("click",function(){return i.CHM(t),i.oxw().remove()}),i.TgZ(1,"span",6),i._uU(2,"\xd7"),i.qZA(),i.qZA()}}function sT(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=i.oxw(2);i.xp6(1),i.hij("[",t.duplicatesCount+1,"]")}}function aT(t,e){if(1&t&&(i.TgZ(0,"div"),i._uU(1),i.YNc(2,sT,2,1,"ng-container",4),i.qZA()),2&t){const t=i.oxw();i.Tol(t.options.titleClass),i.uIk("aria-label",t.title),i.xp6(1),i.hij(" ",t.title," "),i.xp6(1),i.Q6J("ngIf",t.duplicatesCount)}}function cT(t,e){if(1&t&&i._UZ(0,"div",7),2&t){const t=i.oxw();i.Tol(t.options.messageClass),i.Q6J("innerHTML",t.message,i.oJD)}}function uT(t,e){if(1&t&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.Tol(t.options.messageClass),i.uIk("aria-label",t.message),i.xp6(1),i.hij(" ",t.message," ")}}function lT(t,e){if(1&t&&(i.TgZ(0,"div"),i._UZ(1,"div",9),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Udp("width",t.width+"%")}}function hT(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",5),i.NdJ("click",function(){return i.CHM(t),i.oxw().remove()}),i.TgZ(1,"span",6),i._uU(2,"\xd7"),i.qZA(),i.qZA()}}function dT(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=i.oxw(2);i.xp6(1),i.hij("[",t.duplicatesCount+1,"]")}}function pT(t,e){if(1&t&&(i.TgZ(0,"div"),i._uU(1),i.YNc(2,dT,2,1,"ng-container",4),i.qZA()),2&t){const t=i.oxw();i.Tol(t.options.titleClass),i.uIk("aria-label",t.title),i.xp6(1),i.hij(" ",t.title," "),i.xp6(1),i.Q6J("ngIf",t.duplicatesCount)}}function fT(t,e){if(1&t&&i._UZ(0,"div",7),2&t){const t=i.oxw();i.Tol(t.options.messageClass),i.Q6J("innerHTML",t.message,i.oJD)}}function gT(t,e){if(1&t&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.Tol(t.options.messageClass),i.uIk("aria-label",t.message),i.xp6(1),i.hij(" ",t.message," ")}}function mT(t,e){if(1&t&&(i.TgZ(0,"div"),i._UZ(1,"div",9),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Udp("width",t.width+"%")}}class _T{constructor(t,e,n,i,o,r){this.toastId=t,this.config=e,this.message=n,this.title=i,this.toastType=o,this.toastRef=r,this._onTap=new ve.xQ,this._onAction=new ve.xQ,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const yT={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},bT=new i.OlP("ToastConfig");class vT{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class CT extends class{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,n){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=n}attachComponentPortal(t,e){const n=this._componentFactoryResolver.resolveComponentFactory(t.component);let i;return i=n.create(t.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let xT=(()=>{let t=class{constructor(t){this._document=t}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),this._document.body.appendChild(t),this._containerElement=t}};return t.\u0275fac=function(e){return new(e||t)(i.LFG(s))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(s))},token:t,providedIn:"root"}),t=nT([iT(0,(0,i.tBr)(s))],t),t})();class wT{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let OT=(()=>{let t=class{constructor(t,e,n,i){this._overlayContainer=t,this._componentFactoryResolver=e,this._appRef=n,this._document=i,this._paneElements=new Map}create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){const n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new CT(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new wT(this._createPortalHost(t))}};return t.\u0275fac=function(e){return new(e||t)(i.LFG(xT),i.LFG(i._Vd),i.LFG(i.z2F),i.LFG(s))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(xT),(0,i.LFG)(i._Vd),(0,i.LFG)(i.z2F),(0,i.LFG)(s))},token:t,providedIn:"root"}),t=nT([iT(3,(0,i.tBr)(s))],t),t})();class PT{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new ve.xQ,this._activate=new ve.xQ,this._manualClose=new ve.xQ,this._resetTimeout=new ve.xQ,this._countDuplicate=new ve.xQ}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}
1onDuplicate(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class MT{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,n){return t===_T?this._toastPackage:this._parentInjector.get(t,e,n)}}let TT=(()=>{let t=class{constructor(t,e,n,i,o){this.overlay=e,this._injector=n,this.sanitizer=i,this.ngZone=o,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},t.default.iconClasses),t.config.iconClasses))}show(t,e,n={},i=""){return this._preBuildNotification(i,t,e,this.applyConfig(n))}success(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,e,this.applyConfig(n))}error(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,e,this.applyConfig(n))}info(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,e,this.applyConfig(n))}warning(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,e,this.applyConfig(n))}clear(t){for(const e of this.toasts)if(void 0!==t){if(e.toastId===t)return void e.toastRef.manualClose()}else e.toastRef.manualClose()}remove(t){const e=this._findToast(t);if(!e||(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const t=this.toasts[this.currentlyActive].toastRef;t.isInactive()||(this.currentlyActive=this.currentlyActive+1,t.activate())}return!0}findDuplicate(t,e,n){for(const i of this.toasts)if(i.message===t)return i.toastRef.onDuplicate(e,n),i;return null}applyConfig(t={}){return Object.assign(Object.assign({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,n,i){return i.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,n,i)):this._buildNotification(t,e,n,i)}_buildNotification(t,e,n,o){if(!o.toastComponent)throw new Error("toastComponent required");const r=this.findDuplicate(e,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if(e&&this.toastrConfig.preventDuplicates&&null!==r)return r;this.previousToastMessage=e;let s=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(s=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const a=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let c=e;e&&o.enableHtml&&(c=this.sanitizer.sanitize(i.q3G.HTML,e));const u=new PT(a),l=new _T(this.index,o,c,n,t,u),h=new MT(l,this._injector),d=new vT(o.toastComponent,h),p=a.attach(d,this.toastrConfig.newestOnTop);u.componentInstance=p.instance;const f={toastId:this.index,message:e||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:l.onTap(),onAction:l.onAction(),portal:p};return s||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{f.toastRef.activate()})),this.toasts.push(f),f}};return t.\u0275fac=function(e){return new(e||t)(i.LFG(bT),i.LFG(OT),i.LFG(i.zs3),i.LFG(Pt),i.LFG(i.R0b))},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t((0,i.LFG)(bT),(0,i.LFG)(OT),(0,i.LFG)(i.gxx),(0,i.LFG)(Pt),(0,i.LFG)(i.R0b))},token:t,providedIn:"root"}),t=nT([iT(0,(0,i.tBr)(bT))],t),t})(),kT=(()=>{let t=class{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0
1),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}};return t.\u0275fac=function(e){return new(e||t)(i.Y36(TT),i.Y36(_T),i.Y36(i.R0b))},t.\u0275cmp=i.Xpm({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(i.d8E("@flyInOut",e.state),i.Tol(e.toastClasses),i.Udp("display",e.displayStyle))},attrs:oT,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(i.YNc(0,rT,3,0,"button",0),i.YNc(1,aT,3,5,"div",1),i.YNc(2,cT,1,3,"div",2),i.YNc(3,uT,2,4,"div",3),i.YNc(4,lT,2,2,"div",4)),2&t&&(i.Q6J("ngIf",e.options.closeButton),i.xp6(1),i.Q6J("ngIf",e.title),i.xp6(1),i.Q6J("ngIf",e.message&&e.options.enableHtml),i.xp6(1),i.Q6J("ngIf",e.message&&!e.options.enableHtml),i.xp6(1),i.Q6J("ngIf",e.options.progressBar))},directives:[R],encapsulation:2,data:{animation:[g_("flyInOut",[b_("inactive",y_({opacity:0})),b_("active",y_({opacity:1})),b_("removed",y_({opacity:0})),C_("inactive => active",m_("{{ easeTime }}ms {{ easing }}")),C_("active => removed",m_("{{ easeTime }}ms {{ easing }}"))])]}}),nT([(0,i.pfw)("class")],t.prototype,"toastClasses",void 0),nT([(0,i.pfw)("@flyInOut")],t.prototype,"state",void 0),nT([(0,i.pfw)("style.display")],t.prototype,"displayStyle",null),nT([(0,i.L6J)("click")],t.prototype,"tapToast",null),nT([(0,i.L6J)("mouseenter")],t.prototype,"stickAround",null),nT([(0,i.L6J)("mouseleave")],t.prototype,"delayedHideToast",null),t})();var ST;const ET=Object.assign(Object.assign({},yT),{toastComponent:kT});let AT=ST=class{static forRoot(t={}){return{ngModule:ST,providers:[{provide:bT,useValue:{default:ET,config:t}}]}}};var IT;AT.\u0275fac=function(t){return new(t||AT)},AT.\u0275mod=i.oAB({type:AT}),AT.\u0275inj=i.cJS({imports:[[B]]});let RT=(()=>{let t=class{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.appRef=n,this.width=-1,this.toastClasses="",this.state="inactive",this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0
1),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}};return t.\u0275fac=function(e){return new(e||t)(i.Y36(TT),i.Y36(_T),i.Y36(i.z2F))},t.\u0275cmp=i.Xpm({type:t,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(i.Tol(e.toastClasses),i.Udp("display",e.displayStyle))},attrs:oT,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(i.YNc(0,hT,3,0,"button",0),i.YNc(1,pT,3,5,"div",1),i.YNc(2,fT,1,3,"div",2),i.YNc(3,gT,2,4,"div",3),i.YNc(4,mT,2,2,"div",4)),2&t&&(i.Q6J("ngIf",e.options.closeButton),i.xp6(1),i.Q6J("ngIf",e.title),i.xp6(1),i.Q6J("ngIf",e.message&&e.options.enableHtml),i.xp6(1),i.Q6J("ngIf",e.message&&!e.options.enableHtml),i.xp6(1),i.Q6J("ngIf",e.options.progressBar))},directives:[R],encapsulation:2}),nT([(0,i.pfw)("class")],t.prototype,"toastClasses",void 0),nT([(0,i.pfw)("style.display")],t.prototype,"displayStyle",null),nT([(0,i.L6J)("click")],t.prototype,"tapToast",null),nT([(0,i.L6J)("mouseenter")],t.prototype,"stickAround",null),nT([(0,i.L6J)("mouseleave")],t.prototype,"delayedHideToast",null),t})();const NT=Object.assign(Object.assign({},yT),{toastComponent:RT});let LT,DT=IT=class{static forRoot(t={}){return{ngModule:IT,providers:[{provide:bT,useValue:{default:NT,config:t}}]}}};function FT(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function UT(t){return e=>e.lift(new ZT(t))}DT.\u0275fac=function(t){return new(t||DT)},DT.\u0275mod=i.oAB({type:DT}),DT.\u0275inj=i.cJS({imports:[[B]]});class ZT{constructor(t){this.total=t}call(t,e){return e.subscribe(new qT(t,this.total))}}class qT extends Nt.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function VT(t){return null!=t&&"false"!=`${t}`}function jT(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function zT(t){return Array.isArray(t)?t:[t]}function GT(t){return null==t?"":"string"==typeof t?t:`${t}px`}function BT(t){return t instanceof i.SBq?t.nativeElement:t}try{LT="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ui){LT=!1}let HT,YT=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?H(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!LT)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(i.Lbi))},token:t,providedIn:"root"}),t})(),QT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const JT=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function $T(){if(HT)return HT;if("object"!=typeof document||!document)return HT=new Set(JT),HT;let t=document.createElement("input");return HT=new Set(JT.filter(e=>(t.setAttribute("type",e),t.type===e))),HT}let WT,KT,XT;function tk(t){return function(){if(null==WT&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>WT=!0}))}finally{WT=WT||!1}return WT}()?t:!!t.capture}function ek(){if(null==KT){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return KT=!1,KT;if("scrollBehavior"in document.documentElement.style)KT=!0;else{const t=Element.prototype.scrollTo;KT=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return KT}function nk(t){if(function(){if(null==XT){const t="undefined"!=typeof document?document.head:null;XT=!(!t||!t.createShadowRoot&&!t.attachShadow)}return XT}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ik(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function ok(t){return t.composedPath?t.composedPath()[0]:t.target}function rk(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}let sk=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),ak=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}
1ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=BT(t);return new At.y(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new ve.xQ,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(sk))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(sk))},token:t,providedIn:"root"}),t})(),ck=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=VT(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=jT(t),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(qM(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ak),i.Y36(i.SBq),i.Y36(i.R0b))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),uk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[sk]}),t})();function lk(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const hk="cdk-describedby-message-container",dk="cdk-describedby-message",pk="cdk-describedby-host";let fk=0;const gk=new Map;let mk=null,_k=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=yk(e,n);"string"!=typeof e?(bk(e),gk.set(i,{messageElement:e,referenceCount:0})):gk.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const i=yk(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=gk.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}mk&&0===mk.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${pk}]`);for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute(pk);mk&&this._deleteMessagesContainer(),gk.clear()}_createMessageElement(t,e){const n=this._document.createElement("div");bk(n),n.textContent=t,e&&n.setAttribute("role",e),this._createMessagesContainer(),mk.appendChild(n),gk.set(yk(t,e),{messageElement:n,referenceCount:0})}_deleteMessageElement(t){const e=gk.get(t),n=e&&e.messageElement;mk&&n&&mk.removeChild(n),gk.delete(t)}_createMessagesContainer(){if(!mk){const t=this._document.getElementById(hk);t&&t.parentNode&&t.parentNode.removeChild(t),mk=this._document.createElement("div"),mk.id=hk,mk.style.visibility="hidden",mk.classList.add("cdk-visually-hidden"),this._document.body.appendChild(mk)}}_deleteMessagesContainer(){mk&&mk.parentNode&&(mk.parentNode.removeChild(mk),mk=null)}_removeCdkDescribedByReferenceIds(t){const e=lk(t,"aria-describedby").filter(t=>0!=t.indexOf(dk));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=gk.get(e);(function(t,e,n){const i=lk(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))})(t,"aria-describedby",n.messageElement.id),t.setAttribute(pk,""),n.referenceCount++}_removeMessageReference(t,e){const n=gk.get(e);n.referenceCount--,function(t,e,n){const i=lk(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(pk)}_isElementDescribedByMessage(t,e){const n=lk(t,"aria-describedby"),i=gk.get(e),o=i&&i.messageElement.id;return!!o&&-1!=n.indexOf(o)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(s))},token:t,providedIn:"root"}),t})();function yk(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function bk(t){t.id||(t.id=`${dk}-${fk++}`)}class vk extends class{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ve.xQ,this._typeaheadSub
1scription=Ae.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new ve.xQ,this.change=new ve.xQ,t instanceof i.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,SC.b)(t=>this._pressedLetters.push(t)),qM(t),Lt(()=>this._pressedLetters.length>0),(0,Ut.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n<e.length+1;n++){const i=(this._activeItemIndex+n)%e.length,o=e[i];if(!this._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(i);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(e=>!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||FT(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}let Ck=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}(function(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(t));if(e&&(-1===wk(e)||!this.isVisible(e)))return!1;let n=t.nodeName.toLowerCase(),i=wk(t);return t.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIRE
1FOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||xk(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(YT))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(YT))},token:t,providedIn:"root"}),t})();function xk(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function wk(t){if(!xk(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Ok{constructor(t,e,n,i,o=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n<e.length;n++)e[n].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]):e[n].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){const n=this._getFirstTabbableElement(e);return null==n||n.focus(t),!!n}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=0;n<e.length;n++){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=e.length-1;n>=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(qe(1)).subscribe(t)}}let Pk=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new Ok(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ck),i.LFG(i.R0b),i.LFG(s))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(Ck),i.LFG(i.R0b),i.LFG(s))},token:t,providedIn:"root"}),t})();function Mk(t){return 0===t.offsetX&&0===t.offsetY}function Tk(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&&Element;
1const kk=new i.OlP("cdk-input-modality-detector-options"),Sk={ignoreKeys:[18,17,224,91,16]},Ek=tk({passive:!0,capture:!0});let Ak=(()=>{class t{constructor(t,e,n,i){this._platform=t,this._mostRecentTarget=null,this._modality=new GC(null),this._lastTouchMs=0,this._onKeydown=t=>{var e,n;(null===(n=null===(e=this._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(e=>e===t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=ok(t))},this._onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Mk(t)?"keyboard":"mouse"),this._mostRecentTarget=ok(t))},this._onTouchstart=t=>{Tk(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ok(t))},this._options=Object.assign(Object.assign({},Sk),i),this.modalityDetected=this._modality.pipe(UT(1)),this.modalityChanged=this.modalityDetected.pipe(vn()),t.isBrowser&&e.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,Ek),n.addEventListener("mousedown",this._onMousedown,Ek),n.addEventListener("touchstart",this._onTouchstart,Ek)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ek),document.removeEventListener("mousedown",this._onMousedown,Ek),document.removeEventListener("touchstart",this._onTouchstart,Ek))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(YT),i.LFG(i.R0b),i.LFG(s),i.LFG(kk,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(YT),i.LFG(i.R0b),i.LFG(s),i.LFG(kk,8))},token:t,providedIn:"root"}),t})();const Ik=new i.OlP("cdk-focus-monitor-default-options"),Rk=tk({passive:!0,capture:!0});let Nk=(()=>{class t{constructor(t,e,n,i,o){this._ngZone=t,this._platform=e,this._inputModalityDetector=n,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ve.xQ,this._rootNodeFocusAndBlurListener=t=>{const e=ok(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=i,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(t,e=!1){const n=BT(t);if(!this._platform.isBrowser||1!==n.nodeType)return(0,Et.of)(null);const i=nk(n)||this._getDocument(),o=this._elementInfo.get(n);if(o)return e&&(o.checkChildren=!0),o.subject;const r={checkChildren:e,subject:new ve.xQ,rootNode:i};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=BT(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=BT(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEac
1h(([t,n])=>this._originChanged(t,e,n)):(this._setOrigin(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOrigin(t,e=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&e,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,e){const n=this._elementInfo.get(e),i=ok(t);!n||!n.checkChildren&&e!==i||this._originChanged(e,this._getFocusOrigin(i),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Rk),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Rk)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(EC(this._stopInputModalityDetector)).subscribe(t=>{this._setOrigin(t,!0)}))}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Rk),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Rk),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.R0b),i.LFG(YT),i.LFG(Ak),i.LFG(s,8),i.LFG(Ik,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(i.R0b),i.LFG(YT),i.LFG(Ak),i.LFG(s,8),i.LFG(Ik,8))},token:t,providedIn:"root"}),t})();const Lk="cdk-high-contrast-black-on-white",Dk="cdk-high-contrast-white-on-black",Fk="cdk-high-contrast-active";let Uk=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Fk),t.remove(Lk),t.remove(Dk),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(Fk),t.add(Lk)):2===e&&(t.add(Fk),t.add(Dk))}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(YT),i.LFG(s))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(YT),i.LFG(s))},token:t,providedIn:"root"}),t})(),Zk=(()=>
1{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Uk))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[QT,uk]]}),t})();const qk=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,i.f3M)(s)}});let Vk=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.vpe,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(qk,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(qk,8))},token:t,providedIn:"root"}),t})(),jk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const zk=new i.GfV("12.2.13");function Gk(t,e){if(1&t&&i._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=i.oxw();i.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function Bk(t,e){if(1&t&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij("(",t.group.label,")")}}const Hk=["*"],Yk=new i.GfV("12.2.13"),Qk=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Jk,$k=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!(!(0,i.X6Q)()||rk())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&Yk.full!==zk.full&&console.warn("The Angular Material version ("+Yk.full+") does not match the Angular CDK version ("+zk.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Uk),i.LFG(Qk,8),i.LFG(s))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[jk],jk]}),t})();function Wk(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=VT(t)}}}function Kk(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function Xk(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=VT(t)}}}function tS(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?jT(t):this.defaultTabIndex}}}function eS(t){return class extends t{constructor(...t){super(...t),this.stateChanges=new ve.xQ,this.errorState=!1}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{Jk="undefined"!=typeof Intl}catch(ui){Jk=!1}let nS=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class iS{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const oS={enterDuration:225,exitDuration:150},rS=tk({passive:!0}),sS=["mousedown","touchstart"],aS=["mouseup","mouseleave","touchend","touchcancel"];class cS{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=BT(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},oS),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),o=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+o*o)}(t,e,i),s=t-i.left,a=e-i.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-r+"px",u.style.top=a-r+"px",u.style.height=2*r+"px",u.style.width=2*r+"px",null!=n.color&&(u.style.backgroundColor=n.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function(t){window.getComputedStyle(t).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const l=new iS(this,u,n);return l.state=0,this._activeRipples.add(l),n.persistent||(this._mostRecentTransientRipple=l),this._runTimeoutOutsideZone(()=>{const t=l===this._mostRecentTransientRipple;l.state=1,!n.persistent&&(!t||!this._isPointerDown)&&l.fadeOut()},c),l}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},oS),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}
1fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=BT(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(sS))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(aS),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Mk(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!n&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!Tk(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,rS)})})}_removeTriggerEvents(){this._triggerElement&&(sS.forEach(t=>{this._triggerElement.removeEventListener(t,this,rS)}),this._pointerUpEventsRegistered&&aS.forEach(t=>{this._triggerElement.removeEventListener(t,this,rS)}))}}const uS=new i.OlP("mat-ripple-global-options");let lS=(()=>{class t{constructor(t,e,n,i,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new cS(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(YT),i.Y36(uS,8),i.Y36(Wb,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),hS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[$k,QT],$k]}),t})(),dS=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Wb,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),pS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[$k]]}),t})();const fS=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),gS=Wk(class{});let mS=0,_S=(()=>{class t extends gS{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+mS++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(fS,8))},t.\u0275dir=i.lG2({type:t,inputs:{label:"label"},features:[i.qOj]}),t})();const yS=new i.OlP("MatOptgroup");let bS=0;class vS{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let CS=(()=>{class t{constructor(t,e,n,o){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+bS++,this.onSelectionChange=new i.vpe,this._stateChanges=new ve.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=VT(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(13===t.keyCode||32===t.keyCode)&&!FT(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}
1_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new vS(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(_S))},t.\u0275dir=i.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),xS=(()=>{class t extends CS{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(fS,8),i.Y36(yS,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(i.Ikx("id",e.id),i.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:Hk,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,Gk,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,Bk,2,1,"span",2),i._UZ(4,"div",3)),2&t&&(i.Q6J("ngIf",e.multiple),i.xp6(3),i.Q6J("ngIf",e.group&&e.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[R,lS,dS],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();let wS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[hS,B,$k,pS]]}),t})();var OS=n(8819);const PS=["*"];function MS(t){return Error(`Unable to find icon with the name "${t}"`)}function TS(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function kS(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class SS{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let ES=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClasse
1sByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new SS(n,null,i))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,n,o){const r=this._sanitizer.sanitize(i.q3G.HTML,n);if(!r)throw kS(n);return this._addSvgIconConfig(t,e,new SS("",r,o))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new SS(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const o=this._sanitizer.sanitize(i.q3G.HTML,e);if(!o)throw kS(e);return this._addSvgIconSetConfig(t,new SS("",o,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,t);if(!e)throw TS(t);const n=this._cachedIconsByUrl.get(e);return n?(0,Et.of)(AS(n)):this._loadSvgIconFromConfig(new SS(t,null)).pipe((0,SC.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,Ut.U)(t=>AS(t)))}getNamedSvgIcon(t,e=""){const n=IS(e,t);let i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(e,t),i)return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);const o=this._iconSetConfigs.get(e);return o?this._getSvgFromIconSetConfigs(t,o):(0,pP._)(MS(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,Et.of)(AS(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,Ut.U)(t=>AS(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?(0,Et.of)(n):ov(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(XC(e=>{const n=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,t.url)} failed: ${e.message}`;return this._errorHandler.handleError(new Error(n)),(0,Et.of)(null)})))).pipe((0,Ut.U)(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw MS(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,SC.b)(e=>t.svgText=e),(0,Ut.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,Et.of)(null):this._fetchIcon(t).pipe((0,SC.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const o=i.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,n);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),n);const r=this._svgElementFromString("<svg></svg>");return r.appendChild(o),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString("<svg></svg>"),n=t.attributes;for(let i=0;i<n.length;i++){const{name:t,value:o}=n[i];"id"!==t&&e.setAttribute(t,o)}for(let i=0;i<t.childNodes.length;i++)t.childNodes[i].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[i].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){var e;const{url:n,options:o}=t,r=null!==(e=null==o?void 0:o.withCredentials)&&void 0!==e&&e;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const s=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,n);if(!s)throw TS(n);const a=this._inProgressUrlFetches.get(s);if(a)return a;const c=this._httpClient.get(s,{responseType:"text",withCredentials:r}).pipe(RC(()=>this._inProgressUrlFetches.delete(s)),(0,OS.B)());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(IS(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;n<this._resolvers.length;n++){const i=this._resolvers[n](e,t);if(i)return RS(i)?new SS(i.url,null,i.options):new SS(i,null)}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(re,8),i.LFG(Pt),i.LFG(s,8),i.LFG(i.qLn))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(re,8),i.LFG(Pt),i.LFG(s,8),i.LFG(i.qLn))},token:t,providedIn:"root"}),t})();function AS(t){return t.cloneNode(!0)}function IS(t,e){return t+":"+e}function RS(t){return!(!t.url||!t.options)}const NS=Kk(class{constructor(t){this._elementRef=t}}),LS=new i.OlP("mat-icon-location",{providedIn:"root",factory:function(){const t=(0,i.f3M)(s),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),DS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],FS=t=>`[${t}]`,US=DS.map(FS).join(", "),ZS=/^url\(['"]?#(.*?)['"]?\)$/;let qS=(()=>{class t extends NS{constructor(t,e,n,i,o){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=o,this._inline=!1,this._currentIconFetch=Ae.w.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=VT(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i<e.length;i++)e[i].textContent+=" ";const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){const n=t.childNodes[e];(1!==n.nodeType||"svg"===n.nodeName.toLowerCase())&&t.removeChild(n)}}
1_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const e=this._elementsWithExternalReferences;e&&e.forEach((e,n)=>{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(US),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<e.length;i++)DS.forEach(t=>{const o=e[i],r=o.getAttribute(t),s=r?r.match(ZS):null;if(s){let e=n.get(o);e||(e=[],n.set(o,e)),e.push({name:t,value:s[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(qe(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${n}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(ES),i.$8M("aria-hidden"),i.Y36(LS),i.Y36(i.qLn))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(i.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),i.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:PS,decls:1,vars:0,template:function(t,e){1&t&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),VS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[$k],$k]}),t})();var jS=n(9105);function zS(t,e,n,i){return(0,jS.m)(n)&&(i=n,n=void 0),i?zS(t,e,n).pipe((0,Ut.U)(t=>(0,nv.k)(t)?i(...t):i(t))):new At.y(i=>{GS(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function GS(t,e,n,i,o){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,o),r=()=>i.removeEventListener(e,n,o)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,s=t.length;r<s;r++)GS(t[r],e,n,i,o)}i.add(r)}const BS=["underline"],HS=["connectionContainer"],YS=["inputContainer"],QS=["label"];function JS(t,e){1&t&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15),i._UZ(3,"div",16),i._UZ(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15),i._UZ(7,"div",16),i._UZ(8,"div",17),i.qZA(),i.BQk())}function $S(t,e){1&t&&(i.TgZ(0,"div",19),i.Hsn(1,1),i.qZA())}function WS(t,e){if(1&t&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&t){const t=i.oxw(2);i.xp6(3),i.Oqu(t._control.placeholder)}}function KS(t,e){1&t&&i.Hsn(0,3,["*ngSwitchCase","true"])}function XS(t,e){1&t&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function tE(t,e){if(1&t){const t=i.EpF();
1i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){return i.CHM(t),i.oxw().updateOutlineGap()}),i.YNc(2,WS,4,1,"ng-container",12),i.YNc(3,KS,1,0,"ng-content",12),i.YNc(4,XS,2,0,"span",22),i.qZA()}if(2&t){const t=i.oxw();i.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),i.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),i.uIk("for",t._control.id)("aria-owns",t._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function eE(t,e){1&t&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function nE(t,e){if(1&t&&(i.TgZ(0,"div",25,26),i._UZ(2,"span",27),i.qZA()),2&t){const t=i.oxw();i.xp6(2),i.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function iE(t,e){if(1&t&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&t){const t=i.oxw();i.Q6J("@transitionMessages",t._subscriptAnimationState)}}function oE(t,e){if(1&t&&(i.TgZ(0,"div",31),i._uU(1),i.qZA()),2&t){const t=i.oxw(2);i.Q6J("id",t._hintLabelId),i.xp6(1),i.Oqu(t.hintLabel)}}function rE(t,e){if(1&t&&(i.TgZ(0,"div",28),i.YNc(1,oE,2,2,"div",29),i.Hsn(2,6),i._UZ(3,"div",30),i.Hsn(4,7),i.qZA()),2&t){const t=i.oxw();i.Q6J("@transitionMessages",t._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",t.hintLabel)}}const sE=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],aE=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let cE=0;const uE=new i.OlP("MatError");let lE=(()=>{class t{constructor(t,e){this.id="mat-error-"+cE++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(i.$8M("aria-live"),i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("id",e.id)},inputs:{id:"id"},features:[i._Bn([{provide:uE,useExisting:t}])]}),t})();const hE={transitionMessages:g_("transitionMessages",[b_("enter",y_({opacity:1,transform:"translateY(0%)"})),C_("void => enter",[y_({opacity:0,transform:"translateY(-5px)"}),m_("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let dE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t}),t})();const pE=new i.OlP("MatHint");let fE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["mat-label"]]}),t})(),gE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const mE=new i.OlP("MatPrefix"),_E=new i.OlP("MatSuffix");let yE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:_E,useExisting:t}])]}),t})(),bE=0;const vE=Kk(class{constructor(t){this._elementRef=t}},"primary"),CE=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),xE=new i.OlP("MatFormField");let wE=(()=>{class t extends vE{constructor(t,e,n,i,o,r,s,a){super(t),this._changeDetectorRef=e,this._dir=i,this._defaults=o,this._platform=r,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new ve.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+bE++,this._labelId="mat-form-field-label-"+bE++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=o&&o.appearance?o.appearance:"legacy",this._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=VT(t)}
1_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(pn(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(EC(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(EC(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,xe.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(pn(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(pn(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(EC(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,zS(this._label.nativeElement,"transitionend").pipe(qe(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,o=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const o=i.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(o),s=t.children,a=this._getStartEnd(s[0].getBoundingClientRect());let c=0;for(let t=0;t<s.length;t++)c+=s[t].offsetWidth;e=Math.abs(a-r)-5,n=c>0?.75*c+10:0}for(let s=0;s<o.length;s++)o[s].style.width=`${e}px`;for(let s=0;s<r.length;s++)r[s].style.width=`${n}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}
1_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(Vk,8),i.Y36(CE,8),i.Y36(YT),i.Y36(i.R0b),i.Y36(Wb,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-form-field"]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,dE,5),i.Suo(n,dE,7),i.Suo(n,fE,5),i.Suo(n,fE,7),i.Suo(n,gE,5),i.Suo(n,uE,5),i.Suo(n,pE,5),i.Suo(n,mE,5),i.Suo(n,_E,5)),2&t){let t;i.iGM(t=i.CRH())&&(e._controlNonStatic=t.first),i.iGM(t=i.CRH())&&(e._controlStatic=t.first),i.iGM(t=i.CRH())&&(e._labelChildNonStatic=t.first),i.iGM(t=i.CRH())&&(e._labelChildStatic=t.first),i.iGM(t=i.CRH())&&(e._placeholderChild=t.first),i.iGM(t=i.CRH())&&(e._errorChildren=t),i.iGM(t=i.CRH())&&(e._hintChildren=t),i.iGM(t=i.CRH())&&(e._prefixChildren=t),i.iGM(t=i.CRH())&&(e._suffixChildren=t)}},viewQuery:function(t,e){if(1&t&&(i.Gf(BS,5),i.Gf(HS,7),i.Gf(YS,5),i.Gf(QS,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.underlineRef=t.first),i.iGM(t=i.CRH())&&(e._connectionContainerRef=t.first),i.iGM(t=i.CRH())&&(e._inputContainerRef=t.first),i.iGM(t=i.CRH())&&(e._label=t.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(t,e){2&t&&i.ekj("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat())("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[i._Bn([{provide:xE,useExisting:t}]),i.qOj],ngContentSelectors:aE,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(t,e){1&t&&(i.F$t(sE),i.TgZ(0,"div",0),i.TgZ(1,"div",1,2),i.NdJ("click",function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)}),i.YNc(3,JS,9,0,"ng-container",3),i.YNc(4,$S,2,0,"div",4),i.TgZ(5,"div",5,6),i.Hsn(7),i.TgZ(8,"span",7),i.YNc(9,tE,5,16,"label",8),i.qZA(),i.qZA(),i.YNc(10,eE,2,0,"div",9),i.qZA(),i.YNc(11,nE,3,4,"div",10),i.TgZ(12,"div",11),i.YNc(13,iE,2,1,"div",12),i.YNc(14,rE,5,2,"div",13),i.qZA(),i.qZA()),2&t&&(i.xp6(3),i.Q6J("ngIf","outline"==e.appearance),i.xp6(1),i.Q6J("ngIf",e._prefixChildren.length),i.xp6(5),i.Q6J("ngIf",e._hasFloatingLabel()),i.xp6(1),i.Q6J("ngIf",e._suffixChildren.length),i.xp6(1),i.Q6J("ngIf","outline"!=e.appearance),i.xp6(1),i.Q6J("ngSwitch",e._getDisplayedMessages()),i.xp6(1),i.Q6J("ngSwitchCase","error"),i.xp6(1),i.Q6J("ngSwitchCase","hint"))}
1,directives:[R,F,U,ck],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}
1.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;
1left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[hE.transitionMessages]},changeDetection:0}),t})(),OE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[B,$k,uk],$k]}),t})();class PE{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new ME(t,this.durationSelector))}}class ME extends Oe.L{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=(0,Me.D)(this,n);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,i){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var TE=n(6561);function kE(t=0,e,n){let i=-1;return(0,TE.k)(e)?i=Number(e)<1?1:Number(e):(0,dn.K)(e)&&(n=e),(0,dn.K)(n)||(n=un.P),new At.y(e=>{const o=(0,TE.k)(t)?t:+t-n.now();return n.schedule(SE,o,{index:0,period:i,subscriber:e})})}function SE(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function EE(t,e=un.P){return function(t){return function(e){return e.lift(new PE(t))}}(()=>kE(t,e))}const AE=tk({passive:!0});let IE=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Ze.E;const e=BT(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new ve.xQ,o="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(o)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(o)&&(e.classList.remove(o),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(o),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,AE),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",r,AE)}}),i}stopMonitoring(t){const e=BT(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}
1ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(YT),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(YT),i.LFG(i.R0b))},token:t,providedIn:"root"}),t})(),RE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[QT]]}),t})();const NE=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),LE=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let DE=0;const FE=eS(class{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}});let UE=(()=>{class t extends FE{constructor(t,e,n,i,o,r,s,a,c,u){super(r,i,o,n),this._elementRef=t,this._platform=e,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+DE++,this.focused=!1,this.stateChanges=new ve.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>$T().has(t));const l=this._elementRef.nativeElement,h=l.nodeName.toLowerCase();this._inputValueAccessor=s||l,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&c.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;!e.value&&0===e.selectionStart&&0===e.selectionEnd&&(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===h,this._isTextarea="textarea"===h,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=l.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=VT(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=VT(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&$T().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=VT(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){LE.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(YT),i.Y36(Fv,10),i.Y36(fC,8),i.Y36(xC,8),i.Y36(nS),i.Y36(NE,10),i.Y36(IE),i.Y36(i.R0b),i.Y36(xE,8))},t.\u0275dir=i.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(t,e){1&t&&i.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(i.Ikx("disabled",e.disabled)("required",e.required),i.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),i.ekj("mat-input-server",e._isServer)("mat-native-select-inline",e._isInlineSelect()))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[i._Bn([{provide:dE,useExisting:t}]),i.qOj,i.TTD]}),t})(),ZE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[nS],imports:[[RE,OE,$k],RE,OE]}),t})();const qE=["input"],VE=function(t){return{enterDuration:t}},jE=["*"],zE=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:GE});function GE(){return{color:"accent",clickAction:"check-indeterminate"}}let BE=0;const HE=GE(),YE={provide:cv,useExisting:(0,i.Gpc)(()=>$E),multi:!0};class QE{}const JE=tS(Kk(Xk(Wk(class{constructor(t){this._elementRef=t}}))));let $E=(()=>{class t extends JE{constructor(t,e,n,o,r,s,a){super(t),this._changeDetectorRef=e,this._focusMonitor=n,this._ngZone=o,this._animationMode=s,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++BE,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||HE,this.color=this.defaultColor=this._options.color||HE.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=VT(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=VT(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=VT(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new QE;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const n=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===n?!this.disabled&&"noop"===n&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==n&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${n}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Nk),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(Wb,8),i.Y36(zE,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(i.Gf(qE,5),i.Gf(lS,5)),2&t){let t;i.iGM(t=i.CRH())&&(e._inputElement=t.first),i.iGM(t=i.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(i.Ikx("id",e.id),i.uIk("tabindex",null),i.e
1kj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[i._Bn([YE]),i.qOj],ngContentSelectors:jE,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2),i.TgZ(3,"input",3,4),i.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA(),i.qZA(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA(),i.qZA()),2&t){const t=i.MAs(1),n=i.MAs(13);i.uIk("for",e.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),i.xp6(1),i.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),i.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,VE,"NoopAnimations"===e._animationMode?0:150))}},directives:[lS,ck],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;
1transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),WE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})(),KE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[hS,$k,uk,WE],$k,WE]}),t})();function XE(t,e){1&t&&(i.ynx(0),i.TgZ(1,"div",2),i.TgZ(2,"article"),i.TgZ(3,"div",3),i._UZ(4,"mat-icon",4),i.qZA(),i.TgZ(5,"div",5),i.TgZ(6,"h3"),i._uU(7,"This license has already been redeemed"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.BQk())}function tA(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",36),i.TgZ(2,"span",37),i._uU(3,"There is no account associated with this email address. Please check your email address or sign up for an account"),i.qZA(),i.BQk())}function eA(t,e){1&t&&(i.ynx(0),i.TgZ(1,"span"),i._uU(2,"Please enter a valid email address"),i.qZA(),i.BQk())}function nA(t,e){1&t&&(i.TgZ(0,"span"),i._uU(1,"Invalid email"),i.qZA())}function iA(t,e){if(1&t&&(i.ynx(0),i._UZ(1,"mat-icon",36),i.YNc(2,eA,3,0,"ng-container",0),i.YNc(3,nA,2,0,"ng-template",null,38,i.W1O),i.BQk()),2&t){const t=i.MAs(4),e=i.oxw(3);i.xp6(2),i.Q6J("ngIf",e.isEmptyControl(e.email))("ngIfElse",t)}}function oA(t,e){if(1&t&&i.YNc(0,iA,5,2,"ng-container",26),2&t){const t=i.oxw(2);i.Q6J("ngIf",t.email.invalid&&(t.email.touched||t.email.dirty))}}function rA(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",36),i.TgZ(2,"span"),i._uU(3,"Incorrect password entered."),i.qZA(),i.BQk())}function sA(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",36),i.TgZ(2,"span"),i._uU(3,"Please enter a password"),i.qZA(),i.BQk())}function aA(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i.YNc(1,sA,4,0,"ng-container",26),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngIf",t.isEmptyControl(t.password))}}function cA(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",6),i.TgZ(1,"h3"),i._uU(2,"Welcome back"),i.qZA(),i.qZA(),i.TgZ(3,"div",7),i.TgZ(4,"div",8),i._UZ(5,"mat-icon",9),i.TgZ(6,"p",10),i._uU(7),i.qZA(),i.qZA(),i.qZA(),i.TgZ(8,"div",11),i.TgZ(9,"div",12),i.TgZ(10,"form",13),i.NdJ("submit",function(){return i.CHM(t),i.oxw().signin()}),i.TgZ(11,"div",14),i.TgZ(12,"div",15),i.TgZ(13,"span"),i._uU(14,"Email"),i.qZA(),i.qZA(),i.TgZ(15,"mat-form-field",16),i.TgZ(16,"input",17),i.NdJ("keyup",function(e){return i.CHM(t),i.oxw().onKeyE(e)}),i.qZA(),i._UZ(17,"mat-icon",18),i.qZA(),i.TgZ(18,"div",19),i.YNc(19,tA,4,0,"ng-container",0),i.YNc(20,oA,1,1,"ng-template",null,20,i.W1O),i.qZA(),i.qZA(),i.TgZ(22,"div",21),i.TgZ(23,"div",15),i.TgZ(24,"span"),i._uU(25,"Password"),i.qZA(),i.qZA(),i.TgZ(26,"mat-form-field",22),i.TgZ(27,"input",23),i.NdJ("keyup",function(e){return i.CHM(t),i.oxw().onKeyP(e)}
1),i.qZA(),i.TgZ(28,"span",24),i.NdJ("click",function(){i.CHM(t);const e=i.oxw();return e.hide=!e.hide}),i._UZ(29,"mat-icon",25),i.qZA(),i.qZA(),i.TgZ(30,"div",19),i.YNc(31,rA,4,0,"ng-container",26),i.YNc(32,aA,2,1,"mat-error",26),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(33,"div",27),i.TgZ(34,"div",28),i.TgZ(35,"div",29),i.TgZ(36,"mat-checkbox",30),i.NdJ("change",function(e){return i.CHM(t),i.oxw().checkCheckboxValue(e)}),i.qZA(),i.TgZ(37,"span"),i._uU(38,"Remember me"),i.qZA(),i.qZA(),i.TgZ(39,"div",31),i.TgZ(40,"strong",32),i.TgZ(41,"a",33),i._uU(42,"Forgot your password?"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(43,"div",34),i.TgZ(44,"button",35),i._uU(45," Sign in "),i.qZA(),i.TgZ(46,"span"),i._uU(47," Create a new account? "),i.TgZ(48,"strong",32),i.TgZ(49,"a",33),i._uU(50,"Sign up"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.MAs(21),e=i.oxw();i.xp6(7),i.Oqu(e.migrationMessage),i.xp6(3),i.Q6J("formGroup",e.formGroup),i.xp6(9),i.Q6J("ngIf",e.showEmail)("ngIfElse",t),i.xp6(8),i.Q6J("type",e.hide?"password":"text"),i.xp6(1),i.uIk("aria-pressed",e.hide),i.xp6(1),i.s9C("svgIcon",e.hide?"lockEye":"openEye"),i.xp6(2),i.Q6J("ngIf",e.show),i.xp6(1),i.Q6J("ngIf",e.password.invalid&&(e.password.dirty||e.password.touched)),i.xp6(9),i.Q6J("routerLink","/reset-password")("queryParamsHandling","preserve"),i.xp6(3),i.Q6J("disabled",e.loading||e.isFormInvalid()),i.xp6(5),i.Q6J("routerLink","/signup")("queryParamsHandling","preserve")}}let uA=(()=>{class t{constructor(t,e,n,i,o,r,s){this.document=t,this.appState=e,this._fb=n,this._router=i,this._auth=o,this._toastr=r,this.route=s,this.loading=!1,this.show=!1,this.showEmail=!1,this.hide=!0,this.check=!0,this.getFreeTrial=!1,this.isRedeemed=!1,this.destroy$=new ve.xQ,this.migrationMessage="\nWe have recently migrated to a new authentication system, if you haven't yet done so please reset your account\n password by clicking the \u2018Forgot your password?\u2019 link below and following the instructions.\n",this.formGroup=this.initFormGroup(),this.isPasswordReset=localStorage.getItem("reset-password"),this.route.snapshot.queryParams.product_id&&this.route.snapshot.queryParams.th__ug&&this.route.snapshot.queryParams.th__c&&(this.appState.loading=!0,this._auth.getUserByEmail(this.route.snapshot.queryParams.email).subscribe(t=>{if(1===t.length&&t[0].coupons){const e=t[0].coupons;for(const t of e)console.log(t),this.route.snapshot.queryParams.product_id===t.product_id&&this.route.snapshot.queryParams.th__c===t.coupon_code&&t.redeemed&&(this.isRedeemed=!0,this._router.navigate([],{queryParams:{email:null,th__c:null,th__ug:null,product_id:null,first_name:null,last_name:null,utm_source:null,utm_medium:null,utm_campaign:null,sign_in:null,uid:null},queryParamsHandling:"merge"}),localStorage.clear())}this.appState.loading=!1})),this.route.queryParams.pipe((0,SC.b)(t=>{this._auth.couponUserData={first_name:t.first_name?t.first_name:null,last_name:t.last_name?t.last_name:null,email:t.email?t.email:null,uid:t.uid?t.uid:null}}),(0,Ut.U)(t=>({product_id:t.product_id?t.product_id:null,group_token:t.th__ug?t.th__ug:null,coupon_code:t.th__c?t.th__c:null,email:t.email||t.new_email})),EC(this.destroy$)).subscribe(t=>{this.email.patchValue(t.email);for(const e in t)("group_token"===e||"coupon_code"===e||"product_id"===e||"uid"===e)&&t[e]&&"undefined"!==t[e]&&localStorage.setItem(e,t[e])})}get email(){return this.formGroup.get("email")}get password(){return this.formGroup.get("password")}initFormGroup(){return this._fb.group({email:[null,[_v.email,_v.required]],password:[null,_v.required]})}signin(){this.email.errors&&this.email.errors.email&&(this.showEmail=!0);const t=this.route.snapshot.queryParams.email_verification_token;this.customAuth=this.route.snapshot.queryParams.custom_auth,this.redirectUrl=this.route.snapshot.queryParams.redirect_url,"true"===this.route.snapshot.queryParams.getfreetrial&&(this.getFreeTrial=!0,this.trialProductID=this.route.snapshot.queryParams.product_id);const e=localStorage.getItem("checkout"),n=localStorage.getItem("emailChanged");this.loading=!0;const i=Object.assign({},this.formGroup.value);i.email=i.email.toLowerCase(),this.setCouponData(),this._auth.signinClientPersistence(i,this.check).pipe(Te(()=>this._auth.currentUser),Lt(t=>!!t),(0,SC.b)(t=>{var e,n,i,o,r,s;this.addSecondaryEmail=!!this._auth.couponUserData.email&&this.email.value.toLowerCase().trim()!==(null===(n=null===(e=this._auth.couponUserData.email)||void 0===e?void 0:e.toLowerCase())||void 0===n?void 0:n.trim()),this.addSecondaryFirstName=!!this._auth.couponUserData.first_name&&(null===(o=null===(i=this._auth.couponUserData.first_name)||void 0===i?void 0:i.toLowerCase())||void 0===o?void 0:o.trim())!==t.first_name.toLowerCase().trim(),this.addSecondaryLastName=!!this._auth.couponUserData.last_name&&(null===(s=null===(r=this._auth.couponUserData.last_name)||void 0===r?void 0:r.toLowerCase())||void 0===s?void 0:s.trim())!==t.last_name.toLowerCase().trim()}),Te(t=>this.setCoupon(t)),Te(t=>this.updateUserDocument(t)),Te(()=>this._auth.authUser),qe(1),Te(n=>t?this._router.navigate(["/auth/action"],{queryParams:{mode:"verifyEmail",token:t}}):e||this.getFreeTrial?n.emailVerified?ov(this._auth.updateLastLoginTime(),this.navigateEnroll()):this._router.navigate(["/auth/verify"]):this.customAuth?this.getTokenFromServer(this.redirectUrl):n.emailVerified?ov(this._auth.updateLastLoginTime(),this.navigateToSchool()):this._router.navigate(["/auth/verify"])),RC(()=>{localStorage.clear(),localStorage.setItem("emailChanged",n),"true"===this.route.
1snapshot.queryParams.admin_dashboard?localStorage.setItem("admin_dashboard","true"):"true"===this.route.snapshot.queryParams.bursary_internal_dashboard?localStorage.setItem("bursary_internal_dashboard","true"):"true"===this.route.snapshot.queryParams.bursary_external_dashboard&&localStorage.setItem("bursary_external_dashboard","true")})).subscribe(()=>{},t=>(this.loading=!1,console.log("Error is: ",t),this.showError(t.code),this._auth.handleAuthError(this.addSecondaryEmail,this.addSecondaryFirstName,this.addSecondaryLastName)))}checkCheckboxValue(t){this.check=!!t.checked}isEmptyControl(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}isFormInvalid(){var t;return!this.formGroup||(null===(t=this.formGroup)||void 0===t?void 0:t.invalid)}onKeyP(t){this.show=!1}onKeyE(t){this.showEmail=!1}getTokenFromServer(t){return this._auth.getAuthTokenFromServer(t).pipe((0,SC.b)(({redirectUri:t})=>{window.location.href=t}))}setCouponData(){this.couponData={coupon_code:localStorage.getItem("coupon_code"),group_token:localStorage.getItem("group_token"),product_id:localStorage.getItem("product_id"),redeemed:!1}}updateUserDocument(t){if(this.addSecondaryEmail||this.addSecondaryFirstName||this.addSecondaryLastName){let e={};return e=this._auth.getUpdatePayload(e,this.addSecondaryEmail,this.addSecondaryFirstName,this.addSecondaryLastName),this._auth.updateUserDoc(e).pipe(qe(1),Te(()=>(0,Et.of)(t)))}return this.isPasswordReset&&!t.email_verified?this._auth.updateUserDoc({email_verified:!0}).pipe(qe(1),Te(()=>(0,Et.of)(t))):(0,Et.of)(t)}setCoupon(t){return this.couponData.coupon_code&&this.couponData.group_token&&this.couponData.product_id?this._auth.addCoupon(this.couponData).pipe(Te(e=>(0,Et.of)(t))):(0,Et.of)(t)}showError(t){switch(t){case"auth/too-many-requests":this._toastr.error("Too many unsuccessful login attempts. Please try again later.");break;case"auth/user-not-found":this.showEmail=!0;break;case"auth/user-disabled":this._toastr.error("Your account has been disabled. Please contact the system administrator.");break;case"auth/wrong-password":this.show=!0;break;case"auth/network-request-failed":this._toastr.error("An error occurred please try again later.");break;default:this._toastr.error("Oops! Something went wrong. Try again later")}}navigateToSchool(){return this.appState.loading=!0,this._auth.signinSchool().pipe((0,SC.b)(t=>{this.document.location.href=t.redirect_uri}))}navigateEnroll(){const t=localStorage.getItem("product"),e=localStorage.getItem("price");return this.appState.loading=!0,this.getFreeTrial?this._auth.signForFreeTrial(this.trialProductID,this.getFreeTrial).pipe((0,SC.b)(t=>{this.document.location.href=t.redirect_uri})):this._auth.signEnroll(t,e).pipe((0,SC.b)(t=>{console.log(t),this.document.location.href=t.redirect_uri}))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s),i.Y36(BC),i.Y36(kC),i.Y36(FO),i.Y36(eT),i.Y36(TT),i.Y36(gw))},t.\u0275cmp=i.Xpm({type:t,selectors:[["auth-signin"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["notRedeemed",""],[1,"page-container","verify-email-container","redeemed-container"],[1,"auth-sucsess-icon"],["svgIcon","info_color"],[1,"auth-header","verifySign"],[1,"auth-header"],[1,"banner-auth-migration-wrap"],[1,"banner-auth-migration"],["svgIcon","alert-triangle"],[1,"desk"],[1,"auth-sign","sign-in"],[1,"auth-sign-body"],["id","ngFormSignin",1,"cc",3,"formGroup","submit"],[1,"form-field","form-field--mb-sm"],[1,"field-label"],["appearance","outline","color","primary",1,"ma-field"],["matInput","","formControlName","email","type","email","placeholder","Please enter your email","autocomplete","on",3,"keyup"],["matSuffix","","svgIcon","mail"],[1,"field-hide"],["normalError",""],[1,"form-field"],["appearance","outline",1,"ma-field"],["matInput","","formControlName","password","placeholder","","autocomplete","off",3,"type","keyup"],["matSuffix","",3,"click"],[3,"svgIcon"],[4,"ngIf"],[1,"auth-sign-actions"],[1,"row-check"],[1,"actions-check"],["checked","true",1,"checkbox",3,"change"],[1,"actions-forget"],[1,"ml_sm"],["target","_top",3,"routerLink","queryParamsHandling"],[1,"row-button"],["form","ngFormSignin",1,"button-action",3,"disabled"],["matSuffix","","svgIcon","errorInfo"],[1,"newdes"],["hasValueControl",""]],template:function(t,e){if(1&t&&(i.YNc(0,XE,8,0,"ng-container",0),i.YNc(1,cA,51,14,"ng-template",null,1,i.W1O)),2&t){const t=i.MAs(2);i.Q6J("ngIf",e.isRedeemed)("ngIfElse",t)}},directives:[R,qS,yC,qv,xC,wE,UE,hv,Zv,OC,yE,$E,qO,lE],styles:['[_nghost-%COMP%]{flex-direction:column;height:calc(100% - 80px);
1display:flex;flex:1 0 auto}span[_ngcontent-%COMP%], a[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-style:normal;font-weight:normal}.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;font-family:Roboto Slab,sans-serif;font-size:36px;line-height:48px;margin-top:96px;margin-bottom:0;text-align:center}@media only screen and (max-width: 1224px){.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:72px}}@media only screen and (max-width: 500px){.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px;margin-top:72px!important}}.verifySign[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.verifySign[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:35px}@media (max-width: 600px){.verifySign[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:25px!important;font-size:22px!important;line-height:32px}}.verifySign[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{background:#006FFF!important;border-radius:8px!important;font-family:Open Sans!important;font-style:normal!important;font-weight:bold!important;font-size:12px!important;line-height:16px!important;text-align:center;color:#fff;width:114px!important;height:32px!important;border:none!important}.verifySign[_ngcontent-%COMP%]   .btn-success[_ngcontent-%COMP%]{padding:12px;background:#006FFF;border-radius:8px;width:210px;height:48px;font-family:Open Sans,sans-serif;font-style:normal;font-weight:bold;font-size:16px;line-height:20px;text-align:center;color:#fff;border:none;margin-top:56px;cursor:pointer}.verifySign[_ngcontent-%COMP%]   .ch[_ngcontent-%COMP%]{width:150px!important}.auth-sucsess-icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin:auto}.auth-sucsess-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:81px;width:81px}@media (max-width: 600px){.auth-sucsess-icon[_ngcontent-%COMP%]{margin-top:80px}.auth-sucsess-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:40px;width:40px}}re-captcha[_ngcontent-%COMP%]{margin-bottom:32px}.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;font-family:Roboto Slab;font-size:36px;line-height:48px;margin-top:56px;margin-bottom:56px;text-align:center}.banner-auth-migration-wrap[_ngcontent-%COMP%]{display:flex;margin:56px auto 10px;max-width:743px}.banner-auth-migration[_ngcontent-%COMP%]{display:flex;align-items:center;width:524px;height:147px;background:#112C6C}.banner-auth-migration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:372px;height:72px;font-family:Roboto;font-style:normal;font-weight:normal;font-size:13px;line-height:18px;color:#fff}.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;margin:55px 50px 54px 34px}.ml_sm[_ngcontent-%COMP%]{margin-left:calc(4px * 1)}.page-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:6%;margin-bottom:4%}@media only screen and (max-width: 1224px){.page-container[_ngcontent-%COMP%]{margin-bottom:2%!important}}.page-container[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:flex-start}.page-container[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]   .welcome-partners-da[_ngcontent-%COMP%]{margin:0;height:80px;width:476px;color:#fefefe;font-size:30px;font-weight:300;letter-spacing:.75px;line-height:40px}.new-sso[_ngcontent-%COMP%]{margin-top:0%;margin-bottom:0%}.auth-sign[_ngcontent-%COMP%]{margin:48px auto 80px;height:auto}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]{display:flex;align-items:center}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{margin-bottom:24px;display:flex;align-items:flex-start;flex-direction:column}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{height:40px;width:416px;border-radius:4px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px;line-height:24px;color:#222b45}
1.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{margin-bottom:30px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-style:normal;line-height:16px;padding-top:8px;width:410px}@media (max-width: 600px){.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{width:327px!important}}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .newdes[_ngcontent-%COMP%]{line-height:15px!important}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{margin-left:0!important}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-checkbox[_ngcontent-%COMP%]{margin:-8px 0 16px 50px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#8f9bb3;position:relative;bottom:3px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]{margin-top:0}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-check[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:56px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;line-height:16px;color:#222b45;margin-top:32px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#00d68f;font-weight:bold;text-decoration:none}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px;width:93px;border-radius:8px;padding:12px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]{align-items:flex-start}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;font-size:15px;line-height:24px;color:#222b45;margin:0 6px;bottom:5px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]{margin-left:0;position:relative;left:0px;bottom:6px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]     .mat-checkbox-frame{border:1px solid #c5cee0;border-radius:3px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]     .mat-checkbox-inner-container{width:20px;height:20px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]     .mat-checkbox-checked.mat-accent .mat-checkbox-background, .auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   .mat-checkbox-indeterminate.mat-accent[_ng
1content-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#006fff}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#006fff;text-decoration:none;position:relative}@media only screen and (max-width: 500px){.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{top:-2px}}@media only screen and (max-width: 1224px){.actions-forget[_ngcontent-%COMP%]{font-size:12px!important}.actions-check[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:13px!important;line-height:18px!important}.row-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.row-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:40px;width:83px;padding:10px;font-size:14px!important;line-height:16px!important}}.material-icons.custom-adjust[_ngcontent-%COMP%]{color:#00d68f;left:45%;position:relative;font-size:84px}@media only screen and (max-width: 768px){.material-icons.custom-adjust[_ngcontent-%COMP%]{left:44%}}@media only screen and (max-width: 500px){.material-icons.custom-adjust[_ngcontent-%COMP%]{font-size:74px;left:40%}}@media only screen and (min-width: 1920px){.material-icons.custom-adjust[_ngcontent-%COMP%]{left:45.5%}}.top[_ngcontent-%COMP%]{padding-top:3%!important}@media only screen and (max-width: 1224px){.top[_ngcontent-%COMP%]{padding-top:6%!important}}@media only screen and (max-width: 500px){.top[_ngcontent-%COMP%]{padding-top:15%!important}}.create[_ngcontent-%COMP%]{margin-top:10%!important}.reset-box[_ngcontent-%COMP%]{box-shadow:none!important}.reset-box[_ngcontent-%COMP%]   .example-focus-monitor[_ngcontent-%COMP%]   .cdk-touch-focused[_ngcontent-%COMP%]{background:rgba(0,0,255,.5)!important}.reset-box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1!important;font-family:"Roboto Slab";font-weight:700!important}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px}}.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:36px!important;font-weight:700!important;width:60%}@media only screen and (max-width: 1224px){.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:36px!important}}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px!important;width:80%}}.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start!important;width:416px;margin-left:auto;margin-right:auto;margin-bottom:56px!important}@media only screen and (max-width: 1224px){.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{width:416px;margin-bottom:70px!important}}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{width:334px!important;margin-bottom:64px!important}}@media only screen and (max-width: 500px){.pp[_ngcontent-%COMP%]{left:0%!important}}@media only screen and (max-width: 500px){.pass[_ngcontent-%COMP%]{left:0%!important}}.auth-dialog[_ngcontent-%COMP%]{background:#FEFEFE;box-shadow:0 2px 6px #0000004d;height:auto;border-radius:16px;margin:4% auto 0%!important}.auth-dialog.sign-in[_ngcontent-%COMP%]{margin:80px auto 0}
1.auth-dialog--no-shadow[_ngcontent-%COMP%]{box-shadow:none}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-header[_ngcontent-%COMP%]{padding:35px 0 0;display:flex;justify-content:center}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{position:relative;margin:0;height:40px;color:#666;font-size:36px;font-weight:bold;letter-spacing:.75px;line-height:48px;text-align:center}.auth-dialog[_ngcontent-%COMP%]   .success-body[_ngcontent-%COMP%]{margin-top:0!important;padding-top:0;padding-bottom:40px}@media only screen and (max-width: 360px){.auth-dialog[_ngcontent-%COMP%]   .success-body[_ngcontent-%COMP%]{margin-bottom:60px}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center;padding-bottom:8%;font-style:normal;font-weight:normal!important;font-family:"Roboto"!important;font-size:18px!important;line-height:26px;color:#222b45}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:100%}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-bottom:0!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-top:5%!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-bottom:10%!important;padding-top:0%!important}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:15px!important;font-family:"Roboto";font-weight:400;color:#000}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{height:186.2852783203px;width:199px;background:#ffffff;border:.9px solid #e6ebf7;box-shadow:0 8px 14px #4367f312;border-radius:1.8px;position:absolute;z-index:2;margin-left:28%;font-family:Roboto;font-style:normal;font-size:12px;line-height:14px;display:flex;flex-direction:column}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   .hed[_ngcontent-%COMP%]{font-weight:bold;opacity:1}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:normal;color:#003ac1;margin-top:7px;margin-left:20px;opacity:.3}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:13px;height:13px;margin-right:10px;position:relative;top:2px}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:580px;display:flex;flex-direction:row}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   .msg-error[_ngcontent-%COMP%]{margin-left:8px}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:40%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:468px!important}}@media only screen and (max-width: 768px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:53%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:468px!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:35%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:330px!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:40px!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .reP[_ngcontent-%COMP%]{width:280px;margin:auto}}@media only screen and (max-width: 375px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:40%!important}}@media only screen and (min-width: 1920px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:19.5%!important}}.auth-dialog[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{padding:0!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .re[_ng
1content-%COMP%]{padding:0!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]{padding:0 50px;margin-top:24px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin:auto auto 65px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:396px!important;height:24px;margin-left:0%!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{margin-bottom:12px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]:last-child{margin-bottom:0}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column;margin:auto}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;line-height:16px;padding-top:8px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:100%;min-width:100px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{font-size:12px;font-weight:500!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-input[_ngcontent-%COMP%]   .reset-field[_ngcontent-%COMP%]{background-color:#e4e9f2}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{flex:none;width:416px!important;height:40px;min-width:416px!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-checkbox[_ngcontent-%COMP%]{margin:-8px 0 16px 50px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .icon-box[_ngcontent-%COMP%]{flex:1 0 32px}@media (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{width:416px!important;min-width:416px!important}}@media (max-width: 600px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{width:334px!important;min-width:334px!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:286px!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{padding:0 50px 35px;margin-top:45px;display:flex;flex-direction:column;align-items:center;text-align:center}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .reset-button[_ngcontent-%COMP%]{font-weight:700;padding:12px;font-size:16px;line-height:20px;width:180px;height:48px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-top:11px;height:16px;width:96px;color:#575756;font-size:12px;line-height:16px;text-decoration:none}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:none!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:block!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:"Roboto";font-weight:700;font-size:14px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-family:"Roboto";font-weight:700;font-size:14px;color:#003ac1!important;text-decoration:underline}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:block!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-top:40px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{padding:0 50px 50px;margin-bottom:200px!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{margin-bottom:140px!important}}.footer-auth[_ngcontent-%COMP%]{width:100%;margin-top:auto;padding-top:calc(4px * 6)}.footer-auth[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.footer-auth[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:28px;
1width:200px}.auth-signup[_ngcontent-%COMP%]{margin:48px auto -10%;height:auto}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-left:0}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .mar-true[_ngcontent-%COMP%]{position:relative;left:8.5%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .mar-false[_ngcontent-%COMP%]{position:relative;left:7%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{margin-top:8px;display:flex;flex-direction:row}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:24px;font-size:15px;color:#222b45;margin-left:10px;margin-top:2px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline;font-weight:bold}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;line-height:16px;padding-top:8px;font-weight:600;font-size:12px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{position:relative;right:16%}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{right:18%}}@media (max-width: 600px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{right:10%!important}}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{position:relative;right:13%}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{right:12%}}@media (max-width: 600px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{right:10%!important}}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:56px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:48px;width:99px;border-radius:8px;padding:12px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;line-height:16px;color:#222b45}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:150px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:bold;color:#006fff;text-decoration:none}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:14px!important}}.purchase-section[_ngcontent-%COMP%]{width:808px;height:auto;background:#F7F9FC;border-radius:4px;display:flex;flex-direction:row;align-items:center;justify-content:space-evenly;margin:90px auto 15px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:56px;margin-bottom:56px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;width:370px;font-family:Roboto Slab;font-size:36px;line-height:48px;margin-bottom:6px;text-align:center}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;font-weight:normal;font-size:18px;line-height:26px;display:flex;width:436px;align-items:center;text-align:center;color:#222b45}
1.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]{width:185.49px;height:204px;border-radius:4.0597px;background:#FFFFFF;display:flex;flex-direction:column;box-shadow:0 0 10px #0003!important}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]{width:185.49px;height:105.55px;text-align:center;display:flex;flex-direction:column;font-style:normal}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .text-sec[_ngcontent-%COMP%]{height:75.55px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-family:Roboto Slab;font-weight:bold;font-size:15.2239px;line-height:20px;color:#003ac1;margin:8px auto}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:normal;font-size:9.13433px;line-height:13px;color:#222b45}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .bundle-para[_ngcontent-%COMP%]{margin:0 20px 20px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .course-para[_ngcontent-%COMP%]{margin:25px 15px auto}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]{height:30px;margin:0 15px;align-items:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .courseprice[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .bundleprice[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:49%}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:12px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   .count-para[_ngcontent-%COMP%]{position:relative;left:4px;bottom:4px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .divide-sec[_ngcontent-%COMP%]{width:1.01px;height:10.66px;background:#E4E9F2}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .price-para[_ngcontent-%COMP%]{font-weight:bold;color:#00d68f;position:relative;bottom:4px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:row;justify-content:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-img[_ngcontent-%COMP%]{height:98.45px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:185.49px;height:98.45px;border-bottom-left-radius:4.0597px;border-bottom-right-radius:4.0597px}@media (max-width: 1224px){.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:30px}.purchase-section[_ngcontent-%COMP%]{width:100%;margin:72px auto 15px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{left:3%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:18px;font-size:13px;margin-top:4px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]{margin-top:56px;margin-bottom:100px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:40px;width:87px;font-size:14px;line-height:16px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 600px){.purchase-section[_ngcontent-%COMP%]{flex-direction:column;margin-top:0%!important}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:24px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px;line-height:32px;margin-bottom:24px;text-align:center;width:214px!important}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important;width:312px!important}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]{margin-bottom:32px}.auth-signup-header[_ngcontent-%COMP%]{display:flex;justify-content:center}.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{width:217px;font-size:22px;line-height:32px;margin-bottom:48px;margin-top:20px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]{margin-left:0;display:flex;align-items:center}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{width:75%;position:relative;right:4%;left:auto}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:16px;font-size:12px;margin-top:-4px}}@media (max-width: 375px){.signup-privacy[_ngcontent-%COMP%]{right:7%!important}}@media (max-width: 1224px){.verify-email-container[_ngcontent-%COMP%]{margin-bottom:42%!important}}@media (max-width: 600px){.verify-email-container[_ngcontent-%COMP%]{margin-bottom:52%!important}}.verify-email-container[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;margin:16px}@media (max-width: 600px){.verify-email-container[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{width:auto}}.bottom-container[_ngcontent-%COMP%]{width:100%;margin-top:0!important;display:flex;flex-direction:row;justify-content:center}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:32px}@media (max-width: 1224px){.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .resend[_ngcontent-%COMP%]{position:relative!important}}@media (max-width: 600px){.bottom-container[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:row}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:32px}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .resend[_ngcontent-%COMP%]{position:relative!important}}.mat-input-element[_ngcontent-%COMP%]{width:512px;padding-bottom:7px;font-family:Roboto;font-style:normal;font-weight:normal}.mobile-para[_ngcontent-%COMP%]{display:none}@media (max-width: 1224px){.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:65px;height:65px;margin:41px 40px 42px 24px}.auth-sign[_ngcontent-%COMP%]{margin-bottom:208px}}@media (max-width: 600px){.auth-sign[_ngcontent-%COMP%]{margin-top:38px;margin-bottom:144px}.banner-auth-migration-wrap[_ngcontent-%COMP%]{margin:32px auto 0!important}.banner-auth-migration[_ngcontent-%COMP%]{width:350px;height:132px}.banner-auth-migration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{height:90px;width:247px;margin-top:20px;margin-bottom:22px}.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:48px;width:48px;margin:45px 16px 39px 23px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{width:334px}.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:120px}}  .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{background-color:#fff!important}.verified[_ngcontent-%COMP%]{margin-top:15%!important;
1margin-bottom:-50%!important;position:relative!important}.mail-container[_ngcontent-%COMP%]{font-style:normal;font-weight:normal;text-align:center;display:flex;flex-direction:column;align-items:center}.mail-container[_ngcontent-%COMP%]   .mail-H[_ngcontent-%COMP%]{margin-top:96px!important}.mail-container[_ngcontent-%COMP%]   .mail-up[_ngcontent-%COMP%]{width:70%}.mail-container[_ngcontent-%COMP%]   .mailerror-para[_ngcontent-%COMP%]{font-size:18px!important;line-height:26px}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{font-size:36px!important;color:#003ac1!important;line-height:48px;margin-top:0!important}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#00d9d5;font-weight:700;font-family:"Roboto Slab"}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-family:Roboto Slab;font-size:36px;line-height:48px;color:#003ac1;margin-bottom:24px;line-height:1}.mail-container[_ngcontent-%COMP%]   .mailerror-heading[_ngcontent-%COMP%]{color:#ff3d71!important}.mail-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:normal;font-style:normal;font-size:18px;line-height:26px;color:#222b45}.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:52%}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:57%}}@media (max-width: 768px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:75%!important}}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:90%!important}}@media (max-width: 375px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:100%!important}}.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:33%;font-size:16px!important;line-height:24px!important}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:35%}}@media (max-width: 768px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:48%}}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}}.mail-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px;width:99px;background:#006fff;border-radius:8px;margin:48px 12px 32px}.mail-container[_ngcontent-%COMP%]   .btnEmail[_ngcontent-%COMP%]{width:147px;height:48px;background:#006fff;border-radius:8px;margin:48px 12px 32px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px;color:#fff;display:flex;flex-direction:row;align-items:center;justify-content:center;text-decoration:none}.mail-container[_ngcontent-%COMP%]   .Med[_ngcontent-%COMP%]{width:99px!important}.mail-container[_ngcontent-%COMP%]   .an[_ngcontent-%COMP%]{width:132px!important}.mail-container[_ngcontent-%COMP%]   .btnText[_ngcontent-%COMP%]{font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px;color:#fff}.mail-container[_ngcontent-%COMP%]   .btnTextView[_ngcontent-%COMP%]{font-family:Open Sans;font-weight:bold;font-size:12px;text-align:left;padding:0;line-height:20px;color:#fff}.mail-container[_ngcontent-%COMP%]   .error-icon[_ngcontent-%COMP%]{width:12px;height:12px;float:left;margin-top:2px}.mail-container[_ngcontent-%COMP%]   .errortext[_ngcontent-%COMP%]{font-size:12px;color:#ff3d71;font-family:Roboto;font-weight:500!important;float:left;margin-left:2px}.mail-container[_ngcontent-%COMP%]   .btnView[_ngcontent-%COMP%]{width:auto;margin-top:7px}.mail-container[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{width:300px}.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{font-size:16px;line-height:24px}.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#003ac1;font-weight:bold}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:800px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]   .email-text[_ngcontent-%COMP%]{color:#222b45!important}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .mailerror-para[_ngcontent-%COMP%]{margin-left:12px!important;margin-right:12px!important}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:320px!important;font-size:18px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]   .email-text[_ngcontent-%COMP%]{word-break:break-all;color:#222b45!important}}.mail-container[_ngcontent-%COMP%]   .RR[_ngcontent-%COMP%]{display:flex;flex-direction:row}.verify[_ngcontent-%COMP%]{margin-top:6%!important}@media (max-width: 1224px){.verify[_ngcontent-%COMP%]{margin-bottom:8%!important}}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{margin-bottom:300px}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-top:52px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:680px;font-size:18px}}@media (max-width: 600px){.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{margin-bottom:200px;width:100%!important}.mail-container[_ngcontent-%COMP%]   .mail-up[_ngcontent-%COMP%]{width:80%!important}.mail-container[_ngcontent-%COMP%]   .mail-H[_ngcontent-%COMP%]{margin-top:72px!important}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px!important}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:22px;line-height:32px;margin-top:52px}}  .mat-checkbox-checked.mat-accent .mat-checkbox-background, .mat-checkbox-indeterminate.mat-accent[_ng
1content-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#006fff}  .mat-checkbox .mat-checkbox-frame{background:rgba(143,155,179,.16);border:1px solid #c5cee0;border-radius:3px}@media only screen and (max-width: 500px){.sucreset[_ngcontent-%COMP%]{margin:0!important}}.mar[_ngcontent-%COMP%]{margin:auto}.field-label2[_ngcontent-%COMP%]{display:block;text-align:left}.new-H[_ngcontent-%COMP%]{height:45px}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px!important;line-height:24px;color:#222b45;font-weight:normal}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.res[_ngcontent-%COMP%]{width:132px!important}.btnRes[_ngcontent-%COMP%]{width:210px!important}.suc-res[_ngcontent-%COMP%]{width:93px!important}.redeemed-container[_ngcontent-%COMP%]{margin-top:13%}@media (max-width: 1224px){.redeemed-container[_ngcontent-%COMP%]{margin-top:6%}}@media only screen and (max-width: 500px){.redeemed-container[_ngcontent-%COMP%]{margin-top:2%!important}}']}),t})();var lA=n(8640);const hA=new At.y(lA.Z);let dA=(()=>{class t{constructor(t,e){this.afs=t,this.auth=e}get limits(){return this.afs.collection("users").doc(this.auth.user.uid).collection("limits").doc("all").valueChanges()}get MA_CHANGE_EMAIL_LIMIT(){return this.limits.pipe(qe(1),(0,Ut.U)(t=>new pA((null==t?void 0:t.MA_CHANGE_EMAIL_LIMIT)?t.MA_CHANGE_EMAIL_LIMIT.toDate():new Date)))}get MA_VERIFY_EMAIL_LIMIT(){return this.limits.pipe(qe(1),(0,Ut.U)(t=>new pA((null==t?void 0:t.MA_VERIFY_EMAIL_LIMIT)?t.MA_VERIFY_EMAIL_LIMIT.toDate():new Date)))}get MA_PASSWORD_RESET_LIMIT(){return new pA(new Date(localStorage.getItem("MA_RESET_PASSWORD_LIMIT")))}get MA_SIGNUP_LIMIT(){return new pA(new Date(localStorage.getItem("MA_VERIFY_EMAIL_SIGNUP_LIMIT")))}setChangeEmailLimit(){const t=this.addDays(new Date,7);return this.limitsDoc().set({MA_CHANGE_EMAIL_LIMIT:t},{merge:!0})}setVerifyEmailLimit(){const t=this.addMinutes(new Date,5);return this.limitsDoc().set({MA_VERIFY_EMAIL_LIMIT:t},{merge:!0})}setVerifyEmailLimitSignup(){const t=this.addMinutes(new Date,5);localStorage.setItem("MA_VERIFY_EMAIL_SIGNUP_LIMIT",t.toISOString())}setPasswordResetLimit(){const t=this.addMinutes(new Date,2);localStorage.setItem("MA_RESET_PASSWORD_LIMIT",t.toISOString())}addMinutes(t,e){return new Date(t.getTime()+6e4*e)}addDays(t,e){const n=new Date;return n.setDate(n.getDate()+1),n}limitsDoc(){return this.afs.collection("users").doc(this.auth.user.uid).collection("limits").doc("all")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(h_),i.LFG(eT))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class pA{constructor(t){this.limit=t}
1valid(){if(this.limit)return this.limit.getTime()<=(new Date).getTime()}invalid(){return this.limit.getTime()>(new Date).getTime()}getTime(){return this.limit.getTime()-(new Date).getTime()}}var fA=n(6465),gA=n(6102);new class extends gA.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,o=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<o&&(t=e.shift()));if(this.active=!1,n){for(;++i<o&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends fA.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});n(4581);let mA=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new ve.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new At.y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(EE(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Et.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Lt(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=BT(e),i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>zS(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.R0b),i.LFG(YT),i.LFG(s,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(i.R0b),i.LFG(YT),i.LFG(s,8))},token:t,providedIn:"root"}),t})(),_A=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new ve.xQ,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(EE(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHe
1ight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(YT),i.LFG(i.R0b),i.LFG(s,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(YT),i.LFG(i.R0b),i.LFG(s,8))},token:t,providedIn:"root"}),t})(),yA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})(),bA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[jk,QT,yA],jk,yA]}),t})();class vA{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class CA extends vA{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class xA extends vA{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class wA extends vA{constructor(t){super(),this.element=t instanceof i.SBq?t.nativeElement:t}}class OA{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof CA?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof xA?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof wA?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class PA extends OA{constructor(t,e,n,i,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=o}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let MA=(()=>{class t extends OA{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.
1injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(s))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),t})(),TA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const kA=ek();class SA{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=GT(-this._previousScrollPosition.left),t.style.top=GT(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",o=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),kA&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),kA&&(e.scrollBehavior=i,n.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class EA{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class AA{enable(){}disable(){}attach(){}}function IA(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function RA(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class NA{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();IA(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let LA=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler
1=e,this._ngZone=n,this.noop=()=>new AA,this.close=t=>new EA(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new SA(this._viewportRuler,this._document),this.reposition=t=>new NA(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(mA),i.LFG(_A),i.LFG(i.R0b),i.LFG(s))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(mA),i.LFG(_A),i.LFG(i.R0b),i.LFG(s))},token:t,providedIn:"root"}),t})();class DA{constructor(t){if(this.scrollStrategy=new AA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class FA{constructor(t,e,n,i,o){this.offsetX=n,this.offsetY=i,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class UA{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let ZA=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(s))},token:t,providedIn:"root"}),t})(),qA=(()=>
1{class t extends ZA{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(s))},token:t,providedIn:"root"}),t})(),VA=(()=>{class t extends ZA{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._pointerDownListener=t=>{this._pointerDownEventTarget=ok(t)},this._clickListener=t=>{const e=ok(t),n="click"===t.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:e;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let o=i.length-1;o>-1;o--){const r=i[o];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(e)||r.overlayElement.contains(n))break;r._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s),i.LFG(YT))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(s),i.LFG(YT))},token:t,providedIn:"root"}),t})(),jA=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||rk()){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const e=this._document.createElement("div");e.classList.add(t),rk()?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s),i.LFG(YT))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(s),i.LFG(YT))},token:t,providedIn:"root"}),t})();class zA{constructor(t,e,n,i,o,r,s,a,c){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=o,this._keyboardDispatcher=r,this._document=s,this._location=a,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new ve.xQ,this._attachments=new ve.xQ,this._detachments=new ve.xQ,this._locationChanges=Ae.w.EMPTY,this._backdropClickHandler=t=>
1this._backdropClick.next(t),this._keydownEvents=new ve.xQ,this._outsidePointerEvents=new ve.xQ,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(qe(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=GT(this._config.width),t.height=GT(this._config.height),t.minWidth=GT(this._config.minWidth),t.minHeight=GT(this._config.minHeight),t.maxWidth=GT(this._config.maxWidth),t.maxHeight=GT(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;zT(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(EC((0,xe.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.parentNode&&t.parentNode.removeChild(t),this._backdropElement===t&&(this._backdropElement=null))}}const GA="cdk-overlay-connected-position-bounding-box",BA=/([A-Za-z%]+)$/;
1class HA{constructor(t,e,n,i,o){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new ve.xQ,this._resizeSubscription=Ae.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(GA),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let o;for(let r of this._preferredPositions){let s=this._getOriginPoint(t,r),a=this._getOverlayPoint(s,e,r),c=this._getOverlayFit(a,e,n,r);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,s);this._canFitWithFlexibleDimensions(c,a,n)?i.push({position:r,origin:s,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(s,r)}):(!o||o.overlayFit.visibleArea<c.visibleArea)&&(o={overlayFit:c,overlayPoint:a,originPoint:s,position:r,overlayRect:e})}if(i.length){let t=null,e=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>e&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&YA(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(GA),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,o=this._isRtl()?t.left:t.right;n="start"==e.originX?i:o}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,o;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+o}}_getOverlayFit(t,e,n,i){const o=JA(e);let{x:r,y:s}=t,a=this._getOffset(i,"x"),c=this._getOffset(i,"y");a&&(r+=a),c&&(s+=c);let u=0-s,l=s+o.height-n.height,h=this._subtractOverflows(o.width,0-r,r+o.width-n.width),d=this._subtractOverflows(o.height,u,l),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:o.width*o.height===p,fitsInViewportVertically:d===o.height,fitsInViewportHorizontally:h==o.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,o=n.right-e.x,r=QA(this._overlayRef.getConfig().minHeight),s=QA(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=s&&s<=o;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=JA(e),o=this._viewportRect,r=Math.max(t.x+i.width-o.width,0),s=Math.max(t.y+i.height-o.height,0),a=Math.max(o.top-n.top-t.y,0),c=Math.max(o.left-n.left-t.x,0);let u=0,l=0;return u=i.width<=o.width?c||-r:t.x<this._viewportMargin?o.left-n.left-t.x:0,l=i.height<=o.height?a||-s:t.y<this._viewportMargin?o.top-n.top-t.y:0,this._previousPushAmount={x:u,y:l},{x:t.x+u,y:t.y+l}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new UA(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let o=0;o<e.length;o++)e[o].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,i=this._isRtl();let o,r,s,a,c,u;if("top"===e.overlayY)r=t.y,o=n.height-r+this._viewportMargin;else if("bottom"===e.overlayY)s=n.height-t.y+2*this._viewportMargin,o=n.height-s+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),i=this._lastBoundingBoxSize.height;o=2*e,r=t.y-e,o>i&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)u=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)c=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-i/2)}return{top:r,left:c,bottom:s,right:u,width:a,height:o}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=GT(n.height),i.top=GT(n.top),i.bottom=GT(n.bottom),i.width=GT(n.width),i.left=GT(n.left),i.right=GT(n.r
1ight),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=GT(t)),o&&(i.maxWidth=GT(o))}this._lastBoundingBoxSize=n,YA(this._boundingBox.style,i)}_resetBoundingBoxStyles(){YA(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){YA(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),o=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();YA(n,this._getExactOverlayY(e,t,i)),YA(n,this._getExactOverlayX(e,t,i))}else n.position="static";let s="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(s+=`translateX(${a}px) `),c&&(s+=`translateY(${c}px)`),n.transform=s.trim(),r.maxHeight&&(i?n.maxHeight=GT(r.maxHeight):o&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=GT(r.maxWidth):o&&(n.maxWidth="")),YA(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return o.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":i.top=GT(o.y),i}_getExactOverlayX(t,e,n){let i,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=GT(r.x),o}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:RA(t,n),isOriginOutsideView:IA(t,n),isOverlayClipped:RA(e,n),isOverlayOutsideView:IA(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&zT(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof i.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function YA(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function QA(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(BA);return n&&"px"!==n?null:parseFloat(e)}return t||null}function JA(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class $A{constructor(t,e,n,i,o,r,s){this._preferredPositions=[],this._positionStrategy=new HA(n,i,o,r,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}
1recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const o=new FA(t,e,n,i);return this._preferredPositions.push(o),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const WA="cdk-global-overlay-wrapper";class KA{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(WA),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:o,maxWidth:r,maxHeight:s}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),c=!("100%"!==o&&"100vh"!==o||s&&"100%"!==s&&"100vh"!==s);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(WA),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let XA=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new KA}connectedTo(t,e,n){return new $A(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new HA(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(_A),i.LFG(s),i.LFG(YT),i.LFG(jA))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(_A),i.LFG(s),i.LFG(YT),i.LFG(jA))},token:t,providedIn:"root"}),t})(),tI=0,eI=(()=>{class t{constructor(t,e,n,i,o,r,s,a,c,u,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=o,this._injector=r,this._ngZone=s,this._document=a,this._directionality=c,this._location=u,this._outsideClickDispatcher=l}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),o=new DA(t);return o.direction=o.direction||this._directionality.value,new zA(i,e,
1n,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+tI++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new PA(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(LA),i.LFG(jA),i.LFG(i._Vd),i.LFG(XA),i.LFG(qA),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(s),i.LFG(Vk),i.LFG(C),i.LFG(VA))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const nI={provide:new i.OlP("cdk-connected-overlay-scroll-strategy"),deps:[eI],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let iI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[eI,nI],imports:[[jk,TA,bA],bA]}),t})();function oI(t,e){}class rI{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const sI={dialogContainer:g_("dialogContainer",[b_("void, exit",y_({opacity:0,transform:"scale(0.7)"})),b_("enter",y_({transform:"none"})),C_("* => enter",m_("150ms cubic-bezier(0, 0, 0.2, 1)",y_({transform:"none",opacity:1}))),C_("* => void, * => exit",m_("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",y_({opacity:0})))])};let aI=(()=>{class t extends OA{constructor(t,e,n,o,r,s){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=r,this._focusMonitor=s,this._animationStateChanged=new i.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=o}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=ik(),n=this._elementRef.nativeElement;(!e||e===this._document.body||e===n||n.contains(e))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=ik())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=ik();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(Pk),i.Y36(i.sBO),i.Y36(s,8),i.Y36(rI),i.Y36(Nk))},t.\u0275dir=i.lG2({type:t,viewQuery:function(t,e){if(1&t&&i.Gf(MA,7),2&t){let t;i.iGM(t=i.CRH())&&(e._portalOutlet=t.first)}},features:[i.qOj]}),t})(),cI=(()=>{class t extends aI{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&i.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(i.Ikx("id",e._id),i.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),i.d8E("@dialogContainer",e._state))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&i.YNc(0,oI,0,0,"ng-template",0)},directives:[MA],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[sI.dialogContainer]}}),t})(),uI=0;class lI{constructor(t,e,n="mat-dialog-"+uI++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new ve.xQ,this._afterClosed=new ve.xQ,this._beforeClosed=new ve.xQ,this._state=0,e._id=n,e._animationStateChanged.pipe(Lt(t=>"opened"===t.state),qe(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Lt(t=>"closed"===t.state),qe(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Lt(t=>27===t.keyCode&&!this.disableClose&&!FT(t))).subscribe(t=>{t.preventDefault(),hI(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():hI(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Lt(t=>"closing"===t.state),qe(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function hI(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const dI=new i.OlP("MatDialogData"),pI=new i.OlP("mat-dialog-default-options"),fI=new i.OlP("mat-dialog-scroll-strategy"),gI={provide:fI,deps:[eI],useFactory:function(t){return()=>t.scrollStrategies.block()}};let mI=(()=>{class t{constructor(t,e,n,i,o,r,s,a,c){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ve.xQ,this._afterOpenedAtThisLevel=new ve.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=WC(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(pn(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new rI),e.id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),o=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(()=>this._removeOpenDialog(o)),this.afterOpened.next(o),i._initializeWithAttachedContent(),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new DA({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=i.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:rI,useValue:e}]}),o=new CA(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(o).instance}_attachDialogContent(t,e,n,o){const r=new this._dialogRefConstructor(n,e,o.id);if(t instanceof i.Rgc)e.attachTemplatePortal(new xA(t,null,{$implicit:o.data,dialogRef:r}));else{const n=this._createInjector(o,r,e),i=e.attachComponentPortal(new CA(t,o.viewContainerRef,n));r.componentInstance=i.instance}return r.updateSize(o.width,o.height).updatePosition(o.position),r}_createInjector(t,e,n){const o=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return t.direction&&(!o||!o.get(Vk,null,i.XFs.Optional))&&r.push({provide:Vk,useValue:{value:t.direction,change:(0,Et.of)()}}),i.zs3.create({parent:o||this._injector,providers:r})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEac
1h((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i!==t&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(eI),i.Y36(i.zs3),i.Y36(void 0),i.Y36(void 0),i.Y36(jA),i.Y36(void 0),i.Y36(i.DyG),i.Y36(i.DyG),i.Y36(i.OlP))},t.\u0275dir=i.lG2({type:t}),t})(),_I=(()=>{class t extends mI{constructor(t,e,n,i,o,r,s){super(t,e,i,r,s,o,lI,cI,dI)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(eI),i.LFG(i.zs3),i.LFG(C,8),i.LFG(pI,8),i.LFG(fI),i.LFG(t,12),i.LFG(jA))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),yI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[_I,gI],imports:[[iI,TA,$k],$k]}),t})(),bI=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["screen-loading"]],decls:2,vars:0,consts:[[1,"rc","jc_c","ai_c"],[1,"imgloading"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i._UZ(1,"div",1),i.qZA())},styles:[""]}),t})();function vI(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",24),i._uU(2," Please enter your email "),i.BQk())}function CI(t,e){1&t&&(i._UZ(0,"mat-icon",24),i._uU(1," Incorrect email format "))}function xI(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i.YNc(1,vI,3,0,"ng-container",5),i.YNc(2,CI,2,0,"ng-template",null,23,i.W1O),i.qZA()),2&t){const t=i.MAs(3),e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.isEmptyControl(e.newEmail))("ngIfElse",t)}}function wI(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",24),i._uU(2," Please enter your current password "),i.BQk())}function OI(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i.YNc(1,wI,3,0,"ng-container",15),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngIf",t.isEmptyControl(t.password))}}function PI(t,e){if(1&t&&(i.TgZ(0,"button",25),i._uU(1," Change email "),i.qZA()),2&t){const t=i.oxw(2);i.Q6J("disabled",t.loading||t.formGroup.invalid)}}function MI(t,e){1&t&&i._UZ(0,"screen-loading")}function TI(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"p",7),i._uU(2," You can only change your email once every 7 days "),i.qZA(),i.TgZ(3,"form",8),i.NdJ("ngSubmit",function(){return i.CHM(t),i.oxw().submit()}),i.TgZ(4,"div",9),i.TgZ(5,"div",10),i.TgZ(6,"span"),i._uU(7,"New Email"),i.qZA(),i.qZA(),i.TgZ(8,"mat-form-field",11),i._UZ(9,"input",12),i._UZ(10,"mat-icon",13),i.qZA(),i.TgZ(11,"div",14),i.YNc(12,xI,4,2,"mat-error",15),i.qZA(),i.qZA(),i.TgZ(13,"div",9),i.TgZ(14,"div",10),i.TgZ(15,"span"),i._uU(16,"Current Password"),i.qZA(),i.qZA(),i.TgZ(17,"mat-form-field",16),i._UZ(18,"input",17),i.TgZ(19,"span",18),i.NdJ("click",function(){i.CHM(t);const e=i.oxw();return e.hide=!e.hide}),i._UZ(20,"mat-icon",19),i.qZA(),i.qZA(),i.TgZ(21,"div",14),i.YNc(22,OI,2,1,"mat-error",15),i.qZA(),i.qZA(),i.qZA(),i.TgZ(23,"div",20),i.YNc(24,PI,2,1,"button",21),i.YNc(25,MI,1,0,"ng-template",null,22,i.W1O),i.qZA(),i.BQk()}if(2&t){const t=i.MAs(26),e=i.oxw();i.xp6(3),i.Q6J("formGroup",e.formGroup),i.xp6(9),i.Q6J("ngIf",e.newEmail.invalid&&(e.newEmail.touched||e.newEmail.dirty)),i.xp6(6),i.Q6J("type",e.hide?"password":"text"),i.xp6(1),i.uIk("aria-pressed",e.hide),i.xp6(1),i.s9C("svgIcon",e.hide?"lockEye":"openEye"),i.xp6(2),i.Q6J("ngIf",e.password.invalid&&(e.password.touched||e.password.dirty)),i.xp6(2),i.Q6J("ngIf",!e.loading)("ngIfElse",t)}}function kI(t,e){1&t&&i._UZ(0,"screen-loading")}function SI(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"p",26),i._uU(1),i.qZA(),i.TgZ(2,"p",27),i._uU(3,"A backup email has been sent out to your previous email address "),i.qZA(),i.TgZ(4,"div",20),i.TgZ(5,"button",28),i.NdJ("
1click",function(){return i.CHM(t),i.oxw().isChangedEmail()}),i._uU(6," Ok "),i.qZA(),i.YNc(7,kI,1,0,"ng-template",null,22,i.W1O),i.qZA()}if(2&t){const t=i.oxw();i.xp6(1),i.hij("Email verification has been sent to ",t.newEmail.value," ")}}let EI=(()=>{class t{constructor(t,e,n,i,o,r){this._formBuilder=t,this.auth=e,this.toastr=n,this.appLimit=i,this.router=o,this.dialogRef=r,this.loading=!1,this.hide=!0,this.issuccsess=!1,this.formGroup=this._formBuilder.group({new_email:[null,[_v.required,_v.email]],password:[null,_v.required]})}get password(){return this.formGroup.get("password")}get newEmail(){return this.formGroup.get("new_email")}submit(){if(console.log("Submitting form!"),this.auth.user.email.toLowerCase()===this.newEmail.value.toLowerCase())return void this.toastr.error("Please use a different email, this email is the same associated to your current account");const t=this.auth.user.email;console.log("Old email",t),this.loading=!0,this.appLimit.MA_CHANGE_EMAIL_LIMIT.pipe(qe(1),Te(t=>t.valid()?(console.log("limit valid"),this.auth.reauthenticateWithCredential(this.password.value)):(this.toastr.error("You can only change your email address once every 7 days"),this.loading=!1,hA)),Te(()=>this.auth.updateEmail(this.newEmail.value)),Te(()=>this.auth.reauthenticateWithCredential(this.password.value,this.newEmail.value)),Te(()=>this.auth.sendVerificationMail()),Te(()=>this.appLimit.setChangeEmailLimit()),Te(()=>this.auth.trackEmailChange(t,this.newEmail.value)),RC(()=>{this.loading=!1})).subscribe(t=>(this.issuccsess=!0,this.loading=!1,localStorage.setItem("emailChanged","true"),this.router.navigate(["auth","verify"])),t=>{"auth/wrong-password"===(console.log(t),t.code)?this.toastr.error("Wrong password. Please enter the account's most recent password."):this.toastr.error(tT.Parse(t.code))})}isEmptyControl(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}isMenuOpen(){this.dialogRef.close()}isChangedEmail(){console.log("The dialog change email"),this.dialogRef.close(),location.reload()}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(kC),i.Y36(eT),i.Y36(TT),i.Y36(dA),i.Y36(FO),i.Y36(lI))},t.\u0275cmp=i.Xpm({type:t,selectors:[["profile-change-email-dialog"]],decls:8,vars:2,consts:[[1,"menu-close"],[3,"click"],["svgIcon","menu_close"],[1,"change-email-container"],["svgIcon","info_color"],[4,"ngIf","ngIfElse"],["hasChange",""],[1,"hed"],["id","ngForm",3,"formGroup","ngSubmit"],[1,"form-field","form-field--mb-sm","cc"],[1,"field-label"],["appearance","outline","color","primary",1,"ma-field"],["matInput","","formControlName","new_email","type","email","placeholder","New email"],["matSuffix","","svgIcon","mail"],[1,"field-hide"],[4,"ngIf"],["appearance","outline",1,"ma-field"],["matInput","","formControlName","password","placeholder","Current password","autocomplete","new-password",3,"type"],["form","#","matSuffix","",3,"click"],[3,"svgIcon"],[1,"buttons-container"],["class","button-success","form","ngForm","type","submit",3,"disabled",4,"ngIf","ngIfElse"],["spinner",""],["hasValueControl",""],["matSuffix","","svgIcon","errorInfo"],["form","ngForm","type","submit",1,"button-success",3,"disabled"],[1,"suc-para"],[1,"pre-para"],["form","ngForm","type","submit",1,"button-success",3,"click"]],template:function(t,e){if(1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"span",1),i.NdJ("click",function(){return e.isMenuOpen()}),i._UZ(2,"mat-icon",2),i.qZA(),i.qZA(),i.TgZ(3,"div",3),i._UZ(4,"mat-icon",4),i.YNc(5,TI,27,8,"ng-container",5),i.YNc(6,SI,9,1,"ng-template",null,6,i.W1O),i.qZA()),2&t){const t=i.MAs(7);i.xp6(5),i.Q6J("ngIf",!e.issuccsess)("ngIfElse",t)}},directives:[qS,R,yC,qv,xC,wE,UE,hv,Zv,OC,yE,lE,bI],styles:["form[_ngcontent-%COMP%]{margin-top:15px}.menu-close[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end}.menu-close[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:12px;height:12px}.change-email-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;font-style:normal;font-weight:normal}.change-email-container[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:346px;max-width:346px;height:40px}.change-email-container[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:24px;height:24px;color:#8f9bb3}.change-email-container[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:relative;bottom:5px}.change-email-container[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block;margin-top:25px}.change-email-container[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px!important;line-height:24px;color:#fff;font-weight:normal}.change-email-container[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{margin-left:0!important}.change-email-container[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{position:relative;bottom:-1px;height:14px;width:14px}.change-email-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:53px;height:53px}.change-email-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:28px!important;font-size:15px;line-height:10px;font-family:Roboto!important;color:#fff!important;text-align:center}.change-email-container[_ngcontent-%COMP%]   .buttons-container[_ngcontent-%COMP%]{margin:40px auto 50px}.change-email-container[_ngcontent-%COMP%]   .buttons-container[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{background:#006FFF!important;border-radius:8px!important;font-family:Open Sans!important;font-style:normal!important;font-weight:bold!important;font-size:12px!important;line-height:16px!important;text-align:center;color:#fff;width:114px!important;height:32px!important;border:none!important}.change-email-container[_ngcontent-%COMP%]   .suc-para[_ngcontent-%COMP%]{font-size:24px;line-height:30px;width:auto;height:42px;text-align:center}.change-email-container[_ngcontent-%COMP%]   .pre-para[_ngcontent-%COMP%]{width:230px;height:30px;text-align:center;line-height:20px!important}@media only screen and (max-width: 500px){.menu-close[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:20px!important;height:20px!important}.field-label[_ngcontent-%COMP%]{margin-top:15px!important}mat-form-field[_ngcontent-%COMP%]{width:334px!important;max-width:334px!important}.buttons-container[_ngcontent-%COMP%]{margin:20px auto 40px!important}.suc-para[_ngcontent-%COMP%]{font-size:20px!important}.hed[_ngcontent-%COMP%]{width:100%;line-height:22px!important}}@media only screen and (max-width: 375px){.hed[_ngcontent-%COMP%]{width:80%;line-height:22px!important}}"]}),t})();function AI(t,e){return n=>{const i=n.get(t),o=n.get(e);return void 0!==i&&void 0!==o&&(null==i?void 0:i.value)!==(null==o?void 0:o.value)?{match:!0}:null}}function II(t){return e=>void 0!==t&&t.includes(e.value)?null:{providedValueNotIncludedInOptions:!0}}let RI=(()=>{class t{constructor(t){this._http=t}getTrusts(){return this._http.get("https://us-central1-medics-academy-internal-db.cloudfunctions.net/apiHandler/deaneries").pipe((0,Ut.U)(t=>
1t.data.deaneries),(0,Ut.U)(t=>{const e=t.map(t=>t.trusts);return[].concat(...e)}))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(re))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var NI=n(3098);class LI{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new DI(t,this.delay,this.scheduler))}}class DI extends Nt.L{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,o=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(o);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(DI.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new FI(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(NI.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(NI.P.createComplete()),this.unsubscribe()}}class FI{constructor(t,e){this.time=t,this.notification=e}}const UI=["panel"];function ZI(t,e){if(1&t&&(i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA()),2&t){const t=e.id,n=i.oxw();i.Q6J("id",n.id)("ngClass",n._classList),i.uIk("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(t))}}const qI=["*"];let VI=0;class jI{constructor(t,e){this.source=t,this.option=e}}const zI=Xk(class{}),GI=new i.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let BI=(()=>{class t extends zI{constructor(t,e,n,o){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=Ae.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new i.vpe,this.opened=new i.vpe,this.closed=new i.vpe,this.optionActivated=new i.vpe,this._classList={},this.id="mat-autocomplete-"+VI++,this.inertGroups=(null==o?void 0:o.SAFARI)||!1,this._autoActiveFirstOption=!!n.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=VT(t)}set classList(t){this._classList=t&&t.length?function(t,e=/\s+/){const n=[];if(null!=t){const i=Array.isArray(t)?t:`${t}`.split(e);for(const t of i){const e=`${t}`.trim();e&&n.push(e)}}return n}(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new vk(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new jI(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(GI),i.Y36(YT))},t.\u0275dir=i.lG2({type:t,viewQuery:function(t,e){if(1&t&&(i.Gf(i.Rgc,7),i.Gf(UI,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.template=t.first),i.iGM(t=i.CRH())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[i.qOj]}),t})(),HI=(()=>{class t extends BI{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,yS,5),i.Suo(n,xS,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.optionGroups=t),i.iGM(t=i.CRH())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[i._Bn([{provide:fS,useExisting:t}]),i.qOj],ngContentSelectors:qI,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,ZI,3,4,"ng-template"))},directives:[S],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t})();const YI=new i.OlP("mat-autocomplete-scroll-strategy"),QI={provide:YI,deps:[eI],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},JI={provide:cv,useExisting:(0,i.Gpc)(()=>WI),multi:!0};let $I=(()=>{class t{constructor(t,e,n,i,o,r,s,a,c,u,l){this._element=t,this._overlay=e,this._viewContainerRef
1=n,this._zone=i,this._changeDetectorRef=o,this._dir=s,this._formField=a,this._document=c,this._viewportRuler=u,this._defaults=l,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Ae.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new ve.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=WC(()=>this.autocomplete&&this.autocomplete.options?(0,xe.T)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe(qe(1),Te(()=>this.optionSelections))),this._scrollStrategy=r}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=VT(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,xe.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Lt(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Lt(()=>this._overlayAttached)):(0,Et.of)()).pipe((0,Ut.U)(t=>t instanceof vS?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,xe.T)(zS(this._document,"click"),zS(this._document,"auxclick"),zS(this._document,"touchend")).pipe(Lt(t=>{const e=ok(t),n=this._formField?this._formField._elementRef.nativeElement:null,i=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!n||!n.contains(e))&&(!i||!i.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(27===e&&!FT(t)&&t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const n=this.autocomplete._keyManager.activeItem,i=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const t=this._zone.onStable.pipe(qe(1)),e=this.autocomplete.options.changes.pipe((0,SC.b)(()=>this._positionStrategy.reapplyLastPosition()),function(t,e=un.P){const n=function(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-e.now():Math.abs(t);return t=>t.lift(new LI(n,e))}(0));return(0,xe.T)(t,e).pipe(Te(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),qe(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,
1n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new xA(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe(t=>{(27===t.keyCode&&!FT(t)||38===t.keyCode&&FT(t,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new DA({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],n=this._aboveClass,i=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:n},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:n}];let o;o="above"===this.position?i:"below"===this.position?e:[...e,...i],t.withPositions(o)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,n=function(t,e,n){if(n.length){let i=e.toArray(),o=n.toArray(),r=0;for(let e=0;e<t+1;e++)i[e].group&&i[e].group===o[r]&&r++;return r}return 0}(t,e.options,e.optionGroups);if(0===t&&1===n)e._setScrollTop(0);else if(e.panel){const n=e.options.toArray()[t];if(n){const t=n._getHostElement(),i=function(t,e,n,i){return t<n?t:t+e>n+i?Math.max(0,t-i+e):n}(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(i)}}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(eI),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(YI),i.Y36(Vk,8),i.Y36(xE,9),i.Y36(s,8),i.Y36(_A),i.Y36(GI,8))},t.\u0275dir=i.lG2({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[i.TTD]}),t})(),WI=(()=>{class t extends $I{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&i.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&i.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[i._Bn([JI]),i.qOj]}),t})(),KI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[QI],imports:[[iI,wS,$k,B],yA,wS,$k]}),t})();function XI(t,e){1&t&&(i.TgZ(0,"mat-error"),i._UZ(1,"mat-icon",40),i._uU(2," This field cannot be blank "),i.qZA())}function tR(t,e){1&t&&(i.TgZ(0,"mat-error"),i._UZ(1,"mat-icon",40),i._uU(2," This field cannot be blank "),i.qZA())}function eR(t,e){1&t&&(i.ynx(0),i._uU(1," Please enter a valid email address "),i.BQk())}function nR(t,e){1&t&&i._uU(0," Incorrect email format")}function iR(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i._UZ(1,"mat-icon",40),i.YNc(2,eR,2,0,"ng-container",41),i.YNc(3,nR,1,0,"ng-template",null,42,i.W1O),i.qZA()),2&t){const t=i.MAs(4),e=i.oxw(3);i.xp6(2),i.Q6J("ngIf",e.isEmptyControl(e.email))("ngIfElse",t)}}function oR(t,e){if(1&t&&(i.TgZ(0,"div",10),i.YNc(1,iR,5,2,"mat-error",11),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngIf",t.email.invalid&&(t.email.touched||t.email.dirty))}}function rR(t,e){if(1&t){const t=i.EpF();
1i.TgZ(0,"div",43),i.TgZ(1,"button",44),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).openProfileChangeEmailDialog()}),i._uU(2," Change email "),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("disabled",!(null!=t.user&&t.user.thinkific_uid))}}function sR(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",40),i._uU(2," Please enter a password "),i.BQk())}function aR(t,e){1&t&&(i._UZ(0,"mat-icon",40),i._uU(1," Password must contain at least eight characters "))}function cR(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i.YNc(1,sR,3,0,"ng-container",41),i.YNc(2,aR,2,0,"ng-template",null,42,i.W1O),i.qZA()),2&t){const t=i.MAs(3),e=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.isEmptyControl(e.password))("ngIfElse",t)}}function uR(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",45),i.TgZ(1,"div",5),i.TgZ(2,"div",6),i.TgZ(3,"span"),i._uU(4,"Password"),i.qZA(),i.qZA(),i.TgZ(5,"mat-form-field",7),i._UZ(6,"input",46),i.TgZ(7,"span",47),i.NdJ("click",function(){i.CHM(t);const e=i.oxw(2);return e.hide=!e.hide}),i._UZ(8,"mat-icon",48),i.qZA(),i.qZA(),i.TgZ(9,"div",10),i.YNc(10,cR,4,2,"mat-error",11),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(2);i.Q6J("ngClass",t.isSignup?"sigField form-field--with-icon":"profField"),i.xp6(6),i.Q6J("type",t.hide?"password":"text"),i.xp6(1),i.uIk("aria-pressed",t.hide),i.xp6(1),i.s9C("svgIcon",t.hide?"lockEye":"openEye"),i.xp6(2),i.Q6J("ngIf",t.password.invalid&&(t.password.dirty||t.password.touched))}}function lR(t,e){if(1&t&&(i.TgZ(0,"mat-option",53),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.Q6J("value",t),i.xp6(1),i.hij(" ",t," ")}}function hR(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"mat-form-field",7),i._UZ(1,"input",49),i.TgZ(2,"mat-autocomplete",50,51),i.NdJ("optionSelected",function(e){return i.CHM(t),i.oxw(2).selectProfession(e)}),i.YNc(4,lR,2,2,"mat-option",52),i.ALo(5,"async"),i.qZA(),i._UZ(6,"mat-icon",38),i.qZA()}if(2&t){const t=i.MAs(3),e=i.oxw(2);i.xp6(1),i.Q6J("matAutocomplete",t),i.xp6(3),i.Q6J("ngForOf",i.lcZ(5,2,e.filteredProfessions$))}}function dR(t,e){1&t&&(i.ynx(0),i._uU(1,"This field cannot be blank. Please select an option "),i.BQk())}function pR(t,e){1&t&&(i.ynx(0),i._uU(1,"Please enter your profession "),i.BQk())}function fR(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i._UZ(1,"mat-icon",40),i.YNc(2,dR,2,0,"ng-container",11),i.YNc(3,pR,2,0,"ng-container",11),i.qZA()),2&t){const t=i.oxw(2);i.xp6(2),i.Q6J("ngIf",!t.customProfession.value),i.xp6(1),i.Q6J("ngIf",t.customProfession.value)}}function gR(t,e){1&t&&(i.TgZ(0,"mat-form-field",7),i._UZ(1,"input",54),i.qZA())}function mR(t,e){if(1&t&&(i.TgZ(0,"mat-option",53),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.Q6J("value",t),i.xp6(1),i.hij(" ",t," ")}}function _R(t,e){if(1&t&&(i.TgZ(0,"mat-option",53),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.Q6J("value",t),i.xp6(1),i.hij(" ",t," ")}}function yR(t,e){if(1&t&&(i._UZ(0,"span",60),i.YNc(1,_R,2,2,"mat-option",52),i.ALo(2,"async")),2&t){const t=i.oxw(5);i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,1,t.doctorGradesList$))}}function bR(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"mat-form-field",7),i._UZ(1,"input",58),i.TgZ(2,"mat-autocomplete",50,59),i.NdJ("optionSelected",function(e){return i.CHM(t),i.oxw(4).selectGrade(e)}),i.YNc(4,mR,2,2,"mat-option",52),i.ALo(5,"async"),i.YNc(6,yR,3,3,"ng-template",37),i.qZA(),i._UZ(7,"mat-icon",38),i.qZA()}if(2&t){const t=i.MAs(3),e=i.oxw(4);i.xp6(1),i.Q6J("matAutocomplete",t),i.xp6(3),i.Q6J("ngForOf",i.lcZ(5,3,e.filteredDoctorGrades$)),i.xp6(2),i.Q6J("ngIf",e.grade.dirty&&!e.isEmptyControl(e.grade))}}function vR(t,e){1&t&&(i.TgZ(0,"mat-error",63),i._uU(1," This field cannot be blank. "),i.qZA())}function CR(t,e){1&t&&(i.TgZ(0,"mat-error"),i._uU(1," Please select from dropdown. "),i.qZA())}function xR(t,e){if(1&t&&(i.ynx(0),i._UZ(1,"mat-icon",61),i.YNc(2,vR,2,0,"mat-error",62),i.YNc(3,CR,2,0,"mat-error",11),i.BQk()),2&t){const t=i.oxw(4);i.xp6(2),i.Q6J("ngIf",t.grade.errors.required),i.xp6(1),i.Q6J("ngIf",t.grade.errors.providedValueNotIncludedInOptions)}}function wR(t,e){if(1&t&&(i.ynx(0),i.YNc(1,bR,8,5,"mat-form-field",25),i.TgZ(2,"div",57),i.YNc(3,xR,4,2,"ng-container",11),i.qZA(),i.BQk()),2&t){i.oxw();const t=i.MAs(11),e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!e.customGrade.value)("ngIfElse",t),i.xp6(2),i.Q6J("ngIf",e.grade.invalid&&(e.grade.dirty||e.grade.touched))}}function OR(t,e){if(1&t&&(i.TgZ(0,"mat-option",53),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.Q6J("value",t),i.xp6(1),i.hij(" ",t," ")}}function PR(t,e){if(1&t&&(i.TgZ(0,"mat-option",53),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.Q6J("value",t),i.xp6(1),i.hij(" ",t," ")}}function MR(t,e){if(1&t&&(i._UZ(0,"span",60),i.YNc(1,PR,2,2,"mat-option",52),i.ALo(2,"async")),2&t){const t=i.oxw(5);i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,1,t.studentGradesList$))}}function TR(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"mat-form-field",7),i._UZ(1,"input",58),i.TgZ(2,"mat-autocomplete",50,64),i.NdJ("optionSelected",function(e){return i.CHM(t),i.oxw(4).selectGrade(e)}),i.YNc(4,OR,2,2,"mat-option",52),i.ALo(5,"async"),i.YNc(6,MR,3,3,"ng-template",37),i.qZA(),i._UZ(7,"mat-icon",38),i.qZA()}if(2&t){const t=i.MAs(3),e=i.oxw(4);i.xp6(1),i.Q6J("matAutocomplete",t),i.xp6(3),i.Q6J("ngForOf",i.lcZ(5,3,e.filteredStudentGrades$)),i.xp6(2),i.Q6J("ngIf",e.grade.dirty&&!e.isEmptyControl(e.grade))}}function kR(t,e){1&t&&(i.TgZ(0,"mat-error",63),i._uU(1," This field cannot be blank. "),i.qZA())}function SR(t,e){1&t&&(i.TgZ(0,"mat-error"),i._uU(1," Please select from dropdown. "),i.qZA())}function ER(t,e){if(1&t&&(i.ynx(0),i._UZ(1,"mat-icon",61),i.YNc(2,kR,2,0,"mat-error",62),i.YNc(3,SR,2,0,"mat-error",11),i.BQk()),2&t){const t=i.oxw(4);i.xp6(2),i.Q6J("ngIf",t.grade.errors.required),i.xp6(1),i.Q6J("ngIf",t.grade.errors.providedValueNotIncludedInOptions)}}function AR(t,e){if(1&t&&(i.ynx(0),i.YNc(1,TR,8,5,"mat-form-field",25),i.TgZ(2,"div",57),i.YNc(3,ER,4,2,"ng-container",11),i.qZA(),i.BQk()),2&t){i.oxw();const t=i.MAs(11),e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!e.customGrade.value)("ngIfElse",t),i.xp6(2),i.Q6J("ngIf",e.grade.invalid&&(e.grade.dirty||e.grade.touched))}}function IR(t,e){1&t&&(i.TgZ(0,"mat-form-field",7),i._UZ(1,"input",65),i.qZA())}const RR=function(t,e){return{"form-field--with-icon sigField":t,profField:e}};function NR(t,e){if(1&t&&(i.TgZ(0,"div",24),i.TgZ(1,"div",5),i.TgZ(2,"div",6),i.TgZ(3,"span"),i._uU(4,"Grade"),i.qZA(),i.qZA(),i.TgZ(5,"div",16),i.TgZ(6,"div",17),i.ynx(7),i.YNc(8,wR,4,3,"ng-container",11),i.YNc(9,AR,4,3,"ng-container",11),i.BQk(),i.qZA(),i.YNc(10,IR,2,0,"ng-template",null,55,i.W1O),i.TgZ(12,"div",27),i.TgZ(13,"mat-checkbox",56),i.TgZ(14,"mat-label"),i._uU(15,"Other"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.oxw(2);i.Q6J("ngClass",i.WLB(3,RR,t.isSignup,!t.isSignup)),i.xp6(8),i.Q6J("ngIf","Doctor"===t.profession.value),i.xp6(1),i.Q6J("ngIf","Medical student"===t.profession.value)}}function LR(t,e){if(1&t&&(i.TgZ(0,"mat-option",69),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.Q6J("value",t),i.xp6(1),i.hij(" ",t," ")}}function DR(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"mat-form-field",7),i._UZ(1,"input",66),i.TgZ(2,"mat-autocomplete",50,67),i.NdJ("optionSelected",function(e){return i.CHM(t),i.oxw(2).selectOrganisation(e)}),i.YNc(4,LR,2,2,"mat-option",68),i.ALo(5,"async"),i.qZA(),i._UZ(6,"mat-icon",38),i.qZA()}if(2&t){const t=i.MAs(3),e=i.oxw(2);i.xp6(1),i.Q6J("matAutocomplete",t),i.xp6(3),i.Q6J("ngForOf",i.lcZ(5,2,e.filteredOrganisations$))}}function FR(t,e){1&t&&(i.ynx(0),i._uU(1,"This field cannot be blank. Please select an option "),i.BQk())}function UR(t,e){1&t&&(i.ynx(0),i._uU(1,"Please enter your organisation's name "),i.BQk())}function ZR(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i._UZ(1,"mat-icon",61),i.YNc(2,FR,2,0,"ng-container",11),i.YNc(3,UR,2,0,"ng-container",11),i.qZA()),2&t){const t=i.oxw(2);i.xp6(2),i.Q6J("ngIf",!t.orgNotFound.value),i.xp6(1),i.Q6J("ngIf",t.orgNotFound.value)}}function qR(t,e){1&t&&(i.TgZ(0,"mat-form-field",7),i._UZ(1,"input",70),i.qZA())}const VR=function(t){return{dashed:t}};function jR(t,e){if(1&t&&(i.TgZ(0,"mat-option",71),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.Q6J("value",t)("ngClass",i.VKq(3,VR,"United States of America"===t.name)),i.xp6(1),i.hij(" ",t.name," ")}}function zR(t,e){if(1&t&&(i.TgZ(0,"mat-option",71),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.Q6J("value",t)("ngClass",i.VKq(3,VR,"United States of America"===t.name)),i.xp6(1),i.hij(" ",t.name," ")}}function GR(t,e){if(1&t&&(i._UZ(0,"span",60),i.YNc(1,zR,2,5,"mat-option",36),i.ALo(2,"async")),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,1,t.countriesList$))}}function BR(t,e){1&t&&(i.TgZ(0,"mat-error"),i._UZ(1,"mat-icon",40),i._uU(2," This field cannot be blank. Please select an option "),i.qZA())}function HR(t,e){if(1&t&&(i.TgZ(0,"mat-option",53),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.Q6J("value",t),i.xp6(1),i.hij(" ",t," ")}}function YR(t,e){if(1&t&&(i.TgZ(0,"mat-option",53),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.Q6J("value",t),i.xp6(1),i.hij(" ",t," ")}}function QR(t,e){if(1&t&&(i._UZ(0,"span",60),i.YNc(1,YR,2,2,"mat-option",52),i.ALo(2,"async")),2&t){const t=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,1,t.timeZoneList$))}}function JR(t,e){1&t&&(i.TgZ(0,"mat-error"),i._UZ(1,"mat-icon",40),i._uU(2," Please select from dropdown "),i.qZA())}function $R(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",32),i.TgZ(1,"div",5),i.TgZ(2,"div",6),i.TgZ(3,"span"),i._uU(4,"Timezone"),i.qZA(),i.qZA(),i.TgZ(5,"div",16),i.TgZ(6,"div",17),i.TgZ(7,"mat-form-field",7),i._UZ(8,"input",72),i.TgZ(9,"mat-autocomplete",50,73),i.NdJ("optionSelected",function(e){return i.CHM(t),i.oxw(2).selectTimeZone(e)}),i.YNc(11,HR,2,2,"mat-option",52),i.ALo(12,"async"),i.YNc(13,QR,3,3,"ng-template",37),i.qZA(),i._UZ(14,"mat-icon",38),i.qZA(),i.TgZ(15,"div",10),i.YNc(16,JR,3,0,"mat-error",11),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.MAs(10),e=i.oxw(2);i.Q6J("ngClass",i.WLB(7,RR,e.isSignup,!e.isSignup)),i.xp6(8),i.Q6J("matAutocomplete",t),i.xp6(3),i.Q6J("ngForOf",i.lcZ(12,5,e.filteredTimeZone$)),i.xp6(2),i.Q6J("ngIf",e.timezone.dirty&&!e.isEmptyControl(e.timezone)),i.xp6(3),i.Q6J("ngIf",e.timezone.invalid)}}function WR(t,e){if(1&t&&(i.TgZ(0,"div",32),i.TgZ(1,"div",5),i.TgZ(2,"div",6),i.TgZ(3,"span"),i._uU(4,"Bio"),i.qZA(),i.qZA(),i.TgZ(5,"div",16),i.TgZ(6,"div",17),i.TgZ(7,"mat-form-field",7),i._UZ(8,"textarea",74),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.oxw(2);i.Q6J("ngClass",i.WLB(1,RR,t.isSignup,!t.isSignup))}}const KR=function(t){return{"form-field--with-icon":t}},XR=function(){return["Doctor","Medical student"]};function tN(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"form",2),i.NdJ("ngSubmit",function(){return i.CHM(t),i.oxw().submit()}),i.TgZ(1,"div",3),i.TgZ(2,"div",4),i.TgZ(3,"div",5),i.TgZ(4,"div",6),i.TgZ(5,"span"),i._uU(6,"First Name"),i.qZA(),i.qZA(),i.TgZ(7,"mat-form-field",7),i._UZ(8,"input",8),i._UZ(9,"mat-icon",9),i.qZA(),i.TgZ(10,"div",10),i.YNc(11,XI,3,0,"mat-error",11),i.qZA(),i.qZA(),i.qZA(),i.TgZ(12,"div",12),i.TgZ(13,"div",13),i.TgZ(14,"div",6),i.TgZ(15,"span"),i._uU(16,"Last Name"),i.qZA(),i.qZA(),i.TgZ(17,"mat-form-field",7),i._UZ(18,"input",14),i._UZ(19,"mat-icon",9),i.qZA(),i.TgZ(20,"div",10),i.YNc(21,tR,3,0,"mat-error",11),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(22,"div",15),i.TgZ(23,"div",5),i.TgZ(24,"div",6),i.TgZ(25,"span"),i._uU(26,"Email"),i.qZA(),i.qZA(),i.TgZ(27,"div",16),i.TgZ(28,"div",17),i.TgZ(29,"mat-form-field",18),i._UZ(30,"input",19),i._UZ(31,"mat-icon",20),i.qZA(),i.YNc(32,oR,2,1,"div",21),i.qZA(),i.YNc(33,rR,3,1,"div",22),i.qZA(),i.qZA(),i.qZA(),i.YNc(34,uR,11,5,"div",23),i.TgZ(35,"div",24),i.TgZ(36,"div",5),i.TgZ(37,"div",6),i.TgZ(38,"span"),i._uU(39,"Profession"),i.qZA(),i.qZA(),i.TgZ(40,"div",16),i.TgZ(41,"div",17),i.YNc(42,hR,7,4,"mat-form-field",25),i.TgZ(43,"div",10),i.YNc(44,fR,4,2,"mat-error",11),i.qZA(),i.qZA(),i.YNc(45,gR,2,0,"ng-template",null,26,i.W1O),i.TgZ(47,"div",27),i.TgZ(48,"mat-checkbox",28),i.NdJ("
1change",function(e){i.CHM(t);const n=i.oxw();return n.onCheckboxChange(n.profession,e,"profession")}),i.TgZ(49,"mat-label"),i._uU(50,"Other"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.YNc(51,NR,16,6,"div",29),i.TgZ(52,"div",24),i.TgZ(53,"div",5),i.TgZ(54,"div",6),i.TgZ(55,"span"),i._uU(56,"Organisation"),i.qZA(),i.qZA(),i.TgZ(57,"div",16),i.TgZ(58,"div",17),i.YNc(59,DR,7,4,"mat-form-field",25),i.TgZ(60,"div",10),i.YNc(61,ZR,4,2,"mat-error",11),i.qZA(),i.qZA(),i.TgZ(62,"div",27),i.TgZ(63,"mat-checkbox",30),i.NdJ("change",function(e){i.CHM(t);const n=i.oxw();return n.onCheckboxChange(n.organisation,e,"organisation")}),i.TgZ(64,"mat-label"),i._uU(65,"Other"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.YNc(66,qR,2,0,"ng-template",null,31,i.W1O),i.qZA(),i.qZA(),i.TgZ(68,"div",32),i.TgZ(69,"div",5),i.TgZ(70,"div",6),i.TgZ(71,"span"),i._uU(72,"Country of Residence"),i.qZA(),i.qZA(),i.TgZ(73,"div",16),i.TgZ(74,"div",17),i.TgZ(75,"mat-form-field",7),i._UZ(76,"input",33),i.TgZ(77,"mat-autocomplete",34,35),i.YNc(79,jR,2,5,"mat-option",36),i.ALo(80,"async"),i.YNc(81,GR,3,3,"ng-template",37),i.qZA(),i._UZ(82,"mat-icon",38),i.qZA(),i.TgZ(83,"div",10),i.YNc(84,BR,3,0,"mat-error",11),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.YNc(85,$R,17,10,"div",39),i.YNc(86,WR,9,4,"div",39),i.qZA()}if(2&t){const t=i.MAs(46),e=i.MAs(67),n=i.MAs(78),o=i.oxw();i.Q6J("formGroup",o.formGroup),i.xp6(1),i.Q6J("ngClass",o.isSignup?"sigNameRow":"profNameRow"),i.xp6(1),i.Q6J("ngClass",i.VKq(29,KR,o.isSignup)),i.xp6(9),i.Q6J("ngIf",o.firstName.invalid&&(o.firstName.dirty||o.firstName.touched)),i.xp6(1),i.Q6J("ngClass",i.VKq(31,KR,o.isSignup)),i.xp6(9),i.Q6J("ngIf",o.lastName.invalid&&(o.lastName.dirty||o.lastName.touched)),i.xp6(1),i.Q6J("ngClass",o.isSignup?"sigMailField form-filed--with-icon":"profMailField"),i.xp6(10),i.Q6J("ngIf",o.isSignup),i.xp6(1),i.Q6J("ngIf",!o.isSignup),i.xp6(1),i.Q6J("ngIf",o.isSignup),i.xp6(1),i.Q6J("ngClass",i.WLB(33,RR,o.isSignup,!o.isSignup)),i.xp6(7),i.Q6J("ngIf",!o.customProfession.value)("ngIfElse",t),i.xp6(2),i.Q6J("ngIf",o.profession.invalid&&(o.profession.dirty||o.profession.touched)),i.xp6(7),i.Q6J("ngIf",i.DdM(36,XR).includes(o.profession.value)),i.xp6(1),i.Q6J("ngClass",i.WLB(37,RR,o.isSignup,!o.isSignup)),i.xp6(7),i.Q6J("ngIf",!o.orgNotFound.value)("ngIfElse",e),i.xp6(2),i.Q6J("ngIf",o.organisation.invalid&&(o.organisation.touched||o.organisation.dirty)),i.xp6(7),i.Q6J("ngClass",i.WLB(40,RR,o.isSignup,!o.isSignup)),i.xp6(8),i.Q6J("matAutocomplete",n),i.xp6(1),i.Q6J("displayWith",o.displayFn),i.xp6(2),i.Q6J("ngForOf",i.lcZ(80,27,o.filteredCountries$)),i.xp6(2),i.Q6J("ngIf",o.countryOfResidence.dirty),i.xp6(3),i.Q6J("ngIf",o.countryOfResidence.invalid&&(o.countryOfResidence.dirty||o.countryOfResidence.touched)),i.xp6(1),i.Q6J("ngIf",!o.isSignup),i.xp6(1),i.Q6J("ngIf",!o.isSignup)}}function eN(t,e){1&t&&(i.TgZ(0,"div",75),i.TgZ(1,"div",75),i._UZ(2,"div",76),i.qZA(),i.qZA())}let nN=(()=>{class t{constructor(t,e,n,o,r){this._toastr=t,this._fb=e,this.authService=n,this._organization=o,this._dialog=r,this.loading=!1,this.hide=!0,this.isMedicalStudent=!1,this.TIMEZONES=qC,this.COUNTRIES=[...DC,...FC],this.DOCTOR_GRADES=UC,this.STUDENT_GRADES=ZC,this.destroy$=new ve.xQ,this.submitted=new i.vpe}get firstName(){return this.formGroup.get("first_name")}get lastName(){return this.formGroup.get("last_name")}get email(){return this.formGroup.get("email")}get password(){return this.formGroup.get("password")}get organisation(){return this.formGroup.get("organisation")}get orgNotFound(){return this.formGroup.get("has_custom_organisation")}get customProfession(){return this.formGroup.get("has_custom_profession")}get customOrganisation(){return this.formGroup.get("has_custom_organisation")}get customGrade(){return this.formGroup.get("has_custom_grade")}get profession(){return this.formGroup.get("profession")}get grade(){return this.formGroup.get("grade")}get bio(){return this.formGroup.get("bio")}get countryOfResidence(){return this.formGroup.get("country_of_residence")}get timezone(){return this.formGroup.get("timezone")}get isSignup(){return"create"===this.mode}
1ngOnInit(){this.formGroup=this.initFormGroup(),this.profession.valueChanges.pipe(pn("")).pipe((0,SC.b)(t=>this.isMedicalStudent="Medical student"===t)),this.authService.getOrganisations().pipe(EC(this.destroy$)).subscribe(t=>{this.organisationsList=[...t.docs.map(t=>t.data()).map(t=>t.org_name)]}),this.authService.getProfessions().pipe(EC(this.destroy$)).subscribe(t=>{this.professionsList=[...t.docs.map(t=>t.data()).map(t=>t.p_name)]}),this.customProfession.valueChanges.pipe(EC(this.destroy$)).subscribe(t=>{this.profession.setValidators(t?[_v.required]:[_v.required,II(this.professionsList)]),this.profession.updateValueAndValidity()}),this.customOrganisation.valueChanges.pipe(EC(this.destroy$)).subscribe(t=>{this.organisation.setValidators(t?[_v.required]:[_v.required,II(this.organisationsList)]),this.organisation.updateValueAndValidity()}),this.profession.valueChanges.pipe(EC(this.destroy$)).subscribe(()=>{this.updateGradeValidators({emitEvent:!0})}),this.customGrade.valueChanges.pipe(EC(this.destroy$)).subscribe(()=>{this.grade.patchValue(""),this.grade.markAsTouched(),this.updateGradeValidators({emitEvent:!0})}),this.isSignup||this.timezone.valueChanges.pipe(qM(300),vn(),EC(this.destroy$)).subscribe(t=>{this.timezoneCheck(t)}),QC([this.authService.getProfessions(),this.authService.getOrganisations()]).pipe(EC(this.destroy$)).subscribe(([t,e])=>{this.profession.setValidators([_v.required,II(this.professionsList)]),this.organisation.setValidators([_v.required,II(this.organisationsList)]),this.formGroup.updateValueAndValidity({emitEvent:!1}),this.initFilters(),this.user&&(this.formGroup.patchValue({...this.user,country_of_residence:this.COUNTRIES.find(t=>t.iso===this.user.country_of_residence)},{emitEvent:!1}),this.customProfession.value&&(this.profession.clearValidators(),this.profession.setValidators(_v.required),this.profession.updateValueAndValidity({emitEvent:!1})),this.customOrganisation.value&&(this.organisation.clearValidators(),this.organisation.setValidators(_v.required),this.organisation.updateValueAndValidity({emitEvent:!1})),this.updateGradeValidators({emitEvent:!1})),this.data&&(this.firstName.patchValue(this.data.first_name,{emitEvent:!1}),this.lastName.patchValue(this.data.last_name,{emitEvent:!1}),this.email.patchValue(this.data.email,{emitEvent:!1}),this.isSignup||this.bio.patchValue(this.data.bio,{emitEvent:!1}))})}updateGradeValidators(t){"Doctor"===this.profession.value?this.grade.setValidators(this.customGrade.value?[_v.required]:[_v.required,II(this.DOCTOR_GRADES)]):"Medical student"===this.profession.value?this.grade.setValidators(this.customGrade.value?[_v.required]:[_v.required,II(this.STUDENT_GRADES)]):this.grade.clearValidators(),this.grade.updateValueAndValidity(t)}initFormGroup(){return this.isSignup?this.initSignupFormGroup():this.initProfileFormGroup()}initFilters(){this.filteredOrganisations$=this.organisation.valueChanges.pipe(pn(""),(0,Ut.U)(t=>t?this._filter(t,this.organisationsList):this.organisationsList)),this.filteredProfessions$=this.profession.valueChanges.pipe(pn(""),(0,Ut.U)(t=>t?this._filter(t,this.professionsList):this.professionsList)),this.filteredCountries$=this.countryOfResidence.valueChanges.pipe(EC(this.destroy$),pn(""),(0,Ut.U)(t=>"string"==typeof t?t:t.name),(0,Ut.U)(t=>t?this._filterByName(t):this.COUNTRIES.slice())),this.countriesList$=this.countryOfResidence.valueChanges.pipe(pn(""),(0,Ut.U)(t=>"string"==typeof t?t:t.name),(0,Ut.U)(t=>this.COUNTRIES.slice().filter(e=>{if(t!==e.name&&null!=t&&""!==t)return e.name}))),this.isSignup||(this.filteredTimeZone$=this.timezone.valueChanges.pipe(pn(""),(0,Ut.U)(t=>t?this._filter(t,this.TIMEZONES):this.TIMEZONES.slice())),this.timeZoneList$=this.timezone.valueChanges.pipe(pn(""),(0,Ut.U)(t=>t=this.TIMEZONES.slice().filter(e=>{if(t!==e)return e})))),this.filteredDoctorGrades$=this.grade.valueChanges.pipe(pn(""),(0,Ut.U)(t=>t?this._filter(t,this.DOCTOR_GRADES):this.DOCTOR_GRADES.slice())),this.doctorGradesList$=this.grade.valueChanges.pipe(pn(""),(0,Ut.U)(t=>t=this.DOCTOR_GRADES.slice().filter(e=>{if(t!==e)return e}))),this.filteredStudentGrades$=this.grade.valueChanges.pipe(pn(""),(0,Ut.U)(t=>t?this._filter(t,this.STUDENT_GRADES):this.STUDENT_GRADES.slice())),this.studentGradesList$=this.grade.valueChanges.pipe(pn(""),(0,Ut.U)(t=>t=this.STUDENT_GRADES.slice().filter(e=>{if(t!==e)return e})))}selectProfession(t){this.selectedProfession=t.option.value,this.profession.patchValue(t.option.value),this.grade.patchValue(null)}selectOrganisation(t){this.selectedOrganisation=t.option.value}selectTimeZone(t){this.selectedTimeZone=t.option.value,this.timezone.patchValue(t.option.value)}selectGrade(t){this.selectedGrade=t.option.value}openProfileChangeEmailDialog(){console.log("openProfileChangeEmailDialog"),this._dialog.open(EI,{maxWidth:"100%",width:"586px",height:"auto"}).afterClosed().subscribe(t=>{console.log("The dialog was closed")})}displayFn(t){return t&&t.name?t.name:""}isEmptyControl(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}submit(){if(this.formGroup.invalid)return;const t=Object.assign({},this.formGroup.value);t.country_of_residence=t.country_of_residence.iso,t.email=this.email.value.toLowerCase(),delete t.confirm_password,this.submitted.emit(t),window.scrollTo(0,0)}onCheckboxChange(t,e,n){t.patchValue(null),e.checked?("profession"===n&&(t.clearValidators(),t.setValidators([_v.required])),"organisation"===n&&(t.clearValidators(),t.setValidators([_v.required])),"countryOfResidence"===n&&(t.clearValidators(),t.setValidators([_v.required])),t.updateValueAndValidity(),t.markAsTouched()):("profession"===n&&(t.clearValidators(),t.setValidators([_v.required,II(this.professionsList)])),"organisation"===n&&(t.clearValidators(),t.setValidators([_v.required,II(this.organisationsList)])),"countryOfResidence"===n&&(t.clearValidators(),t.setValidators([_v.required,II(this.COUNTRIES)])),t.updateValueAndValidity(),t.markAsTouched())}initSignupFormGroup(){return this._fb.group({email:[null,[_v.required,_v.email]],password:[null,[_v.required,_v.minLength(8)]],first_name:[null,_v.required],last_name:[null,_v.required],profession:[null,[_v.required,II(this.professionsList)]],has_custom_profession:null,grade:null,has_custom_grade:null,organisation:[null,[_v.required,II(this.organisationsList)]],has_custom_organisation:null,country_of_residence:[null,[_v.required,II(this.COUNTRIES)]]})}initProfileFormGroup(){return this._fb.group({email:[{value:null,disabled:!0},[_v.required,_v.email]],first_name:[null,_v.required],last_name:[null,_v.required],profession:[null,[_v.required,II(this.professionsList)]],has_custom_profession:null,grade:null,has_custom_grade:null,organisation:[null,[_v.required,II(this.organisationsList)]],has_custom_organisation:null,country_of_residence:[null,[_v.required,II(this.COUNTRIES)]],timezone:[null],bio:[null]})}_eliminateDuplicates(t){const e=t.length,n={};for(let i=0;i<e;i++)n[t[i].iso]=t[i];return Object.keys(n).map(t=>n[t])}_filterByName(t){const e=t.toLowerCase(),n=this.COUNTRIES.filter(t=>t.name.toLowerCase().includes(e));return this._eliminateDuplicates(n)}_filter(t,e){return e.filter(e=>e.toLowerCase().includes(t.toLowerCase()))}timezoneCheck(t){t?(this.timezone.setValidators([II(this.TIMEZONES)]),this.timezone.updateValueAndValidity()):(this.timezone.clearValidators(),this.timezone.updateValueAndValidity())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(TT),i.Y36(kC),i.Y36(eT),i.Y36(RI),i.Y36(_I))},t.\u0275cmp=i.Xpm({type:t,selectors:[["auth-user-form"]],inputs:{data:"data",user:"user",mode:"mode"},outputs:{submitted:"submitted"},decls:3,vars:2,consts:[["id","ngFormSignin","class","cc",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["load",""],["id","ngFormSignin",1,"cc",3,"formGroup","ngSubmit"],[3,"ngClass"],[1,"form-field","form-field--mb-sm","cc",3,"ngClass"],[1,"rc","ai_c","full-width","inputField"],[1,"field-label"],["appearance","outline",1,"ma-field"],["matInput","","formControlName","first_name","type","text","placeholder","First name"],["matSuffix","","svgIcon","person"],[1,"field-hide"],[4,"ngIf"],[1,"form-field","cc","gap",3,"ngClass"],[1,"rc","full-width","inputField"],["matInput","","formControlName","last_name","type","text","placeholder","Last name"],[1,"form-field","form-field--mb-sm","form-field--with-button","cc","mail-height",3,"ngClass"],[1,"dropdown-row"],[1,"input-row"],["appearance","outline","color","primary",1,"ma-field"],["matInput","","formControlName","email","type","email","placeholder","Email"],["matSuffix","","svgIcon","mail"],["class","field-hide",4,"ngIf"],["class","mail-change",4,"ngIf"],["class","form-field form-field--mb-sm cc gap",3,"ngClass",4,"ngIf"],[1,"form-field","form-field--mb-sm","form-field--with-checkbox","cc","mobGap",3,"ngClass"],["appearance","outline","class","ma-field",4,"ngIf","ngIfElse"],["customProfessionInput",""],[1,"form-checkbox"],["formControlName","has_custom_profession",3,"change"],["class","form-field form-field--mb-sm form-field--with-checkbox cc mobGap",3,"ngClass",4,"ngIf"],["formControlName","has_custom_organisation",3,"change"],["customOrganisationInput",""],[1,"form-field","cc",3,"ngClass"],["type","text","placeholder","Country of residence","matInput","","formControlName","country_of_residence","autocomplete","random-string",3,"matAutocomplete"],[3,"displayWith"],["autoCountry","matAutocomplete"],[3,"value","ngClass",4,"ngFor","ngForOf"],[3,"ngIf"],["matSuffix","","svgIcon","arrow_down"],["class","form-field cc",3,"ngClass",4,"ngIf"],["matSuffix","","svgIcon","errorInfo"],[4,"ngIf","ngIfElse"],["hasValueControl",""],[1,"mail-change"],["type","button",1,"button-success",3,"disabled","click"],[1,"form-field","form-field--mb-sm","cc","gap",3,"ngClass"],["matInput","","formControlName","password","placeholder","","autocomplete","new-password","name","password",3,"type"],["matSuffix","",3,"click"],[3,"svgIcon"],["type","text","placeholder","Profession","matInput","","formControlName","profession",3,"matAutocomplete"],["autoActiveFirstOption","",3,"optionSelected"],["autoProfession","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","type","text","placeholder","Type in your profession","formControlName","profession"],["customGradeInput",""],["formControlName","has_custom_grade"],[1,"field-hide","flex-error"],["type","text","placeholder","Grade","matInput","","formControlName","grade",3,"matAutocomplete"],["autoDoctorGrade","matAutocomplete"],[1,"web-hr"],["svgIcon","errorInfo"],["class","flex-margin",4,"ngIf"],[1,"flex-margin"],["autoStudentGrade","matAutocomplete"],["matInput","","type","text","placeholder","Type in your grade","formControlName","grade"],["matInput","","formControlName","organisation","type","text","placeholder","Organisation",3,"matAutocomplete"],["autoOrganisations","matAutocomplete"],["class","",3,"value",4,"ngFor","ngForOf"],[1,"",3,"value"],["matInput","","type","text","placeholder","Type your organisation's name","formControlName","organisation"],[3,"value","ngClass"],["type","text","placeholder","Select your timezone","matInput","","formControlName","timezone","autocomplete","random-string",3,"matAutocomplete"],["autoTimeZone","matAutocomplete"],["formControlName","bio","matInput","","rows","5","placeholder","Place your text"],[1,"rc","jc_c","ai_c"],[1,"imgloading"]],template:function(t,e){if(1&t&&(i.YNc(0,tN,87,43,"form",0),i.YNc(1,eN,3,0,"ng-template",null,1,i.W1O)),2&t){const t=i.MAs(2);i.Q6J("ngIf",!e.loading)("ngIfElse",t)}},directives:[R,yC,qv,xC,S,wE,UE,hv,Zv,OC,qS,yE,$E,fE,WI,HI,A,lE,xS],pipes:[G],styles:[".profile-form[_nghost-%COMP%]   .icon-box[_ngcontent-%COMP%]{display:none}.profile-form[_nghost-%COMP%]   mat-label[_ngcontent-%COMP%]{background:white;padding-right:4px}.profile-form[_nghost-%COMP%]   .form-field[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{margin-left:0!important;font-weight:500!important}.profile-form[_nghost-%COMP%]     .ma-field.mat-form-field-appearance-outline .mat-form-field-outline{box-shadow:none}.profile-form[_nghost-%COMP%]     .mat-form-field-wrapper{box-shadow:none}.profile-form[_nghost-%COMP%]   .form-checkbox[_ngcontent-%COMP%]{margin-left:0}@media only screen and (max-width: 1224px){.profile-form[_nghost-%COMP%]   .inputField[_ngcontent-%COMP%]   .nameField[_ngcontent-%COMP%]{width:176px!important;max-width:176px!important}.profile-form[_nghost-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:416px;max-width:416px}.profile-form[_nghost-%COMP%]   .dropdown-row[_ngcontent-%COMP%]   .input-row[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:416px;max-width:416px}}@media only screen and (max-width: 500px){.profile-form[_nghost-%COMP%]   .inputField[_ngcontent-%COMP%]   .nameField[_ngcontent-%COMP%]{width:334px!important;max-width:334px!important}.profile-form[_nghost-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:334px;max-width:334px}.profile-form[_nghost-%COMP%]   .dropdown-row[_ngcontent-%COMP%]   .input-row[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:334px;max-width:334px}}.icon-box[_ngcontent-%COMP%]{flex:0 0 32px}.form-field[_ngcontent-%COMP%]{display:flex;margin-bottom:8px;height:85px}.form-field[_ngcontent-%COMP%]:last-child{margin-bottom:0}.mail-height[_ngcontent-%COMP%]{height:auto!important;margin-bottom:40px}.mail-change[_ngcontent-%COMP%]{position:relative;top:6px;
1left:25px}.mail-change[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{background:#006FFF!important}@media only screen and (max-width: 1224px){.mobGap[_ngcontent-%COMP%]{height:auto}}.gap[_ngcontent-%COMP%]{margin-bottom:30px}.extra-vertical-space[_ngcontent-%COMP%]{display:block;margin:6px 0}mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:416px;max-width:416px;height:40px}.sigField[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:416px;max-width:416px;height:40px}.profMailField[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:440px!important;max-width:440px!important;height:40px}.profMailField[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:114px;height:32px}.profNameRow[_ngcontent-%COMP%]{width:580px;display:flex;flex-direction:row;justify-content:space-between}.profNameRow[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:250px;max-width:250px;height:40px}.profField[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:580px!important;max-width:580px!important;height:40px}mat-option.dashed[_ngcontent-%COMP%]{border-bottom-style:dashed;border-bottom-width:1px;border-bottom-color:#dedede}span[_ngcontent-%COMP%]   .filtered-result[_ngcontent-%COMP%]{border-bottom-style:dashed;border-bottom-width:1px;border-bottom-color:#dedede}.form-checkbox[_ngcontent-%COMP%]{flex:0 0 62px;text-align:right;position:relative;left:20px;top:7px}.form-checkbox[_ngcontent-%COMP%]   mat-label[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;font-weight:normal;font-size:15px;line-height:24px;color:#222b45;position:relative;top:2px}.field-label[_ngcontent-%COMP%]{display:inline-block}.field-label[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:15px;line-height:24px;color:#222b45}.inputField[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column}.inputField[_ngcontent-%COMP%]   .nameField[_ngcontent-%COMP%]{width:250px!important;max-width:250px!important;height:40px!important}.inputField[_ngcontent-%COMP%]   .first[_ngcontent-%COMP%]{margin-right:80px}.inputField[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.inputField[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px!important;line-height:24px;color:#222b45;font-weight:normal}.inputField[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.inputField[_ngcontent-%COMP%]   .flex-error[_ngcontent-%COMP%]{display:flex!important}.inputField[_ngcontent-%COMP%]   .flex-margin[_ngcontent-%COMP%]{width:240px;margin-left:5px!important}.inputField[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:580px;display:flex;flex-direction:row}.inputField[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   .msg-error[_ngcontent-%COMP%]{margin-left:8px;margin-top:2px}.mat-input-element[_ngcontent-%COMP%]{position:relative;bottom:4px}.nameRow[_ngcontent-%COMP%]{display:flex;flex-direction:row}.dropdown-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.dropdown-row[_ngcontent-%COMP%]   .input-row[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:416px;max-width:416px;height:40px}.web-hr[_ngcontent-%COMP%]{display:block!important;width:100%;border-top:1px dashed #000}@media only screen and (max-width: 1224px){.profField[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:416px!important;max-width:416px!important;height:40px}.profNameRow[_ngcontent-%COMP%]{width:416px;display:flex;flex-direction:row;justify-content:space-between}.profNameRow[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:176px;max-width:176px;height:40px}.profMailField[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:416px!important;max-width:416px!important;height:40px}.profMailField[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:114px;height:32px}.inputField[_ngcontent-%COMP%]   .nameField[_ngcontent-%COMP%]{width:200px!important;
1max-width:200px!important}.inputField[_ngcontent-%COMP%]   .first[_ngcontent-%COMP%]{margin-right:68px}mat-form-field[_ngcontent-%COMP%]{width:416px;max-width:416px}.dropdown-row[_ngcontent-%COMP%]   .input-row[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:416px;max-width:416px}.field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:268px!important}.pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:468px!important}}@media only screen and (max-width: 500px){.profField[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:334px!important;max-width:334px!important;height:40px}.profNameRow[_ngcontent-%COMP%]{width:334px;flex-direction:column}.profNameRow[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:334px;max-width:334px;height:40px}.profMailField[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:334px!important;max-width:334px!important;height:40px}.sigMailField[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:334px!important;max-width:334px!important;height:40px}.sigField[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:334px!important;max-width:334px!important;height:40px}}@media only screen and (max-width: 500px){.nameRow[_ngcontent-%COMP%]{display:flex;flex-direction:column}.inputField[_ngcontent-%COMP%]   .nameField[_ngcontent-%COMP%]{width:334px!important;max-width:334px!important}.inputField[_ngcontent-%COMP%]   .first[_ngcontent-%COMP%]{margin-right:0}mat-form-field[_ngcontent-%COMP%]{width:334px;max-width:334px}.dropdown-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}.dropdown-row[_ngcontent-%COMP%]   .input-row[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:334px;max-width:334px}.mail-change[_ngcontent-%COMP%]{top:12px;left:0px}.form-checkbox[_ngcontent-%COMP%]{left:0px;top:10px}.mobile[_ngcontent-%COMP%]{margin-bottom:56px}.field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:32%!important}.pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:334px!important}.pass-error[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:40px!important}}mat-icon[_ngcontent-%COMP%]{color:#8f9bb3}  .mat-checkbox .mat-checkbox-frame{background:rgba(143,155,179,.16);border:1px solid #c5cee0;border-radius:3px}  .mat-checkbox .mat-checkbox-frame{width:20px;height:20px}  .mat-checkbox-checked .mat-checkbox-background{width:20px;height:20px}  .mat-checkbox-checked.mat-accent .mat-checkbox-background, .mat-checkbox-indeterminate.mat-accent[_ngcontent-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#006fff}.mat-form-field-appearance-outline.mat-focused[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:#006fff!important;fill:#006fff!important}"]}),t})();const iN=function(t,e,n,i,o){window.ng2recaptchaloaded=()=>{e(grecaptcha)};const r=document.createElement("script");r.innerHTML="",r.src=`${i||"https://www.google.com/recaptcha/api.js"}?render=${t}&onload=ng2recaptchaloaded${n}`,o&&(r.nonce=o),r.async=!0,r.defer=!0,document.head.appendChild(r)},oN=new i.OlP("recaptcha-language"),rN=new i.OlP("recaptcha-base-url"),sN=new i.OlP("recaptcha-nonce-tag"),aN=new i.OlP("recaptcha-settings"),cN=new i.OlP("recaptcha-v3-site-key");let uN=(()=>{class t{constructor(e,n,i,o,r){this.platformId=e,this.language=n,this.baseUrl=i,this.nonce=o,this.v3SiteKey=r,this.init(),this.ready=H(this.platformId)?t.ready.asObservable():(0,Et.of)()}init(){if(!t.ready&&H(this.platformId)){const e=new GC(null);t.ready=e,iN(this.v3SiteKey||"explicit",t=>e.next(t),this.language?"&hl="+this.language:"",this.baseUrl,this.nonce)}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.Lbi),i.LFG(oN,8),i.LFG(rN,8),i.LFG(sN,8),i.LFG(cN,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t.ready=null,t})(),lN=0,hN=(()=>{class t{constructor(t,e,n,o){this.elementRef=t,this.loader=e,this.zone=n,this.id="ngrecaptcha-"+lN++,this.errorMode="default",this.resolved=new i.vpe,this.error=new i.vpe,o&&(this.siteKey=o.siteKey,this.theme=o.theme,this.type=o.type,this.size=o.size,this.badge=o.badge)}ngAfterViewInit(){this.subscription=this.loader.ready.subscribe(t=>{null!=t&&t.render instanceof Function&&(this.grecaptcha=t,this.renderRecaptcha())})}ngOnDestroy(){this.grecaptchaReset(),this.subscription&&this.subscription.unsubscribe()}execute(){"invisible"===this.size&&(null!=this.widget?this.grecaptcha.execute(this.widget):this.executeRequested=!0)}reset(){null!=this.widget&&(this.grecaptcha.getResponse(this.widget)&&this.resolved.emit(null),this.grecaptchaReset()
1)}get __unsafe_widgetValue(){return null!=this.widget?this.grecaptcha.getResponse(this.widget):null}expired(){this.resolved.emit(null)}errored(t){this.error.emit(t)}captchaResponseCallback(t){this.resolved.emit(t)}grecaptchaReset(){null!=this.widget&&this.zone.runOutsideAngular(()=>this.grecaptcha.reset(this.widget))}renderRecaptcha(){const t={badge:this.badge,callback:t=>{this.zone.run(()=>this.captchaResponseCallback(t))},"expired-callback":()=>{this.zone.run(()=>this.expired())},sitekey:this.siteKey,size:this.size,tabindex:this.tabIndex,theme:this.theme,type:this.type};"handled"===this.errorMode&&(t["error-callback"]=(...t)=>{this.zone.run(()=>this.errored(t))}),this.widget=this.grecaptcha.render(this.elementRef.nativeElement,t),!0===this.executeRequested&&(this.executeRequested=!1,this.execute())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(uN),i.Y36(i.R0b),i.Y36(aN,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["re-captcha"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("id",e.id)},inputs:{id:"id",errorMode:"errorMode",siteKey:"siteKey",theme:"theme",type:"type",size:"size",badge:"badge",tabIndex:"tabIndex"},outputs:{resolved:"resolved",error:"error"},exportAs:["reCaptcha"],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),dN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})(),pN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[uN],imports:[[dN]]}),t})();function fN(t,e){1&t&&(i.ynx(0),i.TgZ(1,"div",2),i.TgZ(2,"article"),i.TgZ(3,"div",3),i._UZ(4,"mat-icon",4),i.qZA(),i.TgZ(5,"div",5),i.TgZ(6,"h3"),i._uU(7,"This license has already been redeemed"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.BQk())}function gN(t,e){if(1&t&&(i.ynx(0),i.TgZ(1,"h4"),i._uU(2),i.qZA(),i.TgZ(3,"p",31),i._uU(4),i.qZA(),i.BQk()),2&t){const t=i.oxw(3);i.xp6(2),i.hij(" ",t.name," "),i.xp6(2),i.Oqu(t.description)}}function mN(t,e){if(1&t&&(i.TgZ(0,"p",32),i._uU(1),i.qZA()),2&t){const t=i.oxw(3);i.xp6(1),i.hij(" ",t.name," ")}}function _N(t,e){1&t&&(i.TgZ(0,"p",40),i._uU(1,"Free"),i.qZA())}function yN(t,e){if(1&t&&(i.TgZ(0,"p",40),i._uU(1),i.qZA()),2&t){const t=i.oxw(4);i.xp6(1),i.Oqu(t.priceText)}}function bN(t,e){if(1&t&&(i.ynx(0),i.TgZ(1,"div",33),i.TgZ(2,"div",34),i._UZ(3,"mat-icon",35),i.TgZ(4,"p",36),i._uU(5),i.qZA(),i.qZA(),i._UZ(6,"div",37),i.TgZ(7,"div",38),i.YNc(8,_N,2,0,"p",39),i.YNc(9,yN,2,1,"p",39),i.qZA(),i.qZA(),i.BQk()),2&t){const t=i.oxw(3);i.xp6(5),i.Oqu(t.count),i.xp6(3),i.Q6J("ngIf",t.isPrice),i.xp6(1),i.Q6J("ngIf",!t.isPrice)}}function vN(t,e){1&t&&(i.TgZ(0,"p",40),i._uU(1,"Free"),i.qZA())}function CN(t,e){if(1&t&&(i.TgZ(0,"p",40),i._uU(1),i.qZA()),2&t){const t=i.oxw(4);i.xp6(1),i.Oqu(t.priceText)}}function xN(t,e){if(1&t&&(i.ynx(0),i.TgZ(1,"div",41),i.YNc(2,vN,2,0,"p",39),i.YNc(3,CN,2,1,"p",39),i.qZA(),i.BQk()),2&t){const t=i.oxw(3);i.xp6(2),i.Q6J("ngIf",t.isPrice),i.xp6(1),i.Q6J("ngIf",!t.isPrice)}}function wN(t,e){if(1&t&&(i.TgZ(0,"div",22),i.TgZ(1,"div",23),i.TgZ(2,"h3"),i._uU(3,"Create your account to access the course"),i.qZA(),i.TgZ(4,"p"),i._uU(5,"In order to enrol to the selected course, you must create a user account."),i.qZA(),i.qZA(),i.TgZ(6,"div",24),i.TgZ(7,"div",25),i.TgZ(8,"div",26),i.YNc(9,gN,5,2,"ng-container",0),i.YNc(10,mN,2,1,"ng-template",null,27,i.W1O),i.qZA(),i.TgZ(12,"div",28),i.YNc(13,bN,10,3,"ng-container",16),i.YNc(14,xN,4,2,"ng-container",16),i.qZA(),i.qZA(),i.TgZ(15,"div",29),i._UZ(16,"img",30),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.MAs(11),e=i.oxw(2);i.xp6(9),i.Q6J("ngIf",e.isBundle)("ngIfElse",t),i.xp6(4),i.Q6J("ngIf",e.isBundle),i.xp6(1),i.Q6J("ngIf",!e.isBundle),i.xp6(2),i.Q6J("src",e.imgURL,i.LSH)}}function ON(t,e){1&t&&(i.TgZ(0,"div",42),i.TgZ(1,"h3"),i._uU(2,"Let\u2019s create an account for you now"),i.qZA(),i.qZA())}function PN(t,e){1&t&&(i.TgZ(0,"mat-error"),i._UZ(1,"mat-icon",43),i._uU(2," Please check this box if you wish to proceed "),i.qZA())}function MN(t,e){if(1&t){const t=i.EpF();i.YNc(0,wN,17,5,"div",6),i.TgZ(1,"div",7),i.YNc(2,ON,3,0,"div",8),i.TgZ(3,"div",9),i.TgZ(4,"auth-user-form",10),i.NdJ("submitted",function(e){return i.CHM(t),i.oxw().signUp(e)}),i.ALo(5,"async"),i.qZA(),i.TgZ(6,"div",11),i.TgZ(7,"mat-checkbox",12),i.NdJ("ngModelChange",function(e){return i.CHM(t),i.oxw().privacy=e}),i.qZA(),i.TgZ(8,"span"),i._uU(9," I have read and agree to the "),i.TgZ(10,"strong"),i.TgZ(11,"a",13),i._uU(12,"Terms of Use"),i.qZA(),i.qZA(),i._uU(13," and "),i.TgZ(14,"strong"),i.TgZ(15,"a",14),i._uU(16,"Customer Privacy Policy"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(17,"div",15),i.YNc(18,PN,3,0,"mat-error",16),i.qZA(),i.qZA(),i.TgZ(19,"div",17),i.TgZ(20,"re-captcha",18),i.NdJ("resolved",function(e){return i.CHM(t),i.oxw().onRes
1olved(e)}),i.qZA(),i.TgZ(21,"button",19),i.NdJ("click",function(){return i.CHM(t),i.oxw().authUserForm.submit()}),i._uU(22," Sign up "),i.qZA(),i.TgZ(23,"ul"),i.TgZ(24,"li"),i.TgZ(25,"span"),i._uU(26,"Already have an account?"),i.qZA(),i.TgZ(27,"strong",20),i.TgZ(28,"a",21),i._uU(29,"Sign in"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("ngIf",t.checkout),i.xp6(2),i.Q6J("ngIf",!t.checkout),i.xp6(2),i.Q6J("mode","create")("data",i.lcZ(5,12,t._route.queryParams)),i.xp6(2),i.Q6J("ngClass","true"==t.checkout?"mar-true":"mar-false"),i.xp6(1),i.Q6J("ngModel",t.privacy),i.xp6(10),i.Q6J("ngClass","true"==t.checkout?"check-true":"check-false"),i.xp6(1),i.Q6J("ngIf",(null==t.authUserForm||null==t.authUserForm.formGroup?null:t.authUserForm.formGroup.valid)&&!1===t.privacy),i.xp6(2),i.s9C("siteKey",t.siteKey),i.xp6(1),i.Q6J("disabled",t.isFormInvalid()),i.xp6(7),i.Q6J("routerLink","/")("queryParamsHandling","preserve")}}let TN=(()=>{class t{constructor(t,e,n,i,o,r,s){this._router=t,this._auth=e,this._toastr=n,this.appLimit=i,this._appState=o,this._http=r,this._route=s,this.destroy$=new ve.xQ,this.setEmailToVerified=!1,this.privacy=!1,this.isBundle=!1,this.isPrice=!1,this.siteKey=dP,this.recaptchaPassed=!1,this.isRedeemed=!1}signUp(t){var e,n,i,o,r,s,a,c;if(!this.recaptchaPassed)return;this._appState.loading=!0,localStorage.getItem("coupon_code")&&localStorage.getItem("group_token")&&localStorage.getItem("product_id")&&(this.couponData={coupon_code:localStorage.getItem("coupon_code"),group_token:localStorage.getItem("group_token"),product_id:localStorage.getItem("product_id"),redeemed:!1},this.setEmailToVerified=this._auth.couponUserData.email&&this.authUserForm.email.value.trim().toLowerCase()===this._auth.couponUserData.email.trim().toLowerCase());let u=this.couponData?{...t,privacy:this.privacy,coupons:[this.couponData],set_email_verified:this.setEmailToVerified}:{...t,privacy:this.privacy,set_email_verified:!1},l=!1;this._auth.couponUserData.email&&(l=(null===(n=null===(e=this.authUserForm.email.value)||void 0===e?void 0:e.toLowerCase())||void 0===n?void 0:n.trim())!==(null===(o=null===(i=this._auth.couponUserData.email)||void 0===i?void 0:i.toLowerCase())||void 0===o?void 0:o.trim()));let h=!1;this._auth.couponUserData.first_name&&(h=(null===(s=null===(r=this._auth.couponUserData.first_name)||void 0===r?void 0:r.toLowerCase())||void 0===s?void 0:s.trim())!==this.authUserForm.firstName.value.toLowerCase().trim());let d=!1;this._auth.couponUserData.last_name&&(d=(null===(c=null===(a=this._auth.couponUserData.last_name)||void 0===a?void 0:a.toLowerCase())||void 0===c?void 0:c.trim())!==this.authUserForm.lastName.value.toLowerCase().trim()),u=this._auth.getUpdatePayload(u,l,h,d),this._auth.signup(u).pipe(Te(e=>e?this._auth.signinClientPersistence({email:t.email,password:t.password},!0):(0,Et.of)(null)),RC(()=>{this._appState.loading=!1}),EC(this.destroy$)).subscribe(e=>(this.setEmailToVerified||this._toastr.success(VC(t.email)),localStorage.clear(),this.appLimit.setVerifyEmailLimitSignup(),"true"===this.checkout&&(this._route.snapshot.queryParams.price_id&&localStorage.setItem("price",this.price),localStorage.setItem("product",this.product),localStorage.setItem("checkout",this.checkout)),"true"===this.getFreeTrial&&(localStorage.setItem("product",this.product),localStorage.setItem("getFreeTrial",this.getFreeTrial)),this._router.navigate(["/auth/verify"],{queryParams:{signup:!0,checkout:null,getfreetrial:null,product_id:null,price_id:null},queryParamsHandling:"merge"})),t=>{var e,n,i;if(this._toastr.error(t.code?"auth/email-already-in-use"===t.code?"This email address is already associated with an account. Please sign in.":t.error||t.error.message?null===(e=t.error)||void 0===e?void 0:e.message:"Something went wrong. Please try again later.":t.error||t.error.message?null===(n=t.error)||void 0===n?void 0:n.message:"Something went wrong. Please try again later."),this._auth.authUser.pipe(EC(this.destroy$),Te(()=>this._auth.deleteAuthUser())).subscribe(),this._auth.handleAuthError(l,h,d),["auth/email-already-exists","auth/alternative-account-found"].includes(null===(i=t.error)||void 0===i?void 0:i.code))return this._router.navigate(["/"])})}onResolved(t){return this._http.post(cP+"/auth-sendRecaptcha",{token:t}).subscribe(t=>
1{t.success||this._toastr.error('Failed to pass reCaptcha. Please try again or contact "[email protected]".'),this.recaptchaPassed=t.success},t=>{this.recaptchaPassed=!1})}isFormInvalid(){var t,e,n;return!(null===(t=this.authUserForm)||void 0===t?void 0:t.formGroup)||!this.recaptchaPassed||(null===(n=null===(e=this.authUserForm)||void 0===e?void 0:e.formGroup)||void 0===n?void 0:n.invalid)||!1===this.privacy}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}ngOnInit(){this._route.snapshot.queryParams.product_id&&this._route.snapshot.queryParams.th__ug&&this._route.snapshot.queryParams.th__c&&(this._appState.loading=!0,this._auth.getUserByEmail(this._route.snapshot.queryParams.email).subscribe(t=>{if(1===t.length){const e=t[0].coupons;for(const t of e)console.log(t),this._route.snapshot.queryParams.product_id===t.product_id&&this._route.snapshot.queryParams.th__c===t.coupon_code&&t.redeemed&&(this.isRedeemed=!0,this._router.navigate([],{queryParams:{email:null,th__c:null,th__ug:null,product_id:null,first_name:null,last_name:null,utm_source:null,utm_medium:null,utm_campaign:null},queryParamsHandling:"merge"}),localStorage.clear())}this._appState.loading=!1})),this.getFreeTrial=this._route.snapshot.queryParams.getfreetrial,"true"===this.getFreeTrial&&(this.product=this._route.snapshot.queryParams.product_id),this.checkout=this._route.snapshot.queryParams.checkout,"true"===this.checkout&&(this.product=this._route.snapshot.queryParams.product_id,this._route.snapshot.queryParams.price_id&&(this.price=this._route.snapshot.queryParams.price_id,localStorage.setItem("price",this.price)),localStorage.setItem("product",this.product),localStorage.setItem("checkout",this.checkout),this._auth.getCardDetails(this._route.snapshot.queryParams.product_id).subscribe(t=>{if(this.productType=t.data.product_type,this.courseCardImageUrl=t.data.course_card_image_url,this.bundleCardImageUrl=t.data.bundle_card_image_url,"Course"===t.data.product_type){const e=t.data.product_prices.length;if(this._route.snapshot.queryParams.price_id)for(let n=0;n<e;n++)t.data.product_prices[n].id.toString()===this.price&&(this.coursePrice=t.data.product_prices[n].price,this.duration=t.data.product_prices[n].interval,this.timeCount=t.data.product_prices[n].interval_count,this.name=t.data.product_prices[n].price_name);else if(1===e)this.coursePrice=t.data.product_prices[0].price,this.duration=t.data.product_prices[0].interval,this.timeCount=t.data.product_prices[0].interval_count,this.name=t.data.product_prices[0].price_name;else for(let n=0;n<e;n++)t.data.price===t.data.product_prices[n].price&&(this.coursePrice=t.data.product_prices[n].price,this.duration=t.data.product_prices[n].interval,this.timeCount=t.data.product_prices[n].interval_count,this.name=t.data.product_prices[n].price_name)}"Bundle"===t.data.product_type&&(this.courseIds=t.data.course_ids.length,this.description=t.data.description,this.name=t.data.name,this.coursePrice=t.data.product_prices[0].price,this.duration=t.data.product_prices[0].interval,this.timeCount=t.data.product_prices[0].interval_count),this.createCard(),console.log(t.data)}))}createCard(){"Bundle"===this.productType?(this.imgURL=this.bundleCardImageUrl,this.count=this.courseIds+" Courses",this.isBundle=!0):"Course"===this.productType&&(this.imgURL=this.courseCardImageUrl,this.isBundle=!1),"0.0"===this.coursePrice?this.isPrice=!0:(this.isPrice=!1,this.priceText=this.duration?"1"===this.timeCount?"\xa3"+this.coursePrice+" / "+this.duration:"\xa3"+this.coursePrice+" / "+this.timeCount+" Months":"\xa3"+this.coursePrice)}ngAfterViewInit(){this._route.queryParams.pipe((0,SC.b)(t=>{this._auth.couponUserData={first_name:t.first_name?decodeURIComponent(t.first_name):null,last_name:t.last_name?decodeURIComponent(t.last_name):null,email:t.email?decodeURIComponent(t.email):null}}),(0,Ut.U)(t=>({product_id:t.product_id?decodeURIComponent(t.product_id):null,group_token:t.th__ug?decodeURIComponent(t.th__ug):null,coupon_code:t.th__c?decodeURIComponent(t.th__c):null,email:t.email?decodeURIComponent(t.email||t.new_email):null,first_name:t.first_name?decodeURIComponent(t.first_name):null,last_name:t.last_name?decodeURIComponent(t.last_name):null}))).subscribe(t=>{this.authUserForm.firstName.patchValue(t.first_name),this.authUserForm.lastName.patchValue(t.last_name),this.authUserForm.email.patchValue(t.email);for(const e in t)("group_token"===e||"coupon_code"===e||"product_id"===e)&&t.hasOwnProperty(e)&&t[e]&&(console.log(e,t[e]),localStorage.setItem(e,decodeURIComponent(t[e])))})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(FO),i.Y36(eT),i.Y36(TT),i.Y36(dA),i.Y36(BC),i.Y36(re),i.Y36(gw))},t.\u0275cmp=i.Xpm({type:t,selectors:[["auth-signup"]],viewQuery:function(t,e){if(1&t&&i.Gf(nN,5),2&t){let t;i.iGM(t=i.CRH())&&(e.authUserForm=t.first)}},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["notRedeemed",""],[1,"page-container","verify-email-container","redeemed-container"],[1,"auth-sucsess-icon"],["svgIcon","info_color"],[1,"auth-header","verifySign"],["class","purchase-section",4,"ngIf"],[1,"auth-signup"],["class","auth-signup-header",4,"ngIf"],[1,"auth-signup-body"],[3,"mode","data","submitted"],[1,"signup-privacy",3,"ngClass"],[3,"ngModel","ngModelChange"],["href","https://www.medics.academy/pages/terms","target","_blank"],["href","https://www.medics.academy/pages/privacy","target","_blank"],[1,"field-hide",3,"ngClass"],[4,"ngIf"],[1,"auth-signup-actions"],[3,"siteKey","resolved"],[1,"button-success",3,"disabled","click"],[1,"ml_sm"],["target","_top",3,"routerLink","queryParamsHandling"],[1,"purchase-section"],[1,"purchase-text"],[1,"purchase-card"],[1,"card-text"],[1,"text-sec"],["course",""],[1,"price-sec"],[1,"card-img"],[3,"src"],[1,"bundle-para"],[1,"course-para"],[1,"bundleprice"],[1,"count"],["svgIcon","bundle_icon"],[1,"count-para"],[1,"divi
1de-sec"],[1,"price"],["class","price-para",4,"ngIf"],[1,"price-para"],[1,"courseprice"],[1,"auth-signup-header"],["matSuffix","","svgIcon","errorInfo"]],template:function(t,e){if(1&t&&(i.YNc(0,fN,8,0,"ng-container",0),i.YNc(1,MN,30,14,"ng-template",null,1,i.W1O)),2&t){const t=i.MAs(2);i.Q6J("ngIf",e.isRedeemed)("ngIfElse",t)}},directives:[R,qS,nN,S,$E,Zv,_C,hN,qO,lE,yE],pipes:[G],styles:['[_nghost-%COMP%]{flex-direction:column;height:calc(100% - 80px);display:flex;flex:1 0 auto}span[_ngcontent-%COMP%], a[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-style:normal;font-weight:normal}.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;font-family:Roboto Slab,sans-serif;font-size:36px;line-height:48px;margin-top:96px;margin-bottom:0;text-align:center}@media only screen and (max-width: 1224px){.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:72px}}@media only screen and (max-width: 500px){.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px;margin-top:72px!important}}.verifySign[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.verifySign[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:35px}@media (max-width: 600px){.verifySign[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:25px!important;font-size:22px!important;line-height:32px}}.verifySign[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{background:#006FFF!important;border-radius:8px!important;font-family:Open Sans!important;font-style:normal!important;font-weight:bold!important;font-size:12px!important;line-height:16px!important;text-align:center;color:#fff;width:114px!important;height:32px!important;border:none!important}.verifySign[_ngcontent-%COMP%]   .btn-success[_ngcontent-%COMP%]{padding:12px;background:#006FFF;border-radius:8px;width:210px;height:48px;font-family:Open Sans,sans-serif;font-style:normal;font-weight:bold;font-size:16px;line-height:20px;text-align:center;color:#fff;border:none;margin-top:56px;cursor:pointer}.verifySign[_ngcontent-%COMP%]   .ch[_ngcontent-%COMP%]{width:150px!important}.auth-sucsess-icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin:auto}.auth-sucsess-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:81px;width:81px}@media (max-width: 600px){.auth-sucsess-icon[_ngcontent-%COMP%]{margin-top:80px}.auth-sucsess-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:40px;width:40px}}re-captcha[_ngcontent-%COMP%]{margin-bottom:32px}.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;font-family:Roboto Slab;font-size:36px;line-height:48px;margin-top:56px;margin-bottom:56px;text-align:center}.banner-auth-migration-wrap[_ngcontent-%COMP%]{display:flex;margin:56px auto 10px;max-width:743px}.banner-auth-migration[_ngcontent-%COMP%]{display:flex;align-items:center;width:524px;height:147px;background:#112C6C}.banner-auth-migration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:372px;height:72px;font-family:Roboto;font-style:normal;font-weight:normal;font-size:13px;line-height:18px;color:#fff}.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;margin:55px 50px 54px 34px}.ml_sm[_ngcontent-%COMP%]{margin-left:calc(4px * 1)}.page-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:6%;margin-bottom:4%}@media only screen and (max-width: 1224px){.page-container[_ngcontent-%COMP%]{margin-bottom:2%!important}}.page-container[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:flex-start}.page-container[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]   .welcome-partners-da[_ngcontent-%COMP%]{margin:0;height:80px;width:476px;color:#fefefe;font-size:30px;font-weight:300;letter-spacing:.75px;line-height:40px}.new-sso[_ngcontent-%COMP%]{margin-top:0%;margin-bottom:0%}.auth-sign[_ngcontent-%COMP%]{margin:48px auto 80px;height:auto}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]{display:flex;align-items:center}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{margin-bottom:24px;display:flex;align-items:flex-start;flex-direction:column}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{height:40px;width:416px;border-radius:4px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px;line-height:24px;color:#222b45}
1.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{margin-bottom:30px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-style:normal;line-height:16px;padding-top:8px;width:410px}@media (max-width: 600px){.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{width:327px!important}}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .newdes[_ngcontent-%COMP%]{line-height:15px!important}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{margin-left:0!important}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-checkbox[_ngcontent-%COMP%]{margin:-8px 0 16px 50px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#8f9bb3;position:relative;bottom:3px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]{margin-top:0}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-check[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:56px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;line-height:16px;color:#222b45;margin-top:32px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#00d68f;font-weight:bold;text-decoration:none}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px;width:93px;border-radius:8px;padding:12px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]{align-items:flex-start}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;font-size:15px;line-height:24px;color:#222b45;margin:0 6px;bottom:5px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]{margin-left:0;position:relative;left:0px;bottom:6px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]     .mat-checkbox-frame{border:1px solid #c5cee0;border-radius:3px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]     .mat-checkbox-inner-container{width:20px;height:20px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]     .mat-checkbox-checked.mat-accent .mat-checkbox-background, .auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   .mat-checkbox-indeterminate.mat-accent[_ng
1content-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#006fff}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#006fff;text-decoration:none;position:relative}@media only screen and (max-width: 500px){.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{top:-2px}}@media only screen and (max-width: 1224px){.actions-forget[_ngcontent-%COMP%]{font-size:12px!important}.actions-check[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:13px!important;line-height:18px!important}.row-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.row-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:40px;width:83px;padding:10px;font-size:14px!important;line-height:16px!important}}.material-icons.custom-adjust[_ngcontent-%COMP%]{color:#00d68f;left:45%;position:relative;font-size:84px}@media only screen and (max-width: 768px){.material-icons.custom-adjust[_ngcontent-%COMP%]{left:44%}}@media only screen and (max-width: 500px){.material-icons.custom-adjust[_ngcontent-%COMP%]{font-size:74px;left:40%}}@media only screen and (min-width: 1920px){.material-icons.custom-adjust[_ngcontent-%COMP%]{left:45.5%}}.top[_ngcontent-%COMP%]{padding-top:3%!important}@media only screen and (max-width: 1224px){.top[_ngcontent-%COMP%]{padding-top:6%!important}}@media only screen and (max-width: 500px){.top[_ngcontent-%COMP%]{padding-top:15%!important}}.create[_ngcontent-%COMP%]{margin-top:10%!important}.reset-box[_ngcontent-%COMP%]{box-shadow:none!important}.reset-box[_ngcontent-%COMP%]   .example-focus-monitor[_ngcontent-%COMP%]   .cdk-touch-focused[_ngcontent-%COMP%]{background:rgba(0,0,255,.5)!important}.reset-box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1!important;font-family:"Roboto Slab";font-weight:700!important}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px}}.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:36px!important;font-weight:700!important;width:60%}@media only screen and (max-width: 1224px){.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:36px!important}}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px!important;width:80%}}.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start!important;width:416px;margin-left:auto;margin-right:auto;margin-bottom:56px!important}@media only screen and (max-width: 1224px){.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{width:416px;margin-bottom:70px!important}}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{width:334px!important;margin-bottom:64px!important}}@media only screen and (max-width: 500px){.pp[_ngcontent-%COMP%]{left:0%!important}}@media only screen and (max-width: 500px){.pass[_ngcontent-%COMP%]{left:0%!important}}.auth-dialog[_ngcontent-%COMP%]{background:#FEFEFE;box-shadow:0 2px 6px #0000004d;height:auto;border-radius:16px;margin:4% auto 0%!important}.auth-dialog.sign-in[_ngcontent-%COMP%]{margin:80px auto 0}
1.auth-dialog--no-shadow[_ngcontent-%COMP%]{box-shadow:none}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-header[_ngcontent-%COMP%]{padding:35px 0 0;display:flex;justify-content:center}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{position:relative;margin:0;height:40px;color:#666;font-size:36px;font-weight:bold;letter-spacing:.75px;line-height:48px;text-align:center}.auth-dialog[_ngcontent-%COMP%]   .success-body[_ngcontent-%COMP%]{margin-top:0!important;padding-top:0;padding-bottom:40px}@media only screen and (max-width: 360px){.auth-dialog[_ngcontent-%COMP%]   .success-body[_ngcontent-%COMP%]{margin-bottom:60px}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center;padding-bottom:8%;font-style:normal;font-weight:normal!important;font-family:"Roboto"!important;font-size:18px!important;line-height:26px;color:#222b45}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:100%}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-bottom:0!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-top:5%!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-bottom:10%!important;padding-top:0%!important}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:15px!important;font-family:"Roboto";font-weight:400;color:#000}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{height:186.2852783203px;width:199px;background:#ffffff;border:.9px solid #e6ebf7;box-shadow:0 8px 14px #4367f312;border-radius:1.8px;position:absolute;z-index:2;margin-left:28%;font-family:Roboto;font-style:normal;font-size:12px;line-height:14px;display:flex;flex-direction:column}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   .hed[_ngcontent-%COMP%]{font-weight:bold;opacity:1}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:normal;color:#003ac1;margin-top:7px;margin-left:20px;opacity:.3}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:13px;height:13px;margin-right:10px;position:relative;top:2px}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:580px;display:flex;flex-direction:row}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   .msg-error[_ngcontent-%COMP%]{margin-left:8px}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:40%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:468px!important}}@media only screen and (max-width: 768px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:53%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:468px!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:35%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:330px!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:40px!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .reP[_ngcontent-%COMP%]{width:280px;margin:auto}}@media only screen and (max-width: 375px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:40%!important}}@media only screen and (min-width: 1920px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:19.5%!important}}.auth-dialog[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{padding:0!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .re[_ng
1content-%COMP%]{padding:0!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]{padding:0 50px;margin-top:24px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin:auto auto 65px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:396px!important;height:24px;margin-left:0%!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{margin-bottom:12px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]:last-child{margin-bottom:0}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column;margin:auto}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;line-height:16px;padding-top:8px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:100%;min-width:100px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{font-size:12px;font-weight:500!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-input[_ngcontent-%COMP%]   .reset-field[_ngcontent-%COMP%]{background-color:#e4e9f2}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{flex:none;width:416px!important;height:40px;min-width:416px!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-checkbox[_ngcontent-%COMP%]{margin:-8px 0 16px 50px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .icon-box[_ngcontent-%COMP%]{flex:1 0 32px}@media (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{width:416px!important;min-width:416px!important}}@media (max-width: 600px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{width:334px!important;min-width:334px!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:286px!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{padding:0 50px 35px;margin-top:45px;display:flex;flex-direction:column;align-items:center;text-align:center}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .reset-button[_ngcontent-%COMP%]{font-weight:700;padding:12px;font-size:16px;line-height:20px;width:180px;height:48px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-top:11px;height:16px;width:96px;color:#575756;font-size:12px;line-height:16px;text-decoration:none}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:none!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:block!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:"Roboto";font-weight:700;font-size:14px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-family:"Roboto";font-weight:700;font-size:14px;color:#003ac1!important;text-decoration:underline}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:block!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-top:40px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{padding:0 50px 50px;margin-bottom:200px!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{margin-bottom:140px!important}}.footer-auth[_ngcontent-%COMP%]{width:100%;margin-top:auto;padding-top:calc(4px * 6)}.footer-auth[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.footer-auth[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:28px;
1width:200px}.auth-signup[_ngcontent-%COMP%]{margin:48px auto -10%;height:auto}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-left:0}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .mar-true[_ngcontent-%COMP%]{position:relative;left:8.5%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .mar-false[_ngcontent-%COMP%]{position:relative;left:7%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{margin-top:8px;display:flex;flex-direction:row}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:24px;font-size:15px;color:#222b45;margin-left:10px;margin-top:2px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline;font-weight:bold}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;line-height:16px;padding-top:8px;font-weight:600;font-size:12px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{position:relative;right:16%}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{right:18%}}@media (max-width: 600px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{right:10%!important}}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{position:relative;right:13%}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{right:12%}}@media (max-width: 600px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{right:10%!important}}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:56px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:48px;width:99px;border-radius:8px;padding:12px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;line-height:16px;color:#222b45}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:150px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:bold;color:#006fff;text-decoration:none}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:14px!important}}.purchase-section[_ngcontent-%COMP%]{width:808px;height:auto;background:#F7F9FC;border-radius:4px;display:flex;flex-direction:row;align-items:center;justify-content:space-evenly;margin:90px auto 15px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:56px;margin-bottom:56px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;width:370px;font-family:Roboto Slab;font-size:36px;line-height:48px;margin-bottom:6px;text-align:center}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;font-weight:normal;font-size:18px;line-height:26px;display:flex;width:436px;align-items:center;text-align:center;color:#222b45}
1.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]{width:185.49px;height:204px;border-radius:4.0597px;background:#FFFFFF;display:flex;flex-direction:column;box-shadow:0 0 10px #0003!important}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]{width:185.49px;height:105.55px;text-align:center;display:flex;flex-direction:column;font-style:normal}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .text-sec[_ngcontent-%COMP%]{height:75.55px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-family:Roboto Slab;font-weight:bold;font-size:15.2239px;line-height:20px;color:#003ac1;margin:8px auto}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:normal;font-size:9.13433px;line-height:13px;color:#222b45}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .bundle-para[_ngcontent-%COMP%]{margin:0 20px 20px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .course-para[_ngcontent-%COMP%]{margin:25px 15px auto}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]{height:30px;margin:0 15px;align-items:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .courseprice[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .bundleprice[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:49%}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:12px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   .count-para[_ngcontent-%COMP%]{position:relative;left:4px;bottom:4px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .divide-sec[_ngcontent-%COMP%]{width:1.01px;height:10.66px;background:#E4E9F2}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .price-para[_ngcontent-%COMP%]{font-weight:bold;color:#00d68f;position:relative;bottom:4px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:row;justify-content:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-img[_ngcontent-%COMP%]{height:98.45px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:185.49px;height:98.45px;border-bottom-left-radius:4.0597px;border-bottom-right-radius:4.0597px}@media (max-width: 1224px){.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:30px}.purchase-section[_ngcontent-%COMP%]{width:100%;margin:72px auto 15px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{left:3%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:18px;font-size:13px;margin-top:4px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]{margin-top:56px;margin-bottom:100px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:40px;width:87px;font-size:14px;line-height:16px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 600px){.purchase-section[_ngcontent-%COMP%]{flex-direction:column;margin-top:0%!important}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:24px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px;line-height:32px;margin-bottom:24px;text-align:center;width:214px!important}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important;width:312px!important}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]{margin-bottom:32px}.auth-signup-header[_ngcontent-%COMP%]{display:flex;justify-content:center}.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{width:217px;font-size:22px;line-height:32px;margin-bottom:48px;margin-top:20px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]{margin-left:0;display:flex;align-items:center}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{width:75%;position:relative;right:4%;left:auto}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:16px;font-size:12px;margin-top:-4px}}@media (max-width: 375px){.signup-privacy[_ngcontent-%COMP%]{right:7%!important}}@media (max-width: 1224px){.verify-email-container[_ngcontent-%COMP%]{margin-bottom:42%!important}}@media (max-width: 600px){.verify-email-container[_ngcontent-%COMP%]{margin-bottom:52%!important}}.verify-email-container[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;margin:16px}@media (max-width: 600px){.verify-email-container[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{width:auto}}.bottom-container[_ngcontent-%COMP%]{width:100%;margin-top:0!important;display:flex;flex-direction:row;justify-content:center}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:32px}@media (max-width: 1224px){.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .resend[_ngcontent-%COMP%]{position:relative!important}}@media (max-width: 600px){.bottom-container[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:row}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:32px}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .resend[_ngcontent-%COMP%]{position:relative!important}}.mat-input-element[_ngcontent-%COMP%]{width:512px;padding-bottom:7px;font-family:Roboto;font-style:normal;font-weight:normal}.mobile-para[_ngcontent-%COMP%]{display:none}@media (max-width: 1224px){.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:65px;height:65px;margin:41px 40px 42px 24px}.auth-sign[_ngcontent-%COMP%]{margin-bottom:208px}}@media (max-width: 600px){.auth-sign[_ngcontent-%COMP%]{margin-top:38px;margin-bottom:144px}.banner-auth-migration-wrap[_ngcontent-%COMP%]{margin:32px auto 0!important}.banner-auth-migration[_ngcontent-%COMP%]{width:350px;height:132px}.banner-auth-migration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{height:90px;width:247px;margin-top:20px;margin-bottom:22px}.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:48px;width:48px;margin:45px 16px 39px 23px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{width:334px}.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:120px}}  .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{background-color:#fff!important}.verified[_ngcontent-%COMP%]{margin-top:15%!important;
1margin-bottom:-50%!important;position:relative!important}.mail-container[_ngcontent-%COMP%]{font-style:normal;font-weight:normal;text-align:center;display:flex;flex-direction:column;align-items:center}.mail-container[_ngcontent-%COMP%]   .mail-H[_ngcontent-%COMP%]{margin-top:96px!important}.mail-container[_ngcontent-%COMP%]   .mail-up[_ngcontent-%COMP%]{width:70%}.mail-container[_ngcontent-%COMP%]   .mailerror-para[_ngcontent-%COMP%]{font-size:18px!important;line-height:26px}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{font-size:36px!important;color:#003ac1!important;line-height:48px;margin-top:0!important}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#00d9d5;font-weight:700;font-family:"Roboto Slab"}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-family:Roboto Slab;font-size:36px;line-height:48px;color:#003ac1;margin-bottom:24px;line-height:1}.mail-container[_ngcontent-%COMP%]   .mailerror-heading[_ngcontent-%COMP%]{color:#ff3d71!important}.mail-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:normal;font-style:normal;font-size:18px;line-height:26px;color:#222b45}.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:52%}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:57%}}@media (max-width: 768px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:75%!important}}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:90%!important}}@media (max-width: 375px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:100%!important}}.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:33%;font-size:16px!important;line-height:24px!important}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:35%}}@media (max-width: 768px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:48%}}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}}.mail-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px;width:99px;background:#006fff;border-radius:8px;margin:48px 12px 32px}.mail-container[_ngcontent-%COMP%]   .btnEmail[_ngcontent-%COMP%]{width:147px;height:48px;background:#006fff;border-radius:8px;margin:48px 12px 32px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px;color:#fff;display:flex;flex-direction:row;align-items:center;justify-content:center;text-decoration:none}.mail-container[_ngcontent-%COMP%]   .Med[_ngcontent-%COMP%]{width:99px!important}.mail-container[_ngcontent-%COMP%]   .an[_ngcontent-%COMP%]{width:132px!important}.mail-container[_ngcontent-%COMP%]   .btnText[_ngcontent-%COMP%]{font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px;color:#fff}.mail-container[_ngcontent-%COMP%]   .btnTextView[_ngcontent-%COMP%]{font-family:Open Sans;font-weight:bold;font-size:12px;text-align:left;padding:0;line-height:20px;color:#fff}.mail-container[_ngcontent-%COMP%]   .error-icon[_ngcontent-%COMP%]{width:12px;height:12px;float:left;margin-top:2px}.mail-container[_ngcontent-%COMP%]   .errortext[_ngcontent-%COMP%]{font-size:12px;color:#ff3d71;font-family:Roboto;font-weight:500!important;float:left;margin-left:2px}.mail-container[_ngcontent-%COMP%]   .btnView[_ngcontent-%COMP%]{width:auto;margin-top:7px}.mail-container[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{width:300px}.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{font-size:16px;line-height:24px}.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#003ac1;font-weight:bold}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:800px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]   .email-text[_ngcontent-%COMP%]{color:#222b45!important}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .mailerror-para[_ngcontent-%COMP%]{margin-left:12px!important;margin-right:12px!important}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:320px!important;font-size:18px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]   .email-text[_ngcontent-%COMP%]{word-break:break-all;color:#222b45!important}}.mail-container[_ngcontent-%COMP%]   .RR[_ngcontent-%COMP%]{display:flex;flex-direction:row}.verify[_ngcontent-%COMP%]{margin-top:6%!important}@media (max-width: 1224px){.verify[_ngcontent-%COMP%]{margin-bottom:8%!important}}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{margin-bottom:300px}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-top:52px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:680px;font-size:18px}}@media (max-width: 600px){.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{margin-bottom:200px;width:100%!important}.mail-container[_ngcontent-%COMP%]   .mail-up[_ngcontent-%COMP%]{width:80%!important}.mail-container[_ngcontent-%COMP%]   .mail-H[_ngcontent-%COMP%]{margin-top:72px!important}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px!important}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:22px;line-height:32px;margin-top:52px}}  .mat-checkbox-checked.mat-accent .mat-checkbox-background, .mat-checkbox-indeterminate.mat-accent[_ng
1content-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#006fff}  .mat-checkbox .mat-checkbox-frame{background:rgba(143,155,179,.16);border:1px solid #c5cee0;border-radius:3px}@media only screen and (max-width: 500px){.sucreset[_ngcontent-%COMP%]{margin:0!important}}.mar[_ngcontent-%COMP%]{margin:auto}.field-label2[_ngcontent-%COMP%]{display:block;text-align:left}.new-H[_ngcontent-%COMP%]{height:45px}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px!important;line-height:24px;color:#222b45;font-weight:normal}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.res[_ngcontent-%COMP%]{width:132px!important}.btnRes[_ngcontent-%COMP%]{width:210px!important}.suc-res[_ngcontent-%COMP%]{width:93px!important}.redeemed-container[_ngcontent-%COMP%]{margin-top:13%}@media (max-width: 1224px){.redeemed-container[_ngcontent-%COMP%]{margin-top:6%}}@media only screen and (max-width: 500px){.redeemed-container[_ngcontent-%COMP%]{margin-top:2%!important}}']}),t})();const kN=["mat-button",""],SN=["*"],EN=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],AN=Kk(Wk(Xk(class{constructor(t){this._elementRef=t}})));let IN=(()=>{class t extends AN{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of EN)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(Nk),i.Y36(Wb,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&i.Gf(lS,5),2&t){let t;i.iGM(t=i.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(i.uIk("disabled",e.disabled||null),i.e
1kj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:kN,ngContentSelectors:SN,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1),i._UZ(3,"span",2)),2&t&&(i.xp6(2),i.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),i.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[lS],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),RN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[hS,$k],$k]}),t})();function NN(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",16),i.TgZ(2,"span"),i._uU(3,"There is no account associated with this email"),i.qZA(),i.BQk())}function LN(t,e){1&t&&(i.ynx(0),i._uU(1," Please enter a valid email address "),i.BQk())}function DN(t,e){1&t&&i._uU(0," Incorrect email format ")}function FN(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i._UZ(1,"mat-icon",16),i.YNc(2,LN,2,0,"ng-container",17),i.YNc(3,DN,1,0,"ng-template",null,18,i.W1O),i.qZA()),2&t){const t=i.MAs(4),e=i.oxw(2);i.xp6(2),i.Q6J("ngIf",e.isEmptyControl(e.username))("ngIfElse",t)}}function UN(t,e){1&t&&(i.TgZ(0,"div",19),i.TgZ(1,"div",19),i._UZ(2,"div",20),i.qZA(),i.qZA())}function ZN(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",2),i.TgZ(2,"div",3),i.TgZ(3,"h3"),i._uU(4,"Forgot your password?"),i.qZA(),i.qZA(),i.TgZ(5,"div",4),i.TgZ(6,"div",5),i.TgZ(7,"p"),i._uU(8," Enter the email you signed up with and we will send you instructions to reset your password. "),i.qZA(),i.qZA(),i.TgZ(9,"form",6),i.NdJ("submit",function(){return i.CHM(t),i.oxw().resetPassword()}),i.TgZ(10,"div",7),i.TgZ(11,"div",8),i.TgZ(12,"span"),i._uU(13,"Email"),i.qZA(),i.qZA(),i.TgZ(14,"mat-form-field",9),i._UZ(15,"input",10),i._UZ(16,"mat-icon",11),i.qZA(),i.TgZ(17,"div",12),i.YNc(18,NN,4,0,"ng-container",1),i.YNc(19,FN,5,2,"mat-error",1),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,UN,3,0,"ng-template",null,13,i.W1O),i.qZA(),i.TgZ(22,"div",14),i.TgZ(23,"button",15),i._uU(24," Send instructions "),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(9),i.Q6J("formGroup",t.formGroup),i.xp6(9),i.Q6J("ngIf",t.show),i.xp6(1),i.Q6J("ngIf",t.username.invali
1d&&(t.username.touched||t.username.dirty)&&!t.show),i.xp6(4),i.Q6J("disabled",t.loading)("disabled",t.isFormInvalid())}}function qN(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",21),i.TgZ(2,"h2",22),i._uU(3,"Check your email"),i.qZA(),i.TgZ(4,"p",23),i._uU(5),i.qZA(),i.TgZ(6,"div",24),i.TgZ(7,"button",25),i.NdJ("click",function(){return i.CHM(t),i.oxw().resetPassword()}),i.TgZ(8,"span",26),i._uU(9,"Resend"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(10,"p",27),i._uU(11," Did not receive the email? Check your spam filter,"),i._UZ(12,"br"),i._uU(13," or "),i.TgZ(14,"a",28),i._uU(15,"try another email address"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(5),i.hij(" We have sent instructions to reset your password to ",t.username.value," ")}}let VN=(()=>{class t{constructor(t,e,n,i,o,r){this._fb=t,this._auth=e,this._route=n,this.route=i,this._toastr=o,this.appLimit=r,this.loading=!1,this.hide=!0,this.show=!1,this.formGroup=this.initFormGroup()}get username(){return this.formGroup.get("username")}ngOnInit(){"true"===this.route.snapshot.queryParams.admin_dashboard?localStorage.setItem("admin_dashboard","true"):"true"===this.route.snapshot.queryParams.bursary_internal_dashboard&&localStorage.setItem("bursary_internal_dashboard","true")}initFormGroup(){return this._fb.group({username:[null,[_v.email,_v.required]]})}resetPassword(){if(this.username.errors&&this.username.errors.email)return void(this.show=!0);if(this.appLimit.MA_PASSWORD_RESET_LIMIT.invalid())return void this._toastr.error(`Please wait\n        ${this.millisToMinutesAndSeconds(this.appLimit.MA_PASSWORD_RESET_LIMIT.getTime())} minutes before pressing "Resend" again`);this.loading=!0;const t=Object.assign({},this.formGroup.value);this._auth.sendPasswordResetEmail(t.username).pipe((0,SC.b)(()=>this.appLimit.setPasswordResetLimit()),RC(()=>this.loading=!1)).subscribe(t=>{this._toastr.success(`An email with instructions to reset your password has been sent to your email: ${this.username.value}`),this.hide=!1,window.scrollTo(0,0)},t=>{this.show=!0})}isEmptyControl(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}isFormInvalid(){var t;return!this.formGroup||(null===(t=this.formGroup)||void 0===t?void 0:t.invalid)}millisToMinutesAndSeconds(t){const e=Math.floor(t/6e4),n=+(t%6e4/1e3).toFixed(0);return e+":"+(n<10?"0":"")+n}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(kC),i.Y36(eT),i.Y36(FO),i.Y36(gw),i.Y36(TT),i.Y36(dA))},t.\u0275cmp=i.Xpm({type:t,selectors:[["auth-reset-password-email"]],decls:3,vars:2,consts:[[1,"page-container","new-sso"],[4,"ngIf"],[1,"auth-dialog","reset-box","pass"],[1,"auth-dialog-header"],[1,"auth-dialog-body","reset-box-body","final"],[1,"reset-para"],["id","ngFormResetPassword",1,"cc","mar",3,"formGroup","submit"],[1,"form-field","reset-form"],[1,"field-label"],["appearance","outline",1,"ma-field","reset-input","new-field"],["matInput","","formControlName","username","type","email","placeholder","Please enter your email"],["matSuffix","","svgIcon","mail"],[1,"field-hide"],["load",""],[1,"auth-dialog-actions"],["form","ngFormResetPassword",1,"button-action","reset-button",3,"disabled"],["matSuffix","","svgIcon","errorInfo"],[4,"ngIf","ngIfElse"],["hasValueControl",""],[1,"rc","jc_c","ai_c"],[1,"imgloading"],[1,"mail-container"],[1,"mail-H"],[1,"mail-up"],[1,"RR"],["mat-flat-button","",3,"click"],[1,"btnText"],[1,"mail-para"],["href","/reset-password"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.YNc(1,ZN,25,5,"div",1),i.YNc(2,qN,16,1,"div",1),i.qZA()),2&t&&(i.xp6(1),i.Q6J("ngIf",e.hide),i.xp6(1),i.Q6J("ngIf",!e.hide))},directives:[R,yC,qv,xC,wE,UE,hv,Zv,OC,qS,yE,lE,IN],styles:['[_nghost-%COMP%]{flex-direction:column;height:calc(100% - 80px);display:flex;flex:1 0 auto}span[_ngcontent-%COMP%], a[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-style:normal;font-weight:normal}.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;font-family:Roboto Slab,sans-serif;font-size:36px;line-height:48px;margin-top:96px;margin-bottom:0;text-align:center}@media only screen and (max-width: 1224px){.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:72px}}@media only screen and (max-width: 500px){.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px;margin-top:72px!important}}.verifySign[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.verifySign[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:35px}@media (max-width: 600px){.verifySign[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:25px!important;font-size:22px!important;line-height:32px}}.verifySign[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{background:#006FFF!important;border-radius:8px!important;font-family:Open Sans!important;font-style:normal!important;font-weight:bold!important;font-size:12px!important;line-height:16px!important;text-align:center;color:#fff;width:114px!important;height:32px!important;border:none!important}.verifySign[_ngcontent-%COMP%]   .btn-success[_ngcontent-%COMP%]{padding:12px;background:#006FFF;border-radius:8px;width:210px;height:48px;font-family:Open Sans,sans-serif;font-style:normal;font-weight:bold;font-size:16px;line-height:20px;text-align:center;color:#fff;border:none;margin-top:56px;cursor:pointer}.verifySign[_ngcontent-%COMP%]   .ch[_ngcontent-%COMP%]{width:150px!important}.auth-sucsess-icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin:auto}.auth-sucsess-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:81px;width:81px}@media (max-width: 600px){.auth-sucsess-icon[_ngcontent-%COMP%]{margin-top:80px}.auth-sucsess-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:40px;width:40px}}re-captcha[_ngcontent-%COMP%]{margin-bottom:32px}.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;font-family:Roboto Slab;font-size:36px;line-height:48px;margin-top:56px;margin-bottom:56px;text-align:center}.banner-auth-migration-wrap[_ngcontent-%COMP%]{display:flex;margin:56px auto 10px;max-width:743px}.banner-auth-migration[_ngcontent-%COMP%]{display:flex;align-items:center;width:524px;height:147px;background:#112C6C}.banner-auth-migration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:372px;height:72px;font-family:Roboto;font-style:normal;font-weight:normal;font-size:13px;line-height:18px;color:#fff}.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;margin:55px 50px 54px 34px}.ml_sm[_ngcontent-%COMP%]{margin-left:calc(4px * 1)}.page-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:6%;margin-bottom:4%}@media only screen and (max-width: 1224px){.page-container[_ngcontent-%COMP%]{margin-bottom:2%!important}}.page-container[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:flex-start}.page-container[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]   .welcome-partners-da[_ngcontent-%COMP%]{margin:0;height:80px;width:476px;color:#fefefe;font-size:30px;font-weight:300;letter-spacing:.75px;line-height:40px}.new-sso[_ngcontent-%COMP%]{margin-top:0%;margin-bottom:0%}.auth-sign[_ngcontent-%COMP%]{margin:48px auto 80px;height:auto}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]{display:flex;align-items:center}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{margin-bottom:24px;display:flex;align-items:flex-start;flex-direction:column}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{height:40px;width:416px;border-radius:4px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px;line-height:24px;color:#222b45}
1.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{margin-bottom:30px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-style:normal;line-height:16px;padding-top:8px;width:410px}@media (max-width: 600px){.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{width:327px!important}}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .newdes[_ngcontent-%COMP%]{line-height:15px!important}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{margin-left:0!important}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-checkbox[_ngcontent-%COMP%]{margin:-8px 0 16px 50px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#8f9bb3;position:relative;bottom:3px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]{margin-top:0}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-check[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:56px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;line-height:16px;color:#222b45;margin-top:32px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#00d68f;font-weight:bold;text-decoration:none}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px;width:93px;border-radius:8px;padding:12px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]{align-items:flex-start}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;font-size:15px;line-height:24px;color:#222b45;margin:0 6px;bottom:5px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]{margin-left:0;position:relative;left:0px;bottom:6px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]     .mat-checkbox-frame{border:1px solid #c5cee0;border-radius:3px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]     .mat-checkbox-inner-container{width:20px;height:20px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]     .mat-checkbox-checked.mat-accent .mat-checkbox-background, .auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   .mat-checkbox-indeterminate.mat-accent[_ng
1content-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#006fff}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#006fff;text-decoration:none;position:relative}@media only screen and (max-width: 500px){.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{top:-2px}}@media only screen and (max-width: 1224px){.actions-forget[_ngcontent-%COMP%]{font-size:12px!important}.actions-check[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:13px!important;line-height:18px!important}.row-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.row-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:40px;width:83px;padding:10px;font-size:14px!important;line-height:16px!important}}.material-icons.custom-adjust[_ngcontent-%COMP%]{color:#00d68f;left:45%;position:relative;font-size:84px}@media only screen and (max-width: 768px){.material-icons.custom-adjust[_ngcontent-%COMP%]{left:44%}}@media only screen and (max-width: 500px){.material-icons.custom-adjust[_ngcontent-%COMP%]{font-size:74px;left:40%}}@media only screen and (min-width: 1920px){.material-icons.custom-adjust[_ngcontent-%COMP%]{left:45.5%}}.top[_ngcontent-%COMP%]{padding-top:3%!important}@media only screen and (max-width: 1224px){.top[_ngcontent-%COMP%]{padding-top:6%!important}}@media only screen and (max-width: 500px){.top[_ngcontent-%COMP%]{padding-top:15%!important}}.create[_ngcontent-%COMP%]{margin-top:10%!important}.reset-box[_ngcontent-%COMP%]{box-shadow:none!important}.reset-box[_ngcontent-%COMP%]   .example-focus-monitor[_ngcontent-%COMP%]   .cdk-touch-focused[_ngcontent-%COMP%]{background:rgba(0,0,255,.5)!important}.reset-box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1!important;font-family:"Roboto Slab";font-weight:700!important}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px}}.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:36px!important;font-weight:700!important;width:60%}@media only screen and (max-width: 1224px){.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:36px!important}}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px!important;width:80%}}.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start!important;width:416px;margin-left:auto;margin-right:auto;margin-bottom:56px!important}@media only screen and (max-width: 1224px){.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{width:416px;margin-bottom:70px!important}}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{width:334px!important;margin-bottom:64px!important}}@media only screen and (max-width: 500px){.pp[_ngcontent-%COMP%]{left:0%!important}}@media only screen and (max-width: 500px){.pass[_ngcontent-%COMP%]{left:0%!important}}.auth-dialog[_ngcontent-%COMP%]{background:#FEFEFE;box-shadow:0 2px 6px #0000004d;height:auto;border-radius:16px;margin:4% auto 0%!important}.auth-dialog.sign-in[_ngcontent-%COMP%]{margin:80px auto 0}
1.auth-dialog--no-shadow[_ngcontent-%COMP%]{box-shadow:none}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-header[_ngcontent-%COMP%]{padding:35px 0 0;display:flex;justify-content:center}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{position:relative;margin:0;height:40px;color:#666;font-size:36px;font-weight:bold;letter-spacing:.75px;line-height:48px;text-align:center}.auth-dialog[_ngcontent-%COMP%]   .success-body[_ngcontent-%COMP%]{margin-top:0!important;padding-top:0;padding-bottom:40px}@media only screen and (max-width: 360px){.auth-dialog[_ngcontent-%COMP%]   .success-body[_ngcontent-%COMP%]{margin-bottom:60px}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center;padding-bottom:8%;font-style:normal;font-weight:normal!important;font-family:"Roboto"!important;font-size:18px!important;line-height:26px;color:#222b45}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:100%}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-bottom:0!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-top:5%!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-bottom:10%!important;padding-top:0%!important}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:15px!important;font-family:"Roboto";font-weight:400;color:#000}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{height:186.2852783203px;width:199px;background:#ffffff;border:.9px solid #e6ebf7;box-shadow:0 8px 14px #4367f312;border-radius:1.8px;position:absolute;z-index:2;margin-left:28%;font-family:Roboto;font-style:normal;font-size:12px;line-height:14px;display:flex;flex-direction:column}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   .hed[_ngcontent-%COMP%]{font-weight:bold;opacity:1}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:normal;color:#003ac1;margin-top:7px;margin-left:20px;opacity:.3}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:13px;height:13px;margin-right:10px;position:relative;top:2px}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:580px;display:flex;flex-direction:row}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   .msg-error[_ngcontent-%COMP%]{margin-left:8px}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:40%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:468px!important}}@media only screen and (max-width: 768px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:53%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:468px!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:35%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:330px!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:40px!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .reP[_ngcontent-%COMP%]{width:280px;margin:auto}}@media only screen and (max-width: 375px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:40%!important}}@media only screen and (min-width: 1920px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:19.5%!important}}.auth-dialog[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{padding:0!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .re[_ng
1content-%COMP%]{padding:0!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]{padding:0 50px;margin-top:24px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin:auto auto 65px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:396px!important;height:24px;margin-left:0%!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{margin-bottom:12px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]:last-child{margin-bottom:0}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column;margin:auto}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;line-height:16px;padding-top:8px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:100%;min-width:100px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{font-size:12px;font-weight:500!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-input[_ngcontent-%COMP%]   .reset-field[_ngcontent-%COMP%]{background-color:#e4e9f2}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{flex:none;width:416px!important;height:40px;min-width:416px!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-checkbox[_ngcontent-%COMP%]{margin:-8px 0 16px 50px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .icon-box[_ngcontent-%COMP%]{flex:1 0 32px}@media (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{width:416px!important;min-width:416px!important}}@media (max-width: 600px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{width:334px!important;min-width:334px!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:286px!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{padding:0 50px 35px;margin-top:45px;display:flex;flex-direction:column;align-items:center;text-align:center}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .reset-button[_ngcontent-%COMP%]{font-weight:700;padding:12px;font-size:16px;line-height:20px;width:180px;height:48px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-top:11px;height:16px;width:96px;color:#575756;font-size:12px;line-height:16px;text-decoration:none}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:none!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:block!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:"Roboto";font-weight:700;font-size:14px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-family:"Roboto";font-weight:700;font-size:14px;color:#003ac1!important;text-decoration:underline}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:block!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-top:40px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{padding:0 50px 50px;margin-bottom:200px!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{margin-bottom:140px!important}}.footer-auth[_ngcontent-%COMP%]{width:100%;margin-top:auto;padding-top:calc(4px * 6)}.footer-auth[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.footer-auth[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:28px;
1width:200px}.auth-signup[_ngcontent-%COMP%]{margin:48px auto -10%;height:auto}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-left:0}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .mar-true[_ngcontent-%COMP%]{position:relative;left:8.5%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .mar-false[_ngcontent-%COMP%]{position:relative;left:7%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{margin-top:8px;display:flex;flex-direction:row}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:24px;font-size:15px;color:#222b45;margin-left:10px;margin-top:2px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline;font-weight:bold}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;line-height:16px;padding-top:8px;font-weight:600;font-size:12px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{position:relative;right:16%}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{right:18%}}@media (max-width: 600px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{right:10%!important}}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{position:relative;right:13%}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{right:12%}}@media (max-width: 600px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{right:10%!important}}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:56px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:48px;width:99px;border-radius:8px;padding:12px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;line-height:16px;color:#222b45}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:150px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:bold;color:#006fff;text-decoration:none}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:14px!important}}.purchase-section[_ngcontent-%COMP%]{width:808px;height:auto;background:#F7F9FC;border-radius:4px;display:flex;flex-direction:row;align-items:center;justify-content:space-evenly;margin:90px auto 15px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:56px;margin-bottom:56px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;width:370px;font-family:Roboto Slab;font-size:36px;line-height:48px;margin-bottom:6px;text-align:center}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;font-weight:normal;font-size:18px;line-height:26px;display:flex;width:436px;align-items:center;text-align:center;color:#222b45}
1.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]{width:185.49px;height:204px;border-radius:4.0597px;background:#FFFFFF;display:flex;flex-direction:column;box-shadow:0 0 10px #0003!important}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]{width:185.49px;height:105.55px;text-align:center;display:flex;flex-direction:column;font-style:normal}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .text-sec[_ngcontent-%COMP%]{height:75.55px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-family:Roboto Slab;font-weight:bold;font-size:15.2239px;line-height:20px;color:#003ac1;margin:8px auto}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:normal;font-size:9.13433px;line-height:13px;color:#222b45}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .bundle-para[_ngcontent-%COMP%]{margin:0 20px 20px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .course-para[_ngcontent-%COMP%]{margin:25px 15px auto}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]{height:30px;margin:0 15px;align-items:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .courseprice[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .bundleprice[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:49%}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:12px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   .count-para[_ngcontent-%COMP%]{position:relative;left:4px;bottom:4px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .divide-sec[_ngcontent-%COMP%]{width:1.01px;height:10.66px;background:#E4E9F2}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .price-para[_ngcontent-%COMP%]{font-weight:bold;color:#00d68f;position:relative;bottom:4px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:row;justify-content:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-img[_ngcontent-%COMP%]{height:98.45px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:185.49px;height:98.45px;border-bottom-left-radius:4.0597px;border-bottom-right-radius:4.0597px}@media (max-width: 1224px){.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:30px}.purchase-section[_ngcontent-%COMP%]{width:100%;margin:72px auto 15px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{left:3%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:18px;font-size:13px;margin-top:4px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]{margin-top:56px;margin-bottom:100px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:40px;width:87px;font-size:14px;line-height:16px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 600px){.purchase-section[_ngcontent-%COMP%]{flex-direction:column;margin-top:0%!important}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:24px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px;line-height:32px;margin-bottom:24px;text-align:center;width:214px!important}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important;width:312px!important}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]{margin-bottom:32px}.auth-signup-header[_ngcontent-%COMP%]{display:flex;justify-content:center}.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{width:217px;font-size:22px;line-height:32px;margin-bottom:48px;margin-top:20px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]{margin-left:0;display:flex;align-items:center}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{width:75%;position:relative;right:4%;left:auto}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:16px;font-size:12px;margin-top:-4px}}@media (max-width: 375px){.signup-privacy[_ngcontent-%COMP%]{right:7%!important}}@media (max-width: 1224px){.verify-email-container[_ngcontent-%COMP%]{margin-bottom:42%!important}}@media (max-width: 600px){.verify-email-container[_ngcontent-%COMP%]{margin-bottom:52%!important}}.verify-email-container[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;margin:16px}@media (max-width: 600px){.verify-email-container[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{width:auto}}.bottom-container[_ngcontent-%COMP%]{width:100%;margin-top:0!important;display:flex;flex-direction:row;justify-content:center}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:32px}@media (max-width: 1224px){.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .resend[_ngcontent-%COMP%]{position:relative!important}}@media (max-width: 600px){.bottom-container[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:row}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:32px}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .resend[_ngcontent-%COMP%]{position:relative!important}}.mat-input-element[_ngcontent-%COMP%]{width:512px;padding-bottom:7px;font-family:Roboto;font-style:normal;font-weight:normal}.mobile-para[_ngcontent-%COMP%]{display:none}@media (max-width: 1224px){.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:65px;height:65px;margin:41px 40px 42px 24px}.auth-sign[_ngcontent-%COMP%]{margin-bottom:208px}}@media (max-width: 600px){.auth-sign[_ngcontent-%COMP%]{margin-top:38px;margin-bottom:144px}.banner-auth-migration-wrap[_ngcontent-%COMP%]{margin:32px auto 0!important}.banner-auth-migration[_ngcontent-%COMP%]{width:350px;height:132px}.banner-auth-migration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{height:90px;width:247px;margin-top:20px;margin-bottom:22px}.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:48px;width:48px;margin:45px 16px 39px 23px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{width:334px}.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:120px}}  .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{background-color:#fff!important}.verified[_ngcontent-%COMP%]{margin-top:15%!important;
1margin-bottom:-50%!important;position:relative!important}.mail-container[_ngcontent-%COMP%]{font-style:normal;font-weight:normal;text-align:center;display:flex;flex-direction:column;align-items:center}.mail-container[_ngcontent-%COMP%]   .mail-H[_ngcontent-%COMP%]{margin-top:96px!important}.mail-container[_ngcontent-%COMP%]   .mail-up[_ngcontent-%COMP%]{width:70%}.mail-container[_ngcontent-%COMP%]   .mailerror-para[_ngcontent-%COMP%]{font-size:18px!important;line-height:26px}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{font-size:36px!important;color:#003ac1!important;line-height:48px;margin-top:0!important}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#00d9d5;font-weight:700;font-family:"Roboto Slab"}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-family:Roboto Slab;font-size:36px;line-height:48px;color:#003ac1;margin-bottom:24px;line-height:1}.mail-container[_ngcontent-%COMP%]   .mailerror-heading[_ngcontent-%COMP%]{color:#ff3d71!important}.mail-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:normal;font-style:normal;font-size:18px;line-height:26px;color:#222b45}.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:52%}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:57%}}@media (max-width: 768px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:75%!important}}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:90%!important}}@media (max-width: 375px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:100%!important}}.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:33%;font-size:16px!important;line-height:24px!important}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:35%}}@media (max-width: 768px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:48%}}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}}.mail-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px;width:99px;background:#006fff;border-radius:8px;margin:48px 12px 32px}.mail-container[_ngcontent-%COMP%]   .btnEmail[_ngcontent-%COMP%]{width:147px;height:48px;background:#006fff;border-radius:8px;margin:48px 12px 32px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px;color:#fff;display:flex;flex-direction:row;align-items:center;justify-content:center;text-decoration:none}.mail-container[_ngcontent-%COMP%]   .Med[_ngcontent-%COMP%]{width:99px!important}.mail-container[_ngcontent-%COMP%]   .an[_ngcontent-%COMP%]{width:132px!important}.mail-container[_ngcontent-%COMP%]   .btnText[_ngcontent-%COMP%]{font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px;color:#fff}.mail-container[_ngcontent-%COMP%]   .btnTextView[_ngcontent-%COMP%]{font-family:Open Sans;font-weight:bold;font-size:12px;text-align:left;padding:0;line-height:20px;color:#fff}.mail-container[_ngcontent-%COMP%]   .error-icon[_ngcontent-%COMP%]{width:12px;height:12px;float:left;margin-top:2px}.mail-container[_ngcontent-%COMP%]   .errortext[_ngcontent-%COMP%]{font-size:12px;color:#ff3d71;font-family:Roboto;font-weight:500!important;float:left;margin-left:2px}.mail-container[_ngcontent-%COMP%]   .btnView[_ngcontent-%COMP%]{width:auto;margin-top:7px}.mail-container[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{width:300px}.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{font-size:16px;line-height:24px}.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#003ac1;font-weight:bold}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:800px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]   .email-text[_ngcontent-%COMP%]{color:#222b45!important}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .mailerror-para[_ngcontent-%COMP%]{margin-left:12px!important;margin-right:12px!important}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:320px!important;font-size:18px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]   .email-text[_ngcontent-%COMP%]{word-break:break-all;color:#222b45!important}}.mail-container[_ngcontent-%COMP%]   .RR[_ngcontent-%COMP%]{display:flex;flex-direction:row}.verify[_ngcontent-%COMP%]{margin-top:6%!important}@media (max-width: 1224px){.verify[_ngcontent-%COMP%]{margin-bottom:8%!important}}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{margin-bottom:300px}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-top:52px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:680px;font-size:18px}}@media (max-width: 600px){.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{margin-bottom:200px;width:100%!important}.mail-container[_ngcontent-%COMP%]   .mail-up[_ngcontent-%COMP%]{width:80%!important}.mail-container[_ngcontent-%COMP%]   .mail-H[_ngcontent-%COMP%]{margin-top:72px!important}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px!important}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:22px;line-height:32px;margin-top:52px}}  .mat-checkbox-checked.mat-accent .mat-checkbox-background, .mat-checkbox-indeterminate.mat-accent[_ng
1content-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#006fff}  .mat-checkbox .mat-checkbox-frame{background:rgba(143,155,179,.16);border:1px solid #c5cee0;border-radius:3px}@media only screen and (max-width: 500px){.sucreset[_ngcontent-%COMP%]{margin:0!important}}.mar[_ngcontent-%COMP%]{margin:auto}.field-label2[_ngcontent-%COMP%]{display:block;text-align:left}.new-H[_ngcontent-%COMP%]{height:45px}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px!important;line-height:24px;color:#222b45;font-weight:normal}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.res[_ngcontent-%COMP%]{width:132px!important}.btnRes[_ngcontent-%COMP%]{width:210px!important}.suc-res[_ngcontent-%COMP%]{width:93px!important}.redeemed-container[_ngcontent-%COMP%]{margin-top:13%}@media (max-width: 1224px){.redeemed-container[_ngcontent-%COMP%]{margin-top:6%}}@media only screen and (max-width: 500px){.redeemed-container[_ngcontent-%COMP%]{margin-top:2%!important}}']}),t})(),jN=(()=>{class t{constructor(t,e){this.document=t,this._auth=e,this.logout()}logout(){this._auth.logout().subscribe(()=>{this.document.location.href="https://www.medics.academy/users/sign_out"})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s),i.Y36(eT))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-logout"]],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();function zN(t,e=Ze.E,n=Ze.E){return WC(()=>t()?e:n)}function GN(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",29),i.TgZ(2,"span",30),i._uU(3,"Please enter your email"),i.qZA(),i.BQk())}function BN(t,e){1&t&&(i._UZ(0,"mat-icon",29),i.TgZ(1,"span",30),i._uU(2,"Incorrect email format"),i.qZA())}function HN(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i.YNc(1,GN,4,0,"ng-container",1),i.YNc(2,BN,3,0,"ng-template",null,28,i.W1O),i.qZA()),2&t){const t=i.MAs(3),e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.isEmptyControl(e.newEmail))("ngIfElse",t)}}function YN(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",29),i.TgZ(2,"span",30),i._uU(3,"Please enter your current password"),i.qZA(),i.BQk())}function QN(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i.YNc(1,YN,4,0,"ng-container",19),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngIf",t.isEmptyControl(t.password))}}function JN(t,e){1&t&&i._UZ(0,"screen-loading")}function $N(t,e){if(1&t&&i.YNc(0,JN,1,0,"screen-loading",19),2&t){const t=i.oxw(2);i.Q6J("ngIf",t.appState.loading)}}function WN(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"p",31),i._uU(2," Did not receive the email? Check your spam filter, or "),i.TgZ(3,"a",32),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).logout()}),i._uU(4,"try another email address"),i.qZA(),i.qZA(),i.BQk()}}function KN(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"div",4),i.TgZ(2,"h2",5),i._uU(3," Please verify your email address to access the "),i._UZ(4,"br"),i.TgZ(5,"span"),i._uU(6,"Medics.Academy "),i.qZA(),i._uU(7," platform "),i.qZA(),i.TgZ(8,"p",6),i._uU(9),i.qZA(),i.TgZ(10,"div",7),i.TgZ(11,"button",8),i.NdJ("
1click",function(){return i.CHM(t),i.oxw().sendEmailVerification()}),i.TgZ(12,"span",9),i._uU(13,"Resend"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(14,"p",10),i._uU(15," We are currently experiencing difficulties in sending emails to some NHS email addresses. If you think that"),i._UZ(16,"br"),i._uU(17," this might be affecting you, then please kindly enter an alternative email. This email address"),i._UZ(18,"br"),i._uU(19," will be associated with your account and the email verification link will be sent to it."),i._UZ(20,"br"),i._uU(21," We apologise for any inconvenience caused. "),i.qZA(),i.TgZ(22,"p",11),i._uU(23,"Update email address"),i.qZA(),i.TgZ(24,"form",12),i.NdJ("ngSubmit",function(){return i.CHM(t),i.oxw().submit()}),i.TgZ(25,"div",13),i.TgZ(26,"div",14),i.TgZ(27,"span"),i._uU(28,"Email"),i.qZA(),i.qZA(),i.TgZ(29,"mat-form-field",15),i._UZ(30,"input",16),i._UZ(31,"mat-icon",17),i.qZA(),i.TgZ(32,"div",18),i.YNc(33,HN,4,2,"mat-error",19),i.qZA(),i.qZA(),i.TgZ(34,"div",20),i.TgZ(35,"div",21),i.TgZ(36,"span"),i._uU(37,"Current Password"),i.qZA(),i.qZA(),i.TgZ(38,"mat-form-field",15),i._UZ(39,"input",22),i.TgZ(40,"span",23),i.NdJ("click",function(){i.CHM(t);const e=i.oxw();return e.hide=!e.hide}),i._UZ(41,"mat-icon",24),i.qZA(),i.qZA(),i.TgZ(42,"div",18),i.YNc(43,QN,2,1,"mat-error",19),i.qZA(),i.qZA(),i.qZA(),i.TgZ(44,"button",25),i.TgZ(45,"span",26),i._uU(46,"Update email"),i.qZA(),i.qZA(),i.YNc(47,$N,1,1,"ng-template",null,27,i.W1O),i.YNc(49,WN,5,0,"ng-container",19),i.qZA(),i.BQk()}if(2&t){const t=i.oxw();i.xp6(9),i.hij(" The following email address ",t.auth.user.email," has not been verified, please make sure to verify before signing in "),i.xp6(15),i.Q6J("formGroup",t.formGroup),i.xp6(9),i.Q6J("ngIf",t.newEmail.invalid&&(t.newEmail.touched||t.newEmail.dirty)),i.xp6(6),i.Q6J("type",t.hide?"password":"text"),i.xp6(1),i.uIk("aria-pressed",t.hide),i.xp6(1),i.s9C("svgIcon",t.hide?"lockEye":"openEye"),i.xp6(2),i.Q6J("ngIf",t.password.invalid&&(t.password.touched||t.password.dirty)),i.xp6(1),i.Q6J("disabled",t.isFormInvalid()),i.xp6(5),i.Q6J("ngIf",!t.isSignup)}}function XN(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"button",37),i.NdJ("click",function(){return i.CHM(t),i.oxw(3).navigateToSchool()}),i._uU(2," Go to Medics.Academy "),i.qZA(),i.BQk()}}function tL(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",38),i.NdJ("click",function(){return i.CHM(t),i.oxw(3).navigateToSchool()}),i._uU(1," Checkout "),i.qZA()}}function eL(t,e){if(1&t&&(i.ynx(0),i.TgZ(1,"div",33),i._UZ(2,"mat-icon",34),i.qZA(),i.TgZ(3,"div",35),i.TgZ(4,"h3"),i._uU(5,"Your email has been verified"),i.qZA(),i.YNc(6,XN,3,0,"ng-container",1),i.YNc(7,tL,2,0,"ng-template",null,36,i.W1O),i.qZA(),i.BQk()),2&t){const t=i.MAs(8),e=i.oxw(2);i.xp6(6),i.Q6J("ngIf",!e.checkout)("ngIfElse",t)}}function nL(t,e){if(1&t&&(i.YNc(0,eL,9,2,"ng-container",1),i.ALo(1,"async")),2&t){const t=i.oxw(),e=i.MAs(7);i.Q6J("ngIf",!1!==i.lcZ(1,2,t.auth.emailVerified)||null)("ngIfElse",e)}}function iL(t,e){if(1&t&&(i.ynx(0),i.TgZ(1,"p",42),i._uU(2," An email has been sent to "),i._UZ(3,"br"),i.TgZ(4,"span",43),i._uU(5),i.qZA(),i._uU(6," to verify your account. "),i.qZA(),i.BQk()),2&t){const t=i.oxw(4);i.xp6(5),i.Oqu(null==t.auth.user?null:t.auth.user.email)}}function oL(t,e){if(1&t&&(i.TgZ(0,"p",42),i._uU(1," An email has been resent to "),i._UZ(2,"br"),i.TgZ(3,"span",43),i._uU(4),i.qZA(),i._uU(5," to verify your account. "),i.qZA()),2&t){const t=i.oxw(4);i.xp6(4),i.Oqu(null==t.auth.user?null:t.auth.user.email)}}function rL(t,e){if(1&t&&(i.ynx(0),i.TgZ(1,"h2"),i._uU(2,"Email verification"),i.qZA(),i.YNc(3,iL,7,1,"ng-container",1),i.YNc(4,oL,6,1,"ng-template",null,41,i.W1O),i.BQk()),2&t){const t=i.MAs(5),e=i.oxw(3);i.xp6(3),i.Q6J("ngIf",e.hide)("ngIfElse",t)}}function sL(t,e){if(1&t&&(i.ynx(0),i.TgZ(1,"h2",5),i._uU(2," Please verify your email address to access the "),i._UZ(3,"br"),i.TgZ(4,"span"),i._uU(5,"Medics.Academy "),i.qZA(),i._uU(6," platform "),i.qZA(),i.TgZ(7,"p",6),i._uU(8),i.qZA(),i.BQk()),2&t){const t=i.oxw(3);i.xp6(8),i.hij(" The following email address ",null==t.auth.user?null:t.auth.user.email," has not been verified, please verify your email address to access the Medics.Academy platform ")}}function aL(t,e){if(1&t){const t=i.EpF();
1i.ynx(0),i.TgZ(1,"button",8),i.NdJ("click",function(){return i.CHM(t),i.oxw(3).sendEmailVerification()}),i.TgZ(2,"span",9),i._uU(3,"Resend"),i.qZA(),i.qZA(),i.BQk()}}function cL(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"button",44),i.NdJ("click",function(){return i.CHM(t),i.oxw(3).sendEmailVerification()}),i.TgZ(2,"span",9),i._uU(3,"Resend email"),i.qZA(),i.qZA(),i.BQk()}}function uL(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",29),i.TgZ(2,"span",30),i._uU(3,"Please enter your email"),i.qZA(),i.BQk())}function lL(t,e){1&t&&(i._UZ(0,"mat-icon",29),i.TgZ(1,"span",30),i._uU(2,"Incorrect email format"),i.qZA())}function hL(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i.YNc(1,uL,4,0,"ng-container",1),i.YNc(2,lL,3,0,"ng-template",null,28,i.W1O),i.qZA()),2&t){const t=i.MAs(3),e=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.isEmptyControl(e.newEmail))("ngIfElse",t)}}function dL(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",29),i.TgZ(2,"span",30),i._uU(3,"Please enter your current password"),i.qZA(),i.BQk())}function pL(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i.YNc(1,dL,4,0,"ng-container",19),i.qZA()),2&t){const t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",t.isEmptyControl(t.password))}}function fL(t,e){if(1&t&&(i.TgZ(0,"button",45),i.TgZ(1,"span",46),i._uU(2,"Update email"),i.qZA(),i.qZA()),2&t){const t=i.oxw(3);i.Q6J("disabled",t.loading||t.isFormInvalid())}}function gL(t,e){1&t&&i._UZ(0,"screen-loading")}function mL(t,e){if(1&t&&i.YNc(0,gL,1,0,"screen-loading",19),2&t){const t=i.oxw(3);i.Q6J("ngIf",t.appState.loading)}}function _L(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"div",4),i.YNc(2,rL,6,2,"ng-container",19),i.YNc(3,sL,9,1,"ng-container",19),i.TgZ(4,"div",7),i.YNc(5,aL,4,0,"ng-container",19),i.YNc(6,cL,4,0,"ng-container",19),i.qZA(),i.TgZ(7,"p",10),i._uU(8," We are having difficulty sending emails to some NHS email addresses. If you think this might be affecting you,"),i._UZ(9,"br"),i._uU(10," please enter an alternative email.This email address will be associated with your account and "),i._UZ(11,"br"),i._uU(12,"the email verification link will be sent to it. We apologise for any inconvenience caused. "),i.qZA(),i.TgZ(13,"p",11),i._uU(14,"Enter new email address"),i.qZA(),i.TgZ(15,"form",12),i.NdJ("ngSubmit",function(){return i.CHM(t),i.oxw(2).submit()}),i.TgZ(16,"div",13),i.TgZ(17,"div",14),i.TgZ(18,"span"),i._uU(19,"Email"),i.qZA(),i.qZA(),i.TgZ(20,"mat-form-field",15),i._UZ(21,"input",16),i._UZ(22,"mat-icon",17),i.qZA(),i.TgZ(23,"div",18),i.YNc(24,hL,4,2,"mat-error",19),i.qZA(),i.qZA(),i.TgZ(25,"div",20),i.TgZ(26,"div",21),i.TgZ(27,"span"),i._uU(28,"Current Password"),i.qZA(),i.qZA(),i.TgZ(29,"mat-form-field",15),i._UZ(30,"input",22),i.TgZ(31,"span",23),i.NdJ("click",function(){i.CHM(t);const e=i.oxw(2);return e.hide=!e.hide}),i._UZ(32,"mat-icon",24),i.qZA(),i.qZA(),i.TgZ(33,"div",18),i.YNc(34,pL,2,1,"mat-error",19),i.qZA(),i.qZA(),i.qZA(),i.TgZ(35,"div",39),i.YNc(36,fL,3,1,"button",40),i.qZA(),i.YNc(37,mL,1,1,"ng-template",null,27,i.W1O),i.qZA(),i.BQk()}if(2&t){const t=i.MAs(38),e=i.oxw(2);i.xp6(2),i.Q6J("ngIf",e.isSignup),i.xp6(1),i.Q6J("ngIf",!e.isSignup),i.xp6(2),i.Q6J("ngIf",!e.isSignup),i.xp6(1),i.Q6J("ngIf",e.isSignup),i.xp6(9),i.Q6J("formGroup",e.formGroup),i.xp6(9),i.Q6J("ngIf",e.newEmail.invalid&&(e.newEmail.touched||e.newEmail.dirty)),i.xp6(6),i.Q6J("type",e.hide?"password":"text"),i.xp6(1),i.uIk("aria-pressed",e.hide),i.xp6(1),i.s9C("svgIcon",e.hide?"lockEye":"openEye"),i.xp6(2),i.Q6J("ngIf",e.password.invalid&&(e.password.touched||e.password.dirty)),i.xp6(2),i.Q6J("ngIf",!e.loading)("ngIfElse",t)}}function yL(t,e){if(1&t&&(i.YNc(0,_L,39,12,"ng-container",1),i.ALo(1,"async")),2&t){const t=i.oxw(),e=i.MAs(5);i.Q6J("ngIf",!1===i.lcZ(1,2,t.auth.emailVerified))("ngIfElse",e)}}let bL=(()=>{class t{constructor(t,e,n,i,o,r,s,a,c){this.document=t,this.appState=e,this.appLimit=n,this.auth=i,this.toastr=o,this.route=r,this.dialog=s,this.router=a,this._formBuilder=c,this.hide=!0,this.checkout=!1,this.loading=!1,this.issuccsess=!1,this.destroy$=new ve.xQ,this.formGroup=this.initFormGroup(),this.route.queryParams.subscribe(t=>{this.isSignup=!!(null==t?void 0:t.signup),this.token=null==t?void 0:t.token})}get password(){return this.formGroup.get("password")}get newEmail(){return this.formGroup.get("new_email")}initFormGroup(){return this._formBuilder.group({new_email:[null,[_v.email,_v.required]],password:[null,_v.required]})}sendEmailVerification(){this.appLimit.MA_SIGNUP_LIMIT.invalid()?this.toastr.error(`Please wait ${this.millisToMinutesAndSeconds(this.appLimit.MA_SIGNUP_LIMIT.getTime())} minutes before pressing "Resend" again`):this.appLimit.MA_VERIFY_EMAIL_LIMIT.pipe(qe(1),Te(t=>t.valid()?(this.appState.loading=!0,this.auth.sendVerificationMail().pipe(qe(1))):(this.toastr.error(`Please wait ${this.millisToMinutesAndSeconds(t.getTime())} minutes before pressing "Resend" again`),hA)),Te(()=>this.appLimit.setVerifyEmailLimit()),RC(()=>{this.appState.loading=!1}),EC(this.destroy$)).subscribe(()=>{this.toastr.success(VC(this.auth.user.email)),this.hide=!1},t=>{console.log(t),this.toastr.error(tT.Parse(t.code))})}submit(){console.log("Submitting form!"),this.auth.user.email.toLowerCase()!==this.newEmail.value.toLowerCase()?(this.appState.loading=!0,this.appLimit.MA_CHANGE_EMAIL_LIMIT.pipe(qe(1),Te(t=>t.valid()?this.auth.reauthenticateWithCredential(this.password.value):(this.toastr.error("You can only change your email address once every 7 days"),this.appState.loading=!1,hA)),Te(()=>this.auth.updateEmail(this.newEmail.value)),Te(()=>this.auth.reauthenticateWithCredential(this.password.value,this.newEmail.value)),Te(()=>this.auth.sendVerificationMail()),Te(()=>this.appLimit.setChangeEmailLimit()),RC(()=>{this.appState.loading=!1})).subscribe(t=>(this.issuccsess=!0,this.formGroup.reset(),this.appState.loading=!1,localStorage.setItem("emailChanged","true"),this.router.navigate(["auth","verify"])),t=>{"auth/wrong-password"===(console.log(t),t.code)?this.toastr.error("Wrong password. Please enter the account's most recent password."):this.toastr.error(tT.Parse(t.code))})):this.toastr.error("Please use a different email, this email is the same associated to your current account")}navigateToSchool(){console.log("NAVIGATE TO SCHOOL!"),this.appState.loading=!0;const t={admin_dashboard:lP,bursary_internal_dashboard:"https://ma-bursary-internal-dashboard.web.app/",bursary_external_dashboard:"https://ma-bursary-external-dashboard.web.app/"};for(const o in t)if("true"===localStorage.getItem(o))return localStorage.removeItem(o),void(this.document.location.href=t[o]);const e=localStorage.getItem("checkout"),n=localStorage.getItem("getFreeTrial");if(e){console.log("CHECKOUT"),this.auth.updateLastLoginTime().subscribe();const t=localStorage.getItem("product"),e=localStorage.getItem("price");this.authFlow=this.auth.signEnroll(t,e).pipe((0,SC.b)(t=>this.document.location.href=t.redirect_uri))}else if(n){console.log("FREE TRIAL"),this.auth.updateLastLoginTime().subscribe();const t=localStorage.getItem("product");this.authFlow=this.auth.signForFreeTrial(t,n).pipe((0,SC.b)(t=>this.document.location.href=t.redirect_uri))}else console.log("SCHOOL"),this.auth.updateLastLoginTime().subscribe(),this.authFlow=this.auth.signinSchool().pipe((0,SC.b)(t=>{console.log("AUTH FLOW"),this.document.location.href=t.redirect_uri}));const i=(0,Et.of)(!1).pipe((0,SC.b)(()=>{console.log("NON AUTH FLOW"),this.router.navigate(["/"])}),RC(()=>{this.appState.loading=!1}));this.auth.authenticated.pipe(qe(1),(0,It.zg)(t=>zN(()=>!!t,this.authFlow,i))).subscribe(()=>{localStorage.clear()},t=>{this.appState.loading=!1,this.toastr.error(tT.Parse(t.code))})}logout(){this.auth.logout().pipe(EC(this.destroy$)).subscribe(()=>this.router.navigate(["signin"]),()=>this.toastr.error("Something went wrong. Please refresh the page."))}millisToMinutesAndSeconds(t){const e=Math.floor(t/6e4),n=+(t%6e4/1e3).toFixed(0);return e+":"+(n<10?"0":"")+n}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}ngOnInit(){"true"===localStorage.getItem("checkout")&&(this.checkout=!0)}isEmptyControl(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}isFormInvalid(){var t;return!this.formGroup||(null===(t=this.formGroup)||void 0===t?void 0:t.invali
1d)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s),i.Y36(BC),i.Y36(dA),i.Y36(eT),i.Y36(TT),i.Y36(gw),i.Y36(_I),i.Y36(FO),i.Y36(kC))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-verify-email"]],decls:8,vars:4,consts:[[1,"page-container","verify-email-container"],[4,"ngIf","ngIfElse"],["showSuccess",""],["newUser",""],[1,"mail-container"],[1,"warning"],[1,"mailerror-para","ver"],[1,"rc","jc_sb","mt_28","bottom-container"],["mat-flat-button","",1,"btnEmail","Med",3,"click"],[1,"btnText","resend"],[1,"paratextemail"],[1,"paratext","mt_20"],["id","ngForm",3,"formGroup","ngSubmit"],[1,"form-field","form-field--mb-sm","cc","mt_15"],[1,"field-label2"],["appearance","outline","color","primary",1,"ma-field"],["matInput","","formControlName","new_email","type","email","placeholder","New email"],["matSuffix","","svgIcon","mail"],[1,"field-hide"],[4,"ngIf"],[1,"form-field","form-field--mb-sm","cc"],[1,"field-label2","mt_5"],["matInput","","formControlName","password","placeholder","Current password","autocomplete","new-password",3,"type"],["form","#","matSuffix","",3,"click"],[3,"svgIcon"],["mat-button","","matStepperNext","","form","ngForm","type","submit",1,"button--right","button--success","btnView",3,"disabled"],[1,"btnTextView"],["spinner",""],["hasValueControl",""],["matSuffix","","svgIcon","errorInfo",1,"error-icon"],[1,"errortext"],[1,"mail-para","verP"],[3,"click"],[1,"auth-sucsess-icon"],["svgIcon","Desktop_icon"],[1,"auth-header","verifySign"],["check",""],[1,"btn-success",3,"click"],[1,"btn-success","ch",3,"click"],[1,"buttons-container"],["mat-button","","class","button--success btnView","form","ngForm","type","submit",3,"disabled",4,"ngIf","ngIfElse"],["hasEmail",""],[1,"paratext"],[1,"email-text"],["mat-flat-button","",1,"btnEmail",3,"click"],["mat-button","","form","ngForm","type","submit",1,"button--success","btnView",3,"disabled"],[1,"btnText"]],template:function(t,e){if(1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"article"),i.YNc(2,KN,50,9,"ng-container",1),i.ALo(3,"async"),i.YNc(4,nL,2,4,"ng-template",null,2,i.W1O),i.YNc(6,yL,2,4,"ng-template",null,3,i.W1O),i.qZA(),i.qZA()),2&t){const t=i.MAs(7);i.xp6(2),i.Q6J("ngIf",(null==e.auth.user?null:e.auth.user.has_changed_email)&&!1===i.lcZ(3,2,e.auth.emailVerified))("ngIfElse",t)}},directives:[R,IN,yC,qv,xC,wE,UE,hv,Zv,OC,qS,yE,lE,bI],pipes:[G],styles:['[_nghost-%COMP%]{flex-direction:column;height:calc(100% - 80px);display:flex;flex:1 0 auto}span[_ngcontent-%COMP%], a[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-style:normal;font-weight:normal}.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;font-family:Roboto Slab,sans-serif;font-size:36px;line-height:48px;margin-top:96px;margin-bottom:0;text-align:center}@media only screen and (max-width: 1224px){.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:72px}}@media only screen and (max-width: 500px){.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px;margin-top:72px!important}}.verifySign[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.verifySign[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:35px}@media (max-width: 600px){.verifySign[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:25px!important;font-size:22px!important;line-height:32px}}.verifySign[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{background:#006FFF!important;border-radius:8px!important;font-family:Open Sans!important;font-style:normal!important;font-weight:bold!important;font-size:12px!important;line-height:16px!important;text-align:center;color:#fff;width:114px!important;height:32px!important;border:none!important}.verifySign[_ngcontent-%COMP%]   .btn-success[_ngcontent-%COMP%]{padding:12px;background:#006FFF;border-radius:8px;width:210px;height:48px;font-family:Open Sans,sans-serif;font-style:normal;font-weight:bold;font-size:16px;line-height:20px;text-align:center;color:#fff;border:none;margin-top:56px;cursor:pointer}.verifySign[_ngcontent-%COMP%]   .ch[_ngcontent-%COMP%]{width:150px!important}.auth-sucsess-icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin:auto}.auth-sucsess-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:81px;width:81px}@media (max-width: 600px){.auth-sucsess-icon[_ngcontent-%COMP%]{margin-top:80px}.auth-sucsess-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:40px;width:40px}}re-captcha[_ngcontent-%COMP%]{margin-bottom:32px}.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;font-family:Roboto Slab;font-size:36px;line-height:48px;margin-top:56px;margin-bottom:56px;text-align:center}.banner-auth-migration-wrap[_ngcontent-%COMP%]{display:flex;margin:56px auto 10px;max-width:743px}.banner-auth-migration[_ngcontent-%COMP%]{display:flex;align-items:center;width:524px;height:147px;background:#112C6C}.banner-auth-migration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:372px;height:72px;font-family:Roboto;font-style:normal;font-weight:normal;font-size:13px;line-height:18px;color:#fff}.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;margin:55px 50px 54px 34px}.ml_sm[_ngcontent-%COMP%]{margin-left:calc(4px * 1)}.page-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:6%;margin-bottom:4%}@media only screen and (max-width: 1224px){.page-container[_ngcontent-%COMP%]{margin-bottom:2%!important}}.page-container[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:flex-start}.page-container[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]   .welcome-partners-da[_ngcontent-%COMP%]{margin:0;height:80px;width:476px;color:#fefefe;font-size:30px;font-weight:300;letter-spacing:.75px;line-height:40px}.new-sso[_ngcontent-%COMP%]{margin-top:0%;margin-bottom:0%}.auth-sign[_ngcontent-%COMP%]{margin:48px auto 80px;height:auto}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]{display:flex;align-items:center}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{margin-bottom:24px;display:flex;align-items:flex-start;flex-direction:column}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{height:40px;width:416px;border-radius:4px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px;line-height:24px;color:#222b45}
1.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{margin-bottom:30px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-style:normal;line-height:16px;padding-top:8px;width:410px}@media (max-width: 600px){.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{width:327px!important}}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .newdes[_ngcontent-%COMP%]{line-height:15px!important}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{margin-left:0!important}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-checkbox[_ngcontent-%COMP%]{margin:-8px 0 16px 50px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#8f9bb3;position:relative;bottom:3px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]{margin-top:0}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-check[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:56px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;line-height:16px;color:#222b45;margin-top:32px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#00d68f;font-weight:bold;text-decoration:none}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px;width:93px;border-radius:8px;padding:12px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]{align-items:flex-start}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;font-size:15px;line-height:24px;color:#222b45;margin:0 6px;bottom:5px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]{margin-left:0;position:relative;left:0px;bottom:6px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]     .mat-checkbox-frame{border:1px solid #c5cee0;border-radius:3px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]     .mat-checkbox-inner-container{width:20px;height:20px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]     .mat-checkbox-checked.mat-accent .mat-checkbox-background, .auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   .mat-checkbox-indeterminate.mat-accent[_ng
1content-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#006fff}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#006fff;text-decoration:none;position:relative}@media only screen and (max-width: 500px){.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{top:-2px}}@media only screen and (max-width: 1224px){.actions-forget[_ngcontent-%COMP%]{font-size:12px!important}.actions-check[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:13px!important;line-height:18px!important}.row-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.row-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:40px;width:83px;padding:10px;font-size:14px!important;line-height:16px!important}}.material-icons.custom-adjust[_ngcontent-%COMP%]{color:#00d68f;left:45%;position:relative;font-size:84px}@media only screen and (max-width: 768px){.material-icons.custom-adjust[_ngcontent-%COMP%]{left:44%}}@media only screen and (max-width: 500px){.material-icons.custom-adjust[_ngcontent-%COMP%]{font-size:74px;left:40%}}@media only screen and (min-width: 1920px){.material-icons.custom-adjust[_ngcontent-%COMP%]{left:45.5%}}.top[_ngcontent-%COMP%]{padding-top:3%!important}@media only screen and (max-width: 1224px){.top[_ngcontent-%COMP%]{padding-top:6%!important}}@media only screen and (max-width: 500px){.top[_ngcontent-%COMP%]{padding-top:15%!important}}.create[_ngcontent-%COMP%]{margin-top:10%!important}.reset-box[_ngcontent-%COMP%]{box-shadow:none!important}.reset-box[_ngcontent-%COMP%]   .example-focus-monitor[_ngcontent-%COMP%]   .cdk-touch-focused[_ngcontent-%COMP%]{background:rgba(0,0,255,.5)!important}.reset-box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1!important;font-family:"Roboto Slab";font-weight:700!important}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px}}.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:36px!important;font-weight:700!important;width:60%}@media only screen and (max-width: 1224px){.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:36px!important}}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px!important;width:80%}}.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start!important;width:416px;margin-left:auto;margin-right:auto;margin-bottom:56px!important}@media only screen and (max-width: 1224px){.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{width:416px;margin-bottom:70px!important}}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{width:334px!important;margin-bottom:64px!important}}@media only screen and (max-width: 500px){.pp[_ngcontent-%COMP%]{left:0%!important}}@media only screen and (max-width: 500px){.pass[_ngcontent-%COMP%]{left:0%!important}}.auth-dialog[_ngcontent-%COMP%]{background:#FEFEFE;box-shadow:0 2px 6px #0000004d;height:auto;border-radius:16px;margin:4% auto 0%!important}.auth-dialog.sign-in[_ngcontent-%COMP%]{margin:80px auto 0}
1.auth-dialog--no-shadow[_ngcontent-%COMP%]{box-shadow:none}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-header[_ngcontent-%COMP%]{padding:35px 0 0;display:flex;justify-content:center}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{position:relative;margin:0;height:40px;color:#666;font-size:36px;font-weight:bold;letter-spacing:.75px;line-height:48px;text-align:center}.auth-dialog[_ngcontent-%COMP%]   .success-body[_ngcontent-%COMP%]{margin-top:0!important;padding-top:0;padding-bottom:40px}@media only screen and (max-width: 360px){.auth-dialog[_ngcontent-%COMP%]   .success-body[_ngcontent-%COMP%]{margin-bottom:60px}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center;padding-bottom:8%;font-style:normal;font-weight:normal!important;font-family:"Roboto"!important;font-size:18px!important;line-height:26px;color:#222b45}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:100%}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-bottom:0!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-top:5%!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-bottom:10%!important;padding-top:0%!important}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:15px!important;font-family:"Roboto";font-weight:400;color:#000}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{height:186.2852783203px;width:199px;background:#ffffff;border:.9px solid #e6ebf7;box-shadow:0 8px 14px #4367f312;border-radius:1.8px;position:absolute;z-index:2;margin-left:28%;font-family:Roboto;font-style:normal;font-size:12px;line-height:14px;display:flex;flex-direction:column}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   .hed[_ngcontent-%COMP%]{font-weight:bold;opacity:1}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:normal;color:#003ac1;margin-top:7px;margin-left:20px;opacity:.3}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:13px;height:13px;margin-right:10px;position:relative;top:2px}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:580px;display:flex;flex-direction:row}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   .msg-error[_ngcontent-%COMP%]{margin-left:8px}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:40%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:468px!important}}@media only screen and (max-width: 768px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:53%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:468px!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:35%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:330px!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:40px!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .reP[_ngcontent-%COMP%]{width:280px;margin:auto}}@media only screen and (max-width: 375px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:40%!important}}@media only screen and (min-width: 1920px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:19.5%!important}}.auth-dialog[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{padding:0!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .re[_ng
1content-%COMP%]{padding:0!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]{padding:0 50px;margin-top:24px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin:auto auto 65px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:396px!important;height:24px;margin-left:0%!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{margin-bottom:12px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]:last-child{margin-bottom:0}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column;margin:auto}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;line-height:16px;padding-top:8px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:100%;min-width:100px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{font-size:12px;font-weight:500!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-input[_ngcontent-%COMP%]   .reset-field[_ngcontent-%COMP%]{background-color:#e4e9f2}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{flex:none;width:416px!important;height:40px;min-width:416px!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-checkbox[_ngcontent-%COMP%]{margin:-8px 0 16px 50px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .icon-box[_ngcontent-%COMP%]{flex:1 0 32px}@media (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{width:416px!important;min-width:416px!important}}@media (max-width: 600px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{width:334px!important;min-width:334px!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:286px!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{padding:0 50px 35px;margin-top:45px;display:flex;flex-direction:column;align-items:center;text-align:center}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .reset-button[_ngcontent-%COMP%]{font-weight:700;padding:12px;font-size:16px;line-height:20px;width:180px;height:48px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-top:11px;height:16px;width:96px;color:#575756;font-size:12px;line-height:16px;text-decoration:none}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:none!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:block!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:"Roboto";font-weight:700;font-size:14px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-family:"Roboto";font-weight:700;font-size:14px;color:#003ac1!important;text-decoration:underline}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:block!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-top:40px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{padding:0 50px 50px;margin-bottom:200px!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{margin-bottom:140px!important}}.footer-auth[_ngcontent-%COMP%]{width:100%;margin-top:auto;padding-top:calc(4px * 6)}.footer-auth[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.footer-auth[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:28px;
1width:200px}.auth-signup[_ngcontent-%COMP%]{margin:48px auto -10%;height:auto}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-left:0}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .mar-true[_ngcontent-%COMP%]{position:relative;left:8.5%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .mar-false[_ngcontent-%COMP%]{position:relative;left:7%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{margin-top:8px;display:flex;flex-direction:row}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:24px;font-size:15px;color:#222b45;margin-left:10px;margin-top:2px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline;font-weight:bold}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;line-height:16px;padding-top:8px;font-weight:600;font-size:12px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{position:relative;right:16%}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{right:18%}}@media (max-width: 600px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{right:10%!important}}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{position:relative;right:13%}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{right:12%}}@media (max-width: 600px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{right:10%!important}}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:56px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:48px;width:99px;border-radius:8px;padding:12px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;line-height:16px;color:#222b45}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:150px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:bold;color:#006fff;text-decoration:none}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:14px!important}}.purchase-section[_ngcontent-%COMP%]{width:808px;height:auto;background:#F7F9FC;border-radius:4px;display:flex;flex-direction:row;align-items:center;justify-content:space-evenly;margin:90px auto 15px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:56px;margin-bottom:56px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;width:370px;font-family:Roboto Slab;font-size:36px;line-height:48px;margin-bottom:6px;text-align:center}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;font-weight:normal;font-size:18px;line-height:26px;display:flex;width:436px;align-items:center;text-align:center;color:#222b45}
1.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]{width:185.49px;height:204px;border-radius:4.0597px;background:#FFFFFF;display:flex;flex-direction:column;box-shadow:0 0 10px #0003!important}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]{width:185.49px;height:105.55px;text-align:center;display:flex;flex-direction:column;font-style:normal}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .text-sec[_ngcontent-%COMP%]{height:75.55px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-family:Roboto Slab;font-weight:bold;font-size:15.2239px;line-height:20px;color:#003ac1;margin:8px auto}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:normal;font-size:9.13433px;line-height:13px;color:#222b45}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .bundle-para[_ngcontent-%COMP%]{margin:0 20px 20px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .course-para[_ngcontent-%COMP%]{margin:25px 15px auto}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]{height:30px;margin:0 15px;align-items:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .courseprice[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .bundleprice[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:49%}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:12px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   .count-para[_ngcontent-%COMP%]{position:relative;left:4px;bottom:4px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .divide-sec[_ngcontent-%COMP%]{width:1.01px;height:10.66px;background:#E4E9F2}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .price-para[_ngcontent-%COMP%]{font-weight:bold;color:#00d68f;position:relative;bottom:4px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:row;justify-content:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-img[_ngcontent-%COMP%]{height:98.45px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:185.49px;height:98.45px;border-bottom-left-radius:4.0597px;border-bottom-right-radius:4.0597px}@media (max-width: 1224px){.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:30px}.purchase-section[_ngcontent-%COMP%]{width:100%;margin:72px auto 15px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{left:3%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:18px;font-size:13px;margin-top:4px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]{margin-top:56px;margin-bottom:100px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:40px;width:87px;font-size:14px;line-height:16px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 600px){.purchase-section[_ngcontent-%COMP%]{flex-direction:column;margin-top:0%!important}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:24px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px;line-height:32px;margin-bottom:24px;text-align:center;width:214px!important}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important;width:312px!important}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]{margin-bottom:32px}.auth-signup-header[_ngcontent-%COMP%]{display:flex;justify-content:center}.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{width:217px;font-size:22px;line-height:32px;margin-bottom:48px;margin-top:20px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]{margin-left:0;display:flex;align-items:center}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{width:75%;position:relative;right:4%;left:auto}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:16px;font-size:12px;margin-top:-4px}}@media (max-width: 375px){.signup-privacy[_ngcontent-%COMP%]{right:7%!important}}@media (max-width: 1224px){.verify-email-container[_ngcontent-%COMP%]{margin-bottom:42%!important}}@media (max-width: 600px){.verify-email-container[_ngcontent-%COMP%]{margin-bottom:52%!important}}.verify-email-container[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;margin:16px}@media (max-width: 600px){.verify-email-container[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{width:auto}}.bottom-container[_ngcontent-%COMP%]{width:100%;margin-top:0!important;display:flex;flex-direction:row;justify-content:center}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:32px}@media (max-width: 1224px){.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .resend[_ngcontent-%COMP%]{position:relative!important}}@media (max-width: 600px){.bottom-container[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:row}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:32px}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .resend[_ngcontent-%COMP%]{position:relative!important}}.mat-input-element[_ngcontent-%COMP%]{width:512px;padding-bottom:7px;font-family:Roboto;font-style:normal;font-weight:normal}.mobile-para[_ngcontent-%COMP%]{display:none}@media (max-width: 1224px){.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:65px;height:65px;margin:41px 40px 42px 24px}.auth-sign[_ngcontent-%COMP%]{margin-bottom:208px}}@media (max-width: 600px){.auth-sign[_ngcontent-%COMP%]{margin-top:38px;margin-bottom:144px}.banner-auth-migration-wrap[_ngcontent-%COMP%]{margin:32px auto 0!important}.banner-auth-migration[_ngcontent-%COMP%]{width:350px;height:132px}.banner-auth-migration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{height:90px;width:247px;margin-top:20px;margin-bottom:22px}.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:48px;width:48px;margin:45px 16px 39px 23px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{width:334px}.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:120px}}  .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{background-color:#fff!important}.verified[_ngcontent-%COMP%]{margin-top:15%!important;
1margin-bottom:-50%!important;position:relative!important}.mail-container[_ngcontent-%COMP%]{font-style:normal;font-weight:normal;text-align:center;display:flex;flex-direction:column;align-items:center}.mail-container[_ngcontent-%COMP%]   .mail-H[_ngcontent-%COMP%]{margin-top:96px!important}.mail-container[_ngcontent-%COMP%]   .mail-up[_ngcontent-%COMP%]{width:70%}.mail-container[_ngcontent-%COMP%]   .mailerror-para[_ngcontent-%COMP%]{font-size:18px!important;line-height:26px}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{font-size:36px!important;color:#003ac1!important;line-height:48px;margin-top:0!important}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#00d9d5;font-weight:700;font-family:"Roboto Slab"}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-family:Roboto Slab;font-size:36px;line-height:48px;color:#003ac1;margin-bottom:24px;line-height:1}.mail-container[_ngcontent-%COMP%]   .mailerror-heading[_ngcontent-%COMP%]{color:#ff3d71!important}.mail-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:normal;font-style:normal;font-size:18px;line-height:26px;color:#222b45}.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:52%}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:57%}}@media (max-width: 768px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:75%!important}}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:90%!important}}@media (max-width: 375px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:100%!important}}.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:33%;font-size:16px!important;line-height:24px!important}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:35%}}@media (max-width: 768px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:48%}}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}}.mail-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px;width:99px;background:#006fff;border-radius:8px;margin:48px 12px 32px}.mail-container[_ngcontent-%COMP%]   .btnEmail[_ngcontent-%COMP%]{width:147px;height:48px;background:#006fff;border-radius:8px;margin:48px 12px 32px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px;color:#fff;display:flex;flex-direction:row;align-items:center;justify-content:center;text-decoration:none}.mail-container[_ngcontent-%COMP%]   .Med[_ngcontent-%COMP%]{width:99px!important}.mail-container[_ngcontent-%COMP%]   .an[_ngcontent-%COMP%]{width:132px!important}.mail-container[_ngcontent-%COMP%]   .btnText[_ngcontent-%COMP%]{font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px;color:#fff}.mail-container[_ngcontent-%COMP%]   .btnTextView[_ngcontent-%COMP%]{font-family:Open Sans;font-weight:bold;font-size:12px;text-align:left;padding:0;line-height:20px;color:#fff}.mail-container[_ngcontent-%COMP%]   .error-icon[_ngcontent-%COMP%]{width:12px;height:12px;float:left;margin-top:2px}.mail-container[_ngcontent-%COMP%]   .errortext[_ngcontent-%COMP%]{font-size:12px;color:#ff3d71;font-family:Roboto;font-weight:500!important;float:left;margin-left:2px}.mail-container[_ngcontent-%COMP%]   .btnView[_ngcontent-%COMP%]{width:auto;margin-top:7px}.mail-container[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{width:300px}.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{font-size:16px;line-height:24px}.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#003ac1;font-weight:bold}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:800px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]   .email-text[_ngcontent-%COMP%]{color:#222b45!important}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .mailerror-para[_ngcontent-%COMP%]{margin-left:12px!important;margin-right:12px!important}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:320px!important;font-size:18px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]   .email-text[_ngcontent-%COMP%]{word-break:break-all;color:#222b45!important}}.mail-container[_ngcontent-%COMP%]   .RR[_ngcontent-%COMP%]{display:flex;flex-direction:row}.verify[_ngcontent-%COMP%]{margin-top:6%!important}@media (max-width: 1224px){.verify[_ngcontent-%COMP%]{margin-bottom:8%!important}}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{margin-bottom:300px}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-top:52px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:680px;font-size:18px}}@media (max-width: 600px){.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{margin-bottom:200px;width:100%!important}.mail-container[_ngcontent-%COMP%]   .mail-up[_ngcontent-%COMP%]{width:80%!important}.mail-container[_ngcontent-%COMP%]   .mail-H[_ngcontent-%COMP%]{margin-top:72px!important}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px!important}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:22px;line-height:32px;margin-top:52px}}  .mat-checkbox-checked.mat-accent .mat-checkbox-background, .mat-checkbox-indeterminate.mat-accent[_ng
1content-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#006fff}  .mat-checkbox .mat-checkbox-frame{background:rgba(143,155,179,.16);border:1px solid #c5cee0;border-radius:3px}@media only screen and (max-width: 500px){.sucreset[_ngcontent-%COMP%]{margin:0!important}}.mar[_ngcontent-%COMP%]{margin:auto}.field-label2[_ngcontent-%COMP%]{display:block;text-align:left}.new-H[_ngcontent-%COMP%]{height:45px}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px!important;line-height:24px;color:#222b45;font-weight:normal}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.res[_ngcontent-%COMP%]{width:132px!important}.btnRes[_ngcontent-%COMP%]{width:210px!important}.suc-res[_ngcontent-%COMP%]{width:93px!important}.redeemed-container[_ngcontent-%COMP%]{margin-top:13%}@media (max-width: 1224px){.redeemed-container[_ngcontent-%COMP%]{margin-top:6%}}@media only screen and (max-width: 500px){.redeemed-container[_ngcontent-%COMP%]{margin-top:2%!important}}']}),t})();function vL(t,e){if(1&t&&(i.O4$(),i._UZ(0,"circle",3)),2&t){const t=i.oxw();i.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.uIk("r",t._getCircleRadius())}}function CL(t,e){if(1&t&&(i.O4$(),i._UZ(0,"circle",3)),2&t){const t=i.oxw();i.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.uIk("r",t._getCircleRadius())}}const xL=Kk(class{constructor(t){this._elementRef=t}},"primary"),wL=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});class OL extends xL{constructor(t,e,n,i,o){super(t),this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=OL._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(n.head)||r.set(n.head,new Set([100])),this._fallbackAnimation=e.EDGE||e.TRIDENT,this._noopAnimations="NoopAnimations"===i&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=jT(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=jT(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,jT(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=nk(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,n=OL._diameters;let i=n.get(t);if(!i||!i.has(e)){const o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),t.appendChild(o),i||(i=new Set,n.set(t,i)),i.add(e)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMET
1ER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}OL.\u0275fac=function(t){return new(t||OL)(i.Y36(i.SBq),i.Y36(YT),i.Y36(s,8),i.Y36(Wb,8),i.Y36(wL))},OL.\u0275cmp=i.Xpm({type:OL,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(i.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[i.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(i.O4$(),i.TgZ(0,"svg",0),i.YNc(1,vL,1,9,"circle",1),i.YNc(2,CL,1,7,"circle",2),i.qZA()),2&t&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===e.mode),i.uIk("viewBox",e._getViewBox()),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[F,U],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),OL._diameters=new WeakMap;let PL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[$k,B],$k]}),t})();const ML={provide:new i.OlP("mat-select-scroll-strategy"),deps:[eI],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let TL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[ML],imports:[[B,iI,wS,$k],yA,OE,wS,$k]}),t})();const kL={provide:new i.OlP("mat-menu-scroll-strategy"),deps:[eI],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let SL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[kL],imports:[[B,$k,hS,iI],yA,$k]}),t})(),EL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const AL=new Set;let IL,RL=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):NL}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function(t){if(!AL.has(t))try{IL||(IL=document.createElement("style"),IL.setAttribute("type","text/css"),document.head.appendChild(IL)),IL.sheet&&(IL.sheet.insertRule(`@media ${t} {body{ }}`,0),AL.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(YT))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(YT))},token:t,providedIn:"root"}),t})();function NL(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let LL=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=ne
1w ve.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return DL(zT(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=QC(DL(zT(t)).map(t=>this._registerQuery(t).observable));return e=hn(e.pipe(qe(1)),e.pipe(UT(1),qM(0))),e.pipe((0,Ut.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new At.y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(pn(e),(0,Ut.U)(({matches:e})=>({query:t,matches:e})),EC(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(RL),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(RL),i.LFG(i.R0b))},token:t,providedIn:"root"}),t})();function DL(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const FL={tooltipState:g_("state",[b_("initial, void, hidden",y_({opacity:0,transform:"scale(0)"})),b_("visible",y_({transform:"scale(1)"})),C_("* => visible",m_("200ms cubic-bezier(0, 0, 0.2, 1)",v_([y_({opacity:0,transform:"scale(0)",offset:0}),y_({opacity:.5,transform:"scale(0.99)",offset:.5}),y_({opacity:1,transform:"scale(1)",offset:1})]))),C_("* => hidden",m_("100ms cubic-bezier(0, 0, 0.2, 1)",y_({opacity:0})))])},UL="tooltip-panel",ZL=tk({passive:!0}),qL=new i.OlP("mat-tooltip-scroll-strategy"),VL={provide:qL,deps:[eI],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},jL=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let zL=(()=>{class t{constructor(t,e,n,i,o,r,s,a,c,u,l,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=o,this._platform=r,this._ariaDescriber=s,this._focusMonitor=a,this._dir=u,this._defaultOptions=l,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ve.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!FT(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=h,l&&(l.position&&(this.position=l.position),l.touchGestures&&(this.touchGestures=l.touchGestures)),u.change.pipe(EC(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),o.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=VT(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(EC(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEac
1h(([e,n])=>{t.removeEventListener(e,n,ZL)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new CA(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(EC(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe(EC(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-${UL}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(EC(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(EC(this._destroyed)).subscribe(()=>{var t;return null===(t=this._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:o}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:o}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:o}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(qe(1),EC(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:n,originY:i}=t;let o;if(o="center"===e?this._dir&&"rtl"===this._dir.value?"end"===n?"left":"right":"start"===n?"left":"right":"bottom"===e&&"top"===i?"above":"below",o!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-${UL}-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsM
1ouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,ZL)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e!==n&&!n.contains(e)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===t||!e.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(eI),i.Y36(i.SBq),i.Y36(mA),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(YT),i.Y36(_k),i.Y36(Nk),i.Y36(void 0),i.Y36(Vk),i.Y36(void 0),i.Y36(s))},t.\u0275dir=i.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),GL=(()=>{class t extends zL{constructor(t,e,n,i,o,r,s,a,c,u,l,h){super(t,e,n,i,o,r,s,a,c,u,l,h),this._tooltipComponent=HL}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(eI),i.Y36(i.SBq),i.Y36(mA),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(YT),i.Y36(_k),i.Y36(Nk),i.Y36(qL),i.Y36(Vk,8),i.Y36(jL,8),i.Y36(s))},t.\u0275dir=i.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),t})(),BL=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new ve.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"===e&&!this.isVisible()&&this._onHide.next(),("visible"===e||"hidden"===e)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO))},t.\u0275dir=i.lG2({type:t}),t})(),HL=(()=>{class t extends BL{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(LL))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){2&t&&i.Udp("zoom","visible"===e._visibility?1:null)},features:[i.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(i.TgZ(0,"div",0),i.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),i.ALo(1,"async"),i._uU(2),i.qZA()),2&t){let t;i.ekj("mat-tooltip-handset",null==(t=i.lcZ(1,5,e._isHandset))?null:t.matches),i.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),i.xp6(2),i.Oqu(e.message)}},directives:[S],pipes:[G],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[FL.tooltipState]},changeDetection:0}),t})(),YL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[VL],imports:[[Zk,B,iI,$k],$k,yA]}),t})();const QL=[EL,KI,RN,OE,ZE,VS,PL,TL,KE,yI,SL,YL];let JL=(()=>{class t{constructor(t,e){this._iconRegistry=t,this._sanitizer=e,t.addSvgIcon("add",e.bypassSecurityTrustResourceUrl("assets/svg/add_circle_outline.svg")),t.addSvgIcon("apartment",e.bypassSecurityTrustResourceUrl("assets/svg/apartment.svg")),t.addSvgIcon("assessment",e.bypassSecurityTrustResourceUrl("assets/svg/assessment.svg")),t.addSvgIcon("business",e.bypassSecurityTrustResourceUrl("assets/svg/business.svg")),t.addSvgIcon("arrow_drop_down",e.bypassSecurityTrustResourceUrl("assets/svg/arrow_drop_down.svg")),t.addSvgIcon("email",e.bypassSecurityTrustResourceUrl("assets/svg/email.svg")),t.addSvgIcon("face",e.bypassSecurityTrustResourceUrl("assets/svg/face.svg")),t.addSvgIcon("help",e.bypassSecurityTrustResourceUrl("assets/svg/help.svg")),t.addSvgIcon("home",e.bypassSecurityTrustResourceUrl("assets/svg/home.svg")),t.addSvgIcon("info",e.bypassSecurityTrustResourceUrl("assets/svg/info.svg")),t.addSvgIcon("licences",e.bypassSecurityTrustResourceUrl("assets/svg/licences.svg")),t.addSvgIcon("lock",e.bypassSecurityTrustResourceUrl("assets/svg/lock.svg")),t.addSvgIcon("mail",e.bypassSecurityTrustResourceUrl("assets/svg/mail.svg")),t.addSvgIcon("menu",e.bypassSecurityTrustResourceUrl("assets/svg/menu.svg")),t.addSvgIcon("more-vert",e.bypassSecurityTrustResourceUrl("assets/svg/more-vert.svg")),t.addSvgIcon("people",e.bypassSecurityTrustResourceUrl("assets/svg/people.svg")),t.addSvgIcon("person",e.bypassSecurityTrustResourceUrl("assets/svg/person.svg")),t.addSvgIcon("public",e.bypassSecurityTrustResourceUrl("assets/svg/public.svg")),t.addSvgIcon("settings",e.bypassSecurityTrustResourceUrl("assets/svg/settings.svg")),t.addSvgIcon("tick-fail",e.bypassSecurityTrustResourceUrl("assets/svg/tick-fail.svg")),t.addSvgIcon("tick-success",e.bypassSecurityTrustResourceUrl("assets/svg/tick-success.svg")),t.addSvgIcon("remove",e.bypassSecurityTrustResourceUrl("assets/svg/remove_circle_outline.svg")),t.addSvgIcon("arrow_down",e.bypassSecurityTrustResourceUrl("assets/svg/arrow_down.svg")),t.addSvgIcon("work",e.bypassSecurityTrustResourceUrl("assets/svg/work.svg")),t.addSvgIcon("Youtube Icon",e.bypassSecurityTrustResourceUrl("assets/svg/Youtube Icon.svg")),t.addSvgIcon("Twitter",e.bypassSecurityTrustResourceUrl("assets/svg/Twitter.svg")),t.addSvgIcon("Linkedin Icon",e.bypassSecurityTrustResourceUrl("assets/svg/Linkedin Icon.svg")),t.addSvgIcon("Facebook Icon",e.bypassSecurityTrustResourceUrl("assets/svg/Facebook Icon.svg")),t.addSvgIcon("Instagram Icon",e.bypassSecurityTrustResourceUrl("assets/svg/Instagram Icon.svg")),t.addSvgIcon("Podcast",e.bypassSecurityTrustResourceUrl("assets/svg/Podcast.svg")),t.addSvgIcon("MALogoColor",e.bypassSecurityTrustResourceUrl("assets/svg/MALogoColor.svg")),t.addSvgIcon("menu_close",e.bypassSecurityTrustResourceUrl("assets/svg/menu_close.svg")),t.addSvgIcon("lockEye",e.bypassSecurityTrustResourceUrl("assets/svg/lockEye.svg")),t.addSvgIcon("errorInfo",e.bypassSecurityTrustResourceUrl("assets/svg/errorInfo.svg")),t.addSvgIcon("openEye",e.bypassSecurityTrustResourceUrl("assets/svg/openEye.svg")),t.addSvgIcon("Desktop_icon",e.bypassSecurityTrustResourceUrl("assets/svg/Desktop_icon.svg")),t.addSvgIcon("alert-triangle",e.bypassSecurityTrustResourceUrl("assets/svg/alert-triangle.svg")),t.addSvgIcon("info_color",e.bypassSecurityTrustResourceUrl("assets/svg/info_color.svg")),t.addSvgIcon("bundle_icon",e.bypassSecurityTrustResourceUrl("assets/svg/bundle_icon.svg"))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(ES),i.LFG(Pt))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:CE,useValue:{appearance:"outline"}}],imports:[[...QL],EL,KI,RN,OE,ZE,VS,PL,TL,KE,yI,SL,YL]}),t})();const $L=function(){return{exact:!0}};function WL(t,e){if(1&t&&(i.TgZ(0,"li",11),i._uU(1),i.qZA()),2&t){const t=i.oxw().$implicit;i.Q6J("routerLink",t.url)("routerLinkActiveOptions",i.DdM(3,$L)),i.xp6(1),i.hij(" ",t.text," ")}}function KL(t,e){if(1&t){const t=i.EpF();
1i.TgZ(0,"li",12),i.NdJ("click",function(){i.CHM(t);const e=i.oxw().$implicit;return i.oxw().navigateExternalURL(e)}),i._uU(1),i.qZA()}if(2&t){const t=i.oxw().$implicit;i.xp6(1),i.hij(" ",t.text," ")}}function XL(t,e){if(1&t&&(i.ynx(0),i.YNc(1,WL,2,4,"li",9),i.YNc(2,KL,2,1,"li",10),i.BQk()),2&t){const t=e.$implicit,n=i.oxw();i.xp6(1),i.Q6J("ngIf",n.isInternalURL(t)),i.xp6(1),i.Q6J("ngIf",n.isExternalURL(t))}}let tD=(()=>{class t{constructor(t,e,n,i,o){this.document=t,this.auth=e,this.toastr=n,this.router=i,this.appState=o,this.isDirty$=new GC(!1)}ngOnInit(){}updateProfilePicture(t){this.appState.loading=!0,this.isDirty$.next(!0),this.auth.updateUserProfileImage(t).pipe(qe(1),RC(()=>{this.appState.loading=!1,this.isDirty$.next(!1)})).subscribe(t=>{this.toastr.success("Profile image successfully updated"),console.log("Upload profile picture: ",t),this.auth.profilePictureUrl=t},t=>{this.toastr.error("Invalid format for uploaded profile image, please try to upload a different image"),console.log("An error has occurred: ",t)})}isExternalURL(t){return"string"==typeof t.url}isInternalURL(t){return t.url instanceof Array}navigateExternalURL(t){this.document.location.href=t.url}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s),i.Y36(eT),i.Y36(TT),i.Y36(FO),i.Y36(BC))},t.\u0275cmp=i.Xpm({type:t,selectors:[["sidebar-navigation"]],inputs:{navigation:"navigation"},decls:11,vars:2,consts:[[1,"profile-avatar"],[1,"avatar-box"],[1,"avatar",3,"src"],["type","file","accept","image/*",2,"visibility","hidden","width","0",3,"change"],["inputUpload",""],[1,"picture-change-button"],[1,"button-upload",3,"click"],["src","/assets/random/upload.png",1,"upimage"],[4,"ngFor","ngForOf"],["routerLinkActive","active",3,"routerLink","routerLinkActiveOptions",4,"ngIf"],[3,"click",4,"ngIf"],["routerLinkActive","active",3,"routerLink","routerLinkActiveOptions"],[3,"click"]],template:function(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"div",0),i.TgZ(2,"div",1),i._UZ(3,"img",2),i.TgZ(4,"input",3,4),i.NdJ("change",function(t){return e.updateProfilePicture(t)}),i.qZA(),i.qZA(),i.TgZ(6,"div",5),i.TgZ(7,"a",6),i.NdJ("click",function(){return i.CHM(t),i.MAs(5).click()}),i._UZ(8,"img",7),i.qZA(),i.qZA(),i.qZA(),i.BQk(),i.TgZ(9,"ul"),i.YNc(10,XL,3,2,"ng-container",8),i.qZA()}2&t&&(i.xp6(3),i.Q6J("src",e.auth.profilePictureUrl||e.auth.profileImage,i.LSH),i.xp6(7),i.Q6J("ngForOf",e.navigation))},directives:[A,R,jO,ZO],styles:["[_nghost-%COMP%]{display:block;max-width:240px;width:100%;padding-right:15px;padding-left:15px}@media (max-width: 1224px){[_nghost-%COMP%]{max-width:100%;padding:0;margin:0}}ul[_ngcontent-%COMP%]{width:100%}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{outline:none;padding:15px 10px;padding-left:15%!important;font-family:Roboto slab;color:#222b45;font-size:18px}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:first-child{border-top-left-radius:4px;border-top-right-radius:4px}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{background:#00D68F;cursor:pointer;color:#fff}ul[_ngcontent-%COMP%]   li.active[_ngcontent-%COMP%]{background:#00D68F;color:#fff}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:28px;color:#666;text-decoration:none}@media (max-width: 600px){ul[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center;margin-bottom:30px}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:15px 10px;padding-left:0%!important}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:first-child{border-top-left-radius:0;border-top-right-radius:0}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{border-bottom-left-radius:0;border-bottom-right-radius:0}}.profile-avatar[_ngcontent-%COMP%]{padding:32px;margin-top:10px;display:flex;flex-direction:column;align-items:center}.profile-avatar[_ngcontent-%COMP%]   .avatar-box[_ngcontent-%COMP%]{min-width:124px;width:124px;height:124px;border-radius:50%;border:2.68085px solid #ffffff;overflow:hidden;position:relative}.profile-avatar[_ngcontent-%COMP%]   .avatar-box[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;min-width:100%;min-height:100%;height:auto;position:absolute;
1left:50%;top:50%;transform:translate(-50%,-50%)}.profile-avatar[_ngcontent-%COMP%]   .avatar-box[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute}@media (max-width: 1224px){.profile-avatar[_ngcontent-%COMP%]{flex-direction:column;align-items:center}.profile-avatar[_ngcontent-%COMP%]   .avatar-box[_ngcontent-%COMP%]{min-width:87px;width:87px;height:87px;margin-left:0!important}.profile-avatar[_ngcontent-%COMP%]   .avatar-box[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{min-width:87px;min-height:87px;width:87px;height:87px}}@media (max-width: 600px){.profile-avatar[_ngcontent-%COMP%]   .avatar-box[_ngcontent-%COMP%]{min-width:124px;width:124px;height:124px}.profile-avatar[_ngcontent-%COMP%]   .avatar-box[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{min-width:124px;min-height:124px;width:124px;height:124px}}.button-upload[_ngcontent-%COMP%]{position:relative;bottom:10px;text-transform:none;cursor:pointer!important;text-decoration:underline;color:#003ac1;font-size:12px}.upimage[_ngcontent-%COMP%]{width:27px;cursor:pointer;position:relative;top:30px;left:0px;z-index:1}@media (max-width: 1224px){.upimage[_ngcontent-%COMP%]{width:22px!important}}@media (max-width: 600px){.upimage[_ngcontent-%COMP%]{width:27px!important}}.profile-load[_ngcontent-%COMP%]{left:30%;position:relative}@media (max-width: 1224px){.profile-load[_ngcontent-%COMP%]{left:20%!important;position:relative}}@media (max-width: 600px){.profile-load[_ngcontent-%COMP%]{left:30%!important;position:relative}}.picture-change-button[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.picture-change-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#003ac1;font-size:12px;font-weight:700;text-decoration:underline}"]}),t})(),eD=(()=>{class t{constructor(t,e,n,i,o){this.document=t,this.route=e,this.appState=n,this.auth=i,this.toastr=o,this.route.url.subscribe(t=>{switch(t[0].path){case"home":this.navigateToSchool();break;case"collections":return window.location.href="https://www.medics.academy/collections";case"dashboard":return window.location.href="https://www.medics.academy/enrollments";case"f-docs":return window.location.href="https://www.medics.academy/pages/fdocs";case"f-docs-curriculum":return window.location.href="https://www.medics.academy/pages/f-docs-curriculum";case"organisations":return window.location.href="https://www.medics.academy/pages/organisations";case"blog":return window.location.href="https://blog.medics.academy";case"notifications":return window.location.href="https://www.medics.academy/account/notifications";case"billing":return window.location.href="https://www.medics.academy/account/billing";case"orders":return window.location.href="https://www.medics.academy/account/orders";case"certificates":return window.location.href="https://www.medics.academy/account/certificates";case"terms":return window.location.href="https://www.medics.academy/pages/terms";case"privacy":return window.location.href="https://www.medics.academy/pages/privacy";case"all-opportunities":return window.location.href="https://www.medics.academy/pages/opportunities-page";case"medics-academy-list-of-standard-fees":return window.location.href="https://www.community.medics.academy/list-of-standard-fees";case"medics-academy-ethics-policy":return window.location.href="https://www.medics.academy/pages/medics-academy-ethics-policy";case"all-programmes":return window.location.href="https://www.medics.academy/pages/2021-all-programmes-page";case"hla":return window.location.href="https://www.medics.academy/pages/hla-programme-page";case"masters-programmes":return window.location.href="https://www.medics.academy/pages/2021-masters-programmes";case"short-courses":return window.location.href="https://www.medics.academy/collections?category=all-courses";case"fellowship-programme":return window.location.href="https://www.medics.academy/pages/opportunities";case"educator-community":return window.location.href="https://www.community.medics.academy/";case"global-internships":return window.location.href="https://www.medics.academy/pages/2021-medics-academy-global-internships";case"about-us":return window.location.href="https://www.medics.academy/pages/about-us-page";case"merchandise":return window.location.href="https://medicsacademy.creator-spring.com/";case"events":return window.location.href="https://www.medics.academy/pages/events-page";case"facebook":return window.location.href="https://www.facebook.com/MedicsAcademy";case"twitter":return window.location.href="https://twitter.com/MedicsAcademy";case"youtube":return window.location.href="https://www.youtube.com/MedicsAcademy/";case"linkedIn":return window.location.href="https://www.linkedin.com/company/medicsacademy";case"instagram":return window.location.href="https://www.instagram.com/medicsacademy/";case"podcasts":return window.location.href="https://blog.medics.academy/category/podcast/";case"partners":return window.location.href="https://www.medics.academy/pages/partners";case"solutions-page":return window.location.href="https://www.medics.academy/pages/solutions-page";case"sletter":return window.location.href="https://www.medics.academy/pages/medics-academy-supporting-letter"}})}ngOnInit(){this.appState.loading=!0}navigateToSchool(){const t=this.auth.signinSchool().pipe((0,SC.b)(t=>{this.document.location.href=t.redirect_uri})),e=(0,Et.of)(!1).pipe((0,SC.b)(()=>{this.document.location.href="https://medics.academy"}));this.auth.authenticated.pipe((0,It.zg)(n=>zN(()=>!!n,t,e))).subscribe(()=>{},t=>{this.toastr.error(t),this.appState.loading=!1})}ngOnDestroy(){this.appState.loading=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s),i.Y36(gw),i.Y36(BC),i.Y36(eT),i.Y36(TT))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-redirect"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t})(),nD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[],imports:[[B,JL,TC,MC,XO],B,JL,TC,MC,XO]}),t})();function iD(t,e){if(1&t&&i._UZ(0,"confirm-password-reset",4),2&t){const t=i.oxw(2);i.Q6J("params",t.params)}}function oD(t,e){if(1&t&&(i.ynx(0),i.YNc(1,iD,1,1,"confirm-password-reset",3),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngIf",t.ischeckCode)}}function rD(t,e){if(1&t&&(i.ynx(0),i._UZ(1,"recover-email",4),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("params",t.params)}}function sD(t,e){if(1&t&&(i.ynx(0),i._UZ(1,"verify-email-address",4),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("params",t.params)}}function aD(t,e){if(1&t&&(i.ynx(0),i._UZ(1,"reactivate-account",4),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("params",t.params)}}function cD(t,e){1&t&&(i.ynx(0),i.TgZ(1,"p",5),i._uU(2,"Invalid params."),i.qZA(),i.BQk())}const uD=["resetPassword","recoverEmail","verifyEmail","reactivateAccount"];let lD=(()=>{class t{constructor(t,e,n,i){this.afAuth=t,this._toastr=e,this.route=n,this.router=i,this.ischeckCode=!1,this.params=n.snapshot.queryParams}ngOnInit(){uD.includes(this.params.mode)||this.router.navigate(["/"]),"resetPassword"===this.params.mode&&this.afAuth.checkActionCode(this.params.oobCode).then(t=>{this.ischeckCode=!0}).catch(t=>{console.log(t),("auth/invalid-action-code"===t.code||"auth/expired-action-code"===t.code)&&(this.router.navigate(["/reset-password"]),this._toastr.error("The link has expired. Please enter your email address so a new link can be emailed to you."))})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(an),i.Y36(TT),i.Y36(gw),i.Y36(FO))},t.\u0275cmp=i.Xpm({type:t,selectors:[["auth-action-handler"]],decls:6,vars:5,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"params",4,"ngIf"],[3,"params"],[1,"mat-error"]],template:function(t,e){1&t&&(i.ynx(0,0),i.YNc(1,oD,2,1,"ng-container",1),i.YNc(2,rD,2,1,"ng-container",1),i.YNc(3,sD,2,1,"ng-container",1),i.YNc(4,aD,2,1,"ng-container",1),i.YNc(5,cD,3,0,"ng-container",2),i.BQk()),2&t&&(i.Q6J("ngSwitch",e.params.mode),i.xp6(1),i.Q6J("ngSwitchCase","resetPassword"),i.xp6(1),i.Q6J("ngSwitchCase","recoverEmail"),i.xp6(1),i.Q6J("ngSwitchCase","verifyEmail"),i.xp6(1),i.Q6J("ngSwitchCase","reactivateAccount"))},encapsulation:2}),t})();const hD=["params",""];function dD(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",21),i._uU(2," Please enter a password "),i.BQk())}function pD(t,e){1&t&&(i._UZ(0,"mat-icon",21),i._uU(1," Password must contain at least eight characters "))}function fD(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i.YNc(1,dD,3,0,"ng-container",19),i.YNc(2,pD,2,0,"ng-template",null,20,i.W1O),i.qZA()),2&t){const t=i.MAs(3),e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.isEmptyControl(e.password))("ngIfElse",t)}}function gD(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",21),i._uU(2," Please enter a password "),i.BQk())}function mD(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",21),i._uU(2," Password does not match "),i.BQk())}function _D(t,e){if(1&t&&i.YNc(0,mD,3,0,"ng-container",17),2&t){const t=i.oxw(3);i.Q6J("ngIf",!t.passwordDoesMatch)}}function yD(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i.YNc(1,gD,3,0,"ng-container",19),i.YNc(2,_D,1,1,"ng-template",null,20,i.W1O),i.qZA()),2&t){const t=i.MAs(3),e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.isEmptyControl(e.passwordConfirm))("ngIfElse",t)}}function bD(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"form",8),i.NdJ("submit",function(){return i.CHM(t),i.oxw().setPassword()}),i.TgZ(1,"div",9),i.TgZ(2,"div",10),i.TgZ(3,"div",11),i.TgZ(4,"span"),i._uU(5,"Password"),i.qZA(),i.qZA(),i.TgZ(6,"mat-form-field",12),i._UZ(7,"input",13),i.TgZ(8,"button",14),i.NdJ("
1click",function(){i.CHM(t);const e=i.oxw();return e.hide=!e.hide}),i.TgZ(9,"mat-icon",15),i._uU(10),i.qZA(),i.qZA(),i.qZA(),i.TgZ(11,"div",16),i.YNc(12,fD,4,2,"mat-error",17),i.qZA(),i.qZA(),i.qZA(),i.TgZ(13,"div",9),i.TgZ(14,"div",10),i.TgZ(15,"div",11),i.TgZ(16,"span"),i._uU(17,"Confirm Password"),i.qZA(),i.qZA(),i.TgZ(18,"mat-form-field",12),i._UZ(19,"input",18),i.TgZ(20,"button",14),i.NdJ("click",function(){i.CHM(t);const e=i.oxw();return e.hidec=!e.hidec}),i.TgZ(21,"mat-icon",15),i._uU(22),i.qZA(),i.qZA(),i.qZA(),i.TgZ(23,"div",16),i.YNc(24,yD,4,2,"mat-error",17),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("formGroup",t.formGroup),i.xp6(7),i.Q6J("type",t.hide?"password":"text"),i.xp6(1),i.uIk("aria-pressed",t.hide),i.xp6(2),i.Oqu(t.hide?"visibility_off":"visibility"),i.xp6(2),i.Q6J("ngIf",t.password.invalid&&(t.password.dirty||t.password.touched)),i.xp6(7),i.Q6J("type",t.hidec?"password":"text"),i.xp6(1),i.uIk("aria-pressed",t.hide),i.xp6(2),i.Oqu(t.hidec?"visibility_off":"visibility"),i.xp6(2),i.Q6J("ngIf",t.passwordConfirm.dirty||t.passwordConfirm.touched)}}function vD(t,e){1&t&&(i.TgZ(0,"div",22),i.TgZ(1,"div",22),i._UZ(2,"div",23),i.qZA(),i.qZA())}let CD=(()=>{class t{constructor(t,e,n,i,o){this.afAuth=t,this.fb=e,this.router=n,this._toastr=i,this._auth=o,this.loading=!1,this.hide=!0,this.hidec=!0}get password(){return this.formGroup.get("password")}get passwordConfirm(){return this.formGroup.get("confirmPassword")}get passwordDoesMatch(){return this.password.value===this.passwordConfirm.value}get passwordError(){return this._auth.getPasswordValidationError(this.password)}initFormGroup(){return this.fb.group({password:[null,[_v.required,_v.minLength(8)]],confirmPassword:[null,[_v.required]]},{validators:AI("password","confirmPassword")})}setPassword(){if(!this.formGroup.invalid)return this.loading=!0,(0,Ce.D)(this.afAuth.confirmPasswordReset(this.params.oobCode,this.password.value)).pipe(qe(1),RC(()=>this.loading=!1)).subscribe(()=>(localStorage.setItem("reset-password","true"),this._toastr.success("Great! Password updated successfully!"),window.scrollTo(0,0),this.router.navigate(["successful-reset-password"])),t=>{"auth/invalid-action-code"===(console.log(t.code),t.code)?this._toastr.error("The link has expired. Please enter your email address so a new link can be emailed to you."):this._toastr.error(tT.Parse(t.code)),window.scrollTo(0,0),this.router.navigate(["/reset-password"])});this._toastr.error(zC)}isEmptyControl(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}ngOnInit(){this.formGroup=this.initFormGroup()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(an),i.Y36(kC),i.Y36(FO),i.Y36(TT),i.Y36(eT))},t.\u0275cmp=i.Xpm({type:t,selectors:[["confirm-password-reset","params",""]],inputs:{params:"params"},attrs:hD,decls:14,vars:3,consts:[[1,"auth-dialog","reset-box","create","pp"],[1,"auth-dialog-header"],[1,"auth-dialog-body","reset-box-body","re"],[1,"reP"],["class","cc","id","ngFormResetPassword",3,"formGroup","submit",4,"ngIf","ngIfElse"],["load",""],[1,"auth-dialog-actions"],["form","ngFormResetPassword",1,"button-action","reset-button","btnRes",3,"disabled"],["id","ngFormResetPassword",1,"cc",3,"formGroup","submit"],[1,"form-field","form-field--mb-sm","cc","form-field--with-icon","final","new-H"],[1,"rc","ai_c","full-width","resetInput"],[1,"field-label"],["appearance","outline",1,"ma-field"],["matInput","","formControlName","password","type","password","placeholder","","autocomplete","new-password","name","password",3,"type"],["form","#","mat-icon-button","","matSuffix","",3,"click"],[1,"material-icons"],[1,"field-hide"],[4,"ngIf"],["matInput","","formControlName","confirmPassword","placeholder","","autocomplete","new-password",3,"type"],[4,"ngIf","ngIfElse"],["hasValueControl",""],["matSuffix","","svgIcon","errorInfo"],[1,"rc","jc_c","ai_c"],[1,"imgloading"]],template:function(t,e){if(1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"h3"),i._uU(3,"Create new password"),i.qZA(),i.qZA(),i.TgZ(4,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"p"),i._uU(7,"Your new password must be different from previous passwords."),i.qZA(),i.qZA(),i.YNc(8,bD,25,9,"form",4),i.YNc(9,vD,3,0,"ng-template",null,5,i.W1O),i.qZA(),i.TgZ(11,"div",6),i.TgZ(12,"button",7),i._uU(13," Change my password "),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.MAs(10);i.xp6(8),i.Q6J("ngIf",!e.loading)("ngIfElse",t),i.xp6(4),i.Q6J("disabled",e.loading||e.formGroup.invalid)}},directives:[R,yC,qv,xC,wE,UE,hv,Zv,OC,IN,yE,qS,lE],styles:['[_nghost-%COMP%]{flex-direction:column;height:calc(100% - 80px);
1display:flex;flex:1 0 auto}span[_ngcontent-%COMP%], a[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-style:normal;font-weight:normal}.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;font-family:Roboto Slab,sans-serif;font-size:36px;line-height:48px;margin-top:96px;margin-bottom:0;text-align:center}@media only screen and (max-width: 1224px){.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:72px}}@media only screen and (max-width: 500px){.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px;margin-top:72px!important}}.verifySign[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.verifySign[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:35px}@media (max-width: 600px){.verifySign[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:25px!important;font-size:22px!important;line-height:32px}}.verifySign[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{background:#006FFF!important;border-radius:8px!important;font-family:Open Sans!important;font-style:normal!important;font-weight:bold!important;font-size:12px!important;line-height:16px!important;text-align:center;color:#fff;width:114px!important;height:32px!important;border:none!important}.verifySign[_ngcontent-%COMP%]   .btn-success[_ngcontent-%COMP%]{padding:12px;background:#006FFF;border-radius:8px;width:210px;height:48px;font-family:Open Sans,sans-serif;font-style:normal;font-weight:bold;font-size:16px;line-height:20px;text-align:center;color:#fff;border:none;margin-top:56px;cursor:pointer}.verifySign[_ngcontent-%COMP%]   .ch[_ngcontent-%COMP%]{width:150px!important}.auth-sucsess-icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin:auto}.auth-sucsess-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:81px;width:81px}@media (max-width: 600px){.auth-sucsess-icon[_ngcontent-%COMP%]{margin-top:80px}.auth-sucsess-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:40px;width:40px}}re-captcha[_ngcontent-%COMP%]{margin-bottom:32px}.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;font-family:Roboto Slab;font-size:36px;line-height:48px;margin-top:56px;margin-bottom:56px;text-align:center}.banner-auth-migration-wrap[_ngcontent-%COMP%]{display:flex;margin:56px auto 10px;max-width:743px}.banner-auth-migration[_ngcontent-%COMP%]{display:flex;align-items:center;width:524px;height:147px;background:#112C6C}.banner-auth-migration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:372px;height:72px;font-family:Roboto;font-style:normal;font-weight:normal;font-size:13px;line-height:18px;color:#fff}.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;margin:55px 50px 54px 34px}.ml_sm[_ngcontent-%COMP%]{margin-left:calc(4px * 1)}.page-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:6%;margin-bottom:4%}@media only screen and (max-width: 1224px){.page-container[_ngcontent-%COMP%]{margin-bottom:2%!important}}.page-container[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:flex-start}.page-container[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]   .welcome-partners-da[_ngcontent-%COMP%]{margin:0;height:80px;width:476px;color:#fefefe;font-size:30px;font-weight:300;letter-spacing:.75px;line-height:40px}.new-sso[_ngcontent-%COMP%]{margin-top:0%;margin-bottom:0%}.auth-sign[_ngcontent-%COMP%]{margin:48px auto 80px;height:auto}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]{display:flex;align-items:center}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{margin-bottom:24px;display:flex;align-items:flex-start;flex-direction:column}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{height:40px;width:416px;border-radius:4px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px;line-height:24px;color:#222b45}
1.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{margin-bottom:30px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-style:normal;line-height:16px;padding-top:8px;width:410px}@media (max-width: 600px){.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{width:327px!important}}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .newdes[_ngcontent-%COMP%]{line-height:15px!important}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{margin-left:0!important}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-checkbox[_ngcontent-%COMP%]{margin:-8px 0 16px 50px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#8f9bb3;position:relative;bottom:3px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]{margin-top:0}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-check[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:56px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;line-height:16px;color:#222b45;margin-top:32px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#00d68f;font-weight:bold;text-decoration:none}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px;width:93px;border-radius:8px;padding:12px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]{align-items:flex-start}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;font-size:15px;line-height:24px;color:#222b45;margin:0 6px;bottom:5px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]{margin-left:0;position:relative;left:0px;bottom:6px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]     .mat-checkbox-frame{border:1px solid #c5cee0;border-radius:3px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]     .mat-checkbox-inner-container{width:20px;height:20px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]     .mat-checkbox-checked.mat-accent .mat-checkbox-background, .auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   .mat-checkbox-indeterminate.mat-accent[_ng
1content-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#006fff}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#006fff;text-decoration:none;position:relative}@media only screen and (max-width: 500px){.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{top:-2px}}@media only screen and (max-width: 1224px){.actions-forget[_ngcontent-%COMP%]{font-size:12px!important}.actions-check[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:13px!important;line-height:18px!important}.row-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.row-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:40px;width:83px;padding:10px;font-size:14px!important;line-height:16px!important}}.material-icons.custom-adjust[_ngcontent-%COMP%]{color:#00d68f;left:45%;position:relative;font-size:84px}@media only screen and (max-width: 768px){.material-icons.custom-adjust[_ngcontent-%COMP%]{left:44%}}@media only screen and (max-width: 500px){.material-icons.custom-adjust[_ngcontent-%COMP%]{font-size:74px;left:40%}}@media only screen and (min-width: 1920px){.material-icons.custom-adjust[_ngcontent-%COMP%]{left:45.5%}}.top[_ngcontent-%COMP%]{padding-top:3%!important}@media only screen and (max-width: 1224px){.top[_ngcontent-%COMP%]{padding-top:6%!important}}@media only screen and (max-width: 500px){.top[_ngcontent-%COMP%]{padding-top:15%!important}}.create[_ngcontent-%COMP%]{margin-top:10%!important}.reset-box[_ngcontent-%COMP%]{box-shadow:none!important}.reset-box[_ngcontent-%COMP%]   .example-focus-monitor[_ngcontent-%COMP%]   .cdk-touch-focused[_ngcontent-%COMP%]{background:rgba(0,0,255,.5)!important}.reset-box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1!important;font-family:"Roboto Slab";font-weight:700!important}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px}}.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:36px!important;font-weight:700!important;width:60%}@media only screen and (max-width: 1224px){.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:36px!important}}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px!important;width:80%}}.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start!important;width:416px;margin-left:auto;margin-right:auto;margin-bottom:56px!important}@media only screen and (max-width: 1224px){.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{width:416px;margin-bottom:70px!important}}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{width:334px!important;margin-bottom:64px!important}}@media only screen and (max-width: 500px){.pp[_ngcontent-%COMP%]{left:0%!important}}@media only screen and (max-width: 500px){.pass[_ngcontent-%COMP%]{left:0%!important}}.auth-dialog[_ngcontent-%COMP%]{background:#FEFEFE;box-shadow:0 2px 6px #0000004d;height:auto;border-radius:16px;margin:4% auto 0%!important}.auth-dialog.sign-in[_ngcontent-%COMP%]{margin:80px auto 0}
1.auth-dialog--no-shadow[_ngcontent-%COMP%]{box-shadow:none}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-header[_ngcontent-%COMP%]{padding:35px 0 0;display:flex;justify-content:center}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{position:relative;margin:0;height:40px;color:#666;font-size:36px;font-weight:bold;letter-spacing:.75px;line-height:48px;text-align:center}.auth-dialog[_ngcontent-%COMP%]   .success-body[_ngcontent-%COMP%]{margin-top:0!important;padding-top:0;padding-bottom:40px}@media only screen and (max-width: 360px){.auth-dialog[_ngcontent-%COMP%]   .success-body[_ngcontent-%COMP%]{margin-bottom:60px}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center;padding-bottom:8%;font-style:normal;font-weight:normal!important;font-family:"Roboto"!important;font-size:18px!important;line-height:26px;color:#222b45}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:100%}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-bottom:0!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-top:5%!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-bottom:10%!important;padding-top:0%!important}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:15px!important;font-family:"Roboto";font-weight:400;color:#000}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{height:186.2852783203px;width:199px;background:#ffffff;border:.9px solid #e6ebf7;box-shadow:0 8px 14px #4367f312;border-radius:1.8px;position:absolute;z-index:2;margin-left:28%;font-family:Roboto;font-style:normal;font-size:12px;line-height:14px;display:flex;flex-direction:column}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   .hed[_ngcontent-%COMP%]{font-weight:bold;opacity:1}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:normal;color:#003ac1;margin-top:7px;margin-left:20px;opacity:.3}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:13px;height:13px;margin-right:10px;position:relative;top:2px}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:580px;display:flex;flex-direction:row}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   .msg-error[_ngcontent-%COMP%]{margin-left:8px}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:40%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:468px!important}}@media only screen and (max-width: 768px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:53%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:468px!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:35%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:330px!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:40px!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .reP[_ngcontent-%COMP%]{width:280px;margin:auto}}@media only screen and (max-width: 375px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:40%!important}}@media only screen and (min-width: 1920px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:19.5%!important}}.auth-dialog[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{padding:0!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .re[_ng
1content-%COMP%]{padding:0!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]{padding:0 50px;margin-top:24px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin:auto auto 65px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:396px!important;height:24px;margin-left:0%!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{margin-bottom:12px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]:last-child{margin-bottom:0}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column;margin:auto}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;line-height:16px;padding-top:8px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:100%;min-width:100px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{font-size:12px;font-weight:500!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-input[_ngcontent-%COMP%]   .reset-field[_ngcontent-%COMP%]{background-color:#e4e9f2}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{flex:none;width:416px!important;height:40px;min-width:416px!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-checkbox[_ngcontent-%COMP%]{margin:-8px 0 16px 50px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .icon-box[_ngcontent-%COMP%]{flex:1 0 32px}@media (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{width:416px!important;min-width:416px!important}}@media (max-width: 600px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{width:334px!important;min-width:334px!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:286px!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{padding:0 50px 35px;margin-top:45px;display:flex;flex-direction:column;align-items:center;text-align:center}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .reset-button[_ngcontent-%COMP%]{font-weight:700;padding:12px;font-size:16px;line-height:20px;width:180px;height:48px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-top:11px;height:16px;width:96px;color:#575756;font-size:12px;line-height:16px;text-decoration:none}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:none!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:block!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:"Roboto";font-weight:700;font-size:14px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-family:"Roboto";font-weight:700;font-size:14px;color:#003ac1!important;text-decoration:underline}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:block!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-top:40px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{padding:0 50px 50px;margin-bottom:200px!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{margin-bottom:140px!important}}.footer-auth[_ngcontent-%COMP%]{width:100%;margin-top:auto;padding-top:calc(4px * 6)}.footer-auth[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.footer-auth[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:28px;
1width:200px}.auth-signup[_ngcontent-%COMP%]{margin:48px auto -10%;height:auto}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-left:0}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .mar-true[_ngcontent-%COMP%]{position:relative;left:8.5%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .mar-false[_ngcontent-%COMP%]{position:relative;left:7%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{margin-top:8px;display:flex;flex-direction:row}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:24px;font-size:15px;color:#222b45;margin-left:10px;margin-top:2px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline;font-weight:bold}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;line-height:16px;padding-top:8px;font-weight:600;font-size:12px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{position:relative;right:16%}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{right:18%}}@media (max-width: 600px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{right:10%!important}}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{position:relative;right:13%}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{right:12%}}@media (max-width: 600px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{right:10%!important}}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:56px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:48px;width:99px;border-radius:8px;padding:12px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;line-height:16px;color:#222b45}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:150px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:bold;color:#006fff;text-decoration:none}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:14px!important}}.purchase-section[_ngcontent-%COMP%]{width:808px;height:auto;background:#F7F9FC;border-radius:4px;display:flex;flex-direction:row;align-items:center;justify-content:space-evenly;margin:90px auto 15px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:56px;margin-bottom:56px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;width:370px;font-family:Roboto Slab;font-size:36px;line-height:48px;margin-bottom:6px;text-align:center}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;font-weight:normal;font-size:18px;line-height:26px;display:flex;width:436px;align-items:center;text-align:center;color:#222b45}
1.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]{width:185.49px;height:204px;border-radius:4.0597px;background:#FFFFFF;display:flex;flex-direction:column;box-shadow:0 0 10px #0003!important}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]{width:185.49px;height:105.55px;text-align:center;display:flex;flex-direction:column;font-style:normal}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .text-sec[_ngcontent-%COMP%]{height:75.55px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-family:Roboto Slab;font-weight:bold;font-size:15.2239px;line-height:20px;color:#003ac1;margin:8px auto}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:normal;font-size:9.13433px;line-height:13px;color:#222b45}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .bundle-para[_ngcontent-%COMP%]{margin:0 20px 20px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .course-para[_ngcontent-%COMP%]{margin:25px 15px auto}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]{height:30px;margin:0 15px;align-items:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .courseprice[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .bundleprice[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:49%}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:12px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   .count-para[_ngcontent-%COMP%]{position:relative;left:4px;bottom:4px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .divide-sec[_ngcontent-%COMP%]{width:1.01px;height:10.66px;background:#E4E9F2}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .price-para[_ngcontent-%COMP%]{font-weight:bold;color:#00d68f;position:relative;bottom:4px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:row;justify-content:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-img[_ngcontent-%COMP%]{height:98.45px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:185.49px;height:98.45px;border-bottom-left-radius:4.0597px;border-bottom-right-radius:4.0597px}@media (max-width: 1224px){.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:30px}.purchase-section[_ngcontent-%COMP%]{width:100%;margin:72px auto 15px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{left:3%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:18px;font-size:13px;margin-top:4px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]{margin-top:56px;margin-bottom:100px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:40px;width:87px;font-size:14px;line-height:16px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 600px){.purchase-section[_ngcontent-%COMP%]{flex-direction:column;margin-top:0%!important}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:24px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px;line-height:32px;margin-bottom:24px;text-align:center;width:214px!important}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important;width:312px!important}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]{margin-bottom:32px}.auth-signup-header[_ngcontent-%COMP%]{display:flex;justify-content:center}.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{width:217px;font-size:22px;line-height:32px;margin-bottom:48px;margin-top:20px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]{margin-left:0;display:flex;align-items:center}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{width:75%;position:relative;right:4%;left:auto}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:16px;font-size:12px;margin-top:-4px}}@media (max-width: 375px){.signup-privacy[_ngcontent-%COMP%]{right:7%!important}}@media (max-width: 1224px){.verify-email-container[_ngcontent-%COMP%]{margin-bottom:42%!important}}@media (max-width: 600px){.verify-email-container[_ngcontent-%COMP%]{margin-bottom:52%!important}}.verify-email-container[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;margin:16px}@media (max-width: 600px){.verify-email-container[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{width:auto}}.bottom-container[_ngcontent-%COMP%]{width:100%;margin-top:0!important;display:flex;flex-direction:row;justify-content:center}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:32px}@media (max-width: 1224px){.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .resend[_ngcontent-%COMP%]{position:relative!important}}@media (max-width: 600px){.bottom-container[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:row}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:32px}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .resend[_ngcontent-%COMP%]{position:relative!important}}.mat-input-element[_ngcontent-%COMP%]{width:512px;padding-bottom:7px;font-family:Roboto;font-style:normal;font-weight:normal}.mobile-para[_ngcontent-%COMP%]{display:none}@media (max-width: 1224px){.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:65px;height:65px;margin:41px 40px 42px 24px}.auth-sign[_ngcontent-%COMP%]{margin-bottom:208px}}@media (max-width: 600px){.auth-sign[_ngcontent-%COMP%]{margin-top:38px;margin-bottom:144px}.banner-auth-migration-wrap[_ngcontent-%COMP%]{margin:32px auto 0!important}.banner-auth-migration[_ngcontent-%COMP%]{width:350px;height:132px}.banner-auth-migration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{height:90px;width:247px;margin-top:20px;margin-bottom:22px}.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:48px;width:48px;margin:45px 16px 39px 23px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{width:334px}.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:120px}}  .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{background-color:#fff!important}.verified[_ngcontent-%COMP%]{margin-top:15%!important;
1margin-bottom:-50%!important;position:relative!important}.mail-container[_ngcontent-%COMP%]{font-style:normal;font-weight:normal;text-align:center;display:flex;flex-direction:column;align-items:center}.mail-container[_ngcontent-%COMP%]   .mail-H[_ngcontent-%COMP%]{margin-top:96px!important}.mail-container[_ngcontent-%COMP%]   .mail-up[_ngcontent-%COMP%]{width:70%}.mail-container[_ngcontent-%COMP%]   .mailerror-para[_ngcontent-%COMP%]{font-size:18px!important;line-height:26px}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{font-size:36px!important;color:#003ac1!important;line-height:48px;margin-top:0!important}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#00d9d5;font-weight:700;font-family:"Roboto Slab"}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-family:Roboto Slab;font-size:36px;line-height:48px;color:#003ac1;margin-bottom:24px;line-height:1}.mail-container[_ngcontent-%COMP%]   .mailerror-heading[_ngcontent-%COMP%]{color:#ff3d71!important}.mail-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:normal;font-style:normal;font-size:18px;line-height:26px;color:#222b45}.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:52%}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:57%}}@media (max-width: 768px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:75%!important}}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:90%!important}}@media (max-width: 375px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:100%!important}}.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:33%;font-size:16px!important;line-height:24px!important}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:35%}}@media (max-width: 768px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:48%}}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}}.mail-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px;width:99px;background:#006fff;border-radius:8px;margin:48px 12px 32px}.mail-container[_ngcontent-%COMP%]   .btnEmail[_ngcontent-%COMP%]{width:147px;height:48px;background:#006fff;border-radius:8px;margin:48px 12px 32px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px;color:#fff;display:flex;flex-direction:row;align-items:center;justify-content:center;text-decoration:none}.mail-container[_ngcontent-%COMP%]   .Med[_ngcontent-%COMP%]{width:99px!important}.mail-container[_ngcontent-%COMP%]   .an[_ngcontent-%COMP%]{width:132px!important}.mail-container[_ngcontent-%COMP%]   .btnText[_ngcontent-%COMP%]{font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px;color:#fff}.mail-container[_ngcontent-%COMP%]   .btnTextView[_ngcontent-%COMP%]{font-family:Open Sans;font-weight:bold;font-size:12px;text-align:left;padding:0;line-height:20px;color:#fff}.mail-container[_ngcontent-%COMP%]   .error-icon[_ngcontent-%COMP%]{width:12px;height:12px;float:left;margin-top:2px}.mail-container[_ngcontent-%COMP%]   .errortext[_ngcontent-%COMP%]{font-size:12px;color:#ff3d71;font-family:Roboto;font-weight:500!important;float:left;margin-left:2px}.mail-container[_ngcontent-%COMP%]   .btnView[_ngcontent-%COMP%]{width:auto;margin-top:7px}.mail-container[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{width:300px}.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{font-size:16px;line-height:24px}.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#003ac1;font-weight:bold}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:800px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]   .email-text[_ngcontent-%COMP%]{color:#222b45!important}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .mailerror-para[_ngcontent-%COMP%]{margin-left:12px!important;margin-right:12px!important}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:320px!important;font-size:18px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]   .email-text[_ngcontent-%COMP%]{word-break:break-all;color:#222b45!important}}.mail-container[_ngcontent-%COMP%]   .RR[_ngcontent-%COMP%]{display:flex;flex-direction:row}.verify[_ngcontent-%COMP%]{margin-top:6%!important}@media (max-width: 1224px){.verify[_ngcontent-%COMP%]{margin-bottom:8%!important}}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{margin-bottom:300px}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-top:52px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:680px;font-size:18px}}@media (max-width: 600px){.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{margin-bottom:200px;width:100%!important}.mail-container[_ngcontent-%COMP%]   .mail-up[_ngcontent-%COMP%]{width:80%!important}.mail-container[_ngcontent-%COMP%]   .mail-H[_ngcontent-%COMP%]{margin-top:72px!important}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px!important}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:22px;line-height:32px;margin-top:52px}}  .mat-checkbox-checked.mat-accent .mat-checkbox-background, .mat-checkbox-indeterminate.mat-accent[_ng
1content-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#006fff}  .mat-checkbox .mat-checkbox-frame{background:rgba(143,155,179,.16);border:1px solid #c5cee0;border-radius:3px}@media only screen and (max-width: 500px){.sucreset[_ngcontent-%COMP%]{margin:0!important}}.mar[_ngcontent-%COMP%]{margin:auto}.field-label2[_ngcontent-%COMP%]{display:block;text-align:left}.new-H[_ngcontent-%COMP%]{height:45px}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px!important;line-height:24px;color:#222b45;font-weight:normal}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.res[_ngcontent-%COMP%]{width:132px!important}.btnRes[_ngcontent-%COMP%]{width:210px!important}.suc-res[_ngcontent-%COMP%]{width:93px!important}.redeemed-container[_ngcontent-%COMP%]{margin-top:13%}@media (max-width: 1224px){.redeemed-container[_ngcontent-%COMP%]{margin-top:6%}}@media only screen and (max-width: 500px){.redeemed-container[_ngcontent-%COMP%]{margin-top:2%!important}}']}),t})();const xD=["params",""];let wD=(()=>{class t{constructor(t,e,n,i,o){this.afAuth=t,this.auth=e,this._toastr=n,this._appState=i,this.router=o,this.destroy$=new ve.xQ}ngOnInit(){this._appState.loading=!0;const t=this.auth.checkEmailVerification(this.params.token).pipe((0,SC.b)(()=>{this.router.navigate(["auth","verify"])}),Te(()=>this.auth.reload()),RC(()=>{this._appState.loading=!1})),e=(0,Et.of)(!1).pipe((0,SC.b)(()=>(this._toastr.warning("Please sign in to verify your email address"),this.router.navigate(["/signin"],{queryParams:{email_verification_token:this.params.token}}))),RC(()=>{this._appState.loading=!1}));kE(1e3).pipe(Te(()=>this.auth.authenticated),EC(this.destroy$),(0,It.zg)(n=>zN(()=>!!n,t,e))).subscribe(()=>{console.log("Verification Succsess!")},t=>(this._appState.loading=!1,this._toastr.error("The verification link is invalid. Please check the link and try again"),this.router.navigate(["auth","verify"])))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(an),i.Y36(eT),i.Y36(TT),i.Y36(BC),i.Y36(FO))},t.\u0275cmp=i.Xpm({type:t,selectors:[["verify-email-address","params",""]],inputs:{params:"params"},attrs:xD,decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();const OD=["params",""];let PD=(()=>{class t{constructor(t,e,n,i,o){this.afAuth=t,this._auth=e,this._appState=n,this.router=i,this._toastr=o}ngOnInit(){return console.log(this.params),this.handleRecoverEmail().pipe(Te(()=>this._auth.logout())).subscribe(()=>{this._toastr.success(`Your email address has been changed back to ${this.restoredEmail}. Please sign in`),this.router.navigate([""],{queryParams:{new_email:this.restoredEmail}})},t=>{this._toastr.error(tT.Parse(t.code)),this.router.navigate(["/"])})}handleRecoverEmail(){return this._appState.loading=!0,(0,Ce.D)(this.afAuth.checkActionCode(this.params.oobCode)).pipe(Te(t=>(this.restoredEmail=t.data.email,(0,Ce.D)(this.afAuth.applyActionCode(this.params.oobCode)))),Te(t=>this._auth.checkUserEmail(this.restoredEmail)),qe(1),RC(()=>this._appState.loading=!1))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(an),i.Y36(eT),i.Y36(BC),i.Y36(FO),i.Y36(TT))},t.\u0275cmp=i.Xpm({type:t,selectors:[["recover-email","params",""]],inputs:{params:"params"},attrs:OD,decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();function MD(t,e){1&t&&(i.TgZ(0,"div",1),i.TgZ(1,"div",2),i._UZ(2,"mat-icon",3),i.qZA(),i.TgZ(3,"div",4),i.TgZ(4,"h3"),i._uU(5,"Welcome back!"),i.qZA(),i.qZA(),i.TgZ(6,"div",5),i.TgZ(7,"p",6),i._uU(8,"You have successfully reactivated your account. Sign in."),i.qZA(),i.qZA(),i.TgZ(9,"div",7),i.TgZ(10,"button",8),i._uU(11,"Sign in"),i.qZA(),i.qZA(),i.qZA())}let TD=(()=>{class t{constructor(t,e,n,i){this.auth=t,this.appState=e,this.toastr=n,this.router=i,this.showSuccessMessage=!1}ngOnInit(){this.appState.loading$.next(!0),this.auth.recoverAccount(this.params.token).subscribe(()=>{this.appState.loading$.next(!1),this.showSuccessMessage=!0},t=>405==t.error.status?(this.toastr.error("This account has already been reactivated, please sign in."),this.router.navigate([""])):(this.toastr.error("Something went wrong. Please contact [email protected]"),this.router.navigate([""])))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(eT),i.Y36(BC),i.Y36(TT),i.Y36(FO))},t.\u0275cmp=i.Xpm({type:t,selectors:[["reactivate-account"]],inputs:{params:"params"},decls:1,vars:1,consts:[["class","auth-dialog auth-dialog--no-sha
1dow",4,"ngIf"],[1,"auth-dialog","auth-dialog--no-shadow"],[1,"auth-sucsess-icon"],["svgIcon","Desktop_icon"],[1,"auth-header","verifySign"],[1,"auth-dialog-body"],[1,"text-center"],[1,"auth-dialog-actions","verifySign"],["routerLink","/",1,"btn-success"]],template:function(t,e){1&t&&i.YNc(0,MD,12,0,"div",0),2&t&&i.Q6J("ngIf",e.showSuccessMessage)},directives:[R,qS,ZO],styles:['[_nghost-%COMP%]{flex-direction:column;height:calc(100% - 80px);display:flex;flex:1 0 auto}span[_ngcontent-%COMP%], a[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-style:normal;font-weight:normal}.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;font-family:Roboto Slab,sans-serif;font-size:36px;line-height:48px;margin-top:96px;margin-bottom:0;text-align:center}@media only screen and (max-width: 1224px){.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:72px}}@media only screen and (max-width: 500px){.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px;margin-top:72px!important}}.verifySign[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.verifySign[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:35px}@media (max-width: 600px){.verifySign[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:25px!important;font-size:22px!important;line-height:32px}}.verifySign[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{background:#006FFF!important;border-radius:8px!important;font-family:Open Sans!important;font-style:normal!important;font-weight:bold!important;font-size:12px!important;line-height:16px!important;text-align:center;color:#fff;width:114px!important;height:32px!important;border:none!important}.verifySign[_ngcontent-%COMP%]   .btn-success[_ngcontent-%COMP%]{padding:12px;background:#006FFF;border-radius:8px;width:210px;height:48px;font-family:Open Sans,sans-serif;font-style:normal;font-weight:bold;font-size:16px;line-height:20px;text-align:center;color:#fff;border:none;margin-top:56px;cursor:pointer}.verifySign[_ngcontent-%COMP%]   .ch[_ngcontent-%COMP%]{width:150px!important}.auth-sucsess-icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin:auto}.auth-sucsess-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:81px;width:81px}@media (max-width: 600px){.auth-sucsess-icon[_ngcontent-%COMP%]{margin-top:80px}.auth-sucsess-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:40px;width:40px}}re-captcha[_ngcontent-%COMP%]{margin-bottom:32px}.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;font-family:Roboto Slab;font-size:36px;line-height:48px;margin-top:56px;margin-bottom:56px;text-align:center}.banner-auth-migration-wrap[_ngcontent-%COMP%]{display:flex;margin:56px auto 10px;max-width:743px}.banner-auth-migration[_ngcontent-%COMP%]{display:flex;align-items:center;width:524px;height:147px;background:#112C6C}.banner-auth-migration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:372px;height:72px;font-family:Roboto;font-style:normal;font-weight:normal;font-size:13px;line-height:18px;color:#fff}.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;margin:55px 50px 54px 34px}.ml_sm[_ngcontent-%COMP%]{margin-left:calc(4px * 1)}.page-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:6%;margin-bottom:4%}@media only screen and (max-width: 1224px){.page-container[_ngcontent-%COMP%]{margin-bottom:2%!important}}.page-container[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:flex-start}.page-container[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]   .welcome-partners-da[_ngcontent-%COMP%]{margin:0;height:80px;width:476px;color:#fefefe;font-size:30px;font-weight:300;letter-spacing:.75px;line-height:40px}.new-sso[_ngcontent-%COMP%]{margin-top:0%;margin-bottom:0%}.auth-sign[_ngcontent-%COMP%]{margin:48px auto 80px;height:auto}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]{display:flex;align-items:center}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{margin-bottom:24px;display:flex;align-items:flex-start;flex-direction:column}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{height:40px;width:416px;border-radius:4px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px;line-height:24px;color:#222b45}
1.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{margin-bottom:30px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-style:normal;line-height:16px;padding-top:8px;width:410px}@media (max-width: 600px){.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{width:327px!important}}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .newdes[_ngcontent-%COMP%]{line-height:15px!important}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{margin-left:0!important}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-checkbox[_ngcontent-%COMP%]{margin:-8px 0 16px 50px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#8f9bb3;position:relative;bottom:3px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]{margin-top:0}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-check[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:56px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;line-height:16px;color:#222b45;margin-top:32px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#00d68f;font-weight:bold;text-decoration:none}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px;width:93px;border-radius:8px;padding:12px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]{align-items:flex-start}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;font-size:15px;line-height:24px;color:#222b45;margin:0 6px;bottom:5px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]{margin-left:0;position:relative;left:0px;bottom:6px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]     .mat-checkbox-frame{border:1px solid #c5cee0;border-radius:3px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]     .mat-checkbox-inner-container{width:20px;height:20px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]     .mat-checkbox-checked.mat-accent .mat-checkbox-background, .auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   .mat-checkbox-indeterminate.mat-accent[_ng
1content-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#006fff}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#006fff;text-decoration:none;position:relative}@media only screen and (max-width: 500px){.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{top:-2px}}@media only screen and (max-width: 1224px){.actions-forget[_ngcontent-%COMP%]{font-size:12px!important}.actions-check[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:13px!important;line-height:18px!important}.row-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.row-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:40px;width:83px;padding:10px;font-size:14px!important;line-height:16px!important}}.material-icons.custom-adjust[_ngcontent-%COMP%]{color:#00d68f;left:45%;position:relative;font-size:84px}@media only screen and (max-width: 768px){.material-icons.custom-adjust[_ngcontent-%COMP%]{left:44%}}@media only screen and (max-width: 500px){.material-icons.custom-adjust[_ngcontent-%COMP%]{font-size:74px;left:40%}}@media only screen and (min-width: 1920px){.material-icons.custom-adjust[_ngcontent-%COMP%]{left:45.5%}}.top[_ngcontent-%COMP%]{padding-top:3%!important}@media only screen and (max-width: 1224px){.top[_ngcontent-%COMP%]{padding-top:6%!important}}@media only screen and (max-width: 500px){.top[_ngcontent-%COMP%]{padding-top:15%!important}}.create[_ngcontent-%COMP%]{margin-top:10%!important}.reset-box[_ngcontent-%COMP%]{box-shadow:none!important}.reset-box[_ngcontent-%COMP%]   .example-focus-monitor[_ngcontent-%COMP%]   .cdk-touch-focused[_ngcontent-%COMP%]{background:rgba(0,0,255,.5)!important}.reset-box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1!important;font-family:"Roboto Slab";font-weight:700!important}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px}}.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:36px!important;font-weight:700!important;width:60%}@media only screen and (max-width: 1224px){.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:36px!important}}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px!important;width:80%}}.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start!important;width:416px;margin-left:auto;margin-right:auto;margin-bottom:56px!important}@media only screen and (max-width: 1224px){.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{width:416px;margin-bottom:70px!important}}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{width:334px!important;margin-bottom:64px!important}}@media only screen and (max-width: 500px){.pp[_ngcontent-%COMP%]{left:0%!important}}@media only screen and (max-width: 500px){.pass[_ngcontent-%COMP%]{left:0%!important}}.auth-dialog[_ngcontent-%COMP%]{background:#FEFEFE;box-shadow:0 2px 6px #0000004d;height:auto;border-radius:16px;margin:4% auto 0%!important}.auth-dialog.sign-in[_ngcontent-%COMP%]{margin:80px auto 0}
1.auth-dialog--no-shadow[_ngcontent-%COMP%]{box-shadow:none}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-header[_ngcontent-%COMP%]{padding:35px 0 0;display:flex;justify-content:center}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{position:relative;margin:0;height:40px;color:#666;font-size:36px;font-weight:bold;letter-spacing:.75px;line-height:48px;text-align:center}.auth-dialog[_ngcontent-%COMP%]   .success-body[_ngcontent-%COMP%]{margin-top:0!important;padding-top:0;padding-bottom:40px}@media only screen and (max-width: 360px){.auth-dialog[_ngcontent-%COMP%]   .success-body[_ngcontent-%COMP%]{margin-bottom:60px}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center;padding-bottom:8%;font-style:normal;font-weight:normal!important;font-family:"Roboto"!important;font-size:18px!important;line-height:26px;color:#222b45}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:100%}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-bottom:0!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-top:5%!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-bottom:10%!important;padding-top:0%!important}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:15px!important;font-family:"Roboto";font-weight:400;color:#000}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{height:186.2852783203px;width:199px;background:#ffffff;border:.9px solid #e6ebf7;box-shadow:0 8px 14px #4367f312;border-radius:1.8px;position:absolute;z-index:2;margin-left:28%;font-family:Roboto;font-style:normal;font-size:12px;line-height:14px;display:flex;flex-direction:column}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   .hed[_ngcontent-%COMP%]{font-weight:bold;opacity:1}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:normal;color:#003ac1;margin-top:7px;margin-left:20px;opacity:.3}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:13px;height:13px;margin-right:10px;position:relative;top:2px}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:580px;display:flex;flex-direction:row}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   .msg-error[_ngcontent-%COMP%]{margin-left:8px}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:40%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:468px!important}}@media only screen and (max-width: 768px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:53%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:468px!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:35%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:330px!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:40px!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .reP[_ngcontent-%COMP%]{width:280px;margin:auto}}@media only screen and (max-width: 375px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:40%!important}}@media only screen and (min-width: 1920px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:19.5%!important}}.auth-dialog[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{padding:0!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .re[_ng
1content-%COMP%]{padding:0!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]{padding:0 50px;margin-top:24px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin:auto auto 65px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:396px!important;height:24px;margin-left:0%!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{margin-bottom:12px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]:last-child{margin-bottom:0}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column;margin:auto}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;line-height:16px;padding-top:8px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:100%;min-width:100px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{font-size:12px;font-weight:500!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-input[_ngcontent-%COMP%]   .reset-field[_ngcontent-%COMP%]{background-color:#e4e9f2}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{flex:none;width:416px!important;height:40px;min-width:416px!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-checkbox[_ngcontent-%COMP%]{margin:-8px 0 16px 50px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .icon-box[_ngcontent-%COMP%]{flex:1 0 32px}@media (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{width:416px!important;min-width:416px!important}}@media (max-width: 600px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{width:334px!important;min-width:334px!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:286px!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{padding:0 50px 35px;margin-top:45px;display:flex;flex-direction:column;align-items:center;text-align:center}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .reset-button[_ngcontent-%COMP%]{font-weight:700;padding:12px;font-size:16px;line-height:20px;width:180px;height:48px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-top:11px;height:16px;width:96px;color:#575756;font-size:12px;line-height:16px;text-decoration:none}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:none!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:block!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:"Roboto";font-weight:700;font-size:14px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-family:"Roboto";font-weight:700;font-size:14px;color:#003ac1!important;text-decoration:underline}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:block!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-top:40px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{padding:0 50px 50px;margin-bottom:200px!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{margin-bottom:140px!important}}.footer-auth[_ngcontent-%COMP%]{width:100%;margin-top:auto;padding-top:calc(4px * 6)}.footer-auth[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.footer-auth[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:28px;
1width:200px}.auth-signup[_ngcontent-%COMP%]{margin:48px auto -10%;height:auto}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-left:0}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .mar-true[_ngcontent-%COMP%]{position:relative;left:8.5%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .mar-false[_ngcontent-%COMP%]{position:relative;left:7%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{margin-top:8px;display:flex;flex-direction:row}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:24px;font-size:15px;color:#222b45;margin-left:10px;margin-top:2px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline;font-weight:bold}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;line-height:16px;padding-top:8px;font-weight:600;font-size:12px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{position:relative;right:16%}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{right:18%}}@media (max-width: 600px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{right:10%!important}}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{position:relative;right:13%}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{right:12%}}@media (max-width: 600px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{right:10%!important}}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:56px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:48px;width:99px;border-radius:8px;padding:12px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;line-height:16px;color:#222b45}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:150px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:bold;color:#006fff;text-decoration:none}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:14px!important}}.purchase-section[_ngcontent-%COMP%]{width:808px;height:auto;background:#F7F9FC;border-radius:4px;display:flex;flex-direction:row;align-items:center;justify-content:space-evenly;margin:90px auto 15px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:56px;margin-bottom:56px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;width:370px;font-family:Roboto Slab;font-size:36px;line-height:48px;margin-bottom:6px;text-align:center}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;font-weight:normal;font-size:18px;line-height:26px;display:flex;width:436px;align-items:center;text-align:center;color:#222b45}
1.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]{width:185.49px;height:204px;border-radius:4.0597px;background:#FFFFFF;display:flex;flex-direction:column;box-shadow:0 0 10px #0003!important}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]{width:185.49px;height:105.55px;text-align:center;display:flex;flex-direction:column;font-style:normal}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .text-sec[_ngcontent-%COMP%]{height:75.55px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-family:Roboto Slab;font-weight:bold;font-size:15.2239px;line-height:20px;color:#003ac1;margin:8px auto}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:normal;font-size:9.13433px;line-height:13px;color:#222b45}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .bundle-para[_ngcontent-%COMP%]{margin:0 20px 20px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .course-para[_ngcontent-%COMP%]{margin:25px 15px auto}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]{height:30px;margin:0 15px;align-items:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .courseprice[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .bundleprice[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:49%}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:12px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   .count-para[_ngcontent-%COMP%]{position:relative;left:4px;bottom:4px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .divide-sec[_ngcontent-%COMP%]{width:1.01px;height:10.66px;background:#E4E9F2}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .price-para[_ngcontent-%COMP%]{font-weight:bold;color:#00d68f;position:relative;bottom:4px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:row;justify-content:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-img[_ngcontent-%COMP%]{height:98.45px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:185.49px;height:98.45px;border-bottom-left-radius:4.0597px;border-bottom-right-radius:4.0597px}@media (max-width: 1224px){.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:30px}.purchase-section[_ngcontent-%COMP%]{width:100%;margin:72px auto 15px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{left:3%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:18px;font-size:13px;margin-top:4px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]{margin-top:56px;margin-bottom:100px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:40px;width:87px;font-size:14px;line-height:16px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 600px){.purchase-section[_ngcontent-%COMP%]{flex-direction:column;margin-top:0%!important}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:24px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px;line-height:32px;margin-bottom:24px;text-align:center;width:214px!important}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important;width:312px!important}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]{margin-bottom:32px}.auth-signup-header[_ngcontent-%COMP%]{display:flex;justify-content:center}.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{width:217px;font-size:22px;line-height:32px;margin-bottom:48px;margin-top:20px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]{margin-left:0;display:flex;align-items:center}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{width:75%;position:relative;right:4%;left:auto}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:16px;font-size:12px;margin-top:-4px}}@media (max-width: 375px){.signup-privacy[_ngcontent-%COMP%]{right:7%!important}}@media (max-width: 1224px){.verify-email-container[_ngcontent-%COMP%]{margin-bottom:42%!important}}@media (max-width: 600px){.verify-email-container[_ngcontent-%COMP%]{margin-bottom:52%!important}}.verify-email-container[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;margin:16px}@media (max-width: 600px){.verify-email-container[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{width:auto}}.bottom-container[_ngcontent-%COMP%]{width:100%;margin-top:0!important;display:flex;flex-direction:row;justify-content:center}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:32px}@media (max-width: 1224px){.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .resend[_ngcontent-%COMP%]{position:relative!important}}@media (max-width: 600px){.bottom-container[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:row}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:32px}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .resend[_ngcontent-%COMP%]{position:relative!important}}.mat-input-element[_ngcontent-%COMP%]{width:512px;padding-bottom:7px;font-family:Roboto;font-style:normal;font-weight:normal}.mobile-para[_ngcontent-%COMP%]{display:none}@media (max-width: 1224px){.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:65px;height:65px;margin:41px 40px 42px 24px}.auth-sign[_ngcontent-%COMP%]{margin-bottom:208px}}@media (max-width: 600px){.auth-sign[_ngcontent-%COMP%]{margin-top:38px;margin-bottom:144px}.banner-auth-migration-wrap[_ngcontent-%COMP%]{margin:32px auto 0!important}.banner-auth-migration[_ngcontent-%COMP%]{width:350px;height:132px}.banner-auth-migration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{height:90px;width:247px;margin-top:20px;margin-bottom:22px}.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:48px;width:48px;margin:45px 16px 39px 23px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{width:334px}.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:120px}}  .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{background-color:#fff!important}.verified[_ngcontent-%COMP%]{margin-top:15%!important;
1margin-bottom:-50%!important;position:relative!important}.mail-container[_ngcontent-%COMP%]{font-style:normal;font-weight:normal;text-align:center;display:flex;flex-direction:column;align-items:center}.mail-container[_ngcontent-%COMP%]   .mail-H[_ngcontent-%COMP%]{margin-top:96px!important}.mail-container[_ngcontent-%COMP%]   .mail-up[_ngcontent-%COMP%]{width:70%}.mail-container[_ngcontent-%COMP%]   .mailerror-para[_ngcontent-%COMP%]{font-size:18px!important;line-height:26px}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{font-size:36px!important;color:#003ac1!important;line-height:48px;margin-top:0!important}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#00d9d5;font-weight:700;font-family:"Roboto Slab"}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-family:Roboto Slab;font-size:36px;line-height:48px;color:#003ac1;margin-bottom:24px;line-height:1}.mail-container[_ngcontent-%COMP%]   .mailerror-heading[_ngcontent-%COMP%]{color:#ff3d71!important}.mail-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:normal;font-style:normal;font-size:18px;line-height:26px;color:#222b45}.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:52%}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:57%}}@media (max-width: 768px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:75%!important}}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:90%!important}}@media (max-width: 375px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:100%!important}}.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:33%;font-size:16px!important;line-height:24px!important}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:35%}}@media (max-width: 768px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:48%}}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}}.mail-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px;width:99px;background:#006fff;border-radius:8px;margin:48px 12px 32px}.mail-container[_ngcontent-%COMP%]   .btnEmail[_ngcontent-%COMP%]{width:147px;height:48px;background:#006fff;border-radius:8px;margin:48px 12px 32px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px;color:#fff;display:flex;flex-direction:row;align-items:center;justify-content:center;text-decoration:none}.mail-container[_ngcontent-%COMP%]   .Med[_ngcontent-%COMP%]{width:99px!important}.mail-container[_ngcontent-%COMP%]   .an[_ngcontent-%COMP%]{width:132px!important}.mail-container[_ngcontent-%COMP%]   .btnText[_ngcontent-%COMP%]{font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px;color:#fff}.mail-container[_ngcontent-%COMP%]   .btnTextView[_ngcontent-%COMP%]{font-family:Open Sans;font-weight:bold;font-size:12px;text-align:left;padding:0;line-height:20px;color:#fff}.mail-container[_ngcontent-%COMP%]   .error-icon[_ngcontent-%COMP%]{width:12px;height:12px;float:left;margin-top:2px}.mail-container[_ngcontent-%COMP%]   .errortext[_ngcontent-%COMP%]{font-size:12px;color:#ff3d71;font-family:Roboto;font-weight:500!important;float:left;margin-left:2px}.mail-container[_ngcontent-%COMP%]   .btnView[_ngcontent-%COMP%]{width:auto;margin-top:7px}.mail-container[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{width:300px}.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{font-size:16px;line-height:24px}.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#003ac1;font-weight:bold}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:800px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]   .email-text[_ngcontent-%COMP%]{color:#222b45!important}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .mailerror-para[_ngcontent-%COMP%]{margin-left:12px!important;margin-right:12px!important}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:320px!important;font-size:18px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]   .email-text[_ngcontent-%COMP%]{word-break:break-all;color:#222b45!important}}.mail-container[_ngcontent-%COMP%]   .RR[_ngcontent-%COMP%]{display:flex;flex-direction:row}.verify[_ngcontent-%COMP%]{margin-top:6%!important}@media (max-width: 1224px){.verify[_ngcontent-%COMP%]{margin-bottom:8%!important}}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{margin-bottom:300px}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-top:52px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:680px;font-size:18px}}@media (max-width: 600px){.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{margin-bottom:200px;width:100%!important}.mail-container[_ngcontent-%COMP%]   .mail-up[_ngcontent-%COMP%]{width:80%!important}.mail-container[_ngcontent-%COMP%]   .mail-H[_ngcontent-%COMP%]{margin-top:72px!important}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px!important}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:22px;line-height:32px;margin-top:52px}}  .mat-checkbox-checked.mat-accent .mat-checkbox-background, .mat-checkbox-indeterminate.mat-accent[_ng
1content-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#006fff}  .mat-checkbox .mat-checkbox-frame{background:rgba(143,155,179,.16);border:1px solid #c5cee0;border-radius:3px}@media only screen and (max-width: 500px){.sucreset[_ngcontent-%COMP%]{margin:0!important}}.mar[_ngcontent-%COMP%]{margin:auto}.field-label2[_ngcontent-%COMP%]{display:block;text-align:left}.new-H[_ngcontent-%COMP%]{height:45px}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px!important;line-height:24px;color:#222b45;font-weight:normal}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.res[_ngcontent-%COMP%]{width:132px!important}.btnRes[_ngcontent-%COMP%]{width:210px!important}.suc-res[_ngcontent-%COMP%]{width:93px!important}.redeemed-container[_ngcontent-%COMP%]{margin-top:13%}@media (max-width: 1224px){.redeemed-container[_ngcontent-%COMP%]{margin-top:6%}}@media only screen and (max-width: 500px){.redeemed-container[_ngcontent-%COMP%]{margin-top:2%!important}}']}),t})();function kD(t,e){1&t&&(i.TgZ(0,"div",9),i._UZ(1,"img",10),i.qZA())}let SD=(()=>{class t{constructor(t,e,n,i,o){this.afAuth=t,this.fb=e,this.router=n,this._toastr=i,this._auth=o,this.loading=!1}get password(){return this.formGroup.get("password")}get passwordConfirm(){return this.formGroup.get("confirmPassword")}initFormGroup(){return this.fb.group({password:[null,[_v.required,_v.minLength(8),_v.pattern(this._auth.goodPasswordStrengthRegex)]],confirmPassword:[null,[_v.required]]},{validators:AI("password","confirmPassword")})}sign(){const t=localStorage.getItem("admin_dashboard"),e=localStorage.getItem("bursary_internal_dashboard");"true"===t?(localStorage.removeItem("admin_dashboard"),document.location.href=lP):"true"===e?(localStorage.removeItem("bursary_internal_dashboard"),document.location.href="https://ma-bursary-internal-dashboard.web.app/"):document.location.href="/"}setPassword(){if(!this.formGroup.invalid)return this.loading=!0,(0,Ce.D)(this.afAuth.confirmPasswordReset(this.params.oobCode,this.password.value)).pipe(qe(1),RC(()=>this.loading=!1)).subscribe(()=>(this._toastr.success("Great! Password updated successfully!"),this.router.navigate([""])),t=>{"auth/invalid-action-code"===(console.log(t.code),t.code)?this._toastr.error("The link has expired. Please enter your email address so a new link can be emailed to you."):this._toastr.error(tT.Parse(t.code)),this.router.navigate(["/reset-password"])});this._toastr.error(zC)}isEmptyControl(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}ngOnInit(){this.formGroup=this.initFormGroup()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(an),i.Y36(kC),i.Y36(FO),i.Y36(TT),i.Y36(eT))},t.\u0275cmp=i.Xpm({type:t,selectors:[["success-password-reset"]],inputs:{params:"params"},decls:15,vars:0,consts:[[1,"auth-dialog","reset-box","top","create","sucreset"],[1,"material-icons","custom-adjust"],[1,"auth-dialog-header","success-body"],[1,"success-heading"],[1,"auth-dialog-body","reset-box-body","success-body"],[1,"success-para"],["load",""],[1,"auth-dialog-actions"],[1,"button-action","reset-button","suc-res",3,"click"],[1,"rc","jc_c","ai_c"],["src","assets/smaller size loading animation.gif"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"mat-icon",1),i._uU(2," check_circle_outline "),i.qZA(),i.TgZ(3,"div",2),i._UZ(4,"br"),i.TgZ(5,"h3",3),i._uU(6," Your password has been successfully changed "),i.qZA(),i.qZA(),i.TgZ(7,"div",4),i.TgZ(8,"p",5),i._uU(9,"Use your new password to sign in."),i.qZA(),i.YNc(10,kD,2,0,"ng-template",null,6,i.W1O),i.qZA(),i.TgZ(12,"div",7),i.TgZ(13,"button",8),i.NdJ("
1click",function(){return e.sign()}),i._uU(14," Sign in "),i.qZA(),i.qZA(),i.qZA())},directives:[qS],styles:['[_nghost-%COMP%]{flex-direction:column;height:calc(100% - 80px);display:flex;flex:1 0 auto}span[_ngcontent-%COMP%], a[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-style:normal;font-weight:normal}.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;font-family:Roboto Slab,sans-serif;font-size:36px;line-height:48px;margin-top:96px;margin-bottom:0;text-align:center}@media only screen and (max-width: 1224px){.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:72px}}@media only screen and (max-width: 500px){.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px;margin-top:72px!important}}.verifySign[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.verifySign[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:35px}@media (max-width: 600px){.verifySign[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:25px!important;font-size:22px!important;line-height:32px}}.verifySign[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{background:#006FFF!important;border-radius:8px!important;font-family:Open Sans!important;font-style:normal!important;font-weight:bold!important;font-size:12px!important;line-height:16px!important;text-align:center;color:#fff;width:114px!important;height:32px!important;border:none!important}.verifySign[_ngcontent-%COMP%]   .btn-success[_ngcontent-%COMP%]{padding:12px;background:#006FFF;border-radius:8px;width:210px;height:48px;font-family:Open Sans,sans-serif;font-style:normal;font-weight:bold;font-size:16px;line-height:20px;text-align:center;color:#fff;border:none;margin-top:56px;cursor:pointer}.verifySign[_ngcontent-%COMP%]   .ch[_ngcontent-%COMP%]{width:150px!important}.auth-sucsess-icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin:auto}.auth-sucsess-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:81px;width:81px}@media (max-width: 600px){.auth-sucsess-icon[_ngcontent-%COMP%]{margin-top:80px}.auth-sucsess-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:40px;width:40px}}re-captcha[_ngcontent-%COMP%]{margin-bottom:32px}.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;font-family:Roboto Slab;font-size:36px;line-height:48px;margin-top:56px;margin-bottom:56px;text-align:center}.banner-auth-migration-wrap[_ngcontent-%COMP%]{display:flex;margin:56px auto 10px;max-width:743px}.banner-auth-migration[_ngcontent-%COMP%]{display:flex;align-items:center;width:524px;height:147px;background:#112C6C}.banner-auth-migration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:372px;height:72px;font-family:Roboto;font-style:normal;font-weight:normal;font-size:13px;line-height:18px;color:#fff}.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;margin:55px 50px 54px 34px}.ml_sm[_ngcontent-%COMP%]{margin-left:calc(4px * 1)}.page-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:6%;margin-bottom:4%}@media only screen and (max-width: 1224px){.page-container[_ngcontent-%COMP%]{margin-bottom:2%!important}}.page-container[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:flex-start}.page-container[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]   .welcome-partners-da[_ngcontent-%COMP%]{margin:0;height:80px;width:476px;color:#fefefe;font-size:30px;font-weight:300;letter-spacing:.75px;line-height:40px}.new-sso[_ngcontent-%COMP%]{margin-top:0%;margin-bottom:0%}.auth-sign[_ngcontent-%COMP%]{margin:48px auto 80px;height:auto}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]{display:flex;align-items:center}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{margin-bottom:24px;display:flex;align-items:flex-start;flex-direction:column}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{height:40px;width:416px;border-radius:4px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px;line-height:24px;color:#222b45}
1.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{margin-bottom:30px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-style:normal;line-height:16px;padding-top:8px;width:410px}@media (max-width: 600px){.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{width:327px!important}}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .newdes[_ngcontent-%COMP%]{line-height:15px!important}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{margin-left:0!important}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-checkbox[_ngcontent-%COMP%]{margin:-8px 0 16px 50px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#8f9bb3;position:relative;bottom:3px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]{margin-top:0}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-check[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:56px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;line-height:16px;color:#222b45;margin-top:32px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#00d68f;font-weight:bold;text-decoration:none}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .row-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px;width:93px;border-radius:8px;padding:12px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]{align-items:flex-start}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;font-size:15px;line-height:24px;color:#222b45;margin:0 6px;bottom:5px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]{margin-left:0;position:relative;left:0px;bottom:6px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]     .mat-checkbox-frame{border:1px solid #c5cee0;border-radius:3px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]     .mat-checkbox-inner-container{width:20px;height:20px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]     .mat-checkbox-checked.mat-accent .mat-checkbox-background, .auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-check[_ngcontent-%COMP%]   .mat-checkbox-indeterminate.mat-accent[_ng
1content-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#006fff}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#006fff;text-decoration:none;position:relative}@media only screen and (max-width: 500px){.auth-sign[_ngcontent-%COMP%]   .auth-sign-actions[_ngcontent-%COMP%]   .actions-forget[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{top:-2px}}@media only screen and (max-width: 1224px){.actions-forget[_ngcontent-%COMP%]{font-size:12px!important}.actions-check[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:13px!important;line-height:18px!important}.row-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.row-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:40px;width:83px;padding:10px;font-size:14px!important;line-height:16px!important}}.material-icons.custom-adjust[_ngcontent-%COMP%]{color:#00d68f;left:45%;position:relative;font-size:84px}@media only screen and (max-width: 768px){.material-icons.custom-adjust[_ngcontent-%COMP%]{left:44%}}@media only screen and (max-width: 500px){.material-icons.custom-adjust[_ngcontent-%COMP%]{font-size:74px;left:40%}}@media only screen and (min-width: 1920px){.material-icons.custom-adjust[_ngcontent-%COMP%]{left:45.5%}}.top[_ngcontent-%COMP%]{padding-top:3%!important}@media only screen and (max-width: 1224px){.top[_ngcontent-%COMP%]{padding-top:6%!important}}@media only screen and (max-width: 500px){.top[_ngcontent-%COMP%]{padding-top:15%!important}}.create[_ngcontent-%COMP%]{margin-top:10%!important}.reset-box[_ngcontent-%COMP%]{box-shadow:none!important}.reset-box[_ngcontent-%COMP%]   .example-focus-monitor[_ngcontent-%COMP%]   .cdk-touch-focused[_ngcontent-%COMP%]{background:rgba(0,0,255,.5)!important}.reset-box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1!important;font-family:"Roboto Slab";font-weight:700!important}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px}}.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:36px!important;font-weight:700!important;width:60%}@media only screen and (max-width: 1224px){.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:36px!important}}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   .success-heading[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px!important;width:80%}}.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start!important;width:416px;margin-left:auto;margin-right:auto;margin-bottom:56px!important}@media only screen and (max-width: 1224px){.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{width:416px;margin-bottom:70px!important}}@media only screen and (max-width: 500px){.reset-box[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{width:334px!important;margin-bottom:64px!important}}@media only screen and (max-width: 500px){.pp[_ngcontent-%COMP%]{left:0%!important}}@media only screen and (max-width: 500px){.pass[_ngcontent-%COMP%]{left:0%!important}}.auth-dialog[_ngcontent-%COMP%]{background:#FEFEFE;box-shadow:0 2px 6px #0000004d;height:auto;border-radius:16px;margin:4% auto 0%!important}.auth-dialog.sign-in[_ngcontent-%COMP%]{margin:80px auto 0}
1.auth-dialog--no-shadow[_ngcontent-%COMP%]{box-shadow:none}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-header[_ngcontent-%COMP%]{padding:35px 0 0;display:flex;justify-content:center}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{position:relative;margin:0;height:40px;color:#666;font-size:36px;font-weight:bold;letter-spacing:.75px;line-height:48px;text-align:center}.auth-dialog[_ngcontent-%COMP%]   .success-body[_ngcontent-%COMP%]{margin-top:0!important;padding-top:0;padding-bottom:40px}@media only screen and (max-width: 360px){.auth-dialog[_ngcontent-%COMP%]   .success-body[_ngcontent-%COMP%]{margin-bottom:60px}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center;padding-bottom:8%;font-style:normal;font-weight:normal!important;font-family:"Roboto"!important;font-size:18px!important;line-height:26px;color:#222b45}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:100%}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-bottom:0!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-top:5%!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .success-para[_ngcontent-%COMP%]{padding-bottom:10%!important;padding-top:0%!important}}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:15px!important;font-family:"Roboto";font-weight:400;color:#000}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{height:186.2852783203px;width:199px;background:#ffffff;border:.9px solid #e6ebf7;box-shadow:0 8px 14px #4367f312;border-radius:1.8px;position:absolute;z-index:2;margin-left:28%;font-family:Roboto;font-style:normal;font-size:12px;line-height:14px;display:flex;flex-direction:column}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   .hed[_ngcontent-%COMP%]{font-weight:bold;opacity:1}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:normal;color:#003ac1;margin-top:7px;margin-left:20px;opacity:.3}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:13px;height:13px;margin-right:10px;position:relative;top:2px}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:580px;display:flex;flex-direction:row}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   .msg-error[_ngcontent-%COMP%]{margin-left:8px}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:40%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:468px!important}}@media only screen and (max-width: 768px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:53%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:468px!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:35%!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:330px!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:40px!important}.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .reP[_ngcontent-%COMP%]{width:280px;margin:auto}}@media only screen and (max-width: 375px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:40%!important}}@media only screen and (min-width: 1920px){.auth-dialog[_ngcontent-%COMP%]   .reset-box-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:19.5%!important}}.auth-dialog[_ngcontent-%COMP%]   .final[_ngcontent-%COMP%]{padding:0!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .re[_ng
1content-%COMP%]{padding:0!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]{padding:0 50px;margin-top:24px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin:auto auto 65px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:396px!important;height:24px;margin-left:0%!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{margin-bottom:12px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]:last-child{margin-bottom:0}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column;margin:auto}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;line-height:16px;padding-top:8px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365;font-weight:500;font-size:12px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-form[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto;width:100%;min-width:100px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{font-size:12px;font-weight:500!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-input[_ngcontent-%COMP%]   .reset-field[_ngcontent-%COMP%]{background-color:#e4e9f2}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{flex:none;width:416px!important;height:40px;min-width:416px!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .form-checkbox[_ngcontent-%COMP%]{margin:-8px 0 16px 50px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .icon-box[_ngcontent-%COMP%]{flex:1 0 32px}@media (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{width:416px!important;min-width:416px!important}}@media (max-width: 600px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .new-field[_ngcontent-%COMP%]{width:334px!important;min-width:334px!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-body[_ngcontent-%COMP%]   .reset-para[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:286px!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{padding:0 50px 35px;margin-top:45px;display:flex;flex-direction:column;align-items:center;text-align:center}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .reset-button[_ngcontent-%COMP%]{font-weight:700;padding:12px;font-size:16px;line-height:20px;width:180px;height:48px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-top:11px;height:16px;width:96px;color:#575756;font-size:12px;line-height:16px;text-decoration:none}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:none!important}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:block!important}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:"Roboto";font-weight:700;font-size:14px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-family:"Roboto";font-weight:700;font-size:14px;color:#003ac1!important;text-decoration:underline}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   .mobile-list[_ngcontent-%COMP%]{display:block!important}}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-top:40px}.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}@media only screen and (max-width: 1224px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{padding:0 50px 50px;margin-bottom:200px!important}}@media only screen and (max-width: 500px){.auth-dialog[_ngcontent-%COMP%]   .auth-dialog-actions[_ngcontent-%COMP%]{margin-bottom:140px!important}}.footer-auth[_ngcontent-%COMP%]{width:100%;margin-top:auto;padding-top:calc(4px * 6)}.footer-auth[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.footer-auth[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:28px;
1width:200px}.auth-signup[_ngcontent-%COMP%]{margin:48px auto -10%;height:auto}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-left:0}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .mar-true[_ngcontent-%COMP%]{position:relative;left:8.5%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .mar-false[_ngcontent-%COMP%]{position:relative;left:7%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{margin-top:8px;display:flex;flex-direction:row}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:24px;font-size:15px;color:#222b45;margin-left:10px;margin-top:2px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline;font-weight:bold}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;line-height:16px;padding-top:8px;font-weight:600;font-size:12px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{position:relative;right:16%}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{right:18%}}@media (max-width: 600px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-true[_ngcontent-%COMP%]{right:10%!important}}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{position:relative;right:13%}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{right:12%}}@media (max-width: 600px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .check-false[_ngcontent-%COMP%]{right:10%!important}}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:56px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:48px;width:99px;border-radius:8px;padding:12px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;line-height:16px;color:#222b45}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:150px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:bold;color:#006fff;text-decoration:none}@media (max-width: 1224px){.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:14px!important}}.purchase-section[_ngcontent-%COMP%]{width:808px;height:auto;background:#F7F9FC;border-radius:4px;display:flex;flex-direction:row;align-items:center;justify-content:space-evenly;margin:90px auto 15px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:56px;margin-bottom:56px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#003ac1;width:370px;font-family:Roboto Slab;font-size:36px;line-height:48px;margin-bottom:6px;text-align:center}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;font-weight:normal;font-size:18px;line-height:26px;display:flex;width:436px;align-items:center;text-align:center;color:#222b45}
1.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]{width:185.49px;height:204px;border-radius:4.0597px;background:#FFFFFF;display:flex;flex-direction:column;box-shadow:0 0 10px #0003!important}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]{width:185.49px;height:105.55px;text-align:center;display:flex;flex-direction:column;font-style:normal}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .text-sec[_ngcontent-%COMP%]{height:75.55px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-family:Roboto Slab;font-weight:bold;font-size:15.2239px;line-height:20px;color:#003ac1;margin:8px auto}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:normal;font-size:9.13433px;line-height:13px;color:#222b45}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .bundle-para[_ngcontent-%COMP%]{margin:0 20px 20px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .course-para[_ngcontent-%COMP%]{margin:25px 15px auto}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]{height:30px;margin:0 15px;align-items:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .courseprice[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .bundleprice[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:49%}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:12px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   .count-para[_ngcontent-%COMP%]{position:relative;left:4px;bottom:4px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .divide-sec[_ngcontent-%COMP%]{width:1.01px;height:10.66px;background:#E4E9F2}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .price-para[_ngcontent-%COMP%]{font-weight:bold;color:#00d68f;position:relative;bottom:4px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]   .price-sec[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:row;justify-content:center}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-img[_ngcontent-%COMP%]{height:98.45px}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]   .card-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:185.49px;height:98.45px;border-bottom-left-radius:4.0597px;border-bottom-right-radius:4.0597px}@media (max-width: 1224px){.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:30px}.purchase-section[_ngcontent-%COMP%]{width:100%;margin:72px auto 15px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{left:3%}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:18px;font-size:13px;margin-top:4px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]{margin-top:56px;margin-bottom:100px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:40px;width:87px;font-size:14px;line-height:16px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-actions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 600px){.purchase-section[_ngcontent-%COMP%]{flex-direction:column;margin-top:0%!important}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:24px}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px;line-height:32px;margin-bottom:24px;text-align:center;width:214px!important}.purchase-section[_ngcontent-%COMP%]   .purchase-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important;width:312px!important}.purchase-section[_ngcontent-%COMP%]   .purchase-card[_ngcontent-%COMP%]{margin-bottom:32px}.auth-signup-header[_ngcontent-%COMP%]{display:flex;justify-content:center}.auth-signup-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{width:217px;font-size:22px;line-height:32px;margin-bottom:48px;margin-top:20px}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]{margin-left:0;display:flex;align-items:center}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]{width:75%;position:relative;right:4%;left:auto}.auth-signup[_ngcontent-%COMP%]   .auth-signup-body[_ngcontent-%COMP%]   .signup-privacy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:16px;font-size:12px;margin-top:-4px}}@media (max-width: 375px){.signup-privacy[_ngcontent-%COMP%]{right:7%!important}}@media (max-width: 1224px){.verify-email-container[_ngcontent-%COMP%]{margin-bottom:42%!important}}@media (max-width: 600px){.verify-email-container[_ngcontent-%COMP%]{margin-bottom:52%!important}}.verify-email-container[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;margin:16px}@media (max-width: 600px){.verify-email-container[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{width:auto}}.bottom-container[_ngcontent-%COMP%]{width:100%;margin-top:0!important;display:flex;flex-direction:row;justify-content:center}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:32px}@media (max-width: 1224px){.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .resend[_ngcontent-%COMP%]{position:relative!important}}@media (max-width: 600px){.bottom-container[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:row}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:32px}.bottom-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .resend[_ngcontent-%COMP%]{position:relative!important}}.mat-input-element[_ngcontent-%COMP%]{width:512px;padding-bottom:7px;font-family:Roboto;font-style:normal;font-weight:normal}.mobile-para[_ngcontent-%COMP%]{display:none}@media (max-width: 1224px){.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:65px;height:65px;margin:41px 40px 42px 24px}.auth-sign[_ngcontent-%COMP%]{margin-bottom:208px}}@media (max-width: 600px){.auth-sign[_ngcontent-%COMP%]{margin-top:38px;margin-bottom:144px}.banner-auth-migration-wrap[_ngcontent-%COMP%]{margin:32px auto 0!important}.banner-auth-migration[_ngcontent-%COMP%]{width:350px;height:132px}.banner-auth-migration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{height:90px;width:247px;margin-top:20px;margin-bottom:22px}.banner-auth-migration[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:48px;width:48px;margin:45px 16px 39px 23px}.auth-sign[_ngcontent-%COMP%]   .auth-sign-body[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{width:334px}.auth-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:120px}}  .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{background-color:#fff!important}.verified[_ngcontent-%COMP%]{margin-top:15%!important;
1margin-bottom:-50%!important;position:relative!important}.mail-container[_ngcontent-%COMP%]{font-style:normal;font-weight:normal;text-align:center;display:flex;flex-direction:column;align-items:center}.mail-container[_ngcontent-%COMP%]   .mail-H[_ngcontent-%COMP%]{margin-top:96px!important}.mail-container[_ngcontent-%COMP%]   .mail-up[_ngcontent-%COMP%]{width:70%}.mail-container[_ngcontent-%COMP%]   .mailerror-para[_ngcontent-%COMP%]{font-size:18px!important;line-height:26px}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{font-size:36px!important;color:#003ac1!important;line-height:48px;margin-top:0!important}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#00d9d5;font-weight:700;font-family:"Roboto Slab"}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-family:Roboto Slab;font-size:36px;line-height:48px;color:#003ac1;margin-bottom:24px;line-height:1}.mail-container[_ngcontent-%COMP%]   .mailerror-heading[_ngcontent-%COMP%]{color:#ff3d71!important}.mail-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:normal;font-style:normal;font-size:18px;line-height:26px;color:#222b45}.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:52%}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:57%}}@media (max-width: 768px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:75%!important}}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:90%!important}}@media (max-width: 375px){.mail-container[_ngcontent-%COMP%]   .ver[_ngcontent-%COMP%]{width:100%!important}}.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:33%;font-size:16px!important;line-height:24px!important}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:35%}}@media (max-width: 768px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:48%}}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .verP[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}}.mail-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px;width:99px;background:#006fff;border-radius:8px;margin:48px 12px 32px}.mail-container[_ngcontent-%COMP%]   .btnEmail[_ngcontent-%COMP%]{width:147px;height:48px;background:#006fff;border-radius:8px;margin:48px 12px 32px;font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px;color:#fff;display:flex;flex-direction:row;align-items:center;justify-content:center;text-decoration:none}.mail-container[_ngcontent-%COMP%]   .Med[_ngcontent-%COMP%]{width:99px!important}.mail-container[_ngcontent-%COMP%]   .an[_ngcontent-%COMP%]{width:132px!important}.mail-container[_ngcontent-%COMP%]   .btnText[_ngcontent-%COMP%]{font-family:Open Sans;font-weight:bold;font-size:16px;line-height:20px;color:#fff}.mail-container[_ngcontent-%COMP%]   .btnTextView[_ngcontent-%COMP%]{font-family:Open Sans;font-weight:bold;font-size:12px;text-align:left;padding:0;line-height:20px;color:#fff}.mail-container[_ngcontent-%COMP%]   .error-icon[_ngcontent-%COMP%]{width:12px;height:12px;float:left;margin-top:2px}.mail-container[_ngcontent-%COMP%]   .errortext[_ngcontent-%COMP%]{font-size:12px;color:#ff3d71;font-family:Roboto;font-weight:500!important;float:left;margin-left:2px}.mail-container[_ngcontent-%COMP%]   .btnView[_ngcontent-%COMP%]{width:auto;margin-top:7px}.mail-container[_ngcontent-%COMP%]   .form-field--mb-sm[_ngcontent-%COMP%]{width:300px}.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{font-size:16px;line-height:24px}.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#003ac1;font-weight:bold}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:800px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]   .email-text[_ngcontent-%COMP%]{color:#222b45!important}@media (max-width: 500px){.mail-container[_ngcontent-%COMP%]   .mailerror-para[_ngcontent-%COMP%]{margin-left:12px!important;margin-right:12px!important}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:320px!important;font-size:18px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]   .email-text[_ngcontent-%COMP%]{word-break:break-all;color:#222b45!important}}.mail-container[_ngcontent-%COMP%]   .RR[_ngcontent-%COMP%]{display:flex;flex-direction:row}.verify[_ngcontent-%COMP%]{margin-top:6%!important}@media (max-width: 1224px){.verify[_ngcontent-%COMP%]{margin-bottom:8%!important}}@media (max-width: 1224px){.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{margin-bottom:300px}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-top:52px}.mail-container[_ngcontent-%COMP%]   .paratext[_ngcontent-%COMP%]{width:680px;font-size:18px}}@media (max-width: 600px){.mail-container[_ngcontent-%COMP%]   .mail-para[_ngcontent-%COMP%]{margin-bottom:200px;width:100%!important}.mail-container[_ngcontent-%COMP%]   .mail-up[_ngcontent-%COMP%]{width:80%!important}.mail-container[_ngcontent-%COMP%]   .mail-H[_ngcontent-%COMP%]{margin-top:72px!important}.mail-container[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{font-size:22px!important;line-height:32px!important}.mail-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:22px;line-height:32px;margin-top:52px}}  .mat-checkbox-checked.mat-accent .mat-checkbox-background, .mat-checkbox-indeterminate.mat-accent[_ng
1content-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#006fff}  .mat-checkbox .mat-checkbox-frame{background:rgba(143,155,179,.16);border:1px solid #c5cee0;border-radius:3px}@media only screen and (max-width: 500px){.sucreset[_ngcontent-%COMP%]{margin:0!important}}.mar[_ngcontent-%COMP%]{margin:auto}.field-label2[_ngcontent-%COMP%]{display:block;text-align:left}.new-H[_ngcontent-%COMP%]{height:45px}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px!important;line-height:24px;color:#222b45;font-weight:normal}.new-H[_ngcontent-%COMP%]   .resetInput[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.res[_ngcontent-%COMP%]{width:132px!important}.btnRes[_ngcontent-%COMP%]{width:210px!important}.suc-res[_ngcontent-%COMP%]{width:93px!important}.redeemed-container[_ngcontent-%COMP%]{margin-top:13%}@media (max-width: 1224px){.redeemed-container[_ngcontent-%COMP%]{margin-top:6%}}@media only screen and (max-width: 500px){.redeemed-container[_ngcontent-%COMP%]{margin-top:2%!important}}']}),t})(),ED=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[],imports:[[nD,pN]]}),t})();i.B6R(lD,[F,U,R,CD,PD,wD,TD,Z],[]);let AD=(()=>{class t{constructor(){this.profileNavigation=[{url:["/profile"],text:"Profile"},{url:["/profile/password"],text:"Password"},{url:["/profile/certificates"],text:"Certificates"},{url:["/profile/notifications"],text:"Notifications"},{url:["/profile/billing"],text:"Billing"},{url:["/profile/orders"],text:"Order History"}]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-profile"]],decls:5,vars:1,consts:[[1,"page-container"],[1,"page-wrap"],[3,"navigation"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i._UZ(2,"sidebar-navigation",2),i.TgZ(3,"article"),i._UZ(4,"router-outlet"),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.xp6(2),i.Q6J("navigation",e.profileNavigation))},directives:[tD,zO],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex:1 0 auto;margin-bottom:100px}@media (max-width: 1224px){[_nghost-%COMP%]{margin-bottom:300px}}@media (max-width: 768px){[_nghost-%COMP%]{margin-bottom:200px}}.avatar[_ngcontent-%COMP%]{max-width:130px;margin-bottom:40px}auth-user-form[_ngcontent-%COMP%]{width:500px}.page-container[_ngcontent-%COMP%]{display:block;width:100%;margin:0;padding:0;margin-bottom:-50%!important}@media (max-width: 1224px){.page-container[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.page-wrap[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:row;justify-content:center}@media (max-width: 1224px){.page-wrap[_ngcontent-%COMP%]{flex-direction:row}}@media (max-width: 600px){.page-wrap[_ngcontent-%COMP%]{flex-direction:column}}sidebar-navigation[_ngcontent-%COMP%]{display:block;margin-bottom:20px;background-color:#edf1f7;padding:0;max-width:286px!important}@media (max-width: 1224px){sidebar-navigation[_ngcontent-%COMP%]{max-width:175px!important}}@media (max-width: 600px){sidebar-navigation[_ngcontent-%COMP%]{max-width:100%!important;width:auto!important;margin:16px 40px 100px;border-radius:8px}}.profile-form[_ngcontent-%COMP%]{align-items:center!important}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin:10%;min-height:1200px}@media (max-width: 1224px){article[_ngcontent-%COMP%]{margin:5%}}@media (max-width: 768px){article[_ngcontent-%COMP%]{margin:3%}}@media (max-width: 600px){article[_ngcontent-%COMP%]{margin:0%!important}}"]}),t})(),ID=(()=>{class t{constructor(t,e){this.auth=t,this.router=e}canActivate(t,e){return this.auth.user$.pipe((0,Ut.U)(t=>!!t),(0,SC.b)(t=>{t||(console.log("access denied"),this.router.navigate(["/signin"]))}))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(eT),i.LFG(FO))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),RD=(()=>{class t{constructor(t,e,n,i,o){this.document=t,this.auth=e,this.router=n,this.appState=i,this.afAuth=o}canActivate(t,e){return QC([this.auth.authUser,this.afAuth.authState]).pipe((0,Ut.U)(([t,e])=>({emailVerified:null==t?void 0:t.emailVerified,loggedIn:!!e})),(0,It.zg)(({emailVerified:e,loggedIn:n})=>{if(n){this.appState.loading=!0;const n=t.queryParams;if("true"===n.admin_dashboard?this.setLocalStorageItem("admin_dashboard","true"):"true"===n.bursary_internal_dashboard?this.setLocalStorageItem("bursary_internal_dashboard","true"):"true"===n.bursary_external_dashboard&&this.setLocalStorageItem("bursary_external_dashboard","true"),n.product_id&&n.th__c&&n.th__ug){const t={product_id:decodeURIComponent(n.product_id),group_token:decodeURIComponent(n.th__ug),coupon_code:decodeURIComponent(n.th__c),redeemed:!1};return e?(console.log("IS LOGGED IN GUARD: Navigate to school"),this.handleValidCoupon(t)):(console.log("IS LOGGED IN GUARD: Email not verified"),this.handleUnverifiedEmail(t))}return n.custom_auth&&n.redirect_url?this.handleCustomAuth(n.redirect_url):n.checkout?this.navigateToSchool({checkout:!0,product_id:n.productId,price_id:n.priceId}):this.navigateToSchool()}return console.log("IS LOGGED IN GUARD: RETURN TRUE"),this.appState.loading=!1,(0,Et.of)(!0)}))}setLocalStorageItem(t,e){localStorage.setItem(t,e)}handleUnverifiedEmail(t){return this.auth.addCoupon(t).pipe(Te(()=>this.router.navigate(["/auth/verify"])),(0,Ut.U)(()=>!1))}handleValidCoupon(t){return this.auth.addCoupon(t).pipe(Te(()=>this.navigateToSchool()),(0,Ut.U)(()=>!1))}handleCustomAuth(t){return this.auth.getAuthTokenFromServer(t).pipe((0,SC.b)(({redirectUri:t})=>window.location.href=t),(0,Ut.U)(()=>!1))}navigateToSchool(t){return t?this.auth.signEnroll(t.product_id,t.price_id).pipe((0,SC.b)(({redirect_uri:t})=>this.document.location.href=t),(0,Ut.U)(()=>!1)):this.auth.signinSchool().pipe((0,SC.b)(t=>{this.document.location.href=t.redirect_uri}),(0,Ut.U)(()=>!1))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s),i.LFG(eT),i.LFG(FO),i.LFG(BC),i.LFG(an))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ND=(()=>{class t{constructor(t,e,n){this.auth=t,this.router=e,this._afAuth=n}canActivate(t,e){return this._afAuth.authState.pipe((0,Ut.U)(t=>t.emailVerified),(0,SC.b)(t=>{const e=!t;console.log({emailNotVerified:e}),e&&this.router.navigate(["/auth/verify"])}))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(eT),i.LFG(FO),i.LFG(an))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function LD(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",4),i._UZ(1,"mat-icon",5),i.TgZ(2,"p"),i._uU(3,"You are about to permanently delete your account. If you delete your account, you will permanently lose access. Are you sure you want to do this?"),i.qZA(),i.TgZ(4,"div",6),i.TgZ(5,"button",7),i.NdJ("
1click",function(){return i.CHM(t),i.oxw().deleteAccount()}),i._uU(6,"Yes, delete"),i.qZA(),i.TgZ(7,"button",8),i.NdJ("click",function(){return i.CHM(t),i.oxw().dialogRef.close()}),i._uU(8,"No, don't delete"),i.qZA(),i.qZA(),i.qZA()}}function DD(t,e){1&t&&(i.TgZ(0,"div",4),i.TgZ(1,"h3"),i._uU(2,"Delete Account"),i.qZA(),i.TgZ(3,"p",9),i._uU(4,"We are processing your request, please wait..."),i.qZA(),i.qZA())}function FD(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",4),i.TgZ(1,"h3"),i._uU(2,"Goodbye!"),i.qZA(),i.TgZ(3,"p"),i._uU(4,"Your account has been deleted."),i.qZA(),i.TgZ(5,"p"),i._uU(6,"If you did not mean to do this you can reactivate your account in the next 7 days by clicking the link in the email which has been sent to you."),i.qZA(),i.TgZ(7,"div",6),i.TgZ(8,"button",8),i.NdJ("click",function(){return i.CHM(t),i.oxw().goodBye()}),i._uU(9,"Ok"),i.qZA(),i.qZA(),i.qZA()}}let UD=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this.router=e,this._auth=n,this.dialogState="initial",t.disableClose=!0}ngOnInit(){}close(){"goodbye"===this.dialogState?(this.dialogRef.close(),this.router.navigate(["auth","logout"])):this.dialogRef.close()}deleteAccount(){return this.dialogState="awaiting",this._auth.deleteAccount().pipe(RC(()=>this.dialogState="goodbye")).subscribe(t=>{console.log({res:t})},t=>console.error)}goodBye(){return this.dialogRef.close(),this.router.navigate(["auth","logout"])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(lI),i.Y36(FO),i.Y36(eT))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-profile-delete-account"]],decls:4,vars:1,consts:[[3,"ngSwitch"],["ngSwitchCase","initial"],["ngSwitchCase","awaiting"],["ngSwitchCase","goodbye"],[1,"delete-container"],["svgIcon","alert-triangle"],[1,"actions"],[1,"button-action",3,"click"],[1,"button-stroked",3,"click"],[1,"p-wait"]],template:function(t,e){1&t&&(i.ynx(0,0),i.YNc(1,LD,9,0,"ng-template",1),i.YNc(2,DD,5,0,"ng-template",2),i.YNc(3,FD,10,0,"ng-template",3),i.BQk()),2&t&&i.Q6J("ngSwitch",e.dialogState)},directives:[F,U,qS],styles:[".actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:30px;margin-bottom:20px}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{flex:1 0 auto;font-family:Open Sans;font-style:normal;font-weight:bold;font-size:14px;line-height:16px;text-align:center}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:first-child{margin-right:8px}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:last-child{margin-left:8px}.delete-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center}.delete-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:50.8295822144px;width:58.3652992249px;margin-top:11px}.delete-container[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:11px;font-family:Roboto;font-style:normal;color:#fff}.delete-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:30px;width:85%;font-family:Roboto;font-style:normal;font-weight:normal;font-size:22px;line-height:28px;color:#fff}@media (max-width: 600px){.delete-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:100%!important}}.delete-container[_ngcontent-%COMP%]   .p-wait[_ngcontent-%COMP%]{margin-bottom:35px}.delete-container[_ngcontent-%COMP%]   .button-action[_ngcontent-%COMP%]{width:112px;height:40px;background:#FF3D71;border-radius:8px}.delete-container[_ngcontent-%COMP%]   .button-stroked[_ngcontent-%COMP%]{width:148px;height:40px;background:#006FFF;border-radius:8px;border:none;color:#fff}"]}),t})();var ZD=n(8873);const qD=function(){return["/home"]};function VD(t,e){1&t&&(i.TgZ(0,"div",5),i.TgZ(1,"p"),i._uU(2," Your profile is being verified and can\u2019t currently be updated. Please check back later. "),i.qZA(),i.TgZ(3,"div",6),i.TgZ(4,"button",7),i._uU(5," Back to courses "),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.xp6(4),i.Q6J("routerLink",i.DdM(1,qD)))}function jD(t,e){1&t&&(i.TgZ(0,"div",8),i.TgZ(1,"div",9),i._UZ(2,"div",10),i.qZA(),i.qZA())}function zD(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"auth-user-form",11),i.NdJ("submitted",function(e){return i.CHM(t),i.oxw().submit(e)}),i.qZA(),i.TgZ(2,"div",12),i.TgZ(3,"div",13),i.TgZ(4,"button",14),i.NdJ("
1click",function(){return i.CHM(t),i.oxw().openDeleteAccountDialog()}),i._uU(5,"Delete account "),i.qZA(),i.qZA(),i.TgZ(6,"button",15),i.NdJ("click",function(){return i.CHM(t),i.oxw().authUserForm.submit()}),i._uU(7," Save changes "),i.qZA(),i.qZA(),i.BQk()}if(2&t){const t=i.oxw();i.xp6(1),i.Q6J("user",t.auth.user)("mode","update"),i.xp6(2),i.Q6J("matTooltipDisabled",!t.disableDeleteButton()),i.xp6(1),i.Q6J("disabled",t.disableDeleteButton()||!t.user.thinkific_uid),i.xp6(2),i.Q6J("disabled",!t.user.thinkific_uid||!(null==t.authUserForm||null==t.authUserForm.formGroup||!t.authUserForm.formGroup.invalid)||t.isFormChange)}}function GD(t,e){1&t&&(i.TgZ(0,"div",16),i.TgZ(1,"div",9),i._UZ(2,"div",10),i.qZA(),i.qZA())}let BD=(()=>{class t{constructor(t,e,n,i){this.auth=t,this.formBuilder=e,this.toastr=n,this.dialog=i,this.loadingProfileInfo=!1,this.isFormChange=!0,this.isDirty$=new GC(!1),this.destroy$=new ve.xQ}canDeactivate(){return!this.isDirty$.getValue()}ngOnInit(){this.user=this.auth.user}ngAfterViewInit(){this.authUserForm.formGroup.valueChanges.pipe(vn(),(0,SC.b)(()=>{this.isFormChange=!1,this.isDirty$.next(!0)}),EC(this.destroy$)).subscribe()}disableDeleteButton(){var t,e;return!!(null===(t=this.user)||void 0===t?void 0:t.account_recovered_at)&&ZD(new Date).diff(ZD(null===(e=this.user)||void 0===e?void 0:e.account_recovered_at.toDate()),"day",!0)<7}submit(t){delete t.email,this.loadingProfileInfo=!0,this.auth.updateUser(t).pipe(EC(this.destroy$)).subscribe(t=>{this.isDirty$.next(!1),this.loadingProfileInfo=!1,this.toastr.success("Profile successfully updated")},t=>{console.error("Update error: ",t&&t.message?t.message:t),this.toastr.error("An error occurred please try again later")})}openDeleteAccountDialog(){this.dialog.open(UD,{width:"584px",height:"auto"})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe(),this.isDirty$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(eT),i.Y36(kC),i.Y36(TT),i.Y36(_I))},t.\u0275cmp=i.Xpm({type:t,selectors:[["profile-info"]],viewQuery:function(t,e){if(1&t&&i.Gf(nN,5),2&t){let t;i.iGM(t=i.CRH())&&(e.authUserForm=t.first)}},decls:7,vars:3,consts:[["class","overlay b-overlay",4,"ngIf"],[1,"page-header"],["loadProfilePicture",""],[4,"ngIf","ngIfElse"],["loadProfileInfo",""],[1,"overlay","b-overlay"],[1,"actions","mt_16"],[1,"button-action",3,"routerLink"],[1,"rc","m-vertical_20"],[1,"rc","jc_c","ai_c"],[1,"imgloading"],[1,"profile-form",3,"user","mode","submitted"],[1,"button-container"],["matTooltip","You can only delete your account once every 7 days",1,"delete-button-wrapper",3,"matTooltipDisabled"],[1,"button-warning","delete-account-button",3,"disabled","click"],[1,"button-success",3,"disabled","click"],[1,"rc","m-vertical_20","loader"]],template:function(t,e){if(1&t&&(i.YNc(0,VD,6,2,"div",0),i.TgZ(1,"div",1),i.YNc(2,jD,3,0,"ng-template",null,2,i.W1O),i.qZA(),i.YNc(4,zD,8,5,"ng-container",3),i.YNc(5,GD,3,0,"ng-template",null,4,i.W1O)),2&t){const t=i.MAs(6);i.Q6J("ngIf",!e.user.thinkific_uid),i.xp6(4),i.Q6J("ngIf",!e.loadingProfileInfo)("ngIfElse",t)}},directives:[R,ZO,nN,GL],styles:["[_nghost-%COMP%]{display:block;width:100%;position:relative;margin-bottom:200px}@media (max-width: 1224px){[_nghost-%COMP%]{margin-bottom:300px}}profile-info[_ngcontent-%COMP%]{margin-bottom:60%}.overlay[_ngcontent-%COMP%]{position:absolute;top:-8px;right:-4px;bottom:-8px;left:-4px;background:#fff;background:transparent;backdrop-filter:blur(4px);display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:20px;padding:24px;z-index:999}.b-overlay[_ngcontent-%COMP%]{display:block!important;text-align:center;padding-top:15%}article[_ngcontent-%COMP%]{margin-bottom:35%}.page-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.page-header[_ngcontent-%COMP%]   .delete-button-wrapper[_ngcontent-%COMP%]{align-self:flex-start}.page-header[_ngcontent-%COMP%]   .delete-button-wrapper[_ngcontent-%COMP%]   .delete-account-button[_ngcontent-%COMP%]{height:29px}auth-user-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}@media (max-width: 600px){auth-user-form[_ngcontent-%COMP%]{align-items:center}}
1.profile-avatar[_ngcontent-%COMP%]{margin-bottom:40px}.profile-avatar[_ngcontent-%COMP%]   .avatar-box[_ngcontent-%COMP%]{width:130px;height:130px;overflow:hidden;border-radius:50%;position:relative}.profile-avatar[_ngcontent-%COMP%]   .avatar-box[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;width:auto}.profile-avatar[_ngcontent-%COMP%]   .avatar-box[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute}.loader[_ngcontent-%COMP%]{position:relative;left:30%}@media (max-width: 1224px){.loader[_ngcontent-%COMP%]{position:relative;left:15%}}@media (max-width: 600px){.loader[_ngcontent-%COMP%]{position:relative;left:0%;top:0}}.button-container[_ngcontent-%COMP%]{width:580px;display:flex;justify-content:flex-end;margin-top:80px}@media (min-width: 1700px){.button-container[_ngcontent-%COMP%]{margin-bottom:200px}}@media (min-width: 1900px){.button-container[_ngcontent-%COMP%]{margin-bottom:400px}}.button-container[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{background:#006FFF!important;border-radius:8px;height:48px;width:147px;padding:12px;font-family:Open Sans;font-style:normal;font-weight:bold;font-size:16px;line-height:20px;text-align:center;color:#fff;border:none}.button-container[_ngcontent-%COMP%]   .button-submit[_ngcontent-%COMP%]{background:#006fff;cursor:pointer;border-radius:8px;height:48px;width:147px;padding:12px;font-family:Open Sans;font-style:normal;font-weight:bold;font-size:16px;line-height:20px;text-align:center;color:#fff;border:none}.button-container[_ngcontent-%COMP%]   .delete-account-button[_ngcontent-%COMP%]{margin-right:24px;height:48px;width:161px;font-family:Open Sans;font-style:normal;font-weight:bold;font-size:16px;line-height:20px;text-align:center;color:#fff;box-shadow:none}@media (max-width: 1224px){.button-container[_ngcontent-%COMP%]   .delete-account-button[_ngcontent-%COMP%]{height:40px;width:130px;padding:10px;font-size:14px;line-height:16px}}.button-container[_ngcontent-%COMP%]   .button-warning[_ngcontent-%COMP%]:hover{background:#FF3D71!important}.button-container[_ngcontent-%COMP%]   .button-submit[_ngcontent-%COMP%]:disabled{cursor:not-allowed}@media (max-width: 1224px){.button-container[_ngcontent-%COMP%]{width:416px;display:flex}.button-container[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:40px;width:130px;padding:10px;font-size:14px;line-height:16px}.button-container[_ngcontent-%COMP%]   .button-submit[_ngcontent-%COMP%]{height:40px;width:130px;padding:10px;font-size:14px;line-height:16px}}@media (max-width: 600px){.button-container[_ngcontent-%COMP%]{width:334px;display:flex;justify-content:center;margin:80px auto 40px!important}.button-container[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{height:40px;width:130px;padding:10px;font-size:14px;line-height:16px}}"]}),t})();const HD=["formDirective"],YD=function(){return["/home"]};function QD(t,e){1&t&&(i.TgZ(0,"div",3),i.TgZ(1,"p"),i._uU(2,"Your password cannot be updated at this time."),i.qZA(),i.TgZ(3,"p"),i._uU(4,"Please check back later..."),i.qZA(),i.TgZ(5,"div",4),i.TgZ(6,"button",5),i._uU(7," Back to courses "),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.xp6(6),i.Q6J("routerLink",i.DdM(1,YD)))}function JD(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",21),i._uU(2," Please enter your current password "),i.BQk())}function $D(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i.YNc(1,JD,3,0,"ng-container",14),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngIf",t.isEmptyControl(t.old_password))}}function WD(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",21),i._uU(2," Please enter a new password "),i.BQk())}function KD(t,e){1&t&&(i._UZ(0,"mat-icon",21),i._uU(1," Password must contain at least eight characters "))}function XD(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i.YNc(1,WD,3,0,"ng-container",1),i.YNc(2,KD,2,0,"ng-template",null,22,i.W1O),i.qZA()),2&t){const t=i.MAs(3),e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.isEmptyControl(e.password))("ngIfElse",t)}}function tF(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",21),i._uU(2," Please confirm new password "),i.BQk())}function eF(t,e){1&t&&(i.ynx(0),i._UZ(1,"mat-icon",21),i._uU(2," Password does not match "),i.BQk())}function nF(t,e){if(1&t&&i.YNc(0,eF,3,0,"ng-container",14),2&t){const t=i.oxw(3);i.Q6J("ngIf",!t.passwordDoesMatch)}}function iF(t,e){if(1&t&&(i.TgZ(0,"mat-error"),i.YNc(1,tF,3,0,"ng-container",1),i.YNc(2,nF,1,1,"ng-template",null,22,i.W1O),i.qZA()),2&t){const t=i.MAs(3),e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.isEmptyControl(e.passwordConfirm))("ngIfElse",t)}}function oF(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"form",6),i.NdJ("ngSubmit",function(){i.CHM(t);const e=i.oxw();return e.submit(e.formGroup.value)}),i.TgZ(2,"div",7),i.TgZ(3,"div",8),i.TgZ(4,"span"),i._uU(5,"Current Password"),i.qZA(),i.qZA(),i.TgZ(6,"mat-form-field",9),i._UZ(7,"input",10),i.TgZ(8,"span",11),i.NdJ("
1click",function(){i.CHM(t);const e=i.oxw();return e.hides=!e.hides}),i._UZ(9,"mat-icon",12),i.qZA(),i.qZA(),i.TgZ(10,"div",13),i.YNc(11,$D,2,1,"mat-error",14),i.qZA(),i.qZA(),i.TgZ(12,"div",15),i.TgZ(13,"div",8),i.TgZ(14,"span"),i._uU(15,"New Password"),i.qZA(),i.qZA(),i.TgZ(16,"mat-form-field",9),i._UZ(17,"input",16),i.TgZ(18,"span",11),i.NdJ("click",function(){i.CHM(t);const e=i.oxw();return e.hide=!e.hide}),i._UZ(19,"mat-icon",12),i.qZA(),i.qZA(),i.TgZ(20,"div",13),i.YNc(21,XD,4,2,"mat-error",14),i.qZA(),i.qZA(),i.TgZ(22,"div",17),i.TgZ(23,"div",8),i.TgZ(24,"span"),i._uU(25,"Confirm New Password"),i.qZA(),i.qZA(),i.TgZ(26,"mat-form-field",9),i._UZ(27,"input",18),i.TgZ(28,"span",11),i.NdJ("click",function(){i.CHM(t);const e=i.oxw();return e.hidec=!e.hidec}),i._UZ(29,"mat-icon",12),i.qZA(),i.qZA(),i.TgZ(30,"div",13),i.YNc(31,iF,4,2,"mat-error",14),i.qZA(),i.qZA(),i.qZA(),i.TgZ(32,"div",19),i.TgZ(33,"button",20),i._uU(34," Change my password "),i.qZA(),i.qZA(),i.BQk()}if(2&t){const t=i.oxw();i.xp6(1),i.Q6J("formGroup",t.formGroup),i.xp6(6),i.Q6J("type",t.hides?"password":"text"),i.xp6(1),i.uIk("aria-pressed",t.hide),i.xp6(1),i.s9C("svgIcon",t.hides?"lockEye":"openEye"),i.xp6(2),i.Q6J("ngIf",t.old_password.invalid&&(t.old_password.dirty||t.old_password.touched)),i.xp6(6),i.Q6J("type",t.hide?"password":"text"),i.xp6(1),i.uIk("aria-pressed",t.hide),i.xp6(1),i.s9C("svgIcon",t.hide?"lockEye":"openEye"),i.xp6(2),i.Q6J("ngIf",t.password.invalid&&(t.password.dirty||t.password.touched)),i.xp6(6),i.Q6J("type",t.hidec?"password":"text"),i.xp6(1),i.uIk("aria-pressed",t.hide),i.xp6(1),i.s9C("svgIcon",t.hidec?"lockEye":"openEye"),i.xp6(2),i.Q6J("ngIf",t.passwordConfirm.dirty||t.passwordConfirm.touched),i.xp6(2),i.Q6J("disabled",!t.user.thinkific_uid)("disabled",t.isFormInvalid())}}function rF(t,e){1&t&&(i.TgZ(0,"div",23),i._UZ(1,"div",24),i.qZA())}const sF=(t,e)=>n=>{const i=n.get(t),o=n.get(e);return(null==i?void 0:i.value)&&(null==o?void 0:o.value)&&i.value!==o.value?{match:!0}:null},aF=[{path:"",pathMatch:"full",redirectTo:"signin"},{path:"signin",component:uA,canActivate:[RD]},{path:"signup",component:TN,canActivate:[RD]},{path:"reset-password",component:VN,canActivate:[RD]},{path:"auth/logout",component:jN},{path:"auth/verify",component:bL,canActivate:[ID]},{path:"auth/action",component:lD},{path:"successful-reset-password",component:SD,canActivate:[RD]},{path:"profile",component:AD,canActivate:[ID,ND],children:[{path:"",component:BD,canDeactivate:[(()=>{class t{canDeactivate(t,e,n,i){return!!t.canDeactivate()||confirm("Changes have been made and not saved, are you sure you want to leave?")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()],pathMatch:"full"},{path:"password",component:(()=>{class t{constructor(t,e,n){this.auth=t,this.formBuilder=e,this.toastr=n,this.loading=!1,this.hide=!0,this.hidec=!0,this.hides=!0,this.formGroup=this.initFormGroup(),this.user=this.auth.user}get old_password(){return this.formGroup.get("old_password")}get password(){return this.formGroup.get("password")}get passwordConfirm(){return this.formGroup.get("confirm_password")}get passwordError(){return this.auth.getPasswordValidationError(this.password)}get passwordDoesMatch(){var t;return!(null===(t=this.formGroup.errors)||void 0===t?void 0:t.match)}initFormGroup(){return this.formBuilder.group({old_password:[null,_v.required],password:[null,[_v.required,_v.minLength(8)]],confirm_password:[null,_v.required]},{validators:sF("password","confirm_password")})}submit(t){var e;(null===(e=this.formGroup.errors)||void 0===e?void 0:e.match)?this.toastr.error("Please check your new password and confirmation password match"):t.old_password!==t.confirm_password?(this.loading=!0,this.auth.reauthenticateWithCredential(t.old_password).pipe(Te(()=>this.auth.updateUserPassword(t.confirm_password)),qe(1),Te(()=>this.auth.reauthenticateWithCredential(t.confirm_password)),RC(()=>this.loading=!1)).subscribe(()=>{this.toastr.success("Your password has been successfully updated"),this.resetForm()},t=>{switch(console.log(t),t.code){case"auth/wrong-password":this.toastr.error("Incorrect current password entered. Please enter the account's most recent password");break;case"auth/too-many-requests":this.toastr.error("Too many attempts to change the password. Please try again later");break;default:this.toastr.error(jC)}})):this.toastr.error("Current password and new password is same! Please provide a different password")}resetForm(){this.formGroup.reset(),Object.keys(this.formGroup.controls).forEac
1h(t=>this.formGroup.get(t).setErrors(null))}isEmptyControl(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}isFormInvalid(){var t;return!this.formGroup||(null===(t=this.formGroup)||void 0===t?void 0:t.invalid)}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(eT),i.Y36(kC),i.Y36(TT))},t.\u0275cmp=i.Xpm({type:t,selectors:[["profile-password"]],viewQuery:function(t,e){if(1&t&&i.Gf(HD,5),2&t){let t;i.iGM(t=i.CRH())&&(e.formDirectiveRef=t.first)}},decls:4,vars:3,consts:[["class","overlay",4,"ngIf"],[4,"ngIf","ngIfElse"],["load",""],[1,"overlay"],[1,"actions","mt_16"],[1,"button-action",3,"routerLink"],["id","ngForm",3,"formGroup","ngSubmit"],[1,"form-field","form-field--mb-sm"],[1,"field-label"],["appearance","outline",1,"ma-field"],["matInput","","formControlName","old_password",3,"type"],["form","#","matSuffix","",3,"click"],[3,"svgIcon"],[1,"field-hide"],[4,"ngIf"],[1,"form-field","form-field--mb-sm","cc"],["matInput","","formControlName","password","name","password",3,"type"],[1,"form-field","cc"],["matInput","","formControlName","confirm_password",3,"type"],[1,"button-container"],["form","ngForm","type","submit",1,"button-change",3,"disabled"],["matSuffix","","svgIcon","errorInfo"],["hasValueControl",""],[1,"rc","m-vertical_20","loader"],[1,"imgloading"]],template:function(t,e){if(1&t&&(i.YNc(0,QD,8,2,"div",0),i.YNc(1,oF,35,15,"ng-container",1),i.YNc(2,rF,2,0,"ng-template",null,2,i.W1O)),2&t){const t=i.MAs(3);i.Q6J("ngIf",!e.user.thinkific_uid),i.xp6(1),i.Q6J("ngIf",!e.loading)("ngIfElse",t)}},directives:[R,ZO,yC,qv,xC,wE,UE,hv,Zv,OC,yE,qS,lE],styles:["[_nghost-%COMP%]{display:block;width:100%;position:relative}@media (max-width: 1224px){[_nghost-%COMP%]{margin-bottom:300px}}@media (max-width: 600px){[_nghost-%COMP%]{margin-bottom:100px}}.overlay[_ngcontent-%COMP%]{position:absolute;top:-8px;right:-4px;bottom:-8px;left:-4px;background:#fff;background:transparent;backdrop-filter:blur(4px);display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:20px;padding:24px;z-index:999}.b-overlay[_ngcontent-%COMP%]{display:block!important;text-align:center;padding-top:15%}form[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media (max-width: 600px){form[_ngcontent-%COMP%]{align-items:center}}mat-label[_ngcontent-%COMP%]{background:white;padding-right:4px}  .ma-field .mat-form-field-wrapper{box-shadow:none}.form-field[_ngcontent-%COMP%]{margin-bottom:24px;display:flex;align-items:flex-start;flex-direction:column}.form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{height:40px;width:416px;border-radius:4px}.form-field--mb-sm[_ngcontent-%COMP%]{margin-bottom:30px}.form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block}.form-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px;line-height:24px;color:#222b45;font-family:Roboto;font-style:normal;font-weight:normal}.form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;font-weight:500;font-size:12px;line-height:16px;padding-top:8px}.form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:8px;color:#fe4365}.form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;width:14.67px;height:12.67px}.form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{bottom:0px;height:12.67px}.form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{height:186.2852783203px;width:199px;background:#ffffff;border:.9px solid #e6ebf7;box-shadow:0 8px 14px #4367f312;border-radius:1.8px;position:absolute;z-index:2;margin-left:47%;font-family:Roboto;font-style:normal;font-size:12px;line-height:14px;display:flex;flex-direction:column}.form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   .hed[_ngcontent-%COMP%]{font-weight:bold;opacity:1}.form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:normal;color:#003ac1;margin-top:7px;margin-left:20px;opacity:.3}.form-field[_ngcontent-%COMP%]   .field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:13px;height:13px;margin-right:10px;position:relative;top:2px}.form-field[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:580px;display:flex;flex-direction:row}.form-field[_ngcontent-%COMP%]   .pass-error[_ngcontent-%COMP%]   .msg-error[_ngcontent-%COMP%]{margin-left:8px}.form-field[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{margin:4px 0 2px}@media (max-width: 1224px){.form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{width:416px}}@media (max-width: 600px){.form-field[_ngcontent-%COMP%]   .ma-field[_ngcontent-%COMP%]{width:334px!important}}.mat-input-element[_ngcontent-%COMP%]{position:relative;bottom:4px}.button-container[_ngcontent-%COMP%]{width:416px;display:flex;justify-content:flex-end;margin-top:40px}.button-container[_ngcontent-%COMP%]   .button-change[_ngcontent-%COMP%]{background:#006fff;border-radius:8px;height:48px;width:210px;padding:12px;font-family:Open Sans;font-style:normal;font-weight:bold;font-size:16px;line-height:20px;text-align:center;color:#fff;border:none;cursor:pointer}.button-container[_ngcontent-%COMP%]   .button-change[_ngcontent-%COMP%]:disabled{cursor:not-allowed!important}@media (max-width: 1224px){.button-container[_ngcontent-%COMP%]{width:416px;display:flex}.button-container[_ngcontent-%COMP%]   .button-change[_ngcontent-%COMP%]{height:40px;width:185px;padding:10px;font-size:14px;line-height:16px}}@media (max-width: 600px){.button-container[_ngcontent-%COMP%]{width:334px;display:flex;justify-content:center;margin:40px auto!important}.button-container[_ngcontent-%COMP%]   .button-change[_ngcontent-%COMP%]{height:40px;width:185px;padding:10px;font-size:14px;line-height:16px}}@media only screen and (max-width: 1224px){.field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:29%!important}.pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:416px}}@media only screen and (max-width: 768px){.field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:39%}}.loader[_ngcontent-%COMP%]{position:relative;
1left:30%}@media (max-width: 1224px){.loader[_ngcontent-%COMP%]{position:relative;left:15%!important}}@media only screen and (max-width: 500px){.field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:35%!important}.pass-error[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{width:334px!important}.pass-error[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:40px!important}.loader[_ngcontent-%COMP%]{position:relative;left:0%!important;top:0!important}}@media only screen and (min-width: 1920px){.field-hide[_ngcontent-%COMP%]   .password-guide[_ngcontent-%COMP%]{margin-left:30%!important}}"]}),t})()},{path:"notifications",component:eD},{path:"billing",component:eD},{path:"orders",component:eD},{path:"certificates",component:eD}]},{path:"home",component:eD},{path:"collections",component:eD},{path:"dashboard",component:eD},{path:"f-docs",component:eD},{path:"f-docs-curriculum",component:eD},{path:"organisations",component:eD},{path:"blog",component:eD},{path:"terms",component:eD},{path:"privacy",component:eD},{path:"fellowship-programme",component:eD},{path:"all-opportunities",component:eD},{path:"medics-academy-ethics-policy",component:eD},{path:"medics-academy-list-of-standard-fees",component:eD},{path:"all-programmes",component:eD},{path:"hla",component:eD},{path:"masters-programmes",component:eD},{path:"short-courses",component:eD},{path:"educator-community",component:eD},{path:"global-internships",component:eD},{path:"about-us",component:eD},{path:"merchandise",component:eD},{path:"events",component:eD},{path:"facebook",component:eD},{path:"twitter",component:eD},{path:"youtube",component:eD},{path:"linkedIn",component:eD},{path:"instagram",component:eD},{path:"podcasts",component:eD},{path:"partners",component:eD},{path:"solutions-page",component:eD},{path:"sletter",component:eD},{path:"**",redirectTo:"",pathMatch:"full"}];let cF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[XO.forRoot(aF)],XO]}),t})(),uF=(()=>{class t{constructor(t){this.breakpointObserver=t,this.isSmallScreen$=t.observe("(max-width: 480px)").pipe((0,Ut.U)(t=>t.matches),De()),this.isMediumScreen$=t.observe(["(min-width: 481px) and (max-width: 1224px)"]).pipe((0,Ut.U)(t=>t.matches),De()),this.isLargeScreen$=t.observe("(min-width: 1225px)").pipe((0,Ut.U)(t=>t.matches),De()),this.state=QC([this.isSmallScreen$,this.isMediumScreen$,this.isLargeScreen$]).pipe((0,Ut.U)(([t,e,n])=>t?"sm":e?"md":n?"lg":void 0))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(LL))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const lF=function(){return["home"]};function hF(t,e){1&t&&i._UZ(0,"img",21),2&t&&i.Q6J("routerLink",i.DdM(1,lF))}function dF(t,e){if(1&t&&(i.ynx(0),i.YNc(1,hF,1,2,"img",20),i.ALo(2,"async"),i.BQk()),2&t){const t=i.oxw(),e=i.MAs(6);i.xp6(1),i.Q6J("ngIf",i.lcZ(2,2,t.auth.emailVerified))("ngIfElse",e)}}function pF(t,e){1&t&&(i.TgZ(0,"a",22),i._UZ(1,"img",23),i.qZA()),2&t&&i.Q6J("routerLink",i.DdM(1,lF))}function fF(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"a",22),i._UZ(2,"img",23),i.qZA(),i.TgZ(3,"div",24),i.TgZ(4,"span",25),i.NdJ("click",function(){i.CHM(t);const e=i.oxw();return e.isMenuOpen=!e.isMenuOpen}),i._UZ(5,"mat-icon",26),i.qZA(),i.qZA(),i.BQk()}2&t&&(i.xp6(1),i.Q6J("routerLink",i.DdM(1,lF)))}function gF(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",22),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("routerLink",t.url),i.xp6(1),i.Oqu(t.text)}}function mF(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",22),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("routerLink",t.url),i.xp6(1),i.Oqu(t.text)}}function _F(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",22),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("routerLink",t.url),i.xp6(1),i.Oqu(t.text)}}function yF(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",39),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("routerLink",t.url),i.xp6(1),i.Oqu(t.text)}}function bF(t,e){1&t&&(i.TgZ(0,"div"),i.TgZ(1,"li",40),i.TgZ(2,"a",41),i._uU(3,"Supporting Letter"),i.qZA(),i.qZA(),i.qZA())}function vF(t,e){if(1&t){const t=i.EpF();
1i.TgZ(0,"li",40),i.TgZ(1,"a",42),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).getRedirectPath()}),i._uU(2,"Supporting Letter"),i.qZA(),i.qZA()}}function CF(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",22),i._UZ(2,"img",43),i._uU(3),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("routerLink",t.url),i.xp6(1),i.s9C("src",t.Image,i.LSH),i.xp6(1),i.hij(" ",t.text,"")}}function xF(t,e){1&t&&(i.TgZ(0,"li",44),i.TgZ(1,"a",45),i._uU(2,"My Dashboard"),i.qZA(),i.qZA())}function wF(t,e){1&t&&(i.TgZ(0,"a",54),i._uU(1," My Account "),i.qZA())}function OF(t,e){if(1&t&&(i.TgZ(0,"a",57),i._uU(1),i.qZA()),2&t){const t=i.oxw().$implicit;i.Q6J("href",t.url,i.LSH),i.xp6(1),i.hij(" ",t.text," ")}}function PF(t,e){if(1&t&&(i.TgZ(0,"a",22),i._uU(1),i.qZA()),2&t){const t=i.oxw().$implicit;i.Q6J("routerLink",t.url),i.xp6(1),i.hij(" ",t.text," ")}}function MF(t,e){if(1&t&&(i.TgZ(0,"li"),i.YNc(1,OF,2,2,"a",55),i.YNc(2,PF,2,2,"a",56),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("ngIf",t.external_url),i.xp6(1),i.Q6J("ngIf",!t.external_url)}}function TF(t,e){if(1&t&&(i.TgZ(0,"div",46),i.TgZ(1,"div",47),i.TgZ(2,"span",48),i._uU(3),i.qZA(),i.TgZ(4,"div",49),i._UZ(5,"img",50),i.qZA(),i._UZ(6,"mat-icon",51),i.qZA(),i.TgZ(7,"div",52),i.YNc(8,wF,2,0,"a",53),i.ALo(9,"async"),i.YNc(10,MF,3,2,"li",7),i.qZA(),i.qZA()),2&t){const t=i.oxw(2);i.xp6(3),i.Oqu(t.auth.fullName),i.xp6(2),i.Q6J("src",t.auth.profilePictureUrl||t.auth.profileImage,i.LSH),i.xp6(3),i.Q6J("ngIf",i.lcZ(9,4,t.auth.checkThinkificId)&&!t.emailChanged),i.xp6(2),i.Q6J("ngForOf",t.allProfileList)}}const kF=function(){return{exact:!0}};function SF(t,e){1&t&&(i.TgZ(0,"ul",58),i.TgZ(1,"li"),i.TgZ(2,"a",59),i.TgZ(3,"button",60),i.TgZ(4,"span"),i._uU(5,"Sign up"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(6,"li"),i.TgZ(7,"a",61),i.TgZ(8,"button",62),i.TgZ(9,"span"),i._uU(10,"Sign in"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.xp6(7),i.Q6J("routerLinkActiveOptions",i.DdM(1,kF)))}function EF(t,e){if(1&t&&(i.ynx(0),i.TgZ(1,"ul",6),i.TgZ(2,"li",27),i.TgZ(3,"a",28),i._uU(4," Programmes "),i._UZ(5,"mat-icon",29),i.qZA(),i.TgZ(6,"div",30),i.TgZ(7,"ul",31),i.YNc(8,gF,3,2,"li",7),i.qZA(),i.qZA(),i.qZA(),i.TgZ(9,"li",27),i.TgZ(10,"a",32),i._uU(11,"Opportunities "),i._UZ(12,"mat-icon",29),i.qZA(),i.TgZ(13,"div",33),i.TgZ(14,"ul",31),i.YNc(15,mF,3,2,"li",7),i.qZA(),i.qZA(),i.qZA(),i.TgZ(16,"li",27),i.TgZ(17,"a",32),i._uU(18,"Work with Us "),i._UZ(19,"mat-icon",29),i.qZA(),i.TgZ(20,"div",33),i.TgZ(21,"ul",31),i.YNc(22,_F,3,2,"li",7),i.qZA(),i.qZA(),i.qZA(),i.TgZ(23,"li",27),i.TgZ(24,"a",32),i._uU(25,"Community "),i._UZ(26,"mat-icon",29),i.qZA(),i.TgZ(27,"div",34),i.TgZ(28,"ul",31),i.YNc(29,yF,3,2,"li",7),i.YNc(30,bF,4,0,"div",35),i.ALo(31,"async"),i.YNc(32,vF,3,0,"ng-template",null,36,i.W1O),i.YNc(34,CF,4,3,"li",7),i.qZA(),i.qZA(),i.qZA(),i.YNc(35,xF,3,0,"li",37),i.ALo(36,"async"),i.qZA(),i.YNc(37,TF,11,6,"div",38),i.ALo(38,"async"),i.YNc(39,SF,11,2,"ng-template",null,2,i.W1O),i.BQk()),2&t){const t=i.MAs(33),e=i.MAs(40),n=i.oxw();i.xp6(8),i.Q6J("ngForOf",n.allProgrammesList),i.xp6(7),i.Q6J("ngForOf",n.allOpportunitiesList),i.xp6(7),i.Q6J("ngForOf",n.allPartnersList),i.xp6(7),i.Q6J("ngForOf",n.allCommunityList),i.xp6(1),i.Q6J("ngIf",i.lcZ(31,10,n.auth.checkThinkificId))("ngIfElse",t),i.xp6(4),i.Q6J("ngForOf",n.allSocialList),i.xp6(1),i.Q6J("ngIf",i.lcZ(36,12,n.auth.checkThinkificId)&&!n.emailChanged),i.xp6(2),i.Q6J("ngIf",i.lcZ(38,14,n.auth.authenticated))("ngIfElse",e)}}function AF(t,e){1&t&&(i.TgZ(0,"a",82),i._uU(1," My Dashboard "),i.qZA())}function IF(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",83),i.NdJ("click",function(){i.CHM(t);const e=i.oxw(4);return e.isMenuOpen=!e.isMenuOpen}),i._uU(1," My Account "),i.qZA()}}function RF(t,e){if(1&t&&(i.TgZ(0,"a",84),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.Q6J("routerLink",t.url),i.xp6(1),i.hij(" ",t.text," ")}}function NF(t,e){if(1&t&&(i.TgZ(0,"div"),i.TgZ(1,"ul",78),i.TgZ(2,"li",27),i.YNc(3,AF,2,0,"a",79),i.ALo(4,"async"),i.YNc(5,IF,2,0,"a",80),i.ALo(6,"async"),i.YNc(7,RF,2,2,"a",81),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.oxw(3);i.xp6(3),i.Q6J("ngIf",i.lcZ(4,3,t.auth.checkThinkificId)&&!t.emailChanged),i.xp6(2),i.Q6J("ngIf",i.lcZ(6,5,t.auth.checkThinkificId)&&!t.emailChanged),i.xp6(2),i.Q6J("ngForOf",t.allMobileProfileList)}}function LF(t,e){if(1&t){const t=i.EpF();
1i.TgZ(0,"ul",85),i.TgZ(1,"li"),i.TgZ(2,"a",86),i.NdJ("click",function(){i.CHM(t);const e=i.oxw(3);return e.isMenuOpen=!e.isMenuOpen}),i.TgZ(3,"button",60),i.TgZ(4,"span"),i._uU(5,"Sign up"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(6,"li"),i.TgZ(7,"a",87),i.NdJ("click",function(){i.CHM(t);const e=i.oxw(3);return e.isMenuOpen=!e.isMenuOpen}),i.TgZ(8,"button",62),i.TgZ(9,"span"),i._uU(10,"Sign in"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()}2&t&&(i.xp6(7),i.Q6J("routerLinkActiveOptions",i.DdM(1,kF)))}function DF(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",22),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("routerLink",t.url),i.xp6(1),i.Oqu(t.text)}}function FF(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",22),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("routerLink",t.url),i.xp6(1),i.Oqu(t.text)}}function UF(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",22),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("routerLink",t.url),i.xp6(1),i.Oqu(t.text)}}function ZF(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",39),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("routerLink",t.url),i.xp6(1),i.Oqu(t.text)}}function qF(t,e){1&t&&(i.TgZ(0,"div"),i.TgZ(1,"li"),i.TgZ(2,"a",41),i._uU(3,"Supporting Letter"),i.qZA(),i.qZA(),i.qZA())}function VF(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"li"),i.TgZ(1,"a",88),i.NdJ("click",function(){i.CHM(t);const e=i.oxw(3);return e.isMenuOpen=!e.isMenuOpen}),i._uU(2,"Supporting Letter"),i.qZA(),i.qZA()}}function jF(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",22),i._UZ(2,"img",43),i._uU(3),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("routerLink",t.url),i.xp6(1),i.s9C("src",t.Image,i.LSH),i.xp6(1),i.hij(" ",t.text,"")}}function zF(t,e){1&t&&(i.TgZ(0,"li",27),i.TgZ(1,"a",89),i._uU(2,"Email Support"),i.qZA(),i.qZA())}function GF(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",64),i.TgZ(1,"div",65),i.TgZ(2,"div",66),i.TgZ(3,"a",67),i._UZ(4,"img",68),i.qZA(),i.qZA(),i.TgZ(5,"div",69),i.TgZ(6,"span",25),i.NdJ("click",function(){i.CHM(t);const e=i.oxw(2);return e.isMenuOpen=!e.isMenuOpen}),i._UZ(7,"mat-icon",70),i.qZA(),i.qZA(),i.qZA(),i.YNc(8,NF,8,7,"div",35),i.ALo(9,"async"),i.YNc(10,LF,11,2,"ng-template",null,2,i.W1O),i.TgZ(12,"ul",71),i.TgZ(13,"li",27),i.TgZ(14,"a",32),i._uU(15," Programmes "),i.qZA(),i.TgZ(16,"div",72),i.TgZ(17,"ul",31),i.YNc(18,DF,3,2,"li",7),i.qZA(),i.qZA(),i.qZA(),i.TgZ(19,"li",27),i.TgZ(20,"a",32),i._uU(21,"Opportunities "),i.qZA(),i.TgZ(22,"div",72),i.TgZ(23,"ul",31),i.YNc(24,FF,3,2,"li",7),i.qZA(),i.qZA(),i.qZA(),i.TgZ(25,"li",73),i.TgZ(26,"a",32),i._uU(27,"Work with Us"),i.qZA(),i.TgZ(28,"div",72),i.TgZ(29,"ul",31),i.YNc(30,UF,3,2,"li",7),i.qZA(),i.qZA(),i.qZA(),i.TgZ(31,"li",27),i.TgZ(32,"a",32),i._uU(33,"Community "),i.qZA(),i.TgZ(34,"div",72),i.TgZ(35,"ul",31),i.YNc(36,ZF,3,2,"li",7),i.YNc(37,qF,4,0,"div",35),i.ALo(38,"async"),i.YNc(39,VF,3,0,"ng-template",null,36,i.W1O),i._UZ(41,"div",74),i.TgZ(42,"div",75),i.YNc(43,jF,4,3,"li",7),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.YNc(44,zF,3,0,"li",76),i.ALo(45,"async"),i.qZA(),i.TgZ(46,"div",77),i.TgZ(47,"label"),i.TgZ(48,"small"),i._uU(49," \xa9 Copyright Vopulus 2021"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.MAs(11),e=i.MAs(40),n=i.oxw(2);i.xp6(8),i.Q6J("ngIf",i.lcZ(9,10,n.auth.authenticated))("ngIfElse",t),i.xp6(10),i.Q6J("ngForOf",n.allProgrammesList),i.xp6(6),i.Q6J("ngForOf",n.allOpportunitiesList),i.xp6(6),i.Q6J("ngForOf",n.allPartnersList),i.xp6(6),i.Q6J("ngForOf",n.allCommunityList),i.xp6(1),i.Q6J("ngIf",i.lcZ(38,12,n.auth.emailVerified))("ngIfElse",e),i.xp6(6),i.Q6J("ngForOf",n.allSocialList),i.xp6(1),i.Q6J("ngIf",i.lcZ(45,14,n.auth.authenticated))}}function BF(t,e){if(1&t&&(i.ynx(0),i.YNc(1,GF,50,16,"div",63),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngIf",t.isMenuOpen)}}function HF(t,e){1&t&&i._UZ(0,"screen-loading")}function YF(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",22),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("routerLink",t.url),i.xp6(1),i.Oqu(t.text)}}function QF(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",22),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("routerLink",t.url),i.xp6(1),i.Oqu(t.text)}}function JF(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",22),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("routerLink",t.url),i.xp6(1),i.Oqu(t.text)}}function $F(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",22),i._UZ(2,"img",90),i._uU(3),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("routerLink",t.url),i.xp6(1),i.s9C("src",t.Image,i.LSH),i.xp6(1),i.hij(" ",t.text,"")}}function WF(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",22),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("routerLink",t.url),i.xp6(1),i.Oqu(t.text)}}let KF=(()=>{class t{constructor(t,e,n,i,o){this.document=t,this.breakpointsService=e,this.auth=n,this.appState=i,this.router=o,this.allMobileList=[],this.allProfileList=[],this.allMobileProfileList=[],this.allFooterList=[],this.allSocialList=[],this.allPartnersList=[],this.allCommunityList=[],this.allProgrammesList=[],this.allOpportunitiesList=[],this.allFooterOpportunityList=[],this.allFooterCommunityList=[],this.allFooterSocialList=[],this.allFooterSupportList=[],this.profileList=[{text:"Email Support",url:"https://www.medics.academy/pages/contact-us",visibility:"all",external_url:!0},{text:"Sign Out",url:"/auth/logout",visibility:"auth",external_url:!1}],this.mobileProfileList=[{text:"Sign Out",url:"/auth/logout",visibility:"auth"}],this.navigationMobileList=[{text:"My Account",url:`${uP}/profile`,visibility:"verified"},{text:"Sign In",url:`${uP}`,visibility:"public"},{text:"Sign up",url:`${uP}/signup`,visibility:"public"},{text:"All Courses",url:["/collections"],visibility:"all"},{text:"Dashboard",url:["/dashboard"],visibility:"hasTID"},{text:"Organisations",url:["/organisations"],visibility:"all"},{text:"Blog",url:["/blog"],visibility:"all"},{text:"Support",url:"mailto:[email protected]",visibility:"all"},{text:"Sign Out",url:`${uP}/auth/logout`,visibility:"auth"}],this.footerNavigationList=[{text:"All Programmes",url:["/all-programmes"],visibility:"all"},{text:"HLA",url:["hla"],visibility:"all"},{text:"FIDocs ",url:["f-docs"],visibility:"all"},{text:"Masters Programmes",url:["masters-programmes"],visibility:"all"},{text:"Short Courses",url:["short-courses"],visibility:"all"}],this.footerOpportunityNavigationList=[{text:"All Opportunities",url:["all-opportunities"],visibility:"all"},{text:"Fellowship Programme",url:["fellowship-programme"],visibility:"all"},{text:"Educator Community",url:["educator-community"],visibility:"all"},{text:"Global Internships",url:["global-internships"],visibility:"all"}],this.footerCommunityNavigationList=[{text:"About us ",url:["about-us"],visibility:"all"},{text:"Merchandise",url:["merchandise"],visibility:"all"},{text:"Events",url:["events"],visibility:"all"},{text:"Blogs",url:["blog"],visibility:"all"}],this.footerSocialNavigationList=[{text:"Facebook",url:["facebook"],visibility:"all",Image:["/assets/svg/Facebook Icon.svg"]},{text:"Twitter",url:["twitter"],visibility:"all",Image:["/assets/svg/Twitter.svg"]},{text:"Youtube",url:["youtube"],visibility:"all",Image:["/assets/svg/Youtube Icon.svg"]},{text:"LinkedIn",url:["linkedIn"],visibility:"all",Image:["/assets/svg/Linkedin Icon.svg"]},{text:"Instagram",url:["instagram"],visibility:"all",Image:["/assets/svg/Instagram Icon.svg"]},{text:"Podcasts",url:["podcasts"],visibility:"all",Image:["/assets/svg/Podcast.svg"]}],this.footerSupportNavigationList=[{text:"Terms & Conditions",url:["terms"],visibility:"all"},{text:"Privacy Policy",url:["privacy"],visibility:"all"},{text:"Ethics",url:["medics-academy-ethics-policy"],visibility:"all"},{text:"List of Standard Fees",url:["medics-academy-list-of-standard-fees"],visibility:"all"}],this.navCommunityList=[{text:"About Us",url:["about-us"],visibility:"all"},{text:"Merchandise",url:["merchandise"],visibility:"all"},{text:"Events",url:["events"],visibility:"all"},{text:"Blog",url:["blog"],visibility:"all"}
1],this.navOpportunitiesList=[{text:"All Opportunities",url:["all-opportunities"],visibility:"all"},{text:"Fellowship Programme",url:["fellowship-programme"],visibility:"all"},{text:"Educator Community",url:["educator-community"],visibility:"all"},{text:"Global Internships",url:["global-internships"],visibility:"all"}],this.navProgrammesList=[{text:"All Programmes",url:["all-programmes"],visibility:"all"},{text:"HLA",url:["hla"],visibility:"all"},{text:"F|Docs",url:["f-docs"],visibility:"all"},{text:"Masters Programmes",url:["masters-programmes"],visibility:"all"},{text:"Short Courses",url:["short-courses"],visibility:"all"}],this.socialNavigationList=[{text:"Facebook",url:["facebook"],visibility:"all",Image:["/assets/svg/Facebook Icon.svg"]},{text:"Twitter",url:["twitter"],visibility:"all",Image:["/assets/svg/Twitter.svg"]},{text:"Youtube",url:["youtube"],visibility:"all",Image:["/assets/svg/Youtube Icon.svg"]},{text:"LinkedIn",url:["linkedIn"],visibility:"all",Image:["/assets/svg/Linkedin Icon.svg"]},{text:"Instagram",url:["instagram"],visibility:"all",Image:["/assets/svg/Instagram Icon.svg"]},{text:"Podcasts",url:["podcasts"],visibility:"all",Image:["/assets/svg/Podcast.svg"]}],this.partnersList=[{text:"Consultancy",url:["solutions-page"],visibility:"all"},{text:"Partners and Clients",url:["partners"],visibility:"all"}],this.destroy$=new ve.xQ,this.isMenuOpen=!1,this.emailChanged=!1,console.log=()=>{},this.localStorageEventListener=this.handleLocalStorageEvent.bind(this),window.addEventListener("storage",this.localStorageEventListener),this.emailChanged="true"===localStorage.getItem("emailChanged"),this.auth.authUser.pipe(EC(this.destroy$)).subscribe(t=>{this.allMobileList=this.getNavigationMenu(this.navigationMobileList,t),this.allProfileList=this.getNavigationMenu(this.profileList,t),this.allMobileProfileList=this.getNavigationMenu(this.mobileProfileList,t),this.allFooterList=this.getNavigationMenu(this.footerNavigationList,t),this.allFooterOpportunityList=this.getNavigationMenu(this.footerOpportunityNavigationList,t),this.allFooterCommunityList=this.getNavigationMenu(this.footerCommunityNavigationList,t),this.allFooterSocialList=this.getNavigationMenu(this.footerSocialNavigationList,t),this.allFooterSupportList=this.getNavigationMenu(this.footerSupportNavigationList,t),this.allSocialList=this.getNavigationMenu(this.socialNavigationList,t),this.allCommunityList=this.getNavigationMenu(this.navCommunityList,t),this.allPartnersList=this.getNavigationMenu(this.partnersList,t),this.allProgrammesList=this.getNavigationMenu(this.navProgrammesList,t),this.allOpportunitiesList=this.getNavigationMenu(this.navOpportunitiesList,t)})}handleLocalStorageEvent(t){"logged_out"===t.key&&"true"===t.newValue&&(console.log("LOGGED OUT"),this.router.navigate(["/signin"]).then(()=>{localStorage.removeItem("logged_out")}))}getNavigationMenu(t,e){return t.filter(e?e.emailVerified?t=>["all","auth","verified"].includes(t.visibility):t=>["all","auth"].includes(t.visibility):t=>["all","public"].includes(t.visibility))}getRedirectPath(){this.auth.authenticated?this.auth.logout().subscribe(()=>{this.document.location.href="/signup"}):this.document.location.href="/signup"}ngOnDestroy(){window.removeEventListener("storage",this.localStorageEventListener),this.destroy$.next(!0),this.destroy$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s),i.Y36(uF),i.Y36(eT),i.Y36(BC),i.Y36(FO))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-root"]],decls:62,vars:22,consts:[[1,"nav-spacer"],[4,"ngIf"],["notAuthenticated",""],[1,"new-SSO"],[1,"full-width"],[1,"column","programs"],[1,"navigation-list"],[4,"ngFor","ngForOf"],[1,"column","opportunities"],[1,"column","community"],[1,"column","social"],[1,"navigation-list","SocialLi"],[1,"column","support"],["href","https://www.medics.academy/pages/contact-us"],[1,"full-width","copy-write"],[1,"footer__copyright","desk","mob_order"],[1,"f_left","two"],[1,"text","text-muted"],[1,"f_right","one"],["src","/assets/svg/MA Logo.svg","alt","","loading","lazy",1,"logo","f_logo","img-responsive"],["src","/assets/us/ma-white.png","alt","","class","logo",3,"routerLink",4,"ngIf","ngIfElse"],["src","/assets/us/ma-white.png","alt","",1,"logo",3,"routerLink"],[3,"routerLink"],["src","/assets/us/ma-white.png","alt","",1,"logo"],[1,"navigation-list","navigation-list--right","new-right"],[1,"menu-button",3,"click"],["svgIcon","menu",1,"menu-icon"],[1,"dropdown","header__nav-item"],[1,"bot"],["svgIcon","arrow_drop_down",1,"dropIcon"],[1,"dropdown-content","m1"],[1,"nav-drop"],[1,"dropbtn","bot"],[1,"dropdown-content","m2"],["id","community",1,"dropdown-content","m3"],[4,"ngIf","ngIfElse"],["notAuthenticatedCom",""],["class","header__nav-item reset-mar",4,"ngIf"],["class","dropdown navigation-list navigation-list--right",4,"ngIf","ngIfElse"],[1,"com-li",3,"routerLink"],[1,"supLet"],["routerLink","/sletter","target","_self",1,"com-li"],["target","_self",1,"com-li",3,"click"],[1,"social-link",3,"src"],[1,"header__nav-item","reset-mar"],["routerLink","/dashboard","target","_self"],[1,"dropdown","navigation-list","navigation-list--right"],[1,"dropbtn","profile-drop","nv-profile"],[1,"profile-full-name"],[1,"avatar-circle","avatar-circle--sm"],["alt","",3,"src"],["svgIcon","arrow_drop_down"],[1,"dropdown-content","prof","m4"],["class","acc","routerLink","/profile",4,"ngIf"],["routerLink","/profile",1,"acc"],[3,"href",4,"ngIf"],[3,"routerLink",4,"ngIf"],[3,"href"],[1,"navigation-list","navigation-list--right","newMar"],["routerLink","/signup","routerLinkActive","active","queryParamsHandling","preserve"],["mat-flat-button","",1,"signUp"],["routerLink","/","routerLinkActive","active","queryParamsHandling","preserve",3,"routerLinkActiveOptions"],["mat-flat-button","",1,"signIn"],["class","mobile-menu",4,"ngIf"],[1,"mobile-menu"],[1,"mobile-nav"],[1,"logoDiv"],["href","https://www.medics.academy"],["src","/assets/us/ma-white.png","alt","",1,"mobileLogo"],[1,"navigation-list","navigation-list--right","close","new-right"],["svgIcon","menu_close"],[1,"mobile-list"],[1,"dropdown-content"],[1,"header__nav-item"],[1,"smseparator"],[1,"tabView"],["class","dropdown header__nav-item",4,"ngIf"],[1,"hiddenCopy"],[1,"mobileList"],["class","dropbtn bot-mob mob-pro","routerLink","/dashboard",4,"ngIf"],["class","dropbtn bot-mob mob-pro","routerLink","/profile",3,"click",4,"ngIf"],["class","dropbtn bot-mob mob-pro",3,"routerLink",4,"ngFor","ngForOf"],["routerLink","/dashboard",1,"dropbtn","bot-mob","mob-pro"],["routerLink","/profile",1,"dropbtn","bot-mob","mob-pro",3,"click"],[1,"dropbtn","bot-mob","mob-pro",3,"routerLink"],[1,"navigation-list","mobile-btn"],["routerLink","/signup","routerLinkActive","active","queryParamsHandling","preserve","target","_self",3,"click"],["routerLink","/","routerLinkActive","active","queryParamsHandling","preserve","target","_self",3,"routerLinkActiveOptions","click"],["routerLink","/signup","target","_self",1,"com-li",3,"click"],["href","https://www.medics.academy/pages/contact-us","target","_blank",1,"dropbtn","bot"],[1,"social",3,"src"]],template:function(t,e){1&t&&(i.TgZ(0,"header"),i.TgZ(1,"nav"),i.TgZ(2,"div",0),i.YNc(3,dF,3,4,"ng-container",1),i.ALo(4,"async"),i.YNc(5,pF,2,2,"ng-template",null,2,i.W1O),i.YNc(7,fF,6,2,"ng-container",1),i.ALo(8,"async"),i.ALo(9,"async"),i.TgZ(10,"div",3),i.YNc(11,EF,41,16,"ng-container",1),i.ALo(12,"async"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(13,"div"),i.YNc(14,BF,2,1,"ng-container",1),i.ALo(15,"async"),i.ALo(16,"async"),i.qZA(),i.qZA(),i.TgZ(17,"main"),i._UZ(18,"router-outlet"),i.qZA(),i.YNc(19,HF,1,0,"screen-loading",1),i.TgZ(20,"footer"),i.TgZ(21,"nav"),i.TgZ(22,"div",4),i.ynx(23),i.TgZ(24,"div",5),i.TgZ(25,"p"),i._uU(26,"Programmes"),i.qZA(),i.TgZ(27,"ul",6),i.YNc(28,YF,3,2,"li",7),i.qZA(),i.qZA(),i.BQk(),i.ynx(29),i.TgZ(30,"div",8),i.TgZ(31,"p"),i._uU(32,"Opportunities"),i.qZA(),i.TgZ(33,"ul",6),i.YNc(34,QF,3,2,"li",7),i.qZA(),i.qZA(),i.BQk(),i.ynx(35),i.TgZ(36,"div",9),i.TgZ(37,"p"),i._uU(38,"Community"),i.qZA(),i.TgZ(39,"ul",6),i.YNc(40,JF,3,2,"li",7),i.qZA(),i.qZA(),i.BQk(),i.ynx(41),i.TgZ(42,"div",10),i.TgZ(43,"ul",11),i.YNc(44,$F,4,3,"li",7),i.qZA(),i.qZA(),i.BQk(),i.ynx(45),i.TgZ(46,"div",12),i.TgZ(47,"p"),i._uU(48,"Support"),i.qZA(),i.TgZ(49,"ul",6),i.TgZ(50,"li"),i.TgZ(51,"a",13),i._uU(52,"Contact us"),i.qZA(),i.qZA(),i.YNc(53,WF,3,2,"li",7),i.qZA(),i.qZA(),i.BQk(),i.qZA(),i.qZA(),i.TgZ(54,"div",14),i.TgZ(55,"div",15),i.TgZ(56,"div",16),i.TgZ(57,"label"),i.TgZ(58,"small",17),i._uU(59," \xa9 Copyright Vopulus 2021"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(60,"div",18),i._UZ(61,"img",19),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.xp6(3),i.Q6J("ngIf",i.lcZ(4,10,e.breakpointsService.isLargeScreen$)),i.xp6(4),i.Q6J("ngIf",i.lcZ(8,12,e.breakpointsService.isSmallScreen$)||i.lcZ(9,14,e.breakpointsService.isMediumScreen$)),i.xp6(4),i.Q6J("ngIf",i.lcZ(12,16,e.breakpointsService.isLargeScreen$)),i.xp6(3),i.Q6J("ngIf",i.lcZ(15,18,e.breakpointsService.isSmallScreen$)||i.lcZ(16,20,e.breakpointsService.isMediumScreen$)),i.xp6(5),i.Q6J("ngIf",e.appState.loading),i.xp6(9),i.Q6J("ngForOf",e.allFooterList),i.xp6(6),i.Q6J("ngForOf",e.allFooterOpportunityList),i.xp6(6),i.Q6J("ngForOf",e.allFooterCommunityList),i.xp6(4),i.Q6J("ngForOf",e.allFooterSocialList),i.xp6(9),i.Q6J("ngForOf",e.allFooterSupportList))},directives:[R,zO,A,ZO,qO,qS,jO,IN,bI],pipes:[G],styles:['header[_ngcontent-%COMP%]{display:block;background:#003ac1}@media only screen and (max-width: 1224px){header[_ngcontent-%COMP%]{background:#003ac1}}header[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]{max-width:1200px;width:100%;margin:auto;display:flex;align-items:center;outline:none;height:58px}header[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   .nav-spacer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%}@media only screen and (max-width: 1224px){header[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   .nav-spacer[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px}}header[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   .nav-spacer[_ngcontent-%COMP%]   .new-SSO[_ngcontent-%COMP%]{display:flex}header[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{cursor:pointer;max-width:208px;max-height:44px}header[_ngcontent-%COMP%]   .mobile-menu[_ngcontent-%COMP%]{transition:background-color .2s ease,opacity .4s ease,visibility .4s ease,z-index .4s ease;position:fixed;top:0;width:100%;height:100%;background:#00c0ee;background:radial-gradient(563.46% 147.52% at -83.45% 144.11%,#00d9d5 0%,#02c8f0 19.8%,#003ac1 84.99%);z-index:302;overflow:auto;padding-bottom:100px;margin-bottom:100px}header[_ngcontent-%COMP%]   .mobile-menu[_ngcontent-%COMP%]   .mobileLogo[_ngcontent-%COMP%]{display:block;margin-top:30px;margin-left:30px;max-height:none;width:10rem;height:auto}@media only screen and (max-width: 500px){header[_ngcontent-%COMP%]   .mobile-menu[_ngcontent-%COMP%]   .mobileLogo[_ngcontent-%COMP%]{margin-left:0}}.mLogo[_ngcontent-%COMP%]{cursor:pointer;width:208px;height:44px}footer[_ngcontent-%COMP%]{line-height:50px;border-top:2px solid #666;height:100px}footer[_ngcontent-%COMP%]   .navigation-list[_ngcontent-%COMP%]{display:inline-flex;align-items:center}footer[_ngcontent-%COMP%]   .navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-right:8px}footer[_ngcontent-%COMP%]   .navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#666;font-size:.875em;text-decoration:none;padding:10px}footer[_ngcontent-%COMP%]   .mobile-menu[_ngcontent-%COMP%]{text-align:center;background-color:#003ac1;list-style-type:none;margin:0;padding:0}.full-width[_ngcontent-%COMP%]{width:100%;text-align:center}.logo[_ngcontent-%COMP%]{margin-right:calc(4px * 6)}.navigation-list[_ngcontent-%COMP%]{display:flex;align-items:center}.navigation-list--right[_ngcontent-%COMP%]{margin-left:25px}.navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .signUp[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff;font-family:Open Sans;font-style:normal;font-weight:bold;position:relative;bottom:2px}.navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .signIn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:bold;color:#565656;position:relative;bottom:2px}.navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{margin-right:0}.navigation-list[_ngcontent-%COMP%]     mat-icon svg{fill:#fefefe}.navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-right:20px}.navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fefefe;text-decoration:none;font-family:Roboto Slab;font-style:normal;font-weight:normal;font-size:14px;line-height:21px;letter-spacing:.5px}.navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:none}.navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{font-weight:bold}.navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .signUp[_ngcontent-%COMP%]{background:#00d68f;height:40px;width:87px;padding:10px;border-radius:8px;text-align:center;font-size:14px;line-height:16px}.navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .signUp[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff;font-family:Open Sans;font-style:normal;font-weight:bold}.navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .signIn[_ngcontent-%COMP%]{background:#edf1f7;height:40px;width:83px;border-radius:8px;padding:10px;text-align:center;font-size:14px;line-height:16px}.navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .signIn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:bold;color:#565656}.navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{margin-right:10px}.navigation-list[_ngcontent-%COMP%]   .button-navigation[_ngcontent-%COMP%]{background:#fefefe;padding:4px 12px;border-radius:20px}.navigation-list[_ngcontent-%COMP%]   .button-navigation[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#666}
1.profile-full-name[_ngcontent-%COMP%]{color:#fff;font-family:"Roboto Slab"!important;font-style:normal;font-weight:400;font-size:14px;line-height:21px;margin-right:8px}.navigation-link[_ngcontent-%COMP%]{text-decoration:none}.navigation-text[_ngcontent-%COMP%]{display:block;padding:3px 20px!important;height:100%;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap;background:#FEFEFE}.navigation-text[_ngcontent-%COMP%]:hover{background:#00D68F}  .profile-drop:first-child span{display:flex;align-items:center}screen-loading[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;bottom:0;align-items:center;display:flex;justify-content:center;background:rgba(0,58,193,.5)}.menu-button[_ngcontent-%COMP%]{margin-right:0;padding:6px 10px;background:transparent;border-radius:3px;line-height:1}.menu-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{fill:#666}footer[_ngcontent-%COMP%]{line-height:50px;border-top:2px solid #666;height:900px;background-color:#003ac1;overflow-x:hidden;overflow-y:hidden}@media only screen and (max-width: 500px){footer[_ngcontent-%COMP%]{padding-top:0;height:3000px}}footer[_ngcontent-%COMP%]   .section__divide[_ngcontent-%COMP%]{border-top:1px solid rgba(255,255,255,.5);opacity:.8;margin:52px 0 15px!important;margin-top:25px;margin-bottom:25px;background-color:transparent}footer[_ngcontent-%COMP%]   .footer__copyright[_ngcontent-%COMP%]{flex:0 0 100%;max-width:100%;display:flex;margin-top:3.5%;border-top:1px solid #fff!important}@media only screen and (max-width: 1224px){footer[_ngcontent-%COMP%]   .footer__copyright[_ngcontent-%COMP%]{border-top:1px!important}}footer[_ngcontent-%COMP%]   .desk[_ngcontent-%COMP%]{display:flex}footer[_ngcontent-%COMP%]   .f_left[_ngcontent-%COMP%]{width:50%;font-size:14px;padding-bottom:15px;padding-top:15px}footer[_ngcontent-%COMP%]   .f_right[_ngcontent-%COMP%]{width:50%;float:right;padding-top:25px;padding-bottom:16px}footer[_ngcontent-%COMP%]   .f_right[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{margin-top:0}footer[_ngcontent-%COMP%]   .f_logo[_ngcontent-%COMP%]{width:120px;float:right}footer[_ngcontent-%COMP%]   .social[_ngcontent-%COMP%]{position:relative;top:4px;margin-top:-2.7%}footer[_ngcontent-%COMP%]   .SocialLi[_ngcontent-%COMP%]{margin:0 0 10px;text-align:justify}footer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]{float:left;width:20%;padding-top:50%;padding-bottom:10%}@media only screen and (max-width: 500px){footer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]{width:100%!important;text-align:center!important;float:none}}footer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-decoration:none;font-family:"Roboto Slab"!important;font-style:normal;font-weight:700;font-size:20px;line-height:18.75px;color:#fff;text-align:left;padding-left:10px}@media only screen and (max-width: 500px){footer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-weight:700;color:#fff!important}}footer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;font-family:Roboto;font-style:normal;font-weight:400;font-size:16px;line-height:18.75px;color:#fff}footer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline!important}footer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;padding-left:0;margin-left:0}footer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:0 0 10px}footer[_ngcontent-%COMP%]   .navigation-list[_ngcontent-%COMP%]{display:list-item;margin-top:15%;text-align:left}footer[_ngcontent-%COMP%]   .navigation-list--right[_ngcontent-%COMP%]{margin-left:auto}footer[_ngcontent-%COMP%]   .navigation-list[_ngcontent-%COMP%]     mat-icon svg{fill:#fefefe}footer[_ngcontent-%COMP%]   .navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-right:8px;margin-bottom:-15px}footer[_ngcontent-%COMP%]   .navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff;font-size:.875em;text-decoration:none;padding:10px}footer[_ngcontent-%COMP%]   .navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}footer[_ngcontent-%COMP%]   .navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{font-weight:bold}footer[_ngcontent-%COMP%]   .navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{margin-right:0}footer[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]{max-width:1170px;width:100%;margin:auto;display:flex;align-items:center;outline:none;height:50px}footer[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   .nav-spacer[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding-right:15px;padding-left:15px}footer[_ngcontent-%COMP%]   .mobile-menu[_ngcontent-%COMP%]{text-align:center;list-style-type:none;margin:0;padding:0}footer[_ngcontent-%COMP%]   .mobile-menu[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:block;text-align:center;font-size:.938em}footer[_ngcontent-%COMP%]   .mobile-menu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;padding:10px 0;color:#000;text-decoration:none}footer[_ngcontent-%COMP%]   .mobile-menu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}.full-width[_ngcontent-%COMP%]{width:100%;text-align:left;margin-left:5%}.full-width[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{color:#fff;margin-left:5%}.copy-write[_ngcontent-%COMP%]{top:70%;position:relative;width:100%;margin-left:0;max-height:100px;overflow:hidden}.dropdown_header[_ngcontent-%COMP%]{float:left;overflow:hidden}.dropdown[_ngcontent-%COMP%]{height:50px;position:relative;top:12px}.dropdown_header[_ngcontent-%COMP%]   .dropbtn[_ngcontent-%COMP%]   .dropdown-content[_ngcontent-%COMP%]{border:none;outline:none;font-family:Roboto Slab;font-style:normal;font-weight:normal;font-size:16px;line-height:21px;letter-spacing:.03em;color:#fff}.dropdown-content[_ngcontent-%COMP%]{display:none;position:absolute;background:#003ac1;min-width:220px;box-shadow:0 8px 16px #0003;z-index:1;transition:.5s;border-radius:10px;top:45px;z-index:9999}.m1[_ngcontent-%COMP%]:after{margin-left:-30px}.m2[_ngcontent-%COMP%]:after{margin-left:-25px}.m3[_ngcontent-%COMP%]:after{margin-left:-34px}.m4[_ngcontent-%COMP%]:after{margin-left:28px}.dropdown-content[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{float:none;color:#fff;text-decoration:none;display:block;text-align:left;padding:12px 16px 12px 36px;font-family:Roboto Slab}.nav-drop[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:first-child   a[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px}.nav-drop[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child   a[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px}.supLet[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{border-radius:0!important}
1.prof[_ngcontent-%COMP%]{left:-70px}.prof[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-right:0!important}.prof[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:first-child:hover   a[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px}.prof[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child:hover   a[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px}.prof[_ngcontent-%COMP%]   .acc[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:14px;line-height:21px;letter-spacing:.5px}.prof[_ngcontent-%COMP%]   .acc[_ngcontent-%COMP%]:hover{border-top-left-radius:10px;border-top-right-radius:10px}.nav-drop[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{letter-spacing:.01em!important}.nav-drop[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-right:0!important}.nav-drop[_ngcontent-%COMP%]   .com-li[_ngcontent-%COMP%]{padding-left:40px}.dropdown-content[_ngcontent-%COMP%]:after{position:absolute;left:50%;top:-8px;width:0;height:0;content:"";border-left:20px solid transparent;border-right:20px solid transparent;border-bottom:20px solid #003ac1;z-index:-1}@media only screen and (max-width: 1224px){.dropdown-content[_ngcontent-%COMP%]:after{display:none}}.dropdown-content[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background:#00d68f}.dropdown-content[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active{background:#003ac1}.dropdown[_ngcontent-%COMP%]:hover   .dropdown-content[_ngcontent-%COMP%]{display:block}.social-link[_ngcontent-%COMP%]{display:inline-block;margin:0 7px 0 -27px;position:relative;top:4px}.dropIcon[_ngcontent-%COMP%]{width:24px;height:24px;position:relative;top:8px;left:-8px}.bot[_ngcontent-%COMP%]{position:relative;bottom:5px}.nv-profile[_ngcontent-%COMP%]{display:flex;flex-direction:row;position:relative;bottom:12px}@media only screen and (max-width: 1224px){.mobile-btn[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin:50px 250px 30px}.header__nav-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;color:#fff;text-align:center;cursor:default;padding:8px 16px;font-family:"Roboto Slab";font-weight:bold;font-size:18px;text-decoration:none}.dropdown-content[_ngcontent-%COMP%]{display:block!important;position:relative!important;top:0!important}.dropdown-content[_ngcontent-%COMP%]{background:transparent;box-shadow:none;margin-bottom:30px}.dropdown-content[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:300!important;font-size:16px!important;font-family:"Roboto"!important}ul.navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:40px}.header__nav-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active, .header__nav-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background-color:transparent;color:#fff}.header__nav-item.dropdown[_ngcontent-%COMP%]{top:0px;height:auto}.mobile-list[_ngcontent-%COMP%]{padding-bottom:80px}.bot[_ngcontent-%COMP%]{bottom:0px}.social-link[_ngcontent-%COMP%]{margin:0}.nav-drop[_ngcontent-%COMP%]   .com-li[_ngcontent-%COMP%]{padding-left:16px}.mob[_ngcontent-%COMP%]{text-decoration:none;margin-bottom:30px;margin-top:30px!important}.logoDiv[_ngcontent-%COMP%]{left:39%;position:relative}.hiddenCopy[_ngcontent-%COMP%]{display:block;text-align:center;margin-top:5%;margin-bottom:10%}.hiddenCopy[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{color:#fff;font-style:normal;font-weight:normal;font-size:12px}.mobile-nav[_ngcontent-%COMP%]{display:flex;align-content:flex-end}.mobileList[_ngcontent-%COMP%]{padding-top:30px;padding-bottom:10px}.bot-mob[_ngcontent-%COMP%]{bottom:0;padding:20px 16px!important}.mob-pro[_ngcontent-%COMP%]{padding-bottom:0!important}
1.smseparator[_ngcontent-%COMP%]{display:block;height:50px;width:100%}.tabView[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;position:relative;left:44%}}@media only screen and (max-width: 500px){.mobile-btn[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin:50px 0 30px}.header__nav-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-align:center;margin-left:0}.close[_ngcontent-%COMP%]{position:relative;top:-30px}.logoDiv[_ngcontent-%COMP%]{display:flex;justify-content:space-around;left:0!important;position:relative;top:50px}.mobile-nav[_ngcontent-%COMP%]{display:flex;flex-direction:column}.tabView[_ngcontent-%COMP%]{left:33%!important}}@media only screen and (max-width: 768px){.tabView[_ngcontent-%COMP%]{left:42%}.logoDiv[_ngcontent-%COMP%]{left:35%;position:relative}}@media only screen and (max-width: 630px){.logoDiv[_ngcontent-%COMP%]{left:28%;position:relative}}@media only screen and (max-width: 1224px){.column[_ngcontent-%COMP%]{width:100%!important}footer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-left:10px}.opportunities[_ngcontent-%COMP%]{order:1!important}.programs[_ngcontent-%COMP%]{order:2!important}.community[_ngcontent-%COMP%]{order:3!important}.social[_ngcontent-%COMP%]{order:4!important}.support[_ngcontent-%COMP%]{order:5!important}footer[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]{height:auto!important}footer[_ngcontent-%COMP%]{height:auto!important;overflow-y:auto;display:inline-table;width:100%!important}.full-width[_ngcontent-%COMP%]{display:-moz-flex;display:flex;-webkit-box-lines:multiple;-moz-box-lines:multiple;box-lines:multiple;flex-wrap:wrap;padding-right:0;padding-left:0;overflow:hidden}footer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]{padding-top:120px;padding-bottom:0;margin-right:10%}footer[_ngcontent-%COMP%]   .navigation-list[_ngcontent-%COMP%]{margin-top:25px;text-align:center}footer[_ngcontent-%COMP%]   .navigation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-right:0!important}footer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center}app-root[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]{min-height:900px}.footer__copyright[_ngcontent-%COMP%]{display:block!important;text-align:center;width:100%}.f_left[_ngcontent-%COMP%]{display:block;text-align:center;width:100%!important}.f_right[_ngcontent-%COMP%]{display:block;text-align:center;width:100%!important}footer[_ngcontent-%COMP%]   .f_logo[_ngcontent-%COMP%]{float:none;margin-right:3%!important}.full-width[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{margin-left:0!important;margin-right:3%!important}.copy-write[_ngcontent-%COMP%]{min-height:300px!important;overflow:hidden!important}.SocialLi[_ngcontent-%COMP%]{width:150px!important;margin:0 40%!important;text-align:left!important;padding-left:35px!important}.mob_order[_ngcontent-%COMP%]{display:flex!important;flex-flow:column}.one[_ngcontent-%COMP%]{order:1}.two[_ngcontent-%COMP%]{order:2}}@media only screen and (max-width: 768px){.SocialLi[_ngcontent-%COMP%]{margin:0 37%!important}}@media only screen and (max-width: 500px){footer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]{padding-top:120px;padding-bottom:0}footer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-left:10px}.SocialLi[_ngcontent-%COMP%]{margin:0 25%!important}.f_left[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{margin-right:0%!important}footer[_ngcontent-%COMP%]   .f_logo[_ngcontent-%COMP%]{float:none;margin-right:0%!important}}.newMar[_ngcontent-%COMP%]{margin-left:25px!important}.reset-mar[_ngcontent-%COMP%]{margin-left:15px!important}.new-right[_ngcontent-%COMP%]{margin-left:auto!important}']}),t})(),XF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[],imports:[[nD,XO]]}),t})(),tU=(()=>{class t{constructor(t,e,n){this.http=t,this.authService=e,this.router=n}getClientMessage(t){return navigator.onLine?t.message?t.message:t.toString():"No Internet Connection."}getClientStack(t){return console.log(t),t.stack||""}getServerMessage(t){return t.message}getServerStack(t){return"stack"}logError(t,e){return console.log("logError start"),this.postErrorToSlack(t,e)}postErrorToSlack(t,e){return this.http.post(cP+"/errors-log",{product:"sso",message:t,stack:e,uid:this.authService.user?this.authService.user.uid:null,location:this.router.url})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(re),i.LFG(eT),i.LFG(FO))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),eU=(()=>{class t extends i.qLn{constructor(t){super(),this.injector=t}handleError(t){const e=this.injector.get(tU);let n,i;return t instanceof ie?(n=e.getServerMessage(t),i=e.getServerStack(t)):(n=e.getClientMessage(t),i=e.getClientStack(t)),e.logError(n,i).subscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.zs3))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();
1class nU{constructor(t,e){this.count=t,this.source=e}call(t,e){return e.subscribe(new iU(t,this.count,this.source))}}class iU extends Nt.L{constructor(t,e,n){super(t),this.count=e,this.source=n}error(t){if(!this.isStopped){const{source:e,count:n}=this;if(0===n)return super.error(t);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}}}let oU=(()=>{class t{intercept(t,e){return e.handle(t).pipe(function(t=-1){return e=>e.lift(new nU(t,e))}(1),XC(t=>(console.log("server interceptor throw error"),(0,pP._)(t))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),rU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t,bootstrap:[KF]}),t.\u0275inj=i.cJS({providers:[BC,{provide:i.qLn,useClass:eU},{provide:ae,useClass:oU,multi:!0}],imports:[[St,ev,ye,AT.forRoot(),be.hO.initializeApp(hP),cn,d_,WM,ED,XF,nD,cF]]}),t})();{(0,i.G48)();const t=window.document.createElement("script");t.innerHTML="(function(h,o,t,j,a,r){\n h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};\n h._hjSettings={hjid:3191606,hjsv:6};\n a=o.getElementsByTagName('head')[0];\n r=o.createElement('script');r.async=1;\n r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;\n a.appendChild(r);\n })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');",window.document.body.appendChild(t)}Tt().bootstrapModule(rU).catch(t=>console.error(t))},7582:function(t,e,n){"use strict";n.d(e,{ZT:function(){return o},pi:function(){return r},mG:function(){return s},Jh:function(){return a},XA:function(){return c},CR:function(){return u},ev:function(){return l}});var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};function s(t,e,n,i){return new(n||(n=Promise))(function(o,r){function s(t){try{c(i.next(t))}catch(e){r(e)}}function a(t){try{c(i.throw(t))}catch(e){r(e)}}function c(t){t.done?o(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}c((i=i.apply(t,e||[])).next())})}function a(t,e){var n,i,o,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(r=0)),r;)try{if(n=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(!(o=(o=r.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){r=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(6===a[0]&&r.label<o[1]){r.label=o[1],o=a;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(a);break}o[2]&&r.ops.pop(),r.trys.pop();continue}a=e.call(t,r)}catch(c){a=[6,c],i=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function c(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function l(t,e,n){if(n||2===arguments.length)for(var i,o=0,r=e.length;o<r;o++)(i||!(o in e))&&(i||(i=Array.prototype.slice.call(e,0,o)),i[o]=e[o]);return t.concat(i||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError}},function(t){t(t.s=2001)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.