1!function(){function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function e(e){for(var i=1;i<arguments.length;i++){var o=null!=arguments[i]?arguments[i]:{};i%2?t(Object(o),!0).forEach(function(t){n(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function n(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){return r(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,a,s=[],c=!0,u=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(s.push(i.value),s.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||f(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t){if(Array.isArray(t))return t}function a(t,e,n,i){var o=s(P(1&i?t.prototype:t),e,n);return 2&i&&"function"==typeof o?function(t){return o.apply(n,t)}:o}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=c(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},s.apply(null,arguments)}function c(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=P(t)););return t}function u(t){return function(t){if(Array.isArray(t))return d(t)}(t)||l(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function h(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=f(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,r=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function f(t,e){if(t){if("string"==typeof t)return d(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,m(i.key),i)}}function g(t,e,n){return e&&p(t.prototype,e),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function m(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e,n){return e=P(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _(t)}(t,w()?Reflect.construct(e,n||[],P(t).constructor):e.apply(t,n))}function _(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}function C(t){var e="function"==typeof Map?new Map:void 0;return C=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return x(t,arguments,P(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),O(n,t)},C(t)}function x(t,e,n){if(w())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,e);var o=new(t.bind.apply(t,i));return n&&O(o,n.prototype),o}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(w=function(){return!!t})()}function O(t,e){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},O(t,e)}function P(t){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P(t)}(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 bn},tb:function(){return cu},AFp:function(){return iu},ip1:function(){return eu},CZH:function(){return nu},hGG:function(){return tl},z2F:function(){return Gu},sBO:function(){return tc},Sil:function(){return _u},_Vd:function(){return Os},EJc:function(){return hu},SBq:function(){return Ts},qLn:function(){return yo},vpe:function(){return Rc},pfw:function(){return Xc},L6J:function(){return tu},gxx:function(){return Ar},tBr:function(){return Bn},XFs:function(){return j},OlP:function(){return _n},zs3:function(){return Hr},ZZ4:function(){return Ys},aQg:function(){return Js},soG:function(){return lu},YKP:function(){return uc},v3s:function(){return Hu},h0i:function(){return cc},PXZ:function(){return Zu},R0b:function(){return xu},FiY:function(){return Hn},Lbi:function(){return su},g9A:function(){return au},n_E:function(){return Lc},Qsj:function(){return As},FYo:function(){return Es},JOm:function(){return Qn},Tiy:function(){return Rs},q3G:function(){return ho},tp0:function(){return Yn},EAV:function(){return Ju},Rgc:function(){return rc},dDg:function(){return Su},DyG:function(){return Cn},q4F:function(){return Ls},GfV:function(){return Ns},s_b:function(){return hc},ifc:function(){return H},eFA:function(){return qu},G48:function(){return Fu},Gpc:function(){return O},f3M:function(){return qn},X6Q:function(){return Du},_c5:function(){return $u},VLi:function(){return Au},c2e:function(){return uu},zSh:function(){return Rr},wAp:function(){return hs},vHH:function(){return k},EiD:function(){return uo},mCW:function(){return Yi},qzn:function(){return Di},JVY:function(){return Ui},pB0:function(){return Vi},eBb:function(){return qi},L6k:function(){return Zi},LAX:function(){return ji},cg1:function(){return cs},Tjo:function(){return Ku},kL8:function(){return us},yhl:function(){return Fi},dqk:function(){return W},sIi:function(){return na},CqO:function(){return Ca},QGY:function(){return _a},F4k:function(){return ba},RDi:function(){return Dt},AaK:function(){return p},z3N:function(){return Li}
1,qOj:function(){return Qr},TTD:function(){return Tt},_Bn:function(){return Cs},xp6:function(){return No},uIk:function(){return aa},Tol:function(){return ja},Gre:function(){return ns},ekj:function(){return qa},Suo:function(){return Yc},Xpm:function(){return st},lG2:function(){return gt},Yz7:function(){return A},cJS:function(){return I},oAB:function(){return ft},Yjl:function(){return mt},Y36:function(){return la},_UZ:function(){return ga},BQk:function(){return va},ynx:function(){return ma},qZA:function(){return pa},TgZ:function(){return da},EpF:function(){return ya},n5z:function(){return hn},Ikx:function(){return is},LFG:function(){return Zn},$8M:function(){return dn},NdJ:function(){return xa},CRH:function(){return Qc},kcU:function(){return Se},O4$:function(){return Te},oxw:function(){return ka},ALo:function(){return Ec},lcZ:function(){return Ac},Hsn:function(){return Ea},F$t:function(){return Sa},Q6J:function(){return ha},s9C:function(){return Aa},DdM:function(){return Pc},VKq:function(){return Mc},WLB:function(){return kc},iGM:function(){return Bc},MAs:function(){return ua},CHM:function(){return ee},oJD:function(){return fo},LSH:function(){return po},B6R:function(){return ct},kYT:function(){return dt},Udp:function(){return Za},WFA:function(){return wa},d8E:function(){return os},YNc:function(){return ca},W1O:function(){return $c},_uU:function(){return Xa},Oqu:function(){return ts},hij:function(){return es},Gf:function(){return Hc}});var o=n(9765),r=n(5319),s=n(7574),c=n(6682),l=n(8819);function f(t){for(var e in t)if(t[e]===f)return e;throw Error("Could not find renamed property on target object.")}function d(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function p(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(p).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function m(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var w=f({__forward_ref__:f});function O(t){return t.__forward_ref__=O,t.toString=function(){return p(this())},t}function P(t){return M(t)?t():t}function M(t){return"function"==typeof t&&t.hasOwnProperty(w)&&t.__forward_ref__===O}var k=function(t){function e(t,n){var i;return v(this,e),i=y(this,e,[function(t,e){return"".concat(t?"NG0".concat(t,": "):"").concat(e)}(t,n)]),i.code=t,i}return b(e,t),g(e)}(C(Error));function T(t){return"string"==typeof t?t:null==t?"":String(t)}function S(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(t)}function E(t,e){var n=e?" in ".concat(e):"";throw new k("201","No provider for ".concat(S(t)," found").concat(n))}function A(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function I(t){return{providers:t.providers||[],imports:t.imports||[]}}function R(t){return N(t,F)||N(t,Z)}function N(t,e){return t.hasOwnProperty(e)?t[e]:null}function L(t){return t&&(t.hasOwnProperty(U)||t.hasOwnProperty(q))?t[U]:null}var D,F=f({"\u0275prov":f}),U=f({"\u0275inj":f}),Z=f({ngInjectableDef:f}),q=f({ngInjectorDef:f}),j=((j=j||{})[j.Default=0]="Default",j[j.Host=1]="Host",j[j.Self=2]="Self",j[j.SkipSelf=4]="SkipSelf",j[j.Optional=8]="Optional",j);function V(t){var e=D;return D=t,e}function z(t,e,n){var i=R(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&j.Optional?null:void 0!==e?e:void E(p(t),"Injector")}function G(t){return{toString:t}.toString()}var B=((B=B||{})[B.OnPush=0]="OnPush",B[B.Default=1]="Default",B),H=((H=H||{})[H.Emulated=0]="Emulated",H[H.None=2]="None",H[H.ShadowDom=3]="ShadowDom",H),Y="undefined"!=typeof globalThis&&globalThis,Q="undefined"!=typeof window&&window,J="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,W=Y||"undefined"!=typeof global&&global||Q||J,K={},$=[],X=f({"\u0275cmp":f}),tt=f({"\u0275dir":f}),et=f({"\u0275pipe":f}),nt=f({"\u0275mod":f}),it=f({"\u0275loc":f}),ot=f({"\u0275fac":f}),rt=f({__NG_ELEMENT_ID__:f}),at=0;function st(t){return G(function(){var 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,input
1s:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===B.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||$,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||H.Emulated,id:"c",styles:t.styles||$,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,o=t.features,r=t.pipes;return n.id+=at++,n.inputs=pt(t.inputs,e),n.outputs=pt(t.outputs),o&&o.forEach(function(t){return t(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(ut)}:null,n.pipeDefs=r?function(){return("function"==typeof r?r():r).map(lt)}:null,n})}function ct(t,e,n){var i=t.\u0275cmp;i.directiveDefs=function(){return e.map(ut)},i.pipeDefs=function(){return n.map(lt)}}function ut(t){return vt(t)||function(t){return t[tt]||null}(t)}function lt(t){return function(t){return t[et]||null}(t)}var ht={};function ft(t){return G(function(){var e={type:t.type,bootstrap:t.bootstrap||$,declarations:t.declarations||$,imports:t.imports||$,exports:t.exports||$,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(ht[t.id]=t.type),e})}function dt(t,e){return G(function(){var n=yt(t,!0);n.declarations=e.declarations||$,n.imports=e.imports||$,n.exports=e.exports||$})}function pt(t,e){if(null==t)return K;var n={};for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),n[o]=i,e&&(e[o]=r)}return n}var gt=st;function mt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function vt(t){return t[X]||null}function yt(t,e){var n=t[nt]||null;if(!n&&!0===e)throw new Error("Type ".concat(p(t)," does not have '\u0275mod' property."));return n}function _t(t){return Array.isArray(t)&&"object"==typeof t[1]}function bt(t){return Array.isArray(t)&&!0===t[1]}function Ct(t){return 0!=(8&t.flags)}function xt(t){return 2==(2&t.flags)}function wt(t){return 1==(1&t.flags)}function Ot(t){return null!==t.template}function Pt(t){return 0!=(512&t[2])}function Mt(t,e){return t.hasOwnProperty(ot)?t[ot]:null}var kt=function(){return g(function t(e,n,i){v(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=i},[{key:"isFirstChange",value:function(){return this.firstChange}}])}();function Tt(){return St}function St(t){return t.type.prototype.ngOnChanges&&(t.setInput=At),Et}function Et(){var t=Rt(this),e=null==t?void 0:t.current;if(e){var n=t.previous;if(n===K)t.previous=e;else for(var i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}}function At(t,e,n,i){var o=Rt(t)||function(t,e){return t[It]=e}(t,{previous:K,current:null}),r=o.current||(o.current={}),a=o.previous,s=this.declaredInputs[n],c=a[s];r[s]=new kt(c&&c.currentValue,e,a===K),t[i]=e}Tt.ngInherit=!0;var It="__ngSimpleChanges__";function Rt(t){return t[It]||null}var Nt,Lt="http://www.w3.org/2000/svg";function Dt(t){Nt=t}function Ft(){return void 0!==Nt?Nt:"undefined"!=typeof document?document:void 0}function Ut(t){return!!t.listen}var Zt={createRenderer:function(t,e){return Ft()}};function qt(t){for(;Array.isArray(t);)t=t[0];return t}function jt(t,e){return qt(e[t])}function Vt(t,e){return qt(e[t.index])}function zt(t,e){return t.data[e]}function Gt(t,e){return t[e]}function Bt(t,e){var n=e[t];return _t(n)?n:n[0]}function Ht(t){return 4==(4&t[2])}function Yt(t){return 128==(128&t[2])}function Qt(t,e){return null==e?null:t[e]}function Jt(t){t[18]=0}function Wt(t,e){t[5]+=e;for(var n=t,i=t[3];null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}var Kt={lFrame:Ce(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function $t(){return Kt.bindingsEnabled}function Xt(){return Kt.lFrame.lView}function te(){return Kt.lFrame.tView}function ee(t){return Kt.lFrame.contextLView=t,t[8]}function ne(){for(var t=ie();null!==t&&64===t.type;)t=t.parent;return t}function ie(){return Kt.lFrame.currentTNode}function oe(t,e){var n=Kt.lFrame;n.currentTNode=t,n.isParent=e}function re(){return Kt.lFrame.isParent}function ae(){Kt.lFrame.isParent=!1}function se(){return Kt.isInCheckNoChangesMode}
vendor: 8,186 bytes, line 1
1function ce(t){Kt.isInCheckNoChangesMode=t}function ue(){var t=Kt.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function le(){return Kt.lFrame.bindingIndex++}function he(t){var e=Kt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function fe(t,e){var n=Kt.lFrame;n.bindingIndex=n.bindingRootIndex=t,de(e)}function de(t){Kt.lFrame.currentDirectiveIndex=t}function pe(t){var e=Kt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ge(){return Kt.lFrame.currentQueryIndex}function me(t){Kt.lFrame.currentQueryIndex=t}function ve(t){var e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ye(t,e,n){if(n&j.SkipSelf){for(var i=e,o=t;!(null!==(i=i.parent)||n&j.Host||(i=ve(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;e=i,t=o}var r=Kt.lFrame=be();return r.currentTNode=e,r.lView=t,!0}function _e(t){var e=be(),n=t[1];Kt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function be(){var t=Kt.lFrame,e=null===t?null:t.child;return null===e?Ce(t):e}function Ce(t){var 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 xe(){var t=Kt.lFrame;return Kt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var we=xe;function Oe(){var t=xe();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 Pe(){return Kt.lFrame.selectedIndex}function Me(t){Kt.lFrame.selectedIndex=t}function ke(){var t=Kt.lFrame;return zt(t.tView,t.selectedIndex)}function Te(){Kt.lFrame.currentNamespace=Lt}function Se(){Kt.lFrame.currentNamespace=null}function Ee(t,e){for(var n=e.directiveStart,i=e.directiveEnd;n<i;n++){var o=t.data[n].type.prototype,r=o.ngAfterContentInit,a=o.ngAfterContentChecked,s=o.ngAfterViewInit,c=o.ngAfterViewChecked,u=o.ngOnDestroy;r&&(t.contentHooks||(t.contentHooks=[])).push(-n,r),a&&((t.contentHooks||(t.contentHooks=[])).push(n,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,a)),s&&(t.viewHooks||(t.viewHooks=[])).push(-n,s),c&&((t.viewHooks||(t.viewHooks=[])).push(n,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,c)),null!=u&&(t.destroyHooks||(t.destroyHooks=[])).push(n,u)}}function Ae(t,e,n){Ne(t,e,3,n)}function Ie(t,e,n,i){(3&t[2])===n&&Ne(t,e,n,i)}function Re(t,e){var n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Ne(t,e,n,i){for(var o=null!=i?i:-1,r=e.length-1,a=0,s=void 0!==i?65535&t[18]:0;s<r;s++)if("number"==typeof e[s+1]){if(a=e[s],null!=i&&a>=i)break}else e[s]<0&&(t[18]+=65536),(a<o||-1==o)&&(Le(t,n,e,s),t[18]=(4294901760&t[18])+s+2),s++}function Le(t,e,n,i){var o=n[i]<0,r=n[i+1],a=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(a)}finally{}}}else try{r.call(a)}finally{}}var De=g(function t(e,n,i){v(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i});function Fe(t,e,n){for(var i=Ut(t),o=0;o<n.length;){var r=n[o];if("number"==typeof r){if(0!==r)break;o++;var a=n[o++],s=n[o++],c=n[o++];i?t.setAttribute(e,s,c,a):e.setAttributeNS(a,s,c)}else{var u=r,l=n[++o];Ze(u)?i&&t.setProperty(e,u,l):i?t.setAttribute(e,u,l):e.setAttribute(u,l),o++}}return o}function Ue(t){return 3===t||4===t||6===t}function Ze(t){return 64===t.charCodeAt(0)}function qe(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else for(var n=-1,i=0;i<e.length;i++){var o=e[i];"number"==typeof o?n=o:0===n||je(t,n,o,null,-1===n||2===n?e[++i]:null)}return t}function je(t,e,n,i,o){var r=0,a=t.length;if(-1===e)a=-1;else for(;r<t.length;){var s=t[r++];if("number"==typeof s){if(s===e){a=-1;break}if(s>e){a=r-1;break}}}for(;r<t.length;){var c=t[r];if("number"==typeof c)break;if(c===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!==a&&(t.splice(a,0,e),r=a+1),t.splice(r++,0,n),null!==i&&t.splice(r++,0,i),null!==o&&t.splice(r++,0,o)}function Ve(t){return-1!==t}function ze(t){return 32767&t}function Ge(t,e){for(var n=function(t){return t>>16}(t),i=e;n>0;)i=i[15],n--;return i}var Be=!0;function He(t){var e=Be;return Be=t,e}var Ye=0;function Qe(t,e){var n=We(t,e);if(-1!==n)return n;var i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Je(i.data,t),Je(e,null),Je(i.blueprint,null));var o=Ke(t,e),r=t.injectorIndex;if(Ve(o))for(var a=ze(o),s=Ge(o,e),c=s[1].data,u=0;u<8;u++)e[r+u]=s[a+u]|c[a+u];return e[r+8]=o,r}function Je(t,e){t.push(0,0,0,0,0,0,0,0,e)}function We(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Ke(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=0,i=null,o=e;null!==o;){var r=o[1],a=r.type;if(null===(i=2===a?r.declTNode:1===a?o[6]:null))return-1;if(n++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function $e(t,e,n){!function(t,e,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(rt)&&(i=n[rt]),null==i&&(i=n[rt]=Ye++);var o=255&i;e.data[t+(o>>5)]|=1<<o}(t,e,n)}function Xe(t,e,n){if(n&j.Optional)return t;E(e,"NodeInjector")}function tn(t,e,n,i){if(n&j.Optional&&void 0===i&&(i=null),0==(n&(j.Self|j.Host))){var o=t[9],r=V(void 0);try{return o?o.get(e,i,n&j.Optional):z(e,i,n&j.Optional)}finally{V(r)}}return Xe(i,e,n)}function en(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j.Default,o=arguments.length>4?arguments[4]:void 0;if(null!==t){var r=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(rt)?t[rt]:void 0;return"number"==typeof e?e>=0?255&e:on:e}(n);if("function"==typeof r){if(!ye(e,t,i))return i&j.Host?Xe(o,n,i):tn(e,n,i,o);try{var a=r(i);if(null!=a||i&j.Optional)return a;E(n)}finally{we()}}else if("number"==typeof r){var s=null,c=We(t,e),u=-1,l=i&j.Host?e[16][6]:null;for((-1===c||i&j.SkipSelf)&&(-1!==(u=-1===c?Ke(t,e):e[c+8])&&un(i,!1)?(s=e[1],c=ze(u),e=Ge(u,e)):c=-1);-1!==c;){var h=e[1];if(cn(r,c,h.data)){var f=rn(c,e,n,s,i,l);if(f!==nn)return f}-1!==(u=e[c+8])&&un(i,e[1].data[c+8]===l)&&cn(r,c,e)?(s=h,c=ze(u),e=Ge(u,e)):c=-1}}}return tn(e,n,i,o)}var nn={};function on(){return new ln(ne(),Xt())}function rn(t,e,n,i,o,r){var a=e[1],s=a.data[t+8],c=an(s,a,n,null==i?xt(s)&&Be:i!=a&&0!=(3&s.type),o&j.Host&&r===s);return null!==c?sn(e,a,c,s):nn}function an(t,e,n,i,o){for(var r=t.providerIndexes,a=e.data,s=1048575&r,c=t.directiveStart,u=r>>20,l=o?s+u:t.directiveEnd,h=i?s:s+u;h<l;h++){var f=a[h];if(h<c&&n===f||h>=c&&f.type===n)return h}if(o){var d=a[c];if(d&&Ot(d)&&d.type===n)return c}return null}function sn(t,e,n,i){var o=t[n],r=e.data;if(function(t){return t instanceof De}(o)){var a=o;a.resolving&&function(t,e){throw new k("200","Circular dependency in DI detected for ".concat(t))}(S(r[n]));var s=He(a.canSeeViewProviders);a.resolving=!0;var c=a.injectImpl?V(a.injectImpl):null;ye(t,i,j.Default);try{o=t[n]=a.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){var i=e.type.prototype,o=i.ngOnChanges,r=i.ngOnInit,a=i.ngDoCheck;if(o){var s=St(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a))}(n,r[n],e)}finally{null!==c&&V(c),He(s),a.resolving=!1,we()}}return o}function cn(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function un(t,e){return!(t&j.Self||t&j.Host&&e)}var ln=function(){return g(function t(e,n){v(this,t),this._tNode=e,this._lView=n},[{key:"get",value:function(t,e,n){return en(this._tNode,this._lView,t,n,e)}}])}();function hn(t){return G(function(){for(var e=t.prototype.constructor,n=e[ot]||fn(e),i=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;o&&o!==i;){var r=o[ot]||fn(o);if(r&&r!==n)return r;
1o=Object.getPrototypeOf(o)}return function(t){return new t}})}function fn(t){return M(t)?function(){var e=fn(P(t));return e&&e()}:Mt(t)}function dn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;var n=t.attrs;if(n)for(var i=n.length,o=0;o<i;){var r=n[o];if(Ue(r))break;if(0===r)o+=2;else if("number"==typeof r)for(o++;o<i&&"string"==typeof n[o];)o++;else{if(r===e)return n[o+1];o+=2}}return null}(ne(),t)}var pn="__parameters__",gn="__prop__metadata__";function mn(t){return function(){if(t){var e=t.apply(void 0,arguments);for(var n in e)this[n]=e[n]}}}function vn(t,e,n){return G(function(){var i=mn(e);function o(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(this instanceof o)return i.apply(this,e),this;var r=x(o,e);return a.annotation=r,a;function a(t,e,n){for(var i=t.hasOwnProperty(pn)?t[pn]:Object.defineProperty(t,pn,{value:[]})[pn];i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(r),t}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function yn(t,e,n,i){return G(function(){var o=mn(e);function r(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(this instanceof r)return o.apply(this,e),this;var a=x(r,e);return function(t,n){var o=t.constructor,r=o.hasOwnProperty(gn)?o[gn]:Object.defineProperty(o,gn,{value:{}})[gn];r[n]=r.hasOwnProperty(n)&&r[n]||[],r[n].unshift(a),i&&i.apply(void 0,[t,n].concat(e))}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var _n=function(){return g(function t(e,n){v(this,t),this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=A({token:this,providedIn:n.providedIn||"root",factory:n.factory}))},[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}])}(),bn=new _n("AnalyzeForEntryComponents"),Cn=Function;function xn(t,e){void 0===e&&(e=t);for(var n=0;n<t.length;n++){var i=t[n];Array.isArray(i)?(e===t&&(e=t.slice(0,n)),xn(i,e)):e!==t&&e.push(i)}return e}function wn(t,e){t.forEach(function(t){return Array.isArray(t)?wn(t,e):e(t)})}function On(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Pn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Mn(t,e){for(var n=[],i=0;i<t;i++)n.push(e);return n}function kn(t,e,n){var i=Sn(t,e);return i>=0?t[1|i]=n:function(t,e,n,i){var 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=~i,e,n),i}function Tn(t,e){var n=Sn(t,e);if(n>=0)return t[1|n]}function Sn(t,e){return function(t,e,n){for(var i=0,o=t.length>>1;o!==i;){var r=i+(o-i>>1),a=t[r<<1];if(e===a)return r<<1;a>e?o=r:i=r+1}return~(o<<1)}(t,e)}var En,An={},In="__NG_DI_FLAG__",Rn="ngTempTokenPath",Nn=/\n/gm,Ln="__source",Dn=f({provide:String,useValue:f});function Fn(t){var e=En;return En=t,e}function Un(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.Default;if(void 0===En)throw new Error("inject() must be called from an injection context");return null===En?z(t,void 0,e):En.get(t,e&j.Optional?null:void 0,e)}function Zn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.Default;return(D||Un)(P(t),e)}var qn=Zn;function jn(t){for(var e=[],n=0;n<t.length;n++){var i=P(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var o=void 0,r=j.Default,a=0;a<i.length;a++){var s=i[a],c=zn(s);"number"==typeof c?-1===c?o=s.token:r|=c:o=s}e.push(Zn(o,r))}else e.push(Zn(i))}return e}function Vn(t,e){return t[In]=e,t.prototype[In]=e,t}function zn(t){return t[In]}function Gn(t,e,n,i){var o=t[Rn];throw e[Ln]&&o.unshift(e[Ln]),t.message=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var o=p(e);if(Array.isArray(e))o=e.map(p).join(" -> ");else if("object"==typeof e){var r=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];
vendor: 6,005 bytes, line 1
1r.push(a+":"+("string"==typeof s?JSON.stringify(s):p(s)))}o="{".concat(r.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(o,"]: ").concat(t.replace(Nn,"\n "))}("\n"+t.message,o,n,i),t.ngTokenPath=o,t[Rn]=null,t}var Bn=Vn(vn("Inject",function(t){return{token:t}}),-1),Hn=Vn(vn("Optional"),8),Yn=Vn(vn("SkipSelf"),4),Qn=((Qn=Qn||{})[Qn.Important=1]="Important",Qn[Qn.DashCase=2]="DashCase",Qn),Jn="__ngContext__";function Wn(t,e){t[Jn]=e}function Kn(t){var e=function(t){return t[Jn]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function $n(t,e){return(void 0)(t,e)}function Xn(t){var e=t[3];return bt(e)?e[3]:e}function ti(t){return ni(t[13])}function ei(t){return ni(t[4])}function ni(t){for(;null!==t&&!bt(t);)t=t[4];return t}function ii(t,e,n,i,o){if(null!=i){var r,a=!1;bt(i)?r=i:_t(i)&&(a=!0,i=i[0]);var s=qt(i);0===t&&null!==n?null==o?hi(e,n,s):li(e,n,s,o||null,!0):1===t&&null!==n?li(e,n,s,o||null,!0):2===t?function(t,e,n){var i=di(t,e);i&&function(t,e,n,i){Ut(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,s,a):3===t&&e.destroyNode(s),null!=r&&function(t,e,n,i,o){var r=n[7];r!==qt(n)&&ii(e,t,i,r,o);for(var a=10;a<n.length;a++){var s=n[a];wi(s[1],s,t,e,i,r)}}(e,t,r,n,o)}}function oi(t,e,n){return Ut(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function ri(t,e){var n=t[9],i=n.indexOf(e),o=e[3];1024&e[2]&&(e[2]&=-1025,Wt(o,-1)),n.splice(i,1)}function ai(t,e){if(!(t.length<=10)){var n=10+e,i=t[n];if(i){var o=i[17];null!==o&&o!==t&&ri(o,i),e>0&&(t[n-1][4]=i[4]);var r=Pn(t,10+e);!function(t,e){wi(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(i[1],i);var a=r[19];null!==a&&a.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function si(t,e){if(!(256&e[2])){var n=e[11];Ut(n)&&n.destroyNode&&wi(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return ci(t[1],t);for(;e;){var n=null;if(_t(e))n=e[13];else{var i=e[10];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)_t(e)&&ci(e[1],e),e=e[3];null===e&&(e=t),_t(e)&&ci(e[1],e),n=e&&e[4]}e=n}}(e)}}function ci(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var i=0;i<n.length;i+=2){var o=e[n[i]];if(!(o instanceof De)){var r=n[i+1];if(Array.isArray(r))for(var a=0;a<r.length;a+=2){var s=o[r[a]],c=r[a+1];try{c.call(s)}finally{}}else try{r.call(o)}finally{}}}}(t,e),function(t,e){var n=t.cleanup,i=e[7],o=-1;if(null!==n)for(var r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){var a=n[r+1],s="function"==typeof a?a(e):qt(e[a]),c=i[o=n[r+2]],u=n[r+3];"boolean"==typeof u?s.removeEventListener(n[r],c,u):u>=0?i[o=u]():i[o=-u].unsubscribe(),r+=2}else{var l=i[o=n[r+1]];n[r].call(l)}if(null!==i){for(var h=o+1;h<i.length;h++)i[h]();e[7]=null}}(t,e),1===e[1].type&&Ut(e[11])&&e[11].destroy();var n=e[17];if(null!==n&&bt(e[3])){n!==e[3]&&ri(n,e);var i=e[19];null!==i&&i.detachView(t)}}}function ui(t,e,n){return function(t,e,n){for(var i=e;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){var o=t.data[i.directiveStart].encapsulation;if(o===H.None||o===H.Emulated)return null}return Vt(i,n)}(t,e.parent,n)}function li(t,e,n,i,o){Ut(t)?t.insertBefore(e,n,i,o):e.insertBefore(n,i,o)}function hi(t,e,n){Ut(t)?t.appendChild(e,n):e.appendChild(n)}function fi(t,e,n,i,o){null!==i?li(t,e,n,i,o):hi(t,e,n)}function di(t,e){return Ut(t)?t.parentNode(e):e.parentNode}function pi(t,e,n){return vi(t,e,n)}var gi,mi,vi=function(t,e,n){return 40&t.type?Vt(t,n):null};function yi(t,e,n,i){var o=ui(t,i,e),r=e[11],a=pi(i.parent||e[6],i,e);if(null!=o)if(Array.isArray(n))for(var s=0;s<n.length;s++)fi(r,o,n[s],a,!1);else fi(r,o,n,a,!1)}function _i(t,e){if(null!==e){var n=e.type;if(3&n)return Vt(e,t);if(4&n)return Ci(-1,t[e.index]);if(8&n){var i=e.child;if(null!==i)return _i(t,i);var o=t[e.index];return bt(o)?Ci(-1,o):qt(o)}if(32&n)return $n(e,t)()||qt(t[e.index]);var r=bi(t,e);return null!==r?Array.isArray(r)?r[0]:_i(Xn(t[16]),r):_i(t,e.next)}return null}function bi(t,e){return null!==e?t[16][6].projection[e.projection]:null}function Ci(t,e){var n=10+t+1;if(n<e.length){var i=e[n],o=i[1].firstChild;if(null!==o)return _i(i,o)}return e[7]}function xi(t,e,n,i,o,r,a){for(;null!=n;){var s=i[n.index],c=n.type;if(a&&0===e&&(s&&Wn(qt(s),i),n.flags|=4),64!=(64&n.flags))if(8&c)xi(t,e,n.child,i,o,r,!1),ii(e,t,o,s,r);else if(32&c){for(var u=$n(n,i),l=void 0;l=u();)ii(e,t,o,l,r);ii(e,t,o,s,r)}else 16&c?Oi(t,e,i,n,o,r):ii(e,t,o,s,r);n=a?n.projectionNext:n.next}}function wi(t,e,n,i,o,r){xi(n,i,t.firstChild,e,o,r,!1)}function Oi(t,e,n,i,o,r){var a=n[16],s=a[6].projection[i.projection];if(Array.isArray(s))for(var c=0;c<s.length;c++)ii(e,t,o,s[c],r);else xi(t,e,s,a[3],o,r,!0)}function Pi(t,e,n){Ut(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Mi(t,e,n){Ut(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function ki(t){var e;return(null===(e=function(){if(void 0===gi&&(gi=null,W.trustedTypes))try{gi=W.trustedTypes.createPolicy("angular",{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}})}catch(t){}return gi}())||void 0===e?void 0:e.createHTML(t))||t}function Ti(t){var e;return(null===(e=function(){if(void 0===mi&&(mi=null,W.trustedTypes))try{mi=W.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}})}catch(t){}return mi}())||void 0===e?void 0:e.createHTML(t))||t}var Si=function(){return g(function t(e){v(this,t),this.changingThisBreaksApplicationSecurity=e},[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity," (see https://g.co/ng/security#xss)")}}])}(),Ei=function(t){function e(){return v(this,e),y(this,e,arguments)}return b(e,t),g(e,[{key:"getTypeName",value:function(){return"HTML"}}])}(Si),Ai=function(t){function e(){return v(this,e),y(this,e,arguments)}return b(e,t),g(e,[{key:"getTypeName",value:function(){return"Style"}}
1])}(Si),Ii=function(t){function e(){return v(this,e),y(this,e,arguments)}return b(e,t),g(e,[{key:"getTypeName",value:function(){return"Script"}}])}(Si),Ri=function(t){function e(){return v(this,e),y(this,e,arguments)}return b(e,t),g(e,[{key:"getTypeName",value:function(){return"URL"}}])}(Si),Ni=function(t){function e(){return v(this,e),y(this,e,arguments)}return b(e,t),g(e,[{key:"getTypeName",value:function(){return"ResourceURL"}}])}(Si);function Li(t){return t instanceof Si?t.changingThisBreaksApplicationSecurity:t}function Di(t,e){var n=Fi(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error("Required a safe ".concat(e,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===e}function Fi(t){return t instanceof Si&&t.getTypeName()||null}function Ui(t){return new Ei(t)}function Zi(t){return new Ai(t)}function qi(t){return new Ii(t)}function ji(t){return new Ri(t)}function Vi(t){return new Ni(t)}var zi=function(){return g(function t(e){v(this,t),this.inertDocumentHelper=e},[{key:"getInertBodyElement",value:function(t){t="<body><remove></remove>"+t;try{var e=(new window.DOMParser).parseFromString(ki(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}])}(),Gi=function(){return g(function t(e){if(v(this,t),this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}},[{key:"getInertBodyElement",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=ki(t),e;var n=this.inertDocument.createElement("body");return n.innerHTML=ki(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0<n;n--){var i=e.item(n).name;("xmlns:ns1"===i||0===i.indexOf("ns1:"))&&t.removeAttribute(i)}for(var o=t.firstChild;o;)o.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(o),o=o.nextSibling}}])}(),Bi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Hi=/^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 Yi(t){return(t=String(t)).match(Bi)||t.match(Hi)?t:"unsafe:"+t}function Qi(t){var e,n={},i=h(t.split(","));try{for(i.s();!(e=i.n()).done;){n[e.value]=!0}}catch(o){i.e(o)}finally{i.f()}return n}function Ji(){for(var t={},e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var o=0,r=n;o<r.length;o++){var a=r[o];for(var s in a)a.hasOwnProperty(s)&&(t[s]=!0)}return t}
1var Wi,Ki=Qi("area,br,col,hr,img,wbr"),$i=Qi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Xi=Qi("rp,rt"),to=Ji(Ki,Ji($i,Qi("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")),Ji(Xi,Qi("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")),Ji(Xi,$i)),eo=Qi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),no=Qi("srcset"),io=Ji(eo,no,Qi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Qi("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")),oo=Qi("script,style,template"),ro=function(){return g(function t(){v(this,t),this.sanitizedSomething=!1,this.buf=[]},[{key:"sanitizeChildren",value:function(t){for(var e=t.firstChild,n=!0;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);var i=this.checkClobberedElement(e,e.nextSibling);if(i){e=i;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(t){var e=t.nodeName.toLowerCase();if(!to.hasOwnProperty(e))return this.sanitizedSomething=!0,!oo.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);for(var n,i=t.attributes,o=0;o<i.length;o++){var r=i.item(o),a=r.name,s=a.toLowerCase();if(io.hasOwnProperty(s)){var c=r.value;eo[s]&&(c=Yi(c)),no[s]&&(n=c,c=(n=String(n)).split(",").map(function(t){return Yi(t.trim())}).join(", ")),this.buf.push(" ",a,'="',co(c),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();to.hasOwnProperty(e)&&!Ki.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}},{key:"chars",value:function(t){this.buf.push(co(t))}},{key:"checkClobberedElement",value:function(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: ".concat(t.outerHTML));return e}}])}(),ao=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,so=/([^\#-~ |!])/g;function co(t){return t.replace(/&/g,"&").replace(ao,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(so,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function uo(t,e){var n=null;try{Wi=Wi||function(t){var e=new Gi(t);return function(){try{return!!(new window.DOMParser).parseFromString(ki(""),"text/html")}catch(t){return!1}}()?new zi(e):e}(t);var i=e?String(e):"";n=Wi.getInertBodyElement(i);var 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=Wi.getInertBodyElement(i)}while(i!==r);return ki((new ro).sanitizeChildren(lo(n)||n))}finally{if(n)for(var a=lo(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function lo(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ho=((ho=ho||{})[ho.NONE=0]="NONE",ho[ho.HTML=1]="HTML",ho[ho.STYLE=2]="STYLE",ho[ho.SCRIPT=3]="SCRIPT",ho[ho.URL=4]="URL",ho[ho.RESOURCE_URL=5]="RESOURCE_URL",ho);function fo(t){var e=go();return e?Ti(e.sanitize(ho.HTML,t)||""):Di(t,"HTML")?Ti(Li(t)):uo(Ft(),T(t))}function po(t){var e=go();return e?e.sanitize(ho.URL,t)||"":Di(t,"URL")?Li(t):Yi(T(t))}function go(){var t=Xt();return t&&t[12]}function mo(t){return t.ngOriginalError}function vo(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];t.error.apply(t,n)}var yo=function(){return g(function t(){v(this,t),this._console=console},[{key:"handleError",value:function(t){var e,n=this._findOriginalError(t),i=this._findContext(t),o=(e=t)&&e.ngErrorLogger||vo;o(this._console,"ERROR",t),n&&o(this._console,"ORIGINAL ERROR",n),i&&o(this._console,"ERROR CONTEXT",i)}},{key:"_findContext",value:function(t){return t?t.ngDebugContext||this._findContext(mo(t)):null}},{key:"_findOriginalError",value:function(t){for(var e=t&&mo(t);e&&mo(e);)e=mo(e);return e||null}}])}(),_o=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(W);function bo(t){return t instanceof Function?t():t}function Co(t,e,n){for(var i=t.length;;){var o=t.indexOf(e,n);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){var r=e.length;if(o+r===i||t.charCodeAt(o+r)<=32)return o}n=o+1}}var xo="ng-template";function wo(t,e,n){for(var i=0;i<t.length;){var o=t[i++];if(n&&"class"===o){if(-1!==Co((o=t[i]).toLowerCase(),e,0))return!0}else if(1===o){for(;i<t.length&&"string"==typeof(o=t[i++]);
vendor: 9,245 bytes, line 1
1)if(o.toLowerCase()===e)return!0;return!1}}return!1}function Oo(t){return 4===t.type&&t.value!==xo}function Po(t,e,n){return e===(4!==t.type||n?t.value:xo)}function Mo(t,e,n){for(var i=4,o=t.attrs||[],r=function(t){for(var e=0;e<t.length;e++)if(Ue(t[e]))return e;return t.length}(o),a=!1,s=0;s<e.length;s++){var c=e[s];if("number"!=typeof c){if(!a)if(4&i){if(i=2|1&i,""!==c&&!Po(t,c,n)||""===c&&1===e.length){if(ko(i))return!1;a=!0}}else{var u=8&i?c:e[++s];if(8&i&&null!==t.attrs){if(!wo(t.attrs,u,n)){if(ko(i))return!1;a=!0}continue}var l=To(8&i?"class":c,o,Oo(t),n);if(-1===l){if(ko(i))return!1;a=!0;continue}if(""!==u){var h;h=l>r?"":o[l+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==Co(f,u,0)||2&i&&u!==h){if(ko(i))return!1;a=!0}}}}else{if(!a&&!ko(i)&&!ko(c))return!1;if(a&&ko(c))continue;a=!1,i=c|1&i}}return ko(i)||a}function ko(t){return 0==(1&t)}function To(t,e,n,i){if(null===e)return-1;var o=0;if(i||!n){for(var r=!1;o<e.length;){var a=e[o];if(a===t)return o;if(3===a||6===a)r=!0;else{if(1===a||2===a){for(var s=e[++o];"string"==typeof s;)s=e[++o];continue}if(4===a)break;if(0===a){o+=4;continue}}o+=r?1:2}return-1}return function(t,e){var n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){var i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function So(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<e.length;i++)if(Mo(t,e[i],n))return!0;return!1}function Eo(t,e){t:for(var n=0;n<e.length;n++){var i=e[n];if(t.length===i.length){for(var o=0;o<t.length;o++)if(t[o]!==i[o])continue t;return!0}}return!1}function Ao(t,e){return t?":not("+e.trim()+")":e}function Io(t){for(var e=t[0],n=1,i=2,o="",r=!1;n<t.length;){var a=t[n];if("string"==typeof a)if(2&i){var s=t[++n];o+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!ko(a)&&(e+=Ao(r,o),o=""),i=a,r=r||!ko(i);n++}return""!==o&&(e+=Ao(r,o)),e}var Ro={};function No(t){Lo(te(),Xt(),Pe()+t,se())}function Lo(t,e,n,i){if(!i)if(3==(3&e[2])){var o=t.preOrderCheckHooks;null!==o&&Ae(e,o,n)}else{var r=t.preOrderHooks;null!==r&&Ie(e,r,0,n)}Me(n)}function Do(t,e){return t<<17|e<<2}function Fo(t){return t>>17&32767}function Uo(t){return 2|t}function Zo(t){return(131068&t)>>2}function qo(t,e){return-131069&t|e<<2}function jo(t){return 1|t}function Vo(t,e){var n=t.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var o=n[i],r=n[i+1];if(-1!==r){var a=t.data[r];me(o),a.contentQueries(2,e[r],r)}}}function zo(t,e,n,i,o,r,a,s,c,u){var l=e.blueprint.slice();return l[0]=o,l[2]=140|i,Jt(l),l[3]=l[15]=t,l[8]=n,l[10]=a||t&&t[10],l[11]=s||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 Go(t,e,n,i,o){var r=t.data[e];if(null===r)r=function(t,e,n,i,o){var r=ie(),a=re(),s=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,a?r:r&&r.parent,n,e,i,o);return null===t.firstChild&&(t.firstChild=s),null!==r&&(a?null==r.child&&null!==s.parent&&(r.child=s):null===r.next&&(r.next=s)),s}(t,e,n,i,o),Kt.lFrame.inI18n&&(r.flags|=64);else if(64&r.type){r.type=n,r.value=i,r.attrs=o;var a=function(){var t=Kt.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();r.injectorIndex=null===a?-1:a.injectorIndex}return oe(r,!0),r}function Bo(t,e,n,i){if(0===n)return-1;for(var o=e.length,r=0;r<n;r++)e.push(i),t.blueprint.push(i),t.data.push(null);return o}function Ho(t,e,n){_e(e);try{var i=t.viewQuery;null!==i&&xr(1,i,n);var o=t.template;null!==o&&Jo(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Vo(t,e),t.staticViewQueries&&xr(2,t.viewQuery,n);var r=t.components;null!==r&&function(t,e){for(var n=0;n<e.length;n++)vr(t,e[n])}(e,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{e[2]&=-5,Oe()}}function Yo(t,e,n,i){var o=e[2];if(256!=(256&o)){_e(e);var r=se();try{Jt(e),function(t){Kt.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==n&&Jo(t,e,n,2,i);var a=3==(3&o);if(!r)if(a){var s=t.preOrderCheckHooks;null!==s&&Ae(e,s,null)}else{var c=t.preOrderHooks;null!==c&&Ie(e,c,0,null),Re(e,0)}if(function(t){for(var e=ti(t);null!==e;e=ei(e))if(e[2])for(var n=e[9],i=0;i<n.length;i++){var o=n[i],r=o[3];0==(1024&o[2])&&Wt(r,1),o[2]|=1024}}(e),function(t){for(var e=ti(t);null!==e;e=ei(e))for(var n=10;n<e.length;n++){var i=e[n],o=i[1];Yt(i)&&Yo(o,i,o.template,i[8])}}(e),null!==t.contentQueries&&Vo(t,e),!r)if(a){var u=t.contentCheckHooks;null!==u&&Ae(e,u)}else{var l=t.contentHooks;null!==l&&Ie(e,l,1),Re(e,1)}!function(t,e){var n=t.hostBindingOpCodes;if(null!==n)try{for(var i=0;i<n.length;i++){var o=n[i];if(o<0)Me(~o);else{var r=o,a=n[++i],s=n[++i];fe(a,r),s(2,e[r])}}}finally{Me(-1)}}(t,e);var h=t.components;null!==h&&function(t,e){for(var n=0;n<e.length;n++)gr(t,e[n])}(e,h);var f=t.viewQuery;if(null!==f&&xr(2,f,i),!r)if(a){var d=t.viewCheckHooks;null!==d&&Ae(e,d)}else{var p=t.viewHooks;null!==p&&Ie(e,p,2),Re(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Wt(e[3],-1))}finally{Oe()}}}function Qo(t,e,n,i){var o=e[10],r=!se(),a=Ht(e);try{r&&!a&&o.begin&&o.begin(),a&&Ho(t,e,i),Yo(t,e,n,i)}finally{r&&!a&&o.end&&o.end()}}function Jo(t,e,n,i,o){var r=Pe(),a=2&i;try{Me(-1),a&&e.length>20&&Lo(t,e,20,se()),n(i,o)}finally{Me(r)}}function Wo(t,e,n){if(Ct(e))for(var i=e.directiveEnd,o=e.directiveStart;o<i;o++){var r=t.data[o];r.contentQueries&&r.contentQueries(1,n[o],o)}}function Ko(t,e,n){!$t()||(function(t,e,n,i){var o=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||Qe(n,e),Wn(i,e);for(var a=n.initialInputs,s=o;s<r;s++){var c=t.data[s],u=Ot(c);u&&hr(e,n,c);var l=sn(e,t,s,n);Wn(l,e),null!==a&&fr(0,s-o,l,c,0,a),u&&(Bt(n.index,e)[8]=l)}}(t,e,n,Vt(n,e)),128==(128&n.flags)&&function(t,e,n){var i=n.directiveStart,o=n.directiveEnd,r=n.index,a=Kt.lFrame.currentDirectiveIndex;try{Me(r);for(var s=i;s<o;s++){var c=t.data[s],u=e[s];de(s),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&ar(c,u)}}finally{Me(-1),de(a)}}(t,e,n))}function $o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vt,i=e.localNames;if(null!==i)for(var o=e.index+1,r=0;r<i.length;r+=2){var a=i[r+1],s=-1===a?n(e,t):t[a];t[o++]=s}}function Xo(t){var e=t.tView;return null===e||e.incompleteFirstPass?t.tView=tr(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function tr(t,e,n,i,o,r,a,s,c,u){var l=20+i,h=l+o,f=function(t,e){for(var n=[],i=0;i<e;i++)n.push(i<t?null:Ro);return n}(l,h),d="function"==typeof u?u():u;return f[1]={type:t,blueprint:f,template:n,queries:null,viewQuery:s,declTNode:e,data:f.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 a?a():a,firstChild:null,schemas:c,consts:d,incompleteFirstPass:!1}}function er(t,e,n,i){var o=Or(e);null===n?o.push(i):(o.push(n),t.firstCreatePass&&Pr(t).push(i,o.length-1))}function nr(t,e,n){for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,o):n[i]=[e,o]}return n}function ir(t,e,n,i,o,r,a,s){var c,u=Vt(e,n),l=e.inputs;!s&&null!=l&&(c=l[i])?(Tr(t,n,c,i,o),xt(e)&&function(t,e){var n=Bt(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!=a?a(o,e.value||"",i):o,Ut(r)?r.setProperty(u,i,o):Ze(i)||(u.setProperty?u.setProperty(i,o):u[i]=o))}function or(t,e,n,i){var o=!1;if($t()){var r=function(t,e,n){var i=t.directiveRegistry,o=null;if(i)for(var r=0;r<i.length;r++){var a=i[r];So(n,a.selectors,!1)&&(o||(o=[]),$e(Qe(n,e),t,a.type),Ot(a)?(sr(t,n),o.unshift(a)):o.push(a))}return o}(t,e,n),a=null===i?null:{"":-1};if(null!==r){o=!0,ur(n,t.data.length,r.length);for(var s=0;s<r.length;s++){var c=r[s];c.providersResolver&&c.providersResolver(c)}for(var u=!1,l=!1,h=Bo(t,e,r.length,null),f=0;f<r.length;f++){var d=r[f];n.mergedAttrs=qe(n.mergedAttrs,d.hostAttrs),lr(t,n,e,h,d),cr(h,d,a),null!==d.contentQueries&&(n.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(n.flags|=128);var p=d.type.prototype;!u&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),u=!0),!l&&(p.ngOnChanges||p.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),l=!0),h++}!function(t,e){for(var n=e.directiveEnd,i=t.data,o=e.attrs,r=[],a=null,s=null,c=e.directiveStart;c<n;
1c++){var u=i[c],l=u.inputs,h=null===o||Oo(e)?null:dr(l,o);r.push(h),a=nr(l,c,a),s=nr(u.outputs,c,s)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=a,e.outputs=s}(t,n)}a&&function(t,e,n){if(e)for(var i=t.localNames=[],o=0;o<e.length;o+=2){var r=n[e[o+1]];if(null==r)throw new k("301","Export of name '".concat(e[o+1],"' not found!"));i.push(e[o],r)}}(n,i,a)}return n.mergedAttrs=qe(n.mergedAttrs,n.attrs),o}function rr(t,e,n,i,o,r){var a=r.hostBindings;if(a){var s=t.hostBindingOpCodes;null===s&&(s=t.hostBindingOpCodes=[]);var c=~e.index;(function(t){for(var e=t.length;e>0;){var n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(s)!=c&&s.push(c),s.push(i,o,a)}}function ar(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function sr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function cr(t,e,n){if(n){if(e.exportAs)for(var i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;Ot(e)&&(n[""]=t)}}function ur(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function lr(t,e,n,i,o){t.data[i]=o;var r=o.factory||(o.factory=Mt(o.type)),a=new De(r,Ot(o),null);t.blueprint[i]=a,n[i]=a,rr(t,e,0,i,Bo(t,n,o.hostVars,Ro),o)}function hr(t,e,n){var i=Vt(e,t),o=Xo(n),r=t[10],a=yr(t,zo(t,o,null,n.onPush?64:16,i,e,r,r.createRenderer(i,n),null,null));t[e.index]=a}function fr(t,e,n,i,o,r){var a=r[e];if(null!==a)for(var s=i.setInput,c=0;c<a.length;){var u=a[c++],l=a[c++],h=a[c++];null!==s?i.setInput(n,h,u,l):n[l]=h}}function dr(t,e){for(var n=null,i=0;i<e.length;){var 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 pr(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function gr(t,e){var n=Bt(e,t);if(Yt(n)){var i=n[1];80&n[2]?Yo(i,n,i.template,n[8]):n[5]>0&&mr(n)}}function mr(t){for(var e=ti(t);null!==e;e=ei(e))for(var n=10;n<e.length;n++){var i=e[n];if(1024&i[2]){var o=i[1];Yo(o,i,o.template,i[8])}else i[5]>0&&mr(i)}var r=t[1].components;if(null!==r)for(var a=0;a<r.length;a++){var s=Bt(r[a],t);Yt(s)&&s[5]>0&&mr(s)}}function vr(t,e){var n=Bt(e,t),i=n[1];(function(t,e){for(var n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])})(i,n),Ho(i,n,n[8])}function yr(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function _r(t){for(;t;){t[2]|=64;var e=Xn(t);if(Pt(t)&&!e)return t;t=e}return null}function br(t,e,n){var i=e[10];i.begin&&i.begin();try{Yo(t,e,t.template,n)}catch(o){throw kr(e,o),o}finally{i.end&&i.end()}}function Cr(t){!function(t){for(var e=0;e<t.components.length;e++){var n=t.components[e],i=Kn(n),o=i[1];Qo(o,i,o.template,n)}}(t[8])}function xr(t,e,n){me(0),e(t,n)}var wr=Promise.resolve(null);function Or(t){return t[7]||(t[7]=[])}function Pr(t){return t.cleanup||(t.cleanup=[])}function Mr(t,e,n){return(null===t||Ot(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 kr(t,e){var n=t[9],i=n?n.get(yo,null):null;i&&i.handleError(e)}function Tr(t,e,n,i,o){for(var r=0;r<n.length;){var a=n[r++],s=n[r++],c=e[a],u=t.data[a];null!==u.setInput?u.setInput(c,o,i,s):c[s]=o}}function Sr(t,e,n){var i=n?t.styles:null,o=n?t.classes:null,r=0;if(null!==e)for(var a=0;a<e.length;a++){var s=e[a];"number"==typeof s?r=s:1==r?o=m(o,s):2==r&&(i=m(i,s+": "+e[++a]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=o:t.classesWithoutHost=o}var Er,Ar=new _n("INJECTOR",-1),Ir=function(){return g(function t(){v(this,t)},[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:An;if(e===An){var n=new Error("NullInjectorError: No provider for ".concat(p(t),"!"));throw n.name="NullInjectorError",n}return e}}])}(),Rr=new _n("Set Injector scope."),Nr={},Lr={};function Dr(){return void 0===Er&&(Er=new Ir),Er}function Fr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Ur(t,n,e||Dr(),i)}var Ur=function(){return g(function t(e,n,i){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;v(this,t),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&wn(n,function(t){return o.processProvider(t,e,n)}),wn([e],function(t){return o.processInjectorType(t,[],a)}),this.records.set(Ar,jr(void 0,this));var s=this.records.get(Rr);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof e?null:p(e))},[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:An,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j.Default;this.assertNotDestroyed();var i,o=Fn(this),r=V(void 0);try{if(!(n&j.SkipSelf)){var a=this.records.get(t);if(void 0===a){var s=("function"==typeof(i=t)||"object"==typeof i&&i instanceof _n)&&R(t);a=s&&this.injectableDefInScope(s)?jr(Zr(t),Nr):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(n&j.Self?Dr():this.parent).get(t,e=n&j.Optional&&e===An?null:e)}catch(c){if("NullInjectorError"===c.name){if((c[Rn]=c[Rn]||[]).unshift(p(t)),o)throw c;return Gn(c,t,"R3InjectorError",this.source)}throw c}finally{V(r),Fn(o)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;
1this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,n){return t.push(p(n))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var i=this;if(!(t=P(t)))return!1;var o=L(t),r=null==o&&t.ngModule||void 0,a=void 0===r?t:r,s=-1!==n.indexOf(a);if(void 0!==r&&(o=L(r)),null==o)return!1;if(null!=o.imports&&!s){var c;n.push(a);try{wn(o.imports,function(t){i.processInjectorType(t,e,n)&&(void 0===c&&(c=[]),c.push(t))})}finally{}if(void 0!==c)for(var u=function(){var t=c[l],e=t.ngModule,n=t.providers;wn(n,function(t){return i.processProvider(t,e,n||$)})},l=0;l<c.length;l++)u()}this.injectorDefTypes.add(a);var h=Mt(a)||function(){return new a};this.records.set(a,jr(h,Nr));var f=o.providers;if(null!=f&&!s){var d=t;wn(f,function(t){return i.processProvider(t,d,f)})}return void 0!==r&&void 0!==t.providers}},{key:"processProvider",value:function(t,e,n){var i,o=zr(t=P(t))?t:P(t&&t.provide),r=Vr(i=t)?jr(void 0,i.useValue):jr(qr(i),Nr);if(zr(t)||!0!==t.multi)this.records.get(o);else{var a=this.records.get(o);a||((a=jr(void 0,Nr,!0)).factory=function(){return jn(a.multi)},this.records.set(o,a)),o=t,a.multi.push(t)}this.records.set(o,r)}},{key:"hydrate",value:function(t,e){return e.value===Nr&&(e.value=Lr,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}},{key:"injectableDefInScope",value:function(t){if(!t.providedIn)return!1;var e=P(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}])}();function Zr(t){var e=R(t),n=null!==e?e.factory:Mt(t);if(null!==n)return n;if(t instanceof _n)throw new Error("Token ".concat(p(t)," is missing a \u0275prov definition."));if(t instanceof Function)return function(t){var e=t.length;if(e>0){var n=Mn(e,"?");throw new Error("Can't resolve all parameters for ".concat(p(t),": (").concat(n.join(", "),")."))}var i=function(t){var e=t&&(t[F]||t[Z]);if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(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 "').concat(n,'" class.')),e}return null}(t);return null!==i?function(){return i.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function qr(t,e,n){var i;if(zr(t)){var o=P(t);return Mt(o)||Zr(o)}if(Vr(t))i=function(){return P(t.useValue)};else if(function(t){return!(!t||!t.useFactory)}(t))i=function(){return t.useFactory.apply(t,u(jn(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))i=function(){return Zn(P(t.useExisting))};else{var r=P(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Mt(r)||Zr(r);i=function(){return x(r,u(jn(t.deps)))}}return i}function jr(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function Vr(t){return null!==t&&"object"==typeof t&&Dn in t}function zr(t){return"function"==typeof t}var Gr,Br=function(t,e,n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,o=Fr(t,e,n,i);return o._resolveInjectorDefTypes(),o}({name:n},e,t,n)},Hr=((Gr=function(){return g(function t(){v(this,t)},null,[{key:"create",value:function(t,e){return Array.isArray(t)?Br(t,e,""):Br(t.providers,t.parent,t.name||"")}}])}()).THROW_IF_NOT_FOUND=An,Gr.NULL=new Ir,Gr.\u0275prov=A({token:Gr,providedIn:"any",factory:function(){return Zn(Ar)}}),Gr.__NG_ELEMENT_ID__=-1,Gr);function Yr(t,e){Ee(Kn(t)[1],ne())}function Qr(t){for(var e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0,i=[t];e;){var o=void 0;if(Ot(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);var r=t;r.inputs=Jr(t.inputs),r.declaredInputs=Jr(t.declaredInputs),r.outputs=Jr(t.outputs);var a=o.hostBindings;a&&$r(t,a);var s=o.viewQuery,c=o.contentQueries;if(s&&Wr(t,s),c&&Kr(t,c),d(t.inputs,o.inputs),d(t.declaredInputs,o.declaredInputs),d(t.outputs,o.outputs),Ot(o)&&o.data.animation){var u=t.data;u.animation=(u.animation||[]).concat(o.data.animation)}}var l=o.features;if(l)for(var h=0;h<l.length;h++){var f=l[h];f&&f.ngInherit&&f(t),f===Qr&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){for(var e=0,n=null,i=t.length-1;i>=0;i--){var o=t[i];o.hostVars=e+=o.hostVars,o.hostAttrs=qe(o.hostAttrs,n=qe(n,o.hostAttrs))}}(i)}function Jr(t){return t===K?{}:t===$?[]:t}function Wr(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,i){e(t,i),n(t,i)}:e}function Kr(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,i,o){e(t,i,o),n(t,i,o)}:e}function $r(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,i){e(t,i),n(t,i)}:e}var Xr=null;function ta(){if(!Xr){var t=W.Symbol;if(t&&t.iterator)Xr=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var i=e[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Xr=i)}}return Xr}var ea=function(){function t(e){v(this,t),this.wrapped=e}return g(t,null,[{key:"wrap",value:function(e){return new t(e)}},{key:"unwrap",value:function(e){return t.isWrapped(e)?e.wrapped:e}},{key:"isWrapped",value:function(e){return e instanceof t}}])}();function na(t){return!!ia(t)&&(Array.isArray(t)||!(t instanceof Map)&&ta()in t)}function ia(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function oa(t,e,n){return t[e]=n}function ra(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function aa(t,e,n,i){var o=Xt();return ra(o,le(),e)&&(te(),function(t,e,n,i,o,r){var a=Vt(t,e);!function(t,e,n,i,o,r,a){if(null==r)Ut(t)?t.removeAttribute(e,o,n):e.removeAttribute(o);
vendor: 5,553 bytes, line 1
1else{var s=null==a?T(r):a(r,i||"",o);Ut(t)?t.setAttribute(e,o,s,n):n?e.setAttributeNS(n,o,s):e.setAttribute(o,s)}}(e[11],a,r,t.value,n,i,o)}(ke(),o,t,e,n,i)),aa}function sa(t,e,n,i){return ra(t,le(),n)?e+T(n)+i:Ro}function ca(t,e,n,i,o,r,a,s){var c=Xt(),u=te(),l=t+20,h=u.firstCreatePass?function(t,e,n,i,o,r,a,s,c){var u=e.consts,l=Go(e,t,4,a||null,Qt(u,s));or(e,n,l,Qt(u,c)),Ee(e,l);var h=l.tViews=tr(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,a):u.data[l];oe(h,!1);var f=c[11].createComment("");yi(u,c,f,h),Wn(f,c),yr(c,c[l]=pr(f,c,f,h)),wt(h)&&Ko(u,c,h),null!=a&&$o(c,h,s)}function ua(t){return Gt(Kt.lFrame.contextLView,20+t)}function la(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.Default,n=Xt();return null===n?Zn(t,e):en(ne(),n,P(t),e)}function ha(t,e,n){var i=Xt();return ra(i,le(),e)&&ir(te(),ke(),i,t,e,i[11],n,!1),ha}function fa(t,e,n,i,o){var r=o?"class":"style";Tr(t,n,e.inputs[r],r,i)}function da(t,e,n,i){var o=Xt(),r=te(),a=20+t,s=o[11],c=o[a]=oi(s,e,Kt.lFrame.currentNamespace),u=r.firstCreatePass?function(t,e,n,i,o,r,a){var s=e.consts,c=Go(e,t,2,o,Qt(s,r));return or(e,n,c,Qt(s,a)),null!==c.attrs&&Sr(c,c.attrs,!1),null!==c.mergedAttrs&&Sr(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(a,r,o,0,e,n,i):r.data[a];oe(u,!0);var l=u.mergedAttrs;null!==l&&Fe(s,c,l);var h=u.classes;null!==h&&Mi(s,c,h);var f=u.styles;null!==f&&Pi(s,c,f),64!=(64&u.flags)&&yi(r,o,c,u),0===Kt.lFrame.elementDepthCount&&Wn(c,o),Kt.lFrame.elementDepthCount++,wt(u)&&(Ko(r,o,u),Wo(r,u,o)),null!==i&&$o(o,u)}function pa(){var t=ne();re()?ae():oe(t=t.parent,!1);var e=t;Kt.lFrame.elementDepthCount--;var n=te();n.firstCreatePass&&(Ee(n,t),Ct(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&fa(n,e,Xt(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&fa(n,e,Xt(),e.stylesWithoutHost,!1)}function ga(t,e,n,i){da(t,e,n,i),pa()}function ma(t,e,n){var i=Xt(),o=te(),r=t+20,a=o.firstCreatePass?function(t,e,n,i,o){var r=e.consts,a=Qt(r,i),s=Go(e,t,8,"ng-container",a);return null!==a&&Sr(s,a,!0),or(e,n,s,Qt(r,o)),null!==e.queries&&e.queries.elementStart(e,s),s}(r,o,i,e,n):o.data[r];oe(a,!0);var s=i[r]=i[11].createComment("");yi(o,i,s,a),Wn(s,i),wt(a)&&(Ko(o,i,a),Wo(o,a,i)),null!=n&&$o(i,a)}function va(){var t=ne(),e=te();re()?ae():oe(t=t.parent,!1),e.firstCreatePass&&(Ee(e,t),Ct(t)&&e.queries.elementEnd(t))}function ya(){return Xt()}function _a(t){return!!t&&"function"==typeof t.then}function ba(t){return!!t&&"function"==typeof t.subscribe}var Ca=ba;function xa(t,e,n,i){var o=Xt(),r=te(),a=ne();return Oa(r,o,o[11],a,t,e,!!n,i),xa}function wa(t,e){var n=ne(),i=Xt(),o=te();return Oa(o,i,Mr(pe(o.data),n,i),n,t,e,!1),wa}function Oa(t,e,n,i,o,r,a,s){var c=wt(i),u=t.firstCreatePass&&Pr(t),l=e[8],h=Or(e),f=!0;if(3&i.type||s){var d=Vt(i,e),p=s?s(d):d,g=h.length,m=s?function(t){return s(qt(t[i.index]))}:i.index;if(Ut(n)){var v=null;if(!s&&c&&(v=function(t,e,n,i){var o=t.cleanup;if(null!=o)for(var r=0;r<o.length-1;r+=2){var a=o[r];if(a===n&&o[r+1]===i){var s=e[7],c=o[r+2];return s.length>c?s[c]:null}"string"==typeof a&&(r+=2)}return null}(t,e,o,i.index)),null!==v)(v.__ngLastListenerFn__||v).__ngNextListenerFn__=r,v.__ngLastListenerFn__=r,f=!1;else{r=Ma(i,e,l,r,!1);var y=n.listen(p,o,r);h.push(r,y),u&&u.push(o,m,g,g+1)}}else r=Ma(i,e,l,r,!0),p.addEventListener(o,r,a),h.push(r),u&&u.push(o,m,g,a)}else r=Ma(i,e,l,r,!1);var _,b=i.outputs;if(f&&null!==b&&(_=b[o])){var C=_.length;if(C)for(var x=0;x<C;x+=2){var w=e[_[x]][_[x+1]].subscribe(r),O=h.length;h.push(r,w),u&&u.push(o,i.index,O,-(O+1))}}}function Pa(t,e,n,i){try{return!1!==n(i)}catch(o){return kr(t,o),!1}}function Ma(t,e,n,i,o){return function n(r){if(r===Function)return i;var a=2&t.flags?Bt(t.index,e):e;0==(32&e[2])&&_r(a);for(var s=Pa(e,0,i,r),c=n.__ngNextListenerFn__;c;)s=Pa(e,0,c,r)&&s,c=c.__ngNextListenerFn__;return o&&!1===s&&(r.preventDefault(),r.returnValue=!1),s}}function ka(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(t){return(Kt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Kt.lFrame.contextLView))[8]}(t)}function Ta(t,e){for(var n=null,i=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),o=0;o<e.length;o++){var r=e[o];if("*"!==r){if(null===i?So(t,r,!0):Eo(i,r))return o}else n=o}return n}function Sa(t){var e=Xt()[16][6];if(!e.projection)for(var n=e.projection=Mn(t?t.length:1,null),i=n.slice(),o=e.child;null!==o;){var r=t?Ta(o,t):0;null!==r&&(i[r]?i[r].projectionNext=o:n[r]=o,i[r]=o),o=o.next}}function Ea(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=Xt(),o=te(),r=Go(o,20+t,16,null,n||null);null===r.projection&&(r.projection=e),ae(),64!=(64&r.flags)&&function(t,e,n){Oi(e[11],0,e,n,ui(t,n,e),pi(n.parent||e[6],n,e))}(o,i,r)}function Aa(t,e,n){return Ia(t,"",e,"",n),Aa}function Ia(t,e,n,i,o){var r=Xt(),a=sa(r,e,n,i);return a!==Ro&&ir(te(),ke(),r,t,a,r[11],o,!1),Ia}function Ra(t,e,n,i,o){for(var r=t[n+1],a=null===e,s=i?Fo(r):Zo(r),c=!1;0!==s&&(!1===c||a);){var u=t[s+1];Na(t[s],e)&&(c=!0,t[s+1]=i?jo(u):Uo(u)),s=i?Fo(u):Zo(u)}c&&(t[n+1]=i?Uo(r):jo(r))}function Na(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Sn(t,e)>=0}var La={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0}
1;function Da(t){return t.substring(La.key,La.keyEnd)}function Fa(t,e){var n=La.textEnd;return n===e?-1:(e=La.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,La.key=e,n),Ua(t,e,n))}function Ua(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Za(t,e,n){return za(t,e,n,!1),Za}function qa(t,e){return za(t,e,null,!0),qa}function ja(t){Ga(kn,Va,t,!0)}function Va(t,e){for(var n=function(t){return function(t){La.key=0,La.keyEnd=0,La.value=0,La.valueEnd=0,La.textEnd=t.length}(t),Fa(t,Ua(t,0,La.textEnd))}(e);n>=0;n=Fa(e,n))kn(t,Da(e),!0)}function za(t,e,n,i){var o=Xt(),r=te(),a=he(2);r.firstUpdatePass&&Ha(r,t,a,i),e!==Ro&&ra(o,a,e)&&Ja(r,r.data[Pe()],o,o[11],t,o[a+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=p(Li(t)))),t}(e,n),i,a)}function Ga(t,e,n,i){var o=te(),r=he(2);o.firstUpdatePass&&Ha(o,null,r,i);var a=Xt();if(n!==Ro&&ra(a,r,n)){var s=o.data[Pe()];if($a(s,i)&&!Ba(o,r)){var c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(n=m(c,n||"")),fa(o,s,a,n,i)}else!function(t,e,n,i,o,r,a,s){o===Ro&&(o=$);for(var c=0,u=0,l=0<o.length?o[0]:null,h=0<r.length?r[0]:null;null!==l||null!==h;){var f=c<o.length?o[c+1]:void 0,d=u<r.length?r[u+1]:void 0,p=void 0,g=null;l===h?(c+=2,u+=2,f!==d&&(g=h,p=d)):null===h||null!==l&&l<h?(c+=2,g=l):(u+=2,g=h,p=d),null!==g&&Ja(t,e,n,i,g,p,a,s),l=c<o.length?o[c]:null,h=u<r.length?r[u]:null}}(o,s,a,a[11],a[r+1],a[r+1]=function(t,e,n){if(null==n||""===n)return $;var i=[],o=Li(n);if(Array.isArray(o))for(var r=0;r<o.length;r++)t(i,o[r],!0);else if("object"==typeof o)for(var a in o)o.hasOwnProperty(a)&&t(i,a,o[a]);else"string"==typeof o&&e(i,o);return i}(t,e,n),i,r)}}function Ba(t,e){return e>=t.expandoStartIndex}function Ha(t,e,n,i){var o=t.data;if(null===o[n+1]){var r=o[Pe()],a=Ba(t,n);$a(r,i)&&null===e&&!a&&(e=!1),e=function(t,e,n,i){var o=pe(t),r=i?e.residualClasses:e.residualStyles;if(null===o)0===(i?e.classBindings:e.styleBindings)&&(n=Qa(n=Ya(null,t,e,n,i),e.attrs,i),r=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==o)if(n=Ya(o,t,e,n,i),null===r){var s=function(t,e,n){var i=n?e.classBindings:e.styleBindings;if(0!==Zo(i))return t[Fo(i)]}(t,e,i);void 0!==s&&Array.isArray(s)&&function(t,e,n,i){t[Fo(n?e.classBindings:e.styleBindings)]=i}(t,e,i,s=Qa(s=Ya(null,t,e,s[1],i),e.attrs,i))}else r=function(t,e,n){for(var i,o=e.directiveEnd,r=1+e.directiveStylingLast;r<o;r++)i=Qa(i,t[r].hostAttrs,n);return Qa(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){var a=r?e.classBindings:e.styleBindings,s=Fo(a),c=Zo(a);t[i]=n;var u,l=!1;if(Array.isArray(n)){var h=n;(null===(u=h[1])||Sn(h,u)>0)&&(l=!0)}else u=n;if(o)if(0!==c){var f=Fo(t[s+1]);t[i+1]=Do(f,s),0!==f&&(t[f+1]=qo(t[f+1],i)),t[s+1]=function(t,e){return 131071&t|e<<17}(t[s+1],i)}else t[i+1]=Do(s,0),0!==s&&(t[s+1]=qo(t[s+1],i)),s=i;else t[i+1]=Do(c,0),0===s?s=i:t[c+1]=qo(t[c+1],i),c=i;l&&(t[i+1]=Uo(t[i+1])),Ra(t,u,i,!0),Ra(t,u,i,!1),function(t,e,n,i,o){var r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&Sn(r,e)>=0&&(n[i+1]=jo(n[i+1]))}(e,u,t,i,r),a=Do(s,c),r?e.classBindings=a:e.styleBindings=a}(o,r,e,n,a,i)}}function Ya(t,e,n,i,o){var r=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(i=Qa(i,(r=e[s]).hostAttrs,o),r!==t);)s++;return null!==t&&(n.directiveStylingLast=s),i}function Qa(t,e,n){var i=n?1:2,o=-1;if(null!==e)for(var r=0;r<e.length;r++){var a=e[r];"number"==typeof a?o=a:o===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),kn(t,a,!!n||e[++r]))}return void 0===t?null:t}function Ja(t,e,n,i,o,r,a,s){if(3&e.type){var c=t.data,u=c[s+1];Ka(function(t){return 1==(1&t)}(u)?Wa(c,e,n,o,Zo(u),a):void 0)||(Ka(r)||function(t){return 2==(2&t)}(u)&&(r=Wa(c,null,n,o,s,a)),function(t,e,n,i,o){var r=Ut(t);if(e)o?r?t.addClass(n,i):n.classList.add(i):r?t.removeClass(n,i):n.classList.remove(i);else{var a=-1===i.indexOf("-")?void 0:Qn.DashCase;if(null==o)r?t.removeStyle(n,i,a):n.style.removeProperty(i);else{var s="string"==typeof o&&o.endsWith("!important");s&&(o=o.slice(0,-10),a|=Qn.Important),r?t.setStyle(n,i,o,a):n.style.setProperty(i,o,s?"important":"")}}}(i,a,jt(Pe(),n),o,r))}}function Wa(t,e,n,i,o,r){for(var a,s=null===e;o>0;){var c=t[o],u=Array.isArray(c),l=u?c[1]:c,h=null===l,f=n[o+1];
1f===Ro&&(f=h?$:void 0);var d=h?Tn(f,i):l===i?f:void 0;if(u&&!Ka(d)&&(d=Tn(c,i)),Ka(d)&&(a=d,s))return a;var p=t[o+1];o=s?Fo(p):Zo(p)}if(null!==e){var g=r?e.residualClasses:e.residualStyles;null!=g&&(a=Tn(g,i))}return a}function Ka(t){return void 0!==t}function $a(t,e){return 0!=(t.flags&(e?16:32))}function Xa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Xt(),i=te(),o=t+20,r=i.firstCreatePass?Go(i,o,1,e,null):i.data[o],a=n[o]=function(t,e){return Ut(t)?t.createText(e):t.createTextNode(e)}(n[11],e);yi(i,n,a,r),oe(r,!1)}function ts(t){return es("",t,""),ts}function es(t,e,n){var i=Xt(),o=sa(i,t,e,n);return o!==Ro&&function(t,e,n){var i=jt(e,t);!function(t,e,n){Ut(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}(i,Pe(),o),es}function ns(t,e,n){Ga(kn,Va,sa(Xt(),t,e,n),!0)}function is(t,e,n){var i=Xt();return ra(i,le(),e)&&ir(te(),ke(),i,t,e,i[11],n,!0),is}function os(t,e,n){var i=Xt();if(ra(i,le(),e)){var o=te(),r=ke();ir(o,r,i,t,e,Mr(pe(o.data),r,i),n,!0)}return os}var rs=void 0,as=["en",[["a","p"],["AM","PM"],rs],[["AM","PM"],rs,rs],[["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"]],rs,[["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"]],rs,[["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}",rs,"{1} 'at' {0}",rs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],ss={};function cs(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=ls(e);if(n)return n;var i=e.split("-")[0];if(n=ls(i))return n;if("en"===i)return as;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}function us(t){return cs(t)[hs.PluralCase]}function ls(t){return t in ss||(ss[t]=W.ng&&W.ng.common&&W.ng.common.locales&&W.ng.common.locales[t]),ss[t]}var hs=((hs=hs||{})[hs.LocaleId=0]="LocaleId",hs[hs.DayPeriodsFormat=1]="DayPeriodsFormat",hs[hs.DayPeriodsStandalone=2]="DayPeriodsStandalone",hs[hs.DaysFormat=3]="DaysFormat",hs[hs.DaysStandalone=4]="DaysStandalone",hs[hs.MonthsFormat=5]="MonthsFormat",hs[hs.MonthsStandalone=6]="MonthsStandalone",hs[hs.Eras=7]="Eras",hs[hs.FirstDayOfWeek=8]="FirstDayOfWeek",hs[hs.WeekendRange=9]="WeekendRange",hs[hs.DateFormat=10]="DateFormat",hs[hs.TimeFormat=11]="TimeFormat",hs[hs.DateTimeFormat=12]="DateTimeFormat",hs[hs.NumberSymbols=13]="NumberSymbols",hs[hs.NumberFormats=14]="NumberFormats",hs[hs.CurrencyCode=15]="CurrencyCode",hs[hs.CurrencySymbol=16]="CurrencySymbol",hs[hs.CurrencyName=17]="CurrencyName",hs[hs.Currencies=18]="Currencies",hs[hs.Directionality=19]="Directionality",hs[hs.PluralCase=20]="PluralCase",hs[hs.ExtraData=21]="ExtraData",hs),fs="en-US";function ds(t){(function(t,e){null==t&&function(t,e,n,i){throw new Error("ASSERTION ERROR: ".concat(t)+" [Expected=> ".concat(null," ").concat("!="," ").concat(e," <=Actual]"))}(e,t)})(t,"Expected localeId to be defined"),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function ps(t,e,n,i,o){if(t=P(t),Array.isArray(t))for(var r=0;r<t.length;r++)ps(t[r],e,n,i,o);else{var a=te(),s=Xt(),c=zr(t)?t:P(t.provide),u=qr(t),l=ne(),h=1048575&l.providerIndexes,f=l.directiveStart,d=l.providerIndexes>>20;if(zr(t)||!t.multi){var p=new De(u,o,la),g=vs(c,e,o?h:h+d,f);-1===g?($e(Qe(l,s),a,c),gs(a,t,e.length),e.push(c),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(p),s.push(p)):(n[g]=p,s[g]=p)}else{var m=vs(c,e,h+d,f),v=vs(c,e,h,h+d),y=m>=0&&n[m],_=v>=0&&n[v];if(o&&!_||!o&&!y){$e(Qe(l,s),a,c);var b=function(t,e,n,i,o){var r=new De(t,n,la);
1return r.multi=[],r.index=e,r.componentProviders=0,ms(r,o,i&&!n),r}(o?_s:ys,n.length,o,i,u);!o&&_&&(n[v].providerFactory=b),gs(a,t,e.length,0),e.push(c),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(b),s.push(b)}else gs(a,t,m>-1?m:v,ms(n[o?v:m],u,!o&&i));!o&&i&&_&&n[v].componentProviders++}}}function gs(t,e,n,i){var o=zr(e);if(o||function(t){return!!t.useClass}(e)){var r=(e.useClass||e).prototype.ngOnDestroy;if(r){var a=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,r]):a[s+1].push(i,r)}else a.push(n,r)}}}function ms(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function vs(t,e,n,i){for(var o=n;o<i;o++)if(e[o]===t)return o;return-1}function ys(t,e,n,i){return bs(this.multi,[])}function _s(t,e,n,i){var o,r=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=sn(n,n[1],this.providerFactory.index,i);bs(r,o=s.slice(0,a));for(var c=a;c<s.length;c++)o.push(s[c])}else bs(r,o=[]);return o}function bs(t,e){for(var n=0;n<t.length;n++)e.push((0,t[n])());return e}function Cs(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(t,e,n){var i=te();if(i.firstCreatePass){var o=Ot(t);ps(n,i.data,i.blueprint,o,!0),ps(e,i.data,i.blueprint,o,!1)}}(n,i?i(t):t,e)}}}var xs=g(function t(){v(this,t)}),ws=function(){return g(function t(){v(this,t)},[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(p(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}])}(),Os=function(){var t=g(function t(){v(this,t)});return t.NULL=new ws,t}();function Ps(){}function Ms(t,e){return new Ts(Vt(t,e))}var ks=function(){return Ms(ne(),Xt())},Ts=function(){var t=g(function t(e){v(this,t),this.nativeElement=e});return t.__NG_ELEMENT_ID__=ks,t}();function Ss(t){return t instanceof Ts?t.nativeElement:t}var Es=g(function t(){v(this,t)}),As=function(){var t=g(function t(){v(this,t)});return t.__NG_ELEMENT_ID__=function(){return Is()},t}(),Is=function(){var t=Xt(),e=Bt(ne().index,t);return function(t){return t[11]}(_t(e)?e:t)},Rs=function(){var t=g(function t(){v(this,t)});return t.\u0275prov=A({token:t,providedIn:"root",factory:function(){return null}}),t}(),Ns=g(function t(e){v(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}),Ls=new Ns("12.2.17"),Ds=function(){return g(function t(){v(this,t)},[{key:"supports",value:function(t){return na(t)}},{key:"create",value:function(t){return new Us(t)}}])}(),Fs=function(t,e){return e},Us=function(){return g(function t(e){v(this,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=e||Fs},[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,i=0,o=null;e||n;){var r=!n||e&&e.currentIndex<Vs(n,i,o)?e:n,a=Vs(r,i,o),s=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)i++;else{o||(o=[]);var c=a-i,u=s-i;if(c!=u){for(var l=0;l<c;l++){var h=l<o.length?o[l]:o[l]=0,f=h+l;u<=f&&f<c&&(o[l]=h+1)}o[r.previousIndex]=u-c}}a!==s&&t(r,a,s)}}},{key:"forEachPreviousItem",value:function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}},{key:"forEachAddedItem",value:function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}},{key:"forEachMovedItem",value:function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}},{key:"forEachRemovedItem",value:function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}},{key:"forEachIdentityChange",value:function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}},{key:"diff",value:function(t){if(null==t&&(t=[]),!na(t))throw new Error("Error trying to diff '".concat(p(t),"'. Only arrays and iterables are allowed"));return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var e=this;this._reset();var n,i,o,r=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var s=0;s<this.length;s++)i=t[s],o=this._trackByFn(s,i),null!==r&&Object.is(r.trackById,o)?(a&&(r=this._verifyReinsertion(r,i,o,s)),Object.is(r.item,i)||this._addIdentityChange(r,i)):(r=this._mismatch(r,i,o,s),a=!0),r=r._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var i,o=t[ta()]();!(i=o.next()).done;)e(i.value)}(t,function(t){o=e._trackByFn(n,t),null!==r&&Object.is(r.trackById,o)?(a&&(r=e._verifyReinsertion(r,t,o,n)),Object.is(r.item,t)||e._addIdentityChange(r,t)):(r=e._mismatch(r,t,o,n),a=!0),r=r._next,n++}),this.length=n;return this._truncate(r),this.collection=t,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var 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}}},{key:"_mismatch",value:function(t,e,n,i){var 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.
vendor: 9,096 bytes, line 1
1item,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 Zs(e,n),o,i),t}},{key:"_verifyReinsertion",value:function(t,e,n,i){var 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}},{key:"_truncate",value:function(t){for(;null!==t;){var 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)}},{key:"_reinsertAfter",value:function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var 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}},{key:"_moveAfter",value:function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}},{key:"_addAfter",value:function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}},{key:"_insertAfter",value:function(t,e,n){var 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 js),this._linkedRecords.put(t),t.currentIndex=n,t}},{key:"_remove",value:function(t){return this._addToRemovals(this._unlink(t))}},{key:"_unlink",value:function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}},{key:"_addToMoves",value:function(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}},{key:"_addToRemovals",value:function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new js),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}},{key:"_addIdentityChange",value:function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}])}(),Zs=g(function t(e,n){v(this,t),this.item=e,this.trackById=n,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}),qs=function(){return g(function t(){v(this,t),this._head=null,this._tail=null},[{key:"add",value:function(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)}},{key:"get",value:function(t,e){var 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}},{key:"remove",value:function(t){var 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}}])}(),js=function(){return g(function t(){v(this,t),this.map=new Map},[{key:"put",value:function(t){var e=t.trackById,n=this.map.get(e);n||(n=new qs,this.map.set(e,n)),n.add(t)}},{key:"get",value:function(t,e){var n=this.map.get(t);return n?n.get(t,e):null}},{key:"remove",value:function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}])}();function Vs(t,e,n){var i=t.previousIndex;if(null===i)return i;var o=0;return n&&i<n.length&&(o=n[i]),i+e+o}var zs=function(){return g(function t(){v(this,t)},[{key:"supports",value:function(t){return t instanceof Map||ia(t)}},{key:"create",value:function(){return new Gs}}])}(),Gs=function(){return g(function t(){v(this,t),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},[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)}},{key:"forEachPreviousItem",value:function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}},{key:"forEachChangedItem",value:function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}},{key:"forEachAddedItem",value:function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}},{key:"forEachRemovedItem",value:function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}},{key:"diff",value:function(t){if(t){if(!(t instanceof Map||ia(t)))throw new Error("Error trying to diff '".concat(p(t),"'. Only maps and objects are allowed"))}else t=new Map;return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,i){if(n&&n.key===i)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var o=e._getOrCreateRecordForKey(i,t);n=e._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(t,e){if(t){var 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}},{key:"_getOrCreateRecordForKey",value:function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var i=n._prev,o=n._next;return i&&(i._next=o),o&&(o._prev=i),n._next=null,n._prev=null,n}var r=new Bs(t);return this._records.set(t,r),r.currentValue=e,this._addToAdditions(r),r}},{key:"_reset",value:function(){if(this.isDirty){var 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}}},{key:"_maybeAddToChanges",value:function(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}},{key:"_addToAdditions",value:function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}},{key:"_addToChanges",value:function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}},{key:"_forEach",value:function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})}}])}(),Bs=g(function t(e){v(this,t),this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null});function Hs(){return new Ys([new Ds])}var Ys=function(){var t=function(){function t(e){v(this,t),this.factories=e}return g(t,[{key:"find",value:function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat(function(t){return t.name||typeof t}(t),"'"))}}],[{key:"create",value:function(e,n){if(null!=n){var i=n.factories.slice();e=e.concat(i)}return new t(e)}},{key:"extend",value:function(e){return{provide:t,useFactory:function(n){return t.create(e,n||Hs())},deps:[[t,new Yn,new Hn]]}}}])}();return t.\u0275prov=A({token:t,providedIn:"root",factory:Hs}),t}();function Qs(){return new Js([new zs])}var Js=function(){var t=function(){function t(e){v(this,t),this.factories=e}return g(t,[{key:"find",value:function(t){var e=this.factories.find(function(e){return e.supp
1orts(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '".concat(t,"'"))}}],[{key:"create",value:function(e,n){if(n){var i=n.factories.slice();e=e.concat(i)}return new t(e)}},{key:"extend",value:function(e){return{provide:t,useFactory:function(n){return t.create(e,n||Qs())},deps:[[t,new Yn,new Hn]]}}}])}();return t.\u0275prov=A({token:t,providedIn:"root",factory:Qs}),t}();function Ws(t,e,n,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var r=e[n.index];if(null!==r&&i.push(qt(r)),bt(r))for(var a=10;a<r.length;a++){var s=r[a],c=s[1].firstChild;null!==c&&Ws(s[1],s,c,i)}var l=n.type;if(8&l)Ws(t,e,n.child,i);else if(32&l)for(var h=$n(n,e),f=void 0;f=h();)i.push(f);else if(16&l){var d=bi(e,n);if(Array.isArray(d))i.push.apply(i,u(d));else{var p=Xn(e[16]);Ws(p[1],p,d,i,!0)}}n=o?n.projectionNext:n.next}return i}var Ks=function(){return g(function t(e,n){v(this,t),this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1},[{key:"rootNodes",get:function(){var t=this._lView,e=t[1];return Ws(e,t,e.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(t){this._lView[8]=t}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var t=this._lView[3];if(bt(t)){var e=t[8],n=e?e.indexOf(this):-1;n>-1&&(ai(t,n),Pn(e,n))}this._attachedToViewContainer=!1}si(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){er(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){_r(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){br(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){ce(!0);try{br(t,e,n)}finally{ce(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,wi(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}])}(),$s=function(t){function e(t){var n;return v(this,e),(n=y(this,e,[t]))._view=t,n}return b(e,t),g(e,[{key:"detectChanges",value:function(){Cr(this._view)}},{key:"checkNoChanges",value:function(){!function(t){ce(!0);try{Cr(t)}finally{ce(!1)}}(this._view)}},{key:"context",get:function(){return null}}])}(Ks),Xs=function(t){return function(t,e,n){if(xt(t)&&!n){var i=Bt(t.index,e);return new Ks(i,i)}return 47&t.type?new Ks(e[16],e):null}(ne(),Xt(),16==(16&t))},tc=function(){var t=g(function t(){v(this,t)});return t.__NG_ELEMENT_ID__=Xs,t}(),ec=[new zs],nc=new Ys([new Ds]),ic=new Js(ec),oc=function(){return sc(ne(),Xt())},rc=function(){var t=g(function t(){v(this,t)});return t.__NG_ELEMENT_ID__=oc,t}(),ac=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e))._declarationLView=t,o._declarationTContainer=n,o.elementRef=i,o}return b(e,t),g(e,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=zo(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Ho(e,n,t),new Ks(n)}}])}(rc);function sc(t,e){return 4&t.type?new ac(e,t,Ms(t,e)):null}var cc=g(function t(){v(this,t)}),uc=g(function t(){v(this,t)}),lc=function(){return gc(ne(),Xt())},hc=function(){var t=g(function t(){v(this,t)});return t.__NG_ELEMENT_ID__=lc,t}(),fc=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e))._lContainer=t,o._hostTNode=n,o._hostLView=i,o}return b(e,t),g(e,[{key:"element",get:function(){return Ms(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new ln(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=Ke(this._hostTNode,this._hostLView);if(Ve(t)){var e=Ge(t,this._hostLView),n=ze(t);return new ln(e[1].data[n+8],e)}return new ln(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=dc(this._lContainer);return null!==e&&e[t]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i}},{key:"createComponent",value:function(t,e,n,i,o){var r=n||this.parentInjector;if(!o&&null==t.ngModule&&r){var a=r.get(cc,null);a&&(o=a)}var s=t.create(r,i,void 0,o);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,i=n[1];if(bt(n[3])){var o=this.indexOf(t);if(-1!==o)this.detach(o);else{var r=n[3],a=new fc(r,r[6],r[3]);a.detach(a.indexOf(t))}}var s=this._adjustIndex(e),c=this._lContainer;!function(t,e,n,i){var o=10+i,r=n.length;i>0&&(n[o-1][4]=e),i<r-10?(e[4]=n[o],On(n,10+i,e)):(n.push(e),e[4]=null),e[3]=n;var a=e[17];null!==a&&n!==a&&function(t,e){var n=t[9];
vendor: 5,561 bytes, line 1
1e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(a,e);var s=e[19];null!==s&&s.insertView(t),e[2]|=128}(i,n,c,s);var u=Ci(s,c),l=n[11],h=di(l,c[7]);return null!==h&&function(t,e,n,i,o,r){i[0]=o,i[6]=e,wi(t,i,n,1,o,r)}(i,c[6],l,n,h,u),t.attachToViewContainerRef(),On(pc(c),s,t),t}},{key:"move",value:function(t,e){return this.insert(t,e)}},{key:"indexOf",value:function(t){var e=dc(this._lContainer);return null!==e?e.indexOf(t):-1}},{key:"remove",value:function(t){var e=this._adjustIndex(t,-1),n=ai(this._lContainer,e);n&&(Pn(pc(this._lContainer),e),si(n[1],n))}},{key:"detach",value:function(t){var e=this._adjustIndex(t,-1),n=ai(this._lContainer,e);return n&&null!=Pn(pc(this._lContainer),e)?new Ks(n):null}},{key:"_adjustIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}}])}(hc);function dc(t){return t[8]}function pc(t){return t[8]||(t[8]=[])}function gc(t,e){var n,i=e[t.index];if(bt(i))n=i;else{var o;if(8&t.type)o=qt(i);else{var r=e[11];o=r.createComment("");var a=Vt(t,e);li(r,di(r,a),o,function(t,e){return Ut(t)?t.nextSibling(e):e.nextSibling}(r,a),!1)}e[t.index]=n=pr(i,e,o,t),yr(e,n)}return new fc(n,t,e)}var mc={},vc=function(t){function e(t){var n;return v(this,e),(n=y(this,e)).ngModule=t,n}return b(e,t),g(e,[{key:"resolveComponentFactory",value:function(t){var e=vt(t);return new bc(e,this.ngModule)}}])}(Os);function yc(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var _c=new _n("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return _o}}),bc=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e)).componentDef=t,i.ngModule=n,i.componentType=t.type,i.selector=t.selectors.map(Io).join(","),i.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],i.isBoundToModule=!!n,i}return b(e,t),g(e,[{key:"inputs",get:function(){return yc(this.componentDef.inputs)}},{key:"outputs",get:function(){return yc(this.componentDef.outputs)}},{key:"create",value:function(t,e,n,i){var o,r,a=(i=i||this.ngModule)?function(t,e){return{get:function(n,i,o){var r=t.get(n,mc,o);return r!==mc||i===mc?r:e.get(n,i,o)}}}(t,i.injector):t,s=a.get(Es,Zt),c=a.get(Rs,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=n?function(t,e,n){if(Ut(t))return t.selectRootElement(e,n===H.ShadowDom);var i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(u,n,this.componentDef.encapsulation):oi(s.createRenderer(null,this.componentDef),l,function(t){var e=t.toLowerCase();return"svg"===e?Lt:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:_o,clean:wr,playerHandler:null,flags:0},p=tr(0,null,null,1,0,null,null,null,null,null),g=zo(null,p,d,f,null,null,s,u,c,a);_e(g);try{var m=function(t,e,n,i,o,r){var a=n[1];n[20]=t;var s=Go(a,20,2,"#host",null),c=s.mergedAttrs=e.hostAttrs;null!==c&&(Sr(s,c,!0),null!==t&&(Fe(o,t,c),null!==s.classes&&Mi(o,t,s.classes),null!==s.styles&&Pi(o,t,s.styles)));var u=i.createRenderer(t,e),l=zo(n,Xo(e),null,e.onPush?64:16,n[20],s,i,u,null,null);return a.firstCreatePass&&($e(Qe(s,n),a,e.type),sr(a,s),ur(s,n.length,1)),yr(n,l),n[20]=l}(h,this.componentDef,g,s,u);if(h)if(n)Fe(u,h,["ng-version",Ls.full]);else{var v=function(t){for(var e=[],n=[],i=1,o=2;i<t.length;){var r=t[i];if("string"==typeof r)2===o?""!==r&&e.push(r,t[++i]):8===o&&n.push(r);else{if(!ko(o))break;o=r}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]),y=v.attrs,_=v.classes;y&&Fe(u,h,y),_&&_.length>0&&Mi(u,h,_.join(" "))}if(r=zt(p,20),void 0!==e)for(var b=r.projection=[],C=0;C<this.ngContentSelectors.length;C++){var x=e[C];b.push(null!=x?Array.from(x):null)}o=function(t,e,n,i,o){var r=n[1],a=function(t,e,n){var i=ne();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),lr(t,i,e,Bo(t,e,1,null),n));var o=sn(e,t,i.directiveStart,i);Wn(o,e);var r=Vt(i,e);return r&&Wn(r,e),o}(r,n,e);if(i.components.push(a),t[8]=a,o&&o.forEach(function(t){return t(a,e)}),e.contentQueries){var s=ne();e.contentQueries(1,a,s.directiveStart)}var c=ne();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Me(c.index),rr(n[1],c,0,c.directiveStart,c.directiveEnd,e),ar(e,a)),a}(m,this.componentDef,g,d,[Yr]),Ho(p,g,null)}finally{Oe()}return new Cc(this.componentType,o,Ms(r,g),g,r)}}])}(xs),Cc=function(t){function e(t,n,i,o,r){var a;return v(this,e),(a=y(this,e)).location=i,a._rootLView=o,a._tNode=r,a.instance=n,a.hostView=a.changeDetectorRef=new $s(o),a.componentType=t,a}return b(e,t),g(e,[{key:"injector",get:function(){return new ln(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(t){this.hostView.onDestroy(t)}}])}(g(function t(){v(this,t)})),xc=new Map,wc=function(t){function e(t,n){var i;v(this,e),(i=y(this,e))._parent=n,i._bootstrapComponents=[],i.injector=_(i),i.destroyCbs=[],i.componentFactoryResolver=new vc(_(i));var o=yt(t),r=t[it]||null;return r&&ds(r),i._bootstrapComponents=bo(o.bootstrap),i._r3Injector=Fr(t,n,[{provide:cc,useValue:i},{provide:Os,useValue:i.componentFactoryResolver}],p(t)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(t),i}return b(e,t),g(e,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hr.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j.Default;return t===Hr||t===cc||t===Ar?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;
1!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}])}(cc),Oc=function(t){function e(t){var n;return v(this,e),(n=y(this,e)).moduleType=t,null!==yt(t)&&function(t){var e=new Set;!function t(n){var i=yt(n,!0),o=i.id;null!==o&&(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(p(e)," vs ").concat(p(e.name)))}(o,xc.get(o),n),xc.set(o,n));var r,a=h(bo(i.imports));try{for(a.s();!(r=a.n()).done;){var s=r.value;e.has(s)||(e.add(s),t(s))}}catch(c){a.e(c)}finally{a.f()}}(t)}(t),n}return b(e,t),g(e,[{key:"create",value:function(t){return new wc(this.moduleType,t)}}])}(uc);function Pc(t,e,n){var i=ue()+t,o=Xt();return o[i]===Ro?oa(o,i,n?e.call(n):e()):function(t,e){return t[e]}(o,i)}function Mc(t,e,n,i){return Sc(Xt(),ue(),t,e,n,i)}function kc(t,e,n,i,o){return function(t,e,n,i,o,r,a){var s=e+n;return function(t,e,n,i){var o=ra(t,e,n);return ra(t,e+1,i)||o}(t,s,o,r)?oa(t,s+2,a?i.call(a,o,r):i(o,r)):Tc(t,s+2)}(Xt(),ue(),t,e,n,i,o)}function Tc(t,e){var n=t[e];return n===Ro?void 0:n}function Sc(t,e,n,i,o,r){var a=e+n;return ra(t,a,o)?oa(t,a+1,r?i.call(r,o):i(o)):Tc(t,a+1)}function Ec(t,e){var n,i=te(),o=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var i=e[n];if(t===i.name)return i}throw new k("302","The pipe '".concat(t,"' could not be found!"))}(e,i.pipeRegistry),i.data[o]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(o,n.onDestroy)):n=i.data[o];var r=n.factory||(n.factory=Mt(n.type)),a=V(la);try{var s=He(!1),c=r();return He(s),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(i,Xt(),o,c),c}finally{V(a)}}function Ac(t,e,n){var i=t+20,o=Xt(),r=Gt(o,i);return function(t,e){return ea.isWrapped(e)&&(e=ea.unwrap(e),t[Kt.lFrame.bindingIndex]=Ro),e}(o,function(t,e){return t[1].data[e].pure}(o,i)?Sc(o,ue(),e,r.transform,n,r):r.transform(n))}function Ic(t){return function(e){setTimeout(t,void 0,e)}}var Rc=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v(this,e),(t=y(this,e)).__isAsync=n,t}return b(e,t),g(e,[{key:"emit",value:function(t){a(e,"next",this,3)([t])}},{key:"subscribe",value:function(t,n,i){var o,s,c,u=t,l=n||function(){return null},h=i;if(t&&"object"==typeof t){var f=t;u=null===(o=f.next)||void 0===o?void 0:o.bind(f),l=null===(s=f.error)||void 0===s?void 0:s.bind(f),h=null===(c=f.complete)||void 0===c?void 0:c.bind(f)}this.__isAsync&&(l=Ic(l),u&&(u=Ic(u)),h&&(h=Ic(h)));var d=a(e,"subscribe",this,3)([{next:u,error:l,complete:h}]);return t instanceof r.w&&t.add(d),d}}])}(o.xQ);function Nc(){return this._results[ta()]()}var Lc=function(){return g(function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];v(this,t),this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=ta(),i=t.prototype;i[n]||(i[n]=Nc)},[{key:"changes",get:function(){return this._changes||(this._changes=new Rc)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){var n=this;n.dirty=!1;var i=xn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(var i=0;i<t.length;i++){var 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])}},{key:"notifyOnChanges",value:function(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}])}();
1Symbol;var Dc=function(){function t(e){v(this,t),this.queryList=e,this.matches=null}return g(t,[{key:"clone",value:function(){return new t(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}])}(),Fc=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,t),this.queries=e}return g(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var i=null!==e.contentQueries?e.contentQueries[0]:n.length,o=[],r=0;r<i;r++){var a=n.getByIndex(r);o.push(this.queries[a.indexInDeclarationView].clone())}return new t(o)}return null}},{key:"insertView",value:function(t){this.dirtyQueriesWithMatches(t)}},{key:"detachView",value:function(t){this.dirtyQueriesWithMatches(t)}},{key:"dirtyQueriesWithMatches",value:function(t){for(var e=0;e<this.queries.length;e++)null!==Kc(t,e).matches&&this.queries[e].setDirty()}}])}(),Uc=g(function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;v(this,t),this.predicate=e,this.flags=n,this.read=i}),Zc=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,t),this.queries=e}return g(t,[{key:"elementStart",value:function(t,e){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}},{key:"elementEnd",value:function(t){for(var e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}},{key:"embeddedTView",value:function(e){for(var n=null,i=0;i<this.length;i++){var o=null!==n?n.length:0,r=this.getByIndex(i).embeddedTView(e,o);r&&(r.indexInDeclarationView=i,null!==n?n.push(r):n=[r])}return null!==n?new t(n):null}},{key:"template",value:function(t,e){for(var n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}},{key:"getByIndex",value:function(t){return this.queries[t]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(t){this.queries.push(t)}}])}(),qc=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;v(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return g(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i<n.length;i++){var o=n[i];this.matchTNodeWithReadOption(t,e,jc(e,o)),this.matchTNodeWithReadOption(t,e,an(e,t,o,!1,!1))}else n===rc?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,an(e,t,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(t,e,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===Ts||i===hc||i===rc&&4&e.type)this.addMatch(e.index,-2);else{var o=an(e,t,i,!1,!1);null!==o&&this.addMatch(e.index,o)}else this.addMatch(e.index,n)}}},{key:"addMatch",value:function(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}])}();function jc(t,e){var n=t.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function Vc(t,e,n,i){return-1===n?function(t,e){return 11&t.type?Ms(t,e):4&t.type?sc(t,e):null}(e,t):-2===n?function(t,e,n){return n===Ts?Ms(e,t):n===rc?sc(e,t):n===hc?gc(e,t):void 0}(t,e,i):sn(t,t[1],n,e)}function zc(t,e,n,i){var o=e[19].queries[i];if(null===o.matches){for(var r=t.data,a=n.matches,s=[],c=0;c<a.length;c+=2){var u=a[c];s.push(u<0?null:Vc(e,r[u],a[c+1],n.metadata.read))}o.matches=s}return o.matches}function Gc(t,e,n,i){var o=t.queries.getByIndex(n),r=o.matches;if(null!==r)for(var a=zc(t,e,o,n),s=0;s<r.length;s+=2){var c=r[s];if(c>0)i.push(a[s/2]);else{for(var u=r[s+1],l=e[-c],h=10;h<l.length;h++){var f=l[h];f[17]===f[3]&&Gc(f[1],f,u,i)}if(null!==l[9])for(var d=l[9],p=0;p<d.length;p++){var g=d[p];Gc(g[1],g,u,i)}}}return i}function Bc(t){var e=Xt(),n=te(),i=ge();me(i+1);var o=Kc(n,i);if(t.dirty&&Ht(e)===(2==(2&o.metadata.flags))){if(null===o.matches)t.reset([]);else{var r=o.crossesNgTemplate?Gc(n,e,i,[]):zc(n,e,o,i);t.reset(r,Ss),t.notifyOnChanges()}return!0}return!1}function Hc(t,e,n){var i=te();i.firstCreatePass&&(Wc(i,new Uc(t,e,n),-1),2==(2&e)&&(i.staticViewQueries=!0)),Jc(i,Xt(),e)}function Yc(t,e,n,i){var o=te();if(o.firstCreatePass){var r=ne();Wc(o,new Uc(e,n,i),r.index),function(t,e){var 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)}Jc(o,Xt(),n)}function Qc(){return t=Xt(),e=ge(),t[19].queries[e].queryList;var t,e}
1function Jc(t,e,n){var i=new Lc(4==(4&n));er(t,e,i,i.destroy),null===e[19]&&(e[19]=new Fc),e[19].queries.push(new Dc(i))}function Wc(t,e,n){null===t.queries&&(t.queries=new Zc),t.queries.track(new qc(e,n))}function Kc(t,e){return t.queries.getByIndex(e)}function $c(t,e){return sc(t,e)}var Xc=yn("HostBinding",function(t){return{hostPropertyName:t}}),tu=yn("HostListener",function(t,e){return{eventName:t,args:e}}),eu=new _n("Application Initializer"),nu=function(){var t=function(){return g(function t(e){var n=this;v(this,t),this.appInits=e,this.resolve=Ps,this.reject=Ps,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,e){n.resolve=t,n.reject=e})},[{key:"runInitializers",value:function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var i=function(){var n=t.appInits[o]();if(_a(n))e.push(n);else if(Ca(n)){var i=new Promise(function(t,e){n.subscribe({complete:t,error:e})});e.push(i)}},o=0;o<this.appInits.length;o++)i();Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}}}])}();return t.\u0275fac=function(e){return new(e||t)(Zn(eu,8))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t}(),iu=new _n("AppId"),ou={provide:iu,useFactory:function(){return"".concat(ru()).concat(ru()).concat(ru())},deps:[]};function ru(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var au=new _n("Platform Initializer"),su=new _n("Platform ID"),cu=new _n("appBootstrapListener"),uu=function(){var t=function(){return g(function t(){v(this,t)},[{key:"log",value:function(t){console.log(t)}},{key:"warn",value:function(t){console.warn(t)}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t}(),lu=new _n("LocaleId"),hu=new _n("DefaultCurrencyCode"),fu=g(function t(e,n){v(this,t),this.ngModuleFactory=e,this.componentFactories=n}),du=function(t){return new Oc(t)},pu=du,gu=function(t){return Promise.resolve(du(t))},mu=function(t){var e=du(t),n=bo(yt(t).declarations).reduce(function(t,e){var n=vt(e);return n&&t.push(new bc(n)),t},[]);return new fu(e,n)},vu=mu,yu=function(t){return Promise.resolve(mu(t))},_u=function(){var t=function(){return g(function t(){v(this,t),this.compileModuleSync=pu,this.compileModuleAsync=gu,this.compileModuleAndAllComponentsSync=vu,this.compileModuleAndAllComponentsAsync=yu},[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(t){}},{key:"getModuleId",value:function(t){}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t}(),bu=Promise.resolve(0);function Cu(t){"undefined"==typeof Zone?bu.then(function(){t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}var xu=function(){function t(e){var n=e.enableLongStackTrace,i=void 0!==n&&n,o=e.shouldCoalesceEventChangeDetection,r=void 0!==o&&o,a=e.shouldCoalesceRunChangeDetection,s=void 0!==a&&a;if(v(this,t),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Rc(!1),this.onMicrotaskEmpty=new Rc(!1),this.onStable=new Rc(!1),this.onError=new Rc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var c=this;c._nesting=0,c._outer=c._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(c._inner=c._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(c._inner=c._inner.fork(Zone.longStackTraceZoneSpec)),c.shouldCoalesceEventChangeDetection=!s&&r,c.shouldCoalesceRunChangeDetection=s,c.lastRequestAnimationFrameId=-1,c.nativeRequestAnimationFrame=function(){var t=W.requestAnimationFrame,e=W.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){var n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);var i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){var e=function(){!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(W,function(){t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){t.lastRequestAnimationFrameId=-1,Pu(t),t.isCheckStableRunning=!0,Ou(t),t.isCheckStableRunning=!1},void 0,function(){},function(){})),t.fakeTopEventTask.invoke()}),Pu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(n,i,o,r,a,s){try{return Mu(t),n.invokeTask(o,r,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),ku(t)}},onInvoke:function(n,i,o,r,a,s,c){try{return Mu(t),n.invoke(o,r,a,s,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),ku(t)}},onHasTask:function(e,n,i,o){e.hasTask(i,o),n===i&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,Pu
1(t),Ou(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:function(e,n,i,o){return e.handleError(i,o),t.runOutsideAngular(function(){return t.onError.emit(o)}),!1}})}(c)}return g(t,[{key:"run",value:function(t,e,n){return this._inner.run(t,e,n)}},{key:"runTask",value:function(t,e,n,i){var o=this._inner,r=o.scheduleEventTask("NgZoneEvent: "+i,t,wu,Ps,Ps);try{return o.runTask(r,e,n)}finally{o.cancelTask(r)}}},{key:"runGuarded",value:function(t,e,n){return this._inner.runGuarded(t,e,n)}},{key:"runOutsideAngular",value:function(t){return this._outer.run(t)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}])}(),wu={};function Ou(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(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function Pu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Mu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ku(t){t._nesting--,Ou(t)}var Tu=function(){return g(function t(){v(this,t),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Rc,this.onMicrotaskEmpty=new Rc,this.onStable=new Rc,this.onError=new Rc},[{key:"run",value:function(t,e,n){return t.apply(e,n)}},{key:"runGuarded",value:function(t,e,n){return t.apply(e,n)}},{key:"runOutsideAngular",value:function(t){return t()}},{key:"runTask",value:function(t,e,n,i){return t.apply(e,n)}}])}(),Su=function(){var t=function(){return g(function t(e){var n=this;v(this,t),this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})},[{key:"_watchAngularEvents",value:function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){xu.assertNotInAngularZone(),Cu(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var t=this;if(this.isStable())Cu(function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1});else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(t){return{source:t.source,creationLocation:t.creationLocation,data:t.data}}):[]}},{key:"addCallback",value:function(t,e,n){var i=this,o=-1;e&&e>0&&(o=setTimeout(function(){i._callbacks=i._callbacks.filter(function(t){return t.timeoutId!==o}),t(i._didWork,i.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})}},{key:"whenStable",value:function(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()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}])}();return t.\u0275fac=function(e){return new(e||t)(Zn(xu))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t}(),Eu=function(){var t=function(){return g(function t(){v(this,t),this._applications=new Map,Ru.addToWindow(this)},[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ru.findTestabilityInTree(this,t,e)}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t}();function Au(t){Ru=t}var Iu,Ru=new(function(){return g(function t(){v(this,t)},[{key:"addToWindow",value:function(t){}}
1,{key:"findTestabilityInTree",value:function(t,e,n){return null}}])}()),Nu=!0,Lu=!1;function Du(){return Lu=!0,Nu}function Fu(){if(Lu)throw new Error("Cannot enable prod mode after platform setup.");Nu=!1}var Uu=new _n("AllowMultipleToken"),Zu=g(function t(e,n){v(this,t),this.name=e,this.token=n});function qu(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(e),o=new _n(i);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=ju();if(!r||r.injector.get(Uu,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var a=n.concat(e).concat({provide:o,useValue:!0},{provide:Rr,useValue:"platform"});!function(t){if(Iu&&!Iu.destroyed&&!Iu.injector.get(Uu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Iu=t.get(Vu);var e=t.get(au,null);e&&e.forEach(function(t){return t()})}(Hr.create({providers:a,name:i}))}return function(t){var e=ju();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function ju(){return Iu&&!Iu.destroyed?Iu:null}var Vu=function(){var t=function(){return g(function t(e){v(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1},[{key:"bootstrapModuleFactory",value:function(t,e){var n=this,i=function(t,e){return"noop"===t?new Tu:("zone.js"===t?void 0:t)||new xu({enableLongStackTrace:Du(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)})}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),o=[{provide:xu,useValue:i}];return i.run(function(){var r=Hr.create({providers:o,parent:n.injector,name:t.moduleType.name}),a=t.create(r),s=a.injector.get(yo,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(function(){var t=i.onError.subscribe({next:function(t){s.handleError(t)}});a.onDestroy(function(){Bu(n._modules,a),t.unsubscribe()})}),function(t,i,o){try{var r=((s=a.injector.get(nu)).runInitializers(),s.donePromise.then(function(){return ds(a.injector.get(lu,fs)||fs),n._moduleDoBootstrap(a),a}));return _a(r)?r.catch(function(e){throw i.runOutsideAngular(function(){return t.handleError(e)}),e}):r}catch(e){throw i.runOutsideAngular(function(){return t.handleError(e)}),e}var s}(s,i)})}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=zu({},n);return function(t,e,n){var i=new Oc(n);return Promise.resolve(i)}(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,i)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Gu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(p(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}])}();return t.\u0275fac=function(e){return new(e||t)(Zn(Hr))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t}();function zu(t,e){return Array.isArray(e)?e.reduce(zu,t):Object.assign(Object.assign({},t),e)}var Gu=function(){var t=function(){return g(function t(e,n,i,o,r){var a=this;v(this,t),this._zone=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var u=new s.y(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),h=new s.y(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){xu.assertNotInAngularZone(),Cu(function(){!a._stable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks&&(a._stable=!0,t.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){xu.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,c.T)(u,h.pipe((0,l.B)()))},[{key:"bootstrap",value:function(t,e){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializer
1s running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof xs?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=function(t){return t.isBoundToModule}(n)?void 0:this._injector.get(cc),r=n.create(Hr.NULL,[],e||n.selector,o),a=r.location.nativeElement,s=r.injector.get(Su,null),c=s&&r.injector.get(Eu);return s&&c&&c.registerApplication(a,s),r.onDestroy(function(){i.detachView(r.hostView),Bu(i.components,r),c&&c.unregisterApplication(a)}),this._loadComponent(r),r}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,n=h(this._views);try{for(n.s();!(e=n.n()).done;){var i;e.value.detectChanges()}}catch(o){n.e(o)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Bu(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(cu,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}])}();return t.\u0275fac=function(e){return new(e||t)(Zn(xu),Zn(Hr),Zn(yo),Zn(Os),Zn(nu))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t}();function Bu(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Hu=g(function t(){v(this,t)}),Yu=g(function t(){v(this,t)}),Qu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ju=function(){var t=function(){return g(function t(e,n){v(this,t),this._compiler=e,this._config=n||Qu},[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,o=i(t.split("#"),2),r=o[0],a=o[1];return void 0===a&&(a="default"),n(8255)(r).then(function(t){return t[a]}).then(function(t){return Wu(t,r,a)}).then(function(t){return e._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(t){var e=i(t.split("#"),2),o=e[0],r=e[1],a="NgFactory";return void 0===r&&(r="default",a=""),n(8255)(this._config.factoryPathPrefix+o+this._config.factoryPathSuffix).then(function(t){return t[r+a]}).then(function(t){return Wu(t,o,r)})}}])}();return t.\u0275fac=function(e){return new(e||t)(Zn(_u),Zn(Yu,8))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t}();function Wu(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var Ku=function(t){return null},$u=qu(null,"core",[{provide:su,useValue:"unknown"},{provide:Vu,deps:[Hr]},{provide:Eu,deps:[]},{provide:uu,deps:[]}]),Xu=[{provide:Gu,useClass:Gu,deps:[xu,Hr,yo,Os,nu]},{provide:_c,deps:[xu],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:nu,useClass:nu,deps:[[new Hn,eu]]},{provide:_u,useClass:_u,deps:[]},ou,{provide:Ys,useFactory:function(){return nc},deps:[]},{provide:Js,useFactory:function(){return ic},deps:[]},{provide:lu,useFactory:function(t){return ds(t=t||"undefined"!=typeof $localize&&$localize.locale||fs),t},deps:[[new Bn(lu),new Hn,new Yn]]},{provide:hu,useValue:"USD"}],tl=function(){var t=g(function t(e){v(this,t)});return t.\u0275fac=function(e){return new(e||t)(Zn(Gu))},t.\u0275mod=ft({type:t}),t.\u0275inj=I({providers:Xu}),t}()},57:function(t,e,n){"use strict";n.d(e,{hO:function(){return N},xv:function(){return M},Dh:function(){return P},HU:function(){return b},GT:function(){return O},sI:function(){return A},on:function(){return T},ss:function(){return C},pX:function(){return w},yq:function(){return S}});var i=n(7771),a=n(3637),s=n(8307),c=n(9673),h=n(9746),d=n(7716),p=n(2329);function m(){}t=n.hmd(t);var y=function(){return g(function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.c;v(this,t),this.zone=e,this.delegate=n},[{key:"now",value:function(){return this.delegate.now()}},{key:"schedule",value:function(t,e,n){var i=this.zone;return this.delegate.schedule(function(e){var n=this;i.runGuarded(function(){t.apply(n,[e])})},e,n)}}])}(),_=function(){return g(function t(e){v(this,t),this.zone=e,this.task=null},[{key:"call",value:function(t,e){var n=this.unscheduleTask.bind(this);return this.task=this.zone.run(function(){return Zone.current.scheduleMacroTask("firebaseZoneBlock",m,{},m,m)}),e.pipe((0,s.b)({next:n,complete:n,error:n})).subscribe(t).add(n)}},{key:"unscheduleTask",value:function(){var t=this;setTimeout(function(){null!=t.task&&"scheduled"===t.task.state&&(t.task.invoke(),t.task=null)},10)}}])}(),b=g(function t(e){v(this,t),this.ngZone=e,this.outsideAngular=e.runOutsideAngular(function(){return new y(Zone.current)}),this.insideAngular=e.run(function(){return new y(Zone.current,a.P)})});function C(t){return function(e){return(e=e.lift(new _(t.ngZone))).pipe((0,c.R)(t.outsideAngular),(0,h.QV)(t.insideAngular))}}var x=["ngOnDestroy"],w=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new Proxy(t,{get:function(o,r){return n.runOutsideAngular(function(){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(x.indexOf(r)>-1)return function(){};var a=e.toPromise().then(function(t){var e=t&&t[r];return"function"==typeof e?e.bind(t):e&&e.then?e.then(function(t){return n.run(function(){return t})}):n.run(function(){return e})});return new Proxy(function(){},{get:function(t,e){return a[e]},apply:function(t,e,n){return a.then(function(t){var e,o=t&&t.apply(void 0,u(n));return(null===(e=null==i?void 0:i.spy)||void 0===e?void 0:e.apply)&&i.spy.apply(r,n,o),o})}})})}})},O=function(t,e){e.forEach(function(e){Object.getOwnPropertyNames(e.prototype||e).forEach(function(n){Object.defineProperty(t.prototype,n,Object.getOwnPropertyDescriptor(e.prototype||e,n))})})},P=new d.OlP("angularfire2.app.options"),M=new d.OlP("angularfire2.app.nameOrConfig"),k=new d.GfV("6.1.5");function T(e,n,i){var o="object"==typeof i&&i||{};o.name=o.name||"string"==typeof i&&i||"[DEFAULT]";var r=p.Z.apps.filter(function(t){return t&&t.name===o.name})[0]||n.runOutsideAngular(function(){return p.Z.initializeApp(e,o)});try{JSON.stringify(e)!==JSON.stringify(r.options)&&E("error","".concat(r.name," Firebase App already initialized with different options").concat(t.hot?", you may
1need to reload as Firebase is not HMR aware.":"."))}catch(a){}return r}var S=function(){E("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")},E=function(t){for(var e,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];(0,d.X6Q)()&&"undefined"!=typeof console&&(e=console)[t].apply(e,i)};function A(e,n,i,a,s){var c,h=globalThis.\u0275AngularfireInstanceCache.get(e)||[],d=r(c=h)||l(c)||f(c)||o(),p=d[0],g=d.slice(1);if(p){try{s.some(function(t,e){var n=g[e];return t&&"object"==typeof t?JSON.stringify(t)!==JSON.stringify(n):t!==n})&&E("error","".concat(n," was already initialized on the ").concat(i.name," Firebase App instance with different settings.").concat(t.hot?" You may need to reload as Firebase is not HMR aware.":""))}catch(m){}return p}var m=a();return globalThis.\u0275AngularfireInstanceCache.set(e,[m].concat(u(s))),m}globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=new Map);var I,R={provide:g(function t(){v(this,t)}),useFactory:T,deps:[P,d.R0b,[new d.FiY,M]]},N=((I=function(){function t(e){v(this,t),p.Z.registerVersion("angularfire",k.full,e.toString()),p.Z.registerVersion("angular",d.q4F.full)}return g(t,null,[{key:"initializeApp",value:function(e,n){return{ngModule:t,providers:[{provide:P,useValue:e},{provide:M,useValue:n}]}}}])}()).\u0275fac=function(t){return new(t||I)(d.LFG(d.Lbi))},I.\u0275mod=d.oAB({type:I}),I.\u0275inj=d.cJS({providers:[R]}),I)},9759:function(t,e,n){"use strict";var i,o,r=n(7582),a=n(4685),s=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 a.LL("app","Firebase",u),h="@firebase/app",f="[DEFAULT]",d=((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),p=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,a.p$)(t),this.container=new s.H0(e.name),this._addComponent(new s.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=f),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=f),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(t){try{this.container.addComponent(t)}catch(e){p.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=f);var s=r.name;if("string"!=typeof s||!s)throw l.create("bad-app-name",{appName:String(s)});if((0,a.r3)(e,s))throw l.create("duplicate-app",{appName:s});var c=new t(n,r,i);return e[s]=c,c},app:o,registerVersion:function(t,e,n){var i,o=null!==(i=d[t])&&void 0!==i?i:t;n&&(o+="-"+n);var a=o.match(/\s|\//),c=e.match(/\s|\//);if(a||c){var u=['Unable to register library "'+o+'" with version "'+e+'":'];return a&&u.push('library name "'+o+'" contains illegal characters (whitespace or "/")'),a&&c&&u.push("and"),c&&u.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void p.warn(u.join(" "))}r(new s.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,a.r3)(e,t=t||f))throw l.create("no-app",{appName:t});return e[t]}function r(r){var s=r.name;if(n.has(s))return p.debug("There were multiple attempts to register component "+s+"."),"PUBLIC"===r.type?i[s]:null;if(n.set(s,r),"PUBLIC"===r.type){var c=function(t){if(void 0===t&&(t=o()),"function"!=typeof t[s])throw l.create("invalid-app-argument",{appName:s});return t[s]()};void 0!==r.serviceProps&&(0,a.ZB)(c,r.serviceProps),i[s]=c,t.prototype[s]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._getService.bind(this,s).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[s]: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,a.ZB)(e,t)},createSubscribe:a.ne,ErrorFactory:a.LL,deepExtend:a.ZB}),e}(),v=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,a.jU)()&&void 0!==self.firebase){p.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&&p.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 _=m.initializeApp;m.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,a.UG)()&&p.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 '),_.apply(void 0,t)};var b,C=m;(b=C).INTERNAL.registerComponent(new s.wA("platform-logger",function(t){return new v(t)},"PRIVATE")),b.registerVersion(h,"0.6.30",void 0),b.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}(),a="[DEFAULT]",s=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:a})}catch(h){}try{for(var o=(0,i.XA)(this.instancesDeferred.entries()),r=o.next();!r.done;r=o.next()){var s=(0,i.CR)(r.value,2),c=s[1],u=this.normalizeInstanceIdentifier(s[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=a),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=a),this.instances.has(t)},t.prototype.getOptions=function(t){return void 0===t&&(t=a),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,a=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(a))throw Error(this.name+"("+a+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var s=this.getOrInitializeService({instanceIdentifier:a,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];a===this.normalizeInstanceIdentifier(l[0])&&h.resolve(s)}}catch(f){e={error:f}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return s},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 a=(0,i.XA)(r),s=a.next();!s.done;s=a.next()){var c=s.value;try{c(t,e)}catch(u){}}}catch(u){n={error:u}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}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=a),this.component?this.component.multipleInstances?t:a:t},t.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},t}();function c(t){return t===a?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 s(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],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}n.d(e,{in:function(){return s},Yd:function(){return f},Ub:function(){return d},Am:function(){return p}});var o,r,a=[],s=((r=s||(s={}))[r.DEBUG=0]="DEBUG",r[r.VERBOSE=1]="VERBOSE",r[r.INFO=2]="INFO",r[r.WARN=3]="WARN",r[r.ERROR=4]="ERROR",r[r.SILENT=5]="SILENT",s),c={debug:s.DEBUG,verbose:s.
1VERBOSE,info:s.INFO,warn:s.WARN,error:s.ERROR,silent:s.SILENT},u=s.INFO,l=((o={})[s.DEBUG]="log",o[s.VERBOSE]="log",o[s.INFO]="info",o[s.WARN]="warn",o[s.ERROR]="error",o),h=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(),a=l[e];if(!a)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")");console[a].apply(console,i(["["+r+"] "+t.name+":"],n))}},f=function(){function t(t){this.name=t,this._logLevel=u,this._logHandler=h,this._userLogHandler=null,a.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?c[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){a.forEach(function(e){e.setLogLevel(t)})}function p(t,e){for(var n=function(n){var i=null;e&&e.level&&(i=c[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=a;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 k},p$:function(){return s},ZB:function(){return c},m9:function(){return E},z$:function(){return f},jU:function(){return g},ru:function(){return m},d:function(){return y},w1:function(){return _},uI:function(){return d},UG:function(){return p},b$:function(){return v},G6:function(){return C},Mn:function(){return b}});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],a=o+1<t.length,s=a?t[o+1]:0,c=o+2<t.length,u=c?t[o+2]:0,l=(15&s)<<2|u>>6,h=63&u;c||(h=64,a||(l=64)),i.push(n[r>>
12],n[(3&r)<<4|s>>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 a=((7&o)<<18|(63&(r=t[n++]))<<12|(63&(s=t[n++]))<<6|63&t[n++])-65536;e[i++]=String.fromCharCode(55296+(a>>10)),e[i++]=String.fromCharCode(56320+(1023&a))}else{r=t[n++];var s=t[n++];e[i++]=String.fromCharCode((15&o)<<12|(63&r)<<6|63&s)}}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++)],a=o<t.length?n[t.charAt(o)]:0,s=++o<t.length?n[t.charAt(o)]:64,c=++o<t.length?n[t.charAt(o)]:64;if(++o,null==r||null==a||null==s||null==c)throw Error();i.push(r<<2|a>>4),64!==s&&(i.push(a<<4&240|s>>2),64!==c&&i.push(s<<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)}}},a=function(t){return function(t){var e=o(t);return r.encodeByteArray(e,!0)}(t).replace(/\./g,"")};function s(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 s=(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[a(JSON.stringify({alg:"none",type:"JWT"})),a(JSON.stringify(s)),""].join(".")}function f(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function d(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(f())}function p(){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 v(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function y(){return f().indexOf("Electron/")>=0}function _(){var t=f();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function b(){return f().indexOf("MSAppHost/")>=0}function C(){return!p()&&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],a=r?O(r,i):"Error",s=this.serviceName+": "+a+" ("+o+").",c=new x(o,s,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 k(t,e){var n=new T(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,a=this.chain_[0],s=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^s&(c^u),r=1518500249):(o=s^c^u,r=1859775393):i<60?(o=s&c|u&(s|c),r=2400959708):(o=s^c^u,r=3395469782);var h=(a<<5|a>>>27)+o+l+r+n[i]&4294967295;l=u,u=c,c=4294967295&(s<<30|s>>>2),s=a,a=h}this.chain_[0]=this.chain_[0]+a&4294967295,this.chain_[1]=this.chain_[1]+s&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 T=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",a="day",s="week",c="month",u="quarter",l="year",h="date",f="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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},v={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,a=e.clone().add(i+(r?-1:1),c);return+(-(i+(n-o)/(r?o-a:a-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:l,w:s,d:a,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",_={};_[y]=g;var b="$isDayjsObject",C=function(t){return t instanceof P||!(!t||!t[b])},x=function t(e,n,i){var o;if(!e)return y;if("string"==typeof e){var r=e.toLowerCase();_[r]&&(o=r),n&&(_[r]=n,o=r);var a=e.split("-");if(!o&&a.length>1)return t(a[0])}else{var s=e.name;_[s]=e,o=s}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=v;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[b]=!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(d);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()!==f},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,f=O.p(t),d=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(a)},p=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,v=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case l:return u?d(1,0):d(31,11);case c:return u?d(1,m):d(0,m+1);case s:var _=this.$locale().weekStart||0,b=(g<_?g+7:g)-_;return d(u?v-b:v+(6-b),m);case a:case h:return p(y+"Hours",0);case r:return p(y+"Minutes",1);case o:return p(y+"Seconds",2);case i:return p(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var s,u=O.p(t),f="set"+(this.$u?"UTC":""),d=(s={},s[a]=f+"Date",s[h]=f+"Date",s[c]=f+"Month",s[l]=f+"FullYear",s[r]=f+"Hours",s[o]=f+"Minutes",s[i]=f+"Seconds",s[n]=f+"Milliseconds",s)[u],p=u===a?this.$D+(e-this.$W):e;if(u===c||u===l){var g=this.clone().set(h,1);g.$d[d](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else d&&this.$d[d](p);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,f=this;n=Number(n);var d=O.p(u),p=function(t){var e=w(f);return O.w(e.date(e.date()+Math.round(t*n)),f)};if(d===c)return this.set(c,this.$M+n);if(d===l)return this.set(l,this.$y+n);if(d===a)return p(1);if(d===s)return p(7);var g=(h={},h[o]=t,h[r]=e,h[i]=1e3,h)[d]||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||f;var i=t||"YYYY-MM-DDTHH:mm:ssZ",o=O.z(this),r=this.$H,a=this.$m,s=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")},d=n.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(p,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 s+1;case"MM":return O.s(s+1,2,"0");case"MMM":return l(n.monthsShort,s,u,3);case"MMMM":return l(u,s);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 d(r,a,!0);case"A":return d(r,a,!1);case"m":return String(a);case"mm":return O.s(a,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,f){var d,p=this,g=O.p(h),m=w(n),v=(m.utcOffset()-this.utcOffset())*t,y=this-m,_=function(){return O.m(p,m)};switch(g){case l:d=_()/12;break;case c:d=_();break;case u:d=_()/3;break;case s:d=(y-v)/6048e5;break;case a:d=(y-v)/864e5;break;case r:d=y/e;break;case o:d=y/t;break;case i:d=y/1e3;break;default:d=y}return f?d:O.a(d)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return _[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",a],["$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=_[y],w.Ls=_,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 a=t[r];a in o||(o[a]={}),o=o[a]}(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 a=n.setTimeout;i.prototype.c=function(t){a(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)s.b(this.a[t]);this.a=null}};var s=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,a=new e(function(t,e){o=t,r=e});return this.Ra(i(t,o),i(n,r)),a},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?s.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),a=i.next();!a.done;a=i.next())o(a.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){a[e]=n,0==--s&&t(a)}}var a=[],s=0;do{a.push(void 0),s++,o(i.value).Ra(r(a.length-1),e),i=n.next()}while(!i.done)})},e});var a=a||{},s=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 f(t){var e=typeof t;return"object"!=e?e:t?Array.isArray(t)?"array":e:"null"}function d(t){var e=f(t);return"array"==e||"object"==e&&"number"==typeof t.length}function p(t){return"function"==f(t)}function g(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function m(t){return Object.prototype.hasOwnProperty.call(t,v)&&t[v]||(t[v]=++y)}var v="closure_uid_"+(1e9*Math.random()>>>0),y=0;function _(t,e,n){return t.call.apply(t.bind,arguments)}function b(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).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 k(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 T,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}T=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 V},function(t){t.reset()});function j(){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 V(){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},V.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},V.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,a=0;a<n;a++)if(a in r){var s=r[a];e.call(void 0,s,a,t)&&(i[o++]=s)}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 W(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 K(t){return Array.prototype.concat.apply([],arguments)}function $(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,at=/\x00/g,st=/[\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=s.navigator;if(lt){var ht=lt.userAgent;if(ht){X=ht;break t}}X=""}function ft(t){return ct(X,t)}function dt(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function pt(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 vt(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||s).Element&&i.Location){var o=i;break t}}catch(a){}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(a){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 _t(t,e){this.a=t===wt&&e||"",this.b=xt}function bt(t){return t instanceof _t&&t.constructor===_t&&t.b===xt?t.a:(D("expected object of type Const, got '"+t+"'"),"type_error:Const")}_t.prototype.ta=!0,_t.prototype.sa=function(){return this.a},_t.prototype.toString=function(){return"Const{"+this.a+"}"};var Ct,xt={},wt={};function Ot(){if(void 0===Ct){var t=null,e=s.trustedTypes;if(e&&e.createPolicy){try{t=e.createPolicy("goog#html",{createHTML:P,createScript:P,createScriptURL:P})}catch(n){s.console&&s.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 "+f(t)),"type_error:TrustedResourceUrl")}function kt(t,e){var n=bt(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(Tt,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 _t?bt(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 Tt=/%{(\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 "+f(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===jt?t:""}qt.prototype.ta=!0,qt.prototype.sa=function(){return this.a.toString()},qt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var jt={};function Vt(t,e,n,i){return t=t instanceof At?t:Ft(t),e=e||s,n=n instanceof _t?bt(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 st.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(et,"&")),-1!=t.indexOf("<")&&(t=t.replace(nt,"<")),-1!=t.indexOf(">")&&(t=t.replace(it,">")),-1!=t.indexOf('"')&&(t=t.replace(ot,""")),-1!=t.indexOf("'")&&(t=t.replace(rt,"'")),-1!=t.indexOf("\0")&&(t=t.replace(at,"�"))),t}function Bt(t){return Bt[" "](t),t}Bt[" "]=h;var Ht,Yt,Qt=ft("Opera"),Jt=ft("Trident")||ft("MSIE"),Wt=ft("Edge"),Kt=Wt||Jt,$t=ft("Gecko")&&!(ct(X.toLowerCase(),"webkit")&&!ft("Edge"))&&!(ft("Trident")||ft("MSIE"))&&!ft("Edge"),Xt=ct(X.toLowerCase(),"webkit")&&!ft("Edge");function te(){var t=s.document;return t?t.documentMode:void 0}t:{var ee="",ne=(Yt=X,$t?/rv:([^\);]+)(\)|;)/.exec(Yt):Wt?/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 a=n[r]||"",s=i[r]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=ut(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||ut(0==a[2].length,0==s[2].length)||ut(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e})}var ae=s.document&&Jt&&(te()||parseInt(Ht,10))||void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(Yt){}var se=!Jt||9<=Number(ae);function ce(t){var e=document;return"string"==typeof t?e.getElementById(t):t}function ue(t,e){dt(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:fe.hasOwnProperty(n)?t.setAttribute(fe[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e})}var le,he,fe={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 de(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(!d(r)||g(r)&&0<r.nodeType)i(r);else{t:{if(r&&"number"==typeof r.length){if(g(r)){var a="function"==typeof r.item||"string"==typeof r.item;break t}if(p(r)){a="function"==typeof r.item;break t}}a=!1}G(a?$(r):r,i)}}}function pe(t,e){return e=String(e),"application/xhtml+xml"===t.contentType&&(e=e.toLowerCase()),t.createElement(e)}function ge(t){s.setTimeout(function(){throw t},0)}function me(t,e){he||function(){if(s.Promise&&s.Promise.resolve){var t=s.Promise.resolve(void 0);he=function(){t.then(_e)}}else he=function(){var t=_e;!p(s.setImmediate)||s.Window&&s.Window.prototype&&!ft("Edge")&&s.Window.prototype.setImmediate==s.setImmediate?(le||(le=function(){var t=s.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!ft("Presto")&&(t=function(){var t=pe(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&&!ft("Trident")&&!ft("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){s.setTimeout(t,0)}}()),le(t)):s.setImmediate(t)}}(),ve||(he(),ve=!0),ye.add(t,e)}var ve=!1,ye=new Z;function _e(){for(var t;t=j();){try{t.a.call(t.b)}catch(e){ge(e)}U(q,t)}ve=!1}function be(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 je))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 ke(t){if(t instanceof be)return t;var e=new be(h);return Ne(e,xe,t),e}
1function Te(t){return new be(function(e,n){n(t)})}function Se(t,e,n){Le(t,e,n,null)||me(x(e,t))}function Ee(t){return new be(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,a=n.b;a&&(a.c||(i++,a.a==t&&(o=a),!(o&&1<i)));a=a.next)o||(r=a);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 be(function(t,r){o.g=e?function(n){try{var o=e.call(i,n);t(o)}catch(a){r(a)}}:t,o.b=n?function(e){try{var o=n.call(i,e);void 0===o&&e instanceof je?r(e):t(o)}catch(a){r(a)}}: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 je||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 be)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(p(o))return function(t,e,n,i,o){function r(t){a||(a=!0,i.call(o,t))}var a=!1;try{e.call(t,function(t){a||(a=!0,n.call(o,t))},r)}catch(s){r(s)}}(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)}be.prototype.then=function(t,e,n){return Re(this,p(t)?t:null,p(e)?e:null,n)},be.prototype.$goog_Thenable=!0,(t=be.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 je(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 je(t){N.call(this,t)}function Ve(){0!=ze&&(Ge[m(this)]=this),this.ya=this.ya,this.pa=this.pa}O(je,N),je.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]}}Ve.prototype.ya=!1,Ve.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(ae),Qe=Jt&&!re("9"),Je=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{s.addEventListener("test",h,e),s.removeEventListener("test",h,e)}catch(n){}return t}();function We(t,e){this.type=t,this.b=this.target=e,this.defaultPrevented=!1}function Ke(t,e){if(We.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($t){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:$e[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}We.prototype.preventDefault=function(){this.defaultPrevented=!0},O(Ke,We);var $e=He({2:"touch",3:"pen",4:"mouse"});Ke.prototype.preventDefault=function(){Ke.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){}},Ke.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 an(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 a=an(t,e,i,o);return-1<a?(e=t[a],n||(e.Qa=!1)):((e=new en(e,this.src,r,!!i,o)).Qa=n,t.pu
1sh(e)),e};var sn="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=bn(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 a=g(o)?!!o.capture:!!o,s=yn(t);if(s||(t[sn]=s=new on(t)),!(n=s.add(e,n,i,a,r)).proxy)if(i=function(){var t=vn,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=a),void 0===o&&(o=!1),t.addEventListener(e.toString(),i,o);else if(t.attachEvent)t.attachEvent(pn(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=bn(n),t&&t[Xe]?wn(t,e,n,g(i)?!!i.capture:!!i,o):ln(t,e,n,!0,i,o)}function fn(t,e,n,i,o){if(Array.isArray(e))for(var r=0;r<e.length;r++)fn(t,e[r],n,i,o);else i=g(i)?!!i.capture:!!i,n=bn(n),t&&t[Xe]?(t=t.v,(e=String(e).toString())in t.a&&-1<(n=an(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=an(e,n,i,o)),(n=-1<t?e[t]:null)&&dn(n))}function dn(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(pn(n),i):e.addListener&&e.removeListener&&e.removeListener(i),(n=yn(e))?(rn(n,t),0==n.b&&(n.src=null,e[sn]=null)):nn(t)}}}function pn(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&&dn(t),n.call(i,e)}function vn(t,e){if(t.wa)return!0;if(!Ye){if(!e)t:{e=["window","event"];for(var n=s,i=0;i<e.length;i++)if(null==(n=n[e[i]])){e=null;break t}e=n}if(e=new Ke(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(a){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 Ke(e,this))}function yn(t){return(t=t[sn])instanceof on?t:null}var _n="__closure_events_fn_"+(1e9*Math.random()>>>0);function bn(t){return p(t)?t:(t[_n]||(t[_n]=function(e){return t.handleEvent(e)}),t[_n])}function Cn(){Ve.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 a=e[r];if(a&&!a.wa&&a.capture==n){var s=a.listener,c=a.Wa||a.src;a.Qa&&rn(t.v,a),o=!1!==s.call(c,i)&&o}}return o&&!i.defaultPrevented}function Pn(t,e,n){if(p(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:s.setTimeout(t,e||0)}function Mn(t){var e=null;return new be(function(n,i){-1==(e=Pn(function(){n(void 0)},t))&&i(Error("Failed to schedule timer."))}).o(function(t){throw s.clearTimeout(e),t})}function kn(t){if(t.X&&"function"==typeof t.X)return t.X();if("string"==typeof t)return t.split("");if(d(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 Tn(t){if(t.Y&&"function"==typeof t.Y)return t.Y();if(!t.X||"function"!=typeof t.X){if(d(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,Ve),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){fn(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 We(t,n);else if(t instanceof We)t.target=t.target||n;else{var o=t;vt(t=new We(i,n),o)}if(o=!0,e)for(var r=e.length-1;0<=r;r--){var a=t.b=e[r];o=On(a,i,!0,t)&&o}if(o=On(a=t.b=n,i,!0,t)&&o,o=On(a,i,!1,t)&&o,e)for(r=0;r<e.length;r++)o=On(a=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=jn(n[2]||""),this.a=jn(n[3]||"",!0),Ln(this,n[4]),this.f=jn(n[5]||"",!0),Dn(this,n[6]||"",!0),this.h=jn(n[7]||"")):(this.i=!!e,this.b=new Jn(null,this.i))}function Nn(t,e,n){t.c=n?jn(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&&(Wn(t),t.c=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&($n(this,e),ti(this,n,t))},t)),t.f=e}(t.b,t.i)):(n||(e=Vn(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 jn(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Vn(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(Vn(e,Gn,!0),":");var n=this.a;return(n||"file"==e)&&(t.push("//"),(e=this.l)&&t.push(Vn(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(Vn(n,"/"==n.charAt(0)?Hn:Bn,!0))),(n=this.b.toString())&&t.pu
1sh("?",n),(n=this.h)&&t.push("#",Vn(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=[],a=0;a<o.length;){var s=o[a++];"."==s?i&&a==o.length&&r.push(""):".."==s?((1<r.length||1==r.length&&""!=r[0])&&r.pop(),i&&a==o.length&&r.push("")):(r.push(s),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 Wn(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 Kn(t){var e=Tn(t);if(void 0===e)throw Error("Keys are undefined");var n=new Jn(null,void 0);t=kn(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 $n(t,e){Wn(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 Wn(t),e=ni(t,e),An(t.a.b,e)}function ti(t,e,n){$n(t,e),0<n.length&&(t.c=null,t.a.set(ni(t,e),$(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){Wn(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){Wn(this),this.a.forEach(function(n,i){G(n,function(n){t.call(e,n,i,this)},this)},this)},t.Y=function(){Wn(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){Wn(this);var e=[];if("string"==typeof t)Xn(this,t)&&(e=K(e,this.a.get(ni(this,t))));else{t=this.a.X();for(var n=0;n<t.length;n++)e=K(e,t[n])}return e},t.set=function(t,e){return Wn(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 a=o;""!==i[r]&&(a+="="+encodeURIComponent(String(i[r]))),t.push(a)}}return this.c=t.join("&")};var ai={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},si=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function ci(t,e){e.push('"',t.replace(si,function(t){var e=ai[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),ai[t]=e),e}),'"')}function ui(){var t=Ti();return Jt&&!!ae&&11==ae||/Edge\/\d+/.test(t)}function li(){return s.window&&s.window.location.href||self&&self.location&&self.location.href||""}function hi(t,e){e=e||s.window;var n="about:blank";t&&(n=It(Dt(t)||Zt)),e.location.href=n}function fi(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<fi(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 di(t){return!!((t=(t||Ti()).toLowerCase()).match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function pi(t){t=t||s.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(a 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=Ti().toLowerCase(),i&&(e.target=i,ct(n,"crios/")&&(e.target="_blank")),Pi(Ti())==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(a){case"width":case"height":case"top":case"left":o.push(a+"="+t[a]);break;case"target":case"noopener":case"noreferrer":break;default:o.push(a+"="+(t[a]?1:0))}var a=o.join(",");if((ft("iPhone")&&!ft("iPod")&&!ft("iPad")||ft("iPad")||ft("iPod"))&&i.navigator&&i.navigator.standalone&&n&&"_self"!=n?(yt(a=pe(document,"A"),"HTMLAnchorElement"),e=e instanceof At?e:Ft(e),a.href=It(e),a.setAttribute("target",n),t.noreferrer&&a.setAttribute("rel","noreferrer"),(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,i,1),a.dispatchEvent(t),a={}):t.noreferrer?(a=Vt("",i,n,a),t=It(e),a&&(Kt&&ct(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),a.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,jt),i=a.document)&&(i.write(function(t){return t instanceof qt&&t.constructor===qt?t.a:(D("expected object of type SafeHtml, got '"+t+"' of type "+f(t)),"type_error:SafeHtml")}(t)),i.close())):(a=Vt(e,i,n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}var mi=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,vi=/^[^@]+@[^@]+$/;function yi(){var t=null;return new be(function(e){"complete"==s.document.readyState?e():(t=function(){e()},hn(window,"load",t))}).o(function(e){throw fn(window,"load",t),e})}function _i(t){return t=t||Ti(),!("file:"!==Ri()&&"ionic:"!==Ri()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function bi(){var t=s.window;try{return!(!t||t==t.top)}catch(e){return!1}}function Ci(){return void 0!==s.WorkerGlobalScope&&"function"==typeof s.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 ki(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=Ti()):"Worker"===i&&(i=Pi(o=Ti())+"-"+i),i+"/JsCore/"+t+"/"+e.join(",")}function Ti(){return s.navigator&&s.navigator.userAgent||""}function Si(t,e){t=t.split("."),e=e||s;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=s.localStorage,e=Ui();if(t)return t.setItem(e,"1"),t.removeItem(e),!ui()||!!s.indexedDB}catch(n){return Ci()&&!!s.indexedDB}return!1}function Ai(){return(Ii()||"chrome-extension:"===Ri()||_i())&&!wi()&&Ei()&&!Ci()}function Ii(){return"http:"===Ri()||"https:"===Ri()}function Ri(){return s.location&&s.location.protocol||null}function Ni(t){return!(di(t=t||Ti())||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||Ti())||t.toLowerCase().match(/iphone|ipad|ipod/))}function qi(){var t=s.___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 ji(t,e){if(t>
1e)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=Ti(),e=xi(),this.b=di(t)||"ReactNative"===e}function Vi(){var t=s.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",s)&&!Si("fireauth.iframe",s))}ji.prototype.get=function(){var t=s.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 Wi(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&Ji(t,n,e[n])}function Ki(t){var e={};return Wi(e,t),e}function $i(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)Ji(e,n,$i(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 ao(t){var e={},n=t[lo],i=t[fo],o=t[po];if(t=to(t[ho]),!o||o!=co&&o!=uo&&!n||o==uo&&!i||o==so&&!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[vo]=t||null,Ji(this,bo,o),Ji(this,_o,$i(e))}O(ro,Xi),ro.prototype.w=function(){var t=ro.bb.w.call(this);return t.phoneNumber=this.phoneNumber,t};var so="REVERT_SECOND_FACTOR_ADDITION",co="EMAIL_SIGNIN",uo="VERIFY_AND_CHANGE_EMAIL",lo="email",ho="mfaInfo",fo="newEmail",po="requestType",go="email",mo="fromEmail",vo="multiFactorInfo",yo="previousEmail",_o="data",bo="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&&To[i]||null,!e||!n||!i)throw new M("argument-error",xo+", "+wo+"and "+Mo+" are required in a valid action code URL.");Wi(this,{apiKey:e,operation:i,code:n,continueUrl:Un(t,Oo)||null,languageCode:Un(t,Po)||null,tenantId:Un(t,ko)||null})}var xo="apiKey",wo="oobCode",Oo="continueUrl",Po="languageCode",Mo="mode",ko="tenantId",To={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:so,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 jo=null;function Vo(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 Vo(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=jo[n];if(null!=o)return o;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}!function(){if(!jo){jo={};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===jo[r]&&(jo[r]=o)}}}();for(var i=0;;){var o=n(-1),r=n(0),a=n(64),s=n(64);if(64===s&&-1===o)break;e(o<<2|r>>4),64!=a&&(e(r<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}(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 a=i[e++],s=((7&o)<<18|(63&r)<<12|(63&a)<<6|63&i[e++])-65536;t[n++]=String.fromCharCode(55296+(s>>10)),t[n++]=String.fromCharCode(56320+(1023&s))}
1else r=i[e++],a=i[e++],t[n++]=String.fromCharCode((15&o)<<12|(63&r)<<6|63&a)}return JSON.parse(t.join(""))}catch(c){}return null}Vo.prototype.T=function(){return this.f},Vo.prototype.l=function(){return this.c},Vo.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[Ko];try{if(n)return e[n]?new e[n](t):new Xo(t);if(void 0!==t[Wo])return new $o(t)}catch(i){}return null}var Wo="idToken",Ko="providerId";function $o(t){var e=t[Ko];if(!e&&t[Wo]){var n=zo(t[Wo]);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){$o.call(this,t),Ji(this,"profile",$i((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?ar:sr}O(Xo,$o),O(tr,Xo),O(er,Xo),O(nr,Xo),O(ir,Xo);var ar="enroll",sr="signin";function cr(){}function ur(t,e){return t.then(function(t){if(t[Ja]){var n=zo(t[Ja]);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 fr(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 dr(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 pr(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:Kn(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 dr(t.providerId,e,t.signInMethod)}catch(n){}}return null}function mr(t,e){this.Qc=e||[],Wi(this,{providerId:t,isOAuthProvider:!0}),this.Jb={},this.qb=(Qo(t)||{}).Ja||null,this.pb=null}function vr(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 _r(){yr.call(this,"facebook.com")}function br(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 _r).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 dr("twitter.com",n,"twitter.com")}function kr(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 Tr(t){return t&&t.email&&t.password?new kr(t.email,t.password,t.signInMethod):null}function Sr(){Wi(this,{providerId:"password",isOAuthProvider:!1})}function Er(t,e){if(!(e=Ar(e)))throw new M("argument-error","Invalid email link!");return new kr(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().")}Wi(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,a=t&&t.pendingToken;try{switch(e){case"google.com":return Or(r,n);case"facebook.com":return br(n);case"github.com":return xr(n);case"twitter.com":return Mr(n,i);default:return n||i||r||a?a?0==e.indexOf("saml.")?new lr(e,a):new dr(e,{pendingToken:a,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new yr(e).credential({idToken:r,accessToken:n,rawNonce:o}):null}}catch(s){return null}}function Ur(t){if(!t.isOAuthProvider)throw new M("invalid-oauth-provider")}function Zr(t,e,n,i,o,r,a){if(this.c=t,this.b=e||null,this.g=n||null,this.f=i||null,this.i=r||null,this.h=a||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&&k(t.error),t.postBody,t.tenantId):null}function jr(){this.b=null,this.a=[]}rr.prototype.Ha=function(){return ke(this.a?this.a:this.b)},rr.prototype.w=function(){return this.type==ar?{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 ms(t,hr(this))},lr.prototype.b=function(t,e){var n=hr(this);return n.idToken=e,vs(t,n)},lr.prototype.c=function(t,e){return ur(ys(t,hr(this)),e)},lr.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},dr.prototype.ka=function(t){return ms(t,pr(this))},dr.prototype.b=function(t,e){var n=pr(this);return n.idToken=e,vs(t,n)},dr.prototype.c=function(t,e){return ur(ys(t,pr(this)),e)},dr.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(vr,mr),O(yr,mr),yr.prototype.Ca=function(t){return Q(this.a,t)||this.a.push(t),this},yr.prototype.Rb=function(){return $(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 dr(this.providerId,n,this.providerId)},O(_r,yr),Ji(_r,"PROVIDER_ID","facebook.com"),Ji(_r,"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"),kr.prototype.ka=function(t){return this.signInMethod==Sr.EMAIL_LINK_SIGN_IN_METHOD?Xs(t,Ms,{email:this.a,oobCode:this.f}):Xs(t,Qs,{email:this.a,password:this.f})},kr.prototype.b=function(t,e){return this.signInMethod==Sr.EMAIL_LINK_SIGN_IN_METHOD?Xs(t,ks,{idToken:e,email:this.a,oobCode:this.f}):Xs(t,qs,{idToken:e,email:this.a,password:this.f})},kr.prototype.c=function(t,e){return ur(this.ka(t),e)},kr.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Wi(Sr,{PROVIDER_ID:"password"}),Wi(Sr,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Wi(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,Xs(t,Ws,n)},Ir.prototype.c=function(t,e){var n=Nr(this);return n.operation="REAUTH",ur(t=Xs(t,Ks,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 ke(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,a=g(t)?t.phoneNumber:t;return o=r&&r.type==ar?r.Ha().then(function(t){return function(t,e){return Xs(t,Vs,e).then(function(t){return t.phoneSessionInfo.sessionInfo})}(n,{idToken:t,phoneEnrollmentInfo:{phoneNumber:a,recaptchaToken:i}})}):r&&r.type==sr?r.Ha().then(function(e){return function(t,e){return Xs(t,zs,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 Xs(t,Us,e)}(n,{phoneNumber:a,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.')})},Wi(Lr,{PROVIDER_ID:"phone"}),Wi(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 Vr,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 Wr(){}function Kr(){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 $r(t,e){t.readyState=e,t.onreadystatechange&&t.onreadystatechange()}function Xr(t,e,n){this.reset(t,e,n,void 0,void 0)}function ta(t){this.f=t,this.b=this.c=this.a=null}function ea(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&&vt(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},Vr=new Qr,O(Wr,Yr),Wr.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new Kr;throw Error("Unsupported browser")},Wr.prototype.b=function(){return{}},(t=Kr.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,$r(this,4)},t.Tb=function(){this.status=500,this.response=this.responseText="",$r(this,4)},t.vc=function(){this.Tb()},t.rc=function(){this.status=200,$r(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},ea.prototype.toString=function(){return this.name};var na=new ea("SEVERE",1e3),ia=new ea("WARNING",900),oa=new ea("CONFIG",700),ra=new ea("FINE",500);function aa(t){return t.c?t.c:t.a?aa(t.a):(D("Root logger has no level set."),null)}ta.prototype.log=function(t,e,n){if(t.value>=aa(this).value)for(p(e)&&(e=e()),t=new Xr(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var sa={},ca=null;function ua(t){var e;
1if(ca||(ca=new ta(""),sa[""]=ca,ca.c=oa),!(e=sa[t])){e=new ta(t);var n=t.lastIndexOf("."),i=t.substr(n+1);(n=ua(t.substr(0,n))).b||(n.b={}),n.b[i]=e,e.a=n,sa[t]=e}return e}function la(t,e){t&&t.log(ra,e,void 0)}function ha(t){this.f=t}function fa(t){Cn.call(this),this.u=t,this.h=void 0,this.readyState=da,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=ua("goog.net.FetchXmlHttp"),this.m=this.c=this.g=null}O(ha,Yr),ha.prototype.a=function(){return new fa(this.f)},ha.prototype.b=function(t){return function(){return t}}({}),O(fa,Cn);var da=0;function pa(t){t.c.read().then(t.pc.bind(t)).catch(t.Va.bind(t))}function ga(t){t.readyState=4,t.g=null,t.c=null,t.m=null,ma(t)}function ma(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function va(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=ya,this.u=this.S=!1}(t=fa.prototype).open=function(t,e){if(this.readyState!=da)throw this.abort(),Error("Error reopening a connection");this.s=t,this.f=e,this.readyState=1,ma(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};t&&(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,ga(this)),this.readyState=da},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,ma(this)),this.a&&(this.readyState=3,ma(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.sc.bind(this),this.Va.bind(this)):void 0!==s.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.m=new TextDecoder,pa(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?ga(this):ma(this),3==this.readyState&&pa(this)}},t.tc=function(t){this.a&&(this.response=this.responseText=t,ga(this))},t.sc=function(t){this.a&&(this.response=t,ga(this))},t.Va=function(t){var e=this.i;e&&e.log(ia,"Failed to fetch url "+this.f,t instanceof Error?t:Error(t)),this.a&&ga(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(ia,"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(ia,"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(fa.prototype,"withCredentials",{get:function(){return"include"===this.h},set:function(t){this.h=t?"include":"same-origin"}}),O(va,Cn);var ya="";va.prototype.b=ua("goog.net.XhrIo");var _a=/^https?$/i,ba=["POST","PUT"];function Ca(t){return"content-type"==t.toLowerCase()}function xa(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,wa(t),Pa(t)}function wa(t){t.J||(t.J=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function Oa(t){if(t.c&&void 0!==a)if(t.C[1]&&4==ka(t)&&2==Ta(t))la(t.b,Sa(t,"Local request error detected and ignored"));else if(t.i&&4==ka(t))Pn(t.Wb,0,t);else if(t.dispatchEvent("readystatechange"),4==ka(t)){la(t.b,Sa(t,"Request complete")),t.c=!1;try{var e,n=Ta(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&&s.self&&s.self.location){var c=s.self.location.protocol;r=c.substr(0,c.length-1)}o=!_a.test(r?r.toLowerCase():"")}e=o}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var u=2<ka(t)?t.a.statusText:""}catch(l){la(t.b,"Can not get status: "+l.message),u=""}t.h=u+" ["+Ta(t)+"]",wa(t)}}finally{Pa(t)}}}function Pa(t,e){if(t.a){Ma(t);var n=t.a,i=t.C[0]?h:null;
1t.a=null,t.C=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=i}catch(o){(t=t.b)&&t.log(na,"Problem encountered resetting onreadystatechange: "+o.message,void 0)}}}function Ma(t){t.a&&t.u&&(t.a.ontimeout=null),t.s&&(s.clearTimeout(t.s),t.s=null)}function ka(t){return t.a?t.a.readyState:0}function Ta(t){try{return 2<ka(t)?t.a.status:-1}catch(e){return-1}}function Sa(t,e){return e+" ["+t.P+" "+t.l+" "+Ta(t)+"]"}function Ea(t){var e=ja;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 Aa(t,e,n){t.a=!0,t.c=n,t.f=!e,La(t)}function Ia(t){if(t.a){if(!t.v)throw new Da(t);t.v=!1}}function Ra(t,e,n,i){t.g.push([e,n,i]),t.a&&La(t)}function Na(t){return Y(t.g,function(t){return p(t[1])})}function La(t){if(t.h&&t.a&&Na(t)){var e=t.h,n=Za[e];n&&(s.clearTimeout(n.a),delete Za[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],a=o[1];if(o=o[2],r=t.f?a: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 s.Promise&&e instanceof s.Promise)&&(i=!0,t.i=!0)}catch(u){e=u,t.f=!0,Na(t)||(n=!0)}}t.c=e,i&&(c=C(t.m,t,!0),i=C(t.m,t,!1),e instanceof Ea?(Ra(e,c,i),e.C=!0):e.then(c,i)),n&&(e=new Ua(e),Za[e.a]=e,t.h=e.a)}function Da(){N.call(this)}function Fa(){N.call(this)}function Ua(t){this.a=s.setTimeout(C(this.c,this),0),this.b=t}(t=va.prototype).Ma=function(){void 0!==a&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",la(this.b,Sa(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},t.abort=function(){this.a&&this.c&&(la(this.b,Sa(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Pa(this))},t.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Pa(this,!0)),va.bb.Da.call(this)},t.Wb=function(){this.ya||(this.N||this.i||this.f?Oa(this):this.Jc())},t.Jc=function(){Oa(this)},t.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case ya: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(na,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(e){return la(this.b,"Can not get response: "+e.message),null}},Ea.prototype.cancel=function(t){if(this.a)this.c instanceof Ea&&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 Fa(this),Ia(this),Aa(this,!1,t))}},Ea.prototype.m=function(t,e){this.i=!1,Aa(this,t,e)},Ea.prototype.then=function(t,e,n){var i,o,r=new be(function(t,e){i=t,o=e});return Ra(this,i,function(t){t instanceof Fa?r.cancel():o(t)}),r.then(t,e,n)},Ea.prototype.$goog_Thenable=!0,O(Da,N),Da.prototype.message="Deferred has already fired",Da.prototype.name="AlreadyCalledError",O(Fa,N),Fa.prototype.message="Deferred was canceled",Fa.prototype.name="CanceledError",Ua.prototype.c=function(){throw delete Za[this.a],this.b};var Za={};function qa(t){var e={},n=e.document||document,i=Mt(t).toString(),o=pe(document,"SCRIPT"),r={Xb:o,Ma:void 0},a=new Ea(r),c=null,h=null!=e.timeout?e.timeout:5e3;return 0<h&&(c=window.setTimeout(function(){Va(o,!0);var t=new Ba(Ga,"Timeout reached for loading script "+i);Ia(a),Aa(a,!1,t)},h),r.Ma=c),o.onload=o.onreadystatechange=function(){o.readyState&&"loaded"!=o.readyState&&"complete"!=o.readyState||(Va(o,e.xd||!1,c),Ia(a),Aa(a,!0,null))},o.onerror=function(){Va(o,!0,c);var t=new Ba(za,"Error while loading script "+i);Ia(a),Aa(a,!1,t)},vt(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!=s?e=l(e.document):(null===u&&(u=l(s.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),a}function ja(){if(this&&this.Xb){var t=this.Xb;t&&"SCRIPT"==t.tagName&&Va(t,!0,this.Ma)}}function Va(t,e,n){null!=n&&s.clearTimeout(n),t.onload=h,t.onerror=h,t.onreadystatechange=h,e&&window.setTimeout(function(){t&&t.parentNode&&t.parentNode.removeChild(t)},0)}var za=0,Ga=1;function Ba(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),N.call(this,n),this.code=t}function Ha(t){this.f=t}function Ya(t,e,n){if(this.c=t,this.l=(t=e||{}).secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=t.secureTokenTimeout||Wa,this.g=gt(t.
1secureTokenHeaders||Ka),this.h=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=t.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.v=t.firebaseTimeout||$a,this.a=gt(t.firebaseHeaders||Xa),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==xi(),!(n=s.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 ha(self):wi()?new Ha(n):new Wr,this.b=null}O(Ba,N),O(Ha,Yr),Ha.prototype.a=function(){return new this.f},Ha.prototype.b=function(){return{}};var Qa,Ja="idToken",Wa=new ji(3e4,6e4),Ka={"Content-Type":"application/x-www-form-urlencoded"},$a=new ji(3e4,6e4),Xa={"Content-Type":"application/json"};function ts(t,e){e?t.a["X-Firebase-Locale"]=e:delete t.a["X-Firebase-Locale"]}function es(t,e){e&&(t.l=ns("https://securetoken.googleapis.com/v1/token",e),t.h=ns("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",e),t.i=ns("https://identitytoolkit.googleapis.com/v2/",e))}function ns(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 is(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 os(t,e,n,i,o,r,a){(function(){var t=Ti();return!((t="Chrome"!=Pi(t)?null:(t=t.match(/\sChrome\/(\d+)/i))&&2==t.length?parseInt(t[1],10):null)&&30>t||Jt&&ae&&!(9<ae))})()||Ci()?t=C(t.u,t):(Qa||(Qa=new be(function(t,e){!function(t,e){((window.gapi||{}).client||{}).request?t():(s[as]=function(){((window.gapi||{}).client||{}).request?t():e(Error("CORS_UNSUPPORTED"))},function(t,e){Ra(t,null,e,void 0)}(qa(kt(rs,{onload:as})),function(){e(Error("CORS_UNSUPPORTED"))}))}(t,e)})),t=C(t.s,t)),t(e,n,i,o,r,a)}Ya.prototype.T=function(){return this.b},Ya.prototype.u=function(t,e,n,i,o,r){if(Ci()&&(void 0===s.fetch||void 0===s.Headers||void 0===s.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 a=new va(this.f);if(r){a.g=Math.max(0,r);var c=setTimeout(function(){a.dispatchEvent("timeout")},r)}xn(a,"complete",function(){c&&clearTimeout(c);var t=null;try{t=JSON.parse(function(t){try{return t.a?t.a.responseText:""}catch(e){return la(t.b,"Can not get responseText: "+e.message),""}}(this))||null}catch(n){t=null}e&&e(t)}),wn(a,"ready",function(){c&&clearTimeout(c),Be(this)}),wn(a,"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():Vr.a(),t.C=function(t){return t.c||(t.c=t.b())}(t.D?t.D:Vr),t.a.onreadystatechange=C(t.Wb,t);try{la(t.b,Sa(t,"Opening Xhr")),t.N=!0,t.a.open(n,String(e),!0),t.N=!1}catch(a){return la(t.b,Sa(t,"Error opening Xhr: "+a.message)),void xa(t,a)}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(d(t)||"string"==typeof t)G(t,e,void 0);else for(var n=Tn(t),i=kn(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=Ca,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]}(r.Y()),i=s.FormData&&e instanceof s.FormData,!Q(ba,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{Ma(t),0<t.g&&(t.u=function(t){return Jt&&re(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(t.a),la(t.b,Sa(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)),la(t.b,Sa(t,"Sending request")),t.i=!0,t.a.send(e),t.i=!1}catch(a){la(t.b,Sa(t,"Send error: "+a.message)),xa(t,a)}}(a,t,n,i,o)};var rs=new _t(wt,"https://apis.google.com/js/client.js?onload=%{onload}"),as="__fcb"+Math.floor(1e6*Math.random()).toString();function ss(t){if("string"!=typeof(t=t.email)||!vi.test(t))throw new M("invalid-email")}function cs(t){"email"in t&&ss(t)}function us(t){if(!t[Ja])throw t.mfaPendingCredential?new M("multi-factor-auth-required",null,gt(t)):new M("internal-error")}function ls(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")}}Ya.prototype.s=function(t,e,n,i,o){var r=this;Qa.then(function(){window.gapi.client.setApiKey(r.c);var a=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(a),e&&e(t)}})}).o(function(t){e&&e({error:{message:t&&t.message||"CORS_UNSUPPORTED"}})})},Ya.prototype.Ab=function(){return Xs(this,js,{})},Ya.prototype.Cb=function(t,e){return Xs(this,Zs,{idToken:t,email:e})},Ya.prototype.Db=function(t,e){return Xs(this,qs,{idToken:t,password:e})};var hs={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function fs(t){if(!t.phoneVerificationInfo)throw new M("internal-error");
1if(!t.phoneVerificationInfo.sessionInfo)throw new M("missing-verification-id");if(!t.phoneVerificationInfo.code)throw new M("missing-verification-code")}function ds(t){if(!t.requestUri||!t.sessionId&&!t.postBody&&!t.pendingToken)throw new M("internal-error")}function ps(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 gs(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;us(t)}function ms(t,e){return e.returnIdpCredential=!0,Xs(t,Gs,e)}function vs(t,e){return e.returnIdpCredential=!0,Xs(t,Hs,e)}function ys(t,e){return e.returnIdpCredential=!0,e.autoCreate=!1,Xs(t,Bs,e)}function _s(t){if(!t.oobCode)throw new M("invalid-action-code")}(t=Ya.prototype).Eb=function(t,e){var n={idToken:t},i=[];return dt(hs,function(t,o){var r=e[o];null===r?i.push(t):o in e&&(n[o]=r)}),i.length&&(n.deleteAttribute=i),Xs(this,Zs,n)},t.wb=function(t,e){return vt(t={requestType:"PASSWORD_RESET",email:t},e),Xs(this,Ns,t)},t.xb=function(t,e){return vt(t={requestType:"EMAIL_SIGNIN",email:t},e),Xs(this,As,t)},t.vb=function(t,e){return vt(t={requestType:"VERIFY_EMAIL",idToken:t},e),Xs(this,Is,t)},t.Fb=function(t,e,n){return vt(t={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:t,newEmail:e},n),Xs(this,Rs,t)},t.gb=function(t){return Xs(this,Js,t)},t.ob=function(t,e){return Xs(this,Fs,{oobCode:t,newPassword:e})},t.Sa=function(t){return Xs(this,Cs,{oobCode:t})},t.kb=function(t){return Xs(this,bs,{oobCode:t})};var bs={endpoint:"setAccountInfo",A:_s,Z:"email",B:!0},Cs={endpoint:"resetPassword",A:_s,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},xs={endpoint:"signupNewUser",A:function(t){if(ss(t),!t.password)throw new M("weak-password")},G:us,V:!0,B:!0},ws={endpoint:"createAuthUri",B:!0},Os={endpoint:"deleteAccount",O:["idToken"]},Ps={endpoint:"setAccountInfo",O:["idToken","deleteProvider"],A:function(t){if(!Array.isArray(t.deleteProvider))throw new M("internal-error")}},Ms={endpoint:"emailLinkSignin",O:["email","oobCode"],A:ss,G:us,V:!0,B:!0},ks={endpoint:"emailLinkSignin",O:["idToken","email","oobCode"],A:ss,G:us,V:!0},Ts={endpoint:"accounts/mfaEnrollment:finalize",O:["idToken","phoneVerificationInfo"],A:fs,G:us,B:!0,Na:!0},Ss={endpoint:"accounts/mfaSignIn:finalize",O:["mfaPendingCredential","phoneVerificationInfo"],A:fs,G:us,B:!0,Na:!0},Es={endpoint:"getAccountInfo"},As={endpoint:"getOobConfirmationCode",O:["requestType"],A:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new M("internal-error");ss(t)},Z:"email",B:!0},Is={endpoint:"getOobConfirmationCode",O:["idToken","requestType"],A:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new M("internal-error")},Z:"email",B:!0},Rs={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},Ns={endpoint:"getOobConfirmationCode",O:["requestType"],A:function(t){if("PASSWORD_RESET"!=t.requestType)throw new M("internal-error");ss(t)},Z:"email",B:!0},Ls={mb:!0,endpoint:"getProjectConfig",Vb:"GET"},Ds={mb:!0,endpoint:"getRecaptchaParam",Vb:"GET",G:function(t){if(!t.recaptchaSiteKey)throw new M("internal-error")}},Fs={endpoint:"resetPassword",A:_s,Z:"email",B:!0},Us={endpoint:"sendVerificationCode",O:["phoneNumber","recaptchaToken"],Z:"sessionInfo",B:!0},Zs={endpoint:"setAccountInfo",O:["idToken"],A:cs,V:!0},qs={endpoint:"setAccountInfo",O:["idToken"],A:function(t){if(cs(t),!t.password)throw new M("weak-password")},G:us,V:!0},js={endpoint:"signupNewUser",G:us,V:!0,B:!0},Vs={endpoint:"accounts/mfaEnrollment:start",O:["idToken","phoneEnrollmentInfo"],A:function(t){if(!t.phoneEnrollmentInfo)throw new M("internal-error");
1if(!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},zs={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},Gs={endpoint:"verifyAssertion",A:ds,Za:ps,G:gs,V:!0,B:!0},Bs={endpoint:"verifyAssertion",A:ds,Za:ps,G:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new M("user-not-found");if(t.errorMessage)throw tc(t.errorMessage);us(t)},V:!0,B:!0},Hs={endpoint:"verifyAssertion",A:function(t){if(ds(t),!t.idToken)throw new M("internal-error")},Za:ps,G:gs,V:!0},Ys={endpoint:"verifyCustomToken",A:function(t){if(!t.token)throw new M("invalid-custom-token")},G:us,V:!0,B:!0},Qs={endpoint:"verifyPassword",A:function(t){if(ss(t),!t.password)throw new M("wrong-password")},G:us,V:!0,B:!0},Js={endpoint:"verifyPhoneNumber",A:ls,G:us,B:!0},Ws={endpoint:"verifyPhoneNumber",A:function(t){if(!t.idToken)throw new M("internal-error");ls(t)},G:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",Hr(t);us(t)}},Ks={Ib:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:ls,G:us,B:!0},$s={endpoint:"accounts/mfaEnrollment:withdraw",O:["idToken","mfaEnrollmentId"],G:function(t){if(!!t[Ja]^!!t.refreshToken)throw new M("internal-error")},B:!0,Na:!0};function Xs(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 Te(new M("internal-error"));var i,o=!!e.Na,r=e.Vb||"POST";return ke(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,a){var s=Zn(e+n);Fn(s,"key",t.c),a&&Fn(s,"cb",Date.now().toString());var c="GET"==i;if(c)for(var u in o)o.hasOwnProperty(u)&&Fn(s,u,o[u]);return new be(function(e,n){os(t,s.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||"",vt(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(ac||(ac=new be(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();s[i]=function(){Si("gapi.load")?n():e(Error("Network Error"))},ke(qa(i=kt(ic,{onload:i}))).o(function(){e(Error("Network Error"))})}}).o(function(t){throw ac=null,t}))).then(function(){return new be(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 _t(wt,"https://apis.google.com/js/api.js?onload=%{onload}"),oc=new ji(3e4,6e4),rc=new ji(5e3,15e3),ac=null;function sc(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 Xs(t,Ls,{}).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],a=n,s=i;if(0==r.indexOf("chrome-extension://")?a=Zn(r).a==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:mi.test(r)?a=a==r:(r=r.split(".").join("\\."),a=new RegExp("^(.+\\."+r+"|"+r+")$","i").test(a)),a){t=!0;break t}}t=!1}if(!t)throw new Gr(li())})}function fc(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 sc(t.s,t.g,t.b,t.f);o.f=e,o.b=n,o.c=$(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",ke(n)}return n.status="ERROR",ke(n)})}(t)})),t.m}function dc(t){return t.l||(t.C=t.c?ki(t.c,uc(t.b)):null,t.l=new Ya(t.g,I(t.i),t.C),t.f&&es(t.l,t.f)),t.l}function pc(t,e,n,i,o,r,a,s,c,u,l,h){return(t=new cc(t,e,n,i,o,h)).l=r,t.g=a,t.i=s,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)}sc.prototype.toString=function(){return this.f?Fn(this.a,"v",this.f):$n(this.a.b,"v"),this.b?Fn(this.a,"eid",this.b):$n(this.a.b,"eid"),this.c.length?Fn(this.a,"fw",this.c.join(",")):$n(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 a=o[r];a in e&&delete e[a]}
1n.qb&&n.pb&&!e[n.qb]&&(e[n.qb]=n.pb),pt(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):$n(t.b,"redirectUrl"),this.g?Fn(t,"eventId",this.g):$n(t.b,"eventId"),this.i?Fn(t,"v",this.i):$n(t.b,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Un(t,s)&&Fn(t,s,this.b[s]);return this.h?Fn(t,"tid",this.h):$n(t.b,"tid"),this.f?Fn(t,"eid",this.f):$n(t.b,"eid"),(s=uc(this.c)).length&&Fn(t,"fw",s.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,a=!1;return this.ma().then(function(){(function(t){var e={type:"webStorageSupport"};return fc(t).then(function(){return function(t,e){return t.sb.then(function(){return new be(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&&pi(t),e(o),a=!0)})}).o(function(){}).then(function(){if(!a)return function(t){return new be(function(e){return function n(){Mn(2e3).then(function(){if(t&&!t.closed)return n();e()})}()})}(t)}).then(function(){if(!a)return Mn(n).then(function(){e(i)})})},t.Yb=function(){var t=Ti();return!Ni(t)&&!Zi(t)},t.Ub=function(){return!1},t.Nb=function(t,e,n,i,o,r,a,s){if(!t)return Te(new M("popup-blocked"));if(a&&!Ni())return this.ma().o(function(e){pi(t),o(e)}),i(),ke();this.a||(this.a=hc(dc(this)));var c=this;return this.a.then(function(){var e=c.ma().o(function(e){throw pi(t),o(e),e});return i(),e}).then(function(){Ur(n),a||hi(pc(c.s,c.g,c.b,e,n,null,r,c.c,void 0,c.i,s,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(dc(this)));var o=this;return this.a.then(function(){Ur(e),hi(pc(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 fc(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){W(this.h,function(e){return e==t})},(t=gc.prototype).get=function(t){return ke(this.a.getItem(t)).then(function(t){return t&&Fi(t)})},t.set=function(t,e){return ke(this.a.setItem(t,Li(e)))},t.U=function(t){return ke(this.a.removeItem(t))},t.ca=function(){},t.ia=function(){};var vc,yc=[];function _c(t,e,n){pt(t.a)&&t.b.addEventListener("message",t.f),void 0===t.a[e]&&(t.a[e]=[]),t.a[e].push(n)}function bc(t){this.a=t}function Cc(t){this.c=t,this.b=!1,this.a=[]}function xc(t,e,n,i){var o,r,a,s,c=n||{},u=null;if(t.b)return Te(Error("connection_unavailable"));var l=i?800:50,h="undefined"!=typeof MessageChannel?new MessageChannel:null;return new be(function(n,i){h?(o=Math.floor(Math.random()*Math.pow(10,20)).toString(),h.port1.start(),a=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(a),s=setTimeout(function(){i(Error("timeout"))},3e3)):"done"===t.data.status?(clearTimeout(s),void 0!==t.data.response?n(t.data.response):i(Error("unknown_error"))):(clearTimeout(a),clearTimeout(s),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()),W(t.a,function(t){return t==e})}}function Oc(){if(!Tc())throw new M("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=s.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}(),_c(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)}})}),_c(this.v,"ping",function(){return ke(["keyChanged"])})):function(){var t=s.navigator;return t&&t.serviceWorker?ke().then(function(){return t.serviceWorker.ready}).then(function(t){return t.active||null}).o(function(){return null}):ke(null)}().then(function(e){(t.h=e)&&(t.g=new Cc(new bc(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 be(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 be(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 kc(t,e){var n=0;return new be(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 Tc(){try{return!!s.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 be(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=s.navigator;return t&&t.serviceWorker&&t.serviceWorker.controller||null}()===t.h?xc(t.g,"keyChanged",{key:e},t.s).then(function(){}).o(function(){}):ke()}function Rc(t){return Mc(t).then(function(t){var e=Sc(Ec(t,!1));return e.getAll?Ac(e.getAll()):new be(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=fi(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=ke().then(function(){if(Tc()){var t=Ui(),i="__sak"+t;
1return vc||(vc=new Oc),(n=vc).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=s.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=jc()||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=jc()||i.Z.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function jc(){try{var t=s.sessionStorage,e=Ui();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Vc(){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(ke().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})})}},bc.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 kc(this,function(e){return Ac((e=Sc(Ec(e,!0))).get(t))}).then(function(o){return kc(n,function(r){if(r=Sc(Ec(r,!0)),o)return o.value=e,Ac(r.put(o));n.b++,i=!0;var a={};return a.fbase_key=t,a.value=e,Ac(r.add(a))})}).then(function(){return n.c[t]=e,Ic(n,t)}).oa(function(){i&&n.b--})},t.get=function(t){return kc(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 kc(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){W(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){W(this.a,function(e){return e==t})},(t=Dc.prototype).get=function(t){return ke(this.a[t])},t.set=function(t,e){return this.a[t]=e,ke()},t.U=function(t){return delete this.a[t],ke()},t.ca=function(){},t.ia=function(){},(t=Fc.prototype).get=function(t){var e=this;return ke().then(function(){return Fi(e.a.getItem(t))})},t.set=function(t,e){var n=this;return ke().then(function(){var i=Li(e);null===i?n.U(t):n.a.setItem(t,i)})},t.U=function(t){var e=this;return ke().then(function(){e.a.removeItem(t)})},t.ca=function(t){s.window&&un(s.window,"storage",t)},t.ia=function(t){s.window&&fn(s.window,"storage",t)},(t=Zc.prototype).get=function(){return ke(null)},t.set=function(){return ke()},t.U=function(){return ke()},t.ca=function(){},t.ia=function(){},(t=qc.prototype).get=function(t){var e=this;return ke().then(function(){return Fi(e.a.getItem(t))})},t.set=function(t,e){var n=this;return ke().then(function(){var i=Li(e);null===i?n.U(t):n.a.setItem(t,i)})},t.U=function(t){var e=this;return ke().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 Wc(){var t=!(Zi(Ti())||!bi()),e=Ni(),n=Ei();this.m=t,this.h=e,this.l=n,this.a={},zc||(zc=new Vc),t=zc;try{this.g=!ui()&&Gi()||!s.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 Kc(){return Gc||(Gc=new Wc),Gc}function $c(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),$c(t,e.F).U(n)}function eu(t){t.c&&(clearInterval(t.c),t.c=null)}function nu(t){this.a=t,this.b=Kc()}(t=Wc.prototype).get=function(t,e){return $c(this,t.F).get(Xc(t,e))},t.set=function(t,e,n){var i=Xc(t,n),o=this,r=$c(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]=s.localStorage.getItem(t)),pt(this.a)&&($c(this,"local").ca(this.f),this.h||(ui()||!Gi())&&s.indexedDB||!this.l||function(t){eu(t),t.c=setInterval(function(){for(var e in t.a){var n=s.localStorage.getItem(e),i=t.b[e];n!=i&&(t.b[e]=n,n=new Ke({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)}
1,t.removeListener=function(t,e,n){t=Xc(t,e),this.a[t]&&(W(this.a[t],function(t){return t==n}),0==this.a[t].length&&delete this.a[t]),pt(this.a)&&($c(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=s.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?$c(this,"local").ia(this.f):eu(this),this.m)if(n=s.localStorage.getItem(e),(i=t.a.newValue)!==n)null!==i?s.localStorage.setItem(e,i):s.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]!==s.localStorage.getItem(e))&&(r.b[e]=s.localStorage.getItem(e),r.nb(e))},Jt&&ae&&10==ae&&s.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=Kc()}function au(t,e){this.b=su,this.f=s.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=e,this.l=s.Int32Array?new Int32Array(64):Array(64),void 0===iu&&(iu=s.Int32Array?new Int32Array(pu):pu),this.reset()}O(au,function(){this.b=-1});for(var su=64,cu=su-1,uu=[],lu=0;lu<cu;lu++)uu[lu]=0;var hu=K(128,uu);function fu(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,a=(0|n[e-7])+(((i=0|n[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)|0;n[e]=r+a|0}i=0|t.a[0],o=0|t.a[1];var s=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 f=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&o^i&s^o&s)|0;a=(r=r+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))|0)+((a=(a=u&l^~u&h)+(0|iu[e])|0)+(0|n[e])|0)|0,r=h,h=l,l=u,u=c+a|0,c=s,s=o,o=i,i=a+f|0}t.a[0]=t.a[0]+i|0,t.a[1]=t.a[1]+o|0,t.a[2]=t.a[2]+s|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 du(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&&(fu(t),o=0);else{if(!d(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&&(fu(t),o=0)}}t.c=o,t.g+=n}au.prototype.reset=function(){this.g=this.c=0,this.a=s.Int32Array?new Int32Array(this.h):$(this.h)};var pu=[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,2756734187,3204031479,3329325298];function gu(){au.call(this,8,mu)}O(gu,au);var mu=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function vu(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 _u(t,e){for(var n=0;n<t.b.length;n++)try{t.b[n](e)}catch(i){}}function bu(t){return t.f||(t.f=t.ma().then(function(){return new be(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))?k(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}_u(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||_u(t,n)})}),r=s.handleOpenURL;s.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(Si("BuildInfo.packageName",s).toLowerCase()+"://")&&e({url:t}),"function"==typeof r)try{r(t)}catch(n){console.error(n)}},zr||(zr=new jr),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",s))&&t(null,e.b))}(e)}(t)})}
1)),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=Kc()}(t=vu.prototype).ma=function(){return this.Ia?this.Ia:this.Ia=(_i(void 0)?yi().then(function(){return new be(function(t,e){var n=s.document,i=setTimeout(function(){e(Error("Cordova framework is not ready."))},1e3);n.addEventListener("deviceready",function(){clearTimeout(i),t()},!1)})}):Te(Error("Cordova must run in an Android or iOS file scheme."))).then(function(){if("function"!=typeof Si("universalLinks.subscribe",s))throw yu("cordova-universal-links-plugin-fix is not installed");if(void 0===Si("BuildInfo.packageName",s))throw yu("cordova-plugin-buildinfo is not installed");if("function"!=typeof Si("cordova.plugins.browsertab.openUrl",s))throw yu("cordova-plugin-browsertab is not installed");if("function"!=typeof Si("cordova.InAppBrowser.open",s))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")),ke()},t.Nb=function(){return Te(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 Te(new M("redirect-operation-pending"));var o=this,r=s.document,a=null,c=null,u=null,l=null;return this.c=ke().then(function(){return Ur(e),bu(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("")}(),a=new Zr(e,i,null,r,new M("no-auth-event"),null,o),c=Si("BuildInfo.packageName",s);if("string"!=typeof c)throw new M("invalid-cordova-configuration");var u=Si("BuildInfo.displayName",s),l={};if(Ti().toLowerCase().match(/iphone|ipad|ipod/))l.ibi=c;else{if(!Ti().toLowerCase().match(/android/))return Te(new M("operation-not-supported-in-this-environment"));l.apn=c}u&&(l.appDisplayName=u),r=function(t){var e=new gu;du(e,t),t=[];var n=8*e.g;du(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(fu(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=pc(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,a.w(),e)}).then(function(){var e=Si("cordova.plugins.browsertab.isAvailable",s);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",s)))throw new M("invalid-cordova-configuration");n(h)}else{if("function"!=typeof(n=Si("cordova.InAppBrowser.open",s)))throw new M("invalid-cordova-configuration");e=Ti(),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 be(function(t,e){c=function(){var e=Si("cordova.plugins.browsertab.close",s);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(){Vi()&&u()},r.addEventListener("resume",u=function(){a||(a=Mn(2e3).then(function(){e(new M("redirect-cancelled-by-user"))}))},!1),Ti().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),a&&a.cancel(),c&&o.Ta(c),o.c=null})},t.Ea=function(t){this.b.push(t),bu(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){W(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,T,this.J)}function Mu(t,e,n,o,r){var a=i.Z.SDK_VERSION||null;
1return _i()?new vu(t,e,n,a,o,r):new lc(t,e,n,a,o,r)}function ku(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 Tu(t){t.a.Yb()&&ku(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()||ju(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(){ku(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)})}):Tu(t)}).o(function(){Tu(t)})}function Eu(t,e){W(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 ju(this.b),e};var Au=new ji(2e3,1e4),Iu=new ji(3e4,6e4);function Ru(t,e,n,i,o,r,a){return t.a.Nb(e,n,i,function(){t.f||(t.f=!0,t.a.Ea(t.l))},function(){t.reset()},o,r,a)}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 be(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 ju(t){t.g||(t.g=!0,Gu(t,!1,null,null))}function Vu(t){t.g&&!t.i&&Gu(t,!1,null,null)}function zu(t,e){if(t.b=function(){return ke(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 Te(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.");Wi(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 Wu(t,e,n){var i=e&&e[$u];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[Ku]||[],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),ke()):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,a=e.T(),s=!!e.c.match(/Redirect$/);n(i,o,a,r).then(function(e){Gu(t,s,e,null)}).o(function(e){Gu(t,s,null,e)})}(this,t,e):Te(new M("invalid-auth-event")):(Gu(this,!1,null,null),ke())}else Te(new M("invalid-auth-event"))},qu.prototype.ra=function(){var t=this;return new be(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),ke()):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):Te(new M("invalid-auth-event"))}else Te(new M("invalid-auth-event"))},Yu.prototype.confirm=function(t){return t=Dr(this.verificationId,t),this.a(t)};var Ku="mfaInfo",$u="mfaPendingCredential";function Xu(t,e,n,i){M.call(this,"multi-factor-auth-required",i,e),this.b=new Wu(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 We.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={};
1if(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)}),al(this,n)}function al(t,e){t.b=e,Ji(t,"enrolledFactors",e)}function sl(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=s.document,e=null;return Vi()||!t?ke():new be(function(n){e=function(){Vi()&&(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[Ja]||""),t.a=e.refreshToken,ll(t,void 0!==(e=e.expiresIn)?Number(e):void 0)}function fl(t,e){this.a=t||null,this.b=e||null,Wi(this,{lastSignInTime:zi(e||null),creationTime:zi(t||null)})}function dl(t,e,n,i,o,r){Wi(this,{uid:t,displayName:i||null,photoURL:o||null,email:n||null,phoneNumber:r||null,providerId:e})}function pl(t,e,n){this.N=[],this.l=t.apiKey,this.m=t.appName,this.s=t.authDomain||null;var o=i.Z.SDK_VERSION?ki(i.Z.SDK_VERSION):null;this.a=new Ya(this.l,I(T),o),(this.u=t.emulatorConfig||null)&&es(this.a,this.u),this.h=new ul(this.a),wl(this,e[Ja]),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 sl(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,es(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&&fn(t.qa,"languageCodeChanged",t.Pa),(t.qa=e)&&un(e,"languageCodeChanged",t.Pa)}function vl(t,e){t.$&&fn(t.$,"emulatorConfigChanged",t.Ba),(t.$=e)&&un(e,"emulatorConfigChanged",t.Ba)}function yl(t,e){t.aa=e,is(t.a,i.Z.SDK_VERSION?ki(i.Z.SDK_VERSION,t.aa):null)}function _l(t,e){t.ja&&fn(t.ja,"frameworkChanged",t.Oa),(t.ja=e)&&un(e,"frameworkChanged",t.Oa)}function bl(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(),fn(t,"tokenChanged",t.ba),un(t,"tokenChanged",t.ba))}function xl(t){fn(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){Wi(t,{uid:e.uid,displayName:e.displayName||null,photoURL:e.photoURL||null,email:e.email||null,emailVerified:e.emailVerified||!1,phoneNumber:e.phoneNumber||null,isAnonymous:e.isAnonymous||!1,tenantId:e.tenantId||null,metadata:new fl(e.createdAt,e.lastLoginAt),providerData:[]}),t.a.b=t.tenantId}function kl(){}function Tl(t){return ke().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){W(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&&(Wi(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 fl(t.a,t.b)}(e.metadata):new fl),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),al(t.S,e.S.b))}function Nl(t){return t.I().then(function(e){var n=t.isAnonymous;return function(t,e){return Xs(t.a,Es,{idToken:e}).then(C(t.Kc,t))}(t,e).then(function(){return n||Il(t,"isAnonymous",!1),e})})}function Ll(t,e){e[Ja]&&t.Aa!=e[Ja]&&(hl(t.h,e),t.dispatchEvent(new ol("tokenChanged")),wl(t,e[Ja]),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 Ki({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 Te(new M("operation-not-supported-in-this-environment"));if(t.i&&!r)return Te(t.i);var a=Qo(n.providerId),s=Ui(t.uid+":::"),c=null;
1(!Ni()||bi())&&t.s&&n.isOAuthProvider&&(c=pc(t.s,t.l,t.m,e,n,null,s,i.Z.SDK_VERSION||null,null,null,t.tenantId,t.u));var u=gi(c,a&&a.va,a&&a.ua);return o=o().then(function(){if(jl(t),!r)return t.I().then(function(){})}).then(function(){return Ru(t.b,u,e,n,s,!!c,t.tenantId)}).then(function(){return new be(function(n,i){t.na(e,null,new M("cancelled-popup-request"),t.g||null),t.f=n,t.C=i,t.g=s,t.c=Du(t.b,t,e,u,s)})}).then(function(t){return u&&pi(u),t?Ki(t):null}).o(function(t){throw u&&pi(u),t}),Vl(t,o,r)}function ql(t,e,n,i,o){if(!Ai())return Te(new M("operation-not-supported-in-this-environment"));if(t.i&&!o)return Te(t.i);var r=null,a=Ui(t.uid+":::");return i=i().then(function(){if(jl(t),!o)return t.I().then(function(){})}).then(function(){return t.ga=a,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,a,t.tenantId)}).o(function(e){if(r=e,t.ha)return Hl(t.ha);throw r}).then(function(){if(r)throw r}),Vl(t,i,o)}function jl(t){if(!t.b||!t.P)throw new M(t.b&&!t.P?"internal-error":"auth-domain-config-required")}function Vl(t,e,n){var i=function(t,e,n){return t.i&&!n?(e.cancel(),Te(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(),bl(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[Ja]=t.stsTokenManager.accessToken,n.refreshToken=t.stsTokenManager.refreshToken||null;var i=t.stsTokenManager.expirationTime;i&&(n.expiresIn=(i-Date.now())/1e3);var o=new pl(e,n,t);return t.providerData&&G(t.providerData,function(t){t&&El(o,Ki(t))}),t.redirectEventId&&(o.ga=t.redirectEventId),o}function Gl(t){this.a=t,this.b=Kc()}Wu.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[Ku],delete n[$u],vt(n,t),e.g(n)})},O(Xu,M),el.prototype.tb=function(t,e,n){return e.type==ar?function(t,e,n,i){return n.Ha().then(function(n){return n={idToken:n},void 0!==i&&(n.displayName=i),vt(n,{phoneVerificationInfo:Nr(t.a)}),Xs(e,Ts,n)})}(this,t,e,n):function(t,e,n){return n.Ha().then(function(n){return vt(n={mfaPendingCredential:n},{phoneVerificationInfo:Nr(t.a)}),Xs(e,Ss,n)})}(this,t,e)},O(nl,el),O(il,nl),O(ol,We),(t=rl.prototype).yc=function(t){al(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 Xs(i,$s,{idToken:t,mfaEnrollmentId:n})}).then(function(t){var i=B(e.b,function(t){return t.uid!=n});return al(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()})}}},sl.prototype.start=function(){this.a=this.c,cl(this,!0)},sl.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?Te(new M("user-token-expired")):t||!this.b||Date.now()>this.c-3e4?this.a?function(t,e){return function(t,e){return new be(function(n,i){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?os(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",Kn(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}):ke(null):ke({accessToken:this.b.toString(),refreshToken:this.a})},fl.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},O(pl,Cn),pl.prototype.xa=function(t){this.za=t,ts(this.a,t)},pl.prototype.la=function(){return this.za},pl.prototype.Ga=function(){return $(this.aa)},pl.prototype.ib=function(){this.D.b&&(this.D.stop(),this.D.start())},Ji(pl.prototype,"providerId","firebase"),(t=pl.prototype).reload=function(){var t=this;return Vl(this,Tl(this).then(function(){return Nl(t).then(function(){return Ol(t)}).then(kl)}))},t.oc=function(t){return this.I(t).then(function(t){return new Ju(t)})},t.I=function(t){var e=this;return Vl(this,Tl(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 dl(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 Vl(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 Vl(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 Vl(this,Dl(this,"phone").then(function(){return Qu(bl(n),t,e,C(n.rb,n))}))},t.Mc=function(t,e){var n=this;return Vl(this,ke().then(function(){return Qu(bl(n),t,e,C(n.ub,n))}),!0)},t.Cb=function(t){var e=this;return Vl(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 Vl(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 Vl(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 Tl(this);var e=this;return Vl(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(kl))},t.cd=function(t){var e=this;return Vl(this,Nl(this).then(function(n){return Q(Sl(e),t)?function(t,e,n){return Xs(t,Ps,{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 Vl(this,this.I().then(function(e){return Xs(t.a,Os,{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),vl(t,null),_l(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 ke()},!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 ke()},!0)},t.Lb=function(t,e,n,i){var o=this;this.c&&(this.c.cancel(),this.c=null);var r=null;return Vl(this,this.I().then(function(n){return vs(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 Vl(this,ke().then(function(){return ur(ys(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 Vl(this,this.I().then(function(e){return n=e,void 0===t||pt(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 Vl(this,this.I().then(function(t){return i=t,void 0===e||pt(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 Vl(this,t=ur(ke(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&&vt(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))}),vt(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=Kc(),this.c=null,this.f=function(t){var e=Wl("local"),n=Wl("session"),i=Wl("none");return function(t,e,n){var i=Xc(e,n),o=$c(t,e.F);return t.get(e,n).then(function(r){var a=null;try{a=Fi(s.localStorage.getItem(i))}catch(c){}if(a&&!r)return s.localStorage.removeItem(i),t.set(e,a,n);a&&r&&"localStorage"!=o.type&&s.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?Wl(t):e})})})}).then(function(e){return t.c=e,Ql(t,e.F)}).o(function(){t.c||(t.c=e)})}(this),this.b.addListener(Wl("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,Wl(Jc[n]),t.a));return i.push(tu(t.b,Jl,t.a)),function(t){return new be(function(e,n){var i=t.length,o=[];if(i)for(var r=function(t,n){i--,o[t]=n,0==i&&e(o)},a=function(t){n(t)},s=0;s<t.length;s++)Se(t[s],x(r,s),a);else e(o)})}(i)}Yl.prototype.g=function(){var t=this,e=Wl("local");th(this,function(){return ke().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 Wl(t){return{name:"authUser",F:t}}function Kl(t,e){return th(t,function(){return t.b.set(t.c,e.w(),t.a)})}function $l(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?ki(i.Z.SDK_VERSION):null,this.a=new Ya(uh(this).options&&uh(this).options.apiKey,I(T),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)),sh(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.$=dh(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 dh(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 Kl(t.i,e).then(function(){return e})}).o(function(n){return"auth/network-request-failed"==n.code?e:$l(t.i)}
1)):null}).then(function(e){sh(t,e||null)});return dh(t,n)}(this)),this.h=dh(this,function(t){return t.$.then(function(){return ah(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(Wl("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),_l(i,t),gl(i=t.m,t.R),vl(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=Ki({protocol:t.c,host:t.a,port:t.g,options:Ki({disableWarnings:this.R.ec})})}else t=null;return t},enumerable:!1})}(this),this.J=[],this.R=null}function nh(t){We.call(this,"languageCodeChanged"),this.h=t}function ih(t){We.call(this,"emulatorConfigChanged"),this.c=t}function oh(t){We.call(this,"frameworkChanged"),this.f=t}function rh(t){return t.Oa||Te(new M("auth-domain-config-required"))}function ah(t){if(!Ai())return Te(new M("operation-not-supported-in-this-environment"));var e=rh(t).then(function(){return t.b.ra()}).then(function(t){return t?Ki(t):null});return dh(t,e)}function sh(t,e){lh(t)&&(function(t,e){W(t.W,function(t){return t==e})}(lh(t),t.Ba),fn(lh(t),"tokenChanged",t.qa),fn(lh(t),"userDeleted",t.za),fn(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),_l(e,t),gl(e,t.R),vl(e,t))}function ch(t,e){var n=null,i=null;return dh(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 pl(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)):(sh(t,e),Pl(e),t.da(e))}).then(function(){fh(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 Ki({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 fh(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 dh(t,e){return t.P.push(e),e.oa(function(){J(t.P,e)}),e}function ph(){}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||!Tc()&&"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=Wl(t),e)return n.b.set(n.c,e,n.a)}):ke()})},O(eh,Cn),O(nh,We),O(ih,We),O(oh,We),(t=eh.prototype).yb=function(t){return dh(this,t=this.i.yb(t))},t.xa=function(t){this.aa===t||this.l||(this.aa=t,ts(this.a,this.aa),this.dispatchEvent(new nh(this.la())))},t.la=function(){return this.aa},t.fd=function(){var t=s.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."),s.document&&!t&&yi().then(function(){var t=s.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"),s.document.body.appendChild(t)})})(e=!!e&&!!e.disableWarnings),this.R={url:t,ec:e},this.settings.jb=!0,es(this.a,this.R),this.dispatchEvent(new ih(this.R))}},t.Gc=function(t){this.J.push(t),is(this.a,i.Z.SDK_VERSION?ki(i.Z.SDK_VERSION,this.J):null),this.dispatchEvent(new oh(this.J))},t.Ga=function(){return $(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,ms(o.a,r))})},t.Xc=function(t){if(!Ai())return Te(new M("operation-not-supported-in-this-environment"));var e=this,n=Qo(t.providerId),o=Ui(),r=null;(!Ni()||bi())&&uh(this).options.authDomain&&t.isOAuthProvider&&(r=pc(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 a=gi(r,n&&n.va,n&&n.ua);return dh(this,n=rh(this).then(function(n){return Ru(n,a,"signInViaPopup",t,o,!!r,e.T())}).then(function(){return new be(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",a,o)})}).then(function(t){return a&&pi(a),t?Ki(t):null}).o(function(t){throw a&&pi(a),t}))},t.Yc=function(t){if(!Ai())return Te(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 dh(this,n)},t.ra=function(){var t=this;return ah(this).then(function(e){return t.b&&Vu(t.b.b),e}).o(function(e){throw t.b&&Vu(t.b.b),e})},t.dd=function(t){if(!t)return Te(new M("null-user"));if(this.S!=t.tenantId)return Te(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[Ja]=o.b&&o.b.toString(),r.refreshToken=o.a,e=new pl(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 dh(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)):(sh(e,i),Pl(i),e.da(i))}).then(function(){fh(e)}))},t.Bb=function(){var t=this;return dh(this,this.h.then(function(){return t.b&&Vu(t.b.b),lh(t)?(sh(t,null),$l(t.i).then(function(){fh(t)})):ke()}))},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)&&(sh(t,e),e&&(Pl(e),e.ha=t.D),t.b&&Su(t.b,t),fh(t))}})},t.da=function(t){return Kl(this.i,t)},t.mc=function(){fh(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,ke(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),dh(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 dh(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,Xs(e.a,Ys,{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,Xs(n.a,Qs,{email:t,password:e}))})},t.dc=function(t,e){var n=this;return this.h.then(function(){return ch(n,Xs(n.a,xs,{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=Ki({providerId:null,isNewUser:!1});return Ki({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),dh(this,this.h.then(function(){e.l||Q(e.s,t)&&t(hh(e))}))},t.removeAuthTokenListener=function(t){W(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(Wl("local"),t.a,this.ja),this.b&&(Eu(this.b,this),Vu(this.b.b)),Promise.resolve()},t.hc=function(t){return dh(this,function(t,e){return Xs(t,ws,{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 dh(this,ke().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 dh(this,this.a.ob(t,e).then(function(){}))},t.Sa=function(t){return dh(this,this.a.Sa(t).then(function(t){return new ao(t)}))},t.kb=function(t){return dh(this,this.a.kb(t).then(function(){}))},t.wb=function(t,e){var n=this;return dh(this,ke().then(function(){return void 0===e||pt(e)?{}:qo(new Eo(e))}).then(function(e){return n.a.wb(t,e)}).then(function(){}))},t.Wc=function(t,e){return dh(this,Qu(this,t,e,C(this.ab,this)))},t.Vc=function(t,e){var n=this;return dh(this,ke().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)}))},ph.prototype.render=function(){},ph.prototype.reset=function(){},ph.prototype.getResponse=function(){},ph.prototype.execute=function(){};var mh=null;function vh(t,e){return(e=yh(e))&&t.a[e]||null}function yh(t){return(t=void 0===t?1e12:t)?t.toString():null}function _h(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 bh(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 _h(t,e),this.b++},gh.prototype.reset=function(t){var e=vh(this,t);t=yh(t),e&&t&&(e.delete(),delete this.a[t])},gh.prototype.getResponse=function(t){return(t=vh(this,t))?t.getResponse():null},gh.prototype.execute=function(t){(t=vh(this,t))&&t.execute()},_h.prototype.getResponse=function(){return bh(this),this.b},_h.prototype.execute=function(){bh(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))},_h.prototype.delete=function(){bh(this),this.g=!0,clearTimeout(this.a),this.a=null,f
1n(this.f,"click",this.i)},Ji(Ch,"FACTOR_ID","phone"),xh.prototype.g=function(){return mh||(mh=new gh),ke(mh)},xh.prototype.c=function(){};var wh=null;function Oh(){this.b=s.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var Ph=new _t(wt,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Mh=new ji(3e4,6e4);Oh.prototype.g=function(t){var e=this;return new be(function(n,i){var o=setTimeout(function(){i(new M("network-request-failed"))},Mh.get());!s.grecaptcha||t!==e.f&&!e.b?(s[e.a]=function(){if(s.grecaptcha){e.f=t;var r=s.grecaptcha.render;s.grecaptcha.render=function(t,n){return t=r(t,n),e.b++,t},clearTimeout(o),n(s.grecaptcha)}else clearTimeout(o),i(new M("internal-error"));delete s[e.a]},ke(qa(kt(Ph,{onload:e.a,hl:t||""}))).o(function(){clearTimeout(o),i(new M("internal-error","Unable to load external reCAPTCHA dependencies!"))})):(clearTimeout(o),n(s.grecaptcha))})},Oh.prototype.c=function(){this.b--};var kh=null;function Th(t,e,n,i,o,r,a){if(Ji(this,"type","recaptcha"),this.c=this.f=null,this.J=!1,this.v=e,this.g=null,a?(wh||(wh=new xh),a=wh):(kh||(kh=new Oh),a=kh),this.m=a,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],!s.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 Ya(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,s);"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,s);"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(s){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,a=null;try{a=this.b.auth().Ga()}catch(s){}try{o=this.b.auth().settings.appVerificationDisabledForTesting}catch(s){}a=i.Z.SDK_VERSION?ki(i.Z.SDK_VERSION,a):null,Th.call(this,n,t,e,function(){try{var t=r.b.auth().la()}catch(e){t=null}return t},a,I(T),o)}function Fh(t,e,n,i){t:{n=Array.prototype.slice.call(n);for(var o=0,r=!1,a=0;a<e.length;a++)if(e[a].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=Th.prototype).Ia=function(){var t=this;return this.f?this.f:this.f=Nh(this,ke().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,Xs(t.s,Ds,{})}).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]),a=i[1];if(!se&&a&&(a.name||a.type)){if(r=["<",r],a.name&&r.push(' name="',Gt(a.name),'"'),a.type){r.pu
1sh(' type="',Gt(a.type),'"');var s={};vt(s,a),delete s.type,a=s}r.push(">"),r=r.join("")}return r=pe(o,r),a&&("string"==typeof a?r.className=a:Array.isArray(a)?r.className=a.join(" "):ue(r,a)),2<i.length&&de(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 be(function(n){var i=t.g.getResponse(e);if(i)n(i);else{var o=function(e){e&&(function(t,e){W(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,Th);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 jh(t,e){return{name:t||"",K:"a valid object",optional:!!e,M:g}}function Vh(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]=Kh(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 Wh(t,e,n,i){t[e]=Kh(e,n,i)}function Kh(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(jh(),Vh(),"nextOrObserver"),Vh("opt_error",!0),Vh("opt_completed",!0)]},Ic:{name:"onIdTokenChanged",j:[Yh(jh(),Vh(),"nextOrObserver"),Vh("opt_error",!0),Vh("opt_completed",!0)]},wb:{name:"sendPasswordResetEmail",j:[Zh("email"),Yh(jh("opt_actionCodeSettings",!0),zh(null,!0),"opt_actionCodeSettings",!0)]},xb:{name:"sendSignInLinkToEmail",j:[Zh("email"),jh("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 pl)}},zh(),"user")]},Bb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Zh(null,!0)]},fd:{name:"useDeviceLanguage",j:[]},gd:{name:"useEmulator",j:[Zh("url"),jh("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(pl.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(jh("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:[jh("profile")]},Fb:{name:"verifyBeforeUpdateEmail",j:[Zh("email"),Yh(jh("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(ph.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Qh(be.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")]}}),Wh(cr,"fromJSON",function(t){t="string"==typeof t?JSON.parse(t):t;for(var e,n=[gr,Tr,Rr,fr],i=0;i<n.length;i++)if(e=n[i](t))return e;return null},[Yh(Zh(),jh(),"json")]),Wh(Sr,"credential",function(t,e){return new kr(t,e)},[Zh("email"),Zh("password")]),Qh(kr.prototype,{w:{name:"toJSON",j:[Zh(null,!0)]}}),Qh(_r.prototype,{Ca:{name:"addScope",j:[Zh("scope")]},Ka:{name:"setCustomParameters",j:[jh("customOAuthParameters")]}}),Wh(_r,"credential",br,[Yh(Zh(),jh(),"token")]),Wh(Sr,"credentialWithLink",Er,[Zh("email"),Zh("emailLink")]),Qh(Cr.prototype,{Ca:{name:"addScope",j:[Zh("scope")]},Ka:{name:"setCustomParameters",j:[jh("customOAuthParameters")]}}),Wh(Cr,"credential",xr,[Yh(Zh(),jh(),"token")]),Qh(wr.prototype,{Ca:{name:"addScope",j:[Zh("scope")]},Ka:{name:"setCustomParameters",j:[jh("customOAuthParameters")]}}),Wh(wr,"credential",Or,[Yh(Zh(),Yh(jh(),zh()),"idToken"),Yh(Zh(),zh(),"accessToken",!0)]),Qh(Pr.prototype,{Ka:{name:"setCustomParameters",j:[jh("customOAuthParameters")]}}),Wh(Pr,"credential",Mr,[Yh(Zh(),jh(),"token"),Zh("secret",!0)]),Qh(yr.prototype,{Ca:{name:"addScope",j:[Zh("scope")]},credential:{name:"credential",j:[Yh(Zh(),Yh(jh(),zh()),"optionsOrIdToken"),Yh(Zh(),zh(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[jh("customOAuthParameters")]}}),Qh(dr.prototype,{w:{name:"toJSON",j:[Zh(null,!0)]}}),Qh(lr.prototype,{w:{name:"toJSON",j:[Zh(null,!0)]}}),Wh(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,ar)&&"string"==typeof t.phoneNumber:t.session&&t.multiFactorHint?Bh(t.session,sr)&&Hh(t.multiFactorHint):t.session&&t.multiFactorUid?Bh(t.session,sr)&&"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(Wu.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:[]}}),Wh(Co,"parseLink",So,[Zh("link")]),Wh(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:so,VERIFY_AND_CHANGE_EMAIL:uo,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:eh,AuthCredential:cr,Error:M};Wh(t,"EmailAuthProvider",Sr,[]),Wh(t,"FacebookAuthProvider",_r,[]),Wh(t,"GithubAuthProvider",Cr,[]),Wh(t,"GoogleAuthProvider",wr,[]),Wh(t,"TwitterAuthProvider",Pr,[]),Wh(t,"OAuthProvider",yr,[Zh("providerId")]),Wh(t,"SAMLAuthProvider",vr,[Zh("providerId")]),Wh(t,"PhoneAuthProvider",Lr,[{name:"auth",K:"an instance of Firebase Auth",optional:!0,M:function(t){return!!(t&&t instanceof eh)}}]),Wh(t,"RecaptchaVerifier",Dh,[Yh(Zh(),{name:"",K:"an HTML element",optional:!1,M:function(t){return!!(t&&t instanceof Element)}},"recaptchaContainer"),jh("recaptchaParameters",!0),{name:"app",K:"an instance of Firebase App",optional:!0,M:function(t){return!!(t&&t instanceof i.Z.app.App)}}]),Wh(t,"ActionCodeURL",Co,[]),Wh(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:pl})}()}).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 i}});var i=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e)).parent=t,o.outerValue=n,o.outerIndex=i,o.index=0,o}return b(e,t),g(e,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}])}(n(7393).L)},3098:function(t,e,n){"use strict";n.d(e,{P:function(){return a}});var i=n(9193),o=n(5917),r=n(205),a=function(){function t(e,n,i){v(this,t),this.kind=e,this.value=n,this.error=i,this.hasValue="N"===e}return g(t,[{key:"observe",value:function(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()}}},{key:"do",value:function(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()}}},{key:"accept",value:function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}},{key:"toObservable",value:function(){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")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}])}();a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0)},7574:function(t,e,n){"use strict";n.d(e,{y:function(){return l}});var i,o=n(7393),r=n(9181),a=n(6490),s=n(6554),c=n(4487),u=n(2494),l=(i=function(t){function e(t){v(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return g(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(t,e,n){var i=this.operator,s=function(t,e,n){if(t){if(t instanceof o.L)return t;if(t[r.b])return t[r.b]()}return t||e||n?new o.L(t,e,n):new o.L(a.c)}(t,e,n);if(s.add(i?i.call(s,this.source):this.source||u.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),u.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(t){try{return this._subscribe(t)}catch(e){u.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,n=e.closed,i=e.destination,r=e.isStopped;
1if(n||r)return!1;t=i&&i instanceof o.L?i:null}return!0}(t)?t.error(e):console.warn(e)}}},{key:"forEach",value:function(t,e){var n=this;return new(e=h(e))(function(e,i){var o;o=n.subscribe(function(e){try{t(e)}catch(n){i(n),o&&o.unsubscribe()}},i,e)})}},{key:"_subscribe",value:function(t){var e=this.source;return e&&e.subscribe(t)}},{key:t,value:function(){return this}},{key:"pipe",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?this:function(t){return 0===t.length?c.y:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}(e)(this)}},{key:"toPromise",value:function(t){var e=this;return new(t=h(t))(function(t,n){var i;e.subscribe(function(t){return i=t},function(t){return n(t)},function(){return t(i)})})}}])}(s.L),i.create=function(t){return new i(t)},i);function h(t){if(t||(t=u.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),r={closed:!0,next:function(t){},error:function(t){if(i.v.useDeprecatedSynchronousErrorHandling)throw t;(0,o.z)(t)},complete:function(){}}},5197:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});var i=function(t){function e(){return v(this,e),y(this,e,arguments)}return b(e,t),g(e,[{key:"notifyNext",value:function(t,e,n,i,o){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}])}(n(7393).L)},9765:function(t,e,n){"use strict";n.d(e,{Yc:function(){return h},xQ:function(){return f}});var i,o=n(7574),r=n(7393),s=n(5319),c=n(7971),u=n(8858),l=n(9181),h=function(t){function e(t){var n;return v(this,e),(n=y(this,e,[t])).destination=t,n}return b(e,t),g(e)}(r.L),f=((i=function(t,e){function n(){var t;return v(this,n),(t=y(this,n)).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return b(n,t),g(n,[{key:e,value:function(){return new h(this)}},{key:"lift",value:function(t){var e=new d(this,this);return e.operator=t,e}},{key:"next",value:function(t){if(this.closed)throw new c.N;if(!this.isStopped)for(var e=this.observers,n=e.length,i=e.slice(),o=0;o<n;o++)i[o].next(t)}},{key:"error",value:function(t){if(this.closed)throw new c.N;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,i=e.slice(),o=0;o<n;o++)i[o].error(t);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new c.N;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),i=0;i<e;i++)n[i].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(t){if(this.closed)throw new c.N;return a(n,"_trySubscribe",this,3)([t])}},{key:"_subscribe",value:function(t){if(this.closed)throw new c.N;return this.hasError?(t.error(this.thrownError),s.w.EMPTY):this.isStopped?(t.complete(),s.w.EMPTY):(this.observers.push(t),new u.W(this,t))}},{key:"asObservable",value:function(){var t=new o.y;return t.source=this,t}}])}(o.y,l.b)).create=function(t,e){return new d(t,e)},i),d=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e)).destination=t,i.source=n,i}return b(e,t),g(e,[{key:"next",value:function(t){var e=this.destination;e&&e.next&&e.next(t)}},{key:"error",value:function(t){var e=this.destination;e&&e.error&&this.destination.error(t)}},{key:"complete",value:function(){var t=this.destination;t&&t.complete&&this.destination.complete()}},{key:"_subscribe",value:function(t){return this.source?this.source.subscribe(t):s.w.EMPTY}}])}(f)},8858:function(t,e,n){"use strict";n.d(e,{W:function(){return i}});var i=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e)).subject=t,i.subscriber=n,i.closed=!1,i}return b(e,t),g(e,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}}}])}(n(5319).w)},7393:function(t,e,n){"use strict";n.d(e,{L:function(){return l}});var i=n(9105),o=n(6490),r=n(5319),s=n(9181),c=n(2494),u=n(4449),l=function(t,e){function n(t,e,i){var r;switch(v(this,n),(r=y(this,n)).syncErrorValue=null,r.syncErrorThrown=!1,r.syncErrorThrowable=!1,r.isStopped=!1,arguments.length){case 0:r.destination=o.c;break;case 1:if(!t){r.destination=o.c;break}if("object"==typeof t){t instanceof n?(r.syncErrorThrowable=t.syncErrorThrowable,r.destination=t,t.add(_(r))):(r.syncErrorThrowable=!0,r.destination=new h(_(r),t));break}default:r.syncErrorThrowable=!0,r.destination=new h(_(r),t,e,i)}return _(r)}return b(n,t),g(n,[{key:e,value:function(){return this}},{key:"next",value:function(t){this.isStopped||this._next(t)}},{key:"error",value:function(t){this.isStopped||(this.isStopped=!0,this._error(t))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,a(n,"unsubscribe",this,3)([]))}},{key:"_next",value:function(t){this.destination.next(t)}},{key:"_error",value:function(t){this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}
1],[{key:"create",value:function(t,e,i){var o=new n(t,e,i);return o.syncErrorThrowable=!1,o}}])}(r.w,s.b),h=function(t){function e(t,n,r,a){var s;v(this,e),(s=y(this,e))._parentSubscriber=t;var c,u=s;return(0,i.m)(n)?c=n:n&&(c=n.next,r=n.error,a=n.complete,n!==o.c&&(u=Object.create(n),(0,i.m)(u.unsubscribe)&&s.add(u.unsubscribe.bind(u)),u.unsubscribe=s.unsubscribe.bind(s))),s._context=u,s._next=c,s._error=r,s._complete=a,s}return b(e,t),g(e,[{key:"next",value:function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}},{key:"error",value:function(t){if(!this.isStopped){var e=this._parentSubscriber,n=c.v.useDeprecatedSynchronousErrorHandling;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,u.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,u.z)(t)}}}},{key:"complete",value:function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};c.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),c.v.useDeprecatedSynchronousErrorHandling)throw n;(0,u.z)(n)}}},{key:"__tryOrSetError",value:function(t,e,n){if(!c.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return c.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):((0,u.z)(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}])}(l)},5319:function(t,e,n){"use strict";n.d(e,{w:function(){return c}});var i,o=n(9796),r=n(1555),a=n(9105),s=function(){function t(t){return Error.call(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(t,e){return"".concat(e+1,") ").concat(t.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),c=function(){function t(e){v(this,t),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return g(t,[{key:"unsubscribe",value:function(){var e;if(!this.closed){var n=this._parentOrParents,i=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var l=0;l<n.length;++l)n[l].remove(this);if((0,a.m)(i))try{i.call(this)}catch(l){e=l instanceof s?u(l.errors):[l]}if((0,o.k)(c))for(var h=-1,f=c.length;++h<f;){var d=c[h];if((0,r.K)(d))try{d.unsubscribe()}catch(p){e=e||[],p instanceof s?e=e.concat(u(p.errors)):e.push(p)}}if(e)throw new s(e)}}},{key:"add",value:function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var i=n;(n=new t)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof t){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}},{key:"remove",value:function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}])}();function u(t){return t.reduce(function(t,e){return t.concat(e instanceof s?e.errors:e)},[])}c.EMPTY=((i=new c).closed=!0,i)},2494:function(t,e,n){"use strict";n.d(e,{v:function(){return o}});var i=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior b
1y code at: \n"+e.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 u},N:function(){return l}});var i,o=n(9765),r=n(7574),s=n(5319),c=n(1307),u=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e)).source=t,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return b(e,t),g(e,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.w).add(this.source.subscribe(new h(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.w.EMPTY)),t}},{key:"refCount",value:function(){return(0,c.x)()(this)}}])}(r.y),l={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(i=u.prototype)._subscribe},_isComplete:{value:i._isComplete,writable:!0},getSubject:{value:i.getSubject},connect:{value:i.connect},refCount:{value:i.refCount}},h=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[t])).connectable=n,i}return b(e,t),g(e,[{key:"_error",value:function(t){this._unsubscribe(),a(e,"_error",this,3)([t])}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),a(e,"_complete",this,3)([])}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}])}(o.Yc)},9193:function(t,e,n){"use strict";n.d(e,{E:function(){return o},c:function(){return r}});var i=n(7574),o=new i.y(function(t){return t.complete()});function r(t){return t?function(t){return new i.y(function(e){return t.schedule(function(){return e.complete()})})}(t):o}},5372:function(t,e,n){"use strict";n.d(e,{D:function(){return f}});var i=n(7574),o=n(5905),r=n(5319),a=n(6554),s=n(4531),c=n(4087),u=n(377),l=n(4072),h=n(9489);function f(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[a.L]}(t))return function(t,e){return new i.y(function(n){var i=new r.w;return i.add(e.schedule(function(){var o=t[a.L]();i.add(o.subscribe({next:function(t){i.add(e.schedule(function(){return n.next(t)}))},error:function(t){i.add(e.schedule(function(){return n.error(t)}))},complete:function(){i.add(e.schedule(function(){return n.complete()}))}}))})),i})}(t,e);if((0,l.t)(t))return(0,s.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(function(n){var i,o=new r.w;return o.add(function(){i&&"function"==typeof i.return&&i.return()}),o.add(e.schedule(function(){i=t[u.hZ](),o.add(e.schedule(function(){if(!n.closed){var t,e;try{var o=i.next();t=o.value,e=o.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}}))})),o})}(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 a}});var i=n(7574),o=n(5015),r=n(4087);function a(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 s}});var i=n(7574),o=n(4869),r=n(3282),a=n(6693);function s(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var s=Number.POSITIVE_INFINITY,c=null,u=e[e.length-1];return(0,o.K)(u)?(c=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(s=e.pop())):"number"==typeof u&&(s=e.pop()),null===c&&1===e.length&&e[0]instanceof i.y?e[0]:(0,r.J)(s)((0,a.n)(e,c))}},5917:function(t,e,n){"use strict";n.d(e,{of:function(){return a}});var i=n(4869),o=n(6693),r=n(4087);function a(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var a=e[e.length-1];return(0,i.K)(a)?(e.pop(),(0,r.r)(e,a)):(0,o.n)(e)}},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?function(n){return e.schedule(r,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function r(t){var e=t.error;t.subscriber.error(e)}},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))}}
1var r=function(){return g(function t(e,n){v(this,t),this.project=e,this.thisArg=n},[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))}}])}(),a=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e,[t])).project=n,o.count=0,o.thisArg=i||_(o),o}return b(e,t),g(e,[{key:"_next",value:function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}])}(i.L)},3282:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});var i=n(9773),o=n(4487);function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]: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),a=n(8002),s=n(5372);function c(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(i){return i.pipe(c(function(n,i){return(0,s.D)(t(n,i)).pipe((0,a.U)(function(t,o){return e(n,t,i,o)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new u(t,n))})}var u=function(){return g(function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;v(this,t),this.project=e,this.concurrent=n},[{key:"call",value:function(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}])}(),l=function(t){function e(t,n){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return v(this,e),(i=y(this,e,[t])).project=n,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return b(e,t),g(e,[{key:"_next",value:function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e,t,n)}},{key:"_innerSub",value:function(t,e,n){var o=new r.d(this,e,n),a=this.destination;a.add(o);var s=(0,i.D)(this,t,void 0,void 0,o);s!==o&&a.add(s)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(t,e,n,i,o){this.destination.next(e)}},{key:"notifyComplete",value:function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}])}(o.L)},9746:function(t,e,n){"use strict";n.d(e,{QV:function(){return r},ht:function(){return s}});var i=n(7393),o=n(3098);function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new a(t,e))}}var a=function(){return g(function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;v(this,t),this.scheduler=e,this.delay=n},[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.scheduler,this.delay))}}])}(),s=function(t){function e(t,n){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;
1return v(this,e),(i=y(this,e,[t])).scheduler=n,i.delay=o,i}return b(e,t),g(e,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(o.P.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(o.P.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(o.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()}}])}(i.L),c=g(function t(e,n){v(this,t),this.notification=e,this.destination=n})},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))}}var r=function(){return g(function t(e){v(this,t),this.connectable=e},[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var i=new a(t,n),o=e.subscribe(i);return i.closed||(i.connection=n.connect()),o}}])}(),a=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[t])).connectable=n,i}return b(e,t),g(e,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,i=t._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}else this.connection=null}}])}(i.L)},8819:function(t,e,n){"use strict";n.d(e,{B:function(){return s}});var i=n(2441),o=n(1307),r=n(9765);function a(){return new r.xQ}function s(){return function(t){return(0,o.x)()(function(t,e){return function(e){var n;n="function"==typeof t?t:function(){return t};var o=Object.create(e,i.N);return o.source=e,o.subjectFactory=n,o}}(a)(t))}}},9673:function(t,e,n){"use strict";n.d(e,{R:function(){return s}});var i=n(7574),o=n(4581),r=n(6561),a=function(t){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.e;return v(this,e),(n=y(this,e)).source=t,n.delayTime=i,n.scheduler=a,(!(0,r.k)(i)||i<0)&&(n.delayTime=0),(!a||"function"!=typeof a.schedule)&&(n.scheduler=o.e),n}return b(e,t),g(e,[{key:"_subscribe",value:function(t){return this.scheduler.schedule(e.dispatch,this.delayTime,{source:this.source,subscriber:t})}}],[{key:"create",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.e;return new e(t,n,i)}},{key:"dispatch",value:function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))}}])}(i.y);function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new c(t,e))}}var c=function(){return g(function t(e,n){v(this,t),this.scheduler=e,this.delay=n},[{key:"call",value:function(t,e){return new a(e,this.delay,this.scheduler).subscribe(t)}}])}()},8307:function(t,e,n){"use strict";n.d(e,{b:function(){return a}});var i=n(7393),o=n(8640),r=n(9105);function a(t,e,n){return function(i){return i.lift(new s(t,e,n))}}var s=function(){return g(function t(e,n,i){v(this,t),this.nextOrObserver=e,this.error=n,this.complete=i},[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}])}(),c=function(t){function e(t,n,i,a){var s;return v(this,e),(s=y(this,e,[t]))._tapNext=o.Z,s._tapError=o.Z,s._tapComplete=o.Z,s._tapError=i||o.Z,s._tapComplete=a||o.Z,(0,r.m)(n)?(s._context=_(s),s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||o.Z,s._tapError=n.error||o.Z,s._tapComplete=n.complete||o.Z),s}return b(e,t),g(e,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}])}(i.L)},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(function(n){var i=new o.w,r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()}
1)),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(function(n){var i=new o.w;return i.add(e.schedule(function(){return t.then(function(t){i.add(e.schedule(function(){n.next(t),i.add(e.schedule(function(){return n.complete()}))}))},function(t){i.add(e.schedule(function(){return n.error(t)}))})})),i})}},6465:function(t,e,n){"use strict";n.d(e,{o:function(){return i}});var i=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[t,n])).scheduler=t,i.work=n,i.pending=!1,i}return b(e,t),g(e,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var 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}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var n,i=!1;try{this.work(t)}catch(o){i=!0,n=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.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}}])}(function(t){function e(t,n){return v(this,e),y(this,e)}return b(e,t),g(e,[{key:"schedule",value:function(t){return this}}])}(n(5319).w))},6102:function(t,e,n){"use strict";n.d(e,{v:function(){return r}});var i,o=(i=function(){return g(function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;v(this,t),this.SchedulerAction=e,this.now=n},[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}])}(),i.now=function(){return Date.now()},i),r=function(t){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.now;return v(this,e),(n=y(this,e,[t,function(){return e.delegate&&e.delegate!==_(n)?e.delegate.now():i()}])).actions=[],n.active=!1,n.scheduled=void 0,n}return b(e,t),g(e,[{key:"schedule",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return e.delegate&&e.delegate!==this?e.delegate.schedule(t,n,i):a(e,"schedule",this,3)([t,n,i])}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var 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}}}}])}(o)},4581:function(t,e,n){"use strict";n.d(e,{e:function(){return h}});var i=1,o=Promise.resolve(),r={};function s(t){return t in r&&(delete r[t],!0)}var c=function(t){var e=i++;return r[e]=!0,o.then(function(){return s(e)&&t()}),e},u=function(t){s(t)},l=n(6465),h=new(function(t){function e(){return v(this,e),y(this,e,arguments)}return b(e,t),g(e,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,o=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i<o&&(t=n.shift()));if(this.active=!1,e){for(;++i<o&&(t=n.shift());)t.unsubscribe();throw e}}}])}(n(6102).v))(function(t){function e(t,n){var i;
1return v(this,e),(i=y(this,e,[t,n])).scheduler=t,i.work=n,i}return b(e,t),g(e,[{key:"requestAsyncId",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?a(e,"requestAsyncId",this,3)([t,n,i]):(t.actions.push(this),t.scheduled||(t.scheduled=c(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return a(e,"recycleAsyncId",this,3)([t,n,i]);0===t.actions.length&&(u(n),t.scheduled=void 0)}}])}(l.o))},3637:function(t,e,n){"use strict";n.d(e,{P:function(){return o}});var i=n(6465),o=new(n(6102).v)(i.o)},7771:function(t,e,n){"use strict";n.d(e,{c:function(){return o}});var i=n(6465),o=new(function(t){function e(){return v(this,e),y(this,e,arguments)}return b(e,t),g(e)}(n(6102).v))(function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[t,n])).scheduler=t,i.work=n,i}return b(e,t),g(e,[{key:"schedule",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n>0?a(e,"schedule",this,3)([t,n]):(this.delay=n,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,n){return n>0||this.closed?a(e,"execute",this,3)([t,n]):this._execute(t,n)}},{key:"requestAsyncId",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?a(e,"requestAsyncId",this,3)([t,n,i]):t.flush(this)}}])}(i.o))},377:function(t,e,n){"use strict";n.d(e,{hZ:function(){return i}});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});var i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7971:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});var i=function(){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(function(){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}});var i=Array.isArray||function(t){return t&&"number"==typeof t.length}},9489:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});var i=function(t){return 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),a=n(6554),s=n(9489),c=n(4072),u=n(1555),l=function(t){if(t&&"function"==typeof t[a.L])return function(t){return function(e){var n=t[a.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}}(t);if((0,s.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 function(t){return function(e){for(var n=t[r.hZ]();;){var i=n.next();if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}}(t);
1var e="You provided ".concat((0,u.K)(t)?"an invalid object":"'".concat(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}});var i=function(t){return function(e){for(var 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),o=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,i.z),e}}},5604:function(t,e,n){"use strict";n.d(e,{D:function(){return a}});var i=n(268),o=n(5905),r=n(7574);function a(t,e,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new i.d(t,n,a);if(!s.closed)return e instanceof r.y?e.subscribe(s):(0,o.s)(e)(s)}},2001:function(t,o,r){"use strict";var s=r(7716),c=null;function l(){return c}var f=new s.OlP("DocumentToken"),d=function(){var t=function(){return g(function t(){v(this,t)},[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:p,token:t,providedIn:"platform"}),t}();function p(){return(0,s.LFG)(C)}var m=new s.OlP("Location Initialized"),C=function(){var t=function(t){function e(t){var n;return v(this,e),(n=y(this,e))._doc=t,n._init(),n}return b(e,t),g(e,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return l().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){var e=l().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),function(){return e.removeEventListener("popstate",t)}}},{key:"onHashChange",value:function(t){var e=l().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),function(){return e.removeEventListener("hashchange",t)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(t,e,n){x()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){x()?this._history.replaceState(t,e,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(t)}},{key:"getState",value:function(){return this._history.state}}])}(d);return t.\u0275fac=function(e){return new(e||t)(s.LFG(f))},t.\u0275prov=(0,s.Yz7)({factory:w,token:t,providedIn:"platform"}),t}();function x(){return!!window.history.pushState}function w(){return new C((0,s.LFG)(f))}function O(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function P(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function M(t){return t&&"?"!==t[0]?"?"+t:t}var k=function(){var t=function(){return g(function t(){v(this,t)},[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:T,token:t,providedIn:"root"}),t}();function T(t){var e=(0,s.LFG)(f).location;return new E((0,s.LFG)(d),e&&e.origin||"")}var S=new s.OlP("appBaseHref"),E=function(){var t=function(t){function e(t,n){var i;if(v(this,e),(i=y(this,e))._platformLocation=t,i._removeListenerFns=[],null==n&&(n=i._platformLocation.getBaseHrefFromDOM()),null==n)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.");return i._baseHref=n,i}return b(e,t),g(e,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.on
1HashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return O(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+M(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,i){var o=this.prepareExternalUrl(n+M(i));this._platformLocation.pushState(t,e,o)}},{key:"replaceState",value:function(t,e,n,i){var o=this.prepareExternalUrl(n+M(i));this._platformLocation.replaceState(t,e,o)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,n)}}])}(k);return t.\u0275fac=function(e){return new(e||t)(s.LFG(d),s.LFG(S,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),A=function(){var t=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e))._platformLocation=t,i._baseHref="",i._removeListenerFns=[],null!=n&&(i._baseHref=n),i}return b(e,t),g(e,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=O(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,i){var o=this.prepareExternalUrl(n+M(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)}},{key:"replaceState",value:function(t,e,n,i){var o=this.prepareExternalUrl(n+M(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,n)}}])}(k);return t.\u0275fac=function(e){return new(e||t)(s.LFG(d),s.LFG(S,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),I=function(){var t=function(){function t(e,n){var i=this;v(this,t),this._subject=new s.vpe,this._urlChangeListeners=[],this._platformStrategy=e;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=P(N(o)),this._platformStrategy.onPopState(function(t){i._subject.emit({url:i.path(!0),pop:!0,state:t.state,type:t.type})})}return g(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+M(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,N(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+M(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+M(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformStrategy).historyGo)||void 0===e||e.call(t,n)}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;
1this._urlChangeListeners.forEach(function(n){return n(t,e)})}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(k),s.LFG(d))},t.normalizeQueryParams=M,t.joinWithSlash=O,t.stripTrailingSlash=P,t.\u0275prov=(0,s.Yz7)({factory:R,token:t,providedIn:"root"}),t}();function R(){return new I((0,s.LFG)(k),(0,s.LFG)(d))}function N(t){return t.replace(/\/index.html$/,"")}var L=((L=L||{})[L.Zero=0]="Zero",L[L.One=1]="One",L[L.Two=2]="Two",L[L.Few=3]="Few",L[L.Many=4]="Many",L[L.Other=5]="Other",L),D=s.kL8,F=g(function t(){v(this,t)}),U=function(){var t=function(t){function e(t){var n;return v(this,e),(n=y(this,e)).locale=t,n}return b(e,t),g(e,[{key:"getPluralCategory",value:function(t,e){switch(D(e||this.locale)(t)){case L.Zero:return"zero";case L.One:return"one";case L.Two:return"two";case L.Few:return"few";case L.Many:return"many";default:return"other"}}}])}(F);return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.soG))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}();function Z(t,e){e=encodeURIComponent(e);var n,o=h(t.split(";"));try{for(o.s();!(n=o.n()).done;){var r=n.value,a=r.indexOf("="),s=i(-1==a?[r,""]:[r.slice(0,a),r.slice(a+1)],2),c=s[0],u=s[1];if(c.trim()===e)return decodeURIComponent(u)}}catch(l){o.e(l)}finally{o.f()}return null}var q=function(){var t=function(){return g(function t(e,n,i,o){v(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=i,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null},[{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(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,s.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,s.AaK)(t.item)));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))}},{key:"_toggleClass",value:function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.ZZ4),s.Y36(s.aQg),s.Y36(s.SBq),s.Y36(s.Qsj))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),j=function(){return g(function t(e,n,i,o){v(this,t),this.$implicit=e,this.ngForOf=n,this.index=i,this.count=o},[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}])}(),V=function(){var t=function(){return g(function t(e,n,i){v(this,t),this._viewContainer=e,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null},[{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat(function(t){return t.name||typeof t}(t),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation(function(t,i,o){if(null==t.previousIndex){var r=e._viewContainer.createEmbeddedView(e._template,new j(null,e._ngForOf,-1,-1),null===o?void 0:o),a=new z(t,r);n.push(a)}else if(null==o)e._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=e._viewContainer.get(i);e._viewContainer.move(s,o);var c=new z(t,s);n.push(c)}});for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var o=0,r=this._viewContainer.length;o<r;o++){var a=this._viewContainer.get(o);
1a.context.index=o,a.context.count=r,a.context.ngForOf=this._ngForOf}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})}},{key:"_perViewChange",value:function(t,e){t.context.$implicit=e.item}}],[{key:"ngTemplateContextGuard",value:function(t,e){return!0}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t}(),z=g(function t(e,n){v(this,t),this.record=e,this.view=n}),G=function(){var t=function(){return g(function t(e,n){v(this,t),this._viewContainer=e,this._context=new B,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n},[{key:"ngIf",set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}},{key:"ngIfThen",set:function(t){H("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(t){H("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){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)))}}],[{key:"ngTemplateContextGuard",value:function(t,e){return!0}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t}(),B=g(function t(){v(this,t),this.$implicit=null,this.ngIf=null});function H(t,e){if(e&&!e.createEmbeddedView)throw new Error("".concat(t," must be a TemplateRef, but received '").concat((0,s.AaK)(e),"'."))}var Y=function(){return g(function t(e,n){v(this,t),this._viewContainerRef=e,this._templateRef=n,this._created=!1},[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}])}(),Q=function(){var t=function(){return g(function t(){v(this,t),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1},[{key:"ngSwitch",set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}},{key:"_matchCase",value:function(t){var 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}},{key:"_updateDefaultCases",value:function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t}(),J=function(){var t=function(){return g(function t(e,n,i){v(this,t),this.ngSwitch=i,i._addCase(),this._view=new Y(e,n)},[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(Q,9))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t}(),W=function(){var t=g(function t(e,n,i){v(this,t),i._addDefault(new Y(e,n))});return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(Q,9))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t}(),K=function(){return g(function t(){v(this,t)},[{key:"createSubscription",value:function(t,e){return t.subscribe({next:e,error:function(t){throw t}})}},{key:"dispose",value:function(t){t.unsubscribe()}},{key:"onDestroy",value:function(t){t.unsubscribe()}}])}(),$=new(function(){return g(function t(){v(this,t)},[{key:"createSubscription",value:function(t,e){return t.then(e,function(t){throw t})}},{key:"dispose",value:function(t){}}
1,{key:"onDestroy",value:function(t){}}])}()),X=new K,tt=function(){var t=function(){function t(e){v(this,t),this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return g(t,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}},{key:"_subscribe",value:function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})}},{key:"_selectStrategy",value:function(e){if((0,s.QGY)(e))return $;if((0,s.F4k)(e))return X;throw function(t,e){return Error("InvalidPipeArgument: '".concat(e,"' for pipe '").concat((0,s.AaK)(t),"'"))}(t,e)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO,16))},t.\u0275pipe=s.Yjl({name:"async",type:t,pure:!1}),t}(),et=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:F,useClass:U}]}),t}();function nt(t){return"browser"===t}function it(t){return"server"===t}var ot=function(){var t=g(function t(){v(this,t)});return t.\u0275prov=(0,s.Yz7)({token:t,providedIn:"root",factory:function(){return new rt((0,s.LFG)(f),window)}}),t}(),rt=function(){return g(function t(e,n){v(this,t),this.document=e,this.window=n,this.offset=function(){return[0,0]}},[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportsScrolling()){var e=function(t,e){var 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))for(var i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=i.currentNode;o;){var r=o.shadowRoot;if(r){var a=r.getElementById(e)||r.querySelector('[name="'.concat(e,'"]'));if(a)return a}o=i.nextNode()}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var 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])}},{key:"attemptFocus",value:function(t){return t.focus(),this.document.activeElement===t}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var t=at(this.window.history)||at(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}])}();function at(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}var st,ct=g(function t(){v(this,t)}),ut=function(t){function e(){return v(this,e),y(this,e,arguments)}return b(e,t),g(e,[{key:"onAndCancel",value:function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){t.parentNode&&t.parentNode.removeChild(t)}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getBaseHref",value:function(t){var e=(lt=lt||document.querySelector("base"))?lt.getAttribute("href"):null;return null==e?null:function(t){(st=st||document.createElement("a")).setAttribute("href",t);var e=st.pathname;return"/"===e.charAt(0)?e:"/".concat(e)}(e)}},{key:"resetBaseElement",value:function(){lt=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(t){return Z(document.cookie,t)}}],[{key:"makeCurrent",value:function(){var t;t=new e,c||(c=t)}}])}(function(t){function e(){var t;return v(this,e),(t=y(this,e,arguments)).supportsDOMEvents=!0,t}return b(e,t),g(e)}(g(function t(){v(this,t)}))),lt=null,ht=new s.OlP("TRANSITION_ID"),ft=[{provide:s.ip1,useFactory:function(t,e,n){return function(){n.get(s.CZH).donePromise.then(function(){for(var n=l(),i=e.querySelectorAll('style[ng-transition="'.concat(t,'"]')),o=0;o<i.length;o++)n.remove(i[o])})}},deps:[ht,f,s.zs3],multi:!0}],dt=function(){function t(){v(this,t)}return g(t,[{key:"addToWindow",value:function(t){s.dqk.getAngularTestability=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},s.dqk.getAllAngularTestabilities=function(){return t.getAllTestabilities()},s.dqk.getAllAngularRootElements=function(){return t.getAllRootElements()},s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(function(t){var e=s.dqk.getAllAngularTestabilities(),n=e.length,i=!1,o=function(e){i=i||e,0==--n&&t(i)};e.forEach(function(t){t.whenStable(o)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?l().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){(0,s.VLi)(new t)}}])}(),pt=function(){var t=function(){return g(function t(){v(this,t)},[{key:"build",value:function(){return new XMLHttpRequest}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}
1(),gt=new s.OlP("EventManagerPlugins"),mt=function(){var t=function(){return g(function t(e,n){var i=this;v(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=i}),this._plugins=e.slice().reverse()},[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,i=0;i<n.length;i++){var o=n[i];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error("No event manager plugin found for event ".concat(t))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(gt),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),vt=function(){return g(function t(e){v(this,t),this._doc=e},[{key:"addGlobalEventListener",value:function(t,e,n){var i=l().getGlobalEventTarget(this._doc,t);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(e));return this.addEventListener(i,e,n)}}])}(),yt=function(){var t=function(){return g(function t(){v(this,t),this._stylesSet=new Set},[{key:"addStyles",value:function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(t){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),_t=function(){var t=function(t){function e(t){var n;return v(this,e),(n=y(this,e))._doc=t,n._hostNodes=new Map,n._hostNodes.set(t.head,[]),n}return b(e,t),g(e,[{key:"_addStylesToHost",value:function(t,e,n){var i=this;t.forEach(function(t){var o=i._doc.createElement("style");o.textContent=t,n.push(e.appendChild(o))})}},{key:"addHost",value:function(t){var e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}},{key:"removeHost",value:function(t){var e=this._hostNodes.get(t);e&&e.forEach(bt),this._hostNodes.delete(t)}},{key:"onStylesAdded",value:function(t){var e=this;this._hostNodes.forEach(function(n,i){e._addStylesToHost(t,i,n)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(t){return t.forEach(bt)})}}])}(yt);return t.\u0275fac=function(e){return new(e||t)(s.LFG(f))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}();function bt(t){l().remove(t)}var Ct={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/"},xt=/%COMP%/g;function wt(t,e,n){for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?wt(t,o,n):(o=o.replace(xt,t),n.push(o))}return n}function Ot(t){return function(e){if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var Pt=function(){var t=function(){return g(function t(e,n,i){v(this,t),this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Mt(e)},[{key:"createRenderer",value:function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new kt(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case 1:case s.ifc.ShadowDom:return new Tt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var i=wt(e.id,e.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(mt),s.LFG(_t),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),Mt=function(){return g(function t(e){v(this,t),this.eventManager=e,this.data=Object.create(null)},[{key:"destroy",value:function(){}},{key:"createElement",value:function(t,e){return e?document.createElementNS(Ct[e]||e,t):document.createElement(t)}},{key:"createComment",value:function(t){return document.createComment(t)}},{key:"createText",value:function(t){return document.createTextNode(t)}},{key:"appendChild",value:function(t,e){t.appendChild(e)}},{key:"insertBefore",value:function(t,e,n){t&&t.insertBefore(e,n)}},{key:"removeChild",value:function(t,e){t&&t.removeChild(e)}},{key:"selectRootElement",value:function(t,e){var n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error('The selector "'.concat(t,'" did not match any elements'));return e||(n.textContent=""),n}},{key:"parentNode",value:function(t){return t.parentNode}},{key:"nextSibling",value:function(t){return t.nextSibling}},{key:"setAttribute",value:function(t,e,n,i){if(i){e=i+":"+e;var o=Ct[i];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}},{key:"removeAttribute",value:function(t,e,n){if(n){var i=Ct[n];i?t.removeAttributeNS(i,e):t.removeAttribute("".concat(n,":").concat(e))}else t.removeAttribute(e)}},{key:"addClass",value:function(t,e){t.classList.add(e)}},{key:"removeClass",value:function(t,e){t.classList.remove(e)}},{key:"setStyle",value:function(t,e,n,i){i&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,n,i&s.JOm.Important?"important":""):t.style[e]=n}},{key:"removeStyle",value:function(t,e,n){n&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}},{key:"setProperty",value:function(t,e,n){t[e]=n}},{key:"setValue",value:function(t,e){t.nodeValue=e}},{key:"listen",value:function(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Ot(n)):this.eventManager.addEventListener(t,e,Ot(n))}}])}(),kt=function(t){function e(t,n,i,o){var r;v(this,e),(r=y(this,e,[t])).component=i;var a=wt(o+"-"+i.id,i.styles,[]);return n.addStyles(a),r.contentAttr="_ngcontent-%COMP%".replace(xt,o+"-"+i.id),r.hostAttr=function(t){return"_nghost-%COMP%".replace(xt,t)}(o+"-"+i.id),r}
1return b(e,t),g(e,[{key:"applyToHost",value:function(t){a(e,"setAttribute",this,3)([t,this.hostAttr,""])}},{key:"createElement",value:function(t,n){var i=a(e,"createElement",this,3)([t,n]);return a(e,"setAttribute",this,3)([i,this.contentAttr,""]),i}}])}(Mt),Tt=function(t){function e(t,n,i,o){var r;v(this,e),(r=y(this,e,[t])).sharedStylesHost=n,r.hostEl=i,r.shadowRoot=i.attachShadow({mode:"open"}),r.sharedStylesHost.addHost(r.shadowRoot);for(var a=wt(o.id,o.styles,[]),s=0;s<a.length;s++){var c=document.createElement("style");c.textContent=a[s],r.shadowRoot.appendChild(c)}return r}return b(e,t),g(e,[{key:"nodeOrShadowRoot",value:function(t){return t===this.hostEl?this.shadowRoot:t}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(t,n){return a(e,"appendChild",this,3)([this.nodeOrShadowRoot(t),n])}},{key:"insertBefore",value:function(t,n,i){return a(e,"insertBefore",this,3)([this.nodeOrShadowRoot(t),n,i])}},{key:"removeChild",value:function(t,n){return a(e,"removeChild",this,3)([this.nodeOrShadowRoot(t),n])}},{key:"parentNode",value:function(t){return this.nodeOrShadowRoot(a(e,"parentNode",this,3)([this.nodeOrShadowRoot(t)]))}}])}(Mt),St=function(){var t=function(t){function e(t){return v(this,e),y(this,e,[t])}return b(e,t),g(e,[{key:"supports",value:function(t){return!0}},{key:"addEventListener",value:function(t,e,n){var i=this;return t.addEventListener(e,n,!1),function(){return i.removeEventListener(t,e,n)}}},{key:"removeEventListener",value:function(t,e,n){return t.removeEventListener(e,n)}}])}(vt);return t.\u0275fac=function(e){return new(e||t)(s.LFG(f))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),Et=["alt","control","meta","shift"],At={"\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"},It={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"},Rt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Nt=function(){var t=function(t){function e(t){return v(this,e),y(this,e,[t])}return b(e,t),g(e,[{key:"supports",value:function(t){return null!=e.parseEventName(t)}},{key:"addEventListener",value:function(t,n,i){var o=e.parseEventName(n),r=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return l().onAndCancel(t,o.domEventName,r)})}}],[{key:"parseEventName",value:function(t){var n=t.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;var o=e._normalizeKey(n.pop()),r="";if(Et.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=o,0!=n.length||0===o.length)return null;var a={};return a.domEventName=i,a.fullKey=r,a}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&It.hasOwnProperty(e)&&(e=It[e]))}return At[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Et.forEach(function(i){i!=n&&Rt[i](t)&&(e+=i+".")}),e+=n}},{key:"eventCallback",value:function(t,n,i){return function(o){e.getEventFullKey(o)===t&&i.runGuarded(function(){return n(o)})}}},{key:"_normalizeKey",value:function(t){return"esc"===t?"escape":t}}])}(vt);return t.\u0275fac=function(e){return new(e||t)(s.LFG(f))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),Lt=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(Dt)},token:t,providedIn:"root"}),t}(),Dt=function(){var t=function(t){function e(t){var n;return v(this,e),(n=y(this,e))._doc=t,n}return b(e,t),g(e,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.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 ".concat(t," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return(0,s.JVY)(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return(0,s.L6k)(t)}},{key:"bypassSecurityTrustScript",value:function(t){return(0,s.eBb)(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return(0,s.LAX)(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return(0,s.pB0)(t)}}])}(Lt);return t.\u0275fac=function(e){return new(e||t)(s.LFG(f))},t.\u0275prov=(0,s.Yz7)({factory:function(){return function(t){return new Dt(t.get(f))}((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t}(),Ft=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:"browser"}
1,{provide:s.g9A,useValue:function(){ut.makeCurrent(),dt.init()},multi:!0},{provide:f,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),Ut=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:gt,useClass:St,multi:!0,deps:[f,s.R0b,s.Lbi]},{provide:gt,useClass:Nt,multi:!0,deps:[f]},[],{provide:Pt,useClass:Pt,deps:[mt,_t,s.AFp]},{provide:s.FYo,useExisting:Pt},{provide:yt,useExisting:_t},{provide:_t,useClass:_t,deps:[f]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:mt,useClass:mt,deps:[gt,s.R0b]},{provide:ct,useClass:pt,deps:[]},[]],Zt=function(){var t=function(){function t(e){if(v(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return g(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:s.AFp,useValue:e.appId},{provide:ht,useExisting:s.AFp},ft]}}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:Ut,imports:[et,s.hGG]}),t}();"undefined"!=typeof window&&window;var qt=r(5917),jt=r(7574),Vt=r(9773);function zt(t,e){return(0,Vt.zg)(t,e,1)}var Gt=r(7393);function Bt(t,e){return function(n){return n.lift(new Ht(t,e))}}var Ht=function(){return g(function t(e,n){v(this,t),this.predicate=e,this.thisArg=n},[{key:"call",value:function(t,e){return e.subscribe(new Yt(t,this.predicate,this.thisArg))}}])}(),Yt=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e,[t])).predicate=n,o.thisArg=i,o.count=0,o}return b(e,t),g(e,[{key:"_next",value:function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}])}(Gt.L),Qt=r(8002),Jt=g(function t(){v(this,t)}),Wt=g(function t(){v(this,t)}),Kt=function(){function t(e){var n=this;v(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){n.headers=new Map,e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var i=t.slice(0,e),o=i.toLowerCase(),r=t.slice(e+1).trim();n.maybeSetNormalizedName(i,o),n.headers.has(o)?n.headers.get(o).push(r):n.headers.set(o,[r])}})}:function(){n.headers=new Map,Object.keys(e).forEach(function(t){var i=e[t],o=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(o,i),n.maybeSetNormalizedName(t,o))})}:this.headers=new Map}return g(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})}},{key:"clone",value:function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,u(n)),this.headers.set(e,i);break;case"d":var o=t.value;if(o){var r=this.headers.get(e);if(!r)return;r=r.filter(function(t){return-1===o.indexOf(t)}),0===r.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}else this.headers.delete(e),this.normalizedNames.delete(e)}}}
1,{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})}}])}(),$t=function(){return g(function t(){v(this,t)},[{key:"encodeKey",value:function(t){return ee(t)}},{key:"encodeValue",value:function(t){return ee(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}])}(),Xt=/%(\d[a-f0-9])/gi,te={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ee(t){return encodeURIComponent(t).replace(Xt,function(t,e){var n;return null!==(n=te[e])&&void 0!==n?n:t})}function ne(t){return"".concat(t)}var ie=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(v(this,t),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new $t,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){var n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(function(t){var o=t.indexOf("="),r=i(-1==o?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,o)),e.decodeValue(t.slice(o+1))],2),a=r[0],s=r[1],c=n.get(a)||[];c.push(s),n.set(a,c)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(t){var i=n.fromObject[t];e.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}return g(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(n){var i=t[n];Array.isArray(i)?i.forEach(function(t){e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).filter(function(t){return""!==t}).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(ne(e.value)),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var i=t.map.get(e.param)||[],o=i.indexOf(ne(e.value));-1!==o&&i.splice(o,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}])}(),oe=function(){return g(function t(){v(this,t),this.map=new Map},[{key:"set",value:function(t,e){return this.map.set(t,e),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}])}();function re(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function ae(t){return"undefined"!=typeof Blob&&t instanceof Blob}function se(t){return"undefined"!=typeof FormData&&t instanceof FormData}var ce=function(){function t(e,n,i,o){var r;if(v(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new Kt),this.context||(this.context=new oe),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+a}}else this.params=new ie,this.urlWithParams=n}return g(t,[{key:"serializeBody",value:function(){return null===this.body?null:re(this.body)||ae(this.body)||se(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof ie?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||se(this.body)?null:ae(this.body)?this.body.type||null:re(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ie?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,o=n.url||this.url,r=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,c=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,u=n.headers||this.headers,l=n.params||this.params,h=null!==(e=n.context)&&void 0!==e?e:this.context;return void 0!==n.setHeaders&&(u=Object.keys(n.setHeaders).reduce(function(t,e){return t.set(e,n.setHeaders[e])},u)),n.setParams&&(l=Object.keys(n.setParams).reduce(function(t,e){return t.set(e,n.setParams[e])},l)),new t(i,o,a,{params:l,headers:u,context:h,reportProgress:c,responseType:r,withCredentials:s})}}])}(),ue=((ue=ue||{}
1)[ue.Sent=0]="Sent",ue[ue.UploadProgress=1]="UploadProgress",ue[ue.ResponseHeader=2]="ResponseHeader",ue[ue.DownloadProgress=3]="DownloadProgress",ue[ue.Response=4]="Response",ue[ue.User=5]="User",ue),le=g(function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";v(this,t),this.headers=e.headers||new Kt,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}),he=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(this,e),(t=y(this,e,[n])).type=ue.ResponseHeader,t}return b(e,t),g(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e({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})}}])}(le),fe=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(this,e),(t=y(this,e,[n])).type=ue.Response,t.body=void 0!==n.body?n.body:null,t}return b(e,t),g(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e({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})}}])}(le),de=function(t){function e(t){var n;return v(this,e),(n=y(this,e,[t,0,"Unknown Error"])).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),n.error=t.error||null,n}return b(e,t),g(e)}(le);function pe(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}}var ge=function(){var t=function(){return g(function t(e){v(this,t),this.handler=e},[{key:"request",value:function(t,e){var n,i,o,r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t instanceof ce?n=t:(i=a.headers instanceof Kt?a.headers:new Kt(a.headers),a.params&&(o=a.params instanceof ie?a.params:new ie({fromObject:a.params})),n=new ce(t,e,void 0!==a.body?a.body:null,{headers:i,context:a.context,params:o,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials}));var s=(0,qt.of)(n).pipe(zt(function(t){return r.handler.handle(t)}));if(t instanceof ce||"events"===a.observe)return s;var c=s.pipe(Bt(function(t){return t instanceof fe}));switch(a.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return c.pipe((0,Qt.U)(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return c.pipe((0,Qt.U)(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return c.pipe((0,Qt.U)(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));default:return c.pipe((0,Qt.U)(function(t){return t.body}))}case"response":return c;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new ie).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,pe(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,pe(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,pe(n,e))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(Jt))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),me=function(){return g(function t(e,n){v(this,t),this.next=e,this.interceptor=n},[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}])}(),ve=new s.OlP("HTTP_INTERCEPTORS"),ye=function(){var t=function(){return g(function t(){v(this,t)},[{key:"intercept",value:function(t,e){return e.handle(t)}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),_e=/^\)\]\}',?\n/,be=function(){var t=function(){return g(function t(e){v(this,t),this.xhrFactory=e},[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new jt.y(function(n){var i=e.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEac
1h(function(t,e){return i.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&i.setRequestHeader("Content-Type",o)}if(t.responseType){var r=t.responseType.toLowerCase();i.responseType="json"!==r?r:"text"}var a=t.serializeBody(),s=null,c=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",o=new Kt(i.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new he({headers:o,status:e,statusText:n,url:r})},u=function(){var e=c(),o=e.headers,r=e.status,a=e.statusText,s=e.url,u=null;204!==r&&(u=void 0===i.response?i.responseText:i.response),0===r&&(r=u?200:0);var l=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof u){var h=u;u=u.replace(_e,"");try{u=""!==u?JSON.parse(u):null}catch(f){u=h,l&&(l=!1,u={error:f,text:u})}}l?(n.next(new fe({body:u,headers:o,status:r,statusText:a,url:s||void 0})),n.complete()):n.error(new de({error:u,headers:o,status:r,statusText:a,url:s||void 0}))},l=function(t){var e=c().url,o=new de({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e||void 0});n.error(o)},h=!1,f=function(e){h||(n.next(c()),h=!0);var o={type:ue.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&!!i.responseText&&(o.partialText=i.responseText),n.next(o)},d=function(t){var e={type:ue.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",u),i.addEventListener("error",l),i.addEventListener("timeout",l),i.addEventListener("abort",l),t.reportProgress&&(i.addEventListener("progress",f),null!==a&&i.upload&&i.upload.addEventListener("progress",d)),i.send(a),n.next({type:ue.Sent}),function(){i.removeEventListener("error",l),i.removeEventListener("abort",l),i.removeEventListener("load",u),i.removeEventListener("timeout",l),t.reportProgress&&(i.removeEventListener("progress",f),null!==a&&i.upload&&i.upload.removeEventListener("progress",d)),i.readyState!==i.DONE&&i.abort()}})}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(ct))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),Ce=new s.OlP("XSRF_COOKIE_NAME"),xe=new s.OlP("XSRF_HEADER_NAME"),we=g(function t(){v(this,t)}),Oe=function(){var t=function(){return g(function t(e,n,i){v(this,t),this.doc=e,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0},[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Z(t,this.cookieName),this.lastCookieString=t),this.lastToken}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(f),s.LFG(s.Lbi),s.LFG(Ce))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),Pe=function(){var t=function(){return g(function t(e,n){v(this,t),this.tokenService=e,this.headerName=n},[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var 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)(s.LFG(we),s.LFG(xe))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),Me=function(){var t=function(){return g(function t(e,n){v(this,t),this.backend=e,this.injector=n,this.chain=null},[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(ve,[]);this.chain=e.reduceRight(function(t,e){return new me(t,e)},this.backend)}return this.chain.handle(t)}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(Wt),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),ke=function(){var t=function(){function t(){v(this,t)}return g(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:Pe,useClass:ye}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:Ce,useValue:e.cookieName}:[],e.headerName?{provide:xe,useValue:e.headerName}:[]]}}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Pe,{provide:ve,useExisting:Pe,multi:!0},{provide:we,useClass:Oe},{provide:Ce,useValue:"XSRF-TOKEN"},{provide:xe,useValue:"X-XSRF-TOKEN"}
1]}),t}(),Te=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[ge,{provide:Jt,useClass:Me},be,{provide:Wt,useExisting:be}],imports:[[ke.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),Se=r(57),Ee=r(9765),Ae=r(5372),Ie=r(6682),Re=r(9746),Ne=r(5197),Le=r(268),De=r(5604);function Fe(t,e){return"function"==typeof e?function(n){return n.pipe(Fe(function(n,i){return(0,Ae.D)(t(n,i)).pipe((0,Qt.U)(function(t,o){return e(n,t,i,o)}))}))}:function(e){return e.lift(new Ue(t))}}var Ue=function(){return g(function t(e){v(this,t),this.project=e},[{key:"call",value:function(t,e){return e.subscribe(new Ze(t,this.project))}}])}(),Ze=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[t])).project=n,i.index=0,i}return b(e,t),g(e,[{key:"_next",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)}},{key:"_innerSub",value:function(t,e,n){var i=this.innerSubscription;i&&i.unsubscribe();var o=new Le.d(this,e,n),r=this.destination;r.add(o),this.innerSubscription=(0,De.D)(this,t,void 0,void 0,o),this.innerSubscription!==o&&r.add(this.innerSubscription)}},{key:"_complete",value:function(){var t=this.innerSubscription;(!t||t.closed)&&a(e,"_complete",this,3)([]),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&a(e,"_complete",this,3)([])}},{key:"notifyNext",value:function(t,e,n,i,o){this.destination.next(e)}}])}(Ne.L),qe=r(7771),je=r(5319),Ve=r(7971),ze=r(8858),Ge=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return v(this,e),(t=y(this,e)).scheduler=o,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=n<1?1:n,t._windowTime=i<1?1:i,i===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return b(e,t),g(e,[{key:"nextInfiniteTimeWindow",value:function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),a(e,"next",this,3)([t])}},{key:"nextTimeWindow",value:function(t){this._events.push(new Be(this._getNow(),t)),this._trimBufferThenGetEvents(),a(e,"next",this,3)([t])}},{key:"_subscribe",value:function(t){var e,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,r=i.length;if(this.closed)throw new Ve.N;if(this.isStopped||this.hasError?e=je.w.EMPTY:(this.observers.push(t),e=new ze.W(this,t)),o&&t.add(t=new Re.ht(t,o)),n)for(var a=0;a<r&&!t.closed;a++)t.next(i[a]);else for(var s=0;s<r&&!t.closed;s++)t.next(i[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e}},{key:"_getNow",value:function(){return(this.scheduler||qe.c).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,o=i.length,r=0;r<o&&!(t-i[r].time<n);)r++;return o>e&&(r=Math.max(r,o-e)),r>0&&i.splice(0,r),i}}])}(Ee.xQ),Be=g(function t(e,n){v(this,t),this.time=e,this.value=n});function He(t,e,n){var i;return i=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,i=t.bufferSize,o=void 0===i?Number.POSITIVE_INFINITY:i,r=t.windowTime,a=void 0===r?Number.POSITIVE_INFINITY:r,s=t.refCount,c=t.scheduler,u=0,l=!1,h=!1;return function(t){u++,(!e||l)&&(l=!1,e=new Ge(o,a,c),n=t.subscribe({next:function(t){e.next(t)},error:function(t){l=!0,e.error(t)},complete:function(){h=!0,n=void 0,e.complete()}}));var i=e.subscribe(this);this.add(function(){u--,i.unsubscribe(),n&&!h&&s&&0===u&&(n.unsubscribe(),n=void 0,e=void 0)})}}(i))}}var Ye=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),Qe=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),Je=r(9193);function We(t){return function(e){return 0===t?(0,Je.c)():e.lift(new Ke(t))}}var Ke=function(){return g(function t(e){if(v(this,t),this.total=e,this.total<0)throw new Qe},[{key:"call",value:function(t,e){return e.subscribe(new $e(t,this.total))}}])}(),$e=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[t])).total=n,i.count=0,i}return b(e,t),g(e,[{key:"_next",value:function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}])}(Gt.L);function Xe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new tn(t))}}var tn=function(){return g(function t(e){v(this,t),this.defaultValue=e},[{key:"call",value:function(t,e){return e.subscribe(new en(t,this.defaultValue))}}])}(),en=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[t])).defaultValue=n,i.isEmpty=!0,i}return b(e,t),g(e,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}])}(Gt.L);function nn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:an;return function(e){return e.lift(new on(t))}}var on=function(){return g(function t(e){v(this,t),this.errorFactory=e},[{key:"call",value:function(t,e){return e.subscribe(new rn(t,this.errorFactory)
1)}}])}(),rn=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[t])).errorFactory=n,i.hasValue=!1,i}return b(e,t),g(e,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}])}(Gt.L);function an(){return new Ye}var sn=r(4487);function cn(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Bt(function(e,n){return t(e,n,i)}):sn.y,We(1),n?Xe(e):nn(function(){return new Ye}))}}function un(t,e){return e?Fe(function(){return t},e):Fe(function(){return t})}var ln=r(9673),hn=new s.OlP("angularfire2.auth.use-emulator"),fn=new s.OlP("angularfire2.auth.settings"),dn=new s.OlP("angularfire2.auth.tenant-id"),pn=new s.OlP("angularfire2.auth.langugage-code"),gn=new s.OlP("angularfire2.auth.use-device-language"),mn=new s.OlP("angularfire.auth.persistence"),vn=function(){var t=g(function t(e,n,o,a,s,c,u,l,h,f){v(this,t);var d=new Se.HU(a),p=(0,Se.ss)(d),g=new Ee.xQ,m=(0,qt.of)(void 0).pipe((0,Re.QV)(d.outsideAngular),Fe(function(){return a.runOutsideAngular(function(){return Promise.resolve().then(r.bind(r,1336))})}),(0,Qt.U)(function(){return(0,Se.on)(e,a,n)}),(0,Qt.U)(function(t){return a.runOutsideAngular(function(){var e=s,n=c;return(0,Se.sI)("".concat(t.name,".auth"),"AngularFireAuth",t,function(){var o=a.runOutsideAngular(function(){return t.auth()});if(e&&o.useEmulator("http://".concat(e.join(":"))),u&&(o.tenantId=u),o.languageCode=l,h&&o.useDeviceLanguage(),n)for(var r=0,s=Object.entries(n);r<s.length;r++){var c=i(s[r],2),d=c[0],p=c[1];o.settings[d]=p}return f&&o.setPersistence(f),o},[e,u,l,h,n,f])})}),He({bufferSize:1,refCount:!1}));if(it(o))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,qt.of)(null);else{m.pipe(cn()).subscribe();var y=m.pipe(Fe(function(t){return t.getRedirectResult().then(function(t){return t},function(){return null})}),p,He({bufferSize:1,refCount:!1})),_=function(t){return new jt.y(function(e){return{unsubscribe:a.runOutsideAngular(function(){return t(e)})}})},b=m.pipe(Fe(function(t){return _(t.onAuthStateChanged.bind(t))})),C=m.pipe(Fe(function(t){return _(t.onIdTokenChanged.bind(t))}));this.authState=y.pipe(un(b),(0,ln.R)(d.outsideAngular),(0,Re.QV)(d.insideAngular)),this.user=y.pipe(un(C),(0,ln.R)(d.outsideAngular),(0,Re.QV)(d.insideAngular)),this.idToken=this.user.pipe(Fe(function(t){return t?(0,Ae.D)(t.getIdToken()):(0,qt.of)(null)})),this.idTokenResult=this.user.pipe(Fe(function(t){return t?(0,Ae.D)(t.getIdTokenResult()):(0,qt.of)(null)})),this.credential=(0,Ie.T)(y,g,this.authState.pipe(Bt(function(t){return!t}))).pipe((0,Qt.U)(function(t){return(null==t?void 0:t.user)?t:null}),(0,ln.R)(d.outsideAngular),(0,Re.QV)(d.insideAngular))}return(0,Se.pX)(this,m,a,{spy:{apply:function(t,e,n){(t.startsWith("signIn")||t.startsWith("createUser"))&&n.then(function(t){return g.next(t)})}}})});return t.\u0275fac=function(e){return new(e||t)(s.LFG(Se.Dh),s.LFG(Se.xv,8),s.LFG(s.Lbi),s.LFG(s.R0b),s.LFG(hn,8),s.LFG(fn,8),s.LFG(dn,8),s.LFG(pn,8),s.LFG(gn,8),s.LFG(mn,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Se.Dh),s.LFG(Se.xv,8),s.LFG(s.Lbi),s.LFG(s.R0b),s.LFG(hn,8),s.LFG(fn,8),s.LFG(dn,8),s.LFG(pn,8),s.LFG(gn,8),s.LFG(mn,8))},token:t,providedIn:"any"}),t}(),yn=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[vn]}),t}(),_n=r(3637),bn=r(3282);function Cn(){return(0,bn.J)(1)(qt.of.apply(void 0,arguments))}var xn=r(4869);function wn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e[e.length-1];return(0,xn.K)(i)?(e.pop(),function(t){return Cn(e,t,i)}):function(t){return Cn(e,t)}}function On(){return function(t){return t.lift(new Pn)}}var Pn=function(){return g(function t(){v(this,t)},[{key:"call",value:function(t,e){return e.subscribe(new Mn(t))}}])}(),Mn=function(t){function e(t){var n;return v(this,e),(n=y(this,e,[t])).hasPrev=!1,n}return b(e,t),g(e,[{key:"_next",value:function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}])}(Gt.L);function kn(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Tn(t,e,n))}}var Tn=function(){return g(function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];v(this,t),this.accumulator=e,this.seed=n,this.hasSeed=i},[{key:"call",value:function(t,e){return e.subscribe(new Sn(t,this.accumulator,this.seed,this.hasSeed))}}])}(),Sn=function(t){function e(t,n,i,o){var r;return v(this,e),(r=y(this,e,[t])).accumulator=n,r._seed=i,r.hasSeed=o,r.index=0,r}return b(e,t),g(e,[{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}},{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=e,this.destination.next(e)}}])}(Gt.L);function En(t,e){return function(n){return n.lift(new An(t,e))}}var An=function(){return g(function t(e,n){v(this,t),this.compare=e,this.keySelector=n},[{key:"call",value:function(t,e){return e.subscribe(new In(t,this.compare,this.keySelector))}}])}(),In=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e,[t])).keySelector=i,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}
1return b(e,t),g(e,[{key:"compare",value:function(t,e){return t===e}},{key:"_next",value:function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(n){return this.destination.error(n)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}])}(Gt.L),Rn=r(2329),Nn=r(9759),Ln=r(7582),Dn=r(4685),Fn=r(300),Un=function(t,e){return(Un=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 Zn(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 qn,jn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Vn=Vn||{},zn=jn||self;function Gn(){}function Bn(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 Hn(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var Yn="closure_uid_"+(1e9*Math.random()>>>0),Qn=0;function Jn(t,e,n){return t.call.apply(t.bind,arguments)}function Wn(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 Kn(t,e,n){return(Kn=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Jn:Wn).apply(null,arguments)}function $n(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 Xn(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 ti(){this.s=this.s,this.o=this.o}var ei={};ti.prototype.s=!1,ti.prototype.na=function(){if(!this.s&&(this.s=!0,this.M(),0)){var t=function(t){return Object.prototype.hasOwnProperty.call(t,Yn)&&t[Yn]||(t[Yn]=++Qn)}(this);delete ei[t]}},ti.prototype.M=function(){if(this.o)for(;this.o.length;)this.o.shift()()};var ni=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},ii=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 oi(t){return Array.prototype.concat.apply([],arguments)}function ri(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 ai(t){return/^[\s\xa0]*$/.test(t)}var si,ci=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function ui(t,e){return-1!=t.indexOf(e)}function li(t,e){return t<e?-1:t>e?1:0}t:{var hi=zn.navigator;if(hi){var fi=hi.userAgent;if(fi){si=fi;break t}}si=""}function di(t,e,n){for(var i in t)e.call(n,t[i],i,t)}function pi(t){var e={};for(var n in t)e[n]=t[n];return e}var gi="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function mi(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<gi.length;r++)n=gi[r],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}function vi(t){return vi[" "](t),t}vi[" "]=Gn;var yi,_i,bi=ui(si,"Opera"),Ci=ui(si,"Trident")||ui(si,"MSIE"),xi=ui(si,"Edge"),wi=xi||Ci,Oi=ui(si,"Gecko")&&!(ui(si.toLowerCase(),"webkit")&&!ui(si,"Edge"))&&!(ui(si,"Trident")||ui(si,"MSIE"))&&!ui(si,"Edge"),Pi=ui(si.toLowerCase(),"webkit")&&!ui(si,"Edge");function Mi(){var t=zn.document;return t?t.documentMode:void 0}t:{var ki="",Ti=(_i=si,Oi?/rv:([^\);]+)(\)|;)/.exec(_i):xi?/Edge\/([\d\.]+)/.exec(_i):Ci?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(_i):Pi?/WebKit\/(\S+)/.exec(_i):bi?/(?:Version)[ \/]?(\S+)/.exec(_i):void 0);if(Ti&&(ki=Ti?Ti[1]:""),Ci){var Si=Mi();if(null!=Si&&Si>parseFloat(ki)){yi=String(Si);break t}}yi=ki}var Ei={};var Ai=zn.document&&Ci&&(Mi()||parseInt(yi,10))||void 0,Ii=function(){if(!zn.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{zn.addEventListener("test",Gn,e),zn.removeEventListener("test",Gn,e)}catch(n){}return t}();function Ri(t,e){this.type=t,this.g=this.target=e,this.defaultPrevented=!1}function Ni(t,e){if(Ri.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(Oi){t:{try{vi(e.nodeName);var o=!0;break t}catch(r){}o=!1}o||(e=null)}}
vendor: 28,654 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:Li[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&Ni.Z.h.call(this)}}Ri.prototype.h=function(){this.defaultPrevented=!0},Xn(Ni,Ri);var Li={2:"touch",3:"pen",4:"mouse"};Ni.prototype.h=function(){Ni.Z.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var Di="closure_listenable_"+(1e6*Math.random()|0),Fi=0;function Ui(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=++Fi,this.ca=this.fa=!1}function Zi(t){t.ca=!0,t.listener=null,t.proxy=null,t.src=null,t.ia=null}function qi(t){this.src=t,this.g={},this.h=0}function ji(t,e){var n=e.type;if(n in t.g){var i,o=t.g[n],r=ni(o,e);(i=0<=r)&&Array.prototype.splice.call(o,r,1),i&&(Zi(e),0==t.g[n].length&&(delete t.g[n],t.h--))}}function Vi(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}qi.prototype.add=function(t,e,n,i,o){var r=t.toString();(t=this.g[r])||(t=this.g[r]=[],this.h++);var a=Vi(t,e,i,o);return-1<a?(e=t[a],n||(e.fa=!1)):((e=new Ui(e,this.src,r,!!i,o)).fa=n,t.push(e)),e};var zi="closure_lm_"+(1e6*Math.random()|0),Gi={};function Bi(t,e,n,i,o){if(i&&i.once)return Yi(t,e,n,i,o);if(Array.isArray(e)){for(var r=0;r<e.length;r++)Bi(t,e[r],n,i,o);return null}return n=to(n),t&&t[Di]?t.N(e,n,Hn(i)?!!i.capture:!!i,o):Hi(t,e,n,!1,i,o)}function Hi(t,e,n,i,o,r){if(!e)throw Error("Invalid event type");var a=Hn(o)?!!o.capture:!!o,s=$i(t);if(s||(t[zi]=s=new qi(t)),(n=s.add(e,n,i,a,r)).proxy)return n;if(i=function(){var t=Ki;return function e(n){return t.call(e.src,e.listener,n)}}(),n.proxy=i,i.src=t,i.listener=n,t.addEventListener)Ii||(o=a),void 0===o&&(o=!1),t.addEventListener(e.toString(),i,o);else if(t.attachEvent)t.attachEvent(Wi(e.toString()),i);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(i)}return n}function Yi(t,e,n,i,o){if(Array.isArray(e)){for(var r=0;r<e.length;r++)Yi(t,e[r],n,i,o);return null}return n=to(n),t&&t[Di]?t.O(e,n,Hn(i)?!!i.capture:!!i,o):Hi(t,e,n,!0,i,o)}function Qi(t,e,n,i,o){if(Array.isArray(e))for(var r=0;r<e.length;r++)Qi(t,e[r],n,i,o);else i=Hn(i)?!!i.capture:!!i,n=to(n),t&&t[Di]?(t=t.i,(e=String(e).toString())in t.g&&-1<(n=Vi(r=t.g[e],n,i,o))&&(Zi(r[n]),Array.prototype.splice.call(r,n,1),0==r.length&&(delete t.g[e],t.h--))):t&&(t=$i(t))&&(e=t.g[e.toString()],t=-1,e&&(t=Vi(e,n,i,o)),(n=-1<t?e[t]:null)&&Ji(n))}function Ji(t){if("number"!=typeof t&&t&&!t.ca){var e=t.src;if(e&&e[Di])ji(e.i,t);else{var n=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(n,i,t.capture):e.detachEvent?e.detachEvent(Wi(n),i):e.addListener&&e.removeListener&&e.removeListener(i),(n=$i(e))?(ji(n,t),0==n.h&&(n.src=null,e[zi]=null)):Zi(t)}}}function Wi(t){return t in Gi?Gi[t]:Gi[t]="on"+t}function Ki(t,e){if(t.ca)t=!0;else{e=new Ni(e,this);var n=t.listener,i=t.ia||t.src;t.fa&&Ji(t),t=n.call(i,e)}return t}function $i(t){return(t=t[zi])instanceof qi?t:null}var Xi="__closure_events_fn_"+(1e9*Math.random()>>>0);function to(t){return"function"==typeof t?t:(t[Xi]||(t[Xi]=function(e){return t.handleEvent(e)}),t[Xi])}function eo(){ti.call(this),this.i=new qi(this),this.P=this,this.I=null}function no(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 Ri(e,t);else if(e instanceof Ri)e.target=e.target||t;else{var o=e;mi(e=new Ri(i,t),o)}if(o=!0,n)for(var r=n.length-1;0<=r;r--){var a=e.g=n[r];o=io(a,i,!0,e)&&o}if(o=io(a=e.g=t,i,!0,e)&&o,o=io(a,i,!1,e)&&o,n)for(r=0;r<n.length;r++)o=io(a=e.g=n[r],i,!1,e)&&o}function io(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 a=e[r];if(a&&!a.ca&&a.capture==n){var s=a.listener,c=a.ia||a.src;a.fa&&ji(t.i,a),o=!1!==s.call(c,i)&&o}}return o&&!i.defaultPrevented}Xn(eo,ti),eo.prototype[Di]=!0,eo.prototype.removeEventListener=function(t,e,n,i){Qi(this,t,e,n,i)},eo.prototype.M=function(){if(eo.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++)Zi(n[i]);delete e.g[t],e.h--}}this.I=null},eo.prototype.N=function(t,e,n,i){return this.i.add(String(t),e,!1,n,i)},eo.prototype.O=function(t,e,n,i){return this.i.add(String(t),e,!0,n,i)};var oo=zn.JSON.stringify;function ro(){var t=po,e=null;return t.g&&(e=t.g,t.g=t.g.next,t.g||(t.h=null),e.next=null),e}var ao,so=function(){function t(){this.h=this.g=null}return t.prototype.add=function(t,e){var n=co.get();n.set(t,e),this.h?this.h.next=n:this.g=n,this.h=n},t}(),co=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 uo},function(t){return t.reset()}),uo=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 lo(t){zn.setTimeout(function(){throw t},0)}function ho(t,e){ao||function(){var t=zn.Promise.resolve(void 0);ao=function(){t.then(go)}}(),fo||(ao(),fo=!0),po.add(t,e)}var fo=!1,po=new so;function go(){for(var t;t=ro();){try{t.h.call(t.g)}catch(n){lo(n)}var e=co;e.j(t),100>e.h&&(e.h++,t.next=e.g,e.g=t)}fo=!1}function mo(t,e){eo.call(this),this.h=t||1,this.g=e||zn,this.j=Kn(this.kb,this),this.l=Date.now()}function vo(t){t.da=!1,t.S&&(t.g.clearTimeout(t.S),t.S=null)}function yo(t,e,n){if("function"==typeof t)n&&(t=Kn(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=Kn(t.handleEvent,t)}return 2147483647<Number(e)?-1:zn.setTimeout(t,e||0)}function _o(t){t.g=yo(function(){t.g=null,t.i&&(t.i=!1,_o(t))},t.j);var e=t.h;t.h=null,t.m.apply(null,e)}Xn(mo,eo),(qn=mo.prototype).da=!1,qn.S=null,qn.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),no(this,"tick"),this.da&&(vo(this),this.start()))}},qn.start=function(){this.da=!0,this.S||(this.S=this.g.setTimeout(this.j,this.h),this.l=Date.now())},qn.M=function(){mo.Z.M.call(this),vo(this),delete this.g};var bo=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}Un(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:_o(this)},e.prototype.M=function(){t.prototype.M.call(this),this.g&&(zn.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)},e}(ti);function Co(t){ti.call(this),this.h=t,this.g={}}Xn(Co,ti);var xo=[];function wo(t,e,n,i){Array.isArray(n)||(n&&(xo[0]=n.toString()),n=xo);for(var o=0;o<n.length;o++){var r=Bi(e,n[o],i||t.handleEvent,!1,t.h||t);if(!r)break;t.g[r.key]=r}}function Oo(t){di(t.g,function(t,e){this.g.hasOwnProperty(e)&&Ji(t)},t),t.g={}}function Po(){this.g=!0}function Mo(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 a=1;a<o.length;a++)o[a]=""}}}return oo(n)}catch(s){return e}}(t,n)+(i?" "+i:"")})}Co.prototype.M=function(){Co.Z.M.call(this),Oo(this)},Co.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},Po.prototype.Aa=function(){this.g=!1},Po.prototype.info=function(){};var ko={},To=null;function So(){return To=To||new eo}function Eo(t){Ri.call(this,ko.Ma,t)}function Ao(t){var e=So();no(e,new Eo(e,t))}function Io(t,e){Ri.call(this,ko.STAT_EVENT,t),this.stat=e}function Ro(t){var e=So();no(e,new Io(e,t))}function No(t,e){Ri.call(this,ko.Na,t),this.size=e}function Lo(t,e){if("function"!=typeof t)throw Error("Fn must not be null and must be a function");return zn.setTimeout(function(){t()},e)}ko.Ma="serverreachability",Xn(Eo,Ri),ko.STAT_EVENT="statevent",Xn(Io,Ri),ko.Na="timingevent",Xn(No,Ri);var Do={NO_ERROR:0,lb:1,yb:2,xb:3,sb:4,wb:5,zb:6,Ja:7,TIMEOUT:8,Cb:9},Fo={qb:"complete",Mb:"success",Ka:"error",Ja:"abort",Eb:"ready",Fb:"readystatechange",TIMEOUT:"timeout",Ab:"incrementaldata",Db:"progress",tb:"downloadprogress",Ub:"uploadprogress"};function Uo(){}function Zo(){}Uo.prototype.h=null;var qo,jo={OPEN:"a",pb:"b",Ka:"c",Bb:"d"};function Vo(){Ri.call(this,"d")}function zo(){Ri.call(this,"c")}function Go(){}function Bo(t,e,n,i){this.l=t,this.j=e,this.m=n,this.X=i||1,this.V=new Co(this),this.P=Yo,this.W=new mo(t=wi?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 Ho}function Ho(){this.i=null,this.g="",this.h=!1}Xn(Vo,Ri),Xn(zo,Ri),Xn(Go,Uo),Go.prototype.g=function(){return new XMLHttpRequest},Go.prototype.i=function(){return{}},qo=new Go;var Yo=45e3,Qo={},Jo={};function Wo(t,e,n){t.K=1,t.v=_r(dr(e)),t.s=n,t.U=!0,Ko(t,null)}function Ko(t,e){t.F=Date.now(),er(t),t.A=dr(t.v);var n=t.A,i=t.X;Array.isArray(i)||(i=[String(i)]),Ir(n.h,"t",i),t.C=0,n=t.l.H,t.h=new Ho,t.g=Ra(t.l,n?e:null,!t.s),0<t.O&&(t.L=new bo(Kn(t.Ia,t,t.g),t.O)),wo(t.V,t.g,"readystatechange",t.gb),e=t.H?pi(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)),Ao(1),function(t,e,n,i,o,r){t.info(function(){if(t.g)if(r)for(var a="",s=r.split("&"),c=0;c<s.length;c++){var u=s[c].split("=");if(1<u.length){var l=u[0];u=u[1];var h=l.split("_");a=2<=h.length&&"type"==h[1]?a+(l+"=")+u+"&":a+(l+"=redacted&")}}else a=null;else a=r;return"XMLHTTP REQ ("+i+") [attempt "+o+"]: "+e+"\n"+n+"\n"+a})}(t.j,t.u,t.A,t.m,t.X,t.s)}function $o(t){return!!t.g&&"GET"==t.u&&2!=t.K&&t.l.Ba}function Xo(t,e,n){for(var i,o=!0;!t.I&&t.C<n.length;){if((i=tr(t,n))==Jo){4==e&&(t.o=4,Ro(14),o=!1),Mo(t.j,t.m,null,"[Incomplete Response]");break}if(i==Qo){t.o=4,Ro(15),Mo(t.j,t.m,n,"[Invalid Chunk]"),o=!1;break}Mo(t.j,t.m,i,null),ar(t,i)}$o(t)&&i!=Jo&&i!=Qo&&(t.h.g="",t.C=0),4!=e||0!=n.length||t.h.h||(t.o=1,Ro(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),Pa(e),e.L=!0,Ro(11))):(Mo(t.j,t.m,n,"[Invalid Chunked Response]"),rr(t),or(t))}function tr(t,e){var n=t.C,i=e.indexOf("\n",n);return-1==i?Jo:(n=Number(e.substring(n,i)),isNaN(n)?Qo:(i+=1)+n>e.length?Jo:(e=e.substr(i,n),t.C=i+n,e))}function er(t){t.Y=Date.now()+t.P,nr(t,t.P)}function nr(t,e){if(null!=t.B)throw Error("WatchDog timer not null");t.B=Lo(Kn(t.eb,t),e)}function ir(t){t.B&&(zn.clearTimeout(t.B),t.B=null)}function or(t){0==t.l.G||t.I||Ta(t.l,t)}function rr(t){ir(t);var e=t.L;e&&"function"==typeof e.na&&e.na(),t.L=null,vo(t.W),Oo(t.V),t.g&&(e=t.g,t.g=null,e.abort(),e.na())}function ar(t,e){try{var n=t.l;if(0!=n.G&&(n.g==t||Zr(n.i,t)))if(n.I=t.N,!t.J&&Zr(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=Lo(Kn(n.ab,n),6e3));else{if(n.g){if(!(n.g.F+3e3<t.F))break t;ka(n),ma(n)}Oa(n),Ro(18)}if(1>=Ur(n.i)&&n.ka){try{n.ka()}catch(m){}n.ka=void 0}}else Ea(n,11)}else if((t.J||n.g==t)&&ka(n),!ai(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 a=r[3];null!=a&&(n.ma=a,n.h.info("VER="+n.ma));var s=r[4];null!=s&&(n.za=s,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&&(ui(l,"spdy")||ui(l,"quic")||ui(l,"h2"))&&(h.j=h.l,h.g=new Set,h.h&&(qr(h,h.h),h.h=null))}if(i.D){var f=u.g?u.g.getResponseHeader("X-HTTP-Session-Id"):null;f&&(i.sa=f,yr(i.F,i.D,f))}}n.G=3,n.j&&n.j.xa(),n.$&&(n.O=Date.now()-t.F,n.h.info("Handshake RTT: "+n.O+"ms"));var d=t;if((i=n).oa=Ia(i,i.H?i.la:null,i.W),d.J){jr(i.i,d);var p=d,g=i.K;g&&p.setTimeout(g),p.B&&(ir(p),er(p)),i.g=d}else wa(i);0<n.l.length&&_a(n)}else"stop"!=r[0]&&"close"!=r[0]||Ea(n,7);else 3==n.G&&("stop"==r[0]||"close"==r[0]?"stop"==r[0]?Ea(n,7):ga(n):"noop"!=r[0]&&n.j&&n.j.wa(r),n.A=0)}Ao(4)}catch(m){}}function sr(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(Bn(t)||"string"==typeof t)ii(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(Bn(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(Bn(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 cr(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 cr)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 ur(t){if(t.i!=t.g.length){for(var e=0,n=0;e<t.g.length;){var i=t.g[e];lr(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;)lr(o,i=t.g[e])||(t.g[n++]=i,o[i]=1),e++;t.g.length=n}}function lr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(qn=Bo.prototype).setTimeout=function(t){this.P=t},qn.gb=function(t){t=t.target;var e=this.L;e&&3==la(t)?e.l():this.Ia(t)},qn.Ia=function(t){try{if(t==this.g)t:{var e=la(this.g),n=this.g.Da(),i=this.g.ba();if(!(3>e)&&(3!=e||wi||this.g&&(this.h.h||this.g.ga()||ha(this.g)))){this.I||4!=e||7==n||Ao(8==n||0>=i?3:2),ir(this);var o=this.g.ba();this.N=o;e:if($o(this)){var r=ha(this.g);t="";var a=r.length,s=4==la(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){rr(this),or(this);var c="";break e}this.h.i=new zn.TextDecoder}for(n=0;n<a;n++)this.h.h=!0,t+=this.h.i.decode(r[n],{stream:s&&n==a-1});r.splice(0,a),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,a){t.info(function(){return"XMLHTTP RESP ("+i+") [ attempt "+o+"]: "+e+"\n"+n+"\n"+r+" "+a})}(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)&&!ai(u)){var h=u;break e}}h=null}if(!(o=h)){this.i=!1,this.o=3,Ro(12),rr(this),or(this);break t}Mo(this.j,this.m,o,"Initial handshake response via X-HTTP-Initial-Response"),this.J=!0,ar(this,o)}this.U?(Xo(this,e,c),wi&&this.i&&3==e&&(wo(this.V,this.W,"tick",this.fb),this.W.start())):(Mo(this.j,this.m,c,null),ar(this,c)),4==e&&rr(this),this.i&&!this.I&&(4==e?Ta(this.l,this):(this.i=!1,er(this)))}else 400==o&&0<c.indexOf("Unknown SID")?(this.o=3,Ro(12)):(this.o=0,Ro(13)),rr(this),or(this)}}}catch(f){}},qn.fb=function(){if(this.g){var t=la(this.g),e=this.g.ga();this.C<e.length&&(ir(this),Xo(this,t,e),this.i&&4!=t&&er(this))}},qn.cancel=function(){this.I=!0,rr(this)},qn.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&&(Ao(3),Ro(17)),rr(this),this.o=2,or(this)):nr(this,this.Y-t)},(qn=cr.prototype).R=function(){ur(this);for(var t=[],e=0;e<this.g.length;e++)t.push(this.h[this.g[e]]);return t},qn.T=function(){return ur(this),this.g.concat()},qn.get=function(t,e){return lr(this.h,t)?this.h[t]:e},qn.set=function(t,e){lr(this.h,t)||(this.i++,this.g.push(t)),this.h[t]=e},qn.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 hr=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function fr(t,e){if(this.i=this.s=this.j="",this.m=null,this.o=this.l="",this.g=!1,t instanceof fr){this.g=void 0!==e?e:t.g,pr(this,t.j),this.s=t.s,gr(this,t.i),mr(this,t.m),this.l=t.l,e=t.h;var n=new Tr;n.i=e.i,e.g&&(n.g=new cr(e.g),n.h=e.h),vr(this,n),this.o=t.o}else t&&(n=String(t).match(hr))?(this.g=!!e,pr(this,n[1]||"",!0),this.s=br(n[2]||""),gr(this,n[3]||"",!0),mr(this,n[4]),this.l=br(n[5]||"",!0),vr(this,n[6]||"",!0),this.o=br(n[7]||"")):(this.g=!!e,this.h=new Tr(null,this.g))}function dr(t){return new fr(t)}function pr(t,e,n){t.j=n?br(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function gr(t,e,n){t.i=n?br(e,!0):e}function mr(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 vr(t,e,n){e instanceof Tr?(t.h=e,function(t,e){e&&!t.j&&(Sr(t),t.i=null,t.g.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(Er(this,e),Ir(this,n,t))},t)),t.j=e}(t.h,t.g)):(n||(e=Cr(e,Mr)),t.h=new Tr(e,t.g))}function yr(t,e,n){t.h.set(e,n)}function _r(t){return yr(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function br(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Cr(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,xr),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function xr(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}fr.prototype.toString=function(){var t=[],e=this.j;e&&t.push(Cr(e,wr,!0),":");var n=this.i;return(n||"file"==e)&&(t.push("//"),(e=this.s)&&t.push(Cr(e,wr,!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(Cr(n,"/"==n.charAt(0)?Pr:Or,!0))),(n=this.h.toString())&&t.push("?",n),(n=this.o)&&t.push("#",Cr(n,kr)),t.join("")};var wr=/[#\/\?@]/g,Or=/[#\?:]/g,Pr=/[#\?]/g,Mr=/[#\?@]/g,kr=/#/g;function Tr(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function Sr(t){t.g||(t.g=new cr,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 Er(t,e){Sr(t),e=Rr(t,e),lr(t.g.h,e)&&(t.i=null,t.h-=t.g.get(e).length,lr((t=t.g).h,e)&&(delete t.h[e],t.i--,t.g.length>2*t.i&&ur(t)))}function Ar(t,e){return Sr(t),e=Rr(t,e),lr(t.g.h,e)}function Ir(t,e,n){Er(t,e),0<n.length&&(t.i=null,t.g.set(Rr(t,e),ri(n)),t.h+=n.length)}function Rr(t,e){return e=String(e),t.j&&(e=e.toLowerCase()),e}(qn=Tr.prototype).add=function(t,e){Sr(this),this.i=null,t=Rr(this,t);var n=this.g.get(t);return n||this.g.set(t,n=[]),n.push(e),this.h+=1,this},qn.forEach=function(t,e){Sr(this),this.g.forEach(function(n,i){ii(n,function(n){t.call(e,n,i,this)},this)},this)},qn.T=function(){Sr(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},qn.R=function(t){Sr(this);var e=[];if("string"==typeof t)Ar(this,t)&&(e=oi(e,this.g.get(Rr(this,t))));else{t=this.g.R();for(var n=0;n<t.length;n++)e=oi(e,t[n])}return e},qn.set=function(t,e){return Sr(this),this.i=null,Ar(this,t=Rr(this,t))&&(this.h-=this.g.get(t).length),this.g.set(t,[e]),this.h+=1,this},qn.get=function(t,e){return t&&0<(t=this.R(t)).length?String(t[0]):e},qn.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 a=o;""!==i[r]&&(a+="="+encodeURIComponent(String(i[r]))),t.push(a)}}return this.i=t.join("&")};var Nr=function(t,e){this.h=t,this.g=e};function Lr(t){this.l=t||Dr,t=zn.PerformanceNavigationTiming?0<(t=zn.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(zn.g&&zn.g.Ea&&zn.g.Ea()&&zn.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 Dr=10;function Fr(t){return!!t.h||!!t.g&&t.g.size>=t.j}function Ur(t){return t.h?1:t.g?t.g.size:0}function Zr(t,e){return t.h?t.h==e:!!t.g&&t.g.has(e)}function qr(t,e){t.g?t.g.add(e):t.h=e}function jr(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}function Vr(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=Zn(t.g.values()),r=o.next();!r.done;r=o.next())i=i.concat(r.value.D)}catch(a){e={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i}return ri(t.i)}function zr(){}function Gr(){this.g=new zr}function Br(t,e,n){var i=n||"";try{sr(t,function(t,n){var o=t;Hn(t)&&(o=oo(t)),e.push(i+n+"="+encodeURIComponent(o))})}catch(o){throw e.push(i+"type="+encodeURIComponent("_badmap")),o}}function Hr(t,e,n,i,o){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,o(i)}catch(r){}}function Yr(t){this.l=t.$b||null,this.j=t.ib||!1}function Qr(t,e){eo.call(this),this.D=t,this.u=e,this.m=void 0,this.readyState=Jr,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}Lr.prototype.cancel=function(){var t,e;if(this.i=Vr(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){try{for(var n=Zn(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()}},zr.prototype.stringify=function(t){return zn.JSON.stringify(t,void 0)},zr.prototype.parse=function(t){return zn.JSON.parse(t,void 0)},Xn(Yr,Uo),Yr.prototype.g=function(){return new Qr(this.l,this.j)},Yr.prototype.i=function(t){return function(){return t}}({}),Xn(Qr,eo);var Jr=0;function Wr(t){t.j.read().then(t.Sa.bind(t)).catch(t.ha.bind(t))}function Kr(t){t.readyState=4,t.l=null,t.j=null,t.A=null,$r(t)}function $r(t){t.onreadystatechange&&t.onreadystatechange.call(t)}(qn=Qr.prototype).open=function(t,e){if(this.readyState!=Jr)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=e,this.readyState=1,$r(this)},qn.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};t&&(e.body=t),(this.D||zn).fetch(new Request(this.B,e)).then(this.Va.bind(this),this.ha.bind(this))},qn.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,Kr(this)),this.readyState=Jr},qn.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,$r(this)),this.g&&(this.readyState=3,$r(this),this.g)))if("arraybuffer"===this.responseType)t.arrayBuffer().then(this.Ta.bind(this),this.ha.bind(this));else if(void 0!==zn.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;Wr(this)}else t.text().then(this.Ua.bind(this),this.ha.bind(this))},qn.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?Kr(this):$r(this),3==this.readyState&&Wr(this)}},qn.Ua=function(t){this.g&&(this.response=this.responseText=t,Kr(this))},qn.Ta=function(t){this.g&&(this.response=t,Kr(this))},qn.ha=function(){this.g&&Kr(this)},qn.setRequestHeader=function(t,e){this.v.append(t,e)},qn.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},qn.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(Qr.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}});var Xr=zn.JSON.parse;function ta(t){eo.call(this),this.headers=new cr,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=ea,this.K=this.L=!1}Xn(ta,eo);var ea="",na=/^https?$/i,ia=["POST","PUT"];function oa(t){return"content-type"==t.toLowerCase()}function ra(t,e){t.h=!1,t.g&&(t.l=!0,t.g.abort(),t.l=!1),t.j=e,t.m=5,aa(t),ca(t)}function aa(t){t.D||(t.D=!0,no(t,"complete"),no(t,"error"))}function sa(t){if(t.h&&void 0!==Vn&&(!t.C[1]||4!=la(t)||2!=t.ba()))if(t.v&&4==la(t))yo(t.Fa,0,t);else if(no(t,"readystatechange"),4==la(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(hr)[1]||null;if(!r&&zn.self&&zn.self.location){var a=zn.self.location.protocol;r=a.substr(0,a.length-1)}o=!na.test(r?r.toLowerCase():"")}e=o}if(e)no(t,"complete"),no(t,"success");else{t.m=6;try{var s=2<la(t)?t.g.statusText:""}catch(c){s=""}t.j=s+" ["+t.ba()+"]",aa(t)}}finally{ca(t)}}}function ca(t,e){if(t.g){ua(t);var n=t.g,i=t.C[0]?Gn:null;t.g=null,t.C=null,e||no(t,"ready");try{n.onreadystatechange=i}catch(o){}}}function ua(t){t.g&&t.K&&(t.g.ontimeout=null),t.A&&(zn.clearTimeout(t.A),t.A=null)}function la(t){return t.g?t.g.readyState:0}function ha(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.J){case ea:case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch(e){return null}}function fa(t,e,n){t:{for(i in n){var i=!1;break t}i=!0}i||(n=function(t){var e="";return di(t,function(t,n){e+=n,e+=":",e+=t,e+="\r\n"}),e}(n),"string"==typeof t?null!=n&&encodeURIComponent(String(n)):yr(t,e,n))}function da(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function pa(t){this.za=0,this.l=[],this.h=new Po,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=da("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=da("baseRetryDelayMs",5e3,t),this.$a=da("retryDelaySeedMs",1e4,t),this.Ya=da("forwardChannelMaxRetries",2,t),this.ra=da("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 Lr(t&&t.concurrentRequestLimit),this.Ca=new Gr,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 ga(t){if(va(t),3==t.G){var e=t.V++,n=dr(t.F);yr(n,"SID",t.J),yr(n,"RID",e),yr(n,"TYPE","terminate"),Ca(t,n),(e=new Bo(t,t.h,e,void 0)).K=2,e.v=_r(dr(n)),n=!1,zn.navigator&&zn.navigator.sendBeacon&&(n=zn.navigator.sendBeacon(e.v.toString(),"")),!n&&zn.Image&&((new Image).src=e.v,n=!0),n||(e.g=Ra(e.l,null),e.g.ea(e.v)),e.F=Date.now(),er(e)}Aa(t)}function ma(t){t.g&&(Pa(t),t.g.cancel(),t.g=null)}function va(t){ma(t),t.u&&(zn.clearTimeout(t.u),t.u=null),ka(t),t.i.cancel(),t.m&&("number"==typeof t.m&&zn.clearTimeout(t.m),t.m=null)}function ya(t,e){t.l.push(new Nr(t.Za++,e)),3==t.G&&_a(t)}function _a(t){Fr(t.i)||t.m||(t.m=!0,ho(t.Ha,t),t.C=0)}function ba(t,e){var n;n=e?e.m:t.V++;var i=dr(t.F);yr(i,"SID",t.J),yr(i,"RID",n),yr(i,"AID",t.U),Ca(t,i),t.o&&t.s&&fa(i,t.o,t.s),n=new Bo(t,t.h,n,t.C+1),null===t.o&&(n.H=t.s),e&&(t.l=e.D.concat(t.l)),e=
1xa(t,n,1e3),n.setTimeout(Math.round(.5*t.ra)+Math.round(.5*t.ra*Math.random())),qr(t.i,n),Wo(n,i,e)}function Ca(t,e){t.j&&sr({},function(t,n){yr(e,n,t)})}function xa(t,e,n){n=Math.min(t.l.length,n);var i=t.j?Kn(t.j.Oa,t.j,t):null;t:for(var o=t.l,r=-1;;){var a=["count="+n];-1==r?0<n?a.push("ofs="+(r=o[0].h)):r=0:a.push("ofs="+r);for(var s=!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),s=!1;else try{Br(l,a,"req"+u+"_")}catch(h){i&&i(l)}}if(s){i=a.join("&");break t}}return t=t.l.splice(0,n),e.D=t,i}function wa(t){t.g||t.u||(t.Y=1,ho(t.Ga,t),t.A=0)}function Oa(t){return!(t.g||t.u||3<=t.A||(t.Y++,t.u=Lo(Kn(t.Ga,t),Sa(t,t.A)),t.A++,0))}function Pa(t){null!=t.B&&(zn.clearTimeout(t.B),t.B=null)}function Ma(t){t.g=new Bo(t,t.h,"rpc",t.Y),null===t.o&&(t.g.H=t.s),t.g.O=0;var e=dr(t.oa);yr(e,"RID","rpc"),yr(e,"SID",t.J),yr(e,"CI",t.N?"0":"1"),yr(e,"AID",t.U),Ca(t,e),yr(e,"TYPE","xmlhttp"),t.o&&t.s&&fa(e,t.o,t.s),t.K&&t.g.setTimeout(t.K);var n=t.g;t=t.la,n.K=1,n.v=_r(dr(e)),n.s=null,n.U=!0,Ko(n,t)}function ka(t){null!=t.v&&(zn.clearTimeout(t.v),t.v=null)}function Ta(t,e){var n=null;if(t.g==e){ka(t),Pa(t),t.g=null;var i=2}else{if(!Zr(t.i,e))return;n=e.D,jr(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;no(i=So(),new No(i,n,e,o)),_a(t)}else wa(t);else if(3==(o=e.o)||0==o&&0<t.I||!(1==i&&function(t,e){return!(Ur(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=Lo(Kn(t.Ha,t,e),Sa(t,t.C)),t.C++,0)))}(t,e)||2==i&&Oa(t)))switch(n&&0<n.length&&(e=t.i,e.i=e.i.concat(n)),o){case 1:Ea(t,5);break;case 4:Ea(t,10);break;case 3:Ea(t,6);break;default:Ea(t,2)}}function Sa(t,e){var n=t.Pa+Math.floor(Math.random()*t.$a);return t.j||(n*=2),n*e}function Ea(t,e){if(t.h.info("Error code "+e),2==e){var n=null;t.j&&(n=null);var i=Kn(t.jb,t);n||(n=new fr("//www.google.com/images/cleardot.gif"),zn.location&&"http"==zn.location.protocol||pr(n,"https"),_r(n)),function(t,e){var n=new Po;if(zn.Image){var i=new Image;i.onload=$n(Hr,n,i,"TestLoadImage: loaded",!0,e),i.onerror=$n(Hr,n,i,"TestLoadImage: error",!1,e),i.onabort=$n(Hr,n,i,"TestLoadImage: abort",!1,e),i.ontimeout=$n(Hr,n,i,"TestLoadImage: timeout",!1,e),zn.setTimeout(function(){i.ontimeout&&i.ontimeout()},1e4),i.src=t}else e(!1)}(n.toString(),i)}else Ro(2);t.G=0,t.j&&t.j.va(e),Aa(t),va(t)}function Aa(t){t.G=0,t.I=-1,t.j&&((0!=Vr(t.i).length||0!=t.l.length)&&(t.i.i.length=0,ri(t.l),t.l.length=0),t.j.ua())}function Ia(t,e,n){var i=function(t){return t instanceof fr?dr(t):new fr(t,void 0)}(n);if(""!=i.i)e&&gr(i,e+"."+i.i),mr(i,i.m);else{var o=zn.location;i=function(t,e,n,i){var o=new fr(null,void 0);return t&&pr(o,t),e&&gr(o,e),n&&mr(o,n),i&&(o.l=i),o}(o.protocol,e?e+"."+o.hostname:o.hostname,+o.port,n)}return t.aa&&di(t.aa,function(t,e){yr(i,e,t)}),n=t.sa,(e=t.D)&&n&&yr(i,e,n),yr(i,"VER",t.ma),Ca(t,i),i}function Ra(t,e,n){if(e&&!t.H)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new ta(n&&t.Ba&&!t.qa?new Yr({ib:!0}):t.qa)).L=t.H,e}function Na(){}function La(){if(Ci&&!(10<=Number(Ai)))throw Error("Environmental error: no available transport.")}function Da(t,e){eo.call(this),this.g=new pa(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)&&!ai(t)&&(this.g.o=t),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!ai(e)&&(this.g.D=e,null!==(t=this.h)&&e in t&&e in(t=this.h)&&delete t[e]),this.j=new Za(this)}function Fa(t){Vo.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 Ua(){zo.call(this),this.status=1}function Za(t){this.g=t}(qn=ta.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():qo.g(),this.C=function(t){return t.h||(t.h=t.i())}(this.u?this.u:qo),this.g.onreadystatechange=Kn(this.Fa,this);try{this.F=!0,this.g.open(e,String(t),!0),this.F=!1}catch(r){return void ra(this,r)}t=n||"";var o=new cr(this.headers);i&&sr(i,function(t,e){o.set(e,t)}),i=function(t){t:{for(var e=oa,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=zn.FormData&&t instanceof zn.FormData,!(0<=ni(ia,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{ua(this),0<this.B&&((this.K=function(t){return Ci&&function(){return t=Ei,Object.prototype.hasOwnProperty.call(t,9)?t[9]:t[9]=function(){for(var t=0,e=ci(String(yi)).split("."),n=ci("9").split("."),i=Math.max(e.length,n.length),o=0;0==t&&o<i;o++){var r=e[o]||"",a=n[o]||"";do{if(r=/(\d*)(\D*)(.*)/.exec(r)||["","","",""],a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],0==r[0].length&&0==a[0].length)break;t=li(0==r[1].length?0:parseInt(r[1],10),0==a[1].length?0:parseInt(a[1],10))||li(0==r[2].length,0==a[2].length)||li(r[2],a[2]),r=r[3],a=a[3]}while(0==t)}return 0<=t}();var t}()&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=Kn(this.pa,this)):this.A=yo(this.pa,this.B,this)),this.v=!0,this.g.send(t),this.v=!1}catch(r){ra(this,r)}},qn.pa=function(){void 0!==Vn&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,no(this,"timeout"),this.abort(8))},qn.abort=function(t){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=t||7,no(this,"complete"),no(this,"abort"),ca(this))},qn.M=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),ca(this,!0)),ta.Z.M.call(this)},qn.Fa=function(){this.s||(this.F||this.v||this.l?sa(this):this.cb())},qn.cb=function(){sa(this)},qn.ba=function(){try{return 2<la(this)?this.g.status:-1}catch(_i){return-1}},qn.ga=function(){try{return this.g?this.g.responseText:""}catch(_i){return""}},qn.Qa=function(t){if(this.g){var e=this.g.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),Xr(e)}},qn.Da=function(){return this.m},qn.La=function(){return"string"==typeof this.j?this.j:String(this.j)},(qn=pa.prototype).ma=8,qn.G=1,qn.hb=function(t){try{this.h.info("Origin Trials invoked: "+t)}catch(e){}},qn.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 Bo(this,this.h,t,void 0),n=this.s;if(this.P&&(n?mi(n=pi(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=xa(this,e,i),yr(o=dr(this.F),"RID",t),yr(o,"CVER",22),this.D&&yr(o,"X-HTTP-Session-Id",this.D),Ca(this,o),this.o&&n&&fa(o,this.o,n),qr(this.i,e),this.Ra&&yr(o,"TYPE","init"),this.ja?(yr(o,"$req",i),yr(o,"SID","null"),e.$=!0,Wo(e,o,null)):Wo(e,o,i),this.G=2}}else 3==this.G&&(t?ba(this,t):0==this.l.length||Fr(this.i)||ba(this))},qn.Ga=function(){if(this.u=null,Ma(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=Lo(Kn(this.bb,this),t)}},qn.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,Ro(10),ma(this),Ma(this))},qn.ab=function(){null!=this.v&&(this.v=null,ma(this),Oa(this),Ro(19))},qn.jb=function(t){t?(this.h.info("Successfully pinged google.com"),Ro(2)):(this.h.info("Failed to ping google.com"),Ro(1))},(qn=Na.prototype).xa=function(){},qn.wa=function(){},qn.va=function(){},qn.ua=function(){},qn.Oa=function(){},La.prototype.g=function(t,e){return new Da(t,e)},Xn(Da,eo),Da.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."),ho(Kn(t.hb,t,e))),Ro(0),t.W=e,t.aa=n||{},t.N=t.X,t.F=Ia(t,null,t.W),_a(t)},Da.prototype.close=function(){ga(this.g)},Da.prototype.u=function(t){if("string"==typeof t){var e={};e.__data__=t,ya(this.g,e)}else this.v?((e={}).__data__=oo(t),ya(this.g,e)):ya(this.g,t)},Da.prototype.M=function(){this.g.j=null,delete this.j,ga(this.g),delete this.g,Da.Z.M.call(this)},Xn(Fa,Vo),Xn(Ua,zo),Xn(Za,Na),Za.prototype.xa=function(){no(this.g,"a")},Za.prototype.wa=function(t){no(this.g,new Fa(t))},Za.prototype.va=function(t){no(this.g,new Ua(t))},Za.prototype.ua=function(){no(this.g,"b")},La.prototype.createWebChannel=La.prototype.g,Da.prototype.send=Da.prototype.u,Da.prototype.open=Da.prototype.m,Da.prototype.close=Da.prototype.close,Do.NO_ERROR=0,Do.TIMEOUT=8,Do.HTTP_ERROR=6,Fo.COMPLETE="complete",Zo.EventType=jo,jo.OPEN="a",jo.CLOSE="b",jo.ERROR="c",jo.MESSAGE="d",eo.prototype.listen=eo.prototype.N,ta.prototype.listenOnce=ta.prototype.O,ta.prototype.getLastError=ta.prototype.La,ta.prototype.getLastErrorCode=ta.prototype.Da,ta.prototype.getStatus=ta.prototype.ba,ta.prototype.getResponseJson=ta.prototype.Qa,ta.prototype.getResponseText=ta.prototype.ga,ta.prototype.send=ta.prototype.ea;var qa=Do,ja=Fo,Va=ko,za=Yr,Ga=Zo,Ba=ta,Ha=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}();Ha.o=-1;var Ya={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"},Qa=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,Ln.ZT)(e,t),e}(Error),Ja=new Fn.Yd("@firebase/firestore");function Wa(){return Ja.logLevel}function Ka(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Ja.logLevel<=Fn.in.DEBUG){var i=e.map(ts);Ja.debug.apply(Ja,(0,Ln.ev)(["Firestore (8.10.1): "+t],i))}}function $a(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Ja.logLevel<=Fn.in.ERROR){var i=e.map(ts);Ja.error.apply(Ja,(0,Ln.ev)(["Firestore (8.10.1): "+t],i))}}function Xa(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Ja.logLevel<=Fn.in.WARN){var i=e.map(ts);Ja.warn.apply(Ja,(0,Ln.ev)(["Firestore (8.10.1): "+t],i))}}function ts(t){if("string"==typeof t)return t;try{return JSON.stringify(t)}catch(e){return t}}function es(t){void 0===t&&(t="Unexpected state");var e="FIRESTORE (8.10.1) INTERNAL ASSERTION FAILED: "+t;throw $a(e),new Error(e)}function ns(t,e){t||es()}function is(t,e){return t}function os(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 rs=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=os(40),o=0;o<i.length;++o)n.length<20&&i[o]<e&&(n+=t.charAt(i[o]%t.length));return n},t}();function as(t,e){return t<e?-1:t>e?1:0}function ss(t,e,n){return t.length===e.length&&t.every(function(t,i){return n(t,e[i])})}function cs(t){return t+"\0"}var us=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new Qa(Ya.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new Qa(Ya.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new Qa(Ya.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new Qa(Ya.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?as(this.nanoseconds,t.nanoseconds):as(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}(),ls=function(){function t(t){this.timestamp=t}return t.fromTimestamp=function(e){return new t(e)},t.min=function(){return new t(new us(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 hs(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function fs(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function ds(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}var ps=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&es(),void 0===n?n=t.length-e:n>t.length-e&&es(),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}(),gs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Ln.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 a=r[o];if(a.indexOf("//")>=0)throw new Qa(Ya.INVALID_ARGUMENT,"Invalid segment ("+a+"). Paths must not contain // in them.");i.push.apply(i,a.split("/").filter(function(t){return t.length>0}))}return new e(i)},e.emptyPath=function(){return new e([])},e}(ps),ms=/^[_a-zA-Z][_a-zA-Z0-9]*$/,vs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Ln.ZT)(e,t),e.prototype.construct=function(t,n,i){return new e(t,n,i)},e.isValidIdentifier=function(t){return ms.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 Qa(Ya.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(i),i=""},a=!1;o<t.length;){var s=t[o];if("\\"===s){if(o+1===t.length)throw new Qa(Ya.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var c=t[o+1];if("\\"!==c&&"."!==c&&"`"!==c)throw new Qa(Ya.INVALID_ARGUMENT,"Path has invalid escape sequence: "+t);i+=c,o+=2}else"`"===s?(a=!a,o++):"."!==s||a?(i+=s,o++):(r(),o++)}if(r(),a)throw new Qa(Ya.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e.emptyPath=function(){return new e([])},e}(ps),ys=function(){function t(t){this.fields=t,t.sort(vs.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 ss(this.fields,t.fields,function(t,e){return t.isEqual(e)})},t}(),_s=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 as(this.binaryString,t.binaryString)},t.prototype.isEqual=function(t){return this.binaryString===t.binaryString},t}();_s.EMPTY_BYTE_STRING=new _s("");var bs=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Cs(t){if(ns(!!t),"string"==typeof t){var e=0,n=bs.exec(t);if(ns(!!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:xs(t.seconds),nanos:xs(t.nanos)}}function xs(t){return"number"==typeof t?t:"string"==typeof t?Number(t):0}function ws(t){return"string"==typeof t?_s.fromBase64String(t):_s.fromUint8Array(t)}function Os(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 Ps(t){var e=t.mapValue.fields.__previous_value__;return Os(e)?Ps(e):e}function Ms(t){var e=Cs(t.mapValue.fields.__local_write_time__.timestampValue);return new us(e.seconds,e.nanos)}function ks(t){return null==t}function Ts(t){return 0===t&&1/t==-1/0}function Ss(t){return"number"==typeof t&&Number.isInteger(t)&&!Ts(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}var Es=function(){function t(t){this.path=t}return t.fromPath=function(e){return new t(gs.fromString(e))},t.fromName=function(e){return new t(gs.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===gs.comparator(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.comparator=function(t,e){return gs.comparator(t.path,e.path)},t.isDocumentKey=function(t){return t.length%2==0},t.fromSegments=function(e){return new t(new gs(e.slice()))},t}();function As(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?Os(t)?4:10:es()}function Is(t,e){var n,i=As(t);if(i!==As(e))return!1;switch(i){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return Ms(t).isEqual(Ms(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=Cs(t.timestampValue),i=Cs(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,ws(t.bytesValue).isEqual(ws(n.bytesValue));case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return xs(t.geoPointValue.latitude)===xs(e.geoPointValue.latitude)&&xs(t.geoPointValue.longitude)===xs(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return xs(t.integerValue)===xs(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=xs(t.doubleValue),i=xs(e.doubleValue);return n===i?Ts(n)===Ts(i):isNaN(n)&&isNaN(i)}return!1}(t,e);case 9:return ss(t.arrayValue.values||[],e.arrayValue.values||[],Is);case 10:return function(t,e){var n=t.mapValue.fields||{},i=e.mapValue.fields||{};if(hs(n)!==hs(i))return!1;for(var o in n)if(n.hasOwnProperty(o)&&(void 0===i[o]||!Is(n[o],i[o])))return!1;return!0}(t,e);default:return es()}}function Rs(t,e){return void 0!==(t.values||[]).find(function(t){return Is(t,e)})}
1function Ns(t,e){var n,i,o,r,a=As(t),s=As(e);if(a!==s)return as(a,s);switch(a){case 0:return 0;case 1:return as(t.booleanValue,e.booleanValue);case 2:return i=e,(o=xs((n=t).integerValue||n.doubleValue))<(r=xs(i.integerValue||i.doubleValue))?-1:o>r?1:o===r?0:isNaN(o)?isNaN(r)?0:-1:1;case 3:return Ls(t.timestampValue,e.timestampValue);case 4:return Ls(Ms(t),Ms(e));case 5:return as(t.stringValue,e.stringValue);case 6:return function(t,e){var n=ws(t),i=ws(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=as(n[o],i[o]);if(0!==r)return r}return as(n.length,i.length)}(t.referenceValue,e.referenceValue);case 8:return function(t,e){var n=as(xs(t.latitude),xs(e.latitude));return 0!==n?n:as(xs(t.longitude),xs(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=Ns(n[o],i[o]);if(r)return r}return as(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);i.sort(),r.sort();for(var a=0;a<i.length&&a<r.length;++a){var s=as(i[a],r[a]);if(0!==s)return s;var c=Ns(n[i[a]],o[r[a]]);if(0!==c)return c}return as(i.length,r.length)}(t.mapValue,e.mapValue);default:throw es()}}function Ls(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return as(t,e);var n=Cs(t),i=Cs(e),o=as(n.seconds,i.seconds);return 0!==o?o:as(n.nanos,i.nanos)}function Ds(t){return Fs(t)}function Fs(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=Cs(t.timestampValue)).seconds+","+e.nanos+")":"stringValue"in t?t.stringValue:"bytesValue"in t?ws(t.bytesValue).toBase64():"referenceValue"in t?Es.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+=Fs(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+":"+Fs(t.fields[r])}return e+"}"}(t.mapValue):es();var e,n}function Us(t,e){return{referenceValue:"projects/"+t.projectId+"/databases/"+t.database+"/documents/"+e.path.canonicalString()}}function Zs(t){return!!t&&"integerValue"in t}function qs(t){return!!t&&"arrayValue"in t}function js(t){return!!t&&"nullValue"in t}function Vs(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function zs(t){return!!t&&"mapValue"in t}function Gs(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 fs(t.mapValue.fields,function(t,n){return e.mapValue.fields[t]=Gs(n)}),e}if(t.arrayValue){for(var n={arrayValue:{values:[]}},i=0;i<(t.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=Gs(t.arrayValue.values[i]);return n}return Object.assign({},t)}var Bs=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(!zs(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()]=Gs(e)},t.prototype.setAll=function(t){var e=this,n=vs.emptyPath(),i={},o=[];t.forEach(function(t,r){if(!n.isImmediateParentOf(r)){var a=e.getFieldsMap(n);e.applyChanges(a,i,o),i={},o=[],n=r.popLast()}t?i[r.lastSegment()]=Gs(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());zs(e)&&e.mapValue.fields&&delete e.mapValue.fields[t.lastSegment()]},t.prototype.isEqual=function(t){return Is(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)];zs(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){fs(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(Gs(this.value))},t}();function Hs(t){var e=[];return fs(t.fields,function(t,n){var i=new vs([t]);if(zs(n)){var o=Hs(n.mapValue).fields;
1if(0===o.length)e.push(i);else for(var r=0,a=o;r<a.length;r++)e.push(i.child(a[r]))}else e.push(i)}),new ys(e)}var Ys=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,ls.min(),Bs.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,Bs.empty(),0)},t.newUnknownDocument=function(e,n){return new t(e,3,n,Bs.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=Bs.empty(),this.documentState=0,this},t.prototype.convertToUnknownDocument=function(t){return this.version=t,this.documentType=3,this.data=Bs.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},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}(),Qs=function(t,e,n,i,o,r,a){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===a&&(a=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=i,this.limit=o,this.startAt=r,this.endAt=a,this.h=null};function Js(t,e,n,i,o,r,a){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===a&&(a=null),new Qs(t,e,n,i,o,r,a)}function Ws(t){var e=is(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()+Ds(e.value);var e}).join(","),n+="|ob:",n+=e.orderBy.map(function(t){return(e=t).field.canonicalString()+e.dir;var e}).join(","),ks(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=uc(e.startAt)),e.endAt&&(n+="|ub:",n+=uc(e.endAt)),e.h=n}return e.h}function Ks(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(!hc(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)||!Is(o.value,r.value))return!1;var o,r;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!dc(t.startAt,e.startAt)&&dc(t.endAt,e.endAt)}function $s(t){return Es.isDocumentKey(t.path)&&null===t.collectionGroup&&0===t.filters.length}var Xs=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,Ln.ZT)(e,t),e.create=function(t,n,i){return t.isKeyField()?"in"===n||"not-in"===n?this.l(t,n,i):new tc(t,n,i):"array-contains"===n?new oc(t,i):"in"===n?new rc(t,i):"not-in"===n?new ac(t,i):"array-contains-any"===n?new sc(t,i):new e(t,n,i)},e.l=function(t,e,n){return"in"===e?new ec(t,n):new nc(t,n)},e.prototype.matches=function(t){var e=t.data.field(this.field);return"!="===this.op?null!==e&&this.m(Ns(e,this.value)):null!==e&&As(this.value)===As(e)&&this.m(Ns(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 es()}},e.prototype.g=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},e}(function(){}),tc=function(t){function e(e,n,i){var o=this;
1return(o=t.call(this,e,n,i)||this).key=Es.fromName(i.referenceValue),o}return(0,Ln.ZT)(e,t),e.prototype.matches=function(t){var e=Es.comparator(t.key,this.key);return this.m(e)},e}(Xs),ec=function(t){function e(e,n){var i=this;return(i=t.call(this,e,"in",n)||this).keys=ic(0,n),i}return(0,Ln.ZT)(e,t),e.prototype.matches=function(t){return this.keys.some(function(e){return e.isEqual(t.key)})},e}(Xs),nc=function(t){function e(e,n){var i=this;return(i=t.call(this,e,"not-in",n)||this).keys=ic(0,n),i}return(0,Ln.ZT)(e,t),e.prototype.matches=function(t){return!this.keys.some(function(e){return e.isEqual(t.key)})},e}(Xs);function ic(t,e){var n;return((null===(n=e.arrayValue)||void 0===n?void 0:n.values)||[]).map(function(t){return Es.fromName(t.referenceValue)})}var oc=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return(0,Ln.ZT)(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return qs(e)&&Rs(e.arrayValue,this.value)},e}(Xs),rc=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return(0,Ln.ZT)(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return null!==e&&Rs(this.value.arrayValue,e)},e}(Xs),ac=function(t){function e(e,n){return t.call(this,e,"not-in",n)||this}return(0,Ln.ZT)(e,t),e.prototype.matches=function(t){if(Rs(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var e=t.data.field(this.field);return null!==e&&!Rs(this.value.arrayValue,e)},e}(Xs),sc=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return(0,Ln.ZT)(e,t),e.prototype.matches=function(t){var e=this,n=t.data.field(this.field);return!(!qs(n)||!n.arrayValue.values)&&n.arrayValue.values.some(function(t){return Rs(e.value.arrayValue,t)})},e}(Xs),cc=function(t,e){this.position=t,this.before=e};function uc(t){return(t.before?"b":"a")+":"+t.position.map(function(t){return Ds(t)}).join(",")}var lc=function(t,e){void 0===e&&(e="asc"),this.field=t,this.dir=e};function hc(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}function fc(t,e,n){for(var i=0,o=0;o<t.position.length;o++){var r=e[o],a=t.position[o];if(i=r.field.isKeyField()?Es.comparator(Es.fromName(a.referenceValue),n.key):Ns(a,n.data.field(r.field)),"desc"===r.dir&&(i*=-1),0!==i)break}return t.before?i<=0:i<0}function dc(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(!Is(t.position[n],e.position[n]))return!1;return!0}var pc=function(t,e,n,i,o,r,a,s){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===a&&(a=null),void 0===s&&(s=null),this.path=t,this.collectionGroup=e,this.explicitOrderBy=n,this.filters=i,this.limit=o,this.limitType=r,this.startAt=a,this.endAt=s,this.p=null,this.T=null};function gc(t,e,n,i,o,r,a,s){return new pc(t,e,n,i,o,r,a,s)}function mc(t){return new pc(t)}function vc(t){return!ks(t.limit)&&"F"===t.limitType}function yc(t){return!ks(t.limit)&&"L"===t.limitType}function _c(t){return t.explicitOrderBy.length>0?t.explicitOrderBy[0].field:null}function bc(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 Cc(t){return null!==t.collectionGroup}function xc(t){var e=is(t);if(null===e.p){e.p=[];var n=bc(e),i=_c(e);if(null!==n&&null===i)n.isKeyField()||e.p.push(new lc(n)),e.p.push(new lc(vs.keyField(),"asc"));else{for(var o=!1,r=0,a=e.explicitOrderBy;r<a.length;r++){var s=a[r];e.p.push(s),s.field.isKeyField()&&(o=!0)}if(!o){var c=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";e.p.push(new lc(vs.keyField(),c))}}}return e.p}function wc(t){var e=is(t);if(!e.T)if("F"===e.limitType)e.T=Js(e.path,e.collectionGroup,xc(e),e.filters,e.limit,e.startAt,e.endAt);else{for(var n=[],i=0,o=xc(e);i<o.length;i++){var r=o[i];n.push(new lc(r.field,"desc"===r.dir?"asc":"desc"))}var a=e.endAt?new cc(e.endAt.position,!e.endAt.before):null,s=e.startAt?new cc(e.startAt.position,!e.startAt.before):null;e.T=Js(e.path,e.collectionGroup,n,e.filters,e.limit,a,s)}return e.T}function Oc(t,e,n){return new pc(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function Pc(t,e){return Ks(wc(t),wc(e))&&t.limitType===e.limitType}function Mc(t){return Ws(wc(t))+"|lt:"+t.limitType}function kc(t){return"Query(target="+(n=(e=wc(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+" "+Ds(e.value);var e}).join(", ")+"]"),ks(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: "+uc(e.startAt)),e.endAt&&(n+=", endAt: "+uc(e.endAt)),"Target("+n+"); limitType=")+t.limitType+")";var e,n}
1function Tc(t,e){return e.isFoundDocument()&&(o=(i=e).key.path,null!==(n=t).collectionGroup?i.key.hasCollectionId(n.collectionGroup)&&n.path.isPrefixOf(o):Es.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&&!fc(t.startAt,xc(t),e)||t.endAt&&fc(t.endAt,xc(t),e))}(t,e);var n,i,o}function Sc(t){return function(e,n){for(var i=!1,o=0,r=xc(t);o<r.length;o++){var a=r[o],s=Ec(a,e,n);if(0!==s)return s;i=i||a.field.isKeyField()}return 0}}function Ec(t,e,n){var i,o,r,a,s=t.field.isKeyField()?Es.comparator(e.key,n.key):(o=n,r=e.data.field(i=t.field),a=o.data.field(i),null!==r&&null!==a?Ns(r,a):es());switch(t.dir){case"asc":return s;case"desc":return-1*s;default:return es()}}function Ac(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:Ts(e)?"-0":e}}function Ic(t){return{integerValue:""+t}}function Rc(t,e){return Ss(e)?Ic(e):Ac(t,e)}var Nc=function(){this._=void 0};function Lc(t,e,n){return t instanceof Uc?(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 Zc?qc(t,e):t instanceof jc?Vc(t,e):function(t,e){var n=Fc(t,e),i=Gc(n)+Gc(t.A);return Zs(n)&&Zs(t.A)?Ic(i):Ac(t.R,i)}(t,e);var i,o,r}function Dc(t,e,n){return t instanceof Zc?qc(t,e):t instanceof jc?Vc(t,e):n}function Fc(t,e){return t instanceof zc?Zs(i=e)||(n=i)&&"doubleValue"in n?e:{integerValue:0}:null;var n,i}var Uc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Ln.ZT)(e,t),e}(Nc),Zc=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return(0,Ln.ZT)(e,t),e}(Nc);function qc(t,e){for(var n=Bc(e),i=function(t){n.some(function(e){return Is(e,t)})||n.push(t)},o=0,r=t.elements;o<r.length;o++)i(r[o]);return{arrayValue:{values:n}}}var jc=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return(0,Ln.ZT)(e,t),e}(Nc);function Vc(t,e){for(var n=Bc(e),i=function(t){n=n.filter(function(e){return!Is(e,t)})},o=0,r=t.elements;o<r.length;o++)i(r[o]);return{arrayValue:{values:n}}}var zc=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).R=e,i.A=n,i}return(0,Ln.ZT)(e,t),e}(Nc);function Gc(t){return xs(t.integerValue||t.doubleValue)}function Bc(t){return qs(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}var Hc=function(t,e){this.field=t,this.transform=e},Yc=function(t,e){this.version=t,this.transformResults=e},Qc=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 Wc=function(){};function Kc(t,e,n){var i,o,r,a,s;t instanceof nu?(o=e,r=n,a=(i=t).value.clone(),s=ru(i.fieldTransforms,o,r.transformResults),a.setAll(s),o.convertToFoundDocument(r.version,a).setHasCommittedMutations()):t instanceof iu?function(t,e,n){if(Jc(t.precondition,e)){var i=ru(t.fieldTransforms,e,n.transformResults),o=e.data;o.setAll(ou(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 $c(t,e,n){var i;t instanceof nu?function(t,e,n){if(Jc(t.precondition,e)){var i=t.value.clone(),o=au(t.fieldTransforms,n,e);i.setAll(o),e.convertToFoundDocument(eu(e),i).setHasLocalMutations()}}(t,e,n):t instanceof iu?function(t,e,n){if(Jc(t.precondition,e)){var i=au(t.fieldTransforms,n,e),o=e.data;o.setAll(ou(t)),o.setAll(i),e.convertToFoundDocument(eu(e),o).setHasLocalMutations()}}(t,e,n):Jc(t.precondition,i=e)&&i.convertToNoDocument(ls.min())}function Xc(t,e){for(var n=null,i=0,o=t.fieldTransforms;i<o.length;i++){var r=o[i],a=e.data.field(r.field),s=Fc(r.transform,a||null);null!=s&&(null==n&&(n=Bs.empty()),n.set(r.field,s))}return n||null}function tu(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&&ss(n,i,function(t,e){return(n=t).field.isEqual((i=e).field)&&(r=i.transform,(o=n.transform)instanceof Zc&&r instanceof Zc||o instanceof jc&&r instanceof jc?ss(o.elements,r.elements,Is):o instanceof zc&&r instanceof zc?Is(o.A,r.A):o instanceof Uc&&r instanceof Uc);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 eu(t){return t.isFoundDocument()?t.version:ls.min()}var nu=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,Ln.ZT)(e,t),e}(Wc),iu=function(t){function e(e,n,i,o,r){void 0===r&&(r=[]);var a=this;return(a=t.call(this)||this).key=e,a.data=n,a.fieldMask=i,a.precondition=o,a.fieldTransforms=r,a.type=1,a}return(0,Ln.ZT)(e,t),e}(Wc);function ou(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 ru(t,e,n){var i=new Map;ns(t.length===n.length);for(var o=0;o<n.length;o++){var r=t[o],a=r.transform,s=e.data.field(r.field);i.set(r.field,Dc(a,s,n[o]))}return i}function au(t,e,n){for(var i=new Map,o=0,r=t;o<r.length;o++){var a=r[o],s=a.transform,c=n.data.field(a.field);i.set(a.field,Lc(s,c,e))}return i}var su,cu,uu=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,Ln.ZT)(e,t),e}(Wc),lu=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,Ln.ZT)(e,t),e}(Wc),hu=function(t){this.count=t};function fu(t){switch(t){case Ya.OK:return es();case Ya.CANCELLED:case Ya.UNKNOWN:case Ya.DEADLINE_EXCEEDED:case Ya.RESOURCE_EXHAUSTED:case Ya.INTERNAL:case Ya.UNAVAILABLE:case Ya.UNAUTHENTICATED:return!1;case Ya.INVALID_ARGUMENT:case Ya.NOT_FOUND:case Ya.ALREADY_EXISTS:case Ya.PERMISSION_DENIED:case Ya.FAILED_PRECONDITION:case Ya.ABORTED:case Ya.OUT_OF_RANGE:case Ya.UNIMPLEMENT
1ED:case Ya.DATA_LOSS:return!0;default:return es()}}function du(t){if(void 0===t)return $a("GRPC error has no .code"),Ya.UNKNOWN;switch(t){case su.OK:return Ya.OK;case su.CANCELLED:return Ya.CANCELLED;case su.UNKNOWN:return Ya.UNKNOWN;case su.DEADLINE_EXCEEDED:return Ya.DEADLINE_EXCEEDED;case su.RESOURCE_EXHAUSTED:return Ya.RESOURCE_EXHAUSTED;case su.INTERNAL:return Ya.INTERNAL;case su.UNAVAILABLE:return Ya.UNAVAILABLE;case su.UNAUTHENTICATED:return Ya.UNAUTHENTICATED;case su.INVALID_ARGUMENT:return Ya.INVALID_ARGUMENT;case su.NOT_FOUND:return Ya.NOT_FOUND;case su.ALREADY_EXISTS:return Ya.ALREADY_EXISTS;case su.PERMISSION_DENIED:return Ya.PERMISSION_DENIED;case su.FAILED_PRECONDITION:return Ya.FAILED_PRECONDITION;case su.ABORTED:return Ya.ABORTED;case su.OUT_OF_RANGE:return Ya.OUT_OF_RANGE;case su.UNIMPLEMENTED:return Ya.UNIMPLEMENTED;case su.DATA_LOSS:return Ya.DATA_LOSS;default:return es()}}(cu=su||(su={}))[cu.OK=0]="OK",cu[cu.CANCELLED=1]="CANCELLED",cu[cu.UNKNOWN=2]="UNKNOWN",cu[cu.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",cu[cu.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",cu[cu.NOT_FOUND=5]="NOT_FOUND",cu[cu.ALREADY_EXISTS=6]="ALREADY_EXISTS",cu[cu.PERMISSION_DENIED=7]="PERMISSION_DENIED",cu[cu.UNAUTHENTICATED=16]="UNAUTHENTICATED",cu[cu.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",cu[cu.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",cu[cu.ABORTED=10]="ABORTED",cu[cu.OUT_OF_RANGE=11]="OUT_OF_RANGE",cu[cu.UNIMPLEMENTED=12]="UNIMPLEMENTED",cu[cu.INTERNAL=13]="INTERNAL",cu[cu.UNAVAILABLE=14]="UNAVAILABLE",cu[cu.DATA_LOSS=15]="DATA_LOSS";var pu=function(){function t(t,e){this.comparator=t,this.root=e||mu.EMPTY}return t.prototype.insert=function(e,n){return new t(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,mu.BLACK,null,null))},t.prototype.remove=function(e){return new t(this.comparator,this.root.remove(e,this.comparator).copy(null,null,mu.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 gu(this.root,null,this.comparator,!1)},t.prototype.getIteratorFrom=function(t){return new gu(this.root,t,this.comparator,!1)},t.prototype.getReverseIterator=function(){return new gu(this.root,null,this.comparator,!0)},t.prototype.getReverseIteratorFrom=function(t){return new gu(this.root,t,this.comparator,!0)},t}(),gu=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}(),mu=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 es();var t=this.left.check();if(t!==this.right.check())throw es();return t+(this.isRed()?0:1)},t}();mu.EMPTY=null,mu.RED=!0,mu.BLACK=!1,mu.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw es()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw es()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw es()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw es()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw es()},enumerable:!1,configurable:!0}),t.prototype.copy=function(t,e,n,i,o){return this},t.prototype.insert=function(t,e,n){return new mu(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 vu=function(){function t(t){this.comparator=t,this.data=new pu(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 yu(this.data.getIterator())},t.prototype.getIteratorFrom=function(t){return new yu(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}(),yu=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}(),_u=new pu(Es.comparator);function bu(){return _u}var Cu=new pu(Es.comparator);function xu(){return Cu}var wu=new pu(Es.comparator);function Ou(){return wu}var Pu=new vu(Es.comparator);function Mu(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Pu,i=0,o=t;i<o.length;i++){var r=o[i];n=n.add(r)}return n}var ku=new vu(as);function Tu(){return ku}var Su=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,Eu.createSynthesizedTargetChangeForCurrentChange(e,n)),new t(ls.min(),i,Tu(),bu(),Mu())},t}(),Eu=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(_s.EMPTY_BYTE_STRING,n,Mu(),Mu(),Mu())},t}(),Au=function(t,e,n,i){this.v=t,this.removedTargetIds=e,this.key=n,this.P=i},Iu=function(t,e){this.targetId=t,this.V=e},Ru=function(t,e,n,i){void 0===n&&(n=_s.EMPTY_BYTE_STRING),void 0===i&&(i=null),this.state=t,this.targetIds=e,this.resumeToken=n,this.cause=i},Nu=function(){function t(){this.S=0,this.D=Fu(),this.C=_s.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=Mu(),e=Mu(),n=Mu();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:es()}}),new Eu(this.C,this.N,t,e,n)},t.prototype.L=function(){this.k=!1,this.D=Fu()},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}(),Lu=function(){function t(t){this.W=t,this.G=new Map,this.H=bu(),this.J=Du(),this.Y=new vu(as)}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:es()}})},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;
1if($s(o))if(0===n){var r=new Es(o.path);this.tt(e,r,Ys.newNoDocument(r,ls.min()))}else ns(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&&$s(r.target)){var a=new Es(r.target.path);null!==e.H.get(a)||e.at(o,a)||e.tt(o,a,Ys.newNoDocument(a,t))}i.$&&(n.set(o,i.M()),i.L())}});var i=Mu();this.J.forEach(function(t,n){var o=!0;n.forEachWhile(function(t){var n=e.ot(t);return!n||2===n.purpose||(o=!1,!1)}),o&&(i=i.add(t))});var o=new Su(t,n,this.Y,this.H,i);return this.H=bu(),this.J=Du(),this.Y=new vu(as),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 Nu,this.G.set(t,e)),e},t.prototype.ht=function(t){var e=this.J.get(t);return e||(e=new vu(as),this.J=this.J.insert(t,e)),e},t.prototype.st=function(t){var e=null!==this.ot(t);return e||Ka("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 Nu),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 Du(){return new pu(Es.comparator)}function Fu(){return new pu(Es.comparator)}var Uu={asc:"ASCENDING",desc:"DESCENDING"},Zu={"<":"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"},qu=function(t,e){this.databaseId=t,this.I=e};function ju(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 Vu(t,e){return t.I?e.toBase64():e.toUint8Array()}function zu(t,e){return ju(t,e.toTimestamp())}function Gu(t){return ns(!!t),ls.fromTimestamp((e=Cs(t),new us(e.seconds,e.nanos)));var e}function Bu(t,e){return(n=t,new gs(["projects",n.projectId,"databases",n.database])).child("documents").child(e).canonicalString();var n}function Hu(t){var e=gs.fromString(t);return ns(ml(e)),e}function Yu(t,e){return Bu(t.databaseId,e.path)}function Qu(t,e){var n=Hu(e);if(n.get(1)!==t.databaseId.projectId)throw new Qa(Ya.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 Qa(Ya.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new Es($u(n))}function Ju(t,e){return Bu(t.databaseId,e)}function Wu(t){var e=Hu(t);return 4===e.length?gs.emptyPath():$u(e)}function Ku(t){return new gs(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function $u(t){return ns(t.length>4&&"documents"===t.get(4)),t.popFirst(5)}function Xu(t,e,n){return{name:Yu(t,e),fields:n.value.mapValue.fields}}function tl(t,e,n){var i=Qu(t,e.name),o=Gu(e.updateTime),r=new Bs({mapValue:{fields:e.fields}}),a=Ys.newFoundDocument(i,o,r);return n&&a.setHasCommittedMutations(),n?a.setHasCommittedMutations():a}function el(t,e){var n,i;if(e instanceof nu)n={update:Xu(t,e.key,e.value)};else if(e instanceof uu)n={delete:Yu(t,e.key)};else if(e instanceof iu)n={update:Xu(t,e.key,e.data),updateMask:gl(e.fieldMask)};else{if(!(e instanceof lu))return es();n={verify:Yu(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 Uc)return{fieldPath:e.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof Zc)return{fieldPath:e.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof jc)return{fieldPath:e.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof zc)return{fieldPath:e.field.canonicalString(),increment:n.A};throw es()}(0,t)})),e.precondition.isNone||(n.currentDocument=void 0!==(i=e.precondition).updateTime?{updateTime:zu(t,i.updateTime)}:void 0!==i.exists?{exists:i.exists}:es()),n}function nl(t,e){var n,i=e.currentDocument?void 0!==(n=e.currentDocument).updateTime?Qc.updateTime(Gu(n.updateTime)):void 0!==n.exists?Qc.exists(n.exists):Qc.none():Qc.none(),o=e.updateTransforms?e.updateTransforms.map(function(e){return function(t,e){var n=null;"setToServerValue"in e?(ns("REQUEST_TIME"===e.setToServerValue),n=new Uc):"appendMissingElements"in e?n=new Zc(e.appendMissingElements.values||[]):"removeAllFromArray"in e?n=new jc(e.removeAllFromArray.values||[]):"increment"in e?n=new zc(t,e.increment):es();var i=vs.fromServerFormat(e.fieldPath);return new Hc(i,n)}(t,e)}):[];if(e.update){var r=Qu(t,e.update.name),a=new Bs({mapValue:{fields:e.update.fields}});if(e.updateMask){var s=function(t){return new ys((t.fieldPaths||[]).map(function(t){return vs.fromServerFormat(t)}))}(e.updateMask);return new iu(r,a,s,i,o)}return new nu(r,a,i,o)}if(e.delete){var c=Qu(t,e.delete);return new uu(c,i)}if(e.verify){var u=Qu(t,e.verify);
1return new lu(u,i)}return es()}function il(t,e){return{documents:[Ju(t,e.path)]}}function ol(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(Vs(t.value))return{unaryFilter:{field:hl(t.field),op:"IS_NAN"}};if(js(t.value))return{unaryFilter:{field:hl(t.field),op:"IS_NULL"}}}else if("!="===t.op){if(Vs(t.value))return{unaryFilter:{field:hl(t.field),op:"IS_NOT_NAN"}};if(js(t.value))return{unaryFilter:{field:hl(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:hl(t.field),op:ll(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:hl((e=t).field),direction:ul(e.dir)};var e})}(e.orderBy);r&&(n.structuredQuery.orderBy=r);var a,s=(a=e.limit,t.I||ks(a)?a:{value:a});return null!==s&&(n.structuredQuery.limit=s),e.startAt&&(n.structuredQuery.startAt=sl(e.startAt)),e.endAt&&(n.structuredQuery.endAt=sl(e.endAt)),n}function rl(t){var e=Wu(t.parent),n=t.structuredQuery,i=n.from?n.from.length:0,o=null;if(i>0){ns(1===i);var r=n.from[0];r.allDescendants?o=r.collectionId:e=e.child(r.collectionId)}var a=[];n.where&&(a=al(n.where));var s=[];n.orderBy&&(s=n.orderBy.map(function(t){return new lc(fl((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=ks(u="object"==typeof(c=n.limit)?c.value:c)?null:u);var h=null;n.startAt&&(h=cl(n.startAt));var f=null;return n.endAt&&(f=cl(n.endAt)),gc(e,o,s,a,l,"F",h,f)}function al(t){return t?void 0!==t.unaryFilter?[pl(t)]:void 0!==t.fieldFilter?[dl(t)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map(function(t){return al(t)}).reduce(function(t,e){return t.concat(e)}):es():[]}function sl(t){return{before:t.before,values:t.position}}function cl(t){return new cc(t.values||[],!!t.before)}function ul(t){return Uu[t]}function ll(t){return Zu[t]}function hl(t){return{fieldPath:t.canonicalString()}}function fl(t){return vs.fromServerFormat(t.fieldPath)}function dl(t){return Xs.create(fl(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 es()}}(t.fieldFilter.op),t.fieldFilter.value)}function pl(t){switch(t.unaryFilter.op){case"IS_NAN":var e=fl(t.unaryFilter.field);return Xs.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=fl(t.unaryFilter.field);return Xs.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var i=fl(t.unaryFilter.field);return Xs.create(i,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var o=fl(t.unaryFilter.field);return Xs.create(o,"!=",{nullValue:"NULL_VALUE"});default:return es()}}function gl(t){var e=[];return t.fields.forEach(function(t){return e.push(t.canonicalString())}),{fieldPaths:e}}function ml(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}function vl(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=_l(e)),e=yl(t.get(n),e);return _l(e)}function yl(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 _l(t){return t+"\x01\x01"}function bl(t){var e=t.length;if(ns(e>=2),2===e)return ns("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),gs.emptyPath();for(var n=e-2,i=[],o="",r=0;r<e;){var a=t.indexOf("\x01",r);switch((a<0||a>n)&&es(),t.charAt(a+1)){case"\x01":var s=t.substring(r,a),c=void 0;0===o.length?c=s:(c=o+=s,o=""),i.push(c);break;case"\x10":o+=t.substring(r,a),o+="\0";break;case"\x11":o+=t.substring(r,a+1);break;default:es()}r=a+2}return new gs(i)}var Cl=function(t,e){this.seconds=t,this.nanoseconds=e},xl=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};
1xl.store="owner",xl.key="owner";var wl=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};wl.store="mutationQueues",wl.keyPath="userId";var Ol=function(t,e,n,i,o){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=i,this.mutations=o};Ol.store="mutations",Ol.keyPath="batchId",Ol.userMutationsIndex="userMutationsIndex",Ol.userMutationsKeyPath=["userId","batchId"];var Pl=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,vl(e)]},t.key=function(t,e,n){return[t,vl(e),n]},t}();Pl.store="documentMutations",Pl.PLACEHOLDER=new Pl;var Ml=function(t,e){this.path=t,this.readTime=e},kl=function(t,e){this.path=t,this.version=e},Tl=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};Tl.store="remoteDocuments",Tl.readTimeIndex="readTimeIndex",Tl.readTimeIndexPath="readTime",Tl.collectionReadTimeIndex="collectionReadTimeIndex",Tl.collectionReadTimeIndexPath=["parentPath","readTime"];var Sl=function(t){this.byteSize=t};Sl.store="remoteDocumentGlobal",Sl.key="remoteDocumentGlobalKey";var El=function(t,e,n,i,o,r,a){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=i,this.lastListenSequenceNumber=o,this.lastLimboFreeSnapshotVersion=r,this.query=a};El.store="targets",El.keyPath="targetId",El.queryTargetsIndexName="queryTargetsIndex",El.queryTargetsKeyPath=["canonicalId","targetId"];var Al=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};Al.store="targetDocuments",Al.keyPath=["targetId","path"],Al.documentTargetsIndex="documentTargetsIndex",Al.documentTargetsKeyPath=["path","targetId"];var Il=function(t,e,n,i){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=i};Il.key="targetGlobalKey",Il.store="targetGlobal";var Rl=function(t,e){this.collectionId=t,this.parent=e};Rl.store="collectionParents",Rl.keyPath=["collectionId","parent"];var Nl=function(t,e,n,i){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=i};Nl.store="clientMetadata",Nl.keyPath="clientId";var Ll=function(t,e,n){this.bundleId=t,this.createTime=e,this.version=n};Ll.store="bundles",Ll.keyPath="bundleId";var Dl=function(t,e,n){this.name=t,this.readTime=e,this.bundledQuery=n};Dl.store="namedQueries",Dl.keyPath="name";var Fl=(0,Ln.ev)((0,Ln.ev)([],(0,Ln.ev)((0,Ln.ev)([],(0,Ln.ev)((0,Ln.ev)([],(0,Ln.ev)((0,Ln.ev)([],[wl.store,Ol.store,Pl.store,Tl.store,El.store,xl.store,Il.store,Al.store]),[Nl.store])),[Sl.store])),[Rl.store])),[Ll.store,Dl.store]),Ul="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Zl=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}(),ql=function(){var t=this;this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})},jl=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&&es(),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}(),Vl=function(){function t(t,e){var n=this;this.action=t,this.transaction=e,this.aborted=!1,this.ft=new ql,this.transaction.oncomplete=function(){n.ft.resolve()},this.transaction.onabort=function(){e.error?n.ft.reject(new Bl(t,e.error)):n.ft.resolve()},this.transaction.onerror=function(e){var i=Wl(e.target.error);n.ft.reject(new Bl(t,i))}}return t.open=function(e,n,i,o){try{return new t(n,e.transaction(o,i))}catch(r){throw new Bl(n,r)}}
1,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||(Ka("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 Yl(e)},t}(),zl=function(){function t(e,n,i){this.name=e,this.version=n,this.wt=i,12.2===t._t((0,Dn.z$)())&&$a("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 Ka("SimpleDb","Removing database:",t),Ql(window.indexedDB.deleteDatabase(t)).toPromise()},t.yt=function(){if("undefined"==typeof indexedDB)return!1;if(t.gt())return!0;var e=(0,Dn.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,Ln.mG)(this,void 0,void 0,function(){var e,n=this;return(0,Ln.Jh)(this,function(i){switch(i.label){case 0:return this.db?[3,2]:(Ka("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 Bl(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 Qa(Ya.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 Bl(t,n))},o.onupgradeneeded=function(t){Ka("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',t.oldVersion),n.wt.Rt(t.target.result,o.transaction,t.oldVersion,n.version).next(function(){Ka("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,Ln.mG)(this,void 0,void 0,function(){var o,r,a,s,c;return(0,Ln.Jh)(this,function(u){switch(u.label){case 0:o="readonly"===e,r=0,a=function(){var e,a,c,u,l;return(0,Ln.Jh)(this,function(h){switch(h.label){case 0:++r,h.label=1;case 1:return h.trys.push([1,4,,5]),[4,s.At(t)];case 2:return s.db=h.sent(),e=Vl.open(s.db,t,o?"readonly":"readwrite",n),a=i(e).catch(function(t){return e.abort(t),jl.reject(t)}).toPromise(),c={},a.catch(function(){}),[4,e.dt];case 3:return[2,(c.value=(h.sent(),a),c)];case 4:return Ka("SimpleDb","Transaction failed with error:",(u=h.sent()).message,"Retrying:",l="FirebaseError"!==u.name&&r<3),s.close(),l?[3,5]:[2,{value:Promise.reject(u)}];case 5:return[2]}})},s=this,u.label=1;case 1:return[5,a()];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}(),Gl=function(){function t(t){this.Pt=t,this.Vt=!1,this.St=null}return Object.defineProperty(t.prototype,"isDone",{get:function(){return this.Vt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dt",{get:function(){return this.St}
1,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 Ql(this.Pt.delete())},t}(),Bl=function(t){function e(e,n){var i=this;return(i=t.call(this,Ya.UNAVAILABLE,"IndexedDB transaction '"+e+"' failed: "+n)||this).name="IndexedDbTransactionError",i}return(0,Ln.ZT)(e,t),e}(Qa);function Hl(t){return"IndexedDbTransactionError"===t.name}var Yl=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(Ka("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(Ka("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),Ql(n)},t.prototype.add=function(t){return Ka("SimpleDb","ADD",this.store.name,t,t),Ql(this.store.add(t))},t.prototype.get=function(t){var e=this;return Ql(this.store.get(t)).next(function(n){return void 0===n&&(n=null),Ka("SimpleDb","GET",e.store.name,t,n),n})},t.prototype.delete=function(t){return Ka("SimpleDb","DELETE",this.store.name,t),Ql(this.store.delete(t))},t.prototype.count=function(){return Ka("SimpleDb","COUNT",this.store.name),Ql(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){Ka("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 jl(function(n,i){e.onerror=function(t){var e=Wl(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 jl(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 Gl(o),a=e(o.primaryKey,o.value,r);if(a instanceof jl){var s=a.catch(function(t){return r.done(),jl.reject(t)});n.push(s)}r.isDone?i():null===r.Dt?o.continue():o.continue(r.Dt)}else i()}}).next(function(){return jl.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 Ql(t){return new jl(function(e,n){t.onsuccess=function(t){e(t.target.result)},t.onerror=function(t){var e=Wl(t.target.error);n(e)}})}var Jl=!1;function Wl(t){var e=zl._t((0,Dn.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 Qa("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 Kl=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).Mt=e,i.currentSequenceNumber=n,i}return(0,Ln.ZT)(e,t),e}(Zl);function $l(t,e){var n=is(t);return zl.It(n.Mt,e)}var Xl=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)&&Kc(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)&&$c(r,t,this.localWriteTime);for(var i=0,o=this.mutations;i<o.length;i++){var r;(r=o[i]).key.isEqual(t.key)&&$c(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(ls.min())})},t.prototype.keys=function(){return this.mutations.reduce(function(t,e){return t.add(e.key)}
1,Mu())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&ss(this.mutations,t.mutations,function(t,e){return tu(t,e)})&&ss(this.baseMutations,t.baseMutations,function(t,e){return tu(t,e)})},t}(),th=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){ns(e.mutations.length===i.length);for(var o=Ou(),r=e.mutations,a=0;a<r.length;a++)o=o.insert(r[a].key,i[a].version);return new t(e,n,i,o)},t}(),eh=function(){function t(t,e,n,i,o,r,a){void 0===o&&(o=ls.min()),void 0===r&&(r=ls.min()),void 0===a&&(a=_s.EMPTY_BYTE_STRING),this.target=t,this.targetId=e,this.purpose=n,this.sequenceNumber=i,this.snapshotVersion=o,this.lastLimboFreeSnapshotVersion=r,this.resumeToken=a}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}(),nh=function(t){this.Lt=t};function ih(t,e){if(e.document)return tl(t.Lt,e.document,!!e.hasCommittedMutations);if(e.noDocument){var n=Es.fromSegments(e.noDocument.path),i=ch(e.noDocument.readTime),o=Ys.newNoDocument(n,i);return e.hasCommittedMutations?o.setHasCommittedMutations():o}if(e.unknownDocument){var r=Es.fromSegments(e.unknownDocument.path);return i=ch(e.unknownDocument.version),Ys.newUnknownDocument(r,i)}return es()}function oh(t,e,n){var i,o,r=rh(n),a=e.key.path.popLast().toArray();if(e.isFoundDocument()){var s={name:Yu(i=t.Lt,(o=e).key),fields:o.data.value.mapValue.fields,updateTime:ju(i,o.version.toTimestamp())},c=e.hasCommittedMutations;return new Tl(null,null,s,c,r,a)}if(e.isNoDocument()){var u=e.key.path.toArray(),l=sh(e.version);return c=e.hasCommittedMutations,new Tl(null,new Ml(u,l),null,c,r,a)}if(e.isUnknownDocument()){var h=e.key.path.toArray(),f=sh(e.version);return new Tl(new kl(h,f),null,null,!0,r,a)}return es()}function rh(t){var e=t.toTimestamp();return[e.seconds,e.nanoseconds]}function ah(t){var e=new us(t[0],t[1]);return ls.fromTimestamp(e)}function sh(t){var e=t.toTimestamp();return new Cl(e.seconds,e.nanoseconds)}function ch(t){var e=new us(t.seconds,t.nanoseconds);return ls.fromTimestamp(e)}function uh(t,e){for(var n=(e.baseMutations||[]).map(function(e){return nl(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 nl(t.Lt,e)}),r=us.fromMillis(e.localWriteTimeMs);return new Xl(e.batchId,r,n,o)}function lh(t){var e,n,i=ch(t.readTime),o=void 0!==t.lastLimboFreeSnapshotVersion?ch(t.lastLimboFreeSnapshotVersion):ls.min();return void 0!==t.query.documents?(ns(1===(n=t.query).documents.length),e=wc(mc(Wu(n.documents[0])))):e=wc(rl(t.query)),new eh(e,t.targetId,0,t.lastListenSequenceNumber,i,o,_s.fromBase64String(t.resumeToken))}function hh(t,e){var n,i=sh(e.snapshotVersion),o=sh(e.lastLimboFreeSnapshotVersion);n=$s(e.target)?il(t.Lt,e.target):ol(t.Lt,e.target);var r=e.resumeToken.toBase64();return new El(e.targetId,Ws(e.target),i,r,e.sequenceNumber,o,n)}function fh(t){var e=rl({parent:t.parent,structuredQuery:t.structuredQuery});return"LAST"===t.limitType?Oc(e,e.limit,"L"):e}var dh=function(){function t(){}return t.prototype.getBundleMetadata=function(t,e){return ph(t).get(e).next(function(t){if(t)return{id:(e=t).bundleId,createTime:ch(e.createTime),version:e.version};var e})},t.prototype.saveBundleMetadata=function(t,e){return ph(t).put({bundleId:(n=e).id,createTime:sh(Gu(n.createTime)),version:n.version});var n},t.prototype.getNamedQuery=function(t,e){return gh(t).get(e).next(function(t){if(t)return{name:(e=t).name,query:fh(e.bundledQuery),readTime:ch(e.readTime)};var e})},t.prototype.saveNamedQuery=function(t,e){return gh(t).put({name:(n=e).name,readTime:sh(Gu(n.readTime)),bundledQuery:n.bundledQuery});var n},t}();
1function ph(t){return $l(t,Ll.store)}function gh(t){return $l(t,Dl.store)}var mh=function(){function t(){this.Bt=new vh}return t.prototype.addToCollectionParentIndex=function(t,e){return this.Bt.add(e),jl.resolve()},t.prototype.getCollectionParents=function(t,e){return jl.resolve(this.Bt.getEntries(e))},t}(),vh=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t.lastSegment(),n=t.popLast(),i=this.index[e]||new vu(gs.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 vu(gs.comparator)).toArray()},t}(),yh=function(){function t(){this.qt=new vh}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:vl(o)};return _h(t).put(r)}return jl.resolve()},t.prototype.getCollectionParents=function(t,e){var n=[],i=IDBKeyRange.bound([e,""],[cs(e),""],!1,!0);return _h(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(bl(r.parent))}return n})},t}();function _h(t){return $l(t,Rl.store)}var bh={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},Ch=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_PERCENTILE,t.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)},t}();function xh(t,e,n){var i=t.store(Ol.store),o=t.store(Pl.store),r=[],a=IDBKeyRange.only(n.batchId),s=0,c=i.$t({range:a},function(t,e,n){return s++,n.delete()});r.push(c.next(function(){ns(1===s)}));for(var u=[],l=0,h=n.mutations;l<h.length;l++){var f=h[l],d=Pl.key(e,f.key.path,n.batchId);r.push(o.delete(d)),u.push(f.key)}return jl.waitFor(r).next(function(){return u})}function wh(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 es();e=t.noDocument}return JSON.stringify(e).length}Ch.DEFAULT_COLLECTION_PERCENTILE=10,Ch.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Ch.DEFAULT=new Ch(41943040,Ch.DEFAULT_COLLECTION_PERCENTILE,Ch.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Ch.DISABLED=new Ch(-1,0,0);var Oh=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 ns(""!==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 Mh(t).$t({index:Ol.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=kh(t),a=Mh(t);return a.add({}).next(function(s){ns("number"==typeof s);for(var c=new Xl(s,e,n,i),u=function(t,e,n){var i=n.baseMutations.map(function(e){return el(t.Lt,e)}),o=n.mutations.map(function(e){return el(t.Lt,e)});return new Ol(e,n.batchId,n.localWriteTime.toMillis(),i,o)}(o.R,o.userId,c),l=[],h=new vu(function(t,e){return as(t.canonicalString(),e.canonicalString())}),f=0,d=i;f<d.length;f++){var p=d[f],g=Pl.key(o.userId,p.key.path,s);h=h.add(p.key.path.popLast()),l.push(a.put(u)),l.push(r.put(g,Pl.PLACEHOLDER))}return h.forEach(function(e){l.push(o.Ut.addToCollectionParentIndex(t,e))}),t.addOnCommittedListener(function(){o.Kt[s]=c.keys()}),jl.waitFor(l).next(function(){return c})})},t.prototype.lookupMutationBatch=function(t,e){var n=this;return Mh(t).get(e).next(function(t){return t?(ns(t.userId===n.userId),uh(n.R,t)):null})},t.prototype.jt=function(t,e){var n=this;return this.Kt[e]?jl.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 Mh(t).$t({index:Ol.userMutationsIndex,range:o},function(t,e,o){e.userId===n.userId&&(ns(e.batchId>=i),r=uh(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 Mh(t).$t({index:Ol.userMutationsIndex,range:e,reverse:!0}
1,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 Mh(t).Nt(Ol.userMutationsIndex,n).next(function(t){return t.map(function(t){return uh(e.R,t)})})},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,i=Pl.prefixForPath(this.userId,e.path),o=IDBKeyRange.lowerBound(i),r=[];return kh(t).$t({range:o},function(i,o,a){var s=i[0],c=i[2],u=bl(i[1]);if(s===n.userId&&e.path.isEqual(u))return Mh(t).get(c).next(function(t){if(!t)throw es();ns(t.userId===n.userId),r.push(uh(n.R,t))});a.done()}).next(function(){return r})},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,i=new vu(as),o=[];return e.forEach(function(e){var r=Pl.prefixForPath(n.userId,e.path),a=IDBKeyRange.lowerBound(r),s=kh(t).$t({range:a},function(t,o,r){var a=t[0],s=t[2],c=bl(t[1]);a===n.userId&&e.path.isEqual(c)?i=i.add(s):r.done()});o.push(s)}),jl.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=Pl.prefixForPath(this.userId,i),a=IDBKeyRange.lowerBound(r),s=new vu(as);return kh(t).$t({range:a},function(t,e,r){var a=t[0],c=t[2],u=bl(t[1]);a===n.userId&&i.isPrefixOf(u)?u.length===o&&(s=s.add(c)):r.done()}).next(function(){return n.Wt(t,s)})},t.prototype.Wt=function(t,e){var n=this,i=[],o=[];return e.forEach(function(e){o.push(Mh(t).get(e).next(function(t){if(null===t)throw es();ns(t.userId===n.userId),i.push(uh(n.R,t))}))}),jl.waitFor(o).next(function(){return i})},t.prototype.removeMutationBatch=function(t,e){var n=this;return xh(t.Mt,this.userId,e).next(function(i){return t.addOnCommittedListener(function(){n.Gt(e.batchId)}),jl.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 jl.resolve();var i=IDBKeyRange.lowerBound(Pl.prefixForUser(e.userId)),o=[];return kh(t).$t({range:i},function(t,n,i){if(t[0]===e.userId){var r=bl(t[1]);o.push(r)}else i.done()}).next(function(){ns(0===o.length)})})},t.prototype.containsKey=function(t,e){return Ph(t,this.userId,e)},t.prototype.zt=function(t){var e=this;return Th(t).get(this.userId).next(function(t){return t||new wl(e.userId,-1,"")})},t}();function Ph(t,e,n){var i=Pl.prefixForPath(e,n.path),o=i[1],r=IDBKeyRange.lowerBound(i),a=!1;return kh(t).$t({range:r,Ft:!0},function(t,n,i){t[0]===e&&t[1]===o&&(a=!0),i.done()}).next(function(){return a})}function Mh(t){return $l(t,Ol.store)}function kh(t){return $l(t,Pl.store)}function Th(t){return $l(t,wl.store)}var Sh=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}(),Eh=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 Sh(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 ls.fromTimestamp(new us(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 Ah(t).delete(e.targetId)}).next(function(){return n.Xt(t)}).next(function(e){return ns(e.targetCount>0),e.targetCount-=1,n.Zt(t,e)})},t.prototype.removeTargets=function(t,e,n){var i=this,o=0,r=[];return Ah(t).$t(function(a,s){var c=lh(s);c.sequenceNumber<=e&&null===n.get(c.targetId)&&(o++,r.push(i.removeTargetData(t,c)))}).next(function(){return jl.waitFor(r)}).next(function(){return o}
1)},t.prototype.forEachTarget=function(t,e){return Ah(t).$t(function(t,n){var i=lh(n);e(i)})},t.prototype.Xt=function(t){return Ih(t).get(Il.key).next(function(t){return ns(null!==t),t})},t.prototype.Zt=function(t,e){return Ih(t).put(Il.key,e)},t.prototype.te=function(t,e){return Ah(t).put(hh(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=Ws(e),i=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),o=null;return Ah(t).$t({range:i,index:El.queryTargetsIndexName},function(t,n,i){var r=lh(n);Ks(e,r.target)&&(o=r,i.done())}).next(function(){return o})},t.prototype.addMatchingKeys=function(t,e,n){var i=this,o=[],r=Rh(t);return e.forEach(function(e){var a=vl(e.path);o.push(r.put(new Al(n,a))),o.push(i.referenceDelegate.addReference(t,n,e))}),jl.waitFor(o)},t.prototype.removeMatchingKeys=function(t,e,n){var i=this,o=Rh(t);return jl.forEach(e,function(e){var r=vl(e.path);return jl.waitFor([o.delete([n,r]),i.referenceDelegate.removeReference(t,n,e)])})},t.prototype.removeMatchingKeysForTargetId=function(t,e){var n=Rh(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=Rh(t),o=Mu();return i.$t({range:n,Ft:!0},function(t,e,n){var i=bl(t[1]),r=new Es(i);o=o.add(r)}).next(function(){return o})},t.prototype.containsKey=function(t,e){var n=vl(e.path),i=IDBKeyRange.bound([n],[cs(n)],!1,!0),o=0;return Rh(t).$t({index:Al.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 Ah(t).get(e).next(function(t){return t?lh(t):null})},t}();function Ah(t){return $l(t,El.store)}function Ih(t){return $l(t,Il.store)}function Rh(t){return $l(t,Al.store)}function Nh(t){return(0,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.Jh)(this,function(e){if(t.code!==Ya.FAILED_PRECONDITION||t.message!==Ul)throw t;return Ka("LocalStore","Unexpectedly lost primary lease"),[2]})})}function Lh(t,e){var n=t[1],i=e[1],o=as(t[0],e[0]);return 0===o?as(n,i):o}var Dh=function(){function t(t){this.ne=t,this.buffer=new vu(Lh),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();Lh(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}(),Fh=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;Ka("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.ce=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",n,function(){return(0,Ln.mG)(e,void 0,void 0,function(){var e;return(0,Ln.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 Hl(e=n.sent())?(Ka("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e),[3,6]):[3,4];case 4:return[4,Nh(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}(),Uh=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 jl.resolve(Ha.o);var i=new Dh(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?(Ka("LruGarbageCollector","Garbage collection skipped; disabled"),jl.resolve(bh)):this.getCacheSize(t).next(function(i){return i<n.params.cacheSizeCollectionThreshold?(Ka("LruGarbageCollector","Garbage collection skipped; Cache size "+i+" is lower than threshold "+n.params.cacheSizeCollectionThreshold),bh):n.fe(t,e)})},t.prototype.getCacheSize=function(t){return this.ae.getCacheSize(t)}
1,t.prototype.fe=function(t,e){var n,i,o,r,a,s,c,u=this,l=Date.now();return this.calculateTargetCount(t,this.params.percentileToCollect).next(function(e){return e>u.params.maximumSequenceNumbersToCollect?(Ka("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,a=Date.now(),u.removeTargets(t,n,e)}).next(function(e){return o=e,s=Date.now(),u.removeOrphanedDocuments(t,n)}).next(function(t){return c=Date.now(),Wa()<=Fn.in.DEBUG&&Ka("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(r-l)+"ms\n\tDetermined least recently used "+i+" in "+(a-r)+"ms\n\tRemoved "+o+" targets in "+(s-a)+"ms\n\tRemoved "+t+" documents in "+(c-s)+"ms\nTotal Duration: "+(c-l)+"ms"),jl.resolve({didRun:!0,sequenceNumbersCollected:i,targetsRemoved:o,documentsRemoved:t})})},t}(),Zh=function(){function t(t,e){this.db=t,this.garbageCollector=new Uh(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().forEachTarget(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 qh(t,n)},t.prototype.removeReference=function(t,e,n){return qh(t,n)},t.prototype.removeTargets=function(t,e,n){return this.db.getTargetCache().removeTargets(t,e,n)},t.prototype.markPotentiallyOrphaned=function(t,e){return qh(t,e)},t.prototype._e=function(t,e){return i=e,o=!1,Th(n=t).Ot(function(t){return Ph(n,t,i).next(function(t){return t&&(o=!0),jl.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(a,s){if(s<=e){var c=n._e(t,a).next(function(e){if(!e)return r++,i.getEntry(t,a).next(function(){return i.removeEntry(a),Rh(t).delete([0,vl(a.path)])})});o.push(c)}}).next(function(){return jl.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 qh(t,e)},t.prototype.we=function(t,e){var n,i=Rh(t),o=Ha.o;return i.$t({index:Al.documentTargetsIndex},function(t,i){var r=i.path,a=i.sequenceNumber;0===t[0]?(o!==Ha.o&&e(new Es(bl(n)),o),o=a,n=r):o=Ha.o}).next(function(){o!==Ha.o&&e(new Es(bl(n)),o)})},t.prototype.getCacheSize=function(t){return this.db.getRemoteDocumentCache().getSize(t)},t}();function qh(t,e){return Rh(t).put((n=t.currentSequenceNumber,new Al(0,vl(e.path),n)));var n}var jh=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],a=r[1];if(this.equalsFn(r[0],t))return a}},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){fs(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 ds(this.inner)},t}(),Vh=function(){function t(){this.changes=new jh(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:ls.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:Ys.newInvalidDocument(t),readTime:e})},t.prototype.getEntry=function(t,e){this.assertNotApplied();var n=this.changes.get(e);return void 0!==n?jl.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}(),zh=function(){function t(t,e){this.R=t,this.Ut=e}return t.prototype.addEntry=function(t,e,n){return Hh(t).put(Yh(e),n)},t.prototype.removeEntry=function(t,e){var n=Hh(t),i=Yh(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 Hh(t).get(Yh(e)).next(function(t){return n.ye(e,t)})},t.prototype.ge=function(t,e){var n=this;return Hh(t).get(Yh(e)).next(function(t){return{document:n.ye(e,t),size:wh(t)}})},t.prototype.getEntries=function(t,e){var n=this,i=bu();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=bu(),o=new pu(Es.comparator);return this.pe(t,e,function(t,e){var r=n.ye(t,e);i=i.insert(t,r),o=o.insert(t,wh(e))}).next(function(){return{documents:i,Te:o}})},t.prototype.pe=function(t,e,n){if(e.isEmpty())return jl.resolve();var i=IDBKeyRange.bound(e.first().path.toArray(),e.last().path.toArray()),o=e.getIterator(),r=o.getNext();return Hh(t).$t({range:i}
1,function(t,e,i){for(var a=Es.fromSegments(t);r&&Es.comparator(r,a)<0;)n(r,null),r=o.getNext();r&&r.isEqual(a)&&(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=bu(),r=e.path.length+1,a={};if(n.isEqual(ls.min())){var s=e.path.toArray();a.range=IDBKeyRange.lowerBound(s)}else{var c=e.path.toArray(),u=rh(n);a.range=IDBKeyRange.lowerBound([c,u],!0),a.index=Tl.collectionReadTimeIndex}return Hh(t).$t(a,function(t,n,a){if(t.length===r){var s=ih(i.R,n);e.path.isPrefixOf(s.key.path)?Tc(e,s)&&(o=o.insert(s.key,s)):a.done()}}).next(function(){return o})},t.prototype.newChangeBuffer=function(t){return new Gh(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 Bh(t).get(Sl.key).next(function(t){return ns(!!t),t})},t.prototype.me=function(t,e){return Bh(t).put(Sl.key,e)},t.prototype.ye=function(t,e){if(e){var n=ih(this.R,e);if(!n.isNoDocument()||!n.version.isEqual(ls.min()))return n}return Ys.newInvalidDocument(t)},t}(),Gh=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).Ie=e,i.trackRemovals=n,i.Ae=new jh(function(t){return t.toString()},function(t,e){return t.isEqual(e)}),i}return(0,Ln.ZT)(e,t),e.prototype.applyChanges=function(t){var e=this,n=[],i=0,o=new vu(function(t,e){return as(t.canonicalString(),e.canonicalString())});
1return this.changes.forEach(function(r,a){var s=e.Ae.get(r);if(a.document.isValidDocument()){var c=oh(e.Ie.R,a.document,e.getReadTime(r));o=o.add(r.path.popLast());var u=wh(c);i+=u-s,n.push(e.Ie.addEntry(t,r,c))}else if(i-=s,e.trackRemovals){var l=oh(e.Ie.R,Ys.newNoDocument(r,ls.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)),jl.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}(Vh);function Bh(t){return $l(t,Sl.store)}function Hh(t){return $l(t,Tl.store)}function Yh(t){return t.path.toArray()}var Qh=function(){function t(t){this.R=t}return t.prototype.Rt=function(t,e,n,i){var o=this;ns(n<i&&n>=0&&i<=11);var r,a=new Vl("createOrUpgrade",e);n<1&&i>=1&&(t.createObjectStore(xl.store),(r=t).createObjectStore(wl.store,{keyPath:wl.keyPath}),r.createObjectStore(Ol.store,{keyPath:Ol.keyPath,autoIncrement:!0}).createIndex(Ol.userMutationsIndex,Ol.userMutationsKeyPath,{unique:!0}),r.createObjectStore(Pl.store),Jh(t),function(t){t.createObjectStore(Tl.store)}(t));var s=jl.resolve();return n<3&&i>=3&&(0!==n&&(function(t){t.deleteObjectStore(Al.store),t.deleteObjectStore(El.store),t.deleteObjectStore(Il.store)}(t),Jh(t)),s=s.next(function(){return function(t){var e=t.store(Il.store),n=new Il(0,0,ls.min().toTimestamp(),0);return e.put(Il.key,n)}(a)})),n<4&&i>=4&&(0!==n&&(s=s.next(function(){return function(t,e){return e.store(Ol.store).Nt().next(function(n){t.deleteObjectStore(Ol.store),t.createObjectStore(Ol.store,{keyPath:Ol.keyPath,autoIncrement:!0}).createIndex(Ol.userMutationsIndex,Ol.userMutationsKeyPath,{unique:!0});var i=e.store(Ol.store),o=n.map(function(t){return i.put(t)});return jl.waitFor(o)})}(t,a)})),s=s.next(function(){!function(t){t.createObjectStore(Nl.store,{keyPath:Nl.keyPath})}(t)})),n<5&&i>=5&&(s=s.next(function(){return o.Re(a)})),n<6&&i>=6&&(s=s.next(function(){return function(t){t.createObjectStore(Sl.store)}(t),o.be(a)})),n<7&&i>=7&&(s=s.next(function(){return o.ve(a)})),n<8&&i>=8&&(s=s.next(function(){return o.Pe(t,a)})),n<9&&i>=9&&(s=s.next(function(){(function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")})(t),function(t){var e=t.objectStore(Tl.store);e.createIndex(Tl.readTimeIndex,Tl.readTimeIndexPath,{unique:!1}),e.createIndex(Tl.collectionReadTimeIndex,Tl.collectionReadTimeIndexPath,{unique:!1})}(e)})),n<10&&i>=10&&(s=s.next(function(){return o.Ve(a)})),n<11&&i>=11&&(s=s.next(function(){(function(t){t.createObjectStore(Ll.store,{keyPath:Ll.keyPath})})(t),function(t){t.createObjectStore(Dl.store,{keyPath:Dl.keyPath})}(t)})),s},t.prototype.be=function(t){var e=0;return t.store(Tl.store).$t(function(t,n){e+=wh(n)}).next(function(){var n=new Sl(e);return t.store(Sl.store).put(Sl.key,n)})},t.prototype.Re=function(t){var e=this,n=t.store(wl.store),i=t.store(Ol.store);return n.Nt().next(function(n){return jl.forEach(n,function(n){var o=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return i.Nt(Ol.userMutationsIndex,o).next(function(i){return jl.forEach(i,function(i){ns(i.userId===n.userId);var o=uh(e.R,i);return xh(t,n.userId,o).next(function(){})})})})})},t.prototype.ve=function(t){var e=t.store(Al.store),n=t.store(Tl.store);return t.store(Il.store).get(Il.key).next(function(t){var i=[];return n.$t(function(n,o){var r=new gs(n),a=[0,vl(r)];i.push(e.get(a).next(function(n){return n?jl.resolve():e.put(new Al(0,vl(r),t.highestListenSequenceNumber))}))}).next(function(){return jl.waitFor(i)})})},t.prototype.Pe=function(t,e){t.createObjectStore(Rl.store,{keyPath:Rl.keyPath});var n=e.store(Rl.store),i=new vh,o=function(t){if(i.add(t)){var e=t.lastSegment(),o=t.popLast();return n.put({collectionId:e,parent:vl(o)})}};return e.store(Tl.store).$t({Ft:!0},function(t,e){var n=new gs(t);return o(n.popLast())}).next(function(){return e.store(Pl.store).$t({Ft:!0},function(t,e){var n=bl(t[1]);return o(n.popLast())})})},t.prototype.Ve=function(t){var e=this,n=t.store(El.store);return n.$t(function(t,i){var o=lh(i),r=hh(e.R,o);return n.put(r)})},t}();function Jh(t){t.createObjectStore(Al.store,{keyPath:Al.keyPath}).createIndex(Al.documentTargetsIndex,Al.documentTargetsKeyPath,{unique:!0}
1),t.createObjectStore(El.store,{keyPath:El.keyPath}).createIndex(El.queryTargetsIndexName,El.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(Il.store)}var Wh="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.",Kh=function(){function t(e,n,i,o,r,a,s,c,u,l){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=i,this.Se=r,this.window=a,this.document=s,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 Qa(Ya.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new Zh(this,o),this.Le=n+"main",this.R=new nh(c),this.Be=new zl(this.Le,11,new Qh(this.R)),this.qe=new Eh(this.referenceDelegate,this.R),this.Ut=new yh,this.Ue=new zh(this.R,this.Ut),this.Ke=new dh,this.window&&this.window.localStorage?this.Qe=this.window.localStorage:(this.Qe=null,!1===l&&$a("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 Qa(Ya.FAILED_PRECONDITION,Wh);return t.We(),t.Ge(),t.ze(),t.runTransaction("getHighestListenSequenceNumber","readonly",function(e){return t.qe.getHighestSequenceNumber(e)})}).then(function(e){t.Ne=new Ha(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,Ln.mG)(e,void 0,void 0,function(){return(0,Ln.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,Ln.mG)(e,void 0,void 0,function(){return(0,Ln.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,Ln.mG)(e,void 0,void 0,function(){return(0,Ln.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 Xh(e).put(new Nl(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(Hl(e))return Ka("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;if(!t.allowTabSynchronization)throw e;return Ka("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 $h(t).get(xl.key).next(function(t){return jl.resolve(e.tn(t))})},t.prototype.en=function(t){return Xh(t).delete(this.clientId)},t.prototype.nn=function(){return(0,Ln.mG)(this,void 0,void 0,function(){var t,e,n,i=this;return(0,Ln.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=$l(t,Nl.store);return e.Nt().next(function(t){var n=i.rn(t,18e5),o=t.filter(function(t){return-1===n.indexOf(t)});return jl.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?jl.resolve(!0):$h(t).get(xl.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 Qa(Ya.FAILED_PRECONDITION,Wh);return!1}}return!(!e.networkEnabled||!e.inForeground)||Xh(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&&Ka("IndexedDbPersistence","Client "+(t?"is":"is not")+" eligible for a primary lease."),t})},t.prototype.shutdown=function(){return(0,Ln.mG)(this,void 0,void 0,function(){var t=this;return(0,Ln.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",[xl.store,Nl.store],function(e){var n=new Kl(e,Ha.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 Xh(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 Oh.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 Ka("IndexedDbPersistence","Starting transaction:",t),this.Be.runTransaction(t,"readonly"===e?"readonly":"readwrite",Fl,function(r){return i=new Kl(r,o.Ne?o.Ne.next():Ha.o),"readwrite-primary"===e?o.Je(i).next(function(t){return!!t||o.Ye(i)}).next(function(e){if(!e)throw $a("Failed to obtain primary lease for action '"+t+"'."),o.isPrimary=!1,o.Se.enqueueRetryable(function(){return o.Me(!1)}),new Qa(Ya.FAILED_PRECONDITION,Ul);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 $h(t).get(xl.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 Qa(Ya.FAILED_PRECONDITION,Wh)})},t.prototype.Ze=function(t){var e=new xl(this.clientId,this.allowTabSynchronization,Date.now());return $h(t).put(xl.key,e)},t.yt=function(){return zl.yt()},t.prototype.Xe=function(t){var e=this,n=$h(t);return n.get(xl.key).next(function(t){return e.tn(t)?(Ka("IndexedDbPersistence","Releasing primary lease."),n.delete(xl.key)):jl.resolve()})},t.prototype.sn=function(t,e){var n=Date.now();return!(t<n-e||t>n&&($a("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,Dn.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 Ka("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(i){return $a("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){$a("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 $h(t){return $l(t,xl.store)}function Xh(t){return $l(t,Nl.store)}function tf(t,e){var n=t.projectId;return t.isDefaultDatabase||(n+="."+t.database),"firestore/"+e+"/"+n+"/"}var ef=function(t,e){this.progress=t,this.wn=e},nf=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 Es.isDocumentKey((i=e).path)&&null===i.collectionGroup&&0===i.filters.length?this.Tn(t,e.path):Cc(e)?this.In(t,e,n):this.An(t,e,n);var i},t.prototype.Tn=function(t,e){return this.mn(t,new Es(e)).next(function(t){var e=xu();return t.isFoundDocument()&&(e=e.insert(t.key,t)),e})},t.prototype.In=function(t,e,n){var i=this,o=e.collectionGroup,r=xu();return this.Ut.getCollectionParents(t,o).next(function(a){return jl.forEach(a,function(a){var s,c,u=(s=e,c=a.child(o),new pc(c,null,s.explicitOrderBy.slice(),s.filters.slice(),s.limit,s.limitType,s.startAt,s.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],a=0,s=r.mutations;a<s.length;a++){var c=s[a],u=c.key,l=i.get(u);null==l&&(l=Ys.newInvalidDocument(u),i=i.insert(u,l)),$c(c,l,r.localWriteTime),l.isFoundDocument()||(i=i.remove(u))}})}).next(function(){return i.forEach(function(t,n){Tc(e,n)||(i=i.remove(t))}),i})},t.prototype.Rn=function(t,e,n){for(var i=Mu(),o=0,r=e;o<r.length;o++)for(var a=0,s=r[o].mutations;a<s.length;a++){var c=s[a];c instanceof iu&&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}(),of=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=Mu(),o=Mu(),r=0,a=n.docChanges;r<a.length;r++){var s=a[r];switch(s.type){case 0:i=i.add(s.doc.key);break;case 1:o=o.add(s.doc.key)}}return new t(e,n.fromCache,i,o)},t}(),rf=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(ls.min())?this.Dn(t,e):this.Sn.pn(t,i).next(function(o){var a=r.Cn(e,o);return(vc(e)||yc(e))&&r.Nn(e.limitType,a,i,n)?r.Dn(t,e):(Wa()<=Fn.in.DEBUG&&Ka("QueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),kc(e)),r.Sn.getDocumentsMatchingQuery(t,e,n).next(function(t){return a.forEach(function(e){t=t.insert(e.key,e)}),t}))})},t.prototype.Cn=function(t,e){var n=new vu(Sc(t));return e.forEach(function(e,i){Tc(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 Wa()<=Fn.in.DEBUG&&Ka("QueryEngine","Using full collection scan to execute query:",kc(e)),this.Sn.getDocumentsMatchingQuery(t,e,ls.min())},t}(),af=function(){function t(t,e,n,i){this.persistence=t,this.xn=e,this.R=i,this.kn=new pu(as),this.Fn=new jh(function(t){return Ws(t)},Ks),this.$n=ls.min(),this._n=t.getMutationQueue(n),this.On=t.getRemoteDocumentCache(),this.qe=t.getTargetCache(),this.Mn=new nf(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 sf(t,e,n,i){return new af(t,e,n,i)}function cf(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i,o,r;return(0,Ln.Jh)(this,function(a){switch(a.label){case 0:return n=is(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(a){return r=a,i=n.persistence.getMutationQueue(e),o=new nf(n.On,i,n.persistence.getIndexManager()),i.getAllMutationBatches(t)}).next(function(e){for(var n=[],i=[],a=Mu(),s=0,c=r;s<c.length;s++){var u=c[s];n.push(u.batchId);for(var l=0,h=u.mutations;l<h.length;l++)a=a.add(h[l].key)}for(var f=0,d=e;f<d.length;f++){var p=d[f];i.push(p.batchId);for(var g=0,m=p.mutations;g<m.length;g++)a=a.add(m[g].key)}return o.pn(t,a).next(function(t){return{Ln:t,removedBatchIds:n,addedBatchIds:i}})})})];case 1:return r=a.sent(),[2,(n._n=i,n.Mn=o,n.xn.Vn(n.Mn),r)]}})})}function uf(t,e){var n=is(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",function(t){var i,o,r,a,s,c,u,l=e.batch.keys(),h=n.On.newChangeBuffer({trackRemovals:!0});return(i=n,o=t,r=e,a=h,s=r.batch,c=s.keys(),u=jl.resolve(),c.forEac
1h(function(t){u=u.next(function(){return a.getEntry(o,t)}).next(function(e){var n=r.docVersions.get(t);ns(null!==n),e.version.compareTo(n)<0&&(s.applyToRemoteDocument(e,r),e.isValidDocument()&&a.addEntry(e,r.commitVersion))})}),u.next(function(){return i._n.removeMutationBatch(o,s)})).next(function(){return h.apply(t)}).next(function(){return n._n.performConsistencyCheck(t)}).next(function(){return n.Mn.pn(t,l)})})}function lf(t){var e=is(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",function(t){return e.qe.getLastRemoteSnapshotVersion(t)})}function hf(t,e){var n=is(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 a=[];e.targetChanges.forEach(function(e,r){var s,c,u,l=o.get(r);if(l){a.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 f=l.withResumeToken(h,i).withSequenceNumber(t.currentSequenceNumber);o=o.insert(r,f),s=l,u=e,ns((c=f).resumeToken.approximateByteSize()>0),(0===s.resumeToken.approximateByteSize()||c.snapshotVersion.toMicroseconds()-s.snapshotVersion.toMicroseconds()>=3e8||u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size>0)&&a.push(n.qe.updateTargetData(t,f))}}});var s=bu();if(e.documentUpdates.forEach(function(i,o){e.resolvedLimboDocuments.has(i)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(t,i))}),a.push(ff(t,r,e.documentUpdates,i,void 0).next(function(t){s=t})),!i.isEqual(ls.min())){var c=n.qe.getLastRemoteSnapshotVersion(t).next(function(e){return n.qe.setTargetsMetadata(t,t.currentSequenceNumber,i)});a.push(c)}return jl.waitFor(a).next(function(){return r.apply(t)}).next(function(){return n.Mn.En(t,s)}).next(function(){return s})}).then(function(t){return n.kn=o,t})}function ff(t,e,n,i,o){var r=Mu();return n.forEach(function(t){return r=r.add(t)}),e.getEntries(t,r).next(function(t){var r=bu();return n.forEach(function(n,a){var s=t.get(n),c=(null==o?void 0:o.get(n))||i;a.isNoDocument()&&a.version.isEqual(ls.min())?(e.removeEntry(n,c),r=r.insert(n,a)):!s.isValidDocument()||a.version.compareTo(s.version)>0||0===a.version.compareTo(s.version)&&s.hasPendingWrites?(e.addEntry(a,c),r=r.insert(n,a)):Ka("LocalStore","Ignoring outdated watch update for ",n,". Current version:",s.version," Watch version:",a.version)}),r})}function df(t,e){var n=is(t);return n.persistence.runTransaction("Get next mutation batch","readonly",function(t){return void 0===e&&(e=-1),n._n.getNextMutationBatchAfterBatchId(t,e)})}function pf(t,e){var n=is(t);return n.persistence.runTransaction("Allocate target","readwrite",function(t){var i;return n.qe.getTargetData(t,e).next(function(o){return o?jl.resolve(i=o):n.qe.allocateTargetId(t).next(function(o){return i=new eh(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 gf(t,e,n){return(0,Ln.mG)(this,void 0,void 0,function(){var i,o,r,a;return(0,Ln.Jh)(this,function(s){switch(s.label){case 0:i=is(t),o=i.kn.get(e),r=n?"readwrite":"readwrite-primary",s.label=1;case 1:return s.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:s.sent(),s.label=3;case 3:return[3,5];case 4:if(!Hl(a=s.sent()))throw a;return Ka("LocalStore","Failed to update sequence numbers for target "+e+": "+a),[3,5];case 5:return i.kn=i.kn.remove(e),i.Fn.delete(o.target),[2]}})})}function mf(t,e,n){var i=is(t),o=ls.min(),r=Mu();return i.persistence.runTransaction("Execute query","readonly",function(t){return(a=i,s=t,c=wc(e),u=is(a),l=u.Fn.get(c),void 0!==l?jl.resolve(u.kn.get(l)):u.qe.getTargetData(s,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:ls.min(),n?r:Mu())}).next(function(t){return{documents:t,Bn:r}});var a,s,c,u,l})}function vf(t,e){var n=is(t),i=is(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 yf(t){var e=is(t);return e.persistence.runTransaction("Get new document changes","readonly",function(t){return n=t,i=e.$
1n,o=is(e.On),r=bu(),a=rh(i),s=Hh(n),c=IDBKeyRange.lowerBound(a,!0),s.$t({index:Tl.readTimeIndex,range:c},function(t,e){var n=ih(o.R,e);r=r.insert(n.key,n),a=e.readTime}).next(function(){return{wn:r,readTime:ah(a)}});var n,i,o,r,a,s,c}).then(function(t){var n=t.wn;return e.$n=t.readTime,n})}function _f(t){return(0,Ln.mG)(this,void 0,void 0,function(){var e;return(0,Ln.Jh)(this,function(n){return[2,(e=is(t)).persistence.runTransaction("Synchronize last document change read time","readonly",function(t){return e=Hh(t),n=ls.min(),e.$t({index:Tl.readTimeIndex,reverse:!0},function(t,e,i){e.readTime&&(n=ah(e.readTime)),i.done()}).next(function(){return n});var e,n}).then(function(t){e.$n=t})]})})}function bf(t,e,n,i){return(0,Ln.mG)(this,void 0,void 0,function(){var o,r,a,s,c,u,l,h,f,d;return(0,Ln.Jh)(this,function(p){switch(p.label){case 0:for(o=is(t),r=Mu(),a=bu(),s=Ou(),c=0,u=n;c<u.length;c++)h=e.qn((l=u[c]).metadata.name),l.document&&(r=r.add(h)),a=a.insert(h,e.Un(l)),s=s.insert(h,e.Kn(l.metadata.readTime));return f=o.On.newChangeBuffer({trackRemovals:!0}),[4,pf(o,(g=i,wc(mc(gs.fromString("__bundle__/docs/"+g)))))];case 1:return d=p.sent(),[2,o.persistence.runTransaction("Apply bundle documents","readwrite",function(t){return ff(t,f,a,ls.min(),s).next(function(e){return f.apply(t),e}).next(function(e){return o.qe.removeMatchingKeysForTargetId(t,d.targetId).next(function(){return o.qe.addMatchingKeys(t,r,d.targetId)}).next(function(){return o.Mn.En(t,e)}).next(function(){return e})})})]}var g})})}function Cf(t,e,n){return void 0===n&&(n=Mu()),(0,Ln.mG)(this,void 0,void 0,function(){var i,o;return(0,Ln.Jh)(this,function(r){switch(r.label){case 0:return[4,pf(t,wc(fh(e.bundledQuery)))];case 1:return i=r.sent(),[2,(o=is(t)).persistence.runTransaction("Save named query","readwrite",function(t){var r=Gu(e.readTime);if(i.snapshotVersion.compareTo(r)>=0)return o.Ke.saveNamedQuery(t,e);var a=i.withResumeToken(_s.EMPTY_BYTE_STRING,r);return o.kn=o.kn.insert(a.targetId,a),o.qe.updateTargetData(t,a).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 xf=function(){function t(t){this.R=t,this.Qn=new Map,this.jn=new Map}return t.prototype.getBundleMetadata=function(t,e){return jl.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:Gu(n.createTime)}),jl.resolve()},t.prototype.getNamedQuery=function(t,e){return jl.resolve(this.jn.get(e))},t.prototype.saveNamedQuery=function(t,e){return this.jn.set(e.name,{name:(n=e).name,query:fh(n.bundledQuery),readTime:Gu(n.readTime)}),jl.resolve();var n},t}(),wf=function(){function t(){this.Wn=new vu(Of.Gn),this.zn=new vu(Of.Hn)}return t.prototype.isEmpty=function(){return this.Wn.isEmpty()},t.prototype.addReference=function(t,e){var n=new Of(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 Of(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 Es(new gs([])),i=new Of(n,t),o=new Of(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 Es(new gs([])),n=new Of(e,t),i=new Of(e,t+1),o=Mu();return this.zn.forEachInRange([n,i],function(t){o=o.add(t.key)}),o},t.prototype.containsKey=function(t){var e=new Of(t,0),n=this.Wn.firstAfterOrEqual(e);return null!==n&&t.isEqual(n.key)},t}(),Of=function(){function t(t,e){this.key=t,this.ns=e}return t.Gn=function(t,e){return Es.comparator(t.key,e.key)||as(t.ns,e.ns)},t.Hn=function(t,e){return as(t.ns,e.ns)||Es.comparator(t.key,e.key)},t}(),Pf=function(){function t(t,e){this.Ut=t,this.referenceDelegate=e,this._n=[],this.ss=1,this.rs=new vu(Of.Gn)}return t.prototype.checkEmpty=function(t){return jl.resolve(0===this._n.length)},t.prototype.addMutationBatch=function(t,e,n,i){var o=this.ss;this.ss++;var r=new Xl(o,e,n,i);this._n.push(r);for(var a=0,s=i;a<s.length;a++){var c=s[a];this.rs=this.rs.add(new Of(c.key,o)),this.Ut.addToCollectionParentIndex(t,c.key.path.popLast())}return jl.resolve(r)},t.prototype.lookupMutationBatch=function(t,e){return jl.resolve(this.os(e))},t.prototype.getNextMutationBatchAfterBatchId=function(t,e){var n=this.cs(e+1),i=n<0?0:n;return jl.resolve(this._n.length>i?this._n[i]:null)},t.prototype.getHighestUnacknowledgedBatchId=function(){return jl.resolve(0===this._n.length?-1:this.ss-1)},t.prototype.getAllMutationBatches=function(t){return jl.resolve(this._n.slice())},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,i=new Of(e,0),o=new Of(e,Number.POSITIVE_INFINITY),r=[];
1return this.rs.forEachInRange([i,o],function(t){var e=n.os(t.ns);r.push(e)}),jl.resolve(r)},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,i=new vu(as);return e.forEach(function(t){var e=new Of(t,0),o=new Of(t,Number.POSITIVE_INFINITY);n.rs.forEachInRange([e,o],function(t){i=i.add(t.ns)})}),jl.resolve(this.us(i))},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=e.path,i=n.length+1,o=n;Es.isDocumentKey(o)||(o=o.child(""));var r=new Of(new Es(o),0),a=new vu(as);return this.rs.forEachWhile(function(t){var e=t.key.path;return!!n.isPrefixOf(e)&&(e.length===i&&(a=a.add(t.ns)),!0)},r),jl.resolve(this.us(a))},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;ns(0===this.hs(e.batchId,"removed")),this._n.shift();var i=this.rs;return jl.forEach(e.mutations,function(o){var r=new Of(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 Of(e,0),i=this.rs.firstAfterOrEqual(n);return jl.resolve(e.isEqual(i&&i.key))},t.prototype.performConsistencyCheck=function(t){return jl.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}(),Mf=function(){function t(t,e){this.Ut=t,this.ls=e,this.docs=new pu(Es.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,a=this.ls(e);return this.docs=this.docs.insert(i,{document:e.clone(),size:a,readTime:n}),this.size+=a-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 jl.resolve(n?n.document.clone():Ys.newInvalidDocument(e))},t.prototype.getEntries=function(t,e){var n=this,i=bu();return e.forEach(function(t){var e=n.docs.get(t);i=i.insert(t,e?e.document.clone():Ys.newInvalidDocument(t))}),jl.resolve(i)},t.prototype.getDocumentsMatchingQuery=function(t,e,n){for(var i=bu(),o=new Es(e.path.child("")),r=this.docs.getIteratorFrom(o);r.hasNext();){var a=r.getNext(),s=a.value,c=s.document,u=s.readTime;if(!e.path.isPrefixOf(a.key.path))break;u.compareTo(n)<=0||Tc(e,c)&&(i=i.insert(c.key,c.clone()))}return jl.resolve(i)},t.prototype.fs=function(t,e){return jl.forEach(this.docs,function(t){return e(t)})},t.prototype.newChangeBuffer=function(t){return new kf(this)},t.prototype.getSize=function(t){return jl.resolve(this.size)},t}(),kf=function(t){function e(e){var n=this;return(n=t.call(this)||this).Ie=e,n}return(0,Ln.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)}),jl.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}(Vh),Tf=function(){function t(t){this.persistence=t,this.ds=new jh(function(t){return Ws(t)},Ks),this.lastRemoteSnapshotVersion=ls.min(),this.highestTargetId=0,this.ws=0,this._s=new wf,this.targetCount=0,this.ys=Sh.Jt()}return t.prototype.forEachTarget=function(t,e){return this.ds.forEach(function(t,n){return e(n)}),jl.resolve()},t.prototype.getLastRemoteSnapshotVersion=function(t){return jl.resolve(this.lastRemoteSnapshotVersion)},t.prototype.getHighestSequenceNumber=function(t){return jl.resolve(this.ws)},t.prototype.allocateTargetId=function(t){return this.highestTargetId=this.ys.next(),jl.resolve(this.highestTargetId)},t.prototype.setTargetsMetadata=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.ws&&(this.ws=e),jl.resolve()},t.prototype.te=function(t){this.ds.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.ys=new Sh(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,jl.resolve()},t.prototype.updateTargetData=function(t,e){return this.te(e),jl.resolve()},t.prototype.removeTargetData=function(t,e){return this.ds.delete(e.target),this._s.Zn(e.targetId),this.targetCount-=1,jl.resolve()},t.prototype.removeTargets=function(t,e,n){var i=this,o=0,r=[];return this.ds.forEach(function(a,s){s.sequenceNumber<=e&&null===n.get(s.targetId)&&(i.ds.delete(a),r.push(i.removeMatchingKeysForTargetId(t,s.targetId)),o++)}),jl.waitFor(r).next(function(){return o})},t.prototype.getTargetCount=function(t){return jl.resolve(this.targetCount)},t.prototype.getTargetData=function(t,e){var n=this.ds.get(e)||null;return jl.resolve(n)},t.prototype.addMatchingKeys=function(t,e,n){return this._s.Jn(e,n),jl.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))}),jl.waitFor(o)},t.prototype.removeMatchingKeysForTargetId=function(t,e){return this._s.Zn(e),jl.resolve()},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=this._s.es(e);return jl.resolve(n)},t.prototype.containsKey=function(t,e){return jl.resolve(this._s.containsKey(e))},t}(),Sf=function(){function t(t,e){var n=this;this.gs={},this.Ne=new Ha(0),this.xe=!1,this.xe=!0,this.referenceDelegate=t(this),this.qe=new Tf(this),this.Ut=new mh,this.Ue=new Mf(this.Ut,function(t){return n.referenceDelegate.ps(t)}),this.R=new nh(e),this.Ke=new xf(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 Pf(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;Ka("MemoryPersistence","Starting transaction:",t);var o=new Ef(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 jl.or(Object.values(this.gs).map(function(n){return function(){return n.containsKey(t,e)}}))},t}(),Ef=function(t){function e(e){var n=this;return(n=t.call(this)||this).currentSequenceNumber=e,n}return(0,Ln.ZT)(e,t),e}(Zl),Af=function(){function t(t){this.persistence=t,this.As=new wf,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 es()}
1,enumerable:!1,configurable:!0}),t.prototype.addReference=function(t,e,n){return this.As.addReference(n,e),this.vs.delete(n.toString()),jl.resolve()},t.prototype.removeReference=function(t,e,n){return this.As.removeReference(n,e),this.vs.add(n.toString()),jl.resolve()},t.prototype.markPotentiallyOrphaned=function(t,e){return this.vs.add(e.toString()),jl.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 jl.forEach(this.vs,function(i){var o=Es.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 jl.or([function(){return jl.resolve(n.As.containsKey(e))},function(){return n.persistence.getTargetCache().containsKey(t,e)},function(){return n.persistence.Is(t,e)}])},t}(),If=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 Rf(t,e){return"firestore_clients_"+t+"_"+e}function Nf(t,e,n){var i="firestore_mutations_"+t+"_"+n;return e.isAuthenticated()&&(i+="_"+e.uid),i}function Lf(t,e){return"firestore_targets_"+t+"_"+e}If.UNAUTHENTICATED=new If(null),If.GOOGLE_CREDENTIALS=new If("google-credentials-uid"),If.FIRST_PARTY=new If("first-party-uid"),If.MOCK_USER=new If("mock-user");var Df=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),a="object"==typeof r&&-1!==["pending","acknowledged","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error);return a&&r.error&&(a="string"==typeof r.error.message&&"string"==typeof r.error.code)&&(o=new Qa(r.error.code,r.error.message)),a?new t(e,n,r.state,o):($a("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}(),Ff=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 Qa(o.error.code,o.error.message)),r?new t(e,o.state,i):($a("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}(),Uf=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=Tu(),a=0;o&&a<i.activeTargetIds.length;++a)o=Ss(i.activeTargetIds[a]),r=r.add(i.activeTargetIds[a]);return o?new t(e,r):($a("SharedClientState","Failed to parse client data for instance '"+e+"': "+n),null)},t}(),Zf=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):($a("SharedClientState","Failed to parse online state: "+e),null)},t}(),qf=function(){function t(){this.activeTargetIds=Tu()}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}(),jf=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 pu(as),this.started=!1,this.$s=[];var r=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=o,this.Os=Rf(this.persistenceKey,this.Ns),this.Ms="firestore_sequence_number_"+this.persistenceKey,this.Fs=this.Fs.insert(this.Ns,new qf),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,Ln.mG)(this,void 0,void 0,function(){var t,e,n,i,o,r,a,s,c,u,l=this;return(0,Ln.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;
1e++)(i=n[e])!==this.Ns&&(o=this.getItem(Rf(this.persistenceKey,i)))&&(r=Uf.Vs(i,o))&&(this.Fs=this.Fs.insert(r.clientId,r));for(this.Qs(),(a=this.storage.getItem(this.Us))&&(s=this.js(a))&&this.Ws(s),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(Lf(this.persistenceKey,t));if(n){var i=Ff.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(Lf(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 Ka("SharedClientState","READ",t,e),e},t.prototype.setItem=function(t,e){Ka("SharedClientState","SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){Ka("SharedClientState","REMOVE",t),this.storage.removeItem(t)},t.prototype.ks=function(t){var e=this,n=t;if(n.storageArea===this.storage){if(Ka("SharedClientState","EVENT",n.key,n.newValue),n.key===this.Os)return void $a("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Se.enqueueRetryable(function(){return(0,Ln.mG)(e,void 0,void 0,function(){var t,e,i,o,r,a;return(0,Ln.Jh)(this,function(s){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)(a=function(t){var e=Ha.o;if(null!=t)try{var n=JSON.parse(t);ns("number"==typeof n),e=n}catch(i){$a("SharedClientState","Failed to read sequence number from WebStorage",i)}return e}(n.newValue))!==Ha.o&&this.sequenceNumberHandler(a);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 Df(this.currentUser,t,e,n),o=Nf(this.persistenceKey,this.currentUser,t);this.setItem(o,i.Ss())},t.prototype.Hs=function(t){var e=Nf(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=Lf(this.persistenceKey,t),o=new Ff(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 Uf.Vs(n,e)},t.prototype.si=function(t,e){var n=this.Bs.exec(t),i=Number(n[1]);return Df.Vs(new If(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 Ff.Vs(i,e)},t.prototype.js=function(t){return Zf.Vs(t)},t.prototype.ii=function(t){return(0,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.Jh)(this,function(e){return t.user.uid===this.currentUser.uid?[2,this.syncEngine.ui(t.batchId,t.state,t.error)]:(Ka("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),a=[],s=[];return r.forEach(function(t){o.has(t)||a.push(t)}),o.forEach(function(t){r.has(t)||s.push(t)}),this.syncEngine.hi(a,s).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=Tu();return t.forEach(function(t,n){e=e.unionWith(n.activeTargetIds)}),e},t}(),Vf=function(){function t(){this.li=new qf,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 qf,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}(),zf=function(){function t(){}return t.prototype.di=function(t){},t.prototype.shutdown=function(){},t}(),Gf=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(){Ka("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var t=0,e=this.gi;t<e.length;t++)(0,e[t])(0)},t.prototype.yi=function(){Ka("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}(),Bf={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},Hf=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}(),Yf=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,Ln.ZT)(e,t),e.prototype.Fi=function(t,e,n,i){return new Promise(function(o,r){var a=new Ba;a.listenOnce(ja.COMPLETE,function(){try{switch(a.getLastErrorCode()){case qa.NO_ERROR:var e=a.getResponseJson();Ka("Connection","XHR received:",JSON.stringify(e)),o(e);break;case qa.TIMEOUT:Ka("Connection",'RPC "'+t+'" timed out'),r(new Qa(Ya.DEADLINE_EXCEEDED,"Request time out"));break;case qa.HTTP_ERROR:var n=a.getStatus();if(Ka("Connection",'RPC "'+t+'" failed with status:',n,"response text:",a.getResponseText()),n>0){var i=a.getResponseJson().error;if(i&&i.status&&i.message){var s=(c=i.status.toLowerCase().replace(/_/g,"-"),Object.values(Ya).indexOf(c)>=0?c:Ya.UNKNOWN);r(new Qa(s,i.message))}else r(new Qa(Ya.UNKNOWN,"Server responded with status "+a.getStatus()))}else r(new Qa(Ya.UNAVAILABLE,"Connection failed."));break;default:es()}}finally{Ka("Connection",'RPC "'+t+'" completed.')}var c});var s=JSON.stringify(i);a.send(e,"POST",s,n,15)})},e.prototype.Oi=function(t,e){var n=[this.Di,"/","google.firestore.v1.Firestore","/",t,"/channel"],i=new La,o=So(),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 za({})),this.ki(r.initMessageHeaders,e),(0,Dn.uI)()||(0,Dn.b$)()||(0,Dn.d)()||(0,Dn.w1)()||(0,Dn.Mn)()||(0,Dn.ru)()||(r.httpHeadersOverwriteParam="$httpHeaders");var a=n.join("");Ka("Connection","Creating WebChannel: "+a,r);var s=i.createWebChannel(a,r),c=!1,u=!1,l=new Hf({Ei:function(t){u?Ka("Connection","Not sending because WebChannel is closed:",t):(c||(Ka("Connection","Opening WebChannel transport."),s.open(),c=!0),Ka("Connection","WebChannel sending:",t),s.send(t))},Ti:function(){return s.close()}}),h=function(t,e,n){t.listen(e,function(t){try{n(t)}catch(e){setTimeout(function(){throw e},0)}})};return h(s,Ga.EventType.OPEN,function(){u||Ka("Connection","WebChannel transport opened.")}),h(s,Ga.EventType.CLOSE,function(){u||(u=!0,Ka("Connection","WebChannel transport closed"),l.Vi())}),h(s,Ga.EventType.ERROR,function(t){u||(u=!0,Xa("Connection","WebChannel transport errored:",t),l.Vi(new Qa(Ya.UNAVAILABLE,"The operation could not be completed")))}),h(s,Ga.EventType.MESSAGE,function(t){var e;if(!u){var n=t.data[0];ns(!!n);var i=n.error||(null===(e=n[0])||void 0===e?void 0:e.error);if(i){Ka("Connection","WebChannel received error:",i);var o=i.status,r=function(t){var e=su[t];if(void 0!==e)return du(e)}(o),a=i.message;void 0===r&&(r=Ya.INTERNAL,a="Unknown error status: "+o+" with message "+i.message),u=!0,l.Vi(new Qa(r,a)),s.close()}else Ka("Connection","WebChannel received:",n),l.Si(n)}}),h(o,Va.STAT_EVENT,function(t){10===t.stat?Ka("Connection","Detected buffering proxy"):11===t.stat&&Ka("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);Ka("RestConnection","Sending: ",o,n);var r={};return this.ki(r,i),this.Fi(t,o,r,n).then(function(t){return Ka("RestConnection","Received: ",t),t},function(e){throw Xa("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+":"+Bf[t]},t}());function Qf(){return"undefined"!=typeof window?window:null}function Jf(){return"undefined"!=typeof document?document:null}function Wf(t){return new qu(t,!0)}var Kf=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&&Ka("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}(),$f=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 Kf(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,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.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,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.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,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.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===Ya.RESOURCE_EXHAUSTED?($a(e.toString()),$a("Using maximum backoff delay to prevent overloading the backend."),this.Zi.Qi()):e&&e.code===Ya.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 Qa(Ya.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,Ln.mG)(t,void 0,void 0,function(){return(0,Ln.Jh)(this,function(t){return this.state=0,this.start(),[2]})})})},t.prototype.dr=function(t){return Ka("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():(Ka("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())})}},t}(),Xf=function(t){function e(e,n,i,o,r){var a=this;return(a=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,i,r)||this).R=o,a}return(0,Ln.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:es(),r=e.targetChange.targetIds||[],a=function(t,e){return t.I?(ns(void 0===e||"string"==typeof e),_s.fromBase64String(e||"")):(ns(void 0===e||e instanceof Uint8Array),_s.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),s=(c=e.targetChange.cause)&&function(t){var e=void 0===t.code?Ya.UNKNOWN:du(t.code);return new Qa(e,t.message||"")}(c);n=new Ru(o,r,a,s||null)}else if("documentChange"in e){r=Qu(t,(o=e.documentChange).document.name),a=Gu(o.document.updateTime);var c=new Bs({mapValue:{fields:o.document.fields}}),u=(s=Ys.newFoundDocument(r,a,c),o.targetIds||[]);n=new Au(u,o.removedTargetIds||[],s.key,s)}else if("documentDelete"in e)r=Qu(t,(o=e.documentDelete).document),a=o.readTime?Gu(o.readTime):ls.min(),c=Ys.newNoDocument(r,a),n=new Au([],s=o.removedTargetIds||[],c.key,c);else if("documentRemove"in e)r=Qu(t,(o=e.documentRemove).document),n=new Au([],a=o.removedTargetIds||[],r,null);else{if(!("filter"in e))return es();var l=e.filter;r=new hu(o=l.count||0),n=new Iu(a=l.targetId,r)}return n}(this.R,t),n=function(t){if(!("targetChange"in t))return ls.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?ls.min():e.readTime?Gu(e.readTime):ls.min()}(t);return this.listener._r(e,n)},e.prototype.mr=function(t){var e,n,i,o,r={};r.database=Ku(this.R),r.addTarget=(e=this.R,(i=$s(o=(n=t).target)?{documents:il(e,o)}:{query:ol(e,o)}).targetId=n.targetId,n.resumeToken.approximateByteSize()>0?i.resumeToken=Vu(e,n.resumeToken):n.snapshotVersion.compareTo(ls.min())>0&&(i.readTime=ju(e,n.snapshotVersion.toTimestamp())),i);var a=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 es()}}(0,e.purpose);return null==n?null:{"goog-listen-tags":n}}(0,t);a&&(r.labels=a),this.cr(r)},e.prototype.yr=function(t){var e={};e.database=Ku(this.R),e.removeTarget=t,this.cr(e)},e}($f),td=function(t){function e(e,n,i,o,r){var a=this;return(a=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,i,r)||this).R=o,a.gr=!1,a}return(0,Ln.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(ns(!!t.streamToken),this.lastStreamToken=t.streamToken,this.gr){this.Zi.reset();var e=(o=t.commitTime,(i=t.writeResults)&&i.length>0?(ns(void 0!==o),i.map(function(t){return n=o,(i=Gu((e=t).updateTime?e.updateTime:n)).isEqual(ls.min())&&(i=Gu(n)),new Yc(i,e.transformResults||[]);var e,n,i})):[]),n=Gu(t.commitTime);return this.listener.Tr(n,e)}var i,o;return ns(!t.writeResults||0===t.writeResults.length),this.gr=!0,this.listener.Ir()},e.prototype.Ar=function(){var t={};t.database=Ku(this.R),this.cr(t)},e.prototype.Er=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map(function(t){return el(e.R,t)})};this.cr(n)},e}($f),ed=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,Ln.ZT)(e,t),e.prototype.br=function(){if(this.Rr)throw new Qa(Ya.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===Ya.UNAUTHENTICATED&&i.credentials.invalidateToken(),t):new Qa(Ya.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===Ya.UNAUTHENTICATED&&i.credentials.invalidateToken(),t):new Qa(Ya.UNKNOWN,t.toString())})},e.prototype.terminate=function(){this.Rr=!0},e}(function(){}),nd=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?($a(e),this.Vr=!1):Ka("OnlineStateTracker",e)},t.prototype.kr=function(){null!==this.Pr&&(this.Pr.cancel(),this.Pr=null)},t}(),id=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,Ln.mG)(r,void 0,void 0,function(){return(0,Ln.Jh)(this,function(t){switch(t.label){case 0:return fd(this)?(Ka("RemoteStore","Restarting streams for network reachability change."),[4,function(t){return(0,Ln.mG)(this,void 0,void 0,function(){var e;return(0,Ln.Jh)(this,function(n){switch(n.label){case 0:return(e=is(t)).Or.add(4),[4,rd(e)];case 1:return n.sent(),e.Br.set("Unknown"),e.Or.delete(4),[4,od(e)];case 2:return n.sent(),[2]}})})}(this)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})})}),this.Br=new nd(n,i)};function od(t){return(0,Ln.mG)(this,void 0,void 0,function(){var e,n;return(0,Ln.Jh)(this,function(i){switch(i.label){case 0:if(!fd(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 rd(t){return(0,Ln.mG)(this,void 0,void 0,function(){var e,n;return(0,Ln.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 ad(t,e){var n=is(t);n.$r.has(e.targetId)||(n.$r.set(e.targetId,e),hd(n)?ld(n):kd(n).er()&&cd(n,e))}function sd(t,e){var n=is(t),i=kd(n);n.$r.delete(e),i.er()&&ud(n,e),0===n.$r.size&&(i.er()?i.ir():fd(n)&&n.Br.set("Unknown"))}function cd(t,e){t.qr.U(e.targetId),kd(t).mr(e)}function ud(t,e){t.qr.U(e),kd(t).yr(e)}function ld(t){t.qr=new Lu({getRemoteKeysForTarget:function(e){return t.remoteSyncer.getRemoteKeysForTarget(e)},lt:function(e){return t.$r.get(e)||null}}),kd(t).start(),t.Br.Sr()}function hd(t){return fd(t)&&!kd(t).tr()&&t.$r.size>0}function fd(t){return 0===is(t).Or.size}function dd(t){t.qr=void 0}function pd(t){return(0,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.Jh)(this,function(e){return t.$r.forEach(function(e,n){cd(t,e)}),[2]})})}function gd(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.Jh)(this,function(n){return dd(t),hd(t)?(t.Br.Nr(e),ld(t)):t.Br.set("Unknown"),[2]})})}function md(t,e,n){return(0,Ln.mG)(this,void 0,void 0,function(){var i,o,r;return(0,Ln.Jh)(this,function(a){switch(a.label){case 0:if(t.Br.set("Online"),!(e instanceof Ru&&2===e.state&&e.cause))return[3,6];a.label=1;case 1:return a.trys.push([1,3,,5]),[4,function(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i,o,r;return(0,Ln.Jh)(this,function(a){switch(a.label){case 0:n=e.cause,i=0,o=e.targetIds,a.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:a.sent(),t.$r.delete(r),t.qr.removeTarget(r),a.label=3;case 3:a.label=4;case 4:return i++,[3,1];case 5:return[2]}})})}(t,e)];case 2:return a.sent(),[3,5];case 3:return i=a.sent(),Ka("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),i),[4,vd(t,i)];case 4:return a.sent(),[3,5];case 5:return[3,13];case 6:if(e instanceof Au?t.qr.X(e):e instanceof Iu?t.qr.rt(e):t.qr.et(e),n.isEqual(ls.min()))return[3,13];a.label=7;case 7:return a.trys.push([7,11,,13]),[4,lf(t.localStore)];case 8:return o=a.sent(),n.compareTo(o)>
1=0?[4,(s=t,c=n,u=s.qr.ut(c),u.targetChanges.forEach(function(t,e){if(t.resumeToken.approximateByteSize()>0){var n=s.$r.get(e);n&&s.$r.set(e,n.withResumeToken(t.resumeToken,c))}}),u.targetMismatches.forEach(function(t){var e=s.$r.get(t);if(e){s.$r.set(t,e.withResumeToken(_s.EMPTY_BYTE_STRING,e.snapshotVersion)),ud(s,t);var n=new eh(e.target,t,1,e.sequenceNumber);cd(s,n)}}),s.remoteSyncer.applyRemoteEvent(u))]:[3,10];case 9:a.sent(),a.label=10;case 10:return[3,13];case 11:return Ka("RemoteStore","Failed to raise snapshot:",r=a.sent()),[4,vd(t,r)];case 12:return a.sent(),[3,13];case 13:return[2]}var s,c,u})})}function vd(t,e,n){return(0,Ln.mG)(this,void 0,void 0,function(){var i=this;return(0,Ln.Jh)(this,function(o){switch(o.label){case 0:if(!Hl(e))throw e;return t.Or.add(1),[4,rd(t)];case 1:return o.sent(),t.Br.set("Offline"),n||(n=function(){return lf(t.localStore)}),t.asyncQueue.enqueueRetryable(function(){return(0,Ln.mG)(i,void 0,void 0,function(){return(0,Ln.Jh)(this,function(e){switch(e.label){case 0:return Ka("RemoteStore","Retrying IndexedDB access"),[4,n()];case 1:return e.sent(),t.Or.delete(1),[4,od(t)];case 2:return e.sent(),[2]}})})}),[2]}})})}function yd(t,e){return e().catch(function(n){return vd(t,n,e)})}function _d(t){return(0,Ln.mG)(this,void 0,void 0,function(){var e,n,i,o,r;return(0,Ln.Jh)(this,function(a){switch(a.label){case 0:e=is(t),n=Td(e),i=e.Fr.length>0?e.Fr[e.Fr.length-1].batchId:-1,a.label=1;case 1:if(!(fd(s=e)&&s.Fr.length<10))return[3,7];a.label=2;case 2:return a.trys.push([2,4,,6]),[4,df(e.localStore,i)];case 3:return null===(o=a.sent())?(0===e.Fr.length&&n.ir(),[3,7]):(i=o.batchId,function(t,e){t.Fr.push(e);var n=Td(t);n.er()&&n.pr&&n.Er(e.mutations)}(e,o),[3,6]);case 4:return r=a.sent(),[4,vd(e,r)];case 5:return a.sent(),[3,6];case 6:return[3,1];case 7:return bd(e)&&Cd(e),[2]}var s})})}function bd(t){return fd(t)&&!Td(t).tr()&&t.Fr.length>0}function Cd(t){Td(t).start()}function xd(t){return(0,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.Jh)(this,function(e){return Td(t).Ar(),[2]})})}function wd(t){return(0,Ln.mG)(this,void 0,void 0,function(){var e,n,i;return(0,Ln.Jh)(this,function(o){for(e=Td(t),n=0,i=t.Fr;n<i.length;n++)e.Er(i[n].mutations);return[2]})})}function Od(t,e,n){return(0,Ln.mG)(this,void 0,void 0,function(){var i,o;return(0,Ln.Jh)(this,function(r){switch(r.label){case 0:return i=t.Fr.shift(),o=th.from(i,e,n),[4,yd(t,function(){return t.remoteSyncer.applySuccessfulWrite(o)})];case 1:return r.sent(),[4,_d(t)];case 2:return r.sent(),[2]}})})}function Pd(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.Jh)(this,function(n){switch(n.label){case 0:return e&&Td(t).pr?[4,function(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i;return(0,Ln.Jh)(this,function(o){switch(o.label){case 0:return fu(i=e.code)&&i!==Ya.ABORTED?(n=t.Fr.shift(),Td(t).sr(),[4,yd(t,function(){return t.remoteSyncer.rejectFailedWrite(n.batchId,e)})]):[3,3];case 1:return o.sent(),[4,_d(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 bd(t)&&Cd(t),[2]}})})}function Md(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n;return(0,Ln.Jh)(this,function(i){switch(i.label){case 0:return n=is(t),e?(n.Or.delete(2),[4,od(n)]):[3,2];case 1:return i.sent(),[3,5];case 2:return e?[3,4]:(n.Or.add(2),[4,rd(n)]);case 3:i.sent(),n.Br.set("Unknown"),i.label=4;case 4:i.label=5;case 5:return[2]}})})}function kd(t){var e,n,i,o,r=this;return t.Ur||(t.Ur=(e=t.datastore,n=t.asyncQueue,i={Ii:pd.bind(null,t),Ri:gd.bind(null,t),_r:md.bind(null,t)},(o=is(e)).br(),new Xf(n,o.Hi,o.credentials,o.R,i)),t.Mr.push(function(e){return(0,Ln.mG)(r,void 0,void 0,function(){return(0,Ln.Jh)(this,function(n){switch(n.label){case 0:return e?(t.Ur.sr(),hd(t)?ld(t):t.Br.set("Unknown"),[3,3]):[3,1];case 1:return[4,t.Ur.stop()];case 2:n.sent(),dd(t),n.label=3;case 3:return[2]}})})})),t.Ur}function Td(t){var e,n,i,o,r=this;return t.Kr||(t.Kr=(e=t.datastore,n=t.asyncQueue,i={Ii:xd.bind(null,t),Ri:Pd.bind(null,t),Ir:wd.bind(null,t),Tr:Od.bind(null,t)},(o=is(e)).br(),new td(n,o.Hi,o.credentials,o.R,i)),t.Mr.push(function(e){return(0,Ln.mG)(r,void 0,void 0,function(){return(0,Ln.Jh)(this,function(n){switch(n.label){case 0:return e?(t.Kr.sr(),[4,_d(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&&(Ka("RemoteStore","Stopping write stream with "+t.Fr.length+" pending writes"),t.Fr=[]),n.label=4;case 4:return[2]}})})})),t.Kr}var Sd=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 ql,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 a=new t(e,n,Date.now()+i,o,r);return a.start(i),a},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 Qa(Ya.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 Ed(t,e){if($a("AsyncQueue",e+": "+t),Hl(t))return new Qa(Ya.UNAVAILABLE,e+": "+t);throw t}var Ad=function(){function t(t){this.comparator=t?function(e,n){return t(e,n)||Es.comparator(e.key,n.key)}:function(t,e){return Es.comparator(t.key,e.key)},this.keyedMap=xu(),this.sortedSet=new pu(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}(),Id=function(){function t(){this.Qr=new pu(Es.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}):es():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}(),Rd=function(){function t(t,e,n,i,o,r,a,s){this.query=t,this.docs=e,this.oldDocs=n,this.docChanges=i,this.mutatedKeys=o,this.fromCache=r,this.syncStateChanged=a,this.excludesMetadataChanges=s}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,Ad.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)&&Pc(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}(),Nd=function(){this.Wr=void 0,this.listeners=[]},Ld=function(){this.queries=new jh(function(t){return Mc(t)},Pc),this.onlineState="Unknown",this.Gr=new Set};function Dd(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i,o,r,a,s,c;return(0,Ln.Jh)(this,function(u){switch(u.label){case 0:if(n=is(t),o=!1,(r=n.queries.get(i=e.query))||(o=!0,r=new Nd),!o)return[3,4];u.label=1;case 1:return u.trys.push([1,3,,4]),a=r,[4,n.onListen(i)];case 2:return a.Wr=u.sent(),[3,4];case 3:return s=u.sent(),c=Ed(s,"Initialization of query '"+kc(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)&&qd(n),[2]}})})}function Fd(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i,o,r,a;return(0,Ln.Jh)(this,function(s){return n=is(t),o=!1,(r=n.queries.get(i=e.query))&&
1(a=r.listeners.indexOf(e))>=0&&(r.listeners.splice(a,1),o=0===r.listeners.length),o?[2,(n.queries.delete(i),n.onUnlisten(i))]:[2]})})}function Ud(t,e){for(var n=is(t),i=!1,o=0,r=e;o<r.length;o++){var a=r[o],s=n.queries.get(a.query);if(s){for(var c=0,u=s.listeners;c<u.length;c++)u[c].Hr(a)&&(i=!0);s.Wr=a}}i&&qd(n)}function Zd(t,e,n){var i=is(t),o=i.queries.get(e);if(o)for(var r=0,a=o.listeners;r<a.length;r++)a[r].onError(n);i.queries.delete(e)}function qd(t){t.Gr.forEach(function(t){t.next()})}var jd=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 Rd(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=Rd.fromInitialDocuments(t.query,t.docs,t.mutatedKeys,t.fromCache),this.Yr=!0,this.Jr.next(t)},t}(),Vd=function(){function t(t,e){this.payload=t,this.byteLength=e}return t.prototype.io=function(){return"metadata"in this.payload},t}(),zd=function(){function t(t){this.R=t}return t.prototype.qn=function(t){return Qu(this.R,t)},t.prototype.Un=function(t){return t.metadata.exists?tl(this.R,t.document,!1):Ys.newNoDocument(this.qn(t.metadata.name),this.Kn(t.metadata.readTime))},t.prototype.Kn=function(t){return Gu(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 zd(this.R),i=0,o=t;i<o.length;i++){var r=o[i];if(r.metadata.queries)for(var a=n.qn(r.metadata.name),s=0,c=r.metadata.queries;s<c.length;s++){var u=c[s],l=(e.get(u)||Mu()).add(a);e.set(u,l)}}return e},t.prototype.complete=function(){return(0,Ln.mG)(this,void 0,void 0,function(){var t,e,n,i,o;return(0,Ln.Jh)(this,function(r){switch(r.label){case 0:return[4,bf(this.localStore,new zd(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,Cf(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 ef(Object.assign({},this.progress),t))]}})})}}();var Gd=function(t){this.key=t},Bd=function(t){this.key=t},Hd=function(){function t(t,e){this.query=t,this.uo=e,this.ao=null,this.current=!1,this.ho=Mu(),this.mutatedKeys=Mu(),this.lo=Sc(t),this.fo=new Ad(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 Id,o=e?e.fo:this.fo,r=e?e.mutatedKeys:this.mutatedKeys,a=o,s=!1,c=vc(this.query)&&o.size===this.query.limit?o.last():null,u=yc(this.query)&&o.size===this.query.limit?o.first():null;if(t.inorderTraversal(function(t,e){var l=o.get(t),h=Tc(n.query,e)?e:null,f=!!l&&n.mutatedKeys.has(l.key),d=!!h&&(h.hasLocalMutations||n.mutatedKeys.has(h.key)&&h.hasCommittedMutations),p=!1;l&&h?l.data.isEqual(h.data)?f!==d&&(i.track({type:3,doc:h}),p=!0):n.yo(l,h)||(i.track({type:2,doc:h}),p=!0,(c&&n.lo(h,c)>0||u&&n.lo(h,u)<0)&&(s=!0)):!l&&h?(i.track({type:0,doc:h}),p=!0):l&&!h&&(i.track({type:1,doc:l}),p=!0,(c||u)&&(s=!0)),p&&(h?(a=a.add(h),r=d?r.add(t):r.delete(t)):(a=a.delete(t),r=r.delete(t)))}),vc(this.query)||yc(this.query))for(;a.size>this.query.limit;){var l=vc(this.query)?a.last():a.first();a=a.delete(l.key),r=r.delete(l.key),i.track({type:1,doc:l})}return{fo:a,mo:i,Nn:s,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 es()}})(t.type)-o(n)||i.lo(t.doc,e.doc);var n,o}),this.po(n);var a=e?this.Eo():[],s=0===this.ho.size&&this.current?1:0,c=s!==this.ao;return this.ao=s,0!==r.length||c?{snapshot:new Rd(this.query,t.fo,o,r,t.mutatedKeys,0===s,c,!1),To:a}:{To:a}},t.prototype.zr=function(t){return this.current&&"Offline"===t?(this.current=!1,this.applyChanges({fo:this.fo,mo:new Id,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=Mu(),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 Bd(e))}),this.ho.forEach(function(t){e.has(t)||n.push(new Gd(t))}),n},t.prototype.Ao=function(t){this.uo=t.Bn,this.ho=Mu();var e=this._o(t.documents);return this.applyChanges(e,!0)},t.prototype.Ro=function(){return Rd.fromInitialDocuments(this.query,this.fo,this.mutatedKeys,0===this.ao)},t}(),Yd=function(t,e,n){this.query=t,this.targetId=e,this.view=n},Qd=function(t){this.key=t,this.bo=!1},Jd=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 jh(function(t){return Mc(t)},Pc),this.Vo=new Map,this.So=new Set,this.Do=new pu(Es.comparator),this.Co=new Map,this.No=new wf,this.xo={},this.ko=new Map,this.Fo=Sh.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 Wd(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i,o,r,a;return(0,Ln.Jh)(this,function(s){switch(s.label){case 0:return n=Pp(t),(o=n.Po.get(e))?(n.sharedClientState.addLocalQueryTarget(o.targetId),i=o.view.Ro(),[3,4]):[3,1];case 1:return[4,pf(n.localStore,wc(e))];case 2:return r=s.sent(),a=n.sharedClientState.addLocalQueryTarget(r.targetId),[4,Kd(n,e,r.targetId,"current"===a)];case 3:i=s.sent(),n.isPrimaryClient&&ad(n.remoteStore,r),s.label=4;case 4:return[2,i]}})})}function Kd(t,e,n,i){return(0,Ln.mG)(this,void 0,void 0,function(){var o,r,a,s,c,u;return(0,Ln.Jh)(this,function(l){switch(l.label){case 0:return t.Oo=function(e,n,i){return function(t,e,n,i){return(0,Ln.mG)(this,void 0,void 0,function(){var o,r,a;return(0,Ln.Jh)(this,function(s){switch(s.label){case 0:return(o=e.view._o(n)).Nn?[4,mf(t.localStore,e.query,!1).then(function(t){return e.view._o(t.documents,o)})]:[3,2];case 1:o=s.sent(),s.label=2;case 2:return r=i&&i.targetChanges.get(e.targetId),a=e.view.applyChanges(o,t.isPrimaryClient,r),[2,(lp(t,e.targetId,a.To),a.snapshot)]}})})}(t,e,n,i)},[4,mf(t.localStore,e,!0)];case 1:return o=l.sent(),r=new Hd(e,o.Bn),a=r._o(o.documents),s=Eu.createSynthesizedTargetChangeForCurrentChange(n,i&&"Offline"!==t.onlineState),c=r.applyChanges(a,t.isPrimaryClient,s),lp(t,n,c.To),u=new Yd(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 $d(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i,o;return(0,Ln.Jh)(this,function(r){switch(r.label){case 0:return n=is(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!Pc(t,e)})),void n.Po.delete(e))]:n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(i.targetId),n.sharedClientState.isActiveQueryTarget(i.targetId)?[3,2]:[4,gf(n.localStore,i.targetId,!1).then(function(){n.sharedClientState.clearQueryState(i.targetId),sd(n.remoteStore,i.targetId),cp(n,i.targetId)}).catch(Nh)]):[3,3];case 1:r.sent(),r.label=2;case 2:return[3,5];case 3:return cp(n,i.targetId),[4,gf(n.localStore,i.targetId,!0)];case 4:r.sent(),r.label=5;case 5:return[2]}})})}function Xd(t,e,n){return(0,Ln.mG)(this,void 0,void 0,function(){var i,o,r,a;return(0,Ln.Jh)(this,function(s){switch(s.label){case 0:i=Mp(t),s.label=1;case 1:return s.trys.push([1,5,,6]),[4,(c=i.localStore,u=e,h=is(c),f=us.now(),d=u.reduce(function(t,e){return t.add(e.key)},Mu()),h.persistence.runTransaction("Locally write mutations","readwrite",function(t){return h.Mn.pn(t,d).next(function(e){l=e;for(var n=[],i=0,o=u;i<o.length;i++){var r=o[i],a=Xc(r,l.get(r.key));null!=a&&n.push(new iu(r.key,a,Hs(a.value.mapValue),Qc.exists(!0)))}return h._n.addMutationBatch(t,f,n,u)})}).then(function(t){return t.applyToLocalDocumentSet(l),{batchId:t.batchId,changes:l}}))];
1case 2:return o=s.sent(),i.sharedClientState.addPendingMutation(o.batchId),function(t,e,n){var i=t.xo[t.currentUser.toKey()];i||(i=new pu(as)),i=i.insert(e,n),t.xo[t.currentUser.toKey()]=i}(i,o.batchId,n),[4,dp(i,o.changes)];case 3:return s.sent(),[4,_d(i.remoteStore)];case 4:return s.sent(),[3,6];case 5:return r=s.sent(),a=Ed(r,"Failed to persist write"),n.reject(a),[3,6];case 6:return[2]}var c,u,l,h,f,d})})}function tp(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i;return(0,Ln.Jh)(this,function(o){switch(o.label){case 0:n=is(t),o.label=1;case 1:return o.trys.push([1,4,,6]),[4,hf(n.localStore,e)];case 2:return i=o.sent(),e.targetChanges.forEach(function(t,e){var i=n.Co.get(e);i&&(ns(t.addedDocuments.size+t.modifiedDocuments.size+t.removedDocuments.size<=1),t.addedDocuments.size>0?i.bo=!0:t.modifiedDocuments.size>0?ns(i.bo):t.removedDocuments.size>0&&(ns(i.bo),i.bo=!1))}),[4,dp(n,i,e)];case 3:return o.sent(),[3,6];case 4:return[4,Nh(o.sent())];case 5:return o.sent(),[3,6];case 6:return[2]}})})}function ep(t,e,n){var i=is(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=is(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&&qd(n)}(i.eventManager,e),o.length&&i.vo._r(o),i.onlineState=e,i.isPrimaryClient&&i.sharedClientState.setOnlineState(e)}}function np(t,e,n){return(0,Ln.mG)(this,void 0,void 0,function(){var i,o,r,a,s,c;return(0,Ln.Jh)(this,function(u){switch(u.label){case 0:return(i=is(t)).sharedClientState.updateQueryState(e,"rejected",n),o=i.Co.get(e),(r=o&&o.key)?(a=(a=new pu(Es.comparator)).insert(r,Ys.newNoDocument(r,ls.min())),s=Mu().add(r),c=new Su(ls.min(),new Map,new vu(as),a,s),[4,tp(i,c)]):[3,2];case 1:return u.sent(),i.Do=i.Do.remove(r),i.Co.delete(e),fp(i),[3,4];case 2:return[4,gf(i.localStore,e,!1).then(function(){return cp(i,e,n)}).catch(Nh)];case 3:u.sent(),u.label=4;case 4:return[2]}})})}function ip(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i,o;return(0,Ln.Jh)(this,function(r){switch(r.label){case 0:n=is(t),i=e.batch.batchId,r.label=1;case 1:return r.trys.push([1,4,,6]),[4,uf(n.localStore,e)];case 2:return o=r.sent(),sp(n,i,null),ap(n,i),n.sharedClientState.updateMutationState(i,"acknowledged"),[4,dp(n,o)];case 3:return r.sent(),[3,6];case 4:return[4,Nh(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}})})}function op(t,e,n){return(0,Ln.mG)(this,void 0,void 0,function(){var i,o;return(0,Ln.Jh)(this,function(r){switch(r.label){case 0:i=is(t),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,(a=i.localStore,s=e,c=is(a),c.persistence.runTransaction("Reject batch","readwrite-primary",function(t){var e;return c._n.lookupMutationBatch(t,s).next(function(n){return ns(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(),sp(i,e,n),ap(i,e),i.sharedClientState.updateMutationState(e,"rejected",n),[4,dp(i,o)];case 3:return r.sent(),[3,6];case 4:return[4,Nh(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}var a,s,c})})}function rp(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i,o,r,a;return(0,Ln.Jh)(this,function(s){switch(s.label){case 0:fd((n=is(t)).remoteStore)||Ka("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(c=n.localStore,u=is(c),u.persistence.runTransaction("Get highest unacknowledged batch id","readonly",function(t){return u._n.getHighestUnacknowledgedBatchId(t)}))];case 2:return-1===(i=s.sent())?[2,void e.resolve()]:((o=n.ko.get(i)||[]).push(e),n.ko.set(i,o),[3,4]);case 3:return r=s.sent(),a=Ed(r,"Initialization of waitForPendingWrites() operation failed"),e.reject(a),[3,4];case 4:return[2]}var c,u})})}function ap(t,e){(t.ko.get(e)||[]).forEach(function(t){t.resolve()}),t.ko.delete(e)}function sp(t,e,n){var i=is(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 cp(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)||up(t,e)})}function up(t,e){t.So.delete(e.path.canonicalString());var n=t.Do.get(e);null!==n&&(sd(t.remoteStore,n),t.Do=t.Do.remove(e),t.Co.delete(n),fp(t))}function lp(t,e,n){for(var i=0,o=n;i<o.length;i++){var r=o[i];r instanceof Gd?(t.No.addReference(r.key,e),hp(t,r)):r instanceof Bd?(Ka("SyncEngine","Document no longer in limbo: "+r.key),t.No.removeReference(r.key,e),t.No.containsKey(r.key)||up(t,r.key)):es()}}function hp(t,e){var n=e.key,i=n.path.canonicalString();t.Do.get(n)||t.So.has(i)||(Ka("SyncEngine","New document in limbo: "+n),t.So.add(i),fp(t))}function fp(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 Es(gs.fromString(e)),i=t.Fo.next();t.Co.set(i,new Qd(n)),t.Do=t.Do.insert(n,i),ad(t.remoteStore,new eh(wc(mc(n.path)),i,2,Ha.o))}}function dp(t,e,n){return(0,Ln.mG)(this,void 0,void 0,function(){var i,o,r,a;return(0,Ln.Jh)(this,function(s){switch(s.label){case 0:return i=is(t),o=[],r=[],a=[],i.Po.isEmpty()?[3,3]:(i.Po.forEach(function(t,s){a.push(i.Oo(s,e,n).then(function(t){if(t){i.isPrimaryClient&&i.sharedClientState.updateQueryState(s.targetId,t.fromCache?"not-current":"current"),o.push(t);var e=of.Pn(s.targetId,t);r.push(e)}}))}),[4,Promise.all(a)]);case 1:return s.sent(),i.vo._r(o),[4,function(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i,o,r,a,s,c,u;return(0,Ln.Jh)(this,function(l){switch(l.label){case 0:n=is(t),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,n.persistence.runTransaction("notifyLocalViewChanges","readwrite",function(t){return jl.forEach(e,function(e){return jl.forEach(e.bn,function(i){return n.persistence.referenceDelegate.addReference(t,e.targetId,i)}).next(function(){return jl.forEach(e.vn,function(i){return n.persistence.referenceDelegate.removeReference(t,e.targetId,i)})})})})];case 2:return l.sent(),[3,4];case 3:if(!Hl(i=l.sent()))throw i;return Ka("LocalStore","Failed to update sequence numbers: "+i),[3,4];case 4:for(o=0,r=e;o<r.length;o++)s=(a=r[o]).targetId,a.fromCache||(c=n.kn.get(s),u=c.withLastLimboFreeSnapshotVersion(c.snapshotVersion),n.kn=n.kn.insert(s,u));return[2]}})})}(i.localStore,r)];case 2:s.sent(),s.label=3;case 3:return[2]}})})}function pp(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i;return(0,Ln.Jh)(this,function(o){switch(o.label){case 0:return(n=is(t)).currentUser.isEqual(e)?[3,3]:(Ka("SyncEngine","User change. New user:",e.toKey()),[4,cf(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 Qa(Ya.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),r.ko.clear(),n.sharedClientState.handleUserChange(e,i.removedBatchIds,i.addedBatchIds),[4,dp(n,i.Ln)];case 2:o.sent(),o.label=3;case 3:return[2]}var r})})}function gp(t,e){var n=is(t),i=n.Co.get(e);if(i&&i.bo)return Mu().add(i.key);var o=Mu(),r=n.Vo.get(e);if(!r)return o;for(var a=0,s=r;a<s.length;a++){var c=n.Po.get(s[a]);o=o.unionWith(c.view.wo)}return o}function mp(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i,o;return(0,Ln.Jh)(this,function(r){switch(r.label){case 0:return[4,mf((n=is(t)).localStore,e.query,!0)];case 1:return i=r.sent(),o=e.view.Ao(i),[2,(n.isPrimaryClient&&lp(n,e.targetId,o.To),o)]}})})}function vp(t){return(0,Ln.mG)(this,void 0,void 0,function(){var e;return(0,Ln.Jh)(this,function(n){return[2,yf((e=is(t)).localStore).then(function(t){return dp(e,t)})]})})}function yp(t,e,n,i){return(0,Ln.mG)(this,void 0,void 0,function(){var o,r;return(0,Ln.Jh)(this,function(a){switch(a.label){case 0:return[4,(s=(o=is(t)).localStore,c=e,u=is(s),l=is(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):jl.resolve(null)})}))];case 1:return null===(r=a.sent())?[3,6]:"pending"!==n?[3,3]:[4,_d(o.remoteStore)];case 2:return a.sent(),[3,4];case 3:"acknowledged"===n||"rejected"===n?(sp(o,e,i||null),ap(o,e),function(t,e){is(is(t)._n).Gt(e)}(o.localStore,e)):es(),a.label=4;case 4:return[4,dp(o,r)];case 5:return a.sent(),[3,7];case 6:Ka("SyncEngine","Cannot apply mutation batch with id: "+e),a.label=7;case 7:return[2]}var s,c,u,l})})}function _p(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i,o,r,a,s,c;return(0,Ln.Jh)(this,function(u){switch(u.label){case 0:return Pp(n=is(t)),Mp(n),!0!==e||!0===n.$o?[3,3]:(i=n.sharedCl
1ientState.getAllActiveQueryTargets(),[4,bp(n,i.toArray())]);case 1:return o=u.sent(),n.$o=!0,[4,Md(n.remoteStore,!0)];case 2:for(u.sent(),r=0,a=o;r<a.length;r++)ad(n.remoteStore,a[r]);return[3,7];case 3:return!1!==e||!1===n.$o?[3,7]:(s=[],c=Promise.resolve(),n.Vo.forEach(function(t,e){n.sharedClientState.isLocalQueryTarget(e)?s.push(e):c=c.then(function(){return cp(n,e),gf(n.localStore,e,!0)}),sd(n.remoteStore,e)}),[4,c]);case 4:return u.sent(),[4,bp(n,s)];case 5:return u.sent(),(l=is(n)).Co.forEach(function(t,e){sd(l.remoteStore,e)}),l.No.ts(),l.Co=new Map,l.Do=new pu(Es.comparator),n.$o=!1,[4,Md(n.remoteStore,!1)];case 6:u.sent(),u.label=7;case 7:return[2]}var l})})}function bp(t,e,n){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i,o,r,a,s,c,u,l,h,f,d,p;return(0,Ln.Jh)(this,function(g){switch(g.label){case 0:n=is(t),i=[],o=[],r=0,a=e,g.label=1;case 1:return r<a.length?(c=void 0,(u=n.Vo.get(s=a[r]))&&0!==u.length?[4,pf(n.localStore,wc(u[0]))]:[3,7]):[3,13];case 2:c=g.sent(),l=0,h=u,g.label=3;case 3:return l<h.length?(f=n.Po.get(h[l]),[4,mp(n,f)]):[3,6];case 4:(d=g.sent()).snapshot&&o.push(d.snapshot),g.label=5;case 5:return l++,[3,3];case 6:return[3,11];case 7:return[4,vf(n.localStore,s)];case 8:return p=g.sent(),[4,pf(n.localStore,p)];case 9:return c=g.sent(),[4,Kd(n,Cp(p),s,!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 Cp(t){return gc(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)}function xp(t){var e=is(t);return is(is(e.localStore).persistence).fn()}function wp(t,e,n,i){return(0,Ln.mG)(this,void 0,void 0,function(){var o,r,a;return(0,Ln.Jh)(this,function(s){switch(s.label){case 0:return(o=is(t)).$o?(Ka("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,yf(o.localStore)];case 3:return r=s.sent(),a=Su.createSynthesizedRemoteEventForCurrentChange(e,"current"===n),[4,dp(o,r,a)];case 4:return s.sent(),[3,8];case 5:return[4,gf(o.localStore,e,!0)];case 6:return s.sent(),cp(o,e,i),[3,8];case 7:es(),s.label=8;case 8:return[2]}})})}function Op(t,e,n){return(0,Ln.mG)(this,void 0,void 0,function(){var i,o,r,a,s,c,u,l,h;return(0,Ln.Jh)(this,function(f){switch(f.label){case 0:if(!(i=Pp(t)).$o)return[3,10];o=0,r=e,f.label=1;case 1:return o<r.length?i.Vo.has(a=r[o])?(Ka("SyncEngine","Adding an already active target "+a),[3,5]):[4,vf(i.localStore,a)]:[3,6];case 2:return s=f.sent(),[4,pf(i.localStore,s)];case 3:return c=f.sent(),[4,Kd(i,Cp(s),c.targetId,!1)];case 4:f.sent(),ad(i.remoteStore,c),f.label=5;case 5:return o++,[3,1];case 6:u=function(t){return(0,Ln.Jh)(this,function(e){switch(e.label){case 0:return i.Vo.has(t)?[4,gf(i.localStore,t,!1).then(function(){sd(i.remoteStore,t),cp(i,t)}).catch(Nh)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})},l=0,h=n,f.label=7;case 7:return l<h.length?[5,u(h[l])]:[3,10];case 8:f.sent(),f.label=9;case 9:return l++,[3,7];case 10:return[2]}})})}function Pp(t){var e=is(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=tp.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=gp.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=np.bind(null,e),e.vo._r=Ud.bind(null,e.eventManager),e.vo.Mo=Zd.bind(null,e.eventManager),e}function Mp(t){var e=is(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=ip.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=op.bind(null,e),e}var kp=function(){function t(){this.synchronizeTabs=!1}return t.prototype.initialize=function(t){return(0,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.Jh)(this,function(e){switch(e.label){case 0:return this.R=Wf(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 sf(this.persistence,new rf,t.initialUser,this.R)},t.prototype.qo=function(t){return new Sf(Af.bs,this.R)},t.prototype.Bo=function(t){return new Vf},t.prototype.terminate=function(){return(0,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.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}(),Tp=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,Ln.ZT)(e,t),e.prototype.initialize=function(e){return(0,Ln.mG)(this,void 0,void 0,function(){var n=this;return(0,Ln.Jh)(this,function(i){switch(i.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return i.sent(),[4,_f(this.localStore)];case 2:return i.sent(),[4,this.Qo.initialize(this,e)];case 3:return i.sent(),[4,Mp(this.Qo.syncEngine)];case 4:return i.sent(),[4,_d(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 sf(this.persistence,new rf,t.initialUser,this.R)},e.prototype.Uo=function(t){return new Fh(this.persistence.referenceDelegate.garbageCollector,t.asyncQueue)},e.prototype.qo=function(t){var e=tf(t.databaseInfo.databaseId,t.databaseInfo.persistenceKey),n=void 0!==this.cacheSizeBytes?Ch.withCacheSize(this.cacheSizeBytes):Ch.DEFAULT;return new Kh(this.synchronizeTabs,e,t.clientId,n,t.asyncQueue,Qf(),Jf(),this.R,this.sharedClientState,!!this.forceOwnership)},e.prototype.Bo=function(t){return new Vf},e}(kp),Sp=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,Ln.ZT)(e,t),e.prototype.initialize=function(e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i=this;return(0,Ln.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 jf?(this.sharedClientState.syncEngine={ui:yp.bind(null,n),ai:wp.bind(null,n),hi:Op.bind(null,n),fn:xp.bind(null,n),ci:vp.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,Ln.mG)(i,void 0,void 0,function(){return(0,Ln.Jh)(this,function(e){switch(e.label){case 0:return[4,_p(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=Qf();if(!jf.yt(e))throw new Qa(Ya.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var n=tf(t.databaseInfo.databaseId,t.databaseInfo.persistenceKey);return new jf(e,t.asyncQueue,n,t.clientId,t.initialUser)},e}(Tp),Ep=function(){function t(){}return t.prototype.initialize=function(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n=this;return(0,Ln.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 ep(n.syncEngine,t,1)},this.remoteStore.remoteSyncer.handleCredentialChange=pp.bind(null,this.syncEngine),[4,Md(this.remoteStore,this.syncEngine.isPrimaryClient)]);case 1:i.sent(),i.label=2;case 2:return[2]}})})},t.prototype.createEventManager=function(t){return new Ld},t.prototype.createDatastore=function(t){var e=Wf(t.databaseInfo.databaseId),n=new Yf(t.databaseInfo);return new ed(t.credentials,n,e)},t.prototype.createRemoteStore=function(t){var e,n,i,o,r,a=this;return e=this.localStore,n=this.datastore,i=t.asyncQueue,o=function(t){return ep(a.syncEngine,t,0)},r=Gf.yt()?new Gf:new zf,new id(e,n,i,o,r)},t.prototype.createSyncEngine=function(t,e){return n=e,i=new Jd(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,Ln.mG)(this,void 0,void 0,function(){var e;return(0,Ln.Jh)(this,function(n){switch(n.label){case 0:return e=is(t),Ka("RemoteStore","RemoteStore shutting down."),e.Or.add(5),[4,rd(e)];case 1:return n.sent(),e.Lr.shutdown(),e.Br.set("Unknown"),[2]}})})}(this.remoteStore)},t}(),Ap=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}(),Ip=(function(){function t(t,e){var n=this;this.Go=t,this.R=e,this.metadata=new ql,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,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.Jh)(this,function(t){return[2,this.metadata.promise]})})},t.prototype.Lo=function(){return(0,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.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,Ln.mG)(this,void 0,void 0,function(){var t,e,n,i;return(0,Ln.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 Vd(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,Ln.mG)(this,void 0,void 0,function(){var t,e;return(0,Ln.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,Ln.mG)(this,void 0,void 0,function(){var e;return(0,Ln.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,Ln.mG)(this,void 0,void 0,function(){var t,e;return(0,Ln.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,Ln.mG)(this,void 0,void 0,function(){var e,n=this;return(0,Ln.Jh)(this,function(i){switch(i.label){case 0:if(this.ensureCommitNotCalled(),this.mutations.length>0)throw new Qa(Ya.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i,o,r,a,s;return(0,Ln.Jh)(this,function(c){switch(c.label){case 0:return n=is(t),i=Ku(n.R)+"/documents",o={documents:e.map(function(t){return Yu(n.R,t)})},[4,n.$i("BatchGetDocuments",i,o)];case 1:return r=c.sent(),a=new Map,r.forEach(function(t){var e,i,o=(e=n.R,"found"in(i=t)?function(t,e){ns(!!e.found);var n=Qu(t,e.found.name),i=Gu(e.found.updateTime),o=new Bs({mapValue:{fields:e.found.fields}});return Ys.newFoundDocument(n,i,o)}(e,i):"missing"in i?function(t,e){ns(!!e.missing),ns(!!e.readTime);var n=Qu(t,e.missing),i=Gu(e.readTime);return Ys.newNoDocument(n,i)}(e,i):es());a.set(o.key.toString(),o)}),s=[],[2,(e.forEach(function(t){var e=a.get(t.toString());ns(!!e),s.push(e)}),s)]}})})}(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 uu(t,this.precondition(t))),this.writtenDocs.add(t.toString())},t.prototype.commit=function(){return(0,Ln.mG)(this,void 0,void 0,function(){var t,e=this;return(0,Ln.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=Es.fromPath(n);e.mutations.push(new lu(i,e.precondition(i)))}),[4,function(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i,o;return(0,Ln.Jh)(this,function(r){switch(r.label){case 0:return n=is(t),i=Ku(n.R)+"/documents",o={writes:e.map(function(t){return el(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 es();e=ls.min()}var n=this.readVersions.get(t.key.toString());if(n){if(!e.isEqual(n))throw new Qa(Ya.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?Qc.updateTime(e):Qc.none()},t.prototype.preconditionForUpdate=function(t){var e=this.readVersions.get(t.toString());if(!this.writtenDocs.has(t.toString())&&e){if(e.isEqual(ls.min()))throw new Qa(Ya.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return Qc.updateTime(e)}return Qc.exists(!0)},t.prototype.write=function(t){this.ensureCommitNotCalled(),this.mutations.push(t)},t.prototype.ensureCommitNotCalled=function(){},t}()),Rp=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 Kf(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,Ln.mG)(t,void 0,void 0,function(){var t,e,n=this;return(0,Ln.Jh)(this,function(i){return t=new Ip(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!ks(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||!fu(e)}return!1},t}(),Np=function(){function t(t,e,n){var i=this;this.credentials=t,this.asyncQueue=e,this.databaseInfo=n,this.user=If.UNAUTHENTICATED,this.clientId=rs.u(),this.credentialListener=function(){return Promise.resolve()},this.credentials.setChangeListener(e,function(t){return(0,Ln.mG)(i,void 0,void 0,function(){return(0,Ln.Jh)(this,function(e){switch(e.label){case 0:return Ka("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,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.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 Qa(Ya.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.terminate=function(){var t=this;this.asyncQueue.enterRestrictedMode();var e=new ql;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(function(){return(0,Ln.mG)(t,void 0,void 0,function(){var t,n;return(0,Ln.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=Ed(t,"Failed to shutdown persistence"),e.reject(n),[3,6];case 6:return[2]}})})}),e.promise},t}();function Lp(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i,o=this;return(0,Ln.Jh)(this,function(r){switch(r.label){case 0:return t.asyncQueue.verifyOperationInProgress(),Ka("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,Ln.mG)(o,void 0,void 0,function(){return(0,Ln.Jh)(this,function(n){switch(n.label){case 0:return i.isEqual(t)?[3,2]:[4,cf(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 Dp(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i;return(0,Ln.Jh)(this,function(o){switch(o.label){case 0:return t.asyncQueue.verifyOperationInProgress(),[4,Fp(t)];case 1:return n=o.sent(),Ka("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,Ln.mG)(this,void 0,void 0,function(){var n,i;return(0,Ln.Jh)(this,function(o){switch(o.label){case 0:return(n=is(t)).asyncQueue.verifyOperationInProgress(),Ka("RemoteStore","RemoteStore received new credentials"),i=fd(n),n.Or.add(3),[4,rd(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,od(n)];case 3:return o.sent(),[2]}})})}(e.remoteStore,t)}),t.onlineComponents=e,[2]}})})}function Fp(t){return(0,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.Jh)(this,function(e){switch(e.label){case 0:return t.offlineComponents?[3,2]:(Ka("FirestoreClient","Using default OfflineComponentProvider"),[4,Lp(t,new kp)]);case 1:e.sent(),e.label=2;case 2:return[2,t.offlineComponents]}})})}function Up(t){return(0,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.Jh)(this,function(e){switch(e.label){case 0:return t.onlineComponents?[3,2]:(Ka("FirestoreClient","Using default OnlineComponentProvider"),[4,Dp(t,new Ep)]);case 1:e.sent(),e.label=2;case 2:return[2,t.onlineComponents]}})})}function Zp(t){return Fp(t).then(function(t){return t.persistence})}function qp(t){return Fp(t).then(function(t){return t.localStore})}function jp(t){return Up(t).then(function(t){return t.remoteStore})}function Vp(t){return Up(t).then(function(t){return t.syncEngine})}function zp(t){return(0,Ln.mG)(this,void 0,void 0,function(){var e,n;return(0,Ln.Jh)(this,function(i){switch(i.label){case 0:return[4,Up(t)];case 1:return e=i.sent(),[2,((n=e.eventManager).onListen=Wd.bind(null,e.syncEngine),n.onUnlisten=$d.bind(null,e.syncEngine),n)]}})})}function Gp(t,e,n){var i=this;void 0===n&&(n={});var o=new ql;return t.asyncQueue.enqueueAndForget(function(){return(0,Ln.mG)(i,void 0,void 0,function(){var i;return(0,Ln.Jh)(this,function(r){switch(r.label){case 0:return i=function(t,e,n,i,o){var r=new Ap({next:function(r){e.enqueueAndForget(function(){return Fd(t,a)});var s=r.docs.has(n);!s&&r.fromCache?o.reject(new Qa(Ya.UNAVAILABLE,"Failed to get document because the client is offline.")):s&&r.fromCache&&i&&"server"===i.source?o.reject(new Qa(Ya.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)}}),a=new jd(mc(n.path),r,{includeMetadataChanges:!0,so:!0});return Dd(t,a)},[4,zp(t)];case 1:return[2,i.apply(void 0,[r.sent(),t.asyncQueue,e,n,o])]}})})}),o.promise}function Bp(t,e,n){var i=this;void 0===n&&(n={});var o=new ql;return t.asyncQueue.enqueueAndForget(function(){return(0,Ln.mG)(i,void 0,void 0,function(){var i;return(0,Ln.Jh)(this,function(r){switch(r.label){case 0:return i=function(t,e,n,i,o){var r=new Ap({next:function(n){e.enqueueAndForget(function(){return Fd(t,a)}),n.fromCache&&"server"===i.source?o.reject(new Qa(Ya.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)}}),a=new jd(n,r,{includeMetadataChanges:!0,so:!0});return Dd(t,a)},[4,zp(t)];case 1:return[2,i.apply(void 0,[r.sent(),t.asyncQueue,e,n,o])]}})})}),o.promise}var Hp=function(t,e,n,i,o,r,a,s){this.databaseId=t,this.appId=e,this.persistenceKey=n,this.host=i,this.ssl=o,this.forceLongPolling=r,this.autoDetectLongPolling=a,this.useFetchStreams=s},Yp=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}(),Qp=new Map,Jp=function(t,e){this.user=e,this.type="OAuth",this.authHeaders={},this.authHeaders.Authorization="Bearer "+t},Wp=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(If.UNAUTHENTICATED)})},t.prototype.removeChangeListener=function(){this.changeListener=null},t}(),Kp=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}(),$p=function(){function t(t){var e=this;this.currentUser=If.UNAUTHENTICATED,this.oc=new ql,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){Ka("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):(Ka("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?(Ka("FirebaseCredentialsProvider","getToken aborted due to token change."),t.getToken()):n?(ns("string"==typeof n.accessToken),new Jp(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,Ln.mG)(n,void 0,void 0,function(){return(0,Ln.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 ns(null===t||"string"==typeof t),new If(t)},t}(),Xp=function(){function t(t,e,n){this.hc=t,this.lc=e,this.fc=n,this.type="FirstParty",this.user=If.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}(),tg=function(){function t(t,e,n){this.hc=t,this.lc=e,this.fc=n}return t.prototype.getToken=function(){return Promise.resolve(new Xp(this.hc,this.lc,this.fc))},t.prototype.setChangeListener=function(t,e){t.enqueueRetryable(function(){return e(If.FIRST_PARTY)})},t.prototype.removeChangeListener=function(){},t.prototype.invalidateToken=function(){},t}();function eg(t,e,n){if(!n)throw new Qa(Ya.INVALID_ARGUMENT,"Function "+t+"() cannot be called with an empty "+e+".")}function ng(t,e){if(void 0===e)return{merge:!1};if(void 0!==e.mergeFields&&void 0!==e.merge)throw new Qa(Ya.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function ig(t,e,n,i){if(!0===e&&!0===i)throw new Qa(Ya.INVALID_ARGUMENT,t+" and "+n+" cannot be used together.")}function og(t){if(!Es.isDocumentKey(t))throw new Qa(Ya.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t+" has "+t.length+".")}function rg(t){if(Es.isDocumentKey(t))throw new Qa(Ya.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t+" has "+t.length+".")}function ag(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":es()}function sg(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new Qa(Ya.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");var n=ag(t);throw new Qa(Ya.INVALID_ARGUMENT,"Expected type '"+e.name+"', but it was: "+n)}return t}function cg(t,e){if(e<=0)throw new Qa(Ya.INVALID_ARGUMENT,"Function "+t+"() requires a positive number, but it was: "+e+".")}var ug=function(){function t(t){var e;if(void 0===t.host){if(void 0!==t.ssl)throw new Qa(Ya.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 Qa(Ya.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!t.experimentalAutoDetectLongPolling,this.useFetchStreams=!!t.useFetchStreams,ig("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}(),lg=function(){function t(t,e){this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new ug({}),this._settingsFrozen=!1,t instanceof Yp?(this._databaseId=t,this._credentials=new Wp):(this._app=t,this._databaseId=function(t){if(!Object.prototype.hasOwnProperty.apply(t.options,["projectId"]))throw new Qa(Ya.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');
1return new Yp(t.options.projectId)}(t),this._credentials=new $p(e))}return Object.defineProperty(t.prototype,"app",{get:function(){if(!this._app)throw new Qa(Ya.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app},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 Qa(Ya.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 ug(t),void 0!==t.credentials&&(this._credentials=function(t){if(!t)return new Wp;switch(t.type){case"gapi":var e=t.client;return ns(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new tg(e,t.sessionIndex||"0",t.iamToken||null);case"provider":return t.client;default:throw new Qa(Ya.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=Qp.get(this))&&(Ka("ComponentProvider","Removing Datastore"),Qp.delete(this),t.terminate()),Promise.resolve();var t},t}(),hg=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 dg(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}(),fg=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}(),dg=function(t){function e(e,n,i){var o=this;return(o=t.call(this,e,n,mc(i))||this)._path=i,o.type="collection",o}return(0,Ln.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 hg(this.firestore,null,new Es(t))},enumerable:!1,configurable:!0}),e.prototype.withConverter=function(t){return new e(this.firestore,t,this._path)},e}(fg);function pg(t,e){for(var n,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];if(t=(0,Dn.m9)(t),eg("collection","path",e),t instanceof lg)return rg(n=gs.fromString.apply(gs,(0,Ln.ev)([e],i))),new dg(t,null,n);if(!(t instanceof hg||t instanceof dg))throw new Qa(Ya.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return rg(n=gs.fromString.apply(gs,(0,Ln.ev)([t.path],i)).child(gs.fromString(e))),new dg(t.firestore,null,n)}function gg(t,e){for(var n,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];if(t=(0,Dn.m9)(t),1===arguments.length&&(e=rs.u()),eg("doc","path",e),t instanceof lg)return og(n=gs.fromString.apply(gs,(0,Ln.ev)([e],i))),new hg(t,null,new Es(n));if(!(t instanceof hg||t instanceof dg))throw new Qa(Ya.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return og(n=t._path.child(gs.fromString.apply(gs,(0,Ln.ev)([e],i)))),new hg(t.firestore,t instanceof dg?t.converter:null,new Es(n))}function mg(t,e){return t=(0,Dn.m9)(t),e=(0,Dn.m9)(e),(t instanceof hg||t instanceof dg)&&(e instanceof hg||e instanceof dg)&&t.firestore===e.firestore&&t.path===e.path&&t.converter===e.converter}function vg(t,e){return t=(0,Dn.m9)(t),e=(0,Dn.m9)(e),t instanceof fg&&e instanceof fg&&t.firestore===e.firestore&&Pc(t._query,e._query)&&t.converter===e.converter}var yg=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 Kf(this,"async_queue_retry"),this.Ic=function(){var e=Jf();e&&Ka("AsyncQueue","Visibility state changed to "+e.visibilityState),t.Zi.Gi()};var e=Jf();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=Jf();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 ql;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,Ln.mG)(this,void 0,void 0,function(){var t,e=this;return(0,Ln.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(!Hl(t=n.sent()))throw t;return Ka("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,$a("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=Sd.createAndSchedule(this,t,e,n,function(t){return i.vc(t)});return this.mc.push(o),o},t.prototype.Ac=function(){this.yc&&es()},t.prototype.verifyOperationInProgress=function(){},t.prototype.Pc=function(){return(0,Ln.mG)(this,void 0,void 0,function(){var t;return(0,Ln.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 _g(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 ql,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 bg=function(t){function e(e,n){var i=this;return(i=t.call(this,e,n)||this).type="firestore",i._queue=new yg,i._persistenceKey="name"in e?e.name:"[DEFAULT]",i}return(0,Ln.ZT)(e,t),e.prototype._terminate=function(){return this._firestoreClient||xg(this),this._firestoreClient.terminate()},e}(lg);function Cg(t){return t._firestoreClient||xg(t),t._firestoreClient.verifyNotTerminated(),t._firestoreClient}function xg(t){var e,n,i,o=t._freezeSettings(),r=(n=(null===(e=t._app)||void 0===e?void 0:e.options.appId)||"",new Hp(t._databaseId,n,t._persistenceKey,(i=o).host,i.ssl,i.experimentalForceLongPolling,i.experimentalAutoDetectLongPolling,i.useFetchStreams));t._firestoreClient=new Np(t._credentials,t._queue,r)}function wg(t,e,n){var i=this,o=new ql;return t.asyncQueue.enqueue(function(){return(0,Ln.mG)(i,void 0,void 0,function(){var i;return(0,Ln.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,Lp(t,n)];case 1:return r.sent(),[4,Dp(t,e)];case 2:return r.sent(),o.resolve(),[3,4];case 3:if(!("FirebaseError"===(a=i=r.sent()).name?a.code===Ya.FAILED_PRECONDITION||a.code===Ya.UNIMPLEMENT
1ED:!("undefined"!=typeof DOMException&&a instanceof DOMException)||22===a.code||20===a.code||11===a.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 a})})}).then(function(){return o.promise})}function Og(t){if(t._initialized||t._terminated)throw new Qa(Ya.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 Pg=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 Qa(Ya.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new vs(t)}return t.prototype.isEqual=function(t){return this._internalPath.isEqual(t._internalPath)},t}(),Mg=function(){function t(t){this._byteString=t}return t.fromBase64String=function(e){try{return new t(_s.fromBase64String(e))}catch(n){throw new Qa(Ya.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}},t.fromUint8Array=function(e){return new t(_s.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}(),kg=function(t){this._methodName=t},Tg=function(){function t(t,e){if(!isFinite(t)||t<-90||t>90)throw new Qa(Ya.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new Qa(Ya.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 as(this._lat,t._lat)||as(this._long,t._long)},t}(),Sg=/^__.*__$/,Eg=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 iu(t,this.data,this.fieldMask,e,this.fieldTransforms):new nu(t,this.data,e,this.fieldTransforms)},t}(),Ag=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutation=function(t,e){return new iu(t,this.data,this.fieldMask,e,this.fieldTransforms)},t}();function Ig(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw es()}}var Rg=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 Xg(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(Ig(this.Nc)&&Sg.test(t))throw this.Lc('Document fields cannot begin and end with "__"')},t}(),Ng=function(){function t(t,e,n){this.databaseId=t,this.ignoreUndefinedProperties=e,this.R=n||Wf(t)}return t.prototype.Uc=function(t,e,n,i){return void 0===i&&(i=!1),new Rg({Nc:t,methodName:e,qc:n,path:vs.emptyPath(),Fc:!1,Bc:i},this.databaseId,this.R,this.ignoreUndefinedProperties)},t}();function Lg(t){var e=t._freezeSettings(),n=Wf(t._databaseId);return new Ng(t._databaseId,!!e.ignoreUndefinedProperties,n)}function Dg(t,e,n,i,o,r){void 0===r&&(r={});var a=t.Uc(r.merge||r.mergeFields?2:0,e,n,o);Jg("Data must be an object, but it was:",a,i);var s,c,u=Yg(i,a);if(r.merge)s=new ys(a.fieldMask),c=a.fieldTransforms;else if(r.mergeFields){for(var l=[],h=0,f=r.mergeFields;h<f.length;h++){var d=Wg(e,f[h],n);if(!a.contains(d))throw new Qa(Ya.INVALID_ARGUMENT,"Field '"+d+"' is specified in your field mask but missing from your input data.");tm(l,d)||l.push(d)}s=new ys(l),c=a.fieldTransforms.filter(function(t){return s.covers(t.field)})}else s=null,c=a.fieldTransforms;return new Eg(new Bs(u),s,c)}var Fg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Ln.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}(kg);function Ug(t,e,n){return new Rg({Nc:3,qc:e.settings.qc,methodName:t._methodName,Fc:n},e.databaseId,e.R,e.ignoreUndefinedProperties)}var Zg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Ln.ZT)(e,t),e.prototype._toFieldTransform=function(t){return new Hc(t.path,new Uc)},e.prototype.isEqual=function(t){return t instanceof e},e}(kg),qg=function(t){function e(e,n){var i=this;return(i=t.call(this,e)||this).Kc=n,i}return(0,Ln.ZT)(e,t),e.prototype._toFieldTransform=function(t){var e=Ug(this,t,!0),n=this.Kc.map(function(t){return Hg(t,e)}),i=new Zc(n);return new Hc(t.path,i)},e.prototype.isEqual=function(t){return this===t},e}(kg),jg=function(t){function e(e,n){var i=this;return(i=t.call(this,e)||this).Kc=n,i}return(0,Ln.ZT)(e,t),e.prototype._toFieldTransform=function(t){var e=Ug(this,t,!0),n=this.Kc.map(function(t){return Hg(t,e)}),i=new jc(n);return new Hc(t.path,i)},e.prototype.isEqual=function(t){return this===t},e}(kg),Vg=function(t){function e(e,n){var i=this;return(i=t.call(this,e)||this).Qc=n,i}return(0,Ln.ZT)(e,t),e.prototype._toFieldTransform=function(t){var e=new zc(t.R,Rc(t.R,this.Qc));return new Hc(t.path,e)},e.prototype.isEqual=function(t){return this===t},e}(kg);function zg(t,e,n,i){var o=t.Uc(1,e,n);Jg("Data must be an object, but it was:",o,i);var r=[],a=Bs.empty();fs(i,function(t,i){var s=$g(e,t,n);i=(0,Dn.m9)(i);var c=o.Oc(s);if(i instanceof Fg)r.push(s);else{var u=Hg(i,c);null!=u&&(r.push(s),a.set(s,u))}});var s=new ys(r);return new Ag(a,s,o.fieldTransforms)}function Gg(t,e,n,i,o,r){var a=t.Uc(1,e,n),s=[Wg(e,i,n)],c=[o];if(r.length%2!=0)throw new Qa(Ya.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)s.push(Wg(e,r[u])),c.push(r[u+1]);for(var l=[],h=Bs.empty(),f=s.length-1;f>=0;--f)if(!tm(l,s[f])){var d=s[f],p=c[f];p=(0,Dn.m9)(p);var g=a.Oc(d);if(p instanceof Fg)l.push(d);else{var m=Hg(p,g);null!=m&&(l.push(d),h.set(d,m))}}var v=new ys(l);return new Ag(h,v,a.fieldTransforms)}function Bg(t,e,n,i){return void 0===i&&(i=!1),Hg(n,t.Uc(i?4:3,e))}function Hg(t,e){if(Qg(t=(0,Dn.m9)(t)))return Jg("Unsupported field value:",e,t),Yg(t,e);if(t instanceof kg)return function(t,e){if(!Ig(e.Nc))throw e.Lc(t._methodName+"() can only be used with update(
1) 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 a=Hg(r[o],e.Mc(i));null==a&&(a={nullValue:"NULL_VALUE"}),n.push(a),i++}return{arrayValue:{values:n}}}(t,e)}return function(t,e){if(null===(t=(0,Dn.m9)(t)))return{nullValue:"NULL_VALUE"};if("number"==typeof t)return Rc(e.R,t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){var n=us.fromDate(t);return{timestampValue:ju(e.R,n)}}if(t instanceof us)return n=new us(t.seconds,1e3*Math.floor(t.nanoseconds/1e3)),{timestampValue:ju(e.R,n)};if(t instanceof Tg)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof Mg)return{bytesValue:Vu(e.R,t._byteString)};if(t instanceof hg){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:Bu(t.firestore._databaseId||e.databaseId,t._key.path)}}throw e.Lc("Unsupported field value: "+ag(t))}(t,e)}function Yg(t,e){var n={};return ds(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):fs(t,function(t,i){var o=Hg(i,e.kc(t));null!=o&&(n[t]=o)}),{mapValue:{fields:n}}}function Qg(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof us||t instanceof Tg||t instanceof Mg||t instanceof hg||t instanceof kg)}function Jg(t,e,n){if(!Qg(n)||"object"!=typeof(o=n)||null===o||Object.getPrototypeOf(o)!==Object.prototype&&null!==Object.getPrototypeOf(o)){var i=ag(n);throw e.Lc("an object"===i?t+" a custom object":t+" "+i)}var o}function Wg(t,e,n){if((e=(0,Dn.m9)(e))instanceof Pg)return e._internalPath;if("string"==typeof e)return $g(t,e);throw Xg("Field path arguments must be of type string or FieldPath.",t,!1,void 0,n)}var Kg=new RegExp("[~\\*/\\[\\]]");function $g(t,e,n){if(e.search(Kg)>=0)throw Xg("Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'",t,!1,void 0,n);try{return(new(Pg.bind.apply(Pg,(0,Ln.ev)([void 0],e.split(".")))))._internalPath}catch(i){throw Xg("Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'",t,!1,void 0,n)}}function Xg(t,e,n,i,o){var r=i&&!i.isEmpty(),a=void 0!==o,s="Function "+e+"() called with invalid data";n&&(s+=" (via `toFirestore()`)");var c="";return(r||a)&&(c+=" (found",r&&(c+=" in field "+i),a&&(c+=" in document "+o),c+=")"),new Qa(Ya.INVALID_ARGUMENT,(s+=". ")+t+c)}function tm(t,e){return t.some(function(t){return t.isEqual(e)})}var em=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 hg(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 nm(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(im("DocumentSnapshot.get",t));if(null!==e)return this._userDataWriter.convertValue(e)}},t}(),nm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Ln.ZT)(e,t),e.prototype.data=function(){return t.prototype.data.call(this)},e}(em);function im(t,e){return"string"==typeof e?$g(t,e):e instanceof Pg?e._internalPath:e._delegate._internalPath}var om=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}(),rm=function(t){function e(e,n,i,o,r,a){var s=this;return(s=t.call(this,e,n,i,o,a)||this)._firestore=e,s._firestoreImpl=e,s.metadata=r,s}return(0,Ln.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 am(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(im("DocumentSnapshot.get",t));if(null!==n)return this._userDataWriter.convertValue(n,e.serverTimestamps)}},e}(em),am=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Ln.ZT)(e,t),e.prototype.data=function(e){return void 0===e&&(e={}),t.prototype.data.call(this,e)},e}(rm),sm=function(){function t(t,e,n,i){this._firestore=t,this._userDataWriter=e,this._snapshot=i,this.metadata=new om(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}
1,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 am(n._firestore,n._userDataWriter,i.key,i,new om(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 Qa(Ya.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 am(t._firestore,t._userDataWriter,e.doc.key,e.doc,new om(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 am(t._firestore,t._userDataWriter,e.doc.key,e.doc,new om(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:cm(e.type),doc:n,oldIndex:o,newIndex:r}})}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges},t}();function cm(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return es()}}function um(t,e){return t instanceof rm&&e instanceof rm?t._firestore===e._firestore&&t._key.isEqual(e._key)&&(null===t._document?null===e._document:t._document.isEqual(e._document))&&t._converter===e._converter:t instanceof sm&&e instanceof sm&&t._firestore===e._firestore&&vg(t.query,e.query)&&t.metadata.isEqual(e.metadata)&&t._snapshot.isEqual(e._snapshot)}function lm(t){if(yc(t)&&0===t.explicitOrderBy.length)throw new Qa(Ya.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var hm=function(){};function fm(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 dm=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,Ln.ZT)(e,t),e.prototype._apply=function(t){var e,n,i=Lg(t.firestore),o=function(t,e,n,i,o,r,a){var s;if(o.isKeyField()){if("array-contains"===r||"array-contains-any"===r)throw new Qa(Ya.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+r+"' queries on FieldPath.documentId().");if("in"===r||"not-in"===r){bm(a,r);for(var c=[],u=0,l=a;u<l.length;u++)c.push(_m(i,t,l[u]));s={arrayValue:{values:c}}}else s=_m(i,t,a)}else"in"!==r&&"not-in"!==r&&"array-contains-any"!==r||bm(a,r),s=Bg(n,"where",a,"in"===r||"not-in"===r);var h=Xs.create(o,r,s);return function(t,e){if(e.g()){var n=bc(t);if(null!==n&&!n.isEqual(e.field))throw new Qa(Ya.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=_c(t);null!==i&&Cm(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 Qa(Ya.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 fg(t.firestore,t.converter,(n=(e=t._query).filters.concat([o]),new pc(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)))},e}(hm),pm=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,Ln.ZT)(e,t),e.prototype._apply=function(t){var e,n,i=function(t,e,n){if(null!==t.startAt)throw new Qa(Ya.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==t.endAt)throw new Qa(Ya.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var i=new lc(e,n);return function(t,e){if(null===_c(t)){var n=bc(t);null!==n&&Cm(0,n,e.field)}}(t,i),i}(t._query,this.jc,this.zc);return new fg(t.firestore,t.converter,(n=(e=t._query).explicitOrderBy.concat([i]),new pc(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)))},e}(hm),gm=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,Ln.ZT)(e,t),e.prototype._apply=function(t){return new fg(t.firestore,t.converter,Oc(t._query,this.Hc,this.Jc))},e}(hm),mm=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,Ln.ZT)(e,t),e.prototype._apply=function(t){var e,n,i=ym(t,this.type,this.Y
1c,this.Xc);return new fg(t.firestore,t.converter,(n=i,new pc((e=t._query).path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,n,e.endAt)))},e}(hm),vm=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,Ln.ZT)(e,t),e.prototype._apply=function(t){var e,n,i=ym(t,this.type,this.Yc,this.Xc);return new fg(t.firestore,t.converter,(n=i,new pc((e=t._query).path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,n)))},e}(hm);function ym(t,e,n,i){if(n[0]=(0,Dn.m9)(n[0]),n[0]instanceof em)return function(t,e,n,i,o){if(!i)throw new Qa(Ya.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var r=[],a=0,s=xc(t);a<s.length;a++){var c=s[a];if(c.field.isKeyField())r.push(Us(e,i.key));else{var u=i.data.field(c.field);if(Os(u))throw new Qa(Ya.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 Qa(Ya.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 cc(r,o)}(t._query,t.firestore._databaseId,e,n[0]._document,i);var o=Lg(t.firestore);return function(t,e,n,i,o,r){var a=t.explicitOrderBy;if(o.length>a.length)throw new Qa(Ya.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 s=[],c=0;c<o.length;c++){var u=o[c];if(a[c].field.isKeyField()){if("string"!=typeof u)throw new Qa(Ya.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+i+"(), but got a "+typeof u);if(!Cc(t)&&-1!==u.indexOf("/"))throw new Qa(Ya.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(gs.fromString(u));if(!Es.isDocumentKey(l))throw new Qa(Ya.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 Es(l);s.push(Us(e,h))}else{var f=Bg(n,i,u);s.push(f)}}return new cc(s,r)}(t._query,t.firestore._databaseId,o,e,n,i)}function _m(t,e,n){if("string"==typeof(n=(0,Dn.m9)(n))){if(""===n)throw new Qa(Ya.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!Cc(e)&&-1!==n.indexOf("/"))throw new Qa(Ya.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(gs.fromString(n));if(!Es.isDocumentKey(i))throw new Qa(Ya.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 Us(t,new Es(i))}if(n instanceof hg)return Us(t,n._key);throw new Qa(Ya.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+ag(n)+".")}function bm(t,e){if(!Array.isArray(t)||0===t.length)throw new Qa(Ya.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new Qa(Ya.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.")}function Cm(t,e,n){if(!n.isEqual(e))throw new Qa(Ya.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 xm=function(){function t(){}return t.prototype.convertValue=function(t,e){switch(void 0===e&&(e="none"),As(t)){case 0:return null;case 1:return t.booleanValue;case 2:return xs(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(ws(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 es()}},t.prototype.convertObject=function(t,e){var n=this,i={};return fs(t.fields,function(t,o){i[t]=n.convertValue(o,e)}),i},t.prototype.convertGeoPoint=function(t){return new Tg(xs(t.latitude),xs(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=Ps(t);return null==n?null:this.convertValue(n,e);case"estimate":return this.convertTimestamp(Ms(t));default:return null}},t.prototype.convertTimestamp=function(t){var e=Cs(t);return new us(e.seconds,e.nanos)},t.prototype.convertDocumentKey=function(t,e){var n=gs.fromString(t);ns(ml(n));var i=new Yp(n.get(1),n.get(3)),o=new Es(n.popFirst(5));return i.isEqual(e)||$a("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 wm(t,e,n){return t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e}var Om=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return(0,Ln.ZT)(e,t),e.prototype.convertBytes=function(t){return new Mg(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);
1return new hg(this.firestore,null,e)},e}(xm),Pm=function(){function t(t,e){this._firestore=t,this._commitHandler=e,this._mutations=[],this._committed=!1,this._dataReader=Lg(t)}return t.prototype.set=function(t,e,n){this._verifyNotCommitted();var i=Mm(t,this._firestore),o=wm(i.converter,e,n),r=Dg(this._dataReader,"WriteBatch.set",i._key,o,null!==i.converter,n);return this._mutations.push(r.toMutation(i._key,Qc.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,a=Mm(t,this._firestore);return r="string"==typeof(e=(0,Dn.m9)(e))||e instanceof Pg?Gg(this._dataReader,"WriteBatch.update",a._key,e,n,i):zg(this._dataReader,"WriteBatch.update",a._key,e),this._mutations.push(r.toMutation(a._key,Qc.exists(!0))),this},t.prototype.delete=function(t){this._verifyNotCommitted();var e=Mm(t,this._firestore);return this._mutations=this._mutations.concat(new uu(e._key,Qc.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 Qa(Ya.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}();function Mm(t,e){if((t=(0,Dn.m9)(t)).firestore!==e)throw new Qa(Ya.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}var km=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return(0,Ln.ZT)(e,t),e.prototype.convertBytes=function(t){return new Mg(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return new hg(this.firestore,null,e)},e}(xm);function Tm(t,e,n){t=sg(t,hg);var i=sg(t.firestore,bg),o=wm(t.converter,e,n);return Am(i,[Dg(Lg(i),"setDoc",t._key,o,null!==t.converter,n).toMutation(t._key,Qc.none())])}function Sm(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];t=sg(t,hg);var r=sg(t.firestore,bg),a=Lg(r);return Am(r,[("string"==typeof(e=(0,Dn.m9)(e))||e instanceof Pg?Gg(a,"updateDoc",t._key,e,n,i):zg(a,"updateDoc",t._key,e)).toMutation(t._key,Qc.exists(!0))])}function Em(t){for(var e,n,i,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];t=(0,Dn.m9)(t);var a={includeMetadataChanges:!1},s=0;"object"!=typeof o[s]||_g(o[s])||(a=o[s],s++);var c,u,l,h={includeMetadataChanges:a.includeMetadataChanges};if(_g(o[s])){var f=o[s];o[s]=null===(e=f.next)||void 0===e?void 0:e.bind(f),o[s+1]=null===(n=f.error)||void 0===n?void 0:n.bind(f),o[s+2]=null===(i=f.complete)||void 0===i?void 0:i.bind(f)}if(t instanceof hg)u=sg(t.firestore,bg),l=mc(t._key.path),c={next:function(e){o[s]&&o[s](Im(u,t,e))},error:o[s+1],complete:o[s+2]};else{var d=sg(t,fg);u=sg(d.firestore,bg),l=d._query;var p=new km(u);c={next:function(t){o[s]&&o[s](new sm(u,p,d,t))},error:o[s+1],complete:o[s+2]},lm(t._query)}return function(t,e,n,i){var o=this,r=new Ap(i),a=new jd(e,r,n);return t.asyncQueue.enqueueAndForget(function(){return(0,Ln.mG)(o,void 0,void 0,function(){var e;return(0,Ln.Jh)(this,function(n){switch(n.label){case 0:return e=Dd,[4,zp(t)];case 1:return[2,e.apply(void 0,[n.sent(),a])]}})})}),function(){r.Wo(),t.asyncQueue.enqueueAndForget(function(){return(0,Ln.mG)(o,void 0,void 0,function(){var e;return(0,Ln.Jh)(this,function(n){switch(n.label){case 0:return e=Fd,[4,zp(t)];case 1:return[2,e.apply(void 0,[n.sent(),a])]}})})})}}(Cg(u),l,h,c)}function Am(t,e){return function(t,e){var n=this,i=new ql;return t.asyncQueue.enqueueAndForget(function(){return(0,Ln.mG)(n,void 0,void 0,function(){var n;return(0,Ln.Jh)(this,function(o){switch(o.label){case 0:return n=Xd,[4,Vp(t)];case 1:return[2,n.apply(void 0,[o.sent(),e,i])]}})})}),i.promise}(Cg(t),e)}function Im(t,e,n){var i=n.docs.get(e._key),o=new km(t);return new rm(t,o,e._key,i,new om(n.hasPendingWrites,n.fromCache),e.converter)}var Rm=function(t){function e(e,n){var i=this;return(i=t.call(this,e,n)||this)._firestore=e,i}return(0,Ln.ZT)(e,t),e.prototype.get=function(e){var n=this,i=Mm(e,this._firestore),o=new km(this._firestore);return t.prototype.get.call(this,e).then(function(t){return new rm(n._firestore,o,i._
1key,t._document,new om(!1,!1),i.converter)})},e}(function(){function t(t,e){this._firestore=t,this._transaction=e,this._dataReader=Lg(t)}return t.prototype.get=function(t){var e=this,n=Mm(t,this._firestore),i=new Om(this._firestore);return this._transaction.lookup([n._key]).then(function(t){if(!t||1!==t.length)return es();var o=t[0];if(o.isFoundDocument())return new em(e._firestore,i,o.key,o,n.converter);if(o.isNoDocument())return new em(e._firestore,i,n._key,null,n.converter);throw es()})},t.prototype.set=function(t,e,n){var i=Mm(t,this._firestore),o=wm(i.converter,e,n),r=Dg(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,a=Mm(t,this._firestore);return r="string"==typeof(e=(0,Dn.m9)(e))||e instanceof Pg?Gg(this._dataReader,"Transaction.update",a._key,e,n,i):zg(this._dataReader,"Transaction.update",a._key,e),this._transaction.update(a._key,r),this},t.prototype.delete=function(t){var e=Mm(t,this._firestore);return this._transaction.delete(e._key),this},t}());function Nm(){if("undefined"==typeof Uint8Array)throw new Qa(Ya.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}
1function Lm(){if("undefined"==typeof atob)throw new Qa(Ya.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var Dm=function(){function t(t){this._delegate=t}return t.fromBase64String=function(e){return Lm(),new t(Mg.fromBase64String(e))},t.fromUint8Array=function(e){return Nm(),new t(Mg.fromUint8Array(e))},t.prototype.toBase64=function(){return Lm(),this._delegate.toBase64()},t.prototype.toUint8Array=function(){return Nm(),this._delegate.toUint8Array()},t.prototype.isEqual=function(t){return this._delegate.isEqual(t._delegate)},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t}(),Fm=function(){function t(){}return t.prototype.enableIndexedDbPersistence=function(t,e){return function(t,e){Og(t=sg(t,bg));var n=Cg(t),i=t._freezeSettings(),o=new Ep;return wg(n,o,new Tp(o,i.cacheSizeBytes,null==e?void 0:e.forceOwnership))}(t._delegate,{forceOwnership:e})},t.prototype.enableMultiTabIndexedDbPersistence=function(t){return function(t){Og(t=sg(t,bg));var e=Cg(t),n=t._freezeSettings(),i=new Ep;return wg(e,i,new Sp(i,n.cacheSizeBytes))}(t._delegate)},t.prototype.clearIndexedDbPersistence=function(t){return function(t){var e=this;if(t._initialized&&!t._terminated)throw new Qa(Ya.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");var n=new ql;return t._queue.enqueueAndForgetEvenWhileRestricted(function(){return(0,Ln.mG)(e,void 0,void 0,function(){var e;return(0,Ln.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,function(t){return(0,Ln.mG)(this,void 0,void 0,function(){return(0,Ln.Jh)(this,function(e){switch(e.label){case 0:return zl.yt()?[4,zl.delete(t+"main")]:[2,Promise.resolve()];case 1:return e.sent(),[2]}})})}(tf(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}(),Um=function(){function t(t,e,n){var i=this;this._delegate=e,this.Zc=n,this.INTERNAL={delete:function(){return i.terminate()}},t instanceof Yp||(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||Xa("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=sg(t,lg))._getSettings();if("firestore.googleapis.com"!==r.host&&r.host!==e&&Xa("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 a,s;if("string"==typeof i.mockUserToken)a=i.mockUserToken,s=If.MOCK_USER;else{a=(0,Dn.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 Qa(Ya.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");s=new If(c)}t._credentials=new Kp(new Jp(a,s))}}(this._delegate,t,e,n)},t.prototype.enableNetwork=function(){return function(t){var e=this;return t.asyncQueue.enqueue(function(){return(0,Ln.mG)(e,void 0,void 0,function(){var e,n;return(0,Ln.Jh)(this,function(i){switch(i.label){case 0:return[4,Zp(t)];case 1:return e=i.sent(),[4,jp(t)];case 2:return n=i.sent(),[2,(e.setNetworkEnabled(!0),o=n,r=is(o),r.Or.delete(0),od(r))]}var o,r})})})}(Cg(sg(this._delegate,bg)))},t.prototype.disableNetwork=function(){return function(t){var e=this;return t.asyncQueue.enqueue(function(){return(0,Ln.mG)(e,void 0,void 0,function(){var e,n;return(0,Ln.Jh)(this,function(i){switch(i.label){case 0:return[4,Zp(t)];case 1:return e=i.sent(),[4,jp(t)];case 2:return n=i.sent(),[2,(e.setNetworkEnabled(!1),function(t){return(0,Ln.mG)(this,void 0,void 0,function(){var e;return(0,Ln.Jh)(this,function(n){switch(n.label){case 0:return(e=is(t)).Or.add(0),[4,rd(e)];case 1:return n.sent(),e.Br.set("Offline"),[2]}})})}(n))]}})})})}(Cg(sg(this._delegate,bg)))},t.prototype.enablePersistence=function(t){var e=!1,n=!1;return t&&ig("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 ql;return t.asyncQueue.enqueueAndForget(function(){return(0,Ln.mG)(e,void 0,void 0,function(){var e;return(0,Ln.Jh)(this,function(i){switch(i.label){case 0:return e=rp,[4,Vp(t)];case 1:return[2,e.apply(void 0,[i.sent(),n])]}})})}),n.promise}(Cg(sg(this._delegate,bg)))},t.prototype.onSnapshotsInSync=function(t){return e=t,function(t,e){var n=this,i=new Ap(e);return t.asyncQueue.enqueueAndForget(function(){return(0,Ln.mG)(n,void 0,void 0,function(){var e;return(0,Ln.Jh)(this,function(n){switch(n.label){case 0:return e=function(t,e){is(t).Gr.add(e),e.next()},[4,zp(t)];case 1:return[2,e.apply(void 0,[n.sent(),i])]}})})}),function(){i.Wo(),t.asyncQueue.enqueueAndForget(function(){return(0,Ln.mG)(n,void 0,void 0,function(){var e;return(0,Ln.Jh)(this,function(n){switch(n.label){case 0:return e=function(t,e){is(t).Gr.delete(e)},[4,zp(t)];case 1:return[2,e.apply(void 0,[n.sent(),i])]}})})})}}(Cg(sg(this._delegate,bg)),_g(e)?e:{next:e});var e},Object.defineProperty(t.prototype,"app",{get:function(){if(!this.tu)throw new Qa(Ya.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 $m(this,pg(this._delegate,t))}catch(e){throw Gm(e,"collection()","Firestore.collection()")}},t.prototype.doc=function(t){try{return new zm(this,gg(this._delegate,t))}catch(e){throw Gm(e,"doc()","Firestore.doc()")}},t.prototype.collectionGroup=function(t){try{return new Jm(this,function(t,e){if(t=sg(t,lg),eg("collectionGroup","collection id",e),e.indexOf("/")>=0)throw new Qa(Ya.INVALID_ARGUMENT,"Invalid collection ID '"+e+"' passed to function collectionGroup(). Collection IDs must not contain '/'.");return new fg(t,null,(n=e,new pc(gs.emptyPath(),n)));var n}(this._delegate,t))}catch(e){throw Gm(e,"collectionGroup()","Firestore.collectionGroup()")}},t.prototype.runTransaction=function(t){var e,n=this;return function(t,e){var n=this,i=new ql;return t.asyncQueue.enqueueAndForget(function(){return(0,Ln.mG)(n,void 0,void 0,function(){var n;return(0,Ln.Jh)(this,function(o){switch(o.label){case 0:return[4,(r=t,Up(r).then(function(t){return t.datastore}))];case 1:return n=o.sent(),new Rp(t.asyncQueue,n,e,i).run(),[2]}var r})})}),i.promise}(Cg(e=this._delegate),function(i){return function(e){return t(new qm(n,e))}(new Rm(e,i))})},t.prototype.batch=function(){var t=this;return Cg(this._delegate),new jm(new Pm(this._delegate,function(e){return Am(t._delegate,e)}))},t.prototype.loadBundle=function(t){throw new Qa(Ya.FAILED_PRECONDITION,'"loadBundle()" does not exist, have you imported "firebase/firestore/bundle"?')},t.prototype.namedQuery=function(t){throw new Qa(Ya.FAILED_PRECONDITION,'"namedQuery()" does not exist, have you imported "firebase/firestore/bundle"?')},t}(),Zm=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return(0,Ln.ZT)(e,t),e.prototype.convertBytes=function(t){return new Dm(new Mg(t))},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return zm.eu(e,this.firestore,null)},e}(xm),qm=function(){function t(t,e){this._firestore=t,this._delegate=e,this._userDataWriter=new Zm(t)}return t.prototype.get=function(t){var e=this,n=Xm(t);return this._delegate.get(n).then(function(t){return new Ym(e._firestore,new rm(e._firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,n.converter))})},t.prototype.set=function(t,e,n){var i=Xm(t);return n?(ng("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 a=Xm(t);return 2===arguments.length?this._delegate.update(a,e):(i=this._delegate).update.apply(i,(0,Ln.ev)([a,e,n],o)),this},t.prototype.delete=function(t){var e=Xm(t);return this._delegate.delete(e),this},t}(),jm=function(){function t(t){this._delegate=t}return t.prototype.set=function(t,e,n){var i=Xm(t);return n?(ng("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 a=Xm(t);return 2===arguments.length?this._delegate.update(a,e):(i=this._delegate).update.apply(i,(0,Ln.ev)([a,e,n],o)),this},t.prototype.delete=function(t){var e=Xm(t);return this._delegate.delete(e),this},t.prototype.commit=function(){return this._delegate.commit()},t}(),Vm=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 am(this._firestore._delegate,this._userDataWriter,t._key,t._document,t.metadata,null);return this._delegate.fromFirestore(new Qm(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 Zm(e),n),o.set(n,r)),r},t}();Vm.su=new WeakMap;var zm=function(){function t(t,e){this.firestore=t,this._delegate=e,this._userDataWriter=new Zm(t)}return t.iu=function(e,n,i){if(e.length%2!=0)throw new Qa(Ya.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 hg(n._delegate,i,new Es(e)))},t.eu=function(e,n,i){return new t(n,new hg(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 $m(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 $m(this.firestore,pg(this._delegate,t))}catch(e){throw Gm(e,"collection()","DocumentReference.collection()")}},t.prototype.isEqual=function(t){return(t=(0,Dn.m9)(t))instanceof hg&&mg(this._delegate,t)},t.prototype.set=function(t,e){e=ng("DocumentReference.set",e);try{return e?Tm(this._delegate,t,e):Tm(this._delegate,t)}catch(n){throw Gm(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?Sm(this._delegate,t):Sm.apply(void 0,(0,Ln.ev)([this._delegate,t,e],n))}catch(o){throw Gm(o,"updateDoc()","DocumentReference.update()")}},t.prototype.delete=function(){return Am(sg((t=this._delegate).firestore,bg),[new uu(t._key,Qc.none())]);var t},t.prototype.onSnapshot=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=Bm(e),o=Hm(e,function(e){return new Ym(t.firestore,new rm(t.firestore._delegate,t._userDataWriter,e._key,e._document,e.metadata,t._delegate.converter))});return Em(this._delegate,i,o)},t.prototype.get=function(t){var e=this;return("cache"===(null==t?void 0:t.source)?function(t){t=sg(t,hg);var e=sg(t.firestore,bg),n=Cg(e),i=new km(e);return function(t,e){var n=this,i=new ql;return t.asyncQueue.enqueueAndForget(function(){return(0,Ln.mG)(n,void 0,void 0,function(){var n;return(0,Ln.Jh)(this,function(o){switch(o.label){case 0:return n=function(t,e,n){return(0,Ln.mG)(this,void 0,void 0,function(){var i,o;return(0,Ln.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(a=t,s=e,c=is(a),c.persistence.runTransaction("read document","readonly",function(t){return c.Mn.mn(t,s)}))];case 1:return(o=r.sent()).isFoundDocument()?n.resolve(o):o.isNoDocument()?n.resolve(null):n.reject(new Qa(Ya.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=Ed(i,"Failed to get document '"+e+" from cache"),n.reject(o),[3,3];case 3:return[2]}var a,s,c})})},[4,qp(t)];case 1:return[2,n.apply(void 0,[o.sent(),e,i])]}})})}),i.promise}(n,t._key).then(function(n){return new rm(e,i,t._key,n,new om(null!==n&&n.hasLocalMutations,!0),t.converter)})}(this._delegate):"server"===(null==t?void 0:t.source)?function(t){t=sg(t,hg);var e=sg(t.firestore,bg);return Gp(Cg(e),t._key,{source:"server"}).then(function(n){return Im(e,t,n)})}(this._delegate):function(t){t=sg(t,hg);var e=sg(t.firestore,bg);return Gp(Cg(e),t._key).then(function(n){return Im(e,t,n)})}(this._delegate)).then(function(t){return new Ym(e.firestore,new rm(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?Vm.nu(this.firestore,e):null))},t}();function Gm(t,e,n){return t.message=t.message.replace(e,n),t}function Bm(t){for(var e=0,n=t;e<n.length;e++){var i=n[e];if("object"==typeof i&&!_g(i))return i}return{}}function Hm(t,e){var n,i,o;return{next:function(t){o.next&&o.next(e(t))},error:null===(n=(o=_g(t[0])?t[0]:_g(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 Ym=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"ref",{get:function(){return new zm(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 um(this._delegate,t._delegate)},t}(),Qm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Ln.ZT)(e,t),e.prototype.data=function(t){return this._delegate.data(t)},e}(Ym),Jm=function(){function t(t,e){this.firestore=t,this._delegate=e,this._userDataWriter=new Zm(t)}return t.prototype.where=function(e,n,i){try{return new t(this.firestore,fm(this._delegate,(r=i,a=n,s=im("where",o=e),new dm(s,a,r))))}catch(o){throw Gm(o,/(orderBy|where)\(\)/,"Query.$1()")}var o,r,a,s},t.prototype.orderBy=function(e,n){try{return new t(this.firestore,fm(this._delegate,function(t,e){void 0===e&&(e="asc");var n=e,i=im("orderBy",t);return new pm(i,n)}(e,n)))}catch(i){throw Gm(i,/(orderBy|where)\(\)/,"Query.$1()")}},t.prototype.limit=function(e){try{return new t(this.firestore,fm(this._delegate,(cg("limit",n=e),new gm("limit",n,"F"))))}catch(n){throw Gm(n,"limit()","Query.limit()")}var n},t.prototype.limitToLast=function(e){try{return new t(this.firestore,fm(this._delegate,(cg("limitToLast",n=e),new gm("limitToLast",n,"L"))))}catch(n){throw Gm(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,fm(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new mm("startAt",t,!0)}).apply(void 0,e)))}catch(i){throw Gm(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,fm(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new mm("startAfter",t,!1)}).apply(void 0,e)))}catch(i){throw Gm(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,fm(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new vm("endBefore",t,!0)}).apply(void 0,e)))}catch(i){throw Gm(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,fm(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new vm("endAt",t,!1)}).apply(void 0,e)))}catch(i){throw Gm(i,"endAt()","Query.endAt()")}},t.prototype.isEqual=function(t){return vg(this._delegate,t._delegate)},t.prototype.get=function(t){var e=this;return("cache"===(null==t?void 0:t.source)?function(t){t=sg(t,fg);var e=sg(t.firestore,bg),n=Cg(e),i=new km(e);return function(t,e){var n=this,i=new ql;return t.asyncQueue.enqueueAndForget(function(){return(0,Ln.mG)(n,void 0,void 0,function(){var n;return(0,Ln.Jh)(this,function(o){switch(o.label){case 0:return n=function(t,e,n){return(0,Ln.mG)(this,void 0,void 0,function(){var i,o,r,a,s;return(0,Ln.Jh)(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,mf(t,e,!0)];case 1:return s=c.sent(),i=new Hd(e,s.Bn),o=i._o(s.documents),r=i.applyChanges(o,!1),n.resolve(r.snapshot),[3,3];case 2:return a=c.sent(),s=Ed(a,"Failed to execute query '"+e+" against cache"),n.reject(s),[3,3];case 3:return[2]}})})},[4,qp(t)];case 1:return[2,n.apply(void 0,[o.sent(),e,i])]}})})}),i.promise}(n,t._query).then(function(n){return new sm(e,i,t,n)})}(this._delegate):"server"===(null==t?void 0:t.source)?function(t){t=sg(t,fg);var e=sg(t.firestore,bg),n=Cg(e),i=new km(e);return Bp(n,t._query,{source:"server"}).then(function(n){return new sm(e,i,t,n)})}(this._delegate):function(t){t=sg(t,fg);var e=sg(t.firestore,bg),n=Cg(e),i=new km(e);return lm(t._query),Bp(n,t._query).then(function(n){return new sm(e,i,t,n)})}(this._delegate)).then(function(t){return new Km(e.firestore,new sm(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=Bm(e),o=Hm(e,function(e){return new Km(t.firestore,new sm(t.firestore._delegate,t._userDataWriter,t._delegate,e._snapshot))});return Em(this._delegate,i,o)},t.prototype.withConverter=function(e){return new t(this.firestore,this._delegate.withConverter(e?Vm.nu(this.firestore,e):null))},t}(),Wm=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 Qm(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}(),Km=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 Qm(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 Wm(e._firestore,t)})},t.prototype.forEach=function(t,e){var n=this;this._delegate.forEach(function(i){t.call(e,new Qm(n._firestore,i))})},t.prototype.isEqual=function(t){return um(this._delegate,t._delegate)},t}(),$m=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,Ln.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 zm(this.firestore,t):null},enumerable:!1,configurable:!0}),e.prototype.doc=function(t){try{return new zm(this.firestore,void 0===t?gg(this._delegate):gg(this._delegate,t))}catch(e){throw Gm(e,"doc()","CollectionReference.doc()")}},e.prototype.add=function(t){var e,n,i,o,r,a=this;return(e=this._delegate,n=t,i=sg(e.firestore,bg),o=gg(e),r=wm(e.converter,n),Am(i,[Dg(Lg(e.firestore),"addDoc",o._key,r,null!==e.converter,{}).toMutation(o._key,Qc.exists(!1))]).then(function(){return o})).then(function(t){return new zm(a.firestore,t)})},e.prototype.isEqual=function(t){return mg(this._delegate,t._delegate)},e.prototype.withConverter=function(t){return new e(this.firestore,this._delegate.withConverter(t?Vm.nu(this.firestore,t):null))},e}(Jm);function Xm(t){return sg(t,hg)}var tv=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._delegate=new(Pg.bind.apply(Pg,(0,Ln.ev)([void 0],t)))}return t.documentId=function(){return new t(vs.keyField().canonicalString())},t.prototype.isEqual=function(t){return(t=(0,Dn.m9)(t))instanceof Pg&&this._delegate._internalPath.isEqual(t._internalPath)},t}(),ev=function(){function t(t){this._delegate=t}return t.serverTimestamp=function(){var e=new Zg("serverTimestamp");return e._methodName="FieldValue.serverTimestamp",new t(e)},t.delete=function(){var e=new Fg("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 qg("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 jg("arrayRemove",t)}).apply(void 0,e);return i._methodName="FieldValue.arrayRemove",new t(i)},t.increment=function(e){var n=new Vg("increment",e);return n._methodName="FieldValue.increment",new t(n)},t.prototype.isEqual=function(t){return this._delegate.isEqual(t._delegate)},t}(),nv=r(6034),iv={Firestore:Um,GeoPoint:Tg,Timestamp:us,Blob:Dm,Transaction:qm,WriteBatch:jm,DocumentReference:zm,DocumentSnapshot:Ym,Query:Jm,QueryDocumentSnapshot:Qm,QuerySnapsh
1ot:Km,CollectionReference:$m,FieldPath:tv,FieldValue:ev,setLogLevel:function(t){Ja.setLogLevel(t)},CACHE_SIZE_UNLIMITED:-1};function ov(t,e){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_n.P;return new jt.y(function(n){var i;return null!=e?e.schedule(function(){i=t.onSnapshot({includeMetadataChanges:!0},n)}):i=t.onSnapshot({includeMetadataChanges:!0},n),function(){null!=i&&i()}})}(t,e)}function rv(t,e){return ov(t,e).pipe((0,Qt.U)(function(t){return{payload:t,type:"query"}}))}function av(t,e){return rv(t,e).pipe(wn(void 0),On(),(0,Qt.U)(function(t){var e=i(t,2),n=e[0],o=e[1],r=o.payload.docChanges(),a=r.map(function(t){return{type:t.type,payload:t}});return n&&JSON.stringify(n.payload.metadata)!==JSON.stringify(o.payload.metadata)&&o.payload.docs.forEach(function(t,e){var i=r.find(function(e){return e.doc.ref.isEqual(t.ref)}),o=null==n?void 0:n.payload.docs.find(function(e){return e.ref.isEqual(t.ref)});i&&JSON.stringify(i.doc.metadata)===JSON.stringify(t.metadata)||!i&&o&&JSON.stringify(o.metadata)===JSON.stringify(t.metadata)||a.push({type:"modified",payload:{oldIndex:e,newIndex:e,type:"modified",doc:t}})}),a}))}function sv(t,e,n){return av(t,n).pipe(kn(function(t,n){return function(t,e,n){return e.forEach(function(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 cv(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){var n=t.slice();return n.splice(e.oldIndex,1),n.splice(e.newIndex,0,e),n}return cv(t,e.newIndex,1,e)}break;case"removed":if(t[e.oldIndex]&&t[e.oldIndex].doc.ref.isEqual(e.doc.ref))return cv(t,e.oldIndex,1)}return t}(t,e))}),t}(t,n.map(function(t){return t.payload}),e)},[]),En(),(0,Qt.U)(function(t){return t.map(function(t){return{type:t.type,payload:t}})}))}function cv(t,e,n){for(var i=t.slice(),o=arguments.length,r=new Array(o>3?o-3:0),a=3;a<o;a++)r[a-3]=arguments[a];return i.splice.apply(i,[e,n].concat(r)),i}function uv(t){return(!t||0===t.length)&&(t=["added","removed","modified"]),t}!function(t){t.INTERNAL.registerComponent(new nv.wA("firestore",function(t){return e=t.getProvider("app").getImmediate(),n=t.getProvider("auth-internal"),new Um(e,new bg(e,n),new Fm);var e,n},"PUBLIC").setServiceProps(Object.assign({},iv))),t.registerVersion("@firebase/firestore","2.4.1")}(Nn.Z);var lv=function(){return g(function t(e,n,i){v(this,t),this.ref=e,this.query=n,this.afs=i},[{key:"stateChanges",value:function(t){var e=av(this.query,this.afs.schedulers.outsideAngular);return t&&t.length>0&&(e=e.pipe((0,Qt.U)(function(e){return e.filter(function(e){return t.indexOf(e.type)>-1})}))),e.pipe(wn(void 0),On(),Bt(function(t){var e=i(t,2),n=e[0];return e[1].length>0||!n}),(0,Qt.U)(function(t){var e=i(t,2);e[0];return e[1]}),this.afs.keepUnstableUntilFirst)}},{key:"auditTrail",value:function(t){return this.stateChanges(t).pipe(kn(function(t,e){return[].concat(u(t),u(e))},[]))}},{key:"snapshotChanges",value:function(t){var e=uv(t);return sv(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return rv(this.query,this.afs.schedulers.outsideAngular).pipe((0,Qt.U)(function(e){return e.payload.docs.map(function(e){return t.idField?Object.assign(Object.assign({},e.data()),n({},t.idField,e.id)):e.data()})}),this.afs.keepUnstableUntilFirst)}},{key:"get",value:function(t){return(0,Ae.D)(this.query.get(t)).pipe((0,Re.QV)(this.afs.schedulers.insideAngular))}},{key:"add",value:function(t){return this.ref.add(t)}},{key:"doc",value:function(t){return new hv(this.ref.doc(t),this.afs)}}])}(),hv=function(){return g(function t(e,n){v(this,t),this.ref=e,this.afs=n},[{key:"set",value:function(t,e){return this.ref.set(t,e)}},{key:"update",value:function(t){return this.ref.update(t)}},{key:"delete",value:function(){return this.ref.delete()}},{key:"collection",value:function(t,e){var n=vv(this.ref.collection(t),e),i=n.ref,o=n.query;return new lv(i,o,this.afs)}},{key:"snapshotChanges",value:function(){return function(t,e){return ov(t,e).pipe(wn(void 0),On(),(0,Qt.U)(function(t){var e=i(t,2),n=e[0],o=e[1];return o.exists?(null==n?void 0:n.exists)?{payload:o,type:"modified"}:{payload:o,type:"added"}:{payload:o,type:"removed"}}))}(this.ref,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.snapshotChanges().pipe((0,Qt.U)(function(e){var i=e.payload;return t.idField?Object.assign(Object.assign({},i.data()),n({},t.idField,i.id)):i.data()}))}},{key:"get",value:function(t){return(0,Ae.D)(this.ref.get(t)).pipe((0,Re.QV)(this.afs.schedulers.insideAngular))}}])}(),fv=function(){return g(function t(e,n){v(this,t),this.query=e,this.afs=n},[{key:"stateChanges",value:function(t){return t&&0!==t.length?av(this.query,this.afs.schedulers.outsideAngular).pipe((0,Qt.U)(function(e){return e.filter(function(e){return t.indexOf(e.type)>-1})}),Bt(function(t){return t.length>0}),this.afs.keepUnstableUntilFirst):av(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"auditTrail",value:function(t){return this.stateChanges(t).pipe(kn(function(t,e){return[].concat(u(t),u(e))},[]))}},{key:"snapshotChanges",value:function(t){var e=uv(t);return sv(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return rv(this.query,this.afs.schedulers.outsideAngular).pipe((0,Qt.U)(function(e){return e.payload.docs.map(function(e){return t.idField?Object.assign(n({},t.idField,e.id),e.data()):e.data()})}),this.afs.keepUnstableUntilFirst)}},{key:"get",value:function(t){return(0,Ae.D)(this.query.get(t)).pipe((0,Re.QV)(this.afs.schedulers.insideAngular))}}])}(),dv=new s.OlP("angularfire2.enableFirestorePersistence"),pv=new s.OlP("angularfire2.firestore.persistenceSettings"),gv=new s.OlP("angularfire2.firestore.settings"),mv=new s.OlP("angularfire2.firestore.use-emulator");function vv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return{query:e(t),ref:t}}var yv=function(){var t=function(){return g(function t(e,n,o,r,a,s,c,l,h){v(this,t),this.schedulers=new Se.HU(s),this.keepUnstableUntilFirst=(0,Se.ss)(this.schedulers);var f=(0,Se.on)(e,s,n);!Rn.Z.auth&&h&&(0,Se.yq)();var d=l,p=i((0,Se.sI)("".concat(f.name,".firestore"),"AngularFirestore",f,function(){var t=s.runOutsideAngular(function(){return f.firestore()});if(r&&t.settings(r),d&&t.useEmulator.apply(t,u(d)),o&&!it(a)){return[t,s.runOutsideAngular(function(){try{return(0,Ae.D)(t.enablePersistence(c||void 0).then(function(){return!0},function(){return!1}))}catch(e){return"undefined"!=typeof console&&console.warn(e),(0,qt.of)(!1)}})]}return[t,(0,qt.of)(!1)]},[r,d,o]),2);this.firestore=p[0],this.persistenceEnabled$=p[1]}
1,[{key:"collection",value:function(t,e){var n=vv("string"==typeof t?this.firestore.collection(t):t,e),i=n.ref,o=n.query,r=this.schedulers.ngZone.run(function(){return i});return new lv(r,o,this)}},{key:"collectionGroup",value:function(t,e){var n=e||function(t){return t},i=this.firestore.collectionGroup(t);return new fv(n(i),this)}},{key:"doc",value:function(t){var e;e="string"==typeof t?this.firestore.doc(t):t;var n=this.schedulers.ngZone.run(function(){return e});return new hv(n,this)}},{key:"createId",value:function(){return this.firestore.collection("_").doc().id}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(Se.Dh),s.LFG(Se.xv,8),s.LFG(dv,8),s.LFG(gv,8),s.LFG(s.Lbi),s.LFG(s.R0b),s.LFG(pv,8),s.LFG(mv,8),s.LFG(hn,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Se.Dh),s.LFG(Se.xv,8),s.LFG(dv,8),s.LFG(gv,8),s.LFG(s.Lbi),s.LFG(s.R0b),s.LFG(pv,8),s.LFG(mv,8),s.LFG(hn,8))},token:t,providedIn:"any"}),t}(),_v=function(){var t=function(){function t(){v(this,t)}return g(t,null,[{key:"enablePersistence",value:function(e){return{ngModule:t,providers:[{provide:dv,useValue:!0},{provide:pv,useValue:e}]}}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[yv]}),t}(),bv=g(function t(){v(this,t)}),Cv="*";function xv(t,e){return{type:7,name:t,definitions:e,options:{}}}function wv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function Ov(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function Pv(t){return{type:6,styles:t,offset:null}}function Mv(t,e,n){return{type:0,name:t,styles:e,options:n}}function kv(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function Tv(t){Promise.resolve(null).then(t)}var Sv=function(){return g(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;v(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n},[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;Tv(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}])}(),Ev=function(){return g(function t(e){var n=this;v(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var i=0,o=0,r=0,a=this.players.length;0==a?Tv(function(){return n._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++i==a&&n._onFinish()}),t.onDestroy(function(){++o==a&&n._onDestroy()}),t.onStart(function(){++r==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)},[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}}
1,{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(t,e){return null===t||e.totalTime>t.totalTime?e:t},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}])}();function Av(){return"undefined"!=typeof window&&void 0!==window.document}function Iv(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Rv(t){switch(t.length){case 0:return new Sv;case 1:return t[0];default:return new Ev(t)}}function Nv(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],c=-1,u=null;if(i.forEach(function(t){var n=t.offset,i=n==c,l=i&&u||{};Object.keys(t).forEach(function(n){var i=n,s=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),s){case"!":s=o[n];break;case Cv:s=r[n];break;default:s=e.normalizeStyleValue(n,i,s,a)}l[i]=s}),i||s.push(l),u=l,c=n}),a.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(a.join(l)))}return s}function Lv(t,e,n,i){switch(e){case"start":t.onStart(function(){return i(n&&Dv(n,"start",t))});break;case"done":t.onDone(function(){return i(n&&Dv(n,"done",t))});break;case"destroy":t.onDestroy(function(){return i(n&&Dv(n,"destroy",t))})}}function Dv(t,e,n){var i=n.totalTime,o=Fv(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 Fv(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:n,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function Uv(t,e,n){var i;return t instanceof Map?(i=t.get(e))||t.set(e,i=n):(i=t[e])||(i=t[e]=n),i}function Zv(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var qv=function(t,e){return!1},jv=function(t,e){return!1},Vv=function(t,e,n){return[]},zv=Iv();(zv||"undefined"!=typeof Element)&&(qv=Av()?function(t,e){for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:function(t,e){return t.contains(e)},jv=function(){if(zv||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:jv}(),Vv=function(t,e,n){var i=[];if(n)for(var o=t.querySelectorAll(e),r=0;r<o.length;r++)i.push(o[r]);else{var a=t.querySelector(e);a&&i.push(a)}return i});var Gv=null,Bv=!1;function Hv(t){Gv||(Gv=("undefined"!=typeof document?document.body:null)||{},Bv=!!Gv.style&&"WebkitAppearance"in Gv.style);var e=!0;return Gv.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(!(e=t in Gv.style)&&Bv&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Gv.style)),e}var Yv=jv,Qv=qv,Jv=Vv;function Wv(t){var e={};return Object.keys(t).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}var Kv=function(){var t=function(){return g(function t(){v(this,t)},[{key:"validateStyleProperty",value:function(t){return Hv(t)}},{key:"matchesElement",value:function(t,e){return Yv(t,e)}},{key:"containsElement",value:function(t,e){return Qv(t,e)}},{key:"query",value:function(t,e,n){return Jv(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return n||""}},{key:"animate",value:function(t,e,n,i,o){return new Sv(n,i)}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),$v=function(){var t=g(function t(){v(this,t)});return t.NOOP=new Kv,t}(),Xv="ng-enter",ty="ng-leave",ey="ng-trigger",ny=".ng-trigger",iy="ng-animating",oy=".ng-animating";function ry(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ay(parseFloat(e[1]),e[2])}function ay(t,e){return"s"===e?1e3*t:t}function sy(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var i,o=0,r="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'.concat(t,'" is invali
1d.')),{duration:0,delay:0,easing:""};i=ay(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(o=ay(parseFloat(s),a[4]));var c=a[5];c&&(r=c)}else i=t;if(!n){var u=!1,l=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),u=!0),o<0&&(e.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&e.splice(l,0,'The provided timing value "'.concat(t,'" is invalid.'))}return{duration:i,delay:o,easing:r}}(t,e,n)}function cy(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function uy(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var i in t)n[i]=t[i];else cy(t,n);return n}function ly(t,e,n){return n?e+":"+n+";":""}function hy(t){for(var e="",n=0;n<t.style.length;n++){var i=t.style.item(n);e+=ly(0,i,t.style.getPropertyValue(i))}for(var o in t.style)t.style.hasOwnProperty(o)&&!o.startsWith("_")&&(e+=ly(0,Cy(o),t.style[o]));t.setAttribute("style",e)}function fy(t,e,n){t.style&&(Object.keys(e).forEach(function(i){var o=by(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[o]),t.style[o]=e[i]}),Iv()&&hy(t))}function dy(t,e){t.style&&(Object.keys(e).forEach(function(e){var n=by(e);t.style[n]=""}),Iv()&&hy(t))}function py(t){return Array.isArray(t)?1==t.length?t[0]:Ov(t):t}var gy=new RegExp("{{\\s*(.+?)\\s*}}","g");function my(t){var e=[];if("string"==typeof t){for(var n;n=gy.exec(t);)e.push(n[1]);gy.lastIndex=0}return e}function vy(t,e,n){var i=t.toString(),o=i.replace(gy,function(t,i){var o=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param ".concat(i)),o=""),o.toString()});return o==i?t:o}function yy(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var _y=/-+([a-z0-9])/g;function by(t){return t.replace(_y,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e[1].toUpperCase()})}function Cy(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function xy(t,e){return 0===t||0===e}function wy(t,e,n){var i=Object.keys(n);if(i.length&&e.length){var o=e[0],r=[];if(i.forEach(function(t){o.hasOwnProperty(t)||r.push(t),o[t]=n[t]}),r.length)for(var a=function(){var n=e[s];r.forEach(function(e){n[e]=Py(t,e)})},s=1;s<e.length;s++)a()}return e}function Oy(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 #".concat(e.type))}}function Py(t,e){return window.getComputedStyle(t)[e]}function My(t,e){var n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(function(t){return function(t,e,n){if(":"==t[0]){var i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e)<parseFloat(t)};default:return e.push('The transition alias value "'.concat(t,'" is not supported')),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var o=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push('The provided transition expression "'.concat(t,'" is not supported')),e;var r=o[1],a=o[2],s=o[3];e.push(Sy(r,s)),"<"==a[0]&&("*"!=r||"*"!=s)&&e.push(Sy(s,r))}(t,n,e)}):n.push(t),n}var ky=new Set(["true","1"]),Ty=new Set(["false","0"]);function Sy(t,e){var n=ky.has(t)||Ty.has(t),i=ky.has(e)||Ty.has(e);return function(o,r){var a="*"==t||t==o,s="*"==e||e==r;return!a&&n&&"boolean"==typeof o&&(a=o?ky.has(t):Ty.has(t)),!s&&i&&"boolean"==typeof r&&(s=r?ky.has(e):Ty.has(e)),a&&s}}var Ey=new RegExp("s*:selfs*,?","g");function Ay(t,e,n){return new Iy(t).build(e,n)}var Iy=function(){return g(function t(e){v(this,t),this._driver=e},[{key:"build",value:function(t,e){var n=new Ry(e);return this._resetContextStyleTimingState(n),Oy(this,py(t),n)}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,e){var n=this,i=e.queryCount=0,o=e.depCount=0,r=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(t){if(n._resetContextStyleTimingState(e),0==t.type){var s=t,c=s.name;
1c.toString().split(/\s*,\s*/).forEach(function(t){s.name=t,r.push(n.visitState(s,e))}),s.name=c}else if(1==t.type){var u=n.visitTransition(t,e);i+=u.queryCount,o+=u.depCount,a.push(u)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}},{key:"visitState",value:function(t,e){var n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){var o=new Set,r=i||{};if(n.styles.forEach(function(t){if(Ny(t)){var e=t;Object.keys(e).forEach(function(t){my(e[t]).forEach(function(t){r.hasOwnProperty(t)||o.add(t)})})}}),o.size){var a=yy(o.values());e.errors.push('state("'.concat(t.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(t,e){e.queryCount=0,e.depCount=0;var n=Oy(this,py(t.animation),e);return{type:1,matchers:My(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Ly(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return Oy(n,t,e)}),options:Ly(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,i=e.currentTime,o=0,r=t.steps.map(function(t){e.currentTime=i;var r=Oy(n,t,e);return o=Math.max(o,e.currentTime),r});return e.currentTime=o,{type:3,steps:r,options:Ly(t.options)}}},{key:"visitAnimate",value:function(t,e){var n=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Dy(sy(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var o=Dy(0,0,"");return o.dynamic=!0,o.strValue=i,o}return Dy((n=n||sy(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;var i,o=t.styles?t.styles:Pv({});if(5==o.type)i=this.visitKeyframes(o,e);else{var r=t.styles,a=!1;if(!r){a=!0;var s={};n.easing&&(s.easing=n.easing),r=Pv(s)}e.currentTime+=n.duration+n.delay;var c=this.visitStyle(r,e);c.isEmptyStep=a,i=c}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==Cv?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)}):n.push(t.styles);var i=!1,o=null;return n.forEach(function(t){if(Ny(t)){var e=t,n=e.easing;if(n&&(o=n,delete e.easing),!i)for(var r in e)if(e[r].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,i=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a=e.collectedStyles[e.currentQuerySelector],s=a[i],c=!0;s&&(r!=o&&r>=s.startTime&&o<=s.endTime&&(e.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(s.startTime,'ms" and "').concat(s.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(r,'ms" and "').concat(o,'ms"')),c=!1),r=s.startTime),c&&(a[i]={startTime:r,endTime:o}),e.options&&function(t,e,n){var i=e.params||{},o=my(t);o.length&&o.forEach(function(t){i.hasOwnProperty(t)||n.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))})}(t[i],e.options,e.errors)}else e.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var o=0,r=[],a=!1,s=!1,c=0,u=t.steps.map(function(t){var i=n._makeStyleAst(t,e),u=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(Ny(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(Ny(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),l=0;return null!=u&&(o++,l=i.offset=u),s=s||l<0||l>1,a=a||l<c,c=l,r.push(l),i});s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&e.errors.push("Please ensure that all keyframe offsets are in order");var l=t.steps.length,h=0;o>0&&o<l?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==o&&(h=1/(l-1));var f=l-1,d=e.currentTime,p=e.currentAnimateTimings,g=p.duration;return u.forEach(function(t,o){var a=h>0?o==f?1:h*o:r[o],s=a*g;e.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(t,e),t.offset=a,i.styles.push(t)}),i}},{key:"visitReference",value:function(t,e){return{type:8,animation:Oy(this,py(t.animation),e),options:Ly(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:Ly(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ly(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,o=t.options||{};e.queryCount++,e.currentQuery=t;var r=function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(Ey,"")),t=t.replace(/@\*/g,ny).replace(/@\w+/g,function(t){return ny+"-"+t.substr(1)}).replace(/:animating/g,oy),[t,e]}(t.selector),a=i(r,2),s=a[0],c=a[1];e.currentQuerySelector=n.length?n+" "+s:s,Uv(e.collectedStyles,e.currentQuerySelector,{});var u=Oy(this,py(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:o.limit||0,optional:!!o.optional,includeSelf:c,animation:u,originalSelector:t.selector,options:Ly(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}
1:sy(t.timings,e.errors,!0);return{type:12,animation:Oy(this,py(t.animation),e),timings:n,options:null}}}])}(),Ry=g(function t(e){v(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null});function Ny(t){return!Array.isArray(t)&&"object"==typeof t}function Ly(t){return t?(t=cy(t)).params&&(t.params=function(t){return t?cy(t):null}(t.params)):t={},t}function Dy(t,e,n){return{duration:t,delay:e,easing:n}}function Fy(t,e,n,i,o,r){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}var Uy=function(){return g(function t(){v(this,t),this._map=new Map},[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,i=this._map.get(t);i||this._map.set(t,i=[]),(n=i).push.apply(n,u(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}])}(),Zy=new RegExp(":enter","g"),qy=new RegExp(":leave","g");function jy(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Vy).buildKeyframes(t,e,n,i,o,r,a,s,c,u)}var Vy=function(){return g(function t(){v(this,t)},[{key:"buildKeyframes",value:function(t,e,n,i,o,r,a,s,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new Uy;var l=new Gy(t,e,c,i,o,u,[]);l.options=s,l.currentTimeline.setStyles([r],null,l.errors,s),Oy(this,n,l);var h=l.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,l.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[Fy(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),o=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);o!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var i=e.currentTimeline.currentTime,o=null!=n.duration?ry(n.duration):null,r=null!=n.delay?ry(n.delay):null;return 0!==o&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,o,r);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),Oy(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,i=e.subContextCount,o=e,r=t.options;if(r&&(r.params||r.delay)&&((o=e.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=zy);var a=ry(r.delay);o.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return Oy(n,t,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,i=[],o=e.currentTimeline.currentTime,r=t.options&&t.options.delay?ry(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);r&&s.delayNextStep(r),Oy(n,a,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(o),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return sy(e.params?vy(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var 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}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.o
1ptions),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,o=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(function(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}},{key:"visitQuery",value:function(t,e){var n=this,i=e.currentTimeline.currentTime,o=t.options||{},r=o.delay?ry(o.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=zy);var a=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;var c=null;s.forEach(function(i,o){e.currentQueryIndex=o;var s=e.createSubContext(t.options,i);r&&s.delayNextStep(r),i===e.element&&(c=s.currentTimeline),Oy(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,i=e.currentTimeline,o=t.timings,r=Math.abs(o.duration),a=r*(e.currentQueryTotal-1),s=r*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var c=e.currentTimeline;s&&c.delayNextStep(s);var u=c.currentTime;Oy(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}])}(),zy={},Gy=function(){function t(e,n,i,o,r,a,s,c){v(this,t),this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=zy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new By(this._driver,n,0),s.push(this.currentTimeline)}return g(t,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,e){var n=this;if(t){var i=t,o=this.options;null!=i.duration&&(o.duration=ry(i.duration)),null!=i.delay&&(o.delay=ry(i.delay));var r=i.params;if(r){var a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(function(t){(!e||!a.hasOwnProperty(t))&&(a[t]=vy(r[t],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,o=n||this.element,r=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=zy,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},o=new Hy(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(o),i}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,i,o,r){var a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(Zy,"."+this._enterClassName)).replace(qy,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,u(s))}return!o&&0==a.length&&r.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),a}}])}(),By=function(){function t(e,n,i,o){v(this,t),this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=o,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}
1return g(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||Cv,e._currentKeyframe[t]=Cv}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,i){var o=this;e&&(this._previousKeyframe.easing=e);var r=i&&i.params||{},a=function(t,e){var n,i={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){i[t]=Cv}):uy(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=vy(a[t],r,n);o._pendingStyles[t]=e,o._localTimelineStyles.hasOwnProperty(t)||(o._backFill[t]=o._globalTimelineStyles.hasOwnProperty(t)?o._globalTimelineStyles[t]:Cv),o._updateStyle(t,e)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var i=e._styleSummary[n],o=t._styleSummary[n];(!i||o.time>i.time)&&e._updateStyle(n,o.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(r,a){var s=uy(r,!0);Object.keys(s).forEach(function(t){var i=s[t];"!"==i?e.add(t):i==Cv&&n.add(t)}),i||(s.offset=a/t.duration),o.push(s)});var r=e.size?yy(e.values()):[],a=n.size?yy(n.values()):[];if(i){var s=o[0],c=cy(s);s.offset=0,c.offset=1,o=[s,c]}return Fy(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}])}(),Hy=function(t){function e(t,n,i,o,r,a){var s,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return v(this,e),(s=y(this,e,[t,n,a.delay])).keyframes=i,s.preStyleProps=o,s.postStyleProps=r,s._stretchStartingKeyframe=c,s.timings={duration:a.duration,delay:a.delay,easing:a.easing},s}return b(e,t),g(e,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,o=e.easing;if(this._stretchStartingKeyframe&&n){var r=[],a=i+n,s=n/a,c=uy(t[0],!1);c.offset=0,r.push(c);var u=uy(t[0],!1);u.offset=Yy(s),r.push(u);for(var l=t.length-1,h=1;h<=l;h++){var f=uy(t[h],!1);f.offset=Yy((n+f.offset*i)/a),r.push(f)}i=a,n=0,o="",t=r}return Fy(this.element,t,this.preStyleProps,this.postStyleProps,i,n,o,!0)}}])}(By);function Yy(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var Qy=g(function t(){v(this,t)}),Jy=function(t){function e(){return v(this,e),y(this,e,arguments)}return b(e,t),g(e,[{key:"normalizePropertyName",value:function(t,e){return by(t)}},{key:"normalizeStyleValue",value:function(t,e,n,i){var o="",r=n.toString().trim();if(Wy[e]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return r+o}}])}(Qy),Wy=function(t){var e={};return t.forEach(function(t){return 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 Ky(t,e,n,i,o,r,a,s,c,u,l,h,f){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:r,toState:i,toStyles:a,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:f}}var $y={},Xy=function(){return g(function t(e,n,i){v(this,t),this._triggerName=e,this.ast=n,this._stateStyles=i},[{key:"match",value:function(t,e,n,i){return function(t,e,n,i,o){return t.some(function(t){return t(e,n,i,o)})}(this.ast.matchers,t,e,n,i)}},{key:"buildStyles",value:function(t,e,n){var i=this._stateStyles["*"],o=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return o?o.buildStyles(e,n):r}},{key:"build",value:function(t,e,n,i,o,r,a,s,c,u){var l=[],h=this.ast.options&&this.ast.options.params||$y,f=this.buildStyles(n,a&&a.params||$y,l),d=s&&s.params||$y,p=this.buildStyles(i,d,l),g=new Set,m=new Map,v=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),d)},b=u?[]:jy(t,e,this.ast.animation,o,r,f,p,_,c,l),C=0;if(b.forEach(function(t){C=Math.max(t.duration+t.delay,C)}),l.length)return Ky(e,this._triggerName,n,i,y,f,p,[],[],m,v,C,l);b.forEach(function(t){var n=t.element,i=Uv(m,n,{});t.preStyleProps.forEach(function(t){return i[t]=!0});var o=Uv(v,n,{});t.postStyleProps.forEach(function(t){return o[t]=!0}),n!==e&&g.add(n)});var x=yy(g.values());return Ky(e,this._triggerName,n,i,y,f,p,b,x,m,v,C)}}])}(),t_=function(){return g(function t(e,n,i){v(this,t),this.styles=e,this.defaultParams=n,this.normalizer=i},[{key:"buildStyles",value:function(t,e){var n=this,i={},o=cy(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(o[e]=n)}
1),this.styles.styles.forEach(function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach(function(t){var a=r[t];a.length>1&&(a=vy(a,o,e));var s=n.normalizer.normalizePropertyName(t,e);a=n.normalizer.normalizeStyleValue(t,s,a,e),i[s]=a})}}),i}}])}(),e_=function(){return g(function t(e,n,i){var o=this;v(this,t),this.name=e,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states={},n.states.forEach(function(t){o.states[t.name]=new t_(t.style,t.options&&t.options.params||{},i)}),n_(this.states,"true","1"),n_(this.states,"false","0"),n.transitions.forEach(function(t){o.transitionFactories.push(new Xy(e,t,o.states))}),this.fallbackTransition=function(t,e,n){return new Xy(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},e)}(e,this.states)},[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,e,n,i){return this.transitionFactories.find(function(o){return o.match(t,e,n,i)})||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}])}();function n_(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var i_=new Uy,o_=function(){return g(function t(e,n,i){v(this,t),this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]},[{key:"register",value:function(t,e){var n=[],i=Ay(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[t]=i}},{key:"_buildPlayer",value:function(t,e,n){var i=t.element,o=Nv(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,o,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],a=this._animations[t],s=new Map;if(a?(n=jy(this._driver,e,a,Xv,ty,{},{},o,i_,r)).forEach(function(t){var e=Uv(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(r.push("The requested animation doesn't exist or has already been destroyed"),n=[]),r.length)throw new Error("Unable to create the animation due to the following errors: ".concat(r.join("\n")));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=i._driver.computeStyle(e,n,Cv)})});var c=Rv(n.map(function(t){var e=s.get(t.element);return i._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(function(){return i.destroy(t)}),this.players.push(c),c}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,n,i){var o=Fv(e,"","","");return Lv(this._getPlayer(t),n,o,i),function(){}}},{key:"command",value:function(t,e,n,i){if("register"!=n)if("create"!=n){var 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)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])}}])}(),r_="ng-animate-queued",a_="ng-animate-disabled",s_=".ng-animate-disabled",c_=[],u_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},l_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},h_="__ng_removed",f_=function(){return g(function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";v(this,t),this.namespaceId=n;var i=e&&e.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(i?e.value:e),i){var o=cy(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})},[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}}}])}(),d_="void",p_=new f_(d_),g_=function(){return g(function t(e,n,i){v(this,t),this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
1+e,w_(n,this._hostClassName)},[{key:"listen",value:function(t,e,n,i){var o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if(!function(t){return"start"==t||"done"==t}(n))throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var r=Uv(this._elementListeners,t,[]),a={name:e,phase:n,callback:i};r.push(a);var s=Uv(this._engine.statesByElement,t,{});return s.hasOwnProperty(e)||(w_(t,ey),w_(t,ey+"-"+e),s[e]=p_),function(){o._engine.afterFlush(function(){var t=r.indexOf(a);t>=0&&r.splice(t,1),o._triggers[e]||delete s[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var i=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=this._getTrigger(e),a=new v_(this.id,e,t),s=this._engine.statesByElement.get(t);s||(w_(t,ey),w_(t,ey+"-"+e),this._engine.statesByElement.set(t,s={}));var c=s[e],u=new f_(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s[e]=u,c||(c=p_),u.value===d_||c.value!==u.value){var l=Uv(this._engine.playersByElement,t,[]);l.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=r.matchTransition(c.value,u.value,t,u.params),f=!1;if(!h){if(!o)return;h=r.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:c,toState:u,player:a,isFallbackTransition:f}),f||(w_(t,r_),a.onStart(function(){O_(t,r_)})),a.onDone(function(){var e=i.players.indexOf(a);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var o=n.indexOf(a);o>=0&&n.splice(o,1)}}),this.players.push(a),l.push(a),a}if(!function(t,e){var n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(var o=0;o<n.length;o++){var r=n[o];if(!e.hasOwnProperty(r)||t[r]!==e[r])return!1}return!0}(c.params,u.params)){var d=[],p=r.matchStyles(c.value,c.params,d),g=r.matchStyles(u.value,u.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush(function(){dy(t,p),fy(t,g)})}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,i){e._elementListeners.set(i,n.filter(function(e){return e.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var n=this,i=this._engine.driver.query(t,ny,!0);i.forEach(function(t){if(!t[h_]){var i=n._engine.fetchNamespacesByElement(t);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(t,e,!1,!0)}):n.clearElementCache(t)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(t){return n.clearElementCache(t)})})}},{key:"triggerLeaveAnimation",value:function(t,e,n,i){var o=this,r=this._engine.statesByElement.get(t);if(r){var a=[];if(Object.keys(r).forEach(function(e){if(o._triggers[e]){var n=o.trigger(t,e,d_,i);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Rv(a).onDone(function(){return o._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,n=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(n&&i){var o=new Set;n.forEach(function(n){var r=n.name;if(!o.has(r)){o.add(r);var a=e._triggers[r].fallbackTransition,s=i[r]||p_,c=new f_(d_),u=new v_(e.id,r,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:r,transition:a,fromState:s,toState:c,player:u,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,e){var n=this,i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var o=!1;if(i.totalAnimations){var r=i.players.length?i.playersByQueriedElement.get(t):[];if(r&&r.length)o=!0;else for(var a=t;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}if(this.prepareLeaveAnimationListeners(t),o)i.markElementAsRemoved(this.id,t,!1,e);else{var s=t[h_];(!s||s===u_)&&(i.afterFlush(function(){return n.clearElementCache(t)}),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){w_(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,n=[];return this._queue.forEach(function(i){var o=i.player;if(!o.destroyed){var r=i.element,a=e._elementListeners.get(r);a&&a.forEach(function(e){if(e.name==i.triggerName){var n=Fv(r,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Lv(i.player,e.phase,n,e.callback)}}),o.markedForDestroy?e._engine.afterFlush(function(){o.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(t,n){var i=t.transition.ast.depCount,o=n.transition.ast.depCount;return 0==i||0==o?i-o:e._engine.driver.containsElement(t.element,n.element)?1:-1})}}
1,{key:"destroy",value:function(t){this.players.forEach(function(t){return t.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(function(e){return e.element===t})||e}}])}(),m_=function(){return g(function t(e,n,i){v(this,t),this.bodyNode=e,this.driver=n,this._normalizer=i,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=function(t,e){}},[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t}},{key:"createNamespace",value:function(t,e){var n=new g_(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}},{key:"_balanceNamespaceList",value:function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,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}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),o=0;o<i.length;o++){var r=n[i[o]].namespaceId;if(r){var a=this._fetchNamespace(r);a&&e.add(a)}}return e}},{key:"trigger",value:function(t,e,n,i){if(y_(e)){var o=this._fetchNamespace(t);if(o)return o.trigger(e,n,i),!0}return!1}},{key:"insertNode",value:function(t,e,n,i){if(y_(e)){var o=e[h_];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;var r=this.collectedLeaveElements.indexOf(e);r>=0&&this.collectedLeaveElements.splice(r,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}i&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),w_(t,a_)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),O_(t,a_))}},{key:"removeNode",value:function(t,e,n,i){if(y_(e)){var o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var r=this.namespacesByHostElement.get(e);r&&r.id!==t&&r.removeNode(e,i)}}else this._onRemovalComplete(e,i)}},{key:"markElementAsRemoved",value:function(t,e,n,i){this.collectedLeaveElements.push(e),e[h_]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,i,o){return y_(e)?this._fetchNamespace(t).listen(e,n,i,o):function(){}}},{key:"_buildInstruction",value:function(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)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,ny,!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,oy,!0)).forEac
1h(function(t){return e.finishActiveQueriedAnimationOnElement(t)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return Rv(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var e=this,n=t[h_];if(n&&n.setForRemoval){if(t[h_]=u_,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,s_)&&this.markElementAsDisabled(t,!1),this.driver.query(t,s_,!0).forEach(function(t){e.markElementAsDisabled(t,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++)w_(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var o=[];try{n=this._flushAnimations(o,e)}finally{for(var r=0;r<o.length;r++)o[r]()}}else for(var a=0;a<this.collectedLeaveElements.length;a++)this.processLeaveNode(this.collectedLeaveElements[a]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(t){return t()}),this._flushFns=[],this._whenQuietFns.length){var s=this._whenQuietFns;this._whenQuietFns=[],n.length?Rv(n).onDone(function(){s.forEach(function(t){return t()})}):s.forEach(function(t){return t()})}}},{key:"reportError",value:function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(t.join("\n")))}},{key:"_flushAnimations",value:function(t,e){var n=this,i=new Uy,o=[],r=new Map,a=[],s=new Map,c=new Map,l=new Map,h=new Set;this.disabledNodes.forEach(function(t){h.add(t);for(var e=n.driver.query(t,".ng-animate-queued",!0),i=0;i<e.length;i++)h.add(e[i])});var f=this.bodyNode,d=Array.from(this.statesByElement.keys()),p=C_(d,this.collectedEnterElements),g=new Map,m=0;p.forEach(function(t,e){var n=Xv+m++;g.set(e,n),t.forEach(function(t){return w_(t,n)})});for(var v=[],y=new Set,_=new Set,b=0;b<this.collectedLeaveElements.length;b++){var C=this.collectedLeaveElements[b],x=C[h_];x&&x.setForRemoval&&(v.push(C),y.add(C),x.hasAnimation?this.driver.query(C,".ng-star-inserted",!0).forEach(function(t){return y.add(t)}):_.add(C))}var w=new Map,O=C_(d,Array.from(y));O.forEach(function(t,e){var n=ty+m++;w.set(e,n),t.forEach(function(t){return w_(t,n)})}),t.push(function(){p.forEach(function(t,e){var n=g.get(e);t.forEach(function(t){return O_(t,n)})}),O.forEach(function(t,e){var n=w.get(e);t.forEach(function(t){return O_(t,n)})}),v.forEach(function(t){n.processLeaveNode(t)})});for(var P=[],M=[],k=this._namespaceList.length-1;k>=0;k--)this._namespaceList[k].drainQueuedTransitions(e).forEach(function(t){var e=t.player,r=t.element;if(P.push(e),n.collectedEnterElements.length){var u=r[h_];if(u&&u.setForMove)return void e.destroy()}var h=!f||!n.driver.containsElement(f,r),d=w.get(r),p=g.get(r),m=n._buildInstruction(t,i,p,d,h);if(m.errors&&m.errors.length)M.push(m);else{if(h)return e.onStart(function(){return dy(r,m.fromStyles)}),e.onDestroy(function(){return fy(r,m.toStyles)}),void o.push(e);if(t.isFallbackTransition)return e.onStart(function(){return dy(r,m.fromStyles)}),e.onDestroy(function(){return fy(r,m.toStyles)}),void o.push(e);m.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),i.append(r,m.timelines),a.push({instruction:m,player:e,element:r}),m.queriedElements.forEach(function(t){return Uv(s,t,[]).push(e)}),m.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var i=c.get(e);
1i||c.set(e,i=new Set),n.forEach(function(t){return i.add(t)})}}),m.postStyleProps.forEach(function(t,e){var n=Object.keys(t),i=l.get(e);i||l.set(e,i=new Set),n.forEach(function(t){return i.add(t)})})}});if(M.length){var T=[];M.forEach(function(t){T.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach(function(t){return T.push("- ".concat(t,"\n"))})}),P.forEach(function(t){return t.destroy()}),this.reportError(T)}var S=new Map,E=new Map;a.forEach(function(t){var e=t.element;i.has(e)&&(E.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),o.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){Uv(S,e,[]).push(t),t.destroy()})});var A=v.filter(function(t){return k_(t,c,l)}),I=new Map;b_(I,this.driver,_,l,Cv).forEach(function(t){k_(t,c,l)&&A.push(t)});var R=new Map;p.forEach(function(t,e){b_(R,n.driver,new Set(t),c,"!")}),A.forEach(function(t){var e=I.get(t),n=R.get(t);I.set(t,Object.assign(Object.assign({},e),n))});var N=[],L=[],D={};a.forEach(function(t){var e=t.element,a=t.player,s=t.instruction;if(i.has(e)){if(h.has(e))return a.onDestroy(function(){return fy(e,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void o.push(a);var c=D;if(E.size>1){for(var u=e,l=[];u=u.parentNode;){var f=E.get(u);if(f){c=f;break}l.push(u)}l.forEach(function(t){return E.set(t,c)})}var d=n._buildAnimation(a.namespaceId,s,S,r,R,I);if(a.setRealPlayer(d),c===D)N.push(a);else{var p=n.playersByElement.get(c);p&&p.length&&(a.parentPlayer=Rv(p)),o.push(a)}}else dy(e,s.fromStyles),a.onDestroy(function(){return fy(e,s.toStyles)}),L.push(a),h.has(e)&&o.push(a)}),L.forEach(function(t){var e=r.get(t.element);if(e&&e.length){var n=Rv(e);t.setRealPlayer(n)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var F=0;F<v.length;F++){var U=v[F],Z=U[h_];if(O_(U,ty),!Z||!Z.hasAnimation){var q=[];if(s.size){var j=s.get(U);j&&j.length&&q.push.apply(q,u(j));for(var V=this.driver.query(U,oy,!0),z=0;z<V.length;z++){var G=s.get(V[z]);G&&G.length&&q.push.apply(q,u(G))}}var B=q.filter(function(t){return!t.destroyed});B.length?P_(this,U,B):this.processLeaveNode(U)}}return v.length=0,N.forEach(function(t){n.players.push(t),t.onDone(function(){t.destroy();var e=n.players.indexOf(t);n.players.splice(e,1)}),t.play()}),N}},{key:"elementContainsData",value:function(t,e){var n=!1,i=e[h_];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}},{key:"afterFlush",value:function(t){this._flushFns.push(t)}},{key:"afterFlushAnimationsDone",value:function(t){this._whenQuietFns.push(t)}},{key:"_getPreviousPlayers",value:function(t,e,n,i,o){var r=[];if(e){var a=this.playersByQueriedElement.get(t);a&&(r=a)}else{var s=this.playersByElement.get(t);if(s){var c=!o||o==d_;s.forEach(function(t){t.queued||!c&&t.triggerName!=i||r.push(t)})}}return(n||i)&&(r=r.filter(function(t){return!(n&&n!=t.namespaceId||i&&i!=t.triggerName)})),r}},{key:"_beforeAnimationBuild",value:function(t,e,n){var i,o=this,r=e.element,a=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName,c=h(e.timelines);try{var u=function(){var t=i.value.element,c=t!==r,u=Uv(n,t,[]);o._getPreviousPlayers(t,c,a,s,e.toState).forEach(function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),u.push(t)})};for(c.s();!(i=c.n()).done;)u()}catch(l){c.e(l)}finally{c.f()}dy(r,e.fromStyles)}},{key:"_buildAnimation",value:function(t,e,n,i,o,r){var a=this,s=e.triggerName,c=e.element,u=[],l=new Set,h=new Set,f=e.timelines.map(function(e){var f=e.element;l.add(f);var d=f[h_];if(d&&d.removedBeforeQueried)return new Sv(e.duration,e.delay);var p=f!==c,g=function(t){var e=[];return M_(t,e),e}((n.get(f)||c_).map(function(t){return t.getRealPlayer()})).filter(function(t){return!!t.element&&t.element===f}),m=o.get(f),v=r.get(f),y=Nv(0,a._normalizer,0,e.keyframes,m,v),_=a._buildPlayer(e,y,g);if(e.subTimeline&&i&&h.add(f),p){var b=new v_(t,s,f);b.setRealPlayer(_),u.push(b)}return _});u.forEach(function(t){Uv(a.playersByQueriedElement,t.element,[]).push(t),t.onDone(function(){return function(t,e,n){var i;if(t instanceof Map){if(i=t.get(e)){if(i.length){var o=i.indexOf(n);i.splice(o,1)}0==i.length&&t.delete(e)}}else if(i=t[e]){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&delete t[e]}return i}(a.playersByQueriedElement,t.element,t)})}),l.forEach(function(t){return w_(t,iy)});var d=Rv(f);return d.onDestroy(function(){l.forEach(function(t){return O_(t,iy)}),fy(c,e.toStyles)}),h.forEach(function(t){Uv(i,t,[]).push(d)}),d}},{key:"_buildPlayer",value:function(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Sv(t.duration,t.delay)}}])}(),v_=function(){return g(function t(e,n,i){v(this,t),this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new Sv,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0},[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEac
1h(function(n){e._queuedCallbacks[n].forEach(function(e){return Lv(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){Uv(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}])}();function y_(t){return t&&1===t.nodeType}function __(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function b_(t,e,n,i,o){var r=[];n.forEach(function(t){return r.push(__(t))});var a=[];i.forEach(function(n,i){var r={};n.forEach(function(t){var n=r[t]=e.computeStyle(i,t,o);(!n||0==n.length)&&(i[h_]=l_,a.push(i))}),t.set(i,r)});var s=0;return n.forEach(function(t){return __(t,r[s++])}),a}function C_(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var i=new Set(e),o=new Map;function r(t){if(!t)return 1;var e=o.get(t);if(e)return e;var a=t.parentNode;return e=n.has(a)?a:i.has(a)?1:r(a),o.set(t,e),e}return e.forEach(function(t){var e=r(t);1!==e&&n.get(e).push(t)}),n}var x_="$$classes";function w_(t,e){if(t.classList)t.classList.add(e);else{var n=t[x_];n||(n=t[x_]={}),n[e]=!0}}function O_(t,e){if(t.classList)t.classList.remove(e);else{var n=t[x_];n&&delete n[e]}}function P_(t,e,n){Rv(n).onDone(function(){return t.processLeaveNode(e)})}function M_(t,e){for(var n=0;n<t.length;n++){var i=t[n];i instanceof Ev?M_(i.players,e):e.push(i)}}function k_(t,e,n){var i=n.get(t);if(!i)return!1;var o=e.get(t);return o?i.forEach(function(t){return o.add(t)}):e.set(t,i),n.delete(t),!0}var T_=function(){return g(function t(e,n,i){var o=this;v(this,t),this.bodyNode=e,this._driver=n,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new m_(e,n,i),this._timelineEngine=new o_(e,n,i),this._transitionEngine.onRemovalComplete=function(t,e){return o.onRemovalComplete(t,e)}},[{key:"registerTrigger",value:function(t,e,n,i,o){var r=t+"-"+i,a=this._triggerCache[r];if(!a){var s=[],c=Ay(this._driver,o,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(t,e,n){return new e_(t,e,n)}(i,c,this._normalizer),this._triggerCache[r]=a}this._transitionEngine.registerTrigger(e,i,a)}},{key:"register",value:function(t,e){this._transitionEngine.register(t,e)}},{key:"destroy",value:function(t,e){this._transitionEngine.destroy(t,e)}},{key:"onInsert",value:function(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}},{key:"onRemove",value:function(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}},{key:"disableAnimations",value:function(t,e){this._transitionEngine.markElementAsDisabled(t,e)}},{key:"process",value:function(t,e,n,o){if("@"==n.charAt(0)){var r=i(Zv(n),2),a=r[0],s=r[1];this._timelineEngine.command(a,e,s,o)}else this._transitionEngine.trigger(t,e,n,o)}},{key:"listen",value:function(t,e,n,o,r){if("@"==n.charAt(0)){var a=i(Zv(n),2),s=a[0],c=a[1];return this._timelineEngine.listen(s,e,c,r)}return this._transitionEngine.listen(t,e,n,o,r)}},{key:"flush",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}])}();function S_(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=A_(e[0]),e.length>1&&(i=A_(e[e.length-1]))):e&&(n=A_(e)),n||i?new E_(t,n,i):null}var E_=function(){var t=function(){function t(e,n,i){v(this,t),this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o={}),this._initialStyles=o}return g(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&fy(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(fy(this._element,this._initialStyles),this._endStyles&&(fy(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(dy(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(dy(this._element,this._endStyles),this._endStyles=null),fy(this._element,this._initialStyles),this._state=3)}}])}();return t.initialStylesByElement=new WeakMap,t}();function A_(t){for(var e=null,n=Object.keys(t),i=0;i<n.length;i++){var o=n[i];
1I_(o)&&((e=e||{})[o]=t[o])}return e}function I_(t){return"display"===t||"position"===t}var R_="animation",N_="animationend",L_=function(){return g(function t(e,n,i,o,r,a,s){var c=this;v(this,t),this._element=e,this._name=n,this._duration=i,this._delay=o,this._easing=r,this._fillMode=a,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return c._handleCallback(t)}},[{key:"apply",value:function(){(function(t,e){var n=j_(t,"").trim();n.length&&(function(t,e){for(var n=0,i=0;i<t.length;i++)","===t.charAt(i)&&n++}(n),e="".concat(n,", ").concat(e)),q_(t,"",e)})(this._element,"".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name)),Z_(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){D_(this._element,this._name,"paused")}},{key:"resume",value:function(){D_(this._element,this._name,"running")}},{key:"setPosition",value:function(t){var e=F_(this._element,this._name);this._position=t*this._duration,q_(this._element,"Delay","-".concat(this._position,"ms"),e)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(t){var 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()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Z_(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){var n=j_(t,"").split(","),i=U_(n,e);i>=0&&(n.splice(i,1),q_(t,"",n.join(",")))}(this._element,this._name))}}])}();function D_(t,e,n){q_(t,"PlayState",n,F_(t,e))}function F_(t,e){var n=j_(t,"");return n.indexOf(",")>0?U_(n.split(","),e):U_([n],e)}function U_(t,e){for(var n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Z_(t,e,n){n?t.removeEventListener(N_,e):t.addEventListener(N_,e)}function q_(t,e,n,i){var o=R_+e;if(null!=i){var r=t.style[o];if(r.length){var a=r.split(",");a[i]=n,n=a.join(",")}}t.style[o]=n}function j_(t,e){return t.style[R_+e]||""}var V_=function(){return g(function t(e,n,i,o,r,a,s,c){v(this,t),this.element=e,this.keyframes=n,this.animationName=i,this._duration=o,this._delay=r,this._finalStyles=s,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=o+r,this._buildStyler()},[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new L_(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;
1Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:Py(t.element,i))})}this.currentSnapshot=e}}])}(),z_=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e)).element=t,i._startingStyles={},i.__initialized=!1,i._styles=Wv(n),i}return b(e,t),g(e,[{key:"init",value:function(){var t=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),a(e,"init",this,3)([]))}},{key:"play",value:function(){var t=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),a(e,"play",this,3)([]))}},{key:"destroy",value:function(){var t=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,a(e,"destroy",this,3)([]))}}])}(Sv),G_=function(){return g(function t(){v(this,t),this._count=0},[{key:"validateStyleProperty",value:function(t){return Hv(t)}},{key:"matchesElement",value:function(t,e){return Yv(t,e)}},{key:"containsElement",value:function(t,e){return Qv(t,e)}},{key:"query",value:function(t,e,n){return Jv(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map(function(t){return Wv(t)});var i="@keyframes ".concat(e," {\n"),o="";n.forEach(function(t){o=" ";var e=parseFloat(t.offset);i+="".concat(o).concat(100*e,"% {\n"),o+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+="".concat(o,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(o).concat(e,": ").concat(n,";\n"))}}),i+="".concat(o,"}\n")}),i+="}\n";var r=document.createElement("style");return r.textContent=i,r}},{key:"animate",value:function(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=r.filter(function(t){return t instanceof V_}),s={};xy(n,i)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return s[t]=e[t]})});var c=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"==n||"easing"==n||(e[n]=t[n])})}),e}(e=wy(t,e,s));if(0==n)return new z_(t,c);var u="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(t,u,e);(function(t){var e,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(l);var h=S_(t,e),f=new V_(t,e,u,n,i,o,c,h);return f.onDestroy(function(){return function(t){t.parentNode.removeChild(t)}(l)}),f}}])}(),B_=function(){return g(function t(e,n,i,o){v(this,t),this.element=e,this.keyframes=n,this.options=i,this._specialStyles=o,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay},[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:Py(t.element,n))}),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}])}(),H_=function(){return g(function t(){v(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Y_().toString()),this._cssKeyframesDriver=new G_},[{key:"validateStyleProperty",value:function(t){return Hv(t)}},{key:"matchesElement",value:function(t,e){return Yv(t,e)}},{key:"containsElement",value:function(t,e){return Qv(t,e)}},{key:"query",value:function(t,e,n){return Jv(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,o,r);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};o&&(s.easing=o);var c={},u=r.filter(function(t){return t instanceof B_});xy(n,i)&&u.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return c[t]=e[t]})});var l=S_(t,e=wy(t,e=e.map(function(t){return uy(t,!1)}),c));return new B_(t,e,s,l)}}])}();function Y_(){return Av()&&Element.prototype.animate||{}}var Q_=function(){var t=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e))._nextAnimationId=0,i._renderer=t.createRenderer(n.body,{id:"0",encapsulation:s.ifc.None,styles:[],data:{animation:[]}}),i}return b(e,t),g(e,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Ov(t):t;return K_(this._renderer,null,e,"register",[n]),new J_(e,this._renderer)}}])}(bv);return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.FYo),s.LFG(f))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),J_=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e))._id=t,i._renderer=n,i}return b(e,t),g(e,[{key:"create",value:function(t,e){return new W_(this._id,t,e||{},this._renderer)}}])}(g(function t(){v(this,t)})),W_=function(){return g(function t(e,n,i,o){v(this,t),this.id=e,this.element=n,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)},[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return K_(this._renderer,this.element,this.id,t,n)}},{key:"onDone",value:function(t){this._listen("done",t)}},{key:"onStart",value:function(t){this._listen("start",t)}},{key:"onDestroy",value:function(t){this._listen("destroy",t)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset"),this._started=!1}},{key:"setPosition",value:function(t){this._command("setPosition",t)}},{key:"getPosition",value:function(){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 K_(t,e,n,i,o){return t.setProperty(e,"@@".concat(n,":").concat(i),o)}var $_="@.disabled",X_=function(){var t=function(){return g(function t(e,n,i){v(this,t),this.delegate=e,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}},[{key:"createRenderer",value:function(t,e){var n=this,i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var o=this._rendererCache.get(i);return o||(o=new tb("",i,this.engine),this._rendererCache.set(i,o)),o}var r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);var s=function(e){Array.isArray(e)?e.forEach(s):n.engine.registerTrigger(r,a,t,e.name,e)};return e.data.animation.forEach(s),new eb(this,a,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var t=this;this.promise.then(function(){t._microtaskId++})}},{key:"scheduleListenerCallback",value:function(t,e,n){var o=this;t>=0&&t<this._microtaskId?this._zone.run(function(){return e(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){o._zone.run(function(){o._animationCallbacksBuffer.forEach(function(t){var e=i(t,2);(0,e[0])(e[1])}),o._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}},{key:"end",value:function(){var t=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.FYo),s.LFG(T_),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),tb=function(){return g(function t(e,n,i){v(this,t),this.namespaceId=e,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(t){return n.destroyNode(t)}:null},[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(t,e){return this.delegate.createElement(t,e)}},{key:"createComment",value:function(t){return this.delegate.createComment(t)}},{key:"createText",value:function(t){return this.delegate.createText(t)}
1},{key:"appendChild",value:function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}},{key:"insertBefore",value:function(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,i){this.delegate.setStyle(t,e,n,i)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){"@"==e.charAt(0)&&e==$_?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}}])}(),eb=function(t){function e(t,n,i,o){var r;return v(this,e),(r=y(this,e,[n,i,o])).factory=t,r.namespaceId=n,r}return b(e,t),g(e,[{key:"setProperty",value:function(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==$_?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}},{key:"listen",value:function(t,e,n){var o=this;if("@"==e.charAt(0)){var r,a,s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),c=e.substr(1),u="";return"@"!=c.charAt(0)&&(r=function(t){var e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(c),c=(a=i(r,2))[0],u=a[1]),this.engine.listen(this.namespaceId,s,c,u,function(t){o.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}])}(tb),nb=function(){var t=function(t){function e(t,n,i){return v(this,e),y(this,e,[t.body,n,i])}return b(e,t),g(e,[{key:"ngOnDestroy",value:function(){this.flush()}}])}(T_);return t.\u0275fac=function(e){return new(e||t)(s.LFG(f),s.LFG($v),s.LFG(Qy))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),ib=new s.OlP("AnimationModuleType"),ob=[{provide:bv,useClass:Q_},{provide:Qy,useFactory:function(){return new Jy}},{provide:T_,useClass:nb},{provide:s.FYo,useFactory:function(t,e,n){return new X_(t,e,n)},deps:[Pt,T_,s.R0b]}],rb=[{provide:$v,useFactory:function(){return"function"==typeof Y_()?new H_:new G_}},{provide:ib,useValue:"BrowserAnimations"}].concat(ob),ab=[{provide:$v,useClass:Kv},{provide:ib,useValue:"NoopAnimations"}].concat(ob),sb=function(){var t=function(){function t(){v(this,t)}return g(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:e.disableAnimations?ab:rb}}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:rb,imports:[Zt]}),t}(),cb=r(9796),ub=r(1555);function lb(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(1===e.length){var i=e[0];if((0,cb.k)(i))return hb(i,null);if((0,ub.K)(i)&&Object.getPrototypeOf(i)===Object.prototype){var o=Object.keys(i);return hb(o.map(function(t){return i[t]}),o)}}if("function"==typeof e[e.length-1]){var r=e.pop();return hb(e=1===e.length&&(0,cb.k)(e[0])?e[0]:e,null).pipe((0,Qt.U)(function(t){return r.apply(void 0,u(t))}))}return hb(e,null)}function hb(t,e){return new jt.y(function(n){var i=t.length;if(0!==i)for(var o=new Array(i),r=0,a=0,s=function(s){var c=(0,Ae.D)(t[s]),u=!1;n.add(c.subscribe({next:function(t){u||(u=!0,a++),o[s]=t},error:function(t){return n.error(t)},complete:function(){(++r===i||!u)&&(a===i&&n.next(e?e.reduce(function(t,e,n){return t[e]=o[n],t},{}):o),n.complete())}}))},c=0;c<i;c++)s(c);else n.complete()})}var fb=function(){var t=function(){return g(function t(e,n){v(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}},[{key:"setProperty",value:function(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"setDisabledState",value:function(t){this.setProperty("disabled",t)}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t}),t}(),db=function(){var t,e=function(t){function e(){return v(this,e),y(this,e,arguments)}return b(e,t),g(e)}(fb);return e.\u0275fac=function(n){return(t||(t=s.n5z(e)))(n||e)},e.\u0275dir=s.lG2({type:e,features:[s.qOj]}),e}(),pb=new s.OlP("NgValueAccessor"),gb={provide:pb,useExisting:(0,s.Gpc)(function(){return vb}),multi:!0},mb=new s.OlP("CompositionEventMode"),vb=function(){var t=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e,[t,n]))._compositionMode=i,o._composing=!1,null==o._compositionMode&&(o._compositionMode=!function(){var t=l()?l().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}()),o}return b(e,t),g(e,[{key:"writeValue",value:function(t){this.setProperty("value",null==t?"":t)}},{key:"_handleInput",value:function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}
1},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}])}(fb);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(mb,8))},t.\u0275dir=s.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&&s.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:[s._Bn([gb]),s.qOj]}),t}();function yb(t){return null==t||0===t.length}function _b(t){return null!=t&&"number"==typeof t.length}var bb=new s.OlP("NgValidators"),Cb=new s.OlP("NgAsyncValidators"),xb=/^(?=.{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])?)*$/,wb=function(){return g(function t(){v(this,t)},null,[{key:"min",value:function(t){return function(t){return function(e){if(yb(e.value)||yb(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}(t)}},{key:"max",value:function(t){return function(t){return function(e){if(yb(e.value)||yb(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}(t)}},{key:"required",value:function(t){return function(t){return yb(t.value)?{required:!0}:null}(t)}},{key:"requiredTrue",value:function(t){return function(t){return!0===t.value?null:{required:!0}}(t)}},{key:"email",value:function(t){return function(t){return yb(t.value)||xb.test(t.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return function(t){return function(e){return yb(e.value)||!_b(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}}(t)}},{key:"maxLength",value:function(t){return function(t){return function(e){return _b(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}(t)}},{key:"pattern",value:function(t){return function(t){return t?("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),function(t){if(yb(t.value))return null;var i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}):Ob;var e,n}(t)}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){return Eb(t)}},{key:"composeAsync",value:function(t){return Ib(t)}}])}();function Ob(t){return null}function Pb(t){return null!=t}function Mb(t){var e=(0,s.QGY)(t)?(0,Ae.D)(t):t;return(0,s.CqO)(e),e}function kb(t){var e={};return t.forEach(function(t){e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Tb(t,e){return e.map(function(e){return e(t)})}function Sb(t){return t.map(function(t){return function(t){return!t.validate}(t)?t:function(e){return t.validate(e)}})}function Eb(t){if(!t)return null;var e=t.filter(Pb);return 0==e.length?null:function(t){return kb(Tb(t,e))}}function Ab(t){return null!=t?Eb(Sb(t)):null}function Ib(t){if(!t)return null;var e=t.filter(Pb);return 0==e.length?null:function(t){return lb(Tb(t,e).map(Mb)).pipe((0,Qt.U)(kb))}}function Rb(t){return null!=t?Ib(Sb(t)):null}function Nb(t,e){return null===t?[e]:Array.isArray(t)?[].concat(u(t),[e]):[t,e]}function Lb(t){return t._rawValidators}function Db(t){return t._rawAsyncValidators}function Fb(t){return t?Array.isArray(t)?t:[t]:[]}function Ub(t,e){return Array.isArray(t)?t.includes(e):t===e}function Zb(t,e){var n=Fb(e);return Fb(t).forEach(function(t){Ub(n,t)||n.push(t)}),n}function qb(t,e){return Fb(e).filter(function(e){return!Ub(t,e)})}var jb=function(){var t=function(){return g(function t(){v(this,t),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]},[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=Ab(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Rb(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(t){this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t}(),Vb=function(){var t,e=function(t){function e(){return v(this,e),y(this,e,arguments)}return b(e,t),g(e,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}])}(jb);return e.\u0275fac=function(n){return(t||(t=s.n5z(e)))(n||e)},e.\u0275dir=s.lG2({type:e,features:[s.qOj]}),e}(),zb=function(t){function e(){var t;return v(this,e),(t=y(this,e,arguments))._parent=null,t.name=null,t.valueAccessor=null,t}return b(e,t),g(e)}(jb),Gb=function(){return g(function t(e){v(this,t),this._cd=e},[{key:"is",value:function(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])}}])}(),Bb=function(){var t=function(t){function e(t){return v(this,e),y(this,e,[t])}return b(e,t),g(e)}(Gb);return t.\u0275fac=function(e){return new(e||t)(s.Y36(zb,2))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.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:[s.qOj]}),t}(),Hb=function(){var t=function(t){function e(t){return v(this,e),y(this,e,[t])}return b(e,t),g(e)}(Gb);return t.\u0275fac=function(e){return new(e||t)(s.Y36(Vb,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&s.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:[s.qOj]}),t}();function Yb(t,e){return[].concat(u(e.path),[t])}function Qb(t,e){Kb(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Xb(t,e)})}(t,e),function(t,e){var n=function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(function(){t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Xb(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){var n=function(t){e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(function(){t._unregisterOnDisabledChange(n)})}}(t,e)}function Jb(t,e){var n=function(){};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),$b(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(function(){}))}function Wb(t,e){t.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(e)}
1)}function Kb(t,e){var n=Lb(t);null!==e.validator?t.setValidators(Nb(n,e.validator)):"function"==typeof n&&t.setValidators([n]);var i=Db(t);null!==e.asyncValidator?t.setAsyncValidators(Nb(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);var o=function(){return t.updateValueAndValidity()};Wb(e._rawValidators,o),Wb(e._rawAsyncValidators,o)}function $b(t,e){var n=!1;if(null!==t){if(null!==e.validator){var i=Lb(t);if(Array.isArray(i)&&i.length>0){var o=i.filter(function(t){return t!==e.validator});o.length!==i.length&&(n=!0,t.setValidators(o))}}if(null!==e.asyncValidator){var r=Db(t);if(Array.isArray(r)&&r.length>0){var a=r.filter(function(t){return t!==e.asyncValidator});a.length!==r.length&&(n=!0,t.setAsyncValidators(a))}}}var s=function(){};return Wb(e._rawValidators,s),Wb(e._rawAsyncValidators,s),n}function Xb(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function tC(t,e){Kb(t,e)}function eC(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function nC(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function iC(t,e){return e?(Array.isArray(e),e.forEach(function(t){t.constructor===vb?n=t:function(t){return Object.getPrototypeOf(t.constructor)===db}(t)?i=t:o=t}),o||i||n||null):null;var n,i,o}function oC(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var rC="VALID",aC="INVALID",sC="PENDING",cC="DISABLED";function uC(t){return(dC(t)?t.validators:t)||null}function lC(t){return Array.isArray(t)?Ab(t):t||null}function hC(t,e){return(dC(e)?e.asyncValidators:t)||null}function fC(t){return Array.isArray(t)?Rb(t):t||null}function dC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var pC=function(){return g(function t(e,n){v(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=lC(this._rawValidators),this._composedAsyncValidatorFn=fC(this._rawAsyncValidators)},[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===rC}},{key:"invalid",get:function(){return this.status===aC}},{key:"pending",get:function(){return this.status==sC}},{key:"disabled",get:function(){return this.status===cC}},{key:"enabled",get:function(){return this.status!==cC}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=lC(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=fC(t)}},{key:"addValidators",value:function(t){this.setValidators(Zb(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators(Zb(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(qb(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(qb(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return Ub(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return Ub(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}
1),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=sC,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=cC,this.errors=null,this._forEachChild(function(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(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=rC,this._forEachChild(function(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(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rC||this.status===sC)&&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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?cC:rC}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status=sC,this._hasOwnPendingAsyncValidator=!0;var n=Mb(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){e._hasOwnPendingAsyncValidator=!1,e.setErrors(n,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;var i=t;return e.forEach(function(t){i=i instanceof mC?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof vC&&i.at(t)||null}),i}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}}
1,{key:"_initObservables",value:function(){this.valueChanges=new s.vpe,this.statusChanges=new s.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?cC:this.errors?aC:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(sC)?sC:this._anyControlsHaveStatus(aC)?aC:rC}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){dC(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}])}(),gC=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return v(this,e),(t=y(this,e,[uC(i),hC(o,i)]))._onChange=[],t._applyFormState(n),t._setUpdateStrategy(i),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!t.asyncValidator}),t}return b(e,t),g(e,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){oC(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){oC(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(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}}])}(pC),mC=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e,[uC(n),hC(i,n)])).controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return b(e,t),g(e,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
1this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(i){e._throwIfControlMissing(i),e.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(Object.keys(t).forEach(function(i){e.controls[i]&&e.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof gC?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(n){var i=e.controls[n];i&&t(i,n)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e<n.length;e++){var i=n[e],o=this.controls[i];if(this.contains(i)&&t(o))return!0}return!1}},{key:"_reduceValue",value:function(){var t=this;return this._reduceChildren({},function(e,n,i){return(n.enabled||t.disabled)&&(e[i]=n.value),e})}},{key:"_reduceChildren",value:function(t,e){var n=t;return this._forEachChild(function(t,i){n=e(n,t,i)}),n}},{key:"_allControlsDisabled",value:function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var n=e[t];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Mu
1st supply a value for form control with name: '".concat(n,"'."))})}}])}(pC),vC=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e,[uC(n),hC(i,n)])).controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return b(e,t),g(e,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,i){e._throwIfControlMissing(i),e.at(i).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(t.forEach(function(t,i){e.at(i)&&e.at(i).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof gC?t.value:t.getRawValue()})}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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 ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,n){t(e,n)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Mu
1st supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var t,e=h(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}])}(pC),yC={provide:Vb,useExisting:(0,s.Gpc)(function(){return bC})},_C=Promise.resolve(null),bC=function(){var t=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e)).submitted=!1,i._directives=[],i.ngSubmit=new s.vpe,i.form=new mC({},Ab(t),Rb(n)),i}return b(e,t),g(e,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(t){var e=this;_C.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Qb(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;_C.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),oC(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;_C.then(function(){var n=e._findContainer(t.path),i=new mC({});tC(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;_C.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;_C.then(function(){n.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,nC(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}}])}(Vb);return t.\u0275fac=function(e){return new(e||t)(s.Y36(bb,10),s.Y36(Cb,10))},t.\u0275dir=s.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&s.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([yC]),s.qOj]}),t}(),CC={provide:zb,useExisting:(0,s.Gpc)(function(){return wC})},xC=Promise.resolve(null),wC=function(){var t=function(t){function e(t,n,i,o){var r;return v(this,e),(r=y(this,e)).control=new gC,r._registered=!1,r.update=new s.vpe,r._parent=t,r._setValidators(n),r._setAsyncValidators(i),r.valueAccessor=iC(0,o),r}return b(e,t),g(e,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),eC(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?Yb(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Qb(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}}
1,{key:"_updateValue",value:function(t){var e=this;xC.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;xC.then(function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()})}}])}(zb);return t.\u0275fac=function(e){return new(e||t)(s.Y36(Vb,9),s.Y36(bb,10),s.Y36(Cb,10),s.Y36(pb,10))},t.\u0275dir=s.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:[s._Bn([CC]),s.qOj,s.TTD]}),t}(),OC=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),PC=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t}(),MC=new s.OlP("NgModelWithFormControlWarning"),kC={provide:Vb,useExisting:(0,s.Gpc)(function(){return TC})},TC=function(){var t=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e)).validators=t,i.asyncValidators=n,i.submitted=!1,i._onCollectionChange=function(){return i._updateDomValue()},i.directives=[],i.form=null,i.ngSubmit=new s.vpe,i._setValidators(t),i._setAsyncValidators(n),i}return b(e,t),g(e,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&($b(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return Qb(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){Jb(t.control||null,t,!1),oC(this.directives,t)}},{key:"addFormGroup",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormGroup",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormArray",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,nC(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach(function(e){var n=e.control,i=t.form.get(e.path);n!==i&&(Jb(n||null,e),i instanceof gC&&(Qb(i,e),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(t){var e=this.form.get(t.path);tC(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(t){if(this.form){var e=this.form.get(t.path);e&&function(t,e){return $b(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Kb(this.form,this),this._oldForm&&$b(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}])}(Vb);return t.\u0275fac=function(e){return new(e||t)(s.Y36(bb,10),s.Y36(Cb,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([kC]),s.qOj,s.TTD]}),t}(),SC={provide:zb,useExisting:(0,s.Gpc)(function(){return EC})},EC=function(){var t=function(t){function e(t,n,i,o,r){var a;return v(this,e),(a=y(this,e))._ngModelWarningConfig=r,a._added=!1,a.update=new s.vpe,a._ngModelWarningSent=!1,a._parent=t,a._setValidators(n),a._setAsyncValidators(i),a.valueAccessor=iC(0,o),a}return b(e,t),g(e,[{key:"isDisabled",set:function(t){}}
1,{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),eC(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"path",get:function(){return Yb(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}])}(zb);return t.\u0275fac=function(e){return new(e||t)(s.Y36(Vb,13),s.Y36(bb,10),s.Y36(Cb,10),s.Y36(pb,10),s.Y36(MC,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s._Bn([SC]),s.qOj,s.TTD]}),t._ngModelWarningSentOnce=!1,t}(),AC=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[PC]]}),t}(),IC=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[AC]}),t}(),RC=function(){var t=function(){function t(){v(this,t)}return g(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:MC,useValue:e.warnOnNgModelWithFormControl}]}}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[AC]}),t}(),NC=function(){var t=function(){return g(function t(){v(this,t)},[{key:"group",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this._reduceControls(t),o=null,r=null;return null!=n&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(n)?(o=null!=n.validators?n.validators:null,r=null!=n.asyncValidators?n.asyncValidators:null,e=null!=n.updateOn?n.updateOn:void 0):(o=null!=n.validator?n.validator:null,r=null!=n.asyncValidator?n.asyncValidator:null)),new mC(i,{asyncValidators:r,updateOn:e,validators:o})}},{key:"control",value:function(t,e,n){return new gC(t,e,n)}},{key:"array",value:function(t,e,n){var i=this,o=t.map(function(t){return i._createControl(t)});return new vC(o,e,n)}},{key:"_reduceControls",value:function(t){var e=this,n={};return Object.keys(t).forEach(function(i){n[i]=e._createControl(t[i])}),n}},{key:"_createControl",value:function(t){return t instanceof gC||t instanceof mC||t instanceof vC?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,s.Yz7)({factory:function(){return new t},token:t,providedIn:RC}),t}(),LC=r(8307);function DC(t){return function(e){return e.lift(new FC(t))}}var FC=function(){return g(function t(e){v(this,t),this.notifier=e},[{key:"call",value:function(t,e){var n=new UC(t),i=(0,De.D)(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}])}(),UC=function(t){function e(t){var n;return v(this,e),(n=y(this,e,[t])).seenValue=!1,n}return b(e,t),g(e,[{key:"notifyNext",value:function(t,e,n,i,o){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}])}(Ne.L);function ZC(t){return function(e){return e.lift(new qC(t))}}var qC=function(){return g(function t(e){v(this,t),this.callback=e},[{key:"call",value:function(t,e){return e.subscribe(new jC(t,this.callback))}}])}(),jC=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[t])).add(new je.w(n)),i}return b(e,t),g(e)}(Gt.L),VC=[{name:"United Kingdom",iso:"GB"},{name:"United States of America",iso:"US"}],zC=[{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"}],GC=["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"],BC=["Year 1","Year 2","Year 3","Year 4","Year 5","Year 6"],HC=["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"],YC=function(t){return"An email to verify your email has been sent to ".concat(t)},QC="Oops! Something went wrong. Try again later",JC="Please fill all required fields";r(1336);var WC=function(t){function e(t){var n;return v(this,e),(n=y(this,e))._value=t,n}return b(e,t),g(e,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(t){var n=a(e,"_subscribe",this,3)([t]);return n&&!n.closed&&t.next(this._value),n}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ve.N;return this._value}},{key:"next",value:function(t){a(e,"next",this,3)([this._value=t])}}])}(Ee.xQ),KC=function(){var t=function(){return g(function t(){v(this,t),this.loading$=new WC(!1)},[{key:"loading",get:function(){return this.loading$.getValue()},set:function(t){this.loading$.next(t)}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),$C=r(6693),XC={};function tx(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=null,o=null;return(0,xn.K)(e[e.length-1])&&(o=e.pop()),"function"==typeof e[e.length-1]&&(i=e.pop()),1===e.length&&(0,cb.k)(e[0])&&(e=e[0]),(0,$C.n)(e,o).lift(new ex(i))}var ex=function(){return g(function t(e){v(this,t),this.resultSelector=e},[{key:"call",value:function(t,e){return e.subscribe(new nx(t,this.resultSelector))}}])}(),nx=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[t])).resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return b(e,t),g(e,[{key:"_next",value:function(t){this.values.push(XC),this.observables.push(t)}},{key:"_complete",value:function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var i=t[n];this.add((0,De.D)(this,i,i,n))}}}},{key:"notifyComplete",value:function(t){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(t,e,n,i,o){var r=this.values,a=this.toRespond?r[n]===XC?--this.toRespond:this.toRespond:0;r[n]=e,0===a&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}},{key:"_tryResultSelector",value:function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}])}(Ne.L);function ix(t){return new jt.y(function(e){var n;try{n=t()}catch(i){return void e.error(i)}return(n?(0,Ae.D)(n):(0,Je.c)()).subscribe(e)})}var ox=r(2441);function rx(t){return function(e){var n=new ax(t),i=e.lift(n);return n.caught=i}}var ax=function(){return g(function t(e){v(this,t),this.selector=e},[{key:"call",value:function(t,e){return e.subscribe(new sx(t,this.selector,this.caught))}}])}(),sx=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e,[t])).selector=n,o.caught=i,o}return b(e,t),g(e,[{key:"error",value:function(t){if(!this.isStopped){var n;try{n=this.selector(t,this.caught)}catch(r){return void a(e,"error",this,3)([r])}this._unsubscribeAndRecycle();var i=new Le.d(this,void 0,void 0);this.add(i);var o=(0,De.D)(this,n,void 0,void 0,i);o!==i&&this.add(o)}}}])}(Ne.L);function cx(t){return function(e){return 0===t?(0,Je.c)():e.lift(new ux(t))}}var ux=function(){return g(function t(e){if(v(this,t),this.total=e,this.total<0)throw new Qe},[{key:"call",value:function(t,e){return e.subscribe(new lx(t,this.total))}}])}(),lx=function(t){function e(t,n){var i;
1return v(this,e),(i=y(this,e,[t])).total=n,i.ring=new Array,i.count=0,i}return b(e,t),g(e,[{key:"_next",value:function(t){var e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}},{key:"_complete",value:function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,o=0;o<n;o++){var r=e++%n;t.next(i[r])}t.complete()}}])}(Gt.L);function hx(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Bt(function(e,n){return t(e,n,i)}):sn.y,cx(1),n?Xe(e):nn(function(){return new Ye}))}}var fx=r(1307),dx=g(function t(e,n){v(this,t),this.id=e,this.url=n}),px=function(t){function e(t,n){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return v(this,e),(i=y(this,e,[t,n])).navigationTrigger=o,i.restoredState=r,i}return b(e,t),g(e,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}])}(dx),gx=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e,[t,n])).urlAfterRedirects=i,o}return b(e,t),g(e,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}])}(dx),mx=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e,[t,n])).reason=i,o}return b(e,t),g(e,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}])}(dx),vx=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e,[t,n])).error=i,o}return b(e,t),g(e,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}])}(dx),yx=function(t){function e(t,n,i,o){var r;return v(this,e),(r=y(this,e,[t,n])).urlAfterRedirects=i,r.state=o,r}return b(e,t),g(e,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(dx),_x=function(t){function e(t,n,i,o){var r;return v(this,e),(r=y(this,e,[t,n])).urlAfterRedirects=i,r.state=o,r}return b(e,t),g(e,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(dx),bx=function(t){function e(t,n,i,o,r){var a;return v(this,e),(a=y(this,e,[t,n])).urlAfterRedirects=i,a.state=o,a.shouldActivate=r,a}return b(e,t),g(e,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}])}(dx),Cx=function(t){function e(t,n,i,o){var r;return v(this,e),(r=y(this,e,[t,n])).urlAfterRedirects=i,r.state=o,r}return b(e,t),g(e,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(dx),xx=function(t){function e(t,n,i,o){var r;return v(this,e),(r=y(this,e,[t,n])).urlAfterRedirects=i,r.state=o,r}return b(e,t),g(e,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(dx),wx=function(){return g(function t(e){v(this,t),this.route=e},[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}])}(),Ox=function(){return g(function t(e){v(this,t),this.route=e},[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}])}(),Px=function(){return g(function t(e){v(this,t),this.snapshot=e},[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),Mx=function(){return g(function t(e){v(this,t),this.snapshot=e},[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),kx=function(){return g(function t(e){v(this,t),this.snapshot=e},[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),Tx=function(){return g(function t(e){v(this,t),this.snapshot=e},[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),Sx=function(){return g(function t(e,n,i){v(this,t),this.routerEvent=e,this.position=n,this.anchor=i},[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}])}(),Ex="primary",Ax=function(){return g(function t(e){v(this,t),this.params=e||{}},[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}])}();function Ix(t){return new Ax(t)}var Rx="ngNavigationCancelingError";function Nx(t){var e=Error("NavigationCancelingError: "+t);return e[Rx]=!0,e}function Lx(t,e,n){var i=n.path.split("/");if(i.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;for(var o={},r=0;r<i.length;r++){var a=i[r],s=t[r];
1if(a.startsWith(":"))o[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:t.slice(0,i.length),posParams:o}}function Dx(t,e){var n,i=t?Object.keys(t):void 0,o=e?Object.keys(e):void 0;if(!i||!o||i.length!=o.length)return!1;for(var r=0;r<i.length;r++)if(!Fx(t[n=i[r]],e[n]))return!1;return!0}function Fx(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;var n=u(t).sort(),i=u(e).sort();return n.every(function(t,e){return i[e]===t})}return t===e}function Ux(t){return Array.prototype.concat.apply([],t)}function Zx(t){return t.length>0?t[t.length-1]:null}function qx(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function jx(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,Ae.D)(Promise.resolve(t)):(0,qt.of)(t)}var Vx={exact:function t(e,n,i){if(!Kx(e.segments,n.segments)||!Yx(e.segments,n.segments,i)||e.numberOfChildren!==n.numberOfChildren)return!1;for(var o in n.children)if(!e.children[o]||!t(e.children[o],n.children[o],i))return!1;return!0},subset:Bx},zx={exact:function(t,e){return Dx(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return Fx(t[n],e[n])})},ignored:function(){return!0}};function Gx(t,e,n){return Vx[n.paths](t.root,e.root,n.matrixParams)&&zx[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function Bx(t,e,n){return Hx(t,e,e.segments,n)}function Hx(t,e,n,i){if(t.segments.length>n.length){var o=t.segments.slice(0,n.length);return!(!Kx(o,n)||e.hasChildren()||!Yx(o,n,i))}if(t.segments.length===n.length){if(!Kx(t.segments,n)||!Yx(t.segments,n,i))return!1;for(var r in e.children)if(!t.children[r]||!Bx(t.children[r],e.children[r],i))return!1;return!0}var a=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!(Kx(t.segments,a)&&Yx(t.segments,a,i)&&t.children[Ex])&&Hx(t.children[Ex],e,s,i)}function Yx(t,e,n){return e.every(function(e,i){return zx[n](t[i].parameters,e.parameters)})}var Qx=function(){return g(function t(e,n,i){v(this,t),this.root=e,this.queryParams=n,this.fragment=i},[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Ix(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return tw.serialize(this)}}])}(),Jx=function(){return g(function t(e,n){var i=this;v(this,t),this.segments=e,this.children=n,this.parent=null,qx(n,function(t,e){return t.parent=i})},[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return ew(this)}}])}(),Wx=function(){return g(function t(e,n){v(this,t),this.path=e,this.parameters=n},[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Ix(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return cw(this)}}])}();function Kx(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}var $x=g(function t(){v(this,t)}),Xx=function(){return g(function t(){v(this,t)},[{key:"parse",value:function(t){var e=new dw(t);return new Qx(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e="/".concat(nw(t.root,!0)),n=function(t){var e=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(ow(e),"=").concat(ow(t))}).join("&"):"".concat(ow(e),"=").concat(ow(n))}).filter(function(t){return!!t});return e.length?"?".concat(e.join("&")):""}(t.queryParams),i="string"==typeof t.fragment?"#".concat(function(t){return encodeURI(t)}(t.fragment)):"";return"".concat(e).concat(n).concat(i)}}])}(),tw=new Xx;function ew(t){return t.segments.map(function(t){return cw(t)}).join("/")}function nw(t,e){if(!t.hasChildren())return ew(t);if(e){var n=t.children[Ex]?nw(t.children[Ex],!1):"",i=[];return qx(t.children,function(t,e){e!==Ex&&i.push("".concat(e,":").concat(nw(t,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var o=function(t,e){var n=[];return qx(t.children,function(t,i){i===Ex&&(n=n.concat(e(t,i)))}),qx(t.children,function(t,i){i!==Ex&&(n=n.concat(e(t,i)))}),n}(t,function(e,n){return n===Ex?[nw(t.children[Ex],!1)]:["".concat(n,":").concat(nw(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children[Ex]?"".concat(ew(t),"/").concat(o[0]):"".concat(ew(t),"/(").concat(o.join("//"),")")}function iw(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ow(t){return iw(t).replace(/%3B/gi,";")}function rw(t){return iw(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function aw(t){return decodeURIComponent(t)}function sw(t){return aw(t.replace(/\+/g,"%20"))}function cw(t){return"".concat(rw(t.path)).concat(function(t){return Object.keys(t).map(function(e){return";".concat(rw(e),"=").concat(rw(t[e]))}).join("")}(t.parameters))}var uw=/^[^\/()?;=#]+/;function lw(t){var e=t.match(uw);return e?e[0]:""}var hw=/^[^=?&#]+/,fw=/^[^?&#]+/,dw=function(){return g(function t(e){v(this,t),this.url=e,this.remaining=e},[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Jx([],{}):new Jx([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decode
1URIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Ex]=new Jx(t,e)),n}},{key:"parseSegment",value:function(){var t=lw(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Wx(aw(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=lw(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=lw(this.remaining);i&&(n=i,this.capture(n))}t[aw(e)]=aw(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(hw);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(fw);return e?e[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var o=sw(e),r=sw(n);if(t.hasOwnProperty(o)){var a=t[o];Array.isArray(a)||(a=[a],t[o]=a),a.push(r)}else t[o]=r}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=lw(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Ex);var r=this.parseChildren();e[o]=1===Object.keys(r).length?r[Ex]:new Jx([],r),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}])}(),pw=function(){return g(function t(e){v(this,t),this._root=e},[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=gw(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=gw(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=mw(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return mw(t,this._root).map(function(t){return t.value})}}])}();function gw(t,e){if(t===e.value)return e;var n,i=h(e.children);try{for(i.s();!(n=i.n()).done;){var o=gw(t,n.value);if(o)return o}}catch(r){i.e(r)}finally{i.f()}return null}function mw(t,e){if(t===e.value)return[e];var n,i=h(e.children);try{for(i.s();!(n=i.n()).done;){var o=mw(t,n.value);if(o.length)return o.unshift(e),o}}catch(r){i.e(r)}finally{i.f()}return[]}var vw=function(){return g(function t(e,n){v(this,t),this.value=e,this.children=n},[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}])}();function yw(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var _w=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[t])).snapshot=n,Pw(_(i),t),i}return b(e,t),g(e,[{key:"toString",value:function(){return this.snapshot.toString()}}])}(pw);function bw(t,e){var n=function(t,e){var n=new ww([],{},{},"",{},Ex,e,null,t.root,-1,{});return new Ow("",new vw(n,[]))}(t,e),i=new WC([new Wx("",{})]),o=new WC({}),r=new WC({}),a=new WC({}),s=new WC(""),c=new Cw(i,o,a,s,r,Ex,e,n.root);return c.snapshot=n.root,new _w(new vw(c,[]),n)}var Cw=function(){return g(function t(e,n,i,o,r,a,s,c){v(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this._futureSnapshot=c}
1,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,Qt.U)(function(t){return Ix(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Qt.U)(function(t){return Ix(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}])}();function xw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var o=n[i],r=n[i-1];
1if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(r.component)break;i--}}return function(t){return t.reduce(function(t,e){return{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))}var ww=function(){return g(function t(e,n,i,o,r,a,s,c,u,l,h){v(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=c,this._urlSegment=u,this._lastPathIndex=l,this._resolve=h},[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Ix(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Ix(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(t){return t.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}])}(),Ow=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[n])).url=t,Pw(_(i),n),i}return b(e,t),g(e,[{key:"toString",value:function(){return Mw(this._root)}}])}(pw);function Pw(t,e){e.value._routerState=t,e.children.forEach(function(e){return Pw(t,e)})}function Mw(t){var e=t.children.length>0?" { ".concat(t.children.map(Mw).join(", ")," } "):"";return"".concat(t.value).concat(e)}function kw(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Dx(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Dx(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!Dx(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Dx(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Tw(t,e){var n=Dx(t.params,e.params)&&function(t,e){return Kx(t,e)&&t.every(function(t,n){return Dx(t.parameters,e[n].parameters)})}(t.url,e.url);return n&&!(!t.parent!=!e.parent)&&(!t.parent||Tw(t.parent,e.parent))}function Sw(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){var i=n.value;i._futureSnapshot=e.value;var o=function(t,e,n){return e.children.map(function(e){var i,o=h(n.children);try{for(o.s();!(i=o.n()).done;){var r=i.value;if(t.shouldReuseRoute(e.value,r.value.snapshot))return Sw(t,e,r)}}catch(a){o.e(a)}finally{o.f()}return Sw(t,e)})}(t,e,n);return new vw(i,o)}if(t.shouldAttach(e.value)){var r=t.retrieve(e.value);if(null!==r){var a=r.route;return Ew(e,a),a}}var s=function(t){return new Cw(new WC(t.url),new WC(t.params),new WC(t.queryParams),new WC(t.fragment),new WC(t.data),t.outlet,t.component,t)}(e.value),c=e.children.map(function(e){return Sw(t,e)});return new vw(s,c)}function Ew(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(var n=0;n<t.children.length;++n)Ew(t.children[n],e.children[n])}function Aw(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Iw(t){return"object"==typeof t&&null!=t&&t.outlets}function Rw(t,e,n,i,o){var r={};return i&&qx(i,function(t,e){r[e]=Array.isArray(t)?t.map(function(t){return"".concat(t)}):"".concat(t)}),new Qx(n.root===t?e:Nw(n.root,t,e),r,o)}function Nw(t,e,n){var i={};return qx(t.children,function(t,o){i[o]=t===e?n:Nw(t,e,n)}),new Jx(t.segments,i)}var Lw=function(){return g(function t(e,n,i){if(v(this,t),this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=i,e&&i.length>0&&Aw(i[0]))throw new Error("Root segment cannot have matrix parameters");var o=i.find(Iw);if(o&&o!==Zx(i))throw new Error("{outlets:{}} has to be the last command")},[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}])}(),Dw=g(function t(e,n,i){v(this,t),this.segmentGroup=e,this.processChildren=n,this.index=i});function Fw(t,e,n){if(t||(t=new Jx([],{})),0===t.segments.length&&t.hasChildren())return Uw(t,e,n);var i=function(t,e,n){for(var i=0,o=e,r={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(i>=n.length)return r;var a=t.segments[o],s=n[i];if(Iw(s))break;var c="".concat(s),u=i<n.length-1?n[i+1]:null;if(o>0&&void 0===c)break;if(c&&u&&"object"==typeof u&&void 0===u.outlets){if(!Vw(c,u,a))return r;i+=2}else{if(!Vw(c,{},a))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){var r=new Jx(t.segments.slice(0,i.pathIndex),{});return r.children[Ex]=new Jx(t.segments.slice(i.pathIndex),t.children),Uw(r,0,o)}return i.match&&0===o.length?new Jx(t.segments,{}):i.match&&!t.hasChildren()?Zw(t,e,n):i.match?Uw(t,0,o):Zw(t,e,n)}
1function Uw(t,e,i){if(0===i.length)return new Jx(t.segments,{});var o=function(t){return Iw(t[0])?t[0].outlets:n({},Ex,t)}(i),r={};return qx(o,function(n,i){"string"==typeof n&&(n=[n]),null!==n&&(r[i]=Fw(t.children[i],e,n))}),qx(t.children,function(t,e){void 0===o[e]&&(r[e]=t)}),new Jx(t.segments,r)}function Zw(t,e,n){for(var i=t.segments.slice(0,e),o=0;o<n.length;){var r=n[o];if(Iw(r)){var a=qw(r.outlets);return new Jx(i,a)}if(0===o&&Aw(n[0]))i.push(new Wx(t.segments[e].path,jw(n[0]))),o++;else{var s=Iw(r)?r.outlets[Ex]:"".concat(r),c=o<n.length-1?n[o+1]:null;s&&c&&Aw(c)?(i.push(new Wx(s,jw(c))),o+=2):(i.push(new Wx(s,{})),o++)}}return new Jx(i,{})}function qw(t){var e={};return qx(t,function(t,n){"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Zw(new Jx([],{}),0,t))}),e}function jw(t){var e={};return qx(t,function(t,n){return e[n]="".concat(t)}),e}function Vw(t,e,n){return t==n.path&&Dx(e,n.parameters)}var zw=function(){return g(function t(e,n,i,o){v(this,t),this.routeReuseStrategy=e,this.futureState=n,this.currState=i,this.forwardEvent=o},[{key:"activate",value:function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),kw(this.futureState.root),this.activateChildRoutes(e,n,t)}},{key:"deactivateChildRoutes",value:function(t,e,n){var i=this,o=yw(e);t.children.forEach(function(t){var e=t.value.outlet;i.deactivateRoutes(t,o[e],n),delete o[e]}),qx(o,function(t,e){i.deactivateRouteAndItsChildren(t,n)})}},{key:"deactivateRoutes",value:function(t,e,n){var i=t.value,o=e?e.value:null;if(i===o)if(i.component){var r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}},{key:"deactivateRouteAndItsChildren",value:function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}},{key:"detachAndStoreRouteSubtree",value:function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var i=n.outlet.detach(),o=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:i,route:t,contexts:o})}}},{key:"deactivateRouteAndOutlet",value:function(t,e){for(var n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,o=yw(t),r=0,a=Object.keys(o);r<a.length;r++){var s=a[r];this.deactivateRouteAndItsChildren(o[s],i)}n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}},{key:"activateChildRoutes",value:function(t,e,n){var i=this,o=yw(e);t.children.forEach(function(t){i.activateRoutes(t,o[t.value.outlet],n),i.forwardEvent(new Tx(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Mx(t.value.snapshot))}},{key:"activateRoutes",value:function(t,e,n){var i=t.value,o=e?e.value:null;if(kw(i),i===o)if(i.component){var r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){var a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Gw(s.route)}else{var c=function(t){for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),u=c?c.module.componentFactoryResolver:null;a.attachRef=null,a.route=i,a.resolver=u,a.outlet&&a.outlet.activateWith(i,u),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,n)}}])}();function Gw(t){kw(t.value),t.children.forEach(Gw)}var Bw=g(function t(e,n){v(this,t),this.routes=e,this.module=n});function Hw(t){return"function"==typeof t}function Yw(t){return t instanceof Qx}var Qw=Symbol("INITIAL_VALUE");function Jw(){return Fe(function(t){return tx(t.map(function(t){return t.pipe(We(1),wn(Qw))})).pipe(kn(function(t,e){var n=!1;return e.reduce(function(t,i,o){return t!==Qw?t:(i===Qw&&(n=!0),n||!1!==i&&o!==e.length-1&&!Y
1w(i)?t:i)},t)},Qw),Bt(function(t){return t!==Qw}),(0,Qt.U)(function(t){return Yw(t)?t:!0===t}),We(1))})}var Ww=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[QO]},encapsulation:2}),t}();function Kw(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<t.length;n++){var i=t[n];$w(i,Xw(e,i))}}function $w(t,e){t.children&&Kw(t.children,e)}function Xw(t,e){return e?t||e.path?t&&!e.path?"".concat(t,"/"):!t&&e.path?e.path:"".concat(t,"/").concat(e.path):"":t}function tO(t){var e=t.children&&t.children.map(tO),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==Ex&&(n.component=Ww),n}function eO(t){return t.outlet||Ex}function nO(t,e){var n=t.filter(function(t){return eO(t)===e});return n.push.apply(n,u(t.filter(function(t){return eO(t)!==e}))),n}var iO={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function oO(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},iO):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var o=(e.matcher||Lx)(n,t,e);if(!o)return Object.assign({},iO);var r={};qx(o.posParams,function(t,e){r[e]=t.path});var a=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:a,positionalParamSegments:null!==(i=o.posParams)&&void 0!==i?i:{}}}function rO(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(t,e,n){return n.some(function(n){return aO(t,e,n)&&eO(n)!==Ex})}(t,n,i)){var r=new Jx(e,function(t,e,n,i){var o={};o[Ex]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;var r,a=h(n);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(""===s.path&&eO(s)!==Ex){var c=new Jx([],{});c._sourceSegment=t,c._segmentIndexShift=e.length,o[eO(s)]=c}}}catch(u){a.e(u)}finally{a.f()}return o}(t,e,i,new Jx(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(function(n){return aO(t,e,n)})}(t,n,i)){var a=new Jx(t.segments,function(t,e,n,i,o,r){var a,s={},c=h(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(aO(t,n,u)&&!o[eO(u)]){var l=new Jx([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===r?t.segments.length:e.length,s[eO(u)]=l}}}catch(f){c.e(f)}finally{c.f()}return Object.assign(Object.assign({},o),s)}(t,e,n,i,t.children,o));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var s=new Jx(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function aO(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function sO(t,e,n,i){return!!(eO(t)===i||i!==Ex&&aO(e,n,t))&&("**"===t.path||oO(e,t,n).matched)}function cO(t,e,n){return 0===e.length&&!t.children[n]}var uO=g(function t(e){v(this,t),this.segmentGroup=e||null}),lO=g(function t(e){v(this,t),this.urlTree=e});function hO(t){return new jt.y(function(e){return e.error(new uO(t))})}function fO(t){return new jt.y(function(e){return e.error(new lO(t))})}function dO(t){return new jt.y(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))})}var pO=function(){return g(function t(e,n,i,o,r){v(this,t),this.configLoader=n,this.urlSerializer=i,this.urlTree=o,this.config=r,this.allowRedirects=!0,this.ngModule=e.get(s.h0i)},[{key:"apply",value:function(){var t=this,e=rO(this.urlTree.root,[],[],this.config).segmentGroup,n=new Jx(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,Ex).pipe((0,Qt.U)(function(e){return t.createUrlTree(gO(e),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(rx(function(e){if(e instanceof lO)return t.allowRedirects=!1,t.match(e.urlTree);throw e instanceof uO?t.noMatchError(e):e}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Ex).pipe((0,Qt.U)(function(n){return e.createUrlTree(gO(n),t.queryParams,t.fragment)})).pipe(rx(function(t){throw t instanceof uO?e.noMatchError(t):t}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}}
1,{key:"createUrlTree",value:function(t,e,i){var o=t.segments.length>0?new Jx([],n({},Ex,t)):t;return new Qx(o,e,i)}},{key:"expandSegmentGroup",value:function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,Qt.U)(function(t){return new Jx([],t)})):this.expandSegment(t,n,e,n.segments,i,!0)}},{key:"expandChildren",value:function(t,e,n){for(var i=this,o=[],r=0,a=Object.keys(n.children);r<a.length;r++){var s=a[r];"primary"===s?o.unshift(s):o.push(s)}return(0,Ae.D)(o).pipe(zt(function(o){var r=n.children[o],a=nO(e,o);return i.expandSegmentGroup(t,a,r,o).pipe((0,Qt.U)(function(t){return{segment:t,outlet:o}}))}),kn(function(t,e){return t[e.outlet]=e.segment,t},{}),hx())}},{key:"expandSegment",value:function(t,e,n,i,o,r){var a=this;return(0,Ae.D)(n).pipe(zt(function(s){return a.expandSegmentAgainstRoute(t,e,n,s,i,o,r).pipe(rx(function(t){if(t instanceof uO)return(0,qt.of)(null);throw t}))}),cn(function(t){return!!t}),rx(function(t,n){if(t instanceof Ye||"EmptyError"===t.name){if(cO(e,i,o))return(0,qt.of)(new Jx([],{}));throw new uO(e)}throw t}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,i,o,r,a){return sO(i,e,o,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,o,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,o,r):hO(e):hO(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,o,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,o,r)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,i){var o=this,r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?fO(r):this.lineralizeSegments(n,r).pipe((0,Vt.zg)(function(n){var r=new Jx(n,{});return o.expandSegment(t,r,e,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,o,r){var a=this,s=oO(e,i,o),c=s.matched,u=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!c)return hO(e);var f=this.applyRedirectCommands(u,i.redirectTo,h);return i.redirectTo.startsWith("/")?fO(f):this.lineralizeSegments(i,f).pipe((0,Vt.zg)(function(i){return a.expandSegment(t,e,n,i.concat(o.slice(l)),r,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,i,o){var r=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,qt.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,Qt.U)(function(t){return n._loadedConfig=t,new Jx(i,{})})):(0,qt.of)(new Jx(i,{}));var a=oO(e,n,i),s=a.matched,c=a.consumedSegments,u=a.lastChild;if(!s)return hO(e);var l=i.slice(u);return this.getChildConfig(t,n,i).pipe((0,Vt.zg)(function(t){var i=t.module,a=t.routes,s=rO(e,c,l,a),u=s.segmentGroup,h=s.slicedSegments,f=new Jx(u.segments,u.children);if(0===h.length&&f.hasChildren())return r.expandChildren(i,a,f).pipe((0,Qt.U)(function(t){return new Jx(c,t)}));if(0===a.length&&0===h.length)return(0,qt.of)(new Jx(c,{}));var d=eO(n)===o;return r.expandSegment(i,f,a,h,d?Ex:o,!0).pipe((0,Qt.U)(function(t){return new Jx(c.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,n){var i=this;return e.children?(0,qt.of)(new Bw(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,qt.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,Vt.zg)(function(n){return n?i.configLoader.load(t.injector,e).pipe((0,Qt.U)(function(t){return e._loadedConfig=t,t})):function(t){return new jt.y(function(e){return e.error(Nx("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):(0,qt.of)(new Bw([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var i=this,o=e.canLoad;if(!o||0===o.length)return(0,qt.of)(!0);var r=o.map(function(i){var o,r=t.get(i);if(function(t){return t&&Hw(t.canLoad)}(r))o=r.canLoad(e,n);else{if(!Hw(r))throw new Error("Invalid CanLoad guard");o=r(e,n)}return jx(o)});return(0,qt.of)(r).pipe(Jw(),(0,LC.b)(function(t){if(Yw(t)){var e=Nx('Redirecting to "'.concat(i.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),(0,Qt.U)(function(t){return!0===t}))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,qt.of)(n);if(i.numberOfChildren>1||!i.children[Ex])return dO(t.redirectTo);i=i.children[Ex]}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,i){var o=this.createSegmentGroup(t,e.root,n,i);return new Qx(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return qx(t,function(t,i){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[i]=e[o]}else n[i]=t}),n}},{key:"createSegmentGroup",value:function(t,e,n,i){var o=this,r=this.createSegments(t,e.segments,n,i),a={};return qx(e.children,function(e,r){a[r]=o.createSegmentGroup(t,e,n,i)}),new Jx(r,a)}},{key:"createSegments",value:function(t,e,n,i){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,i):o.findOrReturn(e,n)})}},{key:"findPosParam",value:function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return i}},{key:"findOrReturn",value:function(t,e){var n,i=0,o=h(e);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(r.path===t.path)return e.splice(i),r;i++}}catch(a){o.e(a)}finally{o.f()}return t}}])}();function gO(t){for(var e={},n=0,i=Object.keys(t.children);n<i.length;n++){var o=i[n],r=gO(t.children[o]);(r.segments.length>0||r.hasChildren())&&(e[o]=r)}return function(t){if(1===t.numberOfChildren&&t.children[Ex]){var e=t.children[Ex];return new Jx(t.segments.concat(e.segments),e.children)}return t}(new Jx(t.segments,e))}var mO=g(function t(e){v(this,t),this.path=e,this.route=this.path[this.path.length-1]}
1),vO=g(function t(e,n){v(this,t),this.component=e,this.route=n});function yO(t,e,n){var i=t._root;return bO(i,e?e._root:null,n,[i.value])}function _O(t,e,n){var i=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function bO(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},r=yw(e);return t.children.forEach(function(t){(function(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},r=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){var c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Kx(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Kx(t.url,e.url)||!Dx(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Tw(t,e)||!Dx(t.queryParams,e.queryParams);default:return!Tw(t,e)}}(a,r,r.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new mO(i)):(r.data=a.data,r._resolvedData=a._resolvedData),bO(t,e,r.component?s?s.children:null:n,i,o),c&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new vO(s.outlet.component,a))}else a&&CO(e,s,o),o.canActivateChecks.push(new mO(i)),bO(t,null,r.component?s?s.children:null:n,i,o)})(t,r[t.value.outlet],n,i.concat([t.value]),o),delete r[t.value.outlet]}),qx(r,function(t,e){return CO(t,n.getContext(e),o)}),o}function CO(t,e,n){var i=yw(t),o=t.value;qx(i,function(t,i){CO(t,o.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new vO(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}var xO=g(function t(){v(this,t)});function wO(t){return new jt.y(function(e){return e.error(t)})}var OO=function(){return g(function t(e,n,i,o,r,a){v(this,t),this.rootComponentType=e,this.config=n,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=a},[{key:"recognize",value:function(){var t=rO(this.urlTree.root,[],[],this.config.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Ex);if(null===e)return null;var n=new ww([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ex,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new vw(n,e),o=new Ow(this.url,i);return this.inheritParamsAndData(o._root),o}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,i=xw(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){for(var n=[],i=0,o=Object.keys(e.children);i<o.length;i++){var r=o[i],a=e.children[r],s=nO(t,r),c=this.processSegmentGroup(s,a,r);if(null===c)return null;n.push.apply(n,u(c))}var l=PO(n);return function(t){t.sort(function(t,e){return t.value.outlet===Ex?-1:e.value.outlet===Ex?1:t.value.outlet.localeCompare(e.value.outlet)})}(l),l}},{key:"processSegment",value:function(t,e,n,i){var o,r=h(t);try{for(r.s();!(o=r.n()).done;){var a=o.value,s=this.processSegmentAgainstRoute(a,e,n,i);if(null!==s)return s}}catch(c){r.e(c)}finally{r.f()}return cO(e,n,i)?[]:null}},{key:"processSegmentAgainstRoute",value:function(t,e,n,i){if(t.redirectTo||!sO(t,e,n,i))return null;var o,r=[],a=[];if("**"===t.path){var s=n.length>0?Zx(n).parameters:{};o=new ww(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,TO(t),eO(t),t.component,t,MO(e),kO(e)+n.length,SO(t))}else{var c=oO(e,t,n);if(!c.matched)return null;r=c.consumedSegments,a=n.slice(c.lastChild),o=new ww(r,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,TO(t),eO(t),t.component,t,MO(e),kO(e)+r.length,SO(t))}var u=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),l=rO(e,r,a,u.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution),h=l.segmentGroup,f=l.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(u,h);return null===d?null:[new vw(o,d)]}if(0===u.length&&0===f.length)return[new vw(o,[])];var p=eO(t)===i,g=this.processSegment(u,h,f,p?Ex:i);return null===g?null:[new vw(o,g)]}}])}();function PO(t){var e,n=[],i=new Set,o=h(t);try{var r=function(){var t,o=e.value;if(!function(t){var e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}(o))return n.push(o),1;var r=n.find(function(t){return o.value.routeConfig===t.value.routeConfig});void 0!==r?((t=r.children).push.apply(t,u(o.children)),i.add(r)):n.push(o)};for(o.s();!(e=o.n()).done;)r()}catch(f){o.e(f)}finally{o.f()}var a,s=h(i);try{for(s.s();!(a=s.n()).done;){var c=a.value,l=PO(c.children);n.push(new vw(c.value,l))}}catch(f){s.e(f)}finally{s.f()}return n.filter(function(t){return!i.has(t)})}function MO(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function kO(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function TO(t){return t.data||{}}function SO(t){return t.resolve||{}}function EO(t){return Fe(function(e){var n=t(e);return n?(0,Ae.D)(n).pipe((0,Qt.U)(function(){return e})):(0,qt.of)(e)})}var AO=function(t){function e(){return v(this,e),y(this,e,arguments)}return b(e,t),g(e)}(function(){return g(function t(){v(this,t)},[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}])}()),IO=new s.OlP("ROUTES"),RO=function(){return g(function t(e,n,i,o){v(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=o},[{key:"load",value:function(t,e){var n=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var i=this.loadModuleFactory(e.loadChildren).pipe((0,Qt.U)(function(i){n.onLoadEndListener&&n.onLoadEndListener(e);var o=i.create(t);return new Bw(Ux(o.injector.get(IO,void 0,s.XFs.Self|s.XFs.Optional)).map(tO),o)}),rx(function(t){throw e._loader$=void 0,t}));return e._loader$=new ox.c(i,function(){return new Ee.xQ}).pipe((0,fx.x)()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?(0,Ae.D)(this.loader.load(t)):jx(t()).pipe((0,Vt.zg)(function(t){return t instanceof s.YKP?(0,qt.of)(t):(0,Ae.D)(e.compiler.compileModuleAsync(t))}))}}])}(),NO=g(function t(){v(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new LO,this.attachRef=null}),LO=function(){return g(function t(){v(this,t),this.contexts=new Map},[{key:"onChildOutletCreated",value:function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new NO,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}])}(),DO=function(){return g(function t(){v(this,t)},[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}])}();function FO(t){throw t}function UO(t,e,n){return e.parse("/")}function ZO(t,e){return(0,qt.of)(null)}var qO={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},jO={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},VO=function(){var t=function(){return g(function t(e,n,i,o,r,a,c,u){var l=this;
1v(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=i,this.location=o,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ee.xQ,this.errorHandler=FO,this.malformedUriErrorHandler=UO,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ZO,afterPreactivation:ZO},this.urlHandlingStrategy=new DO,this.routeReuseStrategy=new AO,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=r.get(s.h0i),this.console=r.get(s.c2e);var h=r.get(s.R0b);this.isNgZoneEnabled=h instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new Qx(new Jx([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new RO(a,c,function(t){return l.triggerEvent(new wx(t))},function(t){return l.triggerEvent(new Ox(t))}),this.routerState=bw(this.currentUrlTree,this.rootComponentType),this.transitions=new WC({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()},[{key:"browserPageId",get:function(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}},{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Bt(function(t){return 0!==t.id}),(0,Qt.U)(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Fe(function(t){var i=!1,o=!1;return(0,qt.of)(t).pipe((0,LC.b)(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Fe(function(t){var i=e.browserUrlTree.toString(),r=!e.navigated||t.extractedUrl.toString()!==i||i!==e.currentUrlTree.toString();if(("reload"===e.onSameUrlNavigation||r)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return zO(t.source)&&(e.browserUrlTree=t.extractedUrl),(0,qt.of)(t).pipe(Fe(function(t){var i=e.transitions.getValue();return n.next(new px(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?Je.E:Promise.resolve(t)}),function(t,e,n,i){return Fe(function(o){return function(t,e,n,i,o){return new pO(t,e,n,i,o).apply()}(t,e,n,o.extractedUrl,i).pipe((0,Qt.U)(function(t){return Object.assign(Object.assign({},o),{urlAfterRedirects:t})}))})}(e.ngModule.injector,e.configLoader,e.urlSerializer,e.config),(0,LC.b)(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,n,i,r,a){return(0,Vt.zg)(function(i){return function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var s=new OO(t,e,n,i,r,a).recognize();return null===s?wO(new xO):(0,qt.of)(s)}catch(o){return wO(o)}}(t,n,i.urlAfterRedirects,(s=i.urlAfterRedirects,e.serializeUrl(s)),r,a).pipe((0,Qt.U)(function(t){return Object.assign(Object.assign({},i),{targetSnapshot:t})}));var s})}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),(0,LC.b)(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,t),e.browserUrlTree=t.urlAfterRedirects);var i=new yx(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)}));if(r&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var a=t.id,s=t.extractedUrl,c=t.source,u=t.restoredState,l=t.extras,h=new px(a,e.serializeUrl(s),c,u);n.next(h);var f=bw(s,e.rootComponentType).snapshot;return(0,qt.of)(Object.assign(Object.assign({},t),{targetSnapshot:f,urlAfterRedirects:s,extras:Object.assign(Object.assign({},l),{skipLocationChange:!1,replaceUrl:!1})}
1))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Je.E}),EO(function(t){var n=t.targetSnapshot,i=t.id,o=t.extractedUrl,r=t.rawUrl,a=t.extras,s=a.skipLocationChange,c=a.replaceUrl;return e.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:o,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!c})}),(0,LC.b)(function(t){var n=new _x(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(0,Qt.U)(function(t){return Object.assign(Object.assign({},t),{guards:yO(t.targetSnapshot,t.currentSnapshot,e.rootContexts)})}),function(t,e){return(0,Vt.zg)(function(n){var i=n.targetSnapshot,o=n.currentSnapshot,r=n.guards,a=r.canActivateChecks,s=r.canDeactivateChecks;return 0===s.length&&0===a.length?(0,qt.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,Ae.D)(t).pipe((0,Vt.zg)(function(t){return function(t,e,n,i,o){var r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return(0,qt.of)(!0);var a=r.map(function(r){var a,s=_O(r,e,o);if(function(t){return t&&Hw(t.canDeactivate)}(s))a=jx(s.canDeactivate(t,e,n,i));else{if(!Hw(s))throw new Error("Invalid CanDeactivate guard");a=jx(s(t,e,n,i))}return a.pipe(cn())});return(0,qt.of)(a).pipe(Jw())}(t.component,t.route,n,e,i)}),cn(function(t){return!0!==t},!0))}(s,i,o,t).pipe((0,Vt.zg)(function(n){return n&&function(t){return"boolean"==typeof t}(n)?function(t,e,n,i){return(0,Ae.D)(e).pipe(zt(function(e){return Cn(function(t,e){return null!==t&&e&&e(new Px(t)),(0,qt.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new kx(t)),(0,qt.of)(!0)}(e.route,i),function(t,e,n){var i=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return ix(function(){var o=e.guards.map(function(o){var r,a=_O(o,e.node,n);if(function(t){return t&&Hw(t.canActivateChild)}(a))r=jx(a.canActivateChild(i,t));else{if(!Hw(a))throw new Error("Invalid CanActivateChild guard");r=jx(a(i,t))}return r.pipe(cn())});return(0,qt.of)(o).pipe(Jw())})});return(0,qt.of)(o).pipe(Jw())}(t,e.path,n),function(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,qt.of)(!0);var o=i.map(function(i){return ix(function(){var o,r=_O(i,e,n);if(function(t){return t&&Hw(t.canActivate)}(r))o=jx(r.canActivate(e,t));else{if(!Hw(r))throw new Error("Invalid CanActivate guard");o=jx(r(e,t))}return o.pipe(cn())})});return(0,qt.of)(o).pipe(Jw())}(t,e.route,n))}),cn(function(t){return!0!==t},!0))}(i,a,t,e):(0,qt.of)(n)}),(0,Qt.U)(function(t){return Object.assign(Object.assign({},n),{guardsResult:t})}))})}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),(0,LC.b)(function(t){if(Yw(t.guardsResult)){var n=Nx('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}var i=new bx(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(i)}),Bt(function(t){return!!t.guardsResult||(e.restoreHistory(t),e.cancelNavigationTransition(t,""),!1)}),EO(function(t){if(t.guards.canActivateChecks.length)return(0,qt.of)(t).pipe((0,LC.b)(function(t){var n=new Cx(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Fe(function(t){var n=!1;return(0,qt.of)(t).pipe(function(t,e){return(0,Vt.zg)(function(n){var i=n.targetSnapshot,o=n.guards.canActivateChecks;if(!o.length)return(0,qt.of)(n);var r=0;return(0,Ae.D)(o).pipe(zt(function(n){return function(t,e,n,i){return function(t,e,n,i){var o=Object.keys(t);if(0===o.length)return(0,qt.of)({});var r={};return(0,Ae.D)(o).pipe((0,Vt.zg)(function(o){return function(t,e,n,i){var o=_O(t,e,i);return jx(o.resolve?o.resolve(e,n):o(e,n))}(t[o],e,n,i).pipe((0,LC.b)(function(t){r[o]=t}))}),cx(1),(0,Vt.zg)(function(){return Object.keys(r).length===o.length?(0,qt.of)(r):Je.E}))}(t._resolve,t,e,i).pipe((0,Qt.U)(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),xw(t,n).resolve),null}))}(n.route,i,t,e)}),(0,LC.b)(function(){return r++}),cx(1),(0,Vt.zg)(function(t){return r===o.length?(0,qt.of)(n):Je.E}))})}(e.paramsInheritanceStrategy,e.ngModule.injector),(0,LC.b)({next:function(){return n=!0},complete:function(){n||(e.restoreHistory(t),e.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}))}),(0,LC.b)(function(t){var n=new xx(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}))}
1),EO(function(t){var n=t.targetSnapshot,i=t.id,o=t.extractedUrl,r=t.rawUrl,a=t.extras,s=a.skipLocationChange,c=a.replaceUrl;return e.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:o,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!c})}),(0,Qt.U)(function(t){var n=function(t,e,n){var i=Sw(t,e._root,n?n._root:void 0);return new _w(i,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:n})}),(0,LC.b)(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(t.urlAfterRedirects,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,t),e.browserUrlTree=t.urlAfterRedirects)}),function(t,e,n){return(0,Qt.U)(function(i){return new zw(e,i.targetRouterState,i.currentRouterState,n).activate(t),i})}(e.rootContexts,e.routeReuseStrategy,function(t){return e.triggerEvent(t)}),(0,LC.b)({next:function(){i=!0},complete:function(){i=!0}}),ZC(function(){var n;if(!i&&!o){var r="Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId);"replace"===e.canceledNavigationResolution?(e.restoreHistory(t),e.cancelNavigationTransition(t,r)):e.cancelNavigationTransition(t,r)}(null===(n=e.currentNavigation)||void 0===n?void 0:n.id)===t.id&&(e.currentNavigation=null)}),rx(function(i){if(o=!0,function(t){return t&&t[Rx]}(i)){var r=Yw(i.url);r||(e.navigated=!0,e.restoreHistory(t,!0));var a=new mx(t.id,e.serializeUrl(t.extractedUrl),i.message);n.next(a),r?setTimeout(function(){var n=e.urlHandlingStrategy.merge(i.url,e.rawUrlTree),o={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||zO(t.source)};e.scheduleNavigation(n,"imperative",null,o,{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.restoreHistory(t,!0);var s=new vx(t.id,e.serializeUrl(t.extractedUrl),i);n.next(s);try{t.resolve(e.errorHandler(i))}catch(a){t.reject(a)}}return Je.E}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,n)&&setTimeout(function(){var e=n.source,i=n.state,o=n.urlTree,r={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}t.scheduleNavigation(o,e,i,r)},0),t.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(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}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var 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)}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){Kw(t),this.config=t.map(tO),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,i=e.queryParams,o=e.fragment,r=e.queryParamsHandling,a=e.preserveFragment,s=n||this.routerState.root,c=a?this.currentUrlTree.fragment:o,l=null;switch(r){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(t,e,n,i,o){if(0===n.length)return Rw(e.root,e.root,e,i,o);var r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Lw(!0,0,t);var e=0,n=!1,i=t.reduce(function(t,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var r={};
1return qx(i.outlets,function(t,e){r[e]="string"==typeof t?t.split("/"):t}),[].concat(u(t),[{outlets:r}])}if(i.segmentPath)return[].concat(u(t),[i.segmentPath])}return"string"!=typeof i?[].concat(u(t),[i]):0===o?(i.split("/").forEach(function(i,o){0==o&&"."===i||(0==o&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[].concat(u(t),[i])},[]);return new Lw(n,e,i)}(n);if(r.toRoot())return Rw(e.root,new Jx([],{}),e,i,o);var a=function(t,e,n){if(t.isAbsolute)return new Dw(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new Dw(i,i===e.root,0)}var o=Aw(t.commands[0])?0:1;return function(t,e,n){for(var i=t,o=e,r=n;r>o;){if(r-=o,!(i=i.parent))throw new Error("Invalid number of '../'");o=i.segments.length}return new Dw(i,!1,o-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+o,t.numberOfDoubleDots)}(r,e,t),s=a.processChildren?Uw(a.segmentGroup,a.index,r.commands):Fw(a.segmentGroup,a.index,r.commands);return Rw(a.segmentGroup,s,e,i,o)}(s,this.currentUrlTree,t,l,null!=c?c:null)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Yw(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(e))}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){var n;if(n=!0===e?Object.assign({},qO):!1===e?Object.assign({},jO):e,Yw(t))return Gx(this.currentUrlTree,t,n);var i=this.parseUrl(t);return Gx(this.currentUrlTree,i,n)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce(function(e,n){var i=t[n];return null!=i&&(e[n]=i),e},{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe(function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.currentPageId=e.targetPageId,t.events.next(new gx(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,e.resolve(!0)},function(e){t.console.warn("Unhandled Navigation Error: ".concat(e))})}},{key:"scheduleNavigation",value:function(t,e,n,i,o){var r,a;if(this.disposed)return Promise.resolve(!1);var s,c,u,l=this.getTransition(),h=zO(e)&&l&&!zO(l.source),f=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===t.toString();if(h&&f)return Promise.resolve(!0);o?(s=o.resolve,c=o.reject,u=o.promise):u=new Promise(function(t,e){s=t,c=e});var d,p=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),d=n&&n.\u0275routerPageId?n.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(r=this.browserPageId)&&void 0!==r?r:0:(null!==(a=this.browserPageId)&&void 0!==a?a:0)+1):d=0,this.setTransition({id:p,targetPageId:d,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:s,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(function(t){return Promise.reject(t)})}},{key:"setBrowserUrl",value:function(t,e){var 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)}},{key:"restoreHistory",value:function(t){var e,n,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var o=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(e=this.currentNavigation)||void 0===e?void 0:e.finalUrl)||0===o?this.currentUrlTree===(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(t,e){var n=new mx(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}},{key:"generateNgRouterState",value:function(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG($x),s.LFG(LO),s.LFG(I
1),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}();function zO(t){return"imperative"!==t}var GO=function(){var t=function(){return g(function t(e,n,i,o,r){v(this,t),this.router=e,this.route=n,this.commands=[],this.onChanges=new Ee.xQ,null==i&&o.setAttribute(r.nativeElement,"tabindex","0")},[{key:"ngOnChanges",value:function(t){this.onChanges.next(this)}},{key:"routerLink",set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}},{key:"onClick",value:function(){var t={skipLocationChange:HO(this.skipLocationChange),replaceUrl:HO(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}},{key:"urlTree",get:function(){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:HO(this.preserveFragment)})}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(VO),s.Y36(Cw),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.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:[s.TTD]}),t}(),BO=function(){var t=function(){return g(function t(e,n,i){var o=this;v(this,t),this.router=e,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new Ee.xQ,this.subscription=e.events.subscribe(function(t){t instanceof gx&&o.updateTargetUrlAndHref()})},[{key:"routerLink",set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}},{key:"ngOnChanges",value:function(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(t,e,n,i,o){if(0!==t||e||n||i||o||"string"==typeof this.target&&"_self"!=this.target)return!0;var r={skipLocationChange:HO(this.skipLocationChange),replaceUrl:HO(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){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:HO(this.preserveFragment)})}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(VO),s.Y36(Cw),s.Y36(k))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.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:[s.TTD]}),t}();function HO(t){return""===t||!!t}var YO=function(){var t=function(){return g(function t(e,n,i,o,r,a){var s=this;v(this,t),this.router=e,this.element=n,this.renderer=i,this.cdr=o,this.link=r,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=e.events.subscribe(function(t){t instanceof gx&&s.update()})},[{key:"ngAfterContentInit",value:function(){var t=this;(0,qt.of)(this.links.changes,this.linksWithHrefs.changes,(0,qt.of)(null)).pipe((0,bn.J)()).subscribe(function(e){t.update(),t.subscribeToEachLinkOnChanges()})}},{key:"subscribeToEachLinkOnChanges",value:function(){var t,e=this;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();var n=[].concat(u(this.links.toArray()),u(this.linksWithHrefs.toArray()),[this.link,this.linkWithHref]).filter(function(t){return!!t}).map(function(t){return t.onChanges});this.linkInputChangesSubscription=(0,Ae.D)(n).pipe((0,bn.J)()).subscribe(function(t){e.isActive!==e.isLinkActive(e.router)(t)&&e.update(
1)})}},{key:"routerLinkActive",set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})}},{key:"ngOnChanges",value:function(t){this.update()}},{key:"ngOnDestroy",value:function(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}},{key:"update",value:function(){var t=this;!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(function(){var e=t.hasActiveLinks();t.isActive!==e&&(t.isActive=e,t.cdr.markForCheck(),t.classes.forEach(function(n){e?t.renderer.addClass(t.element.nativeElement,n):t.renderer.removeClass(t.element.nativeElement,n)}))})}},{key:"isLinkActive",value:function(t){var e=function(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return function(n){return t.isActive(n.urlTree,e)}}},{key:"hasActiveLinks",value:function(){var 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)(s.Y36(VO),s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.sBO),s.Y36(GO,8),s.Y36(BO,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){var i;(1&t&&(s.Suo(n,GO,5),s.Suo(n,BO,5)),2&t)&&(s.iGM(i=s.CRH())&&(e.links=i),s.iGM(i=s.CRH())&&(e.linksWithHrefs=i))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[s.TTD]}),t}(),QO=function(){var t=function(){return g(function t(e,n,i,o,r){v(this,t),this.parentContexts=e,this.location=n,this.resolver=i,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=o||Ex,e.onChildOutletCreated(this.name,this)},[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t}},{key:"attach",value:function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}},{key:"deactivate",value:function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}},{key:"activateWith",value:function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,o=new JO(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)(s.Y36(LO),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t}(),JO=function(){return g(function t(e,n,i){v(this,t),this.route=e,this.childContexts=n,this.parent=i},[{key:"get",value:function(t,e){return t===Cw?this.route:t===LO?this.childContexts:this.parent.get(t,e)}}])}(),WO=g(function t(){v(this,t)}),KO=function(){return g(function t(){v(this,t)},[{key:"preload",value:function(t,e){return(0,qt.of)(null)}}])}(),$O=function(){var t=function(){return g(function t(e,n,i,o,r){v(this,t),this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=new RO(n,i,function(t){return e.triggerEvent(new wx(t))},function(t){return e.triggerEvent(new Ox(t))})},[{key:"setUpPreloading",value:function(){var t=this;this.subscription=this.router.events.pipe(Bt(function(t){return t instanceof gx}),zt(function(){return t.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(t,e){var n,i=[],o=h(e);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(r.loadChildren&&!r.canLoad&&r._loadedConfig){var a=r._loadedConfig;i.push(this.processRoutes(a.module,a.routes))}else r.loadChildren&&!r.canLoad?i.push(this.preloadConfig(t,r)):r.children&&i.push(this.processRoutes(t,r.children))}}catch(s){o.e(s)}finally{o.f()}return(0,Ae.D)(i).pipe((0,bn.J)(),(0,Qt.U)(function(t){}))}},{key:"preloadConfig",value:function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){return(e._loadedConfig?(0,qt.of)(e._loadedConfig):n.loader.load(t.injector,e)).pipe((0,Vt.zg)(function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)}))})}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(VO),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(WO))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),XO=function(){var t=function(){return g(function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};v(this,t),this.router=e,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anch
1orScrolling||"disabled"},[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof px?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof gx&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof Sx&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new Sx(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(VO),s.LFG(ot),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),tP=new s.OlP("ROUTER_CONFIGURATION"),eP=new s.OlP("ROUTER_FORROOT_GUARD"),nP=[I,{provide:$x,useClass:Xx},{provide:VO,useFactory:function(t,e,n,i,o,r,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,l=new VO(null,t,e,n,i,o,r,Ux(a));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)}(s,l),s.enableTracing&&l.events.subscribe(function(t){var e,n;null===(e=console.group)||void 0===e||e.call(console,"Router Event: ".concat(t.constructor.name)),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),l},deps:[$x,LO,I,s.zs3,s.v3s,s.Sil,IO,tP,[g(function t(){v(this,t)}),new s.FiY],[g(function t(){v(this,t)}),new s.FiY]]},LO,{provide:Cw,useFactory:function(t){return t.routerState.root},deps:[VO]},{provide:s.v3s,useClass:s.EAV},$O,KO,function(){return g(function t(){v(this,t)},[{key:"preload",value:function(t,e){return e().pipe(rx(function(){return(0,qt.of)(null)}))}}])}(),{provide:tP,useValue:{enableTracing:!1}}];function iP(){return new s.PXZ("Router",VO)}var oP=function(){var t=function(){function t(e,n){v(this,t)}return g(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[nP,cP(e),{provide:eP,useFactory:sP,deps:[[VO,new s.FiY,new s.tp0]]},{provide:tP,useValue:n||{}},{provide:k,useFactory:aP,deps:[d,[new s.tBr(S),new s.FiY],tP]},{provide:XO,useFactory:rP,deps:[VO,ot,tP]},{provide:WO,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:KO},{provide:s.PXZ,multi:!0,useFactory:iP},[uP,{provide:s.ip1,multi:!0,useFactory:lP,deps:[uP]},{provide:fP,useFactory:hP,deps:[uP]},{provide:s.tb,multi:!0,useExisting:fP}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[cP(e)]}}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(eP,8),s.LFG(VO,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t}();function rP(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new XO(t,e,n)}function aP(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new A(t,e):new E(t,e)}function sP(t){return"guarded"}function cP(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:IO,multi:!0,useValue:t}]}var uP=function(){var t=function(){return g(function t(e){v(this,t),this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ee.xQ},[{key:"appInitializer",value:function(){var t=this;return this.injector.get(m,Promise.resolve(null)).then(function(){if(t.destroyed)return Promise.resolve(!0);var e=null,n=new Promise(function(t){return e=t}),i=t.injector.get(VO),o=t.injector.get(tP);return"disabled"===o.initialNavigation?(i.setUpLocationChangeListener(),e(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(i.hooks.afterPreactivation=function(){return t.initNavigation?(0,qt.of)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},i.initialNavigation()):e(!0),n})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(tP),n=this.injector.get($O),i=this.injector.get(XO),o=this.injector.get(VO),r=this.injector.get(s.z2F);t===r.components[0]&&(("enabledNonBlocking"===e.initialNavigation||void 0===e.initialNavigation)&&o.initialNavigation(),n.setUpPreloading(),i.init(),o.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}();function lP(t){return t.appInitializer.bind(t)}function hP(t){return t.bootstrapListener.bind(t)}var fP=new s.OlP("Router Initializer"),dP="https://us-central1-medicsacademy-sso.cloudfunctions.net",pP="https://sso.medics.academy",gP="https://medicsacademy-sso-admin.web.app",mP={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"},vP=r(205),yP="firebasestorage.googleapis.com",_P="storageBucket",bP=function(t){function e(n,i){var o=t.call(this,CP(n),"Firebase Storage: "+i+" ("+CP(n)+")")||this;return o.customData={serverResponse:null},o._baseMessage=o.message,Object.setPrototypeOf(o,e.prototype),o}return(0,Ln.ZT)(e,t),e.prototype._codeEquals=function(t){return CP(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}
1,enumerable:!1,configurable:!0}),e}(Dn.ZR);function CP(t){return"storage/"+t}function xP(){return new bP("unknown","An unknown error occurred, please check the error payload for server response.")}function wP(){return new bP("canceled","User canceled the upload/download.")}function OP(){return new bP("cannot-slice-blob","Cannot slice blob for upload. Please retry the upload.")}function PP(t){return new bP("invalid-argument",t)}function MP(){return new bP("app-deleted","The Firebase app was deleted.")}function kP(t){return new bP("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 TP(t,e){return new bP("invalid-format","String does not match format '"+t+"': "+e)}function SP(t){throw new bP("internal-error","Internal error: "+t)}var EP={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"},AP=function(t,e){this.data=t,this.contentType=e||null};function IP(t,e){switch(t){case EP.RAW:return new AP(RP(e));case EP.BASE64:case EP.BASE64URL:return new AP(NP(t,e));case EP.DATA_URL:return new AP(function(t){var e=new LP(t);return e.base64?NP(EP.BASE64,e.rest):function(t){var e;try{e=decodeURIComponent(t)}catch(n){throw TP(EP.DATA_URL,"Malformed data URL.")}return RP(e)}(e.rest)}(e),function(t){return new LP(t).contentType}(e))}throw xP()}function RP(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 NP(t,e){switch(t){case EP.BASE64:var n=-1!==e.indexOf("-"),i=-1!==e.indexOf("_");if(n||i)throw TP(t,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case EP.BASE64URL:var o=-1!==e.indexOf("+"),r=-1!==e.indexOf("/");if(o||r)throw TP(t,"Invalid character '"+(o?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/")}var a;try{a=function(t){return atob(t)}(e)}catch(u){throw TP(t,"Invalid character found")}for(var s=new Uint8Array(a.length),c=0;c<a.length;c++)s[c]=a.charCodeAt(c);return s}var LP=function(t){this.base64=!1,this.contentType=null;var e=t.match(/^data:([^,]+)?,/);if(null===e)throw TP(EP.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)},DP={STATE_CHANGED:"state_changed"},FP={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function UP(t){switch(t){case"running":case"pausing":case"canceling":return FP.RUNNING;case"paused":return FP.PAUSED;case"success":return FP.SUCCESS;case"canceled":return FP.CANCELED;default:return FP.ERROR}}var ZP=(function(t){t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_ERROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT"}(ZP||(ZP={})),ZP),qP=function(){function t(){var t=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=ZP.NO_ERROR,this.sendPromise_=new Promise(function(e){t.xhr_.addEventListener("abort",function(){t.errorCode_=ZP.ABORT,e()}),t.xhr_.addEventListener("error",function(){t.errorCode_=ZP.NETWORK_ERROR,e()}),t.xhr_.addEventListener("load",function(){e()})})}return t.prototype.send=function(t,e,n,i){if(this.sent_)throw SP("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 SP("cannot .getErrorCode() before sending");return this.errorCode_},t.prototype.getStatus=function(){if(!this.sent_)throw SP("cannot .getStatus() before sending");try{return this.xhr_.status}catch(t){return-1}},t.prototype.getResponseText=function(){if(!this.sent_)throw SP("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}(),jP=function(){function t(){}return t.prototype.createConnection=function(){return new qP},t}(),VP=function(){function t(t,e){this.bucket=t,this.path_=e}return Object.defineProperty(t.prototype,"path",{get:function(){return this.path_}
1,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 bP("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 a(t){t.path_=decodeURIComponent(t.path)}for(var s=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?://"+s+"/v[A-Za-z0-9_]+/b/"+o+"/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:a},{regex:new RegExp("^https?://"+(n===yP?"(?:storage.googleapis.com|storage.cloud.google.com)":n)+"/"+o+"/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:a}],u=0;u<c.length;u++){var l=c[u],h=l.regex.exec(e);if(h){var f=h[l.indices.path];f||(f=""),i=new t(h[l.indices.bucket],f),l.postModify(i);break}}if(null==i)throw function(t){return new bP("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 GP(t){return"string"==typeof t||t instanceof String}function BP(t){return HP()&&t instanceof Blob}function HP(){return"undefined"!=typeof Blob}function YP(t,e,n,i){if(i<e)throw PP("Invalid value for '"+t+"'. Expected "+e+" or greater.");if(i>n)throw PP("Invalid value for '"+t+"'. Expected "+n+" or less.")}function QP(t,e){var n=e.match(/^(\w+):\/\/.+/),i=e;return null==(null==n?void 0:n[1])&&(i="https://"+e),i+"/v0"+t}function JP(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 WP=function(){function t(t,e,n,i,o,r,a,s,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_=a,this.errorCallback_=s,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 a=t.callback_(r,r.getResponseText());!function(t){return void 0!==t}(a)?i():i(a)}catch(c){o(c)}else if(null!==r)(s=xP()).serverResponse=r.getResponseText(),o(t.errorCallback_?t.errorCallback_(r,s):s);else if(n.canceled)o(s=t.appDelete_?MP():wP());else{var s;o(s=new bP("retry-limit-exceeded","Max retry time for operation exceeded, please try again."))}}this.canceled_?e(0,new KP(!1,null,!0)):this.backoffId_=function(t,e,n){var i=1,o=null,r=!1,a=0;function s(){return 2===a}var c=!1;function u(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];c||(c=!0,e.apply(null,t))}function l(e){o=setTimeout(function(){o=null,t(h,s())},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,Ln.ev)([null,t],e));var o;if(s()||r)return void u.call.apply(u,(0,Ln.ev)([null,t],e));i<64&&(i*=2),1===a?(a=2,o=0):o=1e3*(i+Math.random()),l(o)}}var f=!1;function d(t){f||(f=!0,!c&&(null!==o?(t||(a=2),clearTimeout(o),l(0)):t||(a=1)))}return l(0),setTimeout(function(){r=!0,d(!0)},n),d}(function(e,n){if(n)e(!1,new KP(!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()===ZP.NO_ERROR,r=i.getStatus();if(n&&!t.isRetryStatusCode_(r)){var a=-1!==t.successCodes_.indexOf(r);e(!0,new KP(a,i))}else{var s=i.getErrorCode()===ZP.ABORT;e(!1,new KP(!1,null,s))}})}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}(),KP=function(t,e,n){this.wasSuccessCode=t,this.connection=e,this.canceled=!!n};function $P(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?Web
1KitBlobBuilder:void 0}function XP(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=$P();if(void 0!==n){for(var i=new n,o=0;o<t.length;o++)i.append(t[o]);return i.getBlob()}if(HP())return new Blob(t);throw new bP("unsupported-environment","This browser doesn't seem to support creating Blobs")}var tM=function(){function t(t,e){var n=0,i="";BP(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(BP(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(HP()){var i=e.map(function(e){return e instanceof t?e.data_:e});return new t(XP.apply(null,i))}var o=e.map(function(t){return GP(t)?IP(EP.RAW,t).data:t.data_}),r=0;o.forEach(function(t){r+=t.byteLength});var a=new Uint8Array(r),s=0;return o.forEach(function(t){for(var e=0;e<t.length;e++)a[s++]=t[e]}),new t(a,!0)},t.prototype.uploadData=function(){return this.data_},t}();function eM(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 nM(t){var e=t.lastIndexOf("/",t.length-2);return-1===e?t:t.slice(e+1)}function iM(t,e){return e}var oM=function(t,e,n,i){this.server=t,this.local=e||t,this.writable=!!n,this.xform=i||iM},rM=null;function aM(){if(rM)return rM;var t=[];t.push(new oM("bucket")),t.push(new oM("generation")),t.push(new oM("metageneration")),t.push(new oM("name","fullPath",!0));var e=new oM("name");e.xform=function(t,e){return function(t){return!GP(t)||t.length<2?t:nM(t)}(e)},t.push(e);var n=new oM("size");return n.xform=function(t,e){return void 0!==e?Number(e):e},t.push(n),t.push(new oM("timeCreated")),t.push(new oM("updated")),t.push(new oM("md5Hash",null,!0)),t.push(new oM("cacheControl",null,!0)),t.push(new oM("contentDisposition",null,!0)),t.push(new oM("contentEncoding",null,!0)),t.push(new oM("contentLanguage",null,!0)),t.push(new oM("contentType",null,!0)),t.push(new oM("metadata","customMetadata",!0)),rM=t}function sM(t,e,n){var i=eM(e);return null===i?null:function(t,e,n){for(var i={type:"file"},o=n.length,r=0;r<o;r++){var a=n[r];i[a.local]=a.xform(i,e[a.server])}return function(t,e){Object.defineProperty(t,"ref",{get:function(){var n=new VP(t.bucket,t.fullPath);return e._makeStorageReference(n)}})}(i,t),i}(t,i,n)}function cM(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 uM="prefixes",lM=function(t,e,n,i){this.url=t,this.method=e,this.handler=n,this.timeout=i,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]};function hM(t){if(!t)throw xP()}function fM(t,e){return function(n,i){var o=sM(t,i,e);return hM(null!==o),o}}function dM(t){return function(e,n){var i;return i=401===e.getStatus()?e.getResponseText().includes("Firebase App Check token is invalid")?new bP("unauthorized-app","This app does not have permission to access Firebase Storage on this project."):new bP("unauthenticated","User is not authenticated, please authenticate using Firebase Authentication and try again."):402===e.getStatus()?function(t){return new bP("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 bP("unauthorized","User does not have permission to access '"+t+"'.")}(t.path):n,i.serverResponse=n.serverResponse,i}}function pM(t){var e=dM(t);return function(n,i){var o=e(n,i);
1return 404===n.getStatus()&&(o=function(t){return new bP("object-not-found","Object '"+t+"' does not exist.")}(t.path)),o.serverResponse=i.serverResponse,o}}function gM(t,e,n){var i=QP(e.fullServerUrl(),t.host),o=t.maxOperationRetryTime,r=new lM(i,"GET",fM(t,n),o);return r.errorHandler=pM(e),r}function mM(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 vM=function(t,e,n,i){this.current=t,this.total=e,this.finalized=!!n,this.metadata=i||null};function yM(t,e){var n=null;try{n=t.getResponseHeader("X-Goog-Upload-Status")}catch(i){hM(!1)}return hM(!!n&&-1!==(e||["active"]).indexOf(n)),n}var _M=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 bM(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 CM=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=aM(),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(),a=mM(e,i,o),s={name:a.fullPath},c=QP(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":a.contentType,"Content-Type":"application/json; charset=utf-8"},l=cM(a,n),h=new lM(c,"POST",function(t){var e;yM(t);try{e=t.getResponseHeader("X-Goog-Upload-URL")}catch(n){hM(!1)}return hM(GP(e)),e},t.maxUploadRetryTime);return h.urlParams=s,h.headers=u,h.body=l,h.errorHandler=dM(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 lM(n,"POST",function(t){var e=yM(t,["active","final"]),n=null;try{n=t.getResponseHeader("X-Goog-Upload-Size-Received")}catch(r){hM(!1)}n||hM(!1);var o=Number(n);return hM(!isNaN(o)),new vM(o,i.size(),"final"===e)},t.maxUploadRetryTime);return o.headers={"X-Goog-Upload-Command":"query"},o.errorHandler=dM(e),o}(t._ref.storage,t._ref._location,e,t._blob),r=t._ref.storage._makeRequest
1(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 vM(this._transferred,this._blob.size()),i=this._uploadUrl;this._resolveToken(function(o,r){var a;try{a=function(t,e,n,i,o,r,a,s){var c=new vM(0,0);if(a?(c.current=a.current,c.total=a.total):(c.current=0,c.total=i.size()),i.size()!==c.total)throw new bP("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,f={"X-Goog-Upload-Command":l===u?"upload, finalize":"upload","X-Goog-Upload-Offset":""+c.current},d=i.slice(h,h+l);if(null===d)throw OP();var p=new lM(n,"POST",function(t,n){var o,a=yM(t,["active","final"]),s=c.current+l,u=i.size();return o="final"===a?fM(e,r)(t,n):null,new vM(s,u,"final"===a,o)},e.maxUploadRetryTime);return p.headers=f,p.body=d.uploadData(),p.progressCallback=s||null,p.errorHandler=dM(t),p}(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 s=t._ref.storage._makeRequest(a,o,r);t._request=s,s.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=gM(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(),a={"X-Goog-Upload-Protocol":"multipart"},s=function(){for(var t="",e=0;e<2;e++)t+=Math.random().toString().slice(2);return t}();a["Content-Type"]="multipart/related; boundary="+s;var c=mM(e,i,o),u=cM(c,n),l=tM.getBlob("--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+u+"\r\n--"+s+"\r\nContent-Type: "+c.contentType+"\r\n\r\n",i,"\r\n--"+s+"--");if(null===l)throw OP();var h={name:c.fullPath},f=QP(r,t.host),d=t.maxUploadRetryTime,p=new lM(f,"POST",fM(t,n),d);return p.urlParams=h,p.headers=a,p.body=l.uploadData(),p.errorHandler=dM(e),p}(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=wP(),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=UP(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:t,metadata:this._metadata,task:this,ref:this._ref}},enumerable:!1,configurable:!0}),t.prototype.on=function(t,e,n,i){var o=this,r=new _M(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;
1this._finishPromise(),this._observers.slice().forEach(function(e){t._notifyObserver(e)})},t.prototype._finishPromise=function(){if(void 0!==this._resolve){var t=!0;switch(UP(this._state)){case FP.SUCCESS:bM(this._resolve.bind(null,this.snapshot))();break;case FP.CANCELED:case FP.ERROR:bM(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(UP(this._state)){case FP.RUNNING:case FP.PAUSED:t.next&&bM(t.next.bind(t,this.snapshot))();break;case FP.SUCCESS:t.complete&&bM(t.complete.bind(t))();break;default:t.error&&bM(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}(),xM=function(){function t(t,e){this._service=t,this._location=e instanceof VP?e:VP.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 VP(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 nM(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 VP(this._location.bucket,e);return new t(this._service,n)},enumerable:!1,configurable:!0}),t.prototype._throwIfRoot=function(t){if(""===this._location.path)throw kP(t)},t}();function wM(t){var e={prefixes:[],items:[]};return OM(t,e).then(function(){return e})}function OM(t,e,n){return(0,Ln.mG)(this,void 0,void 0,function(){var i,o,r;return(0,Ln.Jh)(this,function(a){switch(a.label){case 0:return[4,PM(t,{pageToken:n})];case 1:return i=a.sent(),(o=e.prefixes).push.apply(o,i.prefixes),(r=e.items).push.apply(r,i.items),null==i.nextPageToken?[3,3]:[4,OM(t,e,i.nextPageToken)];case 2:a.sent(),a.label=3;case 3:return[2]}})})}function PM(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n,i;return(0,Ln.Jh)(this,function(o){switch(o.label){case 0:return null!=e&&"number"==typeof e.maxResults&&YP("options.maxResults",1,1e3,e.maxResults),i=function(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 a=QP(e.bucketOnlyServerUrl(),t.host),s=t.maxOperationRetryTime,c=new lM(a,"GET",function(t,e){return function(n,i){var o=function(t,e,n){var i=eM(n);return null===i?null:function(t,e,n){var i={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n[uM])for(var o=0,r=n[uM];o<r.length;o++){var a=r[o].replace(/\/$/,""),s=t._makeStorageReference(new VP(e,a));i.prefixes.push(s)}if(n.items)for(var c=0,u=n.items;c<u.length;c++)s=t._makeStorageReference(new VP(e,u[c].name)),i.items.push(s);return i}(t,e,i)}(t,e,i);return hM(null!==o),o}}(t,e.bucket),s);return c.urlParams=r,c.errorHandler=dM(e),c}(t.storage,t._location,"/",(n=e||{}).pageToken,n.maxResults),[4,t.storage.makeRequestWithTokens(i)];case 1:return[2,o.sent().getPromise()]}})})}function MM(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 VP(t._location.bucket,n);return new xM(t.storage,i)}function kM(t){return/^[A-Za-z]+:\/\//.test(t)}function TM(t,e){if(t instanceof AM){var n=t;if(null==n._bucket)throw new bP("no-default-bucket","No default bucket found. Did you set the '"+_P+"' property when initializing the app?");var i=new xM(n,n._bucket);return null!=e?TM(i,e):i}return void 0!==e?MM(t,e):t}function SM(t,e){if(e&&kM(e)){if(t instanceof AM)return function(t,e){return new xM(t,e)}(t,e);throw PP("To use ref(service, url), the first argument must be a Storage instance.")}return TM(t,e)}function EM(t,e){var n=null==e?void 0:e[_P];return null==n?null:VP.makeFromBucketSpec(n,t)}var AM=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=yP,this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=o?VP.makeFromBucketSpec(o,this._host):EM(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?VP.makeFromBucketSpec(this._url,t):EM(t,this.app.options)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this._maxUploadRetryTime},set:function(t){YP("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){YP("time",0,Number.POSITIVE_INFINITY,t),this._maxOperationRetryTime=t},enumerable:!1,configurable:!0}),t.prototype._getAuthToken=function(){return(0,Ln.mG)(this,void 0,void 0,function(){var t,e;return(0,Ln.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,Ln.mG)(this,void 0,void 0,function(){var t;return(0,Ln.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 xM(this,t)},t.prototype._makeRequest=function(t,e,n){var i=this;if(this._deleted)return new zP(MP());var o=function(t,e,n,i,o,r){var a=JP(t.urlParams),s=t.url+a,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 WP(s,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,Ln.mG)(this,void 0,void 0,function(){var e;return(0,Ln.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 IM(t,e){return SM(t=(0,Dn.m9)(t),e)}var RM=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}(),NM=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 RM(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 RM(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 RM(t,o,o._ref))}:{next:e.next?function(t){return e.next(new RM(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}(),LM=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 DM(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 DM(e,t._service)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextPageToken",{get:function(){return this._delegate.nextPageToken||null},enumerable:!1,configurable:!0}),t}(),DM=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 MM(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 NM(function(t,e,n){return function(t,e,n){return t._throwIfRoot("uploadBytesResumable"),new CM(t,new tM(e),n)}(t=(0,Dn.m9)(t),e,n)}(this._delegate,t,e),this)},t.prototype.putString=function(t,e,n){void 0===e&&(e=EP.RAW),this._throwIfRoot("putString");var i=IP(e,t),o=(0,Ln.pi)({},n);return null==o.contentType&&null!=i.contentType&&(o.contentType=i.contentType),new NM(new CM(this._delegate,new tM(i.data,!0),o),this)},t.prototype.listAll=function(){var t=this;return function(t){return wM(t=(0,Dn.m9)(t))}(this._delegate).then(function(e){return new LM(e,t.storage)})},t.prototype.list=function(t){var e=this;return function(t,e){return PM(t=(0,Dn.m9)(t),e)}(this._delegate,t||void 0).then(function(t){return new LM(t,e.storage)})},t.prototype.getMetadata=function(){return function(t){return function(t){return(0,Ln.mG)(this,void 0,void 0,function(){var e;return(0,Ln.Jh)(this,function(n){switch(n.label){case 0:return t._throwIfRoot("getMetadata"),e=gM(t.storage,t._location,aM()),[4,t.storage.makeRequestWithTokens(e)];case 1:return[2,n.sent().getPromise()]}})})}(t=(0,Dn.m9)(t))}(this._delegate)},t.prototype.updateMetadata=function(t){return function(t,e){return function(t,e){return(0,Ln.mG)(this,void 0,void 0,function(){var n;return(0,Ln.Jh)(this,function(i){switch(i.label){case 0:return t._throwIfRoot("updateMetadata"),n=function(t,e,n,i){var o=QP(e.fullServerUrl(),t.host),r=cM(n,i),a=t.maxOperationRetryTime,s=new lM(o,"PATCH",fM(t,i),a);return s.headers={"Content-Type":"application/json; charset=utf-8"},s.body=r,s.errorHandler=pM(e),s}(t.storage,t._location,e,aM()),[4,t.storage.makeRequestWithTokens(n)];case 1:return[2,i.sent().getPromise()]}})})}(t=(0,Dn.m9)(t),e)}(this._delegate,t)},t.prototype.getDownloadURL=function(){return function(t){return function(t){return(0,Ln.mG)(this,void 0,void 0,function(){var e;return(0,Ln.Jh)(this,function(n){switch(n.label){case 0:return t._throwIfRoot("getDownloadURL"),e=function(t,e,n){var i=QP(e.fullServerUrl(),t.host),o=t.maxOperationRetryTime,r=new lM(i,"GET",function(t,e){return function(n,i){var o=sM(t,i,e);return hM(null!==o),function(t,e,n){var i=eM(e);if(null===i||!GP(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 QP("/b/"+r(t.bucket)+"/o/"+r(i),n)+JP({alt:"media",token:e})})[0]}(o,i,t.host)}}(t,n),o);return r.errorHandler=pM(e),r}(t.storage,t._location,aM()),[4,t.storage.makeRequestWithTokens(e)];case 1:return[2,n.sent().getPromise().then(function(t){if(null===t)throw new bP("no-download-url","The given file does not have any download URLs.");return t})]}})})}(t=(0,Dn.m9)(t))}(this._delegate)},t.prototype.delete=function(){return this._throwIfRoot("delete"),function(t){return function(t){return(0,Ln.mG)(this,void 0,void 0,function(){var e;return(0,Ln.Jh)(this,function(n){switch(n.label){case 0:return t._throwIfRoot("deleteObject"),e=function(t,e){var n=QP(e.fullServerUrl(),t.host),i=new lM(n,"DELETE",function(t,e){},t.maxOperationRetryTime);return i.successCodes=[200,204],i.errorHandler=pM(e),i}(t.storage,t._location),[4,t.storage.makeRequestWithTokens(e)];case 1:return[2,n.sent().getPromise()]}})})}(t=(0,Dn.m9)(t))}(this._delegate)},t.prototype._throwIfRoot=function(t){if(""===this._delegate._location.path)throw kP(t)},t}(),FM=function(){function t(t,e){this.app=t,this._delegate=e}return Object.defineProperty(t.prototype,"maxOperationRetryTime",{get:function(){return this._delegate.maxOperationRetryTime}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this._delegate.maxUploadRetryTime},enumerable:!1,configurable:!0}),t.prototype.ref=function(t){if(kM(t))throw PP("ref() expected a child path but got a URL, use refFromURL instead.");return new DM(IM(this._delegate,t),this)},t.prototype.refFromURL=function(t){if(!kM(t))throw PP("refFromURL() expected a full URL but got a child path, use ref() instead.");try{VP.makeFromUrl(t,this._delegate.host)}catch(e){throw PP("refFromUrl() expected a valid full URL but got an invalid one.")}return new DM(IM(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,Dn.Sg)(o,t.app.options.projectId))}(t,e,n,i)}(this._delegate,t,e,n)},t}();function UM(t,e){var n=e.instanceIdentifier,i=t.getProvider("app").getImmediate(),o=t.getProvider("auth-internal"),r=t.getProvider("app-check-internal");return new FM(i,new AM(i,o,r,new jP,n,Nn.Z.SDK_VERSION))}!function(t){var e={TaskState:FP,TaskEvent:DP,StringFormat:EP,Storage:AM,Reference:DM};t.INTERNAL.registerComponent(new nv.wA("storage",UM,"PUBLIC").setServiceProps(e).setMultipleInstances(!0)),t.registerVersion("@firebase/storage","0.7.1")}(Nn.Z);var ZM=r(5104),qM=r(4531);function jM(t,e){return e?(0,qM.c)(t,e):new jt.y((0,ZM.A)(t))}function VM(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_n.P;return function(n){return n.lift(new zM(t,e))}}var zM=function(){return g(function t(e,n){v(this,t),this.dueTime=e,this.scheduler=n},[{key:"call",value:function(t,e){return e.subscribe(new GM(t,this.dueTime,this.scheduler))}}])}(),GM=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e,[t])).dueTime=n,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return b(e,t),g(e,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(BM,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}])}(Gt.L);function BM(t){t.debouncedNext()}function HM(t){var e=function(t){return new jt.y(function(e){var n=function(t){return e.next(t)};n(t.snapshot);var i=t.on("state_changed",n);return t.then(function(t){n(t),e.complete()},function(i){n(t.snapshot),function(t){e.error(t)}(i)}),function(){i()}}).pipe(VM(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:function(){return e},percentageChanges:function(){return e.pipe((0,Qt.U)(function(t){return t.bytesTransferred/t.totalBytes*100}))}}}function YM(t,e,n){return{getDownloadURL:function(){return(0,qt.of)(void 0).pipe((0,Re.QV)(e.outsideAngular),Fe(function(){return t.getDownloadURL()}),n)},getMetadata:function(){return(0,qt.of)(void 0).pipe((0,Re.QV)(e.outsideAngular),Fe(function(){return t.getMetadata()}),n)},delete:function(){return(0,Ae.D)(t.delete())},child:function(i){return YM(t.child(i),e,n)},updateMetadata:function(e){return(0,Ae.D)(t.updateMetadata(e))},put:function(e,n){return HM(t.put(e,n))},putString:function(e,n,i){return HM(t.putString(e,n,i))},listAll:function(){return(0,Ae.D)(t.listAll())}}}var QM=new s.OlP("angularfire2.storageBucket"),JM=new s.OlP("angularfire2.storage.maxUploadRetryTime"),WM=new s.OlP("angularfire2.storage.maxOperationRetryTime"),KM=function(){var t=function(){return g(function t(e,n,i,o,r,a,s){v(this,t),this.schedulers=new Se.HU(r),this.keepUnstableUntilFirst=(0,Se.ss)(this.schedulers);var c=(0,Se.on)(e,r,n);this.storage=(0,Se.sI)("".concat(c.name,".storage.").concat(i),"AngularFireStorage",c,function(){var t=r.runOutsideAngular(function(){return c.storage(i||void 0)});return a&&t.setMaxUploadRetryTime(a),s&&t.setMaxOperationRetryTime(s),t},[a,s])},[{key:"ref",value:function(t){return YM(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst)}},{key:"refFromURL",value:function(t){return YM(this.storage.refFromURL(t),this.schedulers,this.keepUnstableUntilFirst)}},{key:"upload",value:function(t,e,n){return YM(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst).put(e,n)}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(Se.Dh),s.LFG(Se.xv,8),s.LFG(QM,8),s.LFG(s.Lbi),s.LFG(s.R0b),s.LFG(JM,8),s.LFG(WM,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Se.Dh),s.LFG(Se.xv,8),s.LFG(QM,8),s.LFG(s.Lbi),s.LFG(s.R0b),s.LFG(JM,8),s.LFG(WM,8))},token:t,providedIn:"any"}),t}(),$M=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t}(),XM=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[KM],imports:[$M]}),t}(),tk=function(){var t=function(){return g(function t(e){v(this,t),this._afStorage=e,this.createRandomString=function(){return Math.random().toString(36).substring(7)}},[{key:"downloadURL",get:function(){return this.fileRef.getDownloadURL()}},{key:"deleteFileFromURL",value:function(t){return(0,Ae.D)(this._afStorage.storage.refFromURL(t).delete())}},{key:"uploadFile",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=t.target.files[0],r=o.name.split(".").pop()||null,a=i?
1n?"".concat(n,"-").concat(this.createRandomString(),".").concat(r):"".concat(o.name,"-").concat(this.createRandomString(),".").concat(r):n?"".concat(n,".").concat(r):o.name;console.log("Name image is: ",a);var s="".concat(e,"/").concat(a);return this.task=this._afStorage.upload(s,o),this.fileRef=this._afStorage.ref(s),this.uploadPercent$=this.task.percentageChanges(),this.task.snapshotChanges()}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(KM))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),ek=Rn.Z.firestore.FieldValue,nk=function(){return g(function t(){v(this,t)},null,[{key:"Parse",value:function(t){var 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}}])}(),ik=function(){var t=function(){return g(function t(e,n,i,o,r,a){var s=this;v(this,t),this._afs=e,this._afAuth=n,this._http=i,this.storage=o,this.router=r,this.appState=a,this.basePath="users",this.profilePictureUrl=void 0,this.checkId=!0,this.authUser=this._afAuth.user.pipe(He(1)),this.user$=this.currentUser.pipe(He(1)),this.user$.subscribe(function(t){return s.user=t})},[{key:"currentUser",get:function(){var t=this;return this.authUser.pipe(Fe(function(e){return e?t.getUserByID(e.uid):(0,qt.of)(null)}))}},{key:"authenticated",get:function(){return this.authUser.pipe((0,Qt.U)(function(t){return!!t}))}},{key:"fullName",get:function(){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)?"".concat(this.user.first_name," ").concat(this.user.last_name[0]):(null===(n=this.user)||void 0===n?void 0:n.first_name)?this.user.first_name:null}},{key:"profileImage",get:function(){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"}},{key:"emailVerified",get:function(){return this.authUser.pipe((0,Qt.U)(function(t){return!!(null==t?void 0:t.emailVerified)}))}},{key:"checkThinkificId",get:function(){var t;if(null===(t=this.user)||void 0===t?void 0:t.thinkific_uid)return(0,qt.of)(!0)}},{key:"goodPasswordStrengthRegex",get:function(){return new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])")}},{key:"getUserByID",value:function(t){return this._afs.collection(this.basePath).doc(t).valueChanges()}},{key:"currentUserDoc",value:function(){return this._afs.collection(this.basePath).doc(this.user.uid)}},{key:"getOrganisations",value:function(){return this._afs.collection("organisations",function(t){return t.where("org_name",">","").orderBy("org_name","asc")}).get()}},{key:"getProfessions",value:function(){return this._afs.collection("professions",function(t){return t.where("p_name",">","").orderBy("p_name","asc")}).get()}},{key:"getPasswordValidationError",value:function(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}},{key:"createUser",value:function(t,e){return jM(this._afAuth.createUserWithEmailAndPassword(t,e)).pipe(We(1))}},{key:"getIdTokenFromUserCredentials",value:function(t){return jM(t.user.getIdToken(!0))}},{key:"signup",value:function(t){var e=this;return this.createUser(t.email,t.password).pipe(Fe(function(t){return t.user.uid,e.getIdTokenFromUserCredentials(t).pipe(We(1))}),Fe(function(n){return delete t.password,e._http.post("https://us-central1-medicsacademy-sso.cloudfunctions.net/auth-signup",t,{headers:new Kt({Authorization:"Bearer ".concat(n)})})}))}},{key:"signinClient",value:function(t){return(0,Ae.D)(this._afAuth.signInWithEmailAndPassword(t.email,t.password))}},{key:"signinClientPersistence",value:function(t,e){var n=this;return(0,Ae.D)(this._afAuth.setPersistence(e?Rn.Z.auth.Auth.Persistence.LOCAL:Rn.Z.auth.Auth.Persistence.SESSION).then(function(){return n._afAuth.signInWithEmailAndPassword(t.email,t.password)}))}},{key:"updateLastLoginTime",value:function(){var t=this;return this.getHeaders().pipe(We(1),Fe(function(e){return t._http.post("https://us-central1-medicsacademy-sso.cloudfunctions.net/auth-lastLogin",{},{headers:e})}))}},{key:"getAuthTokenFromServer",value:function(t){var e=this;return this.getHeaders().pipe(We(1),Fe(function(n){return e._http.post(dP+"/auth-cu
1stomToken",{redirect_url:t},{headers:n})}))}},{key:"trackEmailChange",value:function(t,e){var n=this;return this.getHeaders().pipe(We(1),Fe(function(i){return n._http.put(dP+"/auth-profile-changeEmailTrack",{oldEmail:t,newEmail:e},{headers:i})}))}},{key:"checkEmailVerification",value:function(t){var e=this;return this.getHeaders().pipe(We(1),Fe(function(n){return e._http.post(dP+"/auth-verifyEmail",{token:t},{headers:n})}))}},{key:"signinSchool",value:function(){var t=this;return this.getHeaders().pipe(We(1),Fe(function(e){return t._http.get("https://us-central1-medicsacademy-sso.cloudfunctions.net/auth-signinSchool",{headers:e})}),rx(function(e){return"auth/email-need-verification"===(t.appState.loading=!1,e.error.code)?(t.router.navigate(["auth","verify"]),(0,vP._)(e.error.message)):(0,vP._)(QC)}))}},{key:"signEnroll",value:function(t,e){var n=this;return this.getHeaders().pipe(We(1),Fe(function(i){return n._http.post("https://us-central1-medicsacademy-sso.cloudfunctions.net/auth-signinSchool",{product_id:t,price_id:e,checkout:!0},{headers:i})}),rx(function(t){return(0,vP._)(QC)}))}},{key:"signForFreeTrial",value:function(t,e){var n=this;return this.getHeaders().pipe(We(1),Fe(function(i){return n._http.post("https://us-central1-medicsacademy-sso.cloudfunctions.net/auth-signinSchool",{product_id:t,freeTrial:e},{headers:i})}),rx(function(t){return(0,vP._)(QC)}))}},{key:"getCardDetails",value:function(t){var e="https://us-central1-medics-academy-internal-db.cloudfunctions.net/api/productable?product_id="+t,n=new Kt({"ma-auth-api_key":"09ce9418e267c506fe4a03d79a06cf97063324a7"});return this._http.get(e,{headers:n})}},{key:"checkUserEmail",value:function(t){var e=this;return this.getHeaders().pipe(Fe(function(n){return e._http.put("https://us-central1-medicsacademy-sso.cloudfunctions.net/auth-recoverEmail",{email:t},{headers:n})}))}},{key:"sendPasswordResetEmail",value:function(t){return(0,Ae.D)(this._afAuth.sendPasswordResetEmail(t))}},{key:"sendVerificationMail",value:function(){var t=this;return this.getHeaders().pipe(Fe(function(e){return t._http.post("https://us-central1-medicsacademy-sso.cloudfunctions.net/auth-sendEmailVerification",{},{headers:e})}))}},{key:"logout",value:function(){return(0,Ae.D)(this._afAuth.signOut().then(function(){localStorage.setItem("logged_out","true")}))}},{key:"updateUser",value:function(t){var e=this;return this.getHeaders().pipe(We(1),Fe(function(n){return e._http.put("".concat(dP,"/auth-profile-update"),t,{headers:n})}))}},{key:"addCoupon",value:function(t){var e=this;return this.getHeaders().pipe(Fe(function(n){return e._http.post("".concat(dP,"/auth-coupons"),t,{headers:n})}))}},{key:"updateUserProfileImage",value:function(t){var e=this;return this.storage.uploadFile(t,"users/".concat(this.user.uid),"avatar").pipe(hx(),Fe(function(){return e.storage.downloadURL}),(0,LC.b)(function(){return console.log("Upload is firing!")}))}},{key:"updateUserDoc",value:function(t){var e=this;return(0,Ae.D)(this.currentUserDoc().get()).pipe(Bt(function(t){return t.exists}),Fe(function(n){return(0,Ae.D)(e.currentUserDoc().set(t,{merge:!0}))}))}},{key:"updateEmail",value:function(t){var e=this,n=function(t){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=n.length,o=0;o<40;o++)e+=n.charAt(Math.floor(Math.random()*i));return console.log("update email",e),e}();return this.authUser.pipe(We(1),Fe(function(e){return e.updateEmail(t)}),Fe(function(){return e.updateUser({email:t,has_changed_email:!0,email_verification_token:n})}))}},{key:"reload",value:function(){return this.authUser.pipe(We(1),Fe(function(t){return t.reload()}))}},{key:"updateUserPassword",value:function(t){var e=this;return this.getHeaders().pipe(Fe(function(n){return e._http.put("".concat(dP,"/auth-profile-password"),{password:t},{headers:n})}))}},{key:"deleteAccount",value:function(){var t=this;return this.getHeaders().pipe(We(1),Fe(function(e){return t._http.delete("".concat(dP,"/auth-deleteAccount"),{headers:e})}))}},{key:"deleteAuthUser",value:function(){var t=this;return this.getHeaders().pipe(We(1),Fe(function(e){return t._http.delete("".concat(dP,"/auth-deleteAuthUser"),{headers:e})}))}},{key:"recoverAccount",value:function(t){var e=this;return this.getHeaders().pipe(We(1),Fe(function(n){return e._http.put("".concat(dP,"/auth-recoverAccount"),{token:t},{headers:n})}))}},{key:"reauthenticateWithCredential",value:function(t,e){var n=Rn.Z.auth.EmailAuthProvider.credential(e||Rn.Z.auth().currentUser.email,t);return this.authUser.pipe(We(1),Fe(function(t){return t.reauthenticateWithCredential(n)}))}}
1,{key:"getUpdatePayload",value:function(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=ek.arrayUnion(this.couponUserData.uid))),n&&(t.secondary_first_names=[this.couponUserData.first_name]),i&&(t.secondary_last_names=[this.couponUserData.last_name]),t}},{key:"handleAuthError",value:function(t,e,n){var i={};if(t&&(i.secondary_emails=ek.arrayRemove(this.couponUserData.email),this.couponUserData.uid&&(i.potential_duplicate_of=ek.arrayRemove(this.couponUserData.uid))),e&&(i.secondary_first_names=ek.arrayRemove(this.couponUserData.first_name)),n&&(i.secondary_last_names=ek.arrayRemove(this.couponUserData.last_name)),t||e||n)return this.updateUserDoc(i).pipe(We(1))}},{key:"getUserByEmail",value:function(t){return this._afs.collection(this.basePath,function(e){return e.where("email","==",t)}).valueChanges()}},{key:"getHeaders",value:function(){return this._afAuth.idToken.pipe(Fe(function(t){return(0,qt.of)(new Kt({Authorization:"Bearer ".concat(t)}))}))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(yv),s.LFG(vn),s.LFG(ge),s.LFG(tk),s.LFG(VO),s.LFG(KC))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}();function ok(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function rk(t,e){return function(n,i){e(n,i,t)}}var ak=["toast-component",""];function sk(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"button",5),s.NdJ("click",function(){return s.CHM(n),s.oxw().remove()}),s.TgZ(1,"span",6),s._uU(2,"\xd7"),s.qZA(),s.qZA()}}function ck(t,e){if(1&t&&(s.ynx(0),s._uU(1),s.BQk()),2&t){var n=s.oxw(2);s.xp6(1),s.hij("[",n.duplicatesCount+1,"]")}}function uk(t,e){if(1&t&&(s.TgZ(0,"div"),s._uU(1),s.YNc(2,ck,2,1,"ng-container",4),s.qZA()),2&t){var n=s.oxw();s.Tol(n.options.titleClass),s.uIk("aria-label",n.title),s.xp6(1),s.hij(" ",n.title," "),s.xp6(1),s.Q6J("ngIf",n.duplicatesCount)}}function lk(t,e){if(1&t&&s._UZ(0,"div",7),2&t){var n=s.oxw();s.Tol(n.options.messageClass),s.Q6J("innerHTML",n.message,s.oJD)}}function hk(t,e){if(1&t&&(s.TgZ(0,"div",8),s._uU(1),s.qZA()),2&t){var n=s.oxw();s.Tol(n.options.messageClass),s.uIk("aria-label",n.message),s.xp6(1),s.hij(" ",n.message," ")}}function fk(t,e){if(1&t&&(s.TgZ(0,"div"),s._UZ(1,"div",9),s.qZA()),2&t){var n=s.oxw();s.xp6(1),s.Udp("width",n.width+"%")}}function dk(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"button",5),s.NdJ("click",function(){return s.CHM(n),s.oxw().remove()}),s.TgZ(1,"span",6),s._uU(2,"\xd7"),s.qZA(),s.qZA()}}function pk(t,e){if(1&t&&(s.ynx(0),s._uU(1),s.BQk()),2&t){var n=s.oxw(2);s.xp6(1),s.hij("[",n.duplicatesCount+1,"]")}}function gk(t,e){if(1&t&&(s.TgZ(0,"div"),s._uU(1),s.YNc(2,pk,2,1,"ng-container",4),s.qZA()),2&t){var n=s.oxw();s.Tol(n.options.titleClass),s.uIk("aria-label",n.title),s.xp6(1),s.hij(" ",n.title," "),s.xp6(1),s.Q6J("ngIf",n.duplicatesCount)}}function mk(t,e){if(1&t&&s._UZ(0,"div",7),2&t){var n=s.oxw();s.Tol(n.options.messageClass),s.Q6J("innerHTML",n.message,s.oJD)}}function vk(t,e){if(1&t&&(s.TgZ(0,"div",8),s._uU(1),s.qZA()),2&t){var n=s.oxw();s.Tol(n.options.messageClass),s.uIk("aria-label",n.message),s.xp6(1),s.hij(" ",n.message," ")}}function yk(t,e){if(1&t&&(s.TgZ(0,"div"),s._UZ(1,"div",9),s.qZA()),2&t){var n=s.oxw();s.xp6(1),s.Udp("width",n.width+"%")}}var _k,bk,Ck=function(){return g(function t(e,n,i,o,r,a){var s=this;v(this,t),this.toastId=e,this.config=n,this.message=i,this.title=o,this.toastType=r,this.toastRef=a,this._onTap=new Ee.xQ,this._onAction=new Ee.xQ,this.toastRef.afterClosed().subscribe(function(){s._onAction.complete(),s._onTap.complete()})},[{key:"triggerTap",value:function(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}},{key:"onTap",value:function(){return this._onTap.asObservable()}},{key:"triggerAction",value:function(t){this._onAction.next(t)}},{key:"onAction",value:function(){return this._onAction.asObservable()}}])}(),xk={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"},wk=new s.OlP("ToastConfig"),Ok=function(){return g(function t(e,n){v(this,t),this.component=e,this.injector=n},[{key:"attach",value:function(t,e){return this._attachedHost=t,t.attach(this,e)}},{key:"detach",value:function(){var t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}])}(),Pk=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e))._hostDomElement=t,o._componentFactoryResolver=n,o._appRef=i,o}return b(e,t),g(e,[{key:"attachComponentPortal",value:function(t,e){var n,i=this,o=this._componentFactoryResolver.resolve
1ComponentFactory(t.component);return n=o.create(t.injector),this._appRef.attachView(n.hostView),this.setDisposeFn(function(){i._appRef.detachView(n.hostView),n.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(n),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(n)),n}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}])}(function(){return g(function t(){v(this,t)},[{key:"attach",value:function(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}},{key:"detach",value:function(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}}])}()),Mk=function(){var t=function(){return g(function t(e){v(this,t),this._document=e},[{key:"ngOnDestroy",value:function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var 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)(s.LFG(f))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(f))},token:t,providedIn:"root"}),t=ok([rk(0,(0,s.tBr)(f))],t)}(),kk=function(){return g(function t(e){v(this,t),this._portalHost=e},[{key:"attach",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._portalHost.attach(t,e)}},{key:"detach",value:function(){return this._portalHost.detach()}}])}(),Tk=function(){var t=function(){return g(function t(e,n,i,o){v(this,t),this._overlayContainer=e,this._componentFactoryResolver=n,this._appRef=i,this._document=o,this._paneElements=new Map},[{key:"create",value:function(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}},{key:"getPaneElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;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]}},{key:"_createPaneElement",value:function(t,e){var 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}},{key:"_createPortalHost",value:function(t){return new Pk(t,this._componentFactoryResolver,this._appRef)}},{key:"_createOverlayRef",value:function(t){return new kk(this._createPortalHost(t))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(Mk),s.LFG(s._Vd),s.LFG(s.z2F),s.LFG(f))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(Mk),(0,s.LFG)(s._Vd),(0,s.LFG)(s.z2F),(0,s.LFG)(f))},token:t,providedIn:"root"}),t=ok([rk(3,(0,s.tBr)(f))],t)}(),Sk=function(){return g(function t(e){v(this,t),this._overlayRef=e,this.duplicatesCount=0,this._afterClosed=new Ee.xQ,this._activate=new Ee.xQ,this._manualClose=new Ee.xQ,this._resetTimeout=new Ee.xQ,this._countDuplicate=new Ee.xQ},[{key:"manualClose",value:function(){this._manualClose.next(),this._manualClose.complete()}},{key:"manualClosed",value:function(){return this._manualClose.asObservable()}},{key:"timeoutReset",value:function(){return this._resetTimeout.asObservable()}},{key:"countDuplicate",value:function(){return this._countDuplicate.asObservable()}},{key:"close",value:function(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"isInactive",value:function(){return this._activate.isStopped}},{key:"activate",value:function(){this._activate.next(),this._activate.complete()}},{key:"afterActivate",value:function(){return this._activate.asObservable()}},{key:"onDuplicate",value:function(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}])}(),Ek=function(){return g(function t(e,n){v(this,t),this._toastPackage=e,this._parentInjector=n},[{key:"get",value:function(t,e,n){return t===Ck?this._toastPackage:this._parentInjector.get(t,e,n)}}])}(),Ak=function(){var t=function(){return g(function t(e,n,i,o,r){v(this,t),this.overlay=n,this._injector=i,this.sanitizer=o,this.ngZone=r,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},e.default.iconClasses),e.config.iconClasses))},[{key:"show",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return this._preBuildNotification(i,t,e,this.applyConfig(n))}},{key:"success",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,e,this.applyConfig(n))}},{key:"error",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,e,this.applyConfig(n))}},{key:"info",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,e,this.applyConfig(n))}},{key:"warning",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,e,this.applyConfig(n))}},{key:"clear",value:function(t){var e,n=h(this.toasts);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(void 0!==t){if(i.toastId===t)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}}catch(o){n.e(o)}finally{n.f()}}},{key:"remove",value:function(t){var 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]){var n=this.toasts[this.currentlyActive].toastRef;n.isInactive()||(this.currentlyActive=this.currentlyActive+1,n.activate())}return!0}},{key:"findDuplicate",value:function(t,e,n){var i,o=h(this.toasts);try{for(o.s();!(i=o.n()).done;){var r=i.value;if(r.message===t)return r.toastRef.onDuplicate(e,n),r}}catch(a){o.e(a)}finally{o.f()}return null}},{key:"applyConfig",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(Object.assign({},this.toastrConfig),t)}},{key:"_findToast",value:function(t){for(var e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}},{key:"_preBuildNotification",value:function(t,e,n,i){var o=this;return i.onActivateTick?this.ngZone.run(function(){return o._buildNotification(t,e,n,i)}):this._buildNotification(t,e,n,i)}},{key:"_buildNotification",value:function(t,e,n,i){if(!i.toastComponent)throw new Error("toastComponent required");var o=this.findDuplicate(e,this.toastrConfig.resetTimeoutOnDuplicate&&i.timeOut>0,this.toastrConfig.countDuplicates);if(e&&this.toastrConfig.preventDuplicates&&null!==o)return o;this.previousToastMessage=e;var r=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(r=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));var a=this.overlay.create(i.positionClass,this.overlayContainer);this.index=this.index+1;var c=e;e&&i.enableHtml&&(c=this.sanitizer.sanitize(s.q3G.HTML,e));var u=new Sk(a),l=new Ck(this.index,i,c,n,t,u),h=new Ek(l,this._injector),f=new Ok(i.toastComponent,h),d=a.attach(f,this.toastrConfig.newestOnTop);u.componentInstance=d.instance;var p={toastId:this.index,message:e||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:l.onTap(),onAction:l.onAction(),portal:d};return r||(this.currentlyActive=this.currentlyActive+1,setTimeout(function(){p.toastRef.activate()})),this.toasts.push(p),p}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(wk),s.LFG(Tk),s.LFG(s.zs3),s.LFG(Lt),s.LFG(s.R0b))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(wk),(0,s.LFG)(Tk),(0,s.LFG)(s.gxx),(0,s.LFG)(Lt),(0,s.LFG)(s.R0b))},token:t,providedIn:"root"}),t=ok([rk(0,(0,s.tBr)(wk))],t)}(),Ik=function(){var t=function(){return g(function t(e,n,i){var o=this;v(this,t),this.toastrService=e,this.toastPackage=n,this.ngZone=i,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=n.message,this.title=n.title,this.options=n.config,this.originalTimeout=n.config.timeOut,this.toastClasses="".concat(n.toastType," ").concat(n.config.toastClass),this.sub=n.toastRef.afterActivate().subscribe(function(){o.activateToast()}),this.sub1=n.toastRef.manualClosed().subscribe(function(){o.remove()}),this.sub2=n.toastRef.timeoutReset().subscribe(function(){o.resetTimeout()}),this.sub3=n.toastRef.countDuplicate().subscribe(function(t){o.duplicatesCount=t})},[{key:"displayStyle",get:function(){if("inactive"===this.state.value)return"none"}},{key:"ngOnDestroy",value:function(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}},{key:"activateToast",value:function(){var t=this;this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(function(){return t.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(function(){return t.updateProgress()},10))}},{key:"updateProgress",value:function(){if(0!==this.width&&100!==this.width&&this.options.timeOut){var 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)}}},{key:"resetTimeout",value:function(){var t=this;clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(function(){return t.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(function(){return t.updateProgress()},10)}},{key:"remove",value:function(){var t=this;"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(function(){return t.toastrService.remove(t.toastPackage.toastId)},+this.toastPackage.config.easeTime))}},{key:"tapToast",value:function(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}},{key:"stickAround",value:function(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}},{key:"delayedHideToast",value:function(){var t=this;!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(function(){return t.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(function(){return t.updateProgress()},10))}},{key:"outsideTimeout",value:function(t,e){var n=this;this.ngZone?this.ngZone.runOutsideAngular(function(){return n.timeout=setTimeout(function(){return n.runInsideAngular(t)},e)}):this.timeout=setTimeout(function(){return t()},e)}},{key:"outsideInterval",value:function(t,e){var n=this;this.ngZone?this.ngZone.runOutsideAngular(function(){return n.intervalId=setInterval(function(){return n.runInsideAngular(t)},e)}):this.intervalId=setInterval(function(){return t()},e)}},{key:"runInsideAngular",value:function(t){this.ngZone?this.ngZone.run(function(){return t()}):t()}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ak),s.Y36(Ck),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(s.d8E("@flyInOut",e.state),s.Tol(e.toastClasses),s.Udp("display",e.displayStyle))},attrs:ak,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&&(s.YNc(0,sk,3,0,"button",0),s.YNc(1,uk,3,5,"div",1),s.YNc(2,lk,1,3,"div",2),s.YNc(3,hk,2,4,"div",3),s.YNc(4,fk,2,2,"div",4)),2&t&&(s.Q6J("ngIf",e.options.closeButton),s.xp6(1),s.Q6J("ngIf",e.title),s.xp6(1),s.Q6J("ngIf",e.message&&e.options.enableHtml),s.xp6(1),s.Q6J("ngIf",e.message&&!e.options.enableHtml),s.xp6(1),s.Q6J("ngIf",e.options.progressBar))},directives:[G],encapsulation:2,data:{animation:[xv("flyInOut",[Mv("inactive",Pv({opacity:0}
1)),Mv("active",Pv({opacity:1})),Mv("removed",Pv({opacity:0})),kv("inactive => active",wv("{{ easeTime }}ms {{ easing }}")),kv("active => removed",wv("{{ easeTime }}ms {{ easing }}"))])]}}),ok([(0,s.pfw)("class")],t.prototype,"toastClasses",void 0),ok([(0,s.pfw)("@flyInOut")],t.prototype,"state",void 0),ok([(0,s.pfw)("style.display")],t.prototype,"displayStyle",null),ok([(0,s.L6J)("click")],t.prototype,"tapToast",null),ok([(0,s.L6J)("mouseenter")],t.prototype,"stickAround",null),ok([(0,s.L6J)("mouseleave")],t.prototype,"delayedHideToast",null),t}(),Rk=Object.assign(Object.assign({},xk),{toastComponent:Ik}),Nk=_k=function(){return g(function t(){v(this,t)},null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:_k,providers:[{provide:wk,useValue:{default:Rk,config:t}}]}}}])}();Nk.\u0275fac=function(t){return new(t||Nk)},Nk.\u0275mod=s.oAB({type:Nk}),Nk.\u0275inj=s.cJS({imports:[[et]]});var Lk,Dk=function(){var t=function(){return g(function t(e,n,i){var o=this;v(this,t),this.toastrService=e,this.toastPackage=n,this.appRef=i,this.width=-1,this.toastClasses="",this.state="inactive",this.message=n.message,this.title=n.title,this.options=n.config,this.originalTimeout=n.config.timeOut,this.toastClasses="".concat(n.toastType," ").concat(n.config.toastClass),this.sub=n.toastRef.afterActivate().subscribe(function(){o.activateToast()}),this.sub1=n.toastRef.manualClosed().subscribe(function(){o.remove()}),this.sub2=n.toastRef.timeoutReset().subscribe(function(){o.resetTimeout()}),this.sub3=n.toastRef.countDuplicate().subscribe(function(t){o.duplicatesCount=t})},[{key:"displayStyle",get:function(){if("inactive"===this.state)return"none"}},{key:"ngOnDestroy",value:function(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}},{key:"activateToast",value:function(){var t=this;this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(function(){t.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(function(){return t.updateProgress()},10))),this.options.onActivateTick&&this.appRef.tick()}},{key:"updateProgress",value:function(){if(0!==this.width&&100!==this.width&&this.options.timeOut){var 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)}}},{key:"resetTimeout",value:function(){var t=this;clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(function(){return t.remove()},this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(function(){return t.updateProgress()},10))}},{key:"remove",value:function(){var t=this;"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(function(){return t.toastrService.remove(t.toastPackage.toastId)}))}},{key:"tapToast",value:function(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}},{key:"stickAround",value:function(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}},{key:"delayedHideToast",value:function(){var t=this;!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(function(){return t.remove()},this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(function(){return t.updateProgress()},10)))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ak),s.Y36(Ck),s.Y36(s.z2F))},t.\u0275cmp=s.Xpm({type:t,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(t,e){1&t&&s.NdJ("
1click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(s.Tol(e.toastClasses),s.Udp("display",e.displayStyle))},attrs:ak,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&&(s.YNc(0,dk,3,0,"button",0),s.YNc(1,gk,3,5,"div",1),s.YNc(2,mk,1,3,"div",2),s.YNc(3,vk,2,4,"div",3),s.YNc(4,yk,2,2,"div",4)),2&t&&(s.Q6J("ngIf",e.options.closeButton),s.xp6(1),s.Q6J("ngIf",e.title),s.xp6(1),s.Q6J("ngIf",e.message&&e.options.enableHtml),s.xp6(1),s.Q6J("ngIf",e.message&&!e.options.enableHtml),s.xp6(1),s.Q6J("ngIf",e.options.progressBar))},directives:[G],encapsulation:2}),ok([(0,s.pfw)("class")],t.prototype,"toastClasses",void 0),ok([(0,s.pfw)("style.display")],t.prototype,"displayStyle",null),ok([(0,s.L6J)("click")],t.prototype,"tapToast",null),ok([(0,s.L6J)("mouseenter")],t.prototype,"stickAround",null),ok([(0,s.L6J)("mouseleave")],t.prototype,"delayedHideToast",null),t}(),Fk=Object.assign(Object.assign({},xk),{toastComponent:Dk}),Uk=bk=function(){return g(function t(){v(this,t)},null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:bk,providers:[{provide:wk,useValue:{default:Fk,config:t}}]}}}])}();function Zk(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return n.length?n.some(function(e){return t[e]}):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function qk(t){return function(e){return e.lift(new jk(t))}}Uk.\u0275fac=function(t){return new(t||Uk)},Uk.\u0275mod=s.oAB({type:Uk}),Uk.\u0275inj=s.cJS({imports:[[et]]});var jk=function(){return g(function t(e){v(this,t),this.total=e},[{key:"call",value:function(t,e){return e.subscribe(new Vk(t,this.total))}}])}(),Vk=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[t])).total=n,i.count=0,i}return b(e,t),g(e,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}])}(Gt.L);function zk(t){return null!=t&&"false"!="".concat(t)}function Gk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function Bk(t){return Array.isArray(t)?t:[t]}function Hk(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function Yk(t){return t instanceof s.SBq?t.nativeElement:t}try{Lk="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(_i){Lk=!1}var Qk,Jk,Wk,Kk,$k=function(){var t=g(function t(e){v(this,t),this._platformId=e,this.isBrowser=this._platformId?nt(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&&!Lk)&&"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)(s.LFG(s.Lbi))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.Lbi))},token:t,providedIn:"root"}),t}(),Xk=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t}(),tT=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","t
1ime","url","week"];function eT(){if(Qk)return Qk;if("object"!=typeof document||!document)return Qk=new Set(tT);var t=document.createElement("input");return Qk=new Set(tT.filter(function(e){return t.setAttribute("type",e),t.type===e}))}function nT(t){return function(){if(null==Jk&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Jk=!0}}))}finally{Jk=Jk||!1}return Jk}()?t:!!t.capture}function iT(t){if(function(){if(null==Kk){var t="undefined"!=typeof document?document.head:null;Kk=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Kk}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function oT(){for(var t="undefined"!=typeof document&&document?document.activeElement:null;t&&t.shadowRoot;){var e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function rT(t){return t.composedPath?t.composedPath()[0]:t.target}function aT(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}var sT=function(){var t=function(){return g(function t(){v(this,t)},[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),cT=function(){var t=function(){return g(function t(e){v(this,t),this._mutationObserverFactory=e,this._observedElements=new Map},[{key:"ngOnDestroy",value:function(){var t=this;this._observedElements.forEach(function(e,n){return t._cleanupObserver(n)})}},{key:"observe",value:function(t){var e=this,n=Yk(t);return new jt.y(function(t){var i=e._observeElement(n).subscribe(t);return function(){i.unsubscribe(),e._unobserveElement(n)}})}},{key:"_observeElement",value:function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new Ee.xQ,n=this._mutationObserverFactory.create(function(t){return 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}},{key:"_unobserveElement",value:function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}},{key:"_cleanupObserver",value:function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,i=e.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(t)}}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(sT))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(sT))},token:t,providedIn:"root"}),t}(),uT=function(){var t=function(){return g(function t(e,n,i){v(this,t),this._contentObserver=e,this._elementRef=n,this._ngZone=i,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null},[{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=zk(t),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(t){this._debounce=Gk(t),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){t._currentSubscription=(t.debounce?e.pipe(VM(t.debounce)):e).subscribe(t.event)})}},{key:"_unsubscribe",value:function(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(cT),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t}(),lT=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[sT]}),t}();function hT(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var fT="cdk-describedby-message-container",dT="cdk-describedby-message",pT="cdk-describedby-host",gT=0,mT=new Map,vT=null,yT=function(){var t=function(){return g(function t(e){v(this,t),this._document=e},[{key:"describe",value:function(t,e,n){if(this._canBeDescribed(t,e)){var i=_T(e,n);"string"!=typeof e?(bT(e),mT.set(i,{messageElement:e,referenceCount:0})):mT.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}}},{key:"removeDescription",value:function(t,e,n){if(e&&this._isElementNode(t)){var i=_T(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){var o=mT.get(i);o&&0===o.referenceCount&&this._deleteMessageElement(i)}vT&&0===vT.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[".concat(pT,"]")),e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute(pT);vT&&this._deleteMessagesContainer(),mT.clear()}},{key:"_createMessageElement",value:function(t,e){var n=this._document.createElement("div");bT(n),n.textContent=t,e&&n.setAttribute("role",e),this._createMessagesContainer(),vT.appendChild(n),mT.set(_T(t,e),{messageElement:n,referenceCount:0})}},{key:"_deleteMessageElement",value:function(t){var e=mT.get(t),n=e&&e.messageElement;vT&&n&&vT.removeChild(n),mT.delete(t)}},{key:"_createMessagesContainer",value:function(){if(!vT){var t=this._document.getElementById(fT);t&&t.parentNode&&t.parentNode.removeChild(t),(vT=this._document.createElement("div")).id=fT,vT.style.visibility="hidden",vT.classList.add("cdk-visually-hidden"),this._document.body.appendChild(vT)}}},{key:"_deleteMessagesContainer",value:function(){vT&&vT.parentNode&&(vT.parentNode.removeChild(vT),vT=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(t){var e=hT(t,"aria-describedby").filter(function(t){return 0!=t.indexOf(dT)});t.setAttribute("aria-describedby",e.join(" "))}},{key:"_addMessageReference",value:function(t,e){var n=mT.get(e);(function(t,e,n){var i=hT(t,e);i.some(function(t){return t.trim()==n.trim()})||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))})(t,"aria-describedby",n.messageElement.id),t.setAttribute(pT,""),n.referenceCount++}},{key:"_removeMessageReference",value:function(t,e){var n=mT.get(e);n.referenceCount--,function(t,e,n){var i=hT(t,e).filter(function(t){return t!=n.trim()});i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(pT)}},{key:"_isElementDescribedByMessage",value:function(t,e){var n=hT(t,"aria-describedby"),i=mT.get(e),o=i&&i.messageElement.id;return!!o&&-1!=n.indexOf(o)}},{key:"_canBeDescribed",value:function(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;var n=null==e?"":"".concat(e).trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}},{key:"_isElementNode",value:function(t){return t.nodeType===this._document.ELEMENT_NODE}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(f))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(f))},token:t,providedIn:"root"}),t}();function _T(t,e){return"string"==typeof t?"".concat(e||"","/").concat(t):t}function bT(t){t.id||(t.id="".concat(dT,"-").concat(gT++))}var CT=function(t){function e(){return v(this,e),y(this,e,arguments)}return b(e,t),g(e,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),a(e,"setActiveItem",this,3)([t]),this.activeItem&&this.activeItem.setActiveStyles()}}])}(function(){return g(function t(e){var n=this;v(this,t),this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ee.xQ,this._typeaheadSub
1scription=je.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(t){return t.disabled},this._pressedLetters=[],this.tabOut=new Ee.xQ,this.change=new Ee.xQ,e instanceof s.n_E&&e.changes.subscribe(function(t){if(n._activeItem){var e=t.toArray().indexOf(n._activeItem);e>-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}})},[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,LC.b)(function(e){return t._pressedLetters.push(e)}),VM(e),Bt(function(){return t._pressedLetters.length>0}),(0,Qt.U)(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var n=t._getItemsArray(),i=1;i<n.length+1;i++){var o=(t._activeItemIndex+i)%n.length,r=n[o];if(!t._skipPredicateFn(r)&&0===r.getLabel().toUpperCase().trim().indexOf(e)){t.setActiveItem(o);break}}t._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,n=t.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!t[n]||e._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Zk(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof s.n_E?this._items.toArray():this._items}}])}()),xT=function(){var t=function(){return g(function t(e){v(this,t),this._platform=e},[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e=function(t){try{return t.frameElement}catch(e){return null}}(function(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(t));if(e&&(-1===OT(e)||!this.isVisible(e)))return!1;var n=t.nodeName.toLowerCase(),i=OT(t);return t.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(t){var 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)}},{key:"isFocusable",value:function(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var 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")||wT(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG($k))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG($k))},token:t,providedIn:"root"}),t}();function wT(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function OT(t){if(!wT(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var PT=function(){return g(function t(e,n,i,o){var r=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];v(this,t),this._element=e,this._checker=n,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=function(){return r.focusLastTabbableElement()},this.endAnchorListener=function(){return r.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()},[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var 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}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.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)}},{key:"focusInitialElementWhenReady",value:function(t){var e=this;return new Promise(function(n){e._executeOnStable(function(){return n(e.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(n){e._executeOnStable(function(){return n(e.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(n){e._executeOnStable(function(){return n(e.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], [cdkFocusRegion").concat(t,"], [cdk-focus-").concat(t,"]")),n=0;n<e.length;n++)e[n].hasAttribute("cdk-focus-".concat(t))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(t,"', use 'cdkFocusRegion").concat(t,"' instead. The deprecated attribute will be removed in 8.0.0."),e[n]):e[n].hasAttribute("cdk-focus-region-".concat(t))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(t,"', use 'cdkFocusRegion").concat(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)}},{key:"focusInitialElement",value:function(t){var 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)){var n=this._getFirstTabbableElement(e);return null==n||n.focus(t),!!n}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}},{key:"focusFirstTabbableElement",value:function(t){var e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}},{key:"focusLastTabbableElement",value:function(t){var e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=0;n<e.length;n++){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=e.length-1;n>=0;n--){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var 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}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(We(1)).subscribe(t)}}])}(),MT=function(){var t=function(){return g(function t(e,n,i){v(this,t),this._checker=e,this._ngZone=n,this._document=i},[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new PT(t,this._checker,this._ngZone,this._document,e)}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(xT),s.LFG(s.R0b),s.LFG(f))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(xT),s.LFG(s.R0b),s.LFG(f))},token:t,providedIn:"root"}),t}();function kT(t){return 0===t.offsetX&&0===t.offsetY}function TT(t){var 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&∈var ST=new s.OlP("cdk-input-modality-detector-options"),ET={ignoreKeys:[18,17,224,91,16]},AT=nT({passive:!0,capture:!0}),IT=function(){var t=function(){return g(function t(e,n,i,o){var r=this;v(this,t),this._platform=e,this._mostRecentTarget=null,this._modality=new WC(null),this._lastTouchMs=0,this._onKeydown=function(t){var e,n;(null===(n=null===(e=r._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(function(e){return e===t.keyCode}
1))||(r._modality.next("keyboard"),r._mostRecentTarget=rT(t))},this._onMousedown=function(t){Date.now()-r._lastTouchMs<650||(r._modality.next(kT(t)?"keyboard":"mouse"),r._mostRecentTarget=rT(t))},this._onTouchstart=function(t){TT(t)?r._modality.next("keyboard"):(r._lastTouchMs=Date.now(),r._modality.next("touch"),r._mostRecentTarget=rT(t))},this._options=Object.assign(Object.assign({},ET),o),this.modalityDetected=this._modality.pipe(qk(1)),this.modalityChanged=this.modalityDetected.pipe(En()),e.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",r._onKeydown,AT),i.addEventListener("mousedown",r._onMousedown,AT),i.addEventListener("touchstart",r._onTouchstart,AT)})},[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,AT),document.removeEventListener("mousedown",this._onMousedown,AT),document.removeEventListener("touchstart",this._onTouchstart,AT))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG($k),s.LFG(s.R0b),s.LFG(f),s.LFG(ST,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG($k),s.LFG(s.R0b),s.LFG(f),s.LFG(ST,8))},token:t,providedIn:"root"}),t}(),RT=new s.OlP("cdk-focus-monitor-default-options"),NT=nT({passive:!0,capture:!0}),LT=function(){var t=function(){return g(function t(e,n,i,o,r){var a=this;v(this,t),this._ngZone=e,this._platform=n,this._inputModalityDetector=i,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=function(){a._windowFocused=!0,a._windowFocusTimeoutId=setTimeout(function(){return a._windowFocused=!1})},this._stopInputModalityDetector=new Ee.xQ,this._rootNodeFocusAndBlurListener=function(t){for(var e=rT(t),n="focus"===t.type?a._onFocus:a._onBlur,i=e;i;i=i.parentElement)n.call(a,t,i)},this._document=o,this._detectionMode=(null==r?void 0:r.detectionMode)||0},[{key:"monitor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Yk(t);if(!this._platform.isBrowser||1!==n.nodeType)return(0,qt.of)(null);var i=iT(n)||this._getDocument(),o=this._elementInfo.get(n);if(o)return e&&(o.checkChildren=!0),o.subject;var r={checkChildren:e,subject:new Ee.xQ,rootNode:i};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}},{key:"stopMonitoring",value:function(t){var e=Yk(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(t,e,n){var o=this,r=Yk(t);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(t){var n=i(t,2),r=n[0],a=n[1];return o._originChanged(r,e,a)}):(this._setOrigin(e),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(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)}},{key:"_setOrigin",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){e._origin=t,e._originFromTouchInteraction="touch"===t&&n,0===e._detectionMode&&(clearTimeout(e._originTimeoutId),e._originTimeoutId=setTimeout(function(){return e._origin=null},e._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e),i=rT(t);!n||!n.checkChildren&&e!==i||this._originChanged(e,this._getFocusOrigin(i),n)}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run(function(){return t.next(e)})}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,NT),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,NT)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){e._getWindow().addEventListener("focus",e._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(DC(this._stopInputModalityDetector)).subscribe(function(t){e._setOrigin(t,!0)}))}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,NT),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,NT),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}},{key:"_getClosestElementsInfo",value:function(t){var e=[];return this._elementInfo.forEach(function(n,i){(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG($k),s.LFG(IT),s.LFG(f,8),s.LFG(RT,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG($k),s.LFG(IT),s.LFG(f,8),s.LFG(RT,8))},token:t,providedIn:"root"}),t}(),DT="cdk-high-contrast-black-on-white",FT="cdk-high-contrast-white-on-black",UT="cdk-high-contrast-active",ZT=function(){var t=function(){return g(function t(e,n){v(this,t),this._platform=e,this._document=n},[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var 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}}
1,{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove(UT),t.remove(DT),t.remove(FT),this._hasCheckedHighContrastMode=!0;var e=this.getHighContrastMode();1===e?(t.add(UT),t.add(DT)):2===e&&(t.add(UT),t.add(FT))}}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG($k),s.LFG(f))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG($k),s.LFG(f))},token:t,providedIn:"root"}),t}(),qT=function(){var t=g(function t(e){v(this,t),e._applyBodyHighContrastModeCssClasses()});return t.\u0275fac=function(e){return new(e||t)(s.LFG(ZT))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Xk,lT]]}),t}(),jT=new s.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,s.f3M)(f)}}),VT=function(){var t=function(){return g(function t(e){if(v(this,t),this.value="ltr",this.change=new s.vpe,e){var n=e.documentElement?e.documentElement.dir:null,i=(e.body?e.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}},[{key:"ngOnDestroy",value:function(){this.change.complete()}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(jT,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(jT,8))},token:t,providedIn:"root"}),t}(),zT=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t}(),GT=new s.GfV("12.2.13");function BT(t,e){if(1&t&&s._UZ(0,"mat-pseudo-checkbox",4),2&t){var n=s.oxw();s.Q6J("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function HT(t,e){if(1&t&&(s.TgZ(0,"span",5),s._uU(1),s.qZA()),2&t){var n=s.oxw();s.xp6(1),s.hij("(",n.group.label,")")}}var YT=["*"],QT=new s.GfV("12.2.13"),JT=new s.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),WT=function(){var t=function(){return g(function t(e,n,i){v(this,t),this._hasDoneGlobalChecks=!1,this._document=i,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)},[{key:"_checkIsEnabled",value:function(t){return!(!(0,s.X6Q)()||aT())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}},{key:"_checkDoctypeIsDefined",value:function(){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.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checkIsEnabled("theme")&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var 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)}}},{key:"_checkCdkVersionMatch",value:function(){this._checkIsEnabled("version")&&QT.full!==GT.full&&console.warn("The Angular Material version ("+QT.full+") does not match the Angular CDK version ("+GT.full+").\nPlease ensure the versions of these two packages exactly match.")}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(ZT),s.LFG(JT,8),s.LFG(f))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[zT],zT]}),t}();function KT(t){return function(t){function e(){var t;v(this,e);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=y(this,e,[].concat(i)))._disabled=!1,t}return b(e,t),g(e,[{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=zk(t)}}])}(t)}function $T(t,e){return function(t){function n(){var t;v(this,n);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return(t=y(this,n,[].concat(o))).defaultColor=e,t.color=e,t}return b(n,t),g(n,[{key:"color",get:function(){return this._color},set:function(t){var e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),e&&this._elementRef.nativeElement.classList.add("mat-".concat(e)),this._color=e)}}])}(t)}function XT(t){return function(t){function e(){var t;v(this,e);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=y(this,e,[].concat(i)))._disableRipple=!1,t}return b(e,t),g(e,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=zk(t)}}])}(t)}try{"undefined"!=typeof Intl}catch(_i){!1}var tS=function(){var t=function(){return g(function t(){v(this,t)},[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),eS=function(){return g(function t(e,n,i){v(this,t),this._renderer=e,this.element=n,this.config=i,this.state=3},[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}])}(),nS={enterDuration:225,exitDuration:150},iS=nT({passive:!0}),oS=["mousedown","touchstart"],rS=["mouseup","mouseleave","touchend","touchcancel"],aS=function(){return g(function t(e,n,i,o){v(this,t),this._target=e,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Yk(i))},[{key:"fadeInRipple",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},nS),i.animation);i.centered&&(t=o.left+o.width/2,e=o.top+o.height/2);var a=i.radius||function(t,e,n){var 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,o),s=t-o.left,c=e-o.top,u=r.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-a+"px",l.style.top=c-a+"px",l.style.height=2*a+"px",l.style.width=2*a+"px",null!=i.color&&(l.style.backgroundColor=i.color),l.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(l),function(t){window.getComputedStyle(t).getPropertyValue("opacity")}(l),l.style.transform="scale(1)";var h=new eS(this,l,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var t=h===n._mostRecentTransientRipple;h.state=1,!i.persistent&&(!t||!n._isPointerDown)&&h.fadeOut()},u),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object.assign(Object.assign({},nS),t.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}}
1,{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var e=Yk(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(oS))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(rS),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=kT(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))}},{key:"_onTouchStart",value:function(t){if(!this._target.rippleDisabled&&!TT(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var e=t.changedTouches,n=0;n<e.length;n++)this.fadeInRipple(e[n].clientX,e[n].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(function(t){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(t){e._triggerElement.addEventListener(t,e,iS)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(oS.forEach(function(e){t._triggerElement.removeEventListener(e,t,iS)}),this._pointerUpEventsRegistered&&rS.forEach(function(e){t._triggerElement.removeEventListener(e,t,iS)}))}}])}(),sS=new s.OlP("mat-ripple-global-options"),cS=function(){var t=function(){return g(function t(e,n,i,o,r){v(this,t),this._elementRef=e,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new aS(this,n,e,i)},[{key:"disabled",get:function(){return this._disabled},set:function(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){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}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;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)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36($k),s.Y36(sS,8),s.Y36(ib,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-ripple-unbounded",e.unbounded)}
1,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}(),uS=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[WT,Xk],WT]}),t}(),lS=function(){var t=g(function t(e){v(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1});return t.\u0275fac=function(e){return new(e||t)(s.Y36(ib,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&s.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}(),hS=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[WT]]}),t}(),fS=new s.OlP("MAT_OPTION_PARENT_COMPONENT"),dS=KT(g(function t(){v(this,t)})),pS=0,gS=function(){var t=function(t){function e(t){var n,i;return v(this,e),(n=y(this,e))._labelId="mat-optgroup-label-"+pS++,n._inert=null!==(i=null==t?void 0:t.inertGroups)&&void 0!==i&&i,n}return b(e,t),g(e)}(dS);return t.\u0275fac=function(e){return new(e||t)(s.Y36(fS,8))},t.\u0275dir=s.lG2({type:t,inputs:{label:"label"},features:[s.qOj]}),t}(),mS=new s.OlP("MatOptgroup"),vS=0,yS=g(function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];v(this,t),this.source=e,this.isUserInput=n}),_S=function(){var t=function(){return g(function t(e,n,i,o){v(this,t),this._element=e,this._changeDetectorRef=n,this._parent=i,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+vS++,this.onSelectionChange=new s.vpe,this._stateChanges=new Ee.xQ},[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=zk(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){(13===t.keyCode||32===t.keyCode)&&!Zk(t)&&(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new yS(this,t))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(void 0),s.Y36(gS))},t.\u0275dir=s.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t}(),bS=function(){var t=function(t){function e(t,n,i,o){return v(this,e),y(this,e,[t,n,i,o])}return b(e,t),g(e)}(_S);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(fS,8),s.Y36(mS,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&s.NdJ("
1click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),s.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[s.qOj],ngContentSelectors:YT,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&&(s.F$t(),s.YNc(0,BT,1,2,"mat-pseudo-checkbox",0),s.TgZ(1,"span",1),s.Hsn(2),s.qZA(),s.YNc(3,HT,2,1,"span",2),s._UZ(4,"div",3)),2&t&&(s.Q6J("ngIf",e.multiple),s.xp6(3),s.Q6J("ngIf",e.group&&e.group._inert),s.xp6(1),s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[G,cS,lS],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}(),CS=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[uS,et,WT,hS]]}),t}(),xS=r(8819),wS=["*"];function OS(t){return Error('Unable to find icon with the name "'.concat(t,'"'))}function PS(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(t,'".'))}function MS(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(t,'".'))}var kS=g(function t(e,n,i){v(this,t),this.url=e,this.svgText=n,this.options=i}),TS=function(){var t=function(){return g(function t(e,n,i,o){v(this,t),this._httpClient=e,this._sanitizer=n,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i},[{key:"addSvgIcon",value:function(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}},{key:"addSvgIconLiteral",value:function(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}},{key:"addSvgIconInNamespace",value:function(t,e,n,i){return this._addSvgIconConfig(t,e,new kS(n,null,i))}},{key:"addSvgIconResolver",value:function(t){return this._resolvers.push(t),this}},{key:"addSvgIconLiteralInNamespace",value:function(t,e,n,i){var o=this._sanitizer.sanitize(s.q3G.HTML,n);if(!o)throw MS(n);return this._addSvgIconConfig(t,e,new kS("",o,i))}},{key:"addSvgIconSet",value:function(t,e){return this.addSvgIconSetInNamespace("",t,e)}},{key:"addSvgIconSetLiteral",value:function(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}},{key:"addSvgIconSetInNamespace",value:function(t,e,n){return this._addSvgIconSetConfig(t,new kS(e,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(t,e,n){var i=this._sanitizer.sanitize(s.q3G.HTML,e);if(!i)throw MS(e);return this._addSvgIconSetConfig(t,new kS("",i,n))}},{key:"registerFontClassAlias",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;
1return this._fontCssClassesByAlias.set(t,e),this}},{key:"classNameForFontAlias",value:function(t){return this._fontCssClassesByAlias.get(t)||t}},{key:"setDefaultFontSetClass",value:function(t){return this._defaultFontSetClass=t,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(t){var e=this,n=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,t);if(!n)throw PS(t);var i=this._cachedIconsByUrl.get(n);return i?(0,qt.of)(SS(i)):this._loadSvgIconFromConfig(new kS(t,null)).pipe((0,LC.b)(function(t){return e._cachedIconsByUrl.set(n,t)}),(0,Qt.U)(function(t){return SS(t)}))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=ES(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(e,t))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var o=this._iconSetConfigs.get(e);return o?this._getSvgFromIconSetConfigs(t,o):(0,vP._)(OS(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgText?(0,qt.of)(SS(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,Qt.U)(function(t){return SS(t)}))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var n=this,i=this._extractIconWithNameFromAnySet(t,e);return i?(0,qt.of)(i):lb(e.filter(function(t){return!t.svgText}).map(function(t){return n._loadSvgIconSetFromConfig(t).pipe(rx(function(e){var i="Loading icon set URL: ".concat(n._sanitizer.sanitize(s.q3G.RESOURCE_URL,t.url)," failed: ").concat(e.message);return n._errorHandler.handleError(new Error(i)),(0,qt.of)(null)}))})).pipe((0,Qt.U)(function(){var i=n._extractIconWithNameFromAnySet(t,e);if(!i)throw OS(t);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(t,e){for(var n=e.length-1;n>=0;n--){var i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){var o=this._svgElementFromConfig(i),r=this._extractSvgIconFromSet(o,t,i.options);if(r)return r}}return null}},{key:"_loadSvgIconFromConfig",value:function(t){var e=this;return this._fetchIcon(t).pipe((0,LC.b)(function(e){return t.svgText=e}),(0,Qt.U)(function(){return e._svgElementFromConfig(t)}))}},{key:"_loadSvgIconSetFromConfig",value:function(t){return t.svgText?(0,qt.of)(null):this._fetchIcon(t).pipe((0,LC.b)(function(e){return t.svgText=e}))}},{key:"_extractSvgIconFromSet",value:function(t,e,n){var i=t.querySelector('[id="'.concat(e,'"]'));if(!i)return null;var 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);var r=this._svgElementFromString("<svg></svg>");return r.appendChild(o),this._setSvgAttributes(r,n)}},{key:"_svgElementFromString",value:function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}},{key:"_toSvgElement",value:function(t){for(var e=this._svgElementFromString("<svg></svg>"),n=t.attributes,i=0;i<n.length;i++){var o=n[i],r=o.name,a=o.value;"id"!==r&&e.setAttribute(r,a)}for(var s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[s].cloneNode(!0));return e}},{key:"_setSvgAttributes",value:function(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}}
1,{key:"_fetchIcon",value:function(t){var e,n=this,i=t.url,o=t.options,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==i)throw Error('Cannot fetch icon from URL "'.concat(i,'".'));var a=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,i);if(!a)throw PS(i);var c=this._inProgressUrlFetches.get(a);if(c)return c;var u=this._httpClient.get(a,{responseType:"text",withCredentials:r}).pipe(ZC(function(){return n._inProgressUrlFetches.delete(a)}),(0,xS.B)());return this._inProgressUrlFetches.set(a,u),u}},{key:"_addSvgIconConfig",value:function(t,e,n){return this._svgIconConfigs.set(ES(t,e),n),this}},{key:"_addSvgIconSetConfig",value:function(t,e){var n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}},{key:"_svgElementFromConfig",value:function(t){if(!t.svgElement){var e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}},{key:"_getIconConfigFromResolvers",value:function(t,e){for(var n=0;n<this._resolvers.length;n++){var i=this._resolvers[n](e,t);if(i)return AS(i)?new kS(i.url,null,i.options):new kS(i,null)}}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(ge,8),s.LFG(Lt),s.LFG(f,8),s.LFG(s.qLn))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(ge,8),s.LFG(Lt),s.LFG(f,8),s.LFG(s.qLn))},token:t,providedIn:"root"}),t}();function SS(t){return t.cloneNode(!0)}function ES(t,e){return t+":"+e}function AS(t){return!(!t.url||!t.options)}var IS=$T(g(function t(e){v(this,t),this._elementRef=e})),RS=new s.OlP("mat-icon-location",{providedIn:"root",factory:function(){var t=(0,s.f3M)(f),e=t?t.location:null;return{getPathname:function(){return e?e.pathname+e.search:""}}}}),NS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],LS=NS.map(function(t){return"[".concat(t,"]")}).join(", "),DS=/^url\(['"]?#(.*?)['"]?\)$/,FS=function(){var t=function(t){function e(t,n,i,o,r){var a;return v(this,e),(a=y(this,e,[t]))._iconRegistry=n,a._location=o,a._errorHandler=r,a._inline=!1,a._currentIconFetch=je.w.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true"),a}return b(e,t),g(e,[{key:"inline",get:function(){return this._inline},set:function(t){this._inline=zk(t)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}},{key:"fontSet",get:function(){return this._fontSet},set:function(t){var e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(t){var e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(t){if(!t)return["",""];var e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error('Invalid icon name: "'.concat(t,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var t=this._elementsWithExternalReferences;if(t&&t.size){var e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(t){this._clearSvgElement();for(var e=t.querySelectorAll("style"),n=0;n<e.length;n++)e[n].textContent+=" ";var i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(t)}},{key:"_clearSvgElement",value:function(){var t=this._elementRef.nativeElement,e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){var n=t.childNodes[e];(1!==n.nodeType||"svg"===n.nodeName.toLowerCase())&&t.removeChild(n)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var 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)}}},{key:"_cleanupFontValue",value:function(t){return"string"==typeof t?t.trim().split(" ")[0]:t}},{key:"_prependPathToReferences",value:function(t){var e=this._elementsWithExternalReferences;e&&e.forEach(function(e,n){e.forEach(function(e){n.setAttribute(e.name,"url('".concat(t,"#").concat(e.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(t){for(var e=t.querySelectorAll(LS),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(t){NS.forEach(function(i){var o=e[t],r=o.getAttribute(i),a=r?r.match(DS):null;if(a){var s=n.get(o);s||(s=[],n.set(o,s)),s.push({name:i,value:a[1]})}})},o=0;o<e.length;o++)i(o)}},{key:"_updateSvgIcon",value:function(t){var e=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){var n=i(this._splitIconName(t),2),o=n[0],r=n[1];o&&(this._svgNamespace=o),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,o).pipe(We(1)).subscribe(function(t){return e._setSvgElement(t)},function(t){e._errorHandler.handleError(new Error("Error retrieving icon ".concat(o,":").concat(r,"! ").concat(t.message)))})}}}])}(IS);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(TS),s.$8M("aria-hidden"),s.Y36(RS),s.Y36(s.qLn))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(s.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),s.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:[s.qOj],ngContentSelectors:wS,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.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}(),US=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[WT],WT]}),t}(),ZS=r(9105);function qS(t,e,n,i){return(0,ZS.m)(n)&&(i=n,n=void 0),i?qS(t,e,n).pipe((0,Qt.U)(function(t){return(0,cb.k)(t)?i.apply(void 0,u(t)):i(t)})):new jt.y(function(i){jS(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function jS(t,e,n,i,o){var r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var a=t;t.addEventListener(e,n,o),r=function(){return a.removeEventListener(e,n,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(e,n),r=function(){return s.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var c=t;t.addListener(e,n),r=function(){return c.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var u=0,l=t.length;u<l;u++)jS(t[u],e,n,i,o)}i.add(r)}var VS=["underline"],zS=["connectionContainer"],GS=["inputContainer"],BS=["label"];function HS(t,e){1&t&&(s.ynx(0),s.TgZ(1,"div",14),s._UZ(2,"div",15),s._UZ(3,"div",16),s._UZ(4,"div",17),s.qZA(),s.TgZ(5,"div",18),s._UZ(6,"div",15),s._UZ(7,"div",16),s._UZ(8,"div",17),s.qZA(),s.BQk())}function YS(t,e){1&t&&(s.TgZ(0,"div",19),s.Hsn(1,1),s.qZA())}function QS(t,e){if(1&t&&(s.ynx(0),s.Hsn(1,2),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.BQk()),2&t){var n=s.oxw(2);
1s.xp6(3),s.Oqu(n._control.placeholder)}}function JS(t,e){1&t&&s.Hsn(0,3,["*ngSwitchCase","true"])}function WS(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1," *"),s.qZA())}function KS(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"label",20,21),s.NdJ("cdkObserveContent",function(){return s.CHM(n),s.oxw().updateOutlineGap()}),s.YNc(2,QS,4,1,"ng-container",12),s.YNc(3,JS,1,0,"ng-content",12),s.YNc(4,WS,2,0,"span",22),s.qZA()}if(2&t){var i=s.oxw();s.ekj("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),s.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),s.uIk("for",i._control.id)("aria-owns",i._control.id),s.xp6(2),s.Q6J("ngSwitchCase",!1),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function $S(t,e){1&t&&(s.TgZ(0,"div",24),s.Hsn(1,4),s.qZA())}function XS(t,e){if(1&t&&(s.TgZ(0,"div",25,26),s._UZ(2,"span",27),s.qZA()),2&t){var n=s.oxw();s.xp6(2),s.ekj("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function tE(t,e){if(1&t&&(s.TgZ(0,"div"),s.Hsn(1,5),s.qZA()),2&t){var n=s.oxw();s.Q6J("@transitionMessages",n._subscriptAnimationState)}}function eE(t,e){if(1&t&&(s.TgZ(0,"div",31),s._uU(1),s.qZA()),2&t){var n=s.oxw(2);s.Q6J("id",n._hintLabelId),s.xp6(1),s.Oqu(n.hintLabel)}}function nE(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,eE,2,2,"div",29),s.Hsn(2,6),s._UZ(3,"div",30),s.Hsn(4,7),s.qZA()),2&t){var n=s.oxw();s.Q6J("@transitionMessages",n._subscriptAnimationState),s.xp6(1),s.Q6J("ngIf",n.hintLabel)}}var iE=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],oE=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],rE=0,aE=new s.OlP("MatError"),sE=function(){var t=g(function t(e,n){v(this,t),this.id="mat-error-"+rE++,e||n.nativeElement.setAttribute("aria-live","polite")});return t.\u0275fac=function(e){return new(e||t)(s.$8M("aria-live"),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("id",e.id)},inputs:{id:"id"},features:[s._Bn([{provide:aE,useExisting:t}])]}),t}(),cE={transitionMessages:xv("transitionMessages",[Mv("enter",Pv({opacity:1,transform:"translateY(0%)"})),kv("void => enter",[Pv({opacity:0,transform:"translateY(-5px)"}),wv("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},uE=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t}(),lE=new s.OlP("MatHint"),hE=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-label"]]}),t}(),fE=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-placeholder"]]}),t}(),dE=new s.OlP("MatPrefix"),pE=new s.OlP("MatSuffix"),gE=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","matSuffix",""]],features:[s._Bn([{provide:pE,useExisting:t}])]}),t}(),mE=0,vE=$T(g(function t(e){v(this,t),this._elementRef=e}),"primary"),yE=new s.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),_E=new s.OlP("MatFormField"),bE=function(){var t=function(t){function e(t,n,i,o,r,a,s,c){var u;return v(this,e),(u=y(this,e,[t]))._changeDetectorRef=n,u._dir=o,u._defaults=r,u._platform=a,u._ngZone=s,u._outlineGapCalculationNeededImmediately=!1,u._outlineGapCalculationNeededOnStable=!1,u._destroyed=new Ee.xQ,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-"+mE++,u._labelId="mat-form-field-label-"+mE++,u.floatLabel=u._getDefaultFloatLabelState(),u._animationsEnabled="NoopAnimations"!==c,u.appearance=r&&r.appearance?r.appearance:"legacy",u._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker,u}return b(e,t),g(e,[{key:"appearance",get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=zk(t)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}
1,set:function(t){this._explicitFormFieldControl=t}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe(wn(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(DC(this._destroyed)).subscribe(function(){return t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe(DC(t._destroyed)).subscribe(function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()})}),(0,Ie.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(wn(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(wn(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(DC(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t.updateOutlineGap()})}):t.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,qS(this._label.nativeElement,"transitionend").pipe(We(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push.apply(t,u(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,n=this._hintChildren?this._hintChildren.find(function(t){return"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.apply(t,u(this._errorChildren.map(function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,n=0,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){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),c=t.children,u=this._getStartEnd(c[0].getBoundingClientRect()),l=0,h=0;h<c.length;h++)l+=c[h].offsetWidth;e=Math.abs(u-s)-5,n=l>0?.75*l+10:0}for(var f=0;f<o.length;f++)o[f].style.width="".concat(e,"px");for(var d=0;d<r.length;d++)r[d].style.width="".concat(n,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}},{key:"_isAttachedToDOM",value:function(){var t=this._elementRef.nativeElement;if(t.getRootNode){var e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}}])}(vE);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(VT,8),s.Y36(yE,8),s.Y36($k),s.Y36(s.R0b),s.Y36(ib,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-form-field"]],contentQueries:function(t,e,n){var i;(1&t&&(s.Suo(n,uE,5),s.Suo(n,uE,7),s.Suo(n,hE,5),s.Suo(n,hE,7),s.Suo(n,fE,5),s.Suo(n,aE,5),s.Suo(n,lE,5),s.Suo(n,dE,5),s.Suo(n,pE,5)),2&t)&&(s.iGM(i=s.CRH())&&(e._controlNonStatic=i.first),s.iGM(i=s.CRH())&&(e._controlStatic=i.first),s.iGM(i=s.CRH())&&(e._labelChildNonStatic=i.first),s.iGM(i=s.CRH())&&(e._labelChildStatic=i.first),s.iGM(i=s.CRH())&&(e._placeholderChild=i.first),s.iGM(i=s.CRH())&&(e._errorChildren=i),s.iGM(i=s.CRH())&&(e._hintChildren=i),s.iGM(i=s.CRH())&&(e._prefixChildren=i),s.iGM(i=s.CRH())&&(e._suffixChildren=i))},viewQuery:function(t,e){var n;(1&t&&(s.Gf(VS,5),s.Gf(zS,7),s.Gf(GS,5),s.Gf(BS,5)),2&t)&&(s.iGM(n=s.CRH())&&(e.underlineRef=n.first),s.iGM(n=s.CRH())&&(e._connectionContainerRef
1=n.first),s.iGM(n=s.CRH())&&(e._inputContainerRef=n.first),s.iGM(n=s.CRH())&&(e._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(t,e){2&t&&s.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:[s._Bn([{provide:_E,useExisting:t}]),s.qOj],ngContentSelectors:oE,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&&(s.F$t(iE),s.TgZ(0,"div",0),s.TgZ(1,"div",1,2),s.NdJ("click",function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)}),s.YNc(3,HS,9,0,"ng-container",3),s.YNc(4,YS,2,0,"div",4),s.TgZ(5,"div",5,6),s.Hsn(7),s.TgZ(8,"span",7),s.YNc(9,KS,5,16,"label",8),s.qZA(),s.qZA(),s.YNc(10,$S,2,0,"div",9),s.qZA(),s.YNc(11,XS,3,4,"div",10),s.TgZ(12,"div",11),s.YNc(13,tE,2,1,"div",12),s.YNc(14,nE,5,2,"div",13),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Q6J("ngIf","outline"==e.appearance),s.xp6(1),s.Q6J("ngIf",e._prefixChildren.length),s.xp6(5),s.Q6J("ngIf",e._hasFloatingLabel()),s.xp6(1),s.Q6J("ngIf",e._suffixChildren.length),s.xp6(1),s.Q6J("ngIf","outline"!=e.appearance),s.xp6(1),s.Q6J("ngSwitch",e._getDisplayedMessages()),s.xp6(1),s.Q6J("ngSwitchCase","error"),s.xp6(1),s.Q6J("ngSwitchCase","hint"))},directives:[G,Q,J,uT],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;
1left: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:[cE.transitionMessages]},changeDetection:0}),t}(),CE=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[et,WT,lT],WT]}),t}(),xE=function(){return g(function t(e){v(this,t),this.durationSelector=e},[{key:"call",value:function(t,e){return e.subscribe(new wE(t,this.durationSelector))}}])}(),wE=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[t])).durationSelector=n,i.hasValue=!1,i}return b(e,t),g(e,[{key:"_next",value:function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e;try{var n;e=(0,this.durationSelector)(t)}catch(n){return this.destination.error(n)}var i=(0,De.D)(this,e);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}},{key:"clearThrottle",value:function(){var t=this.value,e=this.hasValue,n=this.throttled;
1n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}},{key:"notifyNext",value:function(t,e,n,i){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}])}(Ne.L),OE=r(6561);function PE(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return(0,OE.k)(e)?i=Number(e)<1?1:Number(e):(0,xn.K)(e)&&(n=e),(0,xn.K)(n)||(n=_n.P),new jt.y(function(e){var o=(0,OE.k)(t)?t:+t-n.now();return n.schedule(ME,o,{index:0,period:i,subscriber:e})})}function ME(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function kE(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_n.P;return function(t){return function(e){return e.lift(new xE(t))}}(function(){return PE(t,e)})}var TE=nT({passive:!0}),SE=function(){var t=function(){return g(function t(e,n){v(this,t),this._platform=e,this._ngZone=n,this._monitoredElements=new Map},[{key:"monitor",value:function(t){var e=this;if(!this._platform.isBrowser)return Je.E;var n=Yk(t),i=this._monitoredElements.get(n);if(i)return i.subject;var o=new Ee.xQ,r="cdk-text-field-autofilled",a=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(r)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(r)&&(n.classList.remove(r),e._ngZone.run(function(){return o.next({target:t.target,isAutofilled:!1})})):(n.classList.add(r),e._ngZone.run(function(){return o.next({target:t.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",a,TE),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:o,unlisten:function(){n.removeEventListener("animationstart",a,TE)}}),o}},{key:"stopMonitoring",value:function(t){var e=Yk(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))}},{key:"ngOnDestroy",value:function(){var t=this;this._monitoredElements.forEach(function(e,n){return t.stopMonitoring(n)})}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG($k),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG($k),s.LFG(s.R0b))},token:t,providedIn:"root"}),t}(),EE=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Xk]]}),t}(),AE=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),IE=["button","checkbox","file","hidden","image","radio","range","reset","submit"],RE=0,NE=function(t){return function(t){function e(){var t;v(this,e);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=y(this,e,[].concat(i))).stateChanges=new Ee.xQ,t.errorState=!1,t}return b(e,t),g(e,[{key:"updateErrorState",value:function(){var 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())}}])}(t)}(g(function t(e,n,i,o){v(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=o})),LE=function(){var t=function(t){function e(t,n,i,o,r,a,s,c,u,l){var h;v(this,e),(h=y(this,e,[a,o,r,i]))._elementRef=t,h._platform=n,h._autofillMonitor=c,h._formField=l,h._uid="mat-input-"+RE++,h.focused=!1,h.stateChanges=new Ee.xQ,h.controlType="mat-input",h.autofilled=!1,h._disabled=!1,h._required=!1,h._type="text",h._readonly=!1,h._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(t){return eT().has(t)});var f=h._elementRef.nativeElement,d=f.nodeName.toLowerCase();return h._inputValueAccessor=s||f,h._previousNativeValue=h.value,h.id=h.id,n.IOS&&u.runOutsideAngular(function(){t.nativeElement.addEventListener("keyup",function(t){var e=t.target;!e.value&&0===e.selectionStart&&0===e.selectionEnd&&(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),h._isServer=!h._platform.isBrowser,h._isNativeSelect="select"===d,h._isTextarea="textarea"===d,h._isInFormField=!!l,h._isNativeSelect&&(h.c
1ontrolType=f.multiple?"mat-native-select-multiple":"mat-native-select"),h}return b(e,t),g(e,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=zk(t),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=zk(t)}},{key:"type",get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea&&eT().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(t){this._readonly=zk(t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_focusChanged",value:function(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var t,e,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){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}},{key:"_validateType",value:function(){IE.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var 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}},{key:"setDescribedByIds",value:function(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}}])}(NE);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36($k),s.Y36(zb,10),s.Y36(bC,8),s.Y36(TC,8),s.Y36(tS),s.Y36(AE,10),s.Y36(SE),s.Y36(s.R0b),s.Y36(_E,8))},t.\u0275dir=s.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&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.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),s.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:[s._Bn([{provide:uE,useExisting:t}]),s.qOj,s.TTD]}),t}(),DE=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[tS],imports:[[EE,CE,WT],EE,CE]}),t}(),FE=["input"],UE=function(t){return{enterDuration:t}},ZE=["*"],qE=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:jE});function jE(){return{color:"accent",clickAction:"check-indeterminate"}}var VE=0,zE={color:"accent",clickAction:"check-indeterminate"},GE={provide:pb,useExisting:(0,s.Gpc)(function(){return YE}),multi:!0},BE=g(function t(){v(this,t)}),HE=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(t){function n(){var t;v(this,n);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return(t=y(this,n,[].concat(o)))._tabIndex=e,t.defaultTabIndex=e,t}return b(n,t),g(n,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?Gk(t):this.defaultTabIndex}}])}(t)}($T(XT(KT(g(function t(e){v(this,t),this._elementRef=e}))))),YE=function(){var t=function(t){function e(t,n,i,o,r,a,c){var u;return v(this,e),(u=y(this,e,[t]))._changeDetectorRef=n,u._focusMonitor=i,u._ngZone=o,u._animationMode=a,u._options=c,u.ariaLabel="",u.ariaLabelledby=null,u._uniqueId="mat-checkbox-"+ ++VE,u.id=u._uniqueId,u.labelPosition="after",u.name=null,u.change=new s.vpe,u.indeterminateChange=new s.vpe,u._onTouched=function(){},u._currentAnimationClass="",u._currentCheckState=0,u._controlValueAccessorChangeFn=function(){},u._checked=!1,u._disabled=!1,u._indeterminate=!1,u._options=u._options||zE,u.color=u.defaultColor=u._options.color||zE.color,u.tabIndex=parseInt(r)||0,u}return b(e,t),g(e,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(t){this._required=zk(t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){e||Promise.resolve().then(function(){t._onTouched(),t._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){var e=zk(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=zk(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(t){var 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);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){n.classList.remove(i)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var t=new BE;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(t){var e,n=this,i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?!this.disabled&&"noop"===i&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(function(){n._indeterminate=!1,n.indeterminateChange.emit(n._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}},{key:"_onInteractionEvent",value:function(t){t.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(t,e){if("NoopAnimations"===this._animationMode)return"";var 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-".concat(n)}},{key:"_syncIndeterminate",value:function(t){var e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}])}(HE);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(LT),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(ib,8),s.Y36(qE,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;(1&t&&(s.Gf(FE,5),s.Gf(cS,5)),2&t)&&(s.iGM(n=s.CRH())&&(e._inputElement=n.first),s.iGM(n=s.CRH())&&(e.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",null),s.ekj("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:[s._Bn([GE]),s.qOj],ngContentSelectors:ZE,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&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s.TgZ(3,"input",3,4),s.NdJ("
1change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA(),s.qZA(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA(),s.qZA()),2&t){var n=s.MAs(1),i=s.MAs(13);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.xp6(1),s.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",n)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.VKq(19,UE,"NoopAnimations"===e._animationMode?0:150))}},directives:[cS,uT],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;transform: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}
1@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}(),QE=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t}(),JE=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[uS,WT,lT,QE],WT,QE]}),t}();function WE(t,e){1&t&&(s.ynx(0),s.TgZ(1,"div",2),s.TgZ(2,"article"),s.TgZ(3,"div",3),s._UZ(4,"mat-icon",4),s.qZA(),s.TgZ(5,"div",5),s.TgZ(6,"h3"),s._uU(7,"This license has already been redeemed"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.BQk())}function KE(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",36),s.TgZ(2,"span",37),s._uU(3,"There is no account associated with this email address. Please check your email address or sign up for an account"),s.qZA(),s.BQk())}function $E(t,e){1&t&&(s.ynx(0),s.TgZ(1,"span"),s._uU(2,"Please enter a valid email address"),s.qZA(),s.BQk())}function XE(t,e){1&t&&(s.TgZ(0,"span"),s._uU(1,"Invalid email"),s.qZA())}function tA(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"mat-icon",36),s.YNc(2,$E,3,0,"ng-container",0),s.YNc(3,XE,2,0,"ng-template",null,38,s.W1O),s.BQk()),2&t){var n=s.MAs(4),i=s.oxw(3);s.xp6(2),s.Q6J("ngIf",i.isEmptyControl(i.email))("ngIfElse",n)}}function eA(t,e){if(1&t&&s.YNc(0,tA,5,2,"ng-container",26),2&t){var n=s.oxw(2);s.Q6J("ngIf",n.email.invalid&&(n.email.touched||n.email.dirty))}}function nA(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",36),s.TgZ(2,"span"),s._uU(3,"Incorrect password entered."),s.qZA(),s.BQk())}function iA(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",36),s.TgZ(2,"span"),s._uU(3,"Please enter a password"),s.qZA(),s.BQk())}function oA(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s.YNc(1,iA,4,0,"ng-container",26),s.qZA()),2&t){var n=s.oxw(2);s.xp6(1),s.Q6J("ngIf",n.isEmptyControl(n.password))}}function rA(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"div",6),s.TgZ(1,"h3"),s._uU(2,"Welcome back"),s.qZA(),s.qZA(),s.TgZ(3,"div",7),s.TgZ(4,"div",8),s._UZ(5,"mat-icon",9),s.TgZ(6,"p",10),s._uU(7),s.qZA(),s.qZA(),s.qZA(),s.TgZ(8,"div",11),s.TgZ(9,"div",12),s.TgZ(10,"form",13),s.NdJ("submit",function(){return s.CHM(n),s.oxw().signin()}),s.TgZ(11,"div",14),s.TgZ(12,"div",15),s.TgZ(13,"span"),s._uU(14,"Email"),s.qZA(),s.qZA(),s.TgZ(15,"mat-form-field",16),s.TgZ(16,"input",17),s.NdJ("keyup",function(t){return s.CHM(n),s.oxw().onKeyE(t)}),s.qZA(),s._UZ(17,"mat-icon",18),s.qZA(),s.TgZ(18,"div",19),s.YNc(19,KE,4,0,"ng-container",0),s.YNc(20,eA,1,1,"ng-template",null,20,s.W1O),s.qZA(),s.qZA(),s.TgZ(22,"div",21),s.TgZ(23,"div",15),s.TgZ(24,"span"),s._uU(25,"Password"),s.qZA(),s.qZA(),s.TgZ(26,"mat-form-field",22),s.TgZ(27,"input",23),s.NdJ("keyup",function(t){return s.CHM(n),s.oxw().onKeyP(t)}
1),s.qZA(),s.TgZ(28,"span",24),s.NdJ("click",function(){s.CHM(n);var t=s.oxw();return t.hide=!t.hide}),s._UZ(29,"mat-icon",25),s.qZA(),s.qZA(),s.TgZ(30,"div",19),s.YNc(31,nA,4,0,"ng-container",26),s.YNc(32,oA,2,1,"mat-error",26),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(33,"div",27),s.TgZ(34,"div",28),s.TgZ(35,"div",29),s.TgZ(36,"mat-checkbox",30),s.NdJ("change",function(t){return s.CHM(n),s.oxw().checkCheckboxValue(t)}),s.qZA(),s.TgZ(37,"span"),s._uU(38,"Remember me"),s.qZA(),s.qZA(),s.TgZ(39,"div",31),s.TgZ(40,"strong",32),s.TgZ(41,"a",33),s._uU(42,"Forgot your password?"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(43,"div",34),s.TgZ(44,"button",35),s._uU(45," Sign in "),s.qZA(),s.TgZ(46,"span"),s._uU(47," Create a new account? "),s.TgZ(48,"strong",32),s.TgZ(49,"a",33),s._uU(50,"Sign up"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){var i=s.MAs(21),o=s.oxw();s.xp6(7),s.Oqu(o.migrationMessage),s.xp6(3),s.Q6J("formGroup",o.formGroup),s.xp6(9),s.Q6J("ngIf",o.showEmail)("ngIfElse",i),s.xp6(8),s.Q6J("type",o.hide?"password":"text"),s.xp6(1),s.uIk("aria-pressed",o.hide),s.xp6(1),s.s9C("svgIcon",o.hide?"lockEye":"openEye"),s.xp6(2),s.Q6J("ngIf",o.show),s.xp6(1),s.Q6J("ngIf",o.password.invalid&&(o.password.dirty||o.password.touched)),s.xp6(9),s.Q6J("routerLink","/reset-password")("queryParamsHandling","preserve"),s.xp6(3),s.Q6J("disabled",o.loading||o.isFormInvalid()),s.xp6(5),s.Q6J("routerLink","/signup")("queryParamsHandling","preserve")}}var aA=function(){var t=function(){return g(function t(e,n,i,o,r,a,s){var c=this;v(this,t),this.document=e,this.appState=n,this._fb=i,this._router=o,this._auth=r,this._toastr=a,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 Ee.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(function(t){if(1===t.length&&t[0].coupons){var e,n=h(t[0].coupons);try{for(n.s();!(e=n.n()).done;){var i=e.value;console.log(i),c.route.snapshot.queryParams.product_id===i.product_id&&c.route.snapshot.queryParams.th__c===i.coupon_code&&i.redeemed&&(c.isRedeemed=!0,c._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())}}catch(o){n.e(o)}finally{n.f()}}c.appState.loading=!1})),this.route.queryParams.pipe((0,LC.b)(function(t){c._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,Qt.U)(function(t){return{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}}),DC(this.destroy$)).subscribe(function(t){for(var e in c.email.patchValue(t.email),t)("group_token"===e||"coupon_code"===e||"product_id"===e||"uid"===e)&&t[e]&&"undefined"!==t[e]&&localStorage.setItem(e,t[e])})},[{key:"email",get:function(){return this.formGroup.get("email")}},{key:"password",get:function(){return this.formGroup.get("password")}},{key:"initFormGroup",value:function(){return this._fb.group({email:[null,[wb.email,wb.required]],password:[null,wb.required]})}},{key:"signin",value:function(){var t=this;this.email.errors&&this.email.errors.email&&(this.showEmail=!0);var e=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.
1snapshot.queryParams.product_id);var n=localStorage.getItem("checkout"),i=localStorage.getItem("emailChanged");this.loading=!0;var o=Object.assign({},this.formGroup.value);o.email=o.email.toLowerCase(),this.setCouponData(),this._auth.signinClientPersistence(o,this.check).pipe(Fe(function(){return t._auth.currentUser}),Bt(function(t){return!!t}),(0,LC.b)(function(e){var n,i,o,r,a,s;t.addSecondaryEmail=!!t._auth.couponUserData.email&&t.email.value.toLowerCase().trim()!==(null===(i=null===(n=t._auth.couponUserData.email)||void 0===n?void 0:n.toLowerCase())||void 0===i?void 0:i.trim()),t.addSecondaryFirstName=!!t._auth.couponUserData.first_name&&(null===(r=null===(o=t._auth.couponUserData.first_name)||void 0===o?void 0:o.toLowerCase())||void 0===r?void 0:r.trim())!==e.first_name.toLowerCase().trim(),t.addSecondaryLastName=!!t._auth.couponUserData.last_name&&(null===(s=null===(a=t._auth.couponUserData.last_name)||void 0===a?void 0:a.toLowerCase())||void 0===s?void 0:s.trim())!==e.last_name.toLowerCase().trim()}),Fe(function(e){return t.setCoupon(e)}),Fe(function(e){return t.updateUserDocument(e)}),Fe(function(){return t._auth.authUser}),We(1),Fe(function(i){return e?t._router.navigate(["/auth/action"],{queryParams:{mode:"verifyEmail",token:e}}):n||t.getFreeTrial?i.emailVerified?lb(t._auth.updateLastLoginTime(),t.navigateEnroll()):t._router.navigate(["/auth/verify"]):t.customAuth?t.getTokenFromServer(t.redirectUrl):i.emailVerified?lb(t._auth.updateLastLoginTime(),t.navigateToSchool()):t._router.navigate(["/auth/verify"])}),ZC(function(){localStorage.clear(),localStorage.setItem("emailChanged",i),"true"===t.route.snapshot.queryParams.admin_dashboard?localStorage.setItem("admin_dashboard","true"):"true"===t.route.snapshot.queryParams.bursary_internal_dashboard?localStorage.setItem("bursary_internal_dashboard","true"):"true"===t.route.snapshot.queryParams.bursary_external_dashboard&&localStorage.setItem("bursary_external_dashboard","true")})).subscribe(function(){},function(e){return t.loading=!1,console.log("Error is: ",e),t.showError(e.code),t._auth.handleAuthError(t.addSecondaryEmail,t.addSecondaryFirstName,t.addSecondaryLastName)})}},{key:"checkCheckboxValue",value:function(t){this.check=!!t.checked}},{key:"isEmptyControl",value:function(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}},{key:"isFormInvalid",value:function(){var t;return!this.formGroup||(null===(t=this.formGroup)||void 0===t?void 0:t.invalid)}},{key:"onKeyP",value:function(t){this.show=!1}},{key:"onKeyE",value:function(t){this.showEmail=!1}},{key:"getTokenFromServer",value:function(t){return this._auth.getAuthTokenFromServer(t).pipe((0,LC.b)(function(t){var e=t.redirectUri;window.location.href=e}))}},{key:"setCouponData",value:function(){this.couponData={coupon_code:localStorage.getItem("coupon_code"),group_token:localStorage.getItem("group_token"),product_id:localStorage.getItem("product_id"),redeemed:!1}}},{key:"updateUserDocument",value:function(t){if(this.addSecondaryEmail||this.addSecondaryFirstName||this.addSecondaryLastName){var e={};return e=this._auth.getUpdatePayload(e,this.addSecondaryEmail,this.addSecondaryFirstName,this.addSecondaryLastName),this._auth.updateUserDoc(e).pipe(We(1),Fe(function(){return(0,qt.of)(t)}))}return this.isPasswordReset&&!t.email_verified?this._auth.updateUserDoc({email_verified:!0}).pipe(We(1),Fe(function(){return(0,qt.of)(t)})):(0,qt.of)(t)}},{key:"setCoupon",value:function(t){return this.couponData.coupon_code&&this.couponData.group_token&&this.couponData.product_id?this._auth.addCoupon(this.couponData).pipe(Fe(function(e){return(0,qt.of)(t)})):(0,qt.of)(t)}},{key:"showError",value:function(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")}}},{key:"navigateToSchool",value:function(){var t=this;return this.appState.loading=!0,this._auth.signinSchool().pipe((0,LC.b)(function(e){t.document.location.href=e.redirect_uri}))}},{key:"navigateEnroll",value:function(){var t=this,e=localStorage.getItem("product"),n=localStorage.getItem("price");return this.appState.loading=!0,this.getFreeTrial?this._auth.signForFreeTrial(this.trialProductID,this.getFreeTrial).pipe((0,LC.b)(function(e){t.document.location.href=e.redirect_uri})):this._auth.signEnroll(e,n).pipe((0,LC.b)(function(e){console.log(e),t.document.location.href=e.redirect_uri}))}},{key:"ngOnDestroy",value:function(){this.destroy$.next(!0),this.destroy$.unsubscribe()}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(f),s.Y36(KC),s.Y36(NC),s.Y36(VO),s.Y36(ik),s.Y36(Ak),s.Y36(Cw))},t.\u0275cmp=s.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&&(s.YNc(0,WE,8,0,"ng-container",0),s.YNc(1,rA,51,14,"ng-template",null,1,s.W1O)),2&t){var n=s.MAs(2);s.Q6J("ngIf",e.isRedeemed)("ngIfElse",n)}},directives:[G,FS,OC,Hb,TC,bE,LE,vb,Bb,EC,gE,YE,BO,sE],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}(),sA=r(8640),cA=new jt.y(sA.Z),uA=function(){var t=function(){return g(function t(e,n){v(this,t),this.afs=e,this.auth=n},[{key:"limits",get:function(){return this.afs.collection("users").doc(this.auth.user.uid).collection("limits").doc("all").valueChanges()}},{key:"MA_CHANGE_EMAIL_LIMIT",get:function(){return this.limits.pipe(We(1),(0,Qt.U)(function(t){return new lA((null==t?void 0:t.MA_CHANGE_EMAIL_LIMIT)?t.MA_CHANGE_EMAIL_LIMIT.toDate():new Date)}))}},{key:"MA_VERIFY_EMAIL_LIMIT",get:function(){return this.limits.pipe(We(1),(0,Qt.U)(function(t){return new lA((null==t?void 0:t.MA_VERIFY_EMAIL_LIMIT)?t.MA_VERIFY_EMAIL_LIMIT.toDate():new Date)}))}},{key:"MA_PASSWORD_RESET_LIMIT",get:function(){return new lA(new Date(localStorage.getItem("MA_RESET_PASSWORD_LIMIT")))}},{key:"MA_SIGNUP_LIMIT",get:function(){return new lA(new Date(localStorage.getItem("MA_VERIFY_EMAIL_SIGNUP_LIMIT")))}},{key:"setChangeEmailLimit",value:function(){var t=this.addDays(new Date,7);return this.limitsDoc().set({MA_CHANGE_EMAIL_LIMIT:t},{merge:!0})}},{key:"setVerifyEmailLimit",value:function(){var t=this.addMinutes(new Date,5);return this.limitsDoc().set({MA_VERIFY_EMAIL_LIMIT:t},{merge:!0})}},{key:"setVerifyEmailLimitSignup",value:function(){var t=this.addMinutes(new Date,5);localStorage.setItem("MA_VERIFY_EMAIL_SIGNUP_LIMIT",t.toISOString())}},{key:"setPasswordResetLimit",value:function(){var t=this.addMinutes(new Date,2);localStorage.setItem("MA_RESET_PASSWORD_LIMIT",t.toISOString())}},{key:"addMinutes",value:function(t,e){return new Date(t.getTime()+6e4*e)}},{key:"addDays",value:function(t,e){var n=new Date;return n.setDate(n.getDate()+1),n}},{key:"limitsDoc",value:function(){return this.afs.collection("users").doc(this.auth.user.uid).collection("limits").doc("all")}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(yv),s.LFG(ik))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),lA=function(){return g(function t(e){v(this,t),this.limit=e},[{key:"valid",value:function(){if(this.limit)return this.limit.getTime()<=(new Date).getTime()}},{key:"invalid",value:function(){return this.limit.getTime()>(new Date).getTime()}},{key:"getTime",value:function(){return this.limit.getTime()-(new Date).getTime()}}])}(),hA=r(6465);new(function(t){function e(){return v(this,e),y(this,e,arguments)}return b(e,t),g(e,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,o=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i<o&&(t=n.shift()));if(this.active=!1,e){for(;++i<o&&(t=n.shift());)t.unsubscribe();throw e}}}])}(r(6102).v))(function(t){function e(t,n){var i;
1return v(this,e),(i=y(this,e,[t,n])).scheduler=t,i.work=n,i}return b(e,t),g(e,[{key:"requestAsyncId",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?a(e,"requestAsyncId",this,3)([t,n,i]):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))}},{key:"recycleAsyncId",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return a(e,"recycleAsyncId",this,3)([t,n,i]);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)}}])}(hA.o)),r(4581);var fA=function(){var t=function(){return g(function t(e,n,i){v(this,t),this._ngZone=e,this._platform=n,this._scrolled=new Ee.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i},[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(function(){return e._scrolled.next(t)}))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new jt.y(function(n){t._globalSubscription||t._addGlobalListener();var i=e>0?t._scrolled.pipe(kE(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):(0,qt.of)()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Bt(function(t){return!t||n.indexOf(t)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach(function(i,o){e._scrollableContainsElement(o,t)&&n.push(o)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var n=Yk(e),i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return qS(t._getWindow().document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG($k),s.LFG(f,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG($k),s.LFG(f,8))},token:t,providedIn:"root"}),t}(),dA=function(){var t=function(){return g(function t(e,n,i){var o=this;v(this,t),this._platform=e,this._change=new Ee.xQ,this._changeListener=function(t){o._change.next(t)},this._document=i,n.runOutsideAngular(function(){if(e.isBrowser){var t=o._getWindow();t.addEventListener("resize",o._changeListener),t.addEventListener("orientationchange",o._changeListener)}o.change().subscribe(function(){return o._viewportSize=null})})},[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var 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
1:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(kE(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG($k),s.LFG(s.R0b),s.LFG(f,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG($k),s.LFG(s.R0b),s.LFG(f,8))},token:t,providedIn:"root"}),t}(),pA=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t}(),gA=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[zT,Xk,pA],zT,pA]}),t}(),mA=function(){return g(function t(){v(this,t)},[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}])}(),vA=function(t){function e(t,n,i,o){var r;return v(this,e),(r=y(this,e)).component=t,r.viewContainerRef=n,r.injector=i,r.componentFactoryResolver=o,r}return b(e,t),g(e)}(mA),yA=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e)).templateRef=t,o.viewContainerRef=n,o.context=i,o}return b(e,t),g(e,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=n,a(e,"attach",this,3)([t])}},{key:"detach",value:function(){return this.context=void 0,a(e,"detach",this,3)([])}}])}(mA),_A=function(t){function e(t){var n;return v(this,e),(n=y(this,e)).element=t instanceof s.SBq?t.nativeElement:t,n}return b(e,t),g(e)}(mA),bA=function(){return g(function t(){v(this,t),this._isDisposed=!1,this.attachDomPortal=null},[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof vA?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof yA?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof _A?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}])}(),CA=function(t){function e(t,n,i,o,r){var s;return v(this,e),(s=y(this,e)).outletElement=t,s._componentFactoryResolver=n,s._appRef=i,s._defaultInjector=o,s.attachDomPortal=function(t){var n=t.element,i=s._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),s.outletElement.appendChild(n),s._attachedPortal=t,a((_(s),e),"setDisposeFn",s,3)([function(){i.parentNode&&i.parentNode.replaceChild(n,i)}])},s._document=r,s}return b(e,t),g(e,[{key:"attachComponentPortal",value:function(t){var e,n=this,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(function(){return e.destroy()})):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=t,e}},{key:"attachTemplatePortal",value:function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);
1return i.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),i.detectChanges(),this.setDisposeFn(function(){var t=n.indexOf(i);-1!==t&&n.remove(t)}),this._attachedPortal=t,i}},{key:"dispose",value:function(){a(e,"dispose",this,3)([]),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}])}(bA),xA=function(){var t=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e))._componentFactoryResolver=t,o._viewContainerRef=n,o._isInitialized=!1,o.attached=new s.vpe,o.attachDomPortal=function(t){var n=t.element,i=o._document.createComment("dom-portal");t.setAttachedHost(_(o)),n.parentNode.insertBefore(i,n),o._getRootNode().appendChild(n),o._attachedPortal=t,a((_(o),e),"setDisposeFn",o,3)([function(){i.parentNode&&i.parentNode.replaceChild(n,i)}])},o._document=i,o}return b(e,t),g(e,[{key:"portal",get:function(){return this._attachedPortal},set:function(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&a(e,"detach",this,3)([]),t&&a(e,"attach",this,3)([t]),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){a(e,"dispose",this,3)([]),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var n=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),o=n.createComponent(i,n.length,t.injector||n.injector);return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),a(e,"setDisposeFn",this,3)([function(){return o.destroy()}]),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}},{key:"attachTemplatePortal",value:function(t){var n=this;t.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return a(e,"setDisposeFn",this,3)([function(){return n._viewContainerRef.clear()}]),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}])}(bA);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36(f))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[s.qOj]}),t}(),wA=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t}(),OA=function(){if(null==Wk){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Wk=!1;if("scrollBehavior"in document.documentElement.style)Wk=!0;else{var t=Element.prototype.scrollTo;Wk=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Wk}(),PA=function(){return g(function t(e,n){v(this,t),this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n},[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Hk(-this._previousScrollPosition.left),t.style.top=Hk(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var 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"),OA&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),OA&&(e.scrollBehavior=i,n.scrollBehavior=o)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}])}(),MA=function(){return g(function t(e,n,i,o){var r=this;v(this,t),this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler
1=i,this._config=o,this._scrollSubscription=null,this._detach=function(){r.disable(),r._overlayRef.hasAttached()&&r._ngZone.run(function(){return r._overlayRef.detach()})}},[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}])}(),kA=function(){return g(function t(){v(this,t)},[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}])}();function TA(t,e){return e.some(function(e){return t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right})}function SA(t,e){return e.some(function(e){return t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right})}var EA=function(){return g(function t(e,n,i,o){v(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this._config=o,this._scrollSubscription=null},[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,o=n.height;TA(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}])}(),AA=function(){var t=g(function t(e,n,i,o){var r=this;v(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new kA},this.close=function(t){return new MA(r._scrollDispatcher,r._ngZone,r._viewportRuler,t)},this.block=function(){return new PA(r._viewportRuler,r._document)},this.reposition=function(t){return new EA(r._scrollDispatcher,r._viewportRuler,r._ngZone,t)},this._document=o});return t.\u0275fac=function(e){return new(e||t)(s.LFG(fA),s.LFG(dA),s.LFG(s.R0b),s.LFG(f))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(fA),s.LFG(dA),s.LFG(s.R0b),s.LFG(f))},token:t,providedIn:"root"}),t}(),IA=g(function t(e){if(v(this,t),this.scrollStrategy=new kA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];void 0!==e[o]&&(this[o]=e[o])}}),RA=g(function t(e,n,i,o,r){v(this,t),this.offsetX=i,this.offsetY=o,this.panelClass=r,this.originX=e.originX,this.originY=e.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY}),NA=g(function t(e,n){v(this,t),this.connectionPair=e,this.scrollableViewProperties=n}),LA=function(){var t=function(){return g(function t(e){v(this,t),this._attachedOverlays=[],this._document=e},[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(t){this.remove(t),this._attachedOverlays.push(t)}},{key:"remove",value:function(t){var 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)(s.LFG(f))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(f))},token:t,providedIn:"root"}),t}(),DA=function(){var t=function(t){function e(t){var n;return v(this,e),(n=y(this,e,[t]))._keydownListener=function(t){for(var e=n._attachedOverlays,i=e.length-1;i>-1;
1i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}},n}return b(e,t),g(e,[{key:"add",value:function(t){a(e,"add",this,3)([t]),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}])}(LA);return t.\u0275fac=function(e){return new(e||t)(s.LFG(f))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(f))},token:t,providedIn:"root"}),t}(),FA=function(){var t=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[t]))._platform=n,i._cursorStyleIsSet=!1,i._pointerDownListener=function(t){i._pointerDownEventTarget=rT(t)},i._clickListener=function(t){var e=rT(t),n="click"===t.type&&i._pointerDownEventTarget?i._pointerDownEventTarget:e;i._pointerDownEventTarget=null;for(var o=i._attachedOverlays.slice(),r=o.length-1;r>-1;r--){var a=o[r];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(e)||a.overlayElement.contains(n))break;a._outsidePointerEvents.next(t)}}},i}return b(e,t),g(e,[{key:"add",value:function(t){if(a(e,"add",this,3)([t]),!this._isAttached){var n=this._document.body;n.addEventListener("pointerdown",this._pointerDownListener,!0),n.addEventListener("click",this._clickListener,!0),n.addEventListener("auxclick",this._clickListener,!0),n.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var 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}}}])}(LA);return t.\u0275fac=function(e){return new(e||t)(s.LFG(f),s.LFG($k))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(f),s.LFG($k))},token:t,providedIn:"root"}),t}(),UA=function(){var t=function(){return g(function t(e,n){v(this,t),this._platform=n,this._document=e},[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t="cdk-overlay-container";if(this._platform.isBrowser||aT())for(var e=this._document.querySelectorAll(".".concat(t,'[platform="server"], .').concat(t,'[platform="test"]')),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);var i=this._document.createElement("div");i.classList.add(t),aT()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(f),s.LFG($k))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(f),s.LFG($k))},token:t,providedIn:"root"}),t}(),ZA=function(){return g(function t(e,n,i,o,r,a,s,c,u){var l=this;v(this,t),this._portalOutlet=e,this._host=n,this._pane=i,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=c,this._outsideClickDispatcher=u,this._backdropElement=null,this._backdropClick=new Ee.xQ,this._attachments=new Ee.xQ,this._detachments=new Ee.xQ,this._locationChanges=je.w.EMPTY,this._backdropClickHandler=function(t){return l._backdropClick.next(t)},this._keydownEvents=new Ee.xQ,this._outsidePointerEvents=new Ee.xQ,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy},[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(t){var e=this,n=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(We(1)).subscribe(function(){e.hasAttached()&&e.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(function(){return e.dispose()})),this._outsideClickDispatcher.add(this),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}}},{key:"dispose",value:function(){var t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dis
1pose(),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()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}},{key:"setDirection",value:function(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}},{key:"addPanelClass",value:function(t){this._pane&&this._toggleClasses(this._pane,t,!0)}},{key:"removePanelClass",value:function(t){this._pane&&this._toggleClasses(this._pane,t,!1)}},{key:"getDirection",value:function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}},{key:"updateScrollStrategy",value:function(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var t=this._pane.style;t.width=Hk(this._config.width),t.height=Hk(this._config.height),t.minWidth=Hk(this._config.minWidth),t.minHeight=Hk(this._config.minHeight),t.maxWidth=Hk(this._config.maxWidth),t.maxHeight=Hk(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(t){this._pane.style.pointerEvents=t?"":"none"}},{key:"_attachBackdrop",value:function(){var t=this,e="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(function(){requestAnimationFrame(function(){t._backdropElement&&t._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var t=this,e=this._backdropElement;if(e){var n,i=function(){e&&(e.removeEventListener("click",t._backdropClickHandler),e.removeEventListener("transitionend",i),t._disposeBackdrop(e)),t._config.backdropClass&&t._toggleClasses(e,t._config.backdropClass,!1),clearTimeout(n)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(i,500)})}}},{key:"_toggleClasses",value:function(t,e,n){var i=t.classList;Bk(e).forEach(function(t){t&&(n?i.add(t):i.remove(t))})}},{key:"_detachContentWhenStable",value:function(){var t=this;this._ngZone.runOutsideAngular(function(){var e=t._ngZone.onStable.pipe(DC((0,Ie.T)(t._attachments,t._detachments))).subscribe(function(){(!t._pane||!t._host||0===t._pane.children.length)&&(t._pane&&t._config.panelClass&&t._toggleClasses(t._pane,t._config.panelClass,!1),t._host&&t._host.parentElement&&(t._previousHostParent=t._host.parentElement,t._previousHostParent.removeChild(t._host)),e.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}},{key:"_disposeBackdrop",value:function(t){t&&(t.parentNode&&t.parentNode.removeChild(t),this._backdropElement===t&&(this._backdropElement=null))}}])}(),qA="cdk-overlay-connected-position-bounding-box",jA=/([A-Za-z%]+)$/,VA=function(){return g(function t(e,n,i,o,r){v(this,t),this._viewportRuler
1=n,this._document=i,this._platform=o,this._overlayContainer=r,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 Ee.xQ,this._resizeSubscription=je.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)},[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(t){var e=this;this._validatePositions(),t.hostElement.classList.add(qA),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(function(){e._isInitialRender=!0,e.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var t,e,n=this._originRect,i=this._overlayRect,o=this._viewportRect,r=[],a=h(this._preferredPositions);try{for(a.s();!(e=a.n()).done;){var s=e.value,c=this._getOriginPoint(n,s),u=this._getOverlayPoint(c,i,s),l=this._getOverlayFit(u,i,o,s);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(l,u,o)?r.push({position:s,origin:c,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!t||t.overlayFit.visibleArea<l.visibleArea)&&(t={overlayFit:l,overlayPoint:u,originPoint:c,position:s,overlayRect:i})}}catch(y){a.e(y)}finally{a.f()}if(r.length){var f,d=null,p=-1,g=h(r);try{for(g.s();!(f=g.n()).done;){var m=f.value,v=m.boundingBoxRect.width*m.boundingBoxRect.height*(m.position.weight||1);v>p&&(p=v,d=m)}}catch(y){g.e(y)}finally{g.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&zA(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(qA),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,o=this._isRtl()?t.left:t.right;n="start"==e.originX?i:o}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,n){var 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}}},{key:"_getOverlayFit",value:function(t,e,n,i){var o=BA(e),r=t.x,a=t.y,s=this._getOffset(i,"x"),c=this._getOffset(i,"y");s&&(r+=s),c&&(a+=c);var u=0-a,l=a+o.height-n.height,h=this._subtractOverflows(o.width,0-r,r+o.width-n.width),f=this._subtractOverflows(o.height,u,l),d=h*f;return{visibleArea:d,isCompletelyWithinViewport:o.width*o.height===d,fitsInViewportVertically:f===o.height,fitsInViewportHorizontally:h==o.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,o=n.right-e.x,r=GA(this._overlayRef.getConfig().minHeight),a=GA(this._overlayRef.getConfig().minWidth),s=t.fitsInViewportHorizontally||null!=a&&a<=o;return(t.fitsInViewportVertically||null!=r&&r<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var i,o,r=BA(e),a=this._viewportRect,s=Math.max(t.x+r.width-a.width,0),c=Math.max(t.y+r.height-a.height,0),u=Math.max(a.top-n.top-t.y,0),l=Math.max(a.left-n.left-t.x,0);return i=r.width<=a.width?l||-s:t.x<this._viewportMargin?a.left-n.left-t.x:0,o=r.height<=a.height?u||-c:t.y<this._viewportMargin?a.top-n.top-t.y:0,this._previousPushAmount={x:i,y:o},{x:t.x+i,y:t.y+o}}},{key:"_applyPosition",value:function(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){var n=this._getScrollVisibility(),i=new NA(t,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(t){if(this._transformOriginSelector){var e,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=t.overlayY;e="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var o=0;o<n.length;o++)n[o].style.transformOrigin="".concat(e," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(t,e){var n,i,o,r,a,s,c=this._viewportRect,u=this._isRtl();if("top"===e.overlayY)i=t.y,n=c.height-i+this._viewportMargin;else if("bottom"===e.overlayY)o=c.height-t.y+2*this._viewportMargin,n=c.height-o+this._viewportMargin;else{var l=Math.min(c.bottom-t.y+c.top,t.y),h=this._lastBoundingBoxSize.height;n=2*l,i=t.y-l,n>h&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/2)}
1if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=c.width-t.x+this._viewportMargin,r=t.x-this._viewportMargin;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)a=t.x,r=c.right-t.x;else{var f=Math.min(c.right-t.x+c.left,t.x),d=this._lastBoundingBoxSize.width;r=2*f,a=t.x-f,r>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-d/2)}return{top:i,left:a,bottom:o,right:s,width:r,height:n}}},{key:"_setBoundingBoxStyles",value:function(t,e){var 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));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var o=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=Hk(n.height),i.top=Hk(n.top),i.bottom=Hk(n.bottom),i.width=Hk(n.width),i.left=Hk(n.left),i.right=Hk(n.right),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",o&&(i.maxHeight=Hk(o)),r&&(i.maxWidth=Hk(r))}this._lastBoundingBoxSize=n,zA(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){zA(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){zA(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={},i=this._hasExactPosition(),o=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();zA(n,this._getExactOverlayY(e,t,a)),zA(n,this._getExactOverlayX(e,t,a))}else n.position="static";var s="",c=this._getOffset(e,"x"),u=this._getOffset(e,"y");c&&(s+="translateX(".concat(c,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),r.maxHeight&&(i?n.maxHeight=Hk(r.maxHeight):o&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=Hk(r.maxWidth):o&&(n.maxWidth="")),zA(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var i={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n));var 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=Hk(o.y),i}},{key:"_getExactOverlayX",value:function(t,e,n){var i={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"right"===(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":i.left=Hk(o.x),i}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:SA(t,n),isOriginOutsideView:TA(t,n),isOverlayClipped:SA(e,n),isOverlayOutsideView:TA(e,n)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return n.reduce(function(t,e){return t-Math.max(e,0)},t)}},{key:"_getNarrowedViewportRect",value:function(){var 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}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(t){var e=this;this._pane&&Bk(t).forEach(function(t){""!==t&&-1===e._appliedPanelClasses.indexOf(t)&&(e._appliedPanelClasses.push(t),e._pane.classList.add(t))})}},{key:"_clearPanelClasses",value:function(){var t=this;
1this._pane&&(this._appliedPanelClasses.forEach(function(e){t._pane.classList.remove(e)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();var 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 zA(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function GA(t){if("number"!=typeof t&&null!=t){var e=i(t.split(jA),2),n=e[0],o=e[1];return o&&"px"!==o?null:parseFloat(n)}return t||null}function BA(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)}}var HA=function(){return g(function t(e,n,i,o,r,a,s){v(this,t),this._preferredPositions=[],this._positionStrategy=new VA(i,o,r,a,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,n),this.onPositionChange=this._positionStrategy.positionChanges},[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(t){this._positionStrategy.withScrollableContainers(t)}},{key:"withFallbackPosition",value:function(t,e,n,i){var o=new RA(t,e,n,i);return this._preferredPositions.push(o),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}},{key:"withOffsetX",value:function(t){return this._positionStrategy.withDefaultOffsetX(t),this}},{key:"withOffsetY",value:function(t){return this._positionStrategy.withDefaultOffsetY(t),this}},{key:"withLockedPosition",value:function(t){return this._positionStrategy.withLockedPosition(t),this}},{key:"withPositions",value:function(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(t){return this._positionStrategy.setOrigin(t),this}}])}(),YA="cdk-global-overlay-wrapper",QA=function(){return g(function t(){v(this,t),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""},[{key:"attach",value:function(t){var 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(YA),this._isDisposed=!1}},{key:"top",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,o=n.height,r=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center"
1:"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}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(YA),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}])}(),JA=function(){var t=function(){return g(function t(e,n,i,o){v(this,t),this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=o},[{key:"global",value:function(){return new QA}},{key:"connectedTo",value:function(t,e,n){return new HA(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new VA(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(dA),s.LFG(f),s.LFG($k),s.LFG(UA))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(dA),s.LFG(f),s.LFG($k),s.LFG(UA))},token:t,providedIn:"root"}),t}(),WA=0,KA=function(){var t=function(){return g(function t(e,n,i,o,r,a,s,c,u,l,h){v(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=o,this._keyboardDispatcher=r,this._injector=a,this._ngZone=s,this._document=c,this._directionality=u,this._location=l,this._outsideClickDispatcher=h},[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),o=new IA(t);return o.direction=o.direction||this._directionality.value,new ZA(i,e,n,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-"+WA++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new CA(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(AA),s.LFG(UA),s.LFG(s._Vd),s.LFG(JA),s.LFG(DA),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(f),s.LFG(VT),s.LFG(I),s.LFG(FA))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),$A={provide:new s.OlP("cdk-connected-overlay-scroll-strategy"),deps:[KA],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},XA=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[KA,$A],imports:[[zT,wA,gA],gA]}),t}();function tI(t,e){}var eI=g(function t(){v(this,t),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}),nI={dialogContainer:xv("dialogContainer",[Mv("void, exit",Pv({opacity:0,transform:"scale(0.7)"})),Mv("enter",Pv({transform:"none"})),kv("* => enter",wv("150ms cubic-bezier(0, 0, 0.2, 1)",Pv({transform:"none",opacity:1}))),kv("* => void, * => exit",wv("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Pv({opacity:0}
1)))])},iI=function(){var t=function(t){function e(t,n,i,o,r,a){var c;return v(this,e),(c=y(this,e))._elementRef=t,c._focusTrapFactory=n,c._changeDetectorRef=i,c._config=r,c._focusMonitor=a,c._animationStateChanged=new s.vpe,c._elementFocusedBeforeDialogWasOpened=null,c._closeInteractionType=null,c.attachDomPortal=function(t){return c._portalOutlet.hasAttached(),c._portalOutlet.attachDomPortal(t)},c._ariaLabelledBy=r.ariaLabelledBy||null,c._document=o,c}return b(e,t),g(e,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=oT(),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()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=oT())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=oT();return t===e||t.contains(e)}}])}(bA);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(MT),s.Y36(s.sBO),s.Y36(f,8),s.Y36(eI),s.Y36(LT))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){var n;(1&t&&s.Gf(xA,7),2&t)&&(s.iGM(n=s.CRH())&&(e._portalOutlet=n.first))},features:[s.qOj]}),t}(),oI=function(){var t,e=function(t){function e(){var t;return v(this,e),(t=y(this,e,arguments))._state="enter",t}return b(e,t),g(e,[{key:"_onAnimationDone",value:function(t){var e=t.toState,n=t.totalTime;"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(t){var e=t.toState,n=t.totalTime;"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:n}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}])}(iI);return e.\u0275fac=function(n){return(t||(t=s.n5z(e)))(n||e)},e.\u0275cmp=s.Xpm({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(s.Ikx("id",e._id),s.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.d8E("@dialogContainer",e._state))},features:[s.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.YNc(0,tI,0,0,"ng-template",0)},directives:[xA],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:[nI.dialogContainer]}}),e}(),rI=0,aI=function(){return g(function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+rI++;v(this,t),this._overlayRef=e,this._containerInstance=n,this.id=o,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Ee.xQ,this._afterClosed=new Ee.xQ,this._beforeClosed=new Ee.xQ,this._state=0,n._id=o,n._animationStateChanged.pipe(Bt(function(t){return"opened"===t.state}),We(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(Bt(function(t){return"closed"===t.state}),We(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),e.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),e.keydownEvents().pipe(Bt(function(t){return 27===t.keyCode&&!i.disableClose&&!Zk(t)})).subscribe(function(t){t.preventDefault(),sI(i,"keyboard")}),e.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():sI(i,"mouse")})},[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Bt(function(t){return"closing"===t.state}),We(1)).subscribe(function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout(function(){return e._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var 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}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}])}();function sI(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}var cI=new s.OlP("MatDialogData"),uI=new s.OlP("mat-dialog-default-options"),lI=new s.OlP("mat-dialog-scroll-strategy"),hI={provide:lI,deps:[KA],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},fI=function(){var t=function(){return g(function t(e,n,i,o,r,a,s,c,u){var l=this;v(this,t),this._overlay=e,this._injector=n,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=r,this._dialogRefConstructor=s,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ee.xQ,this._afterOpenedAtThisLevel=new Ee.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=ix(function(){return l.openDialogs.length?l._getAfterAllClosed():l._getAfterAllClosed().pipe(wn(void 0))}),this._scrollStrategy=a},[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(t,e){var n=this;e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new eI),e.id&&this.getDialogById(e.id);var i=this._createOverlay(e),o=this._attachDialogContainer(i,e),r=this._attachDialogContent(t,o,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(function(){return n._removeOpenDialog(r)}),this.afterOpened.next(r),o._initializeWithAttachedContent(),r}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find(function(e){return e.id===t})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new IA({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}},{key:"_attachDialogContainer",value:function(t,e){var n=s.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:eI,useValue:e}]}),i=new vA(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}},{key:"_attachDialogContent",value:function(t,e,n,i){var o=new this._dialogRefConstructor(n,e,i.id);if(t instanceof s.Rgc)e.attachTemplatePortal(new yA(t,null,{$implicit:i.data,dialogRef:o}));else{var r=this._createInjector(i,o,e),a=e.attachComponentPortal(new vA(t,i.viewContainerRef,r));o.componentInstance=a.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}},{key:"_createInjector",value:function(t,e,n){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,o=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return t.direction&&(!i||!i.get(VT,null,s.XFs.Optional))&&o.push({provide:VT,useValue:{value:t.direction,change:(0,qt.of)()}}),s.zs3.create({parent:i||this._injector,providers:o})}},{key:"_removeOpenDialog",value:function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEac
1h(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var 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"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(KA),s.Y36(s.zs3),s.Y36(void 0),s.Y36(void 0),s.Y36(UA),s.Y36(void 0),s.Y36(s.DyG),s.Y36(s.DyG),s.Y36(s.OlP))},t.\u0275dir=s.lG2({type:t}),t}(),dI=function(){var t=function(t){function e(t,n,i,o,r,a,s){return v(this,e),y(this,e,[t,n,o,a,s,r,aI,oI,cI])}return b(e,t),g(e)}(fI);return t.\u0275fac=function(e){return new(e||t)(s.LFG(KA),s.LFG(s.zs3),s.LFG(I,8),s.LFG(uI,8),s.LFG(lI),s.LFG(t,12),s.LFG(UA))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),pI=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[dI,hI],imports:[[XA,wA,WT],WT]}),t}(),gI=function(){var t=function(){return g(function t(){v(this,t)},[{key:"ngOnInit",value:function(){}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.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&&(s.TgZ(0,"div",0),s._UZ(1,"div",1),s.qZA())},styles:[""]}),t}();function mI(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",24),s._uU(2," Please enter your email "),s.BQk())}function vI(t,e){1&t&&(s._UZ(0,"mat-icon",24),s._uU(1," Incorrect email format "))}function yI(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s.YNc(1,mI,3,0,"ng-container",5),s.YNc(2,vI,2,0,"ng-template",null,23,s.W1O),s.qZA()),2&t){var n=s.MAs(3),i=s.oxw(2);s.xp6(1),s.Q6J("ngIf",i.isEmptyControl(i.newEmail))("ngIfElse",n)}}function _I(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",24),s._uU(2," Please enter your current password "),s.BQk())}function bI(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s.YNc(1,_I,3,0,"ng-container",15),s.qZA()),2&t){var n=s.oxw(2);s.xp6(1),s.Q6J("ngIf",n.isEmptyControl(n.password))}}function CI(t,e){if(1&t&&(s.TgZ(0,"button",25),s._uU(1," Change email "),s.qZA()),2&t){var n=s.oxw(2);s.Q6J("disabled",n.loading||n.formGroup.invalid)}}function xI(t,e){1&t&&s._UZ(0,"screen-loading")}function wI(t,e){if(1&t){var n=s.EpF();s.ynx(0),s.TgZ(1,"p",7),s._uU(2," You can only change your email once every 7 days "),s.qZA(),s.TgZ(3,"form",8),s.NdJ("ngSubmit",function(){return s.CHM(n),s.oxw().submit()}),s.TgZ(4,"div",9),s.TgZ(5,"div",10),s.TgZ(6,"span"),s._uU(7,"New Email"),s.qZA(),s.qZA(),s.TgZ(8,"mat-form-field",11),s._UZ(9,"input",12),s._UZ(10,"mat-icon",13),s.qZA(),s.TgZ(11,"div",14),s.YNc(12,yI,4,2,"mat-error",15),s.qZA(),s.qZA(),s.TgZ(13,"div",9),s.TgZ(14,"div",10),s.TgZ(15,"span"),s._uU(16,"Current Password"),s.qZA(),s.qZA(),s.TgZ(17,"mat-form-field",16),s._UZ(18,"input",17),s.TgZ(19,"span",18),s.NdJ("click",function(){s.CHM(n);var t=s.oxw();return t.hide=!t.hide}),s._UZ(20,"mat-icon",19),s.qZA(),s.qZA(),s.TgZ(21,"div",14),s.YNc(22,bI,2,1,"mat-error",15),s.qZA(),s.qZA(),s.qZA(),s.TgZ(23,"div",20),s.YNc(24,CI,2,1,"button",21),s.YNc(25,xI,1,0,"ng-template",null,22,s.W1O),s.qZA(),s.BQk()}if(2&t){var i=s.MAs(26),o=s.oxw();s.xp6(3),s.Q6J("formGroup",o.formGroup),s.xp6(9),s.Q6J("ngIf",o.newEmail.invalid&&(o.newEmail.touched||o.newEmail.dirty)),s.xp6(6),s.Q6J("type",o.hide?"password":"text"),s.xp6(1),s.uIk("aria-pressed",o.hide),s.xp6(1),s.s9C("svgIcon",o.hide?"lockEye":"openEye"),s.xp6(2),s.Q6J("ngIf",o.password.invalid&&(o.password.touched||o.password.dirty)),s.xp6(2),s.Q6J("ngIf",!o.loading)("ngIfElse",i)}}function OI(t,e){1&t&&s._UZ(0,"screen-loading")}function PI(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"p",26),s._uU(1),s.qZA(),s.TgZ(2,"p",27),s._uU(3,"A backup email has been sent out to your previous email address "),s.qZA(),s.TgZ(4,"div",20),s.TgZ(5,"button",28),s.NdJ("
1click",function(){return s.CHM(n),s.oxw().isChangedEmail()}),s._uU(6," Ok "),s.qZA(),s.YNc(7,OI,1,0,"ng-template",null,22,s.W1O),s.qZA()}if(2&t){var i=s.oxw();s.xp6(1),s.hij("Email verification has been sent to ",i.newEmail.value," ")}}var MI=function(){var t=function(){return g(function t(e,n,i,o,r,a){v(this,t),this._formBuilder=e,this.auth=n,this.toastr=i,this.appLimit=o,this.router=r,this.dialogRef=a,this.loading=!1,this.hide=!0,this.issuccsess=!1,this.formGroup=this._formBuilder.group({new_email:[null,[wb.required,wb.email]],password:[null,wb.required]})},[{key:"password",get:function(){return this.formGroup.get("password")}},{key:"newEmail",get:function(){return this.formGroup.get("new_email")}},{key:"submit",value:function(){var t=this;if(console.log("Submitting form!"),this.auth.user.email.toLowerCase()!==this.newEmail.value.toLowerCase()){var e=this.auth.user.email;console.log("Old email",e),this.loading=!0,this.appLimit.MA_CHANGE_EMAIL_LIMIT.pipe(We(1),Fe(function(e){return e.valid()?(console.log("limit valid"),t.auth.reauthenticateWithCredential(t.password.value)):(t.toastr.error("You can only change your email address once every 7 days"),t.loading=!1,cA)}),Fe(function(){return t.auth.updateEmail(t.newEmail.value)}),Fe(function(){return t.auth.reauthenticateWithCredential(t.password.value,t.newEmail.value)}),Fe(function(){return t.auth.sendVerificationMail()}),Fe(function(){return t.appLimit.setChangeEmailLimit()}),Fe(function(){return t.auth.trackEmailChange(e,t.newEmail.value)}),ZC(function(){t.loading=!1})).subscribe(function(e){return t.issuccsess=!0,t.loading=!1,localStorage.setItem("emailChanged","true"),t.router.navigate(["auth","verify"])},function(e){"auth/wrong-password"===(console.log(e),e.code)?t.toastr.error("Wrong password. Please enter the account's most recent password."):t.toastr.error(nk.Parse(e.code))})}else this.toastr.error("Please use a different email, this email is the same associated to your current account")}},{key:"isEmptyControl",value:function(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}},{key:"isMenuOpen",value:function(){this.dialogRef.close()}},{key:"isChangedEmail",value:function(){console.log("The dialog change email"),this.dialogRef.close(),location.reload()}},{key:"ngOnInit",value:function(){}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(NC),s.Y36(ik),s.Y36(Ak),s.Y36(uA),s.Y36(VO),s.Y36(aI))},t.\u0275cmp=s.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&&(s.TgZ(0,"div",0),s.TgZ(1,"span",1),s.NdJ("click",function(){return e.isMenuOpen()}),s._UZ(2,"mat-icon",2),s.qZA(),s.qZA(),s.TgZ(3,"div",3),s._UZ(4,"mat-icon",4),s.YNc(5,wI,27,8,"ng-container",5),s.YNc(6,PI,9,1,"ng-template",null,6,s.W1O),s.qZA()),2&t){var n=s.MAs(7);s.xp6(5),s.Q6J("ngIf",!e.issuccsess)("ngIfElse",n)}},directives:[FS,G,OC,Hb,TC,bE,LE,vb,Bb,EC,gE,sE,gI],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 kI(t,e){return function(n){var 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 TI(t){return function(e){return void 0!==t&&t.includes(e.value)?null:{providedValueNotIncludedInOptions:!0}}}var SI=function(){var t=function(){return g(function t(e){v(this,t),this._http=e},[{key:"getTrusts",value:function(){return this._http.get("https://us-central1-medics-academy-internal-db.cloudfunctions.net/apiHandler/deaneries").pipe((0,Qt.U)(function(t){return t.data.deaneries}),(0,Qt.U)(function(t){var e,n=t.map(function(t){return t.trusts});return(e=[]).concat.apply(e,u(n))}))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(ge))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),EI=r(3098),AI=function(){return g(function t(e,n){v(this,t),this.delay=e,this.scheduler
1=n},[{key:"call",value:function(t,e){return e.subscribe(new II(t,this.delay,this.scheduler))}}])}(),II=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e,[t])).delay=n,o.scheduler=i,o.queue=[],o.active=!1,o.errored=!1,o}return b(e,t),g(e,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,n=new RI(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(EI.P.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(EI.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,n=e.queue,i=t.scheduler,o=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(o);if(n.length>0){var r=Math.max(0,n[0].time-i.now());this.schedule(t,r)}else this.unsubscribe(),e.active=!1}}])}(Gt.L),RI=g(function t(e,n){v(this,t),this.time=e,this.notification=n}),NI=["panel"];function LI(t,e){if(1&t&&(s.TgZ(0,"div",0,1),s.Hsn(2),s.qZA()),2&t){var n=e.id,i=s.oxw();s.Q6J("id",i.id)("ngClass",i._classList),s.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(n))}}var DI=["*"],FI=0,UI=g(function t(e,n){v(this,t),this.source=e,this.option=n}),ZI=XT(g(function t(){v(this,t)})),qI=new s.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),jI=function(){var t=function(t){function e(t,n,i,o){var r;return v(this,e),(r=y(this,e))._changeDetectorRef=t,r._elementRef=n,r._activeOptionChanges=je.w.EMPTY,r.showPanel=!1,r._isOpen=!1,r.displayWith=null,r.optionSelected=new s.vpe,r.opened=new s.vpe,r.closed=new s.vpe,r.optionActivated=new s.vpe,r._classList={},r.id="mat-autocomplete-"+FI++,r.inertGroups=(null==o?void 0:o.SAFARI)||!1,r._autoActiveFirstOption=!!i.autoActiveFirstOption,r}return b(e,t),g(e,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=zk(t)}},{key:"classList",set:function(t){this._classList=t&&t.length?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=t){var i,o=Array.isArray(t)?t:"".concat(t).split(e),r=h(o);try{for(r.s();!(i=r.n()).done;){var a=i.value,s="".concat(a).trim();s&&n.push(s)}}catch(c){r.e(c)}finally{r.f()}}return n}(t).reduce(function(t,e){return t[e]=!0,t},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new CT(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(e){t.isOpen&&t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(t){var e=new UI(this,t);this.optionSelected.emit(e)}},{key:"_getPanelAriaLabelledby",value:function(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_setVisibilityClasses",value:function(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}])}(ZI);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(qI),s.Y36($k))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){var n;(1&t&&(s.Gf(s.Rgc,7),s.Gf(NI,5)),2&t)&&(s.iGM(n=s.CRH())&&(e.template=n.first),s.iGM(n=s.CRH())&&(e.panel=n.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:[s.qOj]}),t}(),VI=function(){var t,e=function(t){function e(){var t;return v(this,e),(t=y(this,e,arguments))._visibleClass="mat-autocomplete-visible",t._hiddenClass="mat-autocomplete-hidden",t}return b(e,t),g(e)}(jI);return e.\u0275fac=function(n){return(t||(t=s.n5z(e)))(n||e)},e.\u0275cmp=s.Xpm({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){var i;(1&t&&(s.Suo(n,mS,5),s.Suo(n,bS,5)),2&t)&&(s.iGM(i=s.CRH())&&(e.optionGroups=i),s.iGM(i=s.CRH())&&(e.options=i))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[s._Bn([{provide:fS,useExisting:e}]),s.qOj],ngContentSelectors:DI,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,LI,3,4,"ng-template"))},directives:[q],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}),e}(),zI=new s.OlP("mat-autocomplete-scroll-strategy"),GI={provide:zI,deps:[KA],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},BI={provide:pb,useExisting:(0,s.Gpc)(function(){return YI}),multi:!0},HI=function(){var t=function(){return g(function t(e,n,i,o,r,a,s,c,l,h,f){var d=this;v(this,t),this._element=e,this._overlay=n,this._viewContainerRef
1=i,this._zone=o,this._changeDetectorRef=r,this._dir=s,this._formField=c,this._document=l,this._viewportRuler=h,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=je.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Ee.xQ,this._windowBlurHandler=function(){d._canOpenOnNextFocus=d._document.activeElement!==d._element.nativeElement||d.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=ix(function(){return d.autocomplete&&d.autocomplete.options?Ie.T.apply(void 0,u(d.autocomplete.options.map(function(t){return t.onSelectionChange}))):d._zone.onStable.pipe(We(1),Fe(function(){return d.optionSelections}))}),this._scrollStrategy=a},[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=zk(t)}},{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(function(){return e.addEventListener("blur",t._windowBlurHandler)})}},{key:"ngOnChanges",value:function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){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())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var t=this;return(0,Ie.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Bt(function(){return t._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Bt(function(){return t._overlayAttached})):(0,qt.of)()).pipe((0,Qt.U)(function(t){return t instanceof yS?t:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var t=this;return(0,Ie.T)(qS(this._document,"click"),qS(this._document,"auxclick"),qS(this._document,"touchend")).pipe(Bt(function(e){var n=rT(e),i=t._formField?t._formField._elementRef.nativeElement:null,o=t.connectedTo?t.connectedTo.elementRef.nativeElement:null;return t._overlayAttached&&n!==t._element.nativeElement&&(!i||!i.contains(n))&&(!o||!o.contains(n))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(n)}))}},{key:"writeValue",value:function(t){var e=this;Promise.resolve(null).then(function(){return e._setTriggerValue(t)})}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this._element.nativeElement.disabled=t}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;if(27===e&&!Zk(t)&&t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var 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)}}},{key:"_handleInput",value:function(t){var 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
1())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var t=this,e=this._zone.onStable.pipe(We(1)),n=this.autocomplete.options.changes.pipe((0,LC.b)(function(){return t._positionStrategy.reapplyLastPosition()}),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_n.P,n=function(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new AI(n,e))}}(0));return(0,Ie.T)(e,n).pipe(Fe(function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions}),We(1)).subscribe(function(e){return t._setValueAndClose(e)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}},{key:"_setValueAndClose",value:function(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()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach(function(e){e!==t&&e.selected&&e.deselect()})}},{key:"_attachOverlay",value:function(){var t,e=this,n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new yA(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,n.keydownEvents().subscribe(function(t){(27===t.keyCode&&!Zk(t)||38===t.keyCode&&Zk(t,"altKey"))&&(e._closeKeyEventStream.next(),e._resetActiveItem(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){e.panelOpen&&n&&n.updateSize({width:e._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var t;return new IA({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];e="above"===this.position?o:"below"===this.position?n:[].concat(n,o),t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"_scrollToOption",value:function(t){var e=this.autocomplete,n=function(t,e,n){if(n.length){for(var i=e.toArray(),o=n.toArray(),r=0,a=0;
1a<t+1;a++)i[a].group&&i[a].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){var i=e.options.toArray()[t];if(i){var o=i._getHostElement(),r=function(t,e,n,i){return t<n?t:t+e>n+i?Math.max(0,t-i+e):n}(o.offsetTop,o.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(r)}}}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(KA),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(zI),s.Y36(VT,8),s.Y36(_E,9),s.Y36(f,8),s.Y36(dA),s.Y36(qI,8))},t.\u0275dir=s.lG2({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[s.TTD]}),t}(),YI=function(){var t,e=function(t){function e(){var t;return v(this,e),(t=y(this,e,arguments))._aboveClass="mat-autocomplete-panel-above",t}return b(e,t),g(e)}(HI);return e.\u0275fac=function(n){return(t||(t=s.n5z(e)))(n||e)},e.\u0275dir=s.lG2({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&s.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&&s.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:[s._Bn([BI]),s.qOj]}),e}(),QI=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[GI],imports:[[XA,CS,WT,et],pA,CS,WT]}),t}();function JI(t,e){1&t&&(s.TgZ(0,"mat-error"),s._UZ(1,"mat-icon",40),s._uU(2," This field cannot be blank "),s.qZA())}function WI(t,e){1&t&&(s.TgZ(0,"mat-error"),s._UZ(1,"mat-icon",40),s._uU(2," This field cannot be blank "),s.qZA())}function KI(t,e){1&t&&(s.ynx(0),s._uU(1," Please enter a valid email address "),s.BQk())}function $I(t,e){1&t&&s._uU(0," Incorrect email format")}function XI(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s._UZ(1,"mat-icon",40),s.YNc(2,KI,2,0,"ng-container",41),s.YNc(3,$I,1,0,"ng-template",null,42,s.W1O),s.qZA()),2&t){var n=s.MAs(4),i=s.oxw(3);s.xp6(2),s.Q6J("ngIf",i.isEmptyControl(i.email))("ngIfElse",n)}}function tR(t,e){if(1&t&&(s.TgZ(0,"div",10),s.YNc(1,XI,5,2,"mat-error",11),s.qZA()),2&t){var n=s.oxw(2);s.xp6(1),s.Q6J("ngIf",n.email.invalid&&(n.email.touched||n.email.dirty))}}function eR(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"div",43),s.TgZ(1,"button",44),s.NdJ("click",function(){return s.CHM(n),s.oxw(2).openProfileChangeEmailDialog()}),s._uU(2," Change email "),s.qZA(),s.qZA()}if(2&t){var i=s.oxw(2);s.xp6(1),s.Q6J("disabled",!(null!=i.user&&i.user.thinkific_uid))}}function nR(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",40),s._uU(2," Please enter a password "),s.BQk())}function iR(t,e){1&t&&(s._UZ(0,"mat-icon",40),s._uU(1," Password must contain at least eight characters "))}function oR(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s.YNc(1,nR,3,0,"ng-container",41),s.YNc(2,iR,2,0,"ng-template",null,42,s.W1O),s.qZA()),2&t){var n=s.MAs(3),i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",i.isEmptyControl(i.password))("ngIfElse",n)}}function rR(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"div",45),s.TgZ(1,"div",5),s.TgZ(2,"div",6),s.TgZ(3,"span"),s._uU(4,"Password"),s.qZA(),s.qZA(),s.TgZ(5,"mat-form-field",7),s._UZ(6,"input",46),s.TgZ(7,"span",47),s.NdJ("click",function(){s.CHM(n);var t=s.oxw(2);return t.hide=!t.hide}),s._UZ(8,"mat-icon",48),s.qZA(),s.qZA(),s.TgZ(9,"div",10),s.YNc(10,oR,4,2,"mat-error",11),s.qZA(),s.qZA(),s.qZA()}if(2&t){var i=s.oxw(2);s.Q6J("ngClass",i.isSignup?"sigField form-field--with-icon":"profField"),s.xp6(6),s.Q6J("type",i.hide?"password":"text"),s.xp6(1),s.uIk("aria-pressed",i.hide),s.xp6(1),s.s9C("svgIcon",i.hide?"lockEye":"openEye"),s.xp6(2),s.Q6J("ngIf",i.password.invalid&&(i.password.dirty||i.password.touched))}}function aR(t,e){if(1&t&&(s.TgZ(0,"mat-option",53),s._uU(1),s.qZA()),2&t){var n=e.$implicit;s.Q6J("value",n),s.xp6(1),s.hij(" ",n," ")}}function sR(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"mat-form-field",7),s._UZ(1,"input",49),s.TgZ(2,"mat-autocomplete",50,51),s.NdJ("optionSelected",function(t){return s.CHM(n),s.oxw(2).selectProfession(t)}),s.YNc(4,aR,2,2,"mat-option",52),s.ALo(5,"async"),s.qZA(),s._UZ(6,"mat-icon",38),s.qZA()}if(2&t){var i=s.MAs(3),o=s.oxw(2);s.xp6(1),s.Q6J("matAutocomplete",i),s.xp6(3),s.Q6J("ngForOf",s.lcZ(5,2,o.filteredProfessions$))}}function cR(t,e){1&t&&(s.ynx(0),s._uU(1,"This field cannot be blank. Please select an option "),s.BQk())}function uR(t,e){1&t&&(s.ynx(0),s._uU(1,"Please enter your profession "),s.BQk())}function lR(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s._UZ(1,"mat-icon",40),s.YNc(2,cR,2,0,"ng-container",11),s.YNc(3,uR,2,0,"ng-container",11),s.qZA()),2&t){var n=s.oxw(2);s.xp6(2),s.Q6J("ngIf",!n.customProfession.value),s.xp6(1),s.Q6J("ngIf",n.customProfession.value)}}function hR(t,e){1&t&&(s.TgZ(0,"mat-form-field",7),s._UZ(1,"input",54),s.qZA())}function fR(t,e){if(1&t&&(s.TgZ(0,"mat-option",53),s._uU(1),s.qZA()),2&t){var n=e.$implicit;s.Q6J("value",n),s.xp6(1),s.hij(" ",n," ")}}function dR(t,e){if(1&t&&(s.TgZ(0,"mat-option",53),s._uU(1),s.qZA()),2&t){var n=e.$implicit;s.Q6J("value",n),s.xp6(1),s.hij(" ",n," ")}}function pR(t,e){if(1&t&&(s._UZ(0,"span",60),s.YNc(1,dR,2,2,"mat-option",52),s.ALo(2,"async")),2&t){var n=s.oxw(5);s.xp6(1),s.Q6J("ngForOf",s.lcZ(2,1,n.doctorGradesList$))}}function gR(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"mat-form-field",7),s._UZ(1,"input",58),s.TgZ(2,"mat-autocomplete",50,59),s.NdJ("optionSelected",function(t){return s.CHM(n),s.oxw(4).selectGrade(t)}),s.YNc(4,fR,2,2,"mat-option",52),s.ALo(5,"async"),s.YNc(6,pR,3,3,"ng-template",37),s.qZA(),s._UZ(7,"mat-icon",38),s.qZA()}if(2&t){var i=s.MAs(3),o=s.oxw(4);s.xp6(1),s.Q6J("matAutocomplete",i),s.xp6(3),s.Q6J("ngForOf",s.lcZ(5,3,o.filteredDoctorGrades$)),s.xp6(2),s.Q6J("ngIf",o.grade.dirty&&!o.isEmptyControl(o.grade))}}function mR(t,e){1&t&&(s.TgZ(0,"mat-error",63),s._uU(1," This field cannot be blank. "),s.qZA())}function vR(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1," Please select from dropdown. "),s.qZA())}function yR(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"mat-icon",61),s.YNc(2,mR,2,0,"mat-error",62),s.YNc(3,vR,2,0,"mat-error",11),s.BQk()),2&t){var n=s.oxw(4);s.xp6(2),s.Q6J("ngIf",n.grade.errors.required),s.xp6(1),s.Q6J("ngIf",n.grade.errors.providedValueNotIncludedInOptions)}}function _R(t,e){if(1&t&&(s.ynx(0),s.YNc(1,gR,8,5,"mat-form-field",25),s.TgZ(2,"div",57),s.YNc(3,yR,4,2,"ng-container",11),s.qZA(),s.BQk()),2&t){s.oxw();var n=s.MAs(11),i=s.oxw(2);s.xp6(1),s.Q6J("ngIf",!i.customGrade.value)("ngIfElse",n),s.xp6(2),s.Q6J("ngIf",i.grade.invalid&&(i.grade.dirty||i.grade.touched))}}function bR(t,e){if(1&t&&(s.TgZ(0,"mat-option",53),s._uU(1),s.qZA()),2&t){var n=e.$implicit;s.Q6J("value",n),s.xp6(1),s.hij(" ",n," ")}}function CR(t,e){if(1&t&&(s.TgZ(0,"mat-option",53),s._uU(1),s.qZA()),2&t){var n=e.$implicit;s.Q6J("value",n),s.xp6(1),s.hij(" ",n," ")}}function xR(t,e){if(1&t&&(s._UZ(0,"span",60),s.YNc(1,CR,2,2,"mat-option",52),s.ALo(2,"async")),2&t){var n=s.oxw(5);s.xp6(1),s.Q6J("ngForOf",s.lcZ(2,1,n.studentGradesList$))}}function wR(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"mat-form-field",7),s._UZ(1,"input",58),s.TgZ(2,"mat-autocomplete",50,64),s.NdJ("optionSelected",function(t){return s.CHM(n),s.oxw(4).selectGrade(t)}),s.YNc(4,bR,2,2,"mat-option",52),s.ALo(5,"async"),s.YNc(6,xR,3,3,"ng-template",37),s.qZA(),s._UZ(7,"mat-icon",38),s.qZA()}if(2&t){var i=s.MAs(3),o=s.oxw(4);s.xp6(1),s.Q6J("matAutocomplete",i),s.xp6(3),s.Q6J("ngForOf",s.lcZ(5,3,o.filteredStudentGrades$)),s.xp6(2),s.Q6J("ngIf",o.grade.dirty&&!o.isEmptyControl(o.grade))}}function OR(t,e){1&t&&(s.TgZ(0,"mat-error",63),s._uU(1," This field cannot be blank. "),s.qZA())}function PR(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1," Please select from dropdown. "),s.qZA())}function MR(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"mat-icon",61),s.YNc(2,OR,2,0,"mat-error",62),s.YNc(3,PR,2,0,"mat-error",11),s.BQk()),2&t){var n=s.oxw(4);s.xp6(2),s.Q6J("ngIf",n.grade.errors.required),s.xp6(1),s.Q6J("ngIf",n.grade.errors.providedValueNotIncludedInOptions)}}function kR(t,e){if(1&t&&(s.ynx(0),s.YNc(1,wR,8,5,"mat-form-field",25),s.TgZ(2,"div",57),s.YNc(3,MR,4,2,"ng-container",11),s.qZA(),s.BQk()),2&t){s.oxw();var n=s.MAs(11),i=s.oxw(2);s.xp6(1),s.Q6J("ngIf",!i.customGrade.value)("ngIfElse",n),s.xp6(2),s.Q6J("ngIf",i.grade.invalid&&(i.grade.dirty||i.grade.touched))}}function TR(t,e){1&t&&(s.TgZ(0,"mat-form-field",7),s._UZ(1,"input",65),s.qZA())}var SR=function(t,e){return{"form-field--with-icon sigField":t,profField:e}};function ER(t,e){if(1&t&&(s.TgZ(0,"div",24),s.TgZ(1,"div",5),s.TgZ(2,"div",6),s.TgZ(3,"span"),s._uU(4,"Grade"),s.qZA(),s.qZA(),s.TgZ(5,"div",16),s.TgZ(6,"div",17),s.ynx(7),s.YNc(8,_R,4,3,"ng-container",11),s.YNc(9,kR,4,3,"ng-container",11),s.BQk(),s.qZA(),s.YNc(10,TR,2,0,"ng-template",null,55,s.W1O),s.TgZ(12,"div",27),s.TgZ(13,"mat-checkbox",56),s.TgZ(14,"mat-label"),s._uU(15,"Other"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t){var n=s.oxw(2);s.Q6J("ngClass",s.WLB(3,SR,n.isSignup,!n.isSignup)),s.xp6(8),s.Q6J("ngIf","Doctor"===n.profession.value),s.xp6(1),s.Q6J("ngIf","Medical student"===n.profession.value)}}function AR(t,e){if(1&t&&(s.TgZ(0,"mat-option",69),s._uU(1),s.qZA()),2&t){var n=e.$implicit;s.Q6J("value",n),s.xp6(1),s.hij(" ",n," ")}}function IR(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"mat-form-field",7),s._UZ(1,"input",66),s.TgZ(2,"mat-autocomplete",50,67),s.NdJ("optionSelected",function(t){return s.CHM(n),s.oxw(2).selectOrganisation(t)}),s.YNc(4,AR,2,2,"mat-option",68),s.ALo(5,"async"),s.qZA(),s._UZ(6,"mat-icon",38),s.qZA()}if(2&t){var i=s.MAs(3),o=s.oxw(2);s.xp6(1),s.Q6J("matAutocomplete",i),s.xp6(3),s.Q6J("ngForOf",s.lcZ(5,2,o.filteredOrganisations$))}}function RR(t,e){1&t&&(s.ynx(0),s._uU(1,"This field cannot be blank. Please select an option "),s.BQk())}function NR(t,e){1&t&&(s.ynx(0),s._uU(1,"Please enter your organisation's name "),s.BQk())}function LR(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s._UZ(1,"mat-icon",61),s.YNc(2,RR,2,0,"ng-container",11),s.YNc(3,NR,2,0,"ng-container",11),s.qZA()),2&t){var n=s.oxw(2);s.xp6(2),s.Q6J("ngIf",!n.orgNotFound.value),s.xp6(1),s.Q6J("ngIf",n.orgNotFound.value)}}function DR(t,e){1&t&&(s.TgZ(0,"mat-form-field",7),s._UZ(1,"input",70),s.qZA())}var FR=function(t){return{dashed:t}};function UR(t,e){if(1&t&&(s.TgZ(0,"mat-option",71),s._uU(1),s.qZA()),2&t){var n=e.$implicit;s.Q6J("value",n)("ngClass",s.VKq(3,FR,"United States of America"===n.name)),s.xp6(1),s.hij(" ",n.name," ")}}function ZR(t,e){if(1&t&&(s.TgZ(0,"mat-option",71),s._uU(1),s.qZA()),2&t){var n=e.$implicit;s.Q6J("value",n)("ngClass",s.VKq(3,FR,"United States of America"===n.name)),s.xp6(1),s.hij(" ",n.name," ")}}function qR(t,e){if(1&t&&(s._UZ(0,"span",60),s.YNc(1,ZR,2,5,"mat-option",36),s.ALo(2,"async")),2&t){var n=s.oxw(2);s.xp6(1),s.Q6J("ngForOf",s.lcZ(2,1,n.countriesList$))}}function jR(t,e){1&t&&(s.TgZ(0,"mat-error"),s._UZ(1,"mat-icon",40),s._uU(2," This field cannot be blank. Please select an option "),s.qZA())}function VR(t,e){if(1&t&&(s.TgZ(0,"mat-option",53),s._uU(1),s.qZA()),2&t){var n=e.$implicit;s.Q6J("value",n),s.xp6(1),s.hij(" ",n," ")}}function zR(t,e){if(1&t&&(s.TgZ(0,"mat-option",53),s._uU(1),s.qZA()),2&t){var n=e.$implicit;s.Q6J("value",n),s.xp6(1),s.hij(" ",n," ")}}function GR(t,e){if(1&t&&(s._UZ(0,"span",60),s.YNc(1,zR,2,2,"mat-option",52),s.ALo(2,"async")),2&t){var n=s.oxw(3);s.xp6(1),s.Q6J("ngForOf",s.lcZ(2,1,n.timeZoneList$))}}function BR(t,e){1&t&&(s.TgZ(0,"mat-error"),s._UZ(1,"mat-icon",40),s._uU(2," Please select from dropdown "),s.qZA())}function HR(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"div",32),s.TgZ(1,"div",5),s.TgZ(2,"div",6),s.TgZ(3,"span"),s._uU(4,"Timezone"),s.qZA(),s.qZA(),s.TgZ(5,"div",16),s.TgZ(6,"div",17),s.TgZ(7,"mat-form-field",7),s._UZ(8,"input",72),s.TgZ(9,"mat-autocomplete",50,73),s.NdJ("optionSelected",function(t){return s.CHM(n),s.oxw(2).selectTimeZone(t)}),s.YNc(11,VR,2,2,"mat-option",52),s.ALo(12,"async"),s.YNc(13,GR,3,3,"ng-template",37),s.qZA(),s._UZ(14,"mat-icon",38),s.qZA(),s.TgZ(15,"div",10),s.YNc(16,BR,3,0,"mat-error",11),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){var i=s.MAs(10),o=s.oxw(2);s.Q6J("ngClass",s.WLB(7,SR,o.isSignup,!o.isSignup)),s.xp6(8),s.Q6J("matAutocomplete",i),s.xp6(3),s.Q6J("ngForOf",s.lcZ(12,5,o.filteredTimeZone$)),s.xp6(2),s.Q6J("ngIf",o.timezone.dirty&&!o.isEmptyControl(o.timezone)),s.xp6(3),s.Q6J("ngIf",o.timezone.invalid)}}function YR(t,e){if(1&t&&(s.TgZ(0,"div",32),s.TgZ(1,"div",5),s.TgZ(2,"div",6),s.TgZ(3,"span"),s._uU(4,"Bio"),s.qZA(),s.qZA(),s.TgZ(5,"div",16),s.TgZ(6,"div",17),s.TgZ(7,"mat-form-field",7),s._UZ(8,"textarea",74),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t){var n=s.oxw(2);s.Q6J("ngClass",s.WLB(1,SR,n.isSignup,!n.isSignup))}}var QR=function(t){return{"form-field--with-icon":t}},JR=function(){return["Doctor","Medical student"]};function WR(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"form",2),s.NdJ("ngSubmit",function(){return s.CHM(n),s.oxw().submit()}),s.TgZ(1,"div",3),s.TgZ(2,"div",4),s.TgZ(3,"div",5),s.TgZ(4,"div",6),s.TgZ(5,"span"),s._uU(6,"First Name"),s.qZA(),s.qZA(),s.TgZ(7,"mat-form-field",7),s._UZ(8,"input",8),s._UZ(9,"mat-icon",9),s.qZA(),s.TgZ(10,"div",10),s.YNc(11,JI,3,0,"mat-error",11),s.qZA(),s.qZA(),s.qZA(),s.TgZ(12,"div",12),s.TgZ(13,"div",13),s.TgZ(14,"div",6),s.TgZ(15,"span"),s._uU(16,"Last Name"),s.qZA(),s.qZA(),s.TgZ(17,"mat-form-field",7),s._UZ(18,"input",14),s._UZ(19,"mat-icon",9),s.qZA(),s.TgZ(20,"div",10),s.YNc(21,WI,3,0,"mat-error",11),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(22,"div",15),s.TgZ(23,"div",5),s.TgZ(24,"div",6),s.TgZ(25,"span"),s._uU(26,"Email"),s.qZA(),s.qZA(),s.TgZ(27,"div",16),s.TgZ(28,"div",17),s.TgZ(29,"mat-form-field",18),s._UZ(30,"input",19),s._UZ(31,"mat-icon",20),s.qZA(),s.YNc(32,tR,2,1,"div",21),s.qZA(),s.YNc(33,eR,3,1,"div",22),s.qZA(),s.qZA(),s.qZA(),s.YNc(34,rR,11,5,"div",23),s.TgZ(35,"div",24),s.TgZ(36,"div",5),s.TgZ(37,"div",6),s.TgZ(38,"span"),s._uU(39,"Profession"),s.qZA(),s.qZA(),s.TgZ(40,"div",16),s.TgZ(41,"div",17),s.YNc(42,sR,7,4,"mat-form-field",25),s.TgZ(43,"div",10),s.YNc(44,lR,4,2,"mat-error",11),s.qZA(),s.qZA(),s.YNc(45,hR,2,0,"ng-template",null,26,s.W1O),s.TgZ(47,"div",27),s.TgZ(48,"mat-checkbox",28),s.NdJ("
1change",function(t){s.CHM(n);var e=s.oxw();return e.onCheckboxChange(e.profession,t,"profession")}),s.TgZ(49,"mat-label"),s._uU(50,"Other"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.YNc(51,ER,16,6,"div",29),s.TgZ(52,"div",24),s.TgZ(53,"div",5),s.TgZ(54,"div",6),s.TgZ(55,"span"),s._uU(56,"Organisation"),s.qZA(),s.qZA(),s.TgZ(57,"div",16),s.TgZ(58,"div",17),s.YNc(59,IR,7,4,"mat-form-field",25),s.TgZ(60,"div",10),s.YNc(61,LR,4,2,"mat-error",11),s.qZA(),s.qZA(),s.TgZ(62,"div",27),s.TgZ(63,"mat-checkbox",30),s.NdJ("change",function(t){s.CHM(n);var e=s.oxw();return e.onCheckboxChange(e.organisation,t,"organisation")}),s.TgZ(64,"mat-label"),s._uU(65,"Other"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.YNc(66,DR,2,0,"ng-template",null,31,s.W1O),s.qZA(),s.qZA(),s.TgZ(68,"div",32),s.TgZ(69,"div",5),s.TgZ(70,"div",6),s.TgZ(71,"span"),s._uU(72,"Country of Residence"),s.qZA(),s.qZA(),s.TgZ(73,"div",16),s.TgZ(74,"div",17),s.TgZ(75,"mat-form-field",7),s._UZ(76,"input",33),s.TgZ(77,"mat-autocomplete",34,35),s.YNc(79,UR,2,5,"mat-option",36),s.ALo(80,"async"),s.YNc(81,qR,3,3,"ng-template",37),s.qZA(),s._UZ(82,"mat-icon",38),s.qZA(),s.TgZ(83,"div",10),s.YNc(84,jR,3,0,"mat-error",11),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.YNc(85,HR,17,10,"div",39),s.YNc(86,YR,9,4,"div",39),s.qZA()}if(2&t){var i=s.MAs(46),o=s.MAs(67),r=s.MAs(78),a=s.oxw();s.Q6J("formGroup",a.formGroup),s.xp6(1),s.Q6J("ngClass",a.isSignup?"sigNameRow":"profNameRow"),s.xp6(1),s.Q6J("ngClass",s.VKq(29,QR,a.isSignup)),s.xp6(9),s.Q6J("ngIf",a.firstName.invalid&&(a.firstName.dirty||a.firstName.touched)),s.xp6(1),s.Q6J("ngClass",s.VKq(31,QR,a.isSignup)),s.xp6(9),s.Q6J("ngIf",a.lastName.invalid&&(a.lastName.dirty||a.lastName.touched)),s.xp6(1),s.Q6J("ngClass",a.isSignup?"sigMailField form-filed--with-icon":"profMailField"),s.xp6(10),s.Q6J("ngIf",a.isSignup),s.xp6(1),s.Q6J("ngIf",!a.isSignup),s.xp6(1),s.Q6J("ngIf",a.isSignup),s.xp6(1),s.Q6J("ngClass",s.WLB(33,SR,a.isSignup,!a.isSignup)),s.xp6(7),s.Q6J("ngIf",!a.customProfession.value)("ngIfElse",i),s.xp6(2),s.Q6J("ngIf",a.profession.invalid&&(a.profession.dirty||a.profession.touched)),s.xp6(7),s.Q6J("ngIf",s.DdM(36,JR).includes(a.profession.value)),s.xp6(1),s.Q6J("ngClass",s.WLB(37,SR,a.isSignup,!a.isSignup)),s.xp6(7),s.Q6J("ngIf",!a.orgNotFound.value)("ngIfElse",o),s.xp6(2),s.Q6J("ngIf",a.organisation.invalid&&(a.organisation.touched||a.organisation.dirty)),s.xp6(7),s.Q6J("ngClass",s.WLB(40,SR,a.isSignup,!a.isSignup)),s.xp6(8),s.Q6J("matAutocomplete",r),s.xp6(1),s.Q6J("displayWith",a.displayFn),s.xp6(2),s.Q6J("ngForOf",s.lcZ(80,27,a.filteredCountries$)),s.xp6(2),s.Q6J("ngIf",a.countryOfResidence.dirty),s.xp6(3),s.Q6J("ngIf",a.countryOfResidence.invalid&&(a.countryOfResidence.dirty||a.countryOfResidence.touched)),s.xp6(1),s.Q6J("ngIf",!a.isSignup),s.xp6(1),s.Q6J("ngIf",!a.isSignup)}}function KR(t,e){1&t&&(s.TgZ(0,"div",75),s.TgZ(1,"div",75),s._UZ(2,"div",76),s.qZA(),s.qZA())}var $R=function(){var t=function(){return g(function t(e,n,i,o,r){v(this,t),this._toastr=e,this._fb=n,this.authService=i,this._organization=o,this._dialog=r,this.loading=!1,this.hide=!0,this.isMedicalStudent=!1,this.TIMEZONES=HC,this.COUNTRIES=[].concat(VC,zC),this.DOCTOR_GRADES=GC,this.STUDENT_GRADES=BC,this.destroy$=new Ee.xQ,this.submitted=new s.vpe},[{key:"firstName",get:function(){return this.formGroup.get("first_name")}},{key:"lastName",get:function(){return this.formGroup.get("last_name")}},{key:"email",get:function(){return this.formGroup.get("email")}},{key:"password",get:function(){return this.formGroup.get("password")}},{key:"organisation",get:function(){return this.formGroup.get("organisation")}},{key:"orgNotFound",get:function(){return this.formGroup.get("has_custom_organisation")}},{key:"customProfession",get:function(){return this.formGroup.get("has_custom_profession")}},{key:"customOrganisation",get:function(){return this.formGroup.get("has_custom_organisation")}},{key:"customGrade",get:function(){return this.formGroup.get("has_custom_grade")}},{key:"profession",get:function(){return this.formGroup.get("profession")}},{key:"grade",get:function(){return this.formGroup.get("grade")}},{key:"bio",get:function(){return this.formGroup.get("bio")}},{key:"countryOfResidence",get:function(){return this.formGroup.get("country_of_residence")}},{key:"timezone",get:function(){return this.formGroup.get("timezone")}},{key:"isSignup",get:function(){return"create"===this.mode}},{key:"ngOnInit",value:function(){var t=this;this.formGroup=this.initFormGroup(),this.profession.valueChanges.pipe(wn("")).pipe((0,LC.b)(function(e){return t.isMedicalStudent="Medical student"===e})),this.authService.getOrganisations().pipe(DC(this.destroy$)).subscribe(function(e){t.organisationsList=u(e.docs.map(function(t){return t.data()}).map(function(t){return t.org_name}))}),this.authService.getProfessions().pipe(DC(this.destroy$)).subscribe(function(e){t.professionsList=u(e.docs.map(function(t){return t.data()}).map(function(t){return t.p_name}))}),this.customProfession.valueChanges.pipe(DC(this.destroy$)).subscribe(function(e){t.profession.setValidators(e?[wb.required]:[wb.required,TI(t.professionsList)]),t.profession.updateV
1alueAndValidity()}),this.customOrganisation.valueChanges.pipe(DC(this.destroy$)).subscribe(function(e){t.organisation.setValidators(e?[wb.required]:[wb.required,TI(t.organisationsList)]),t.organisation.updateValueAndValidity()}),this.profession.valueChanges.pipe(DC(this.destroy$)).subscribe(function(){t.updateGradeValidators({emitEvent:!0})}),this.customGrade.valueChanges.pipe(DC(this.destroy$)).subscribe(function(){t.grade.patchValue(""),t.grade.markAsTouched(),t.updateGradeValidators({emitEvent:!0})}),this.isSignup||this.timezone.valueChanges.pipe(VM(300),En(),DC(this.destroy$)).subscribe(function(e){t.timezoneCheck(e)}),tx([this.authService.getProfessions(),this.authService.getOrganisations()]).pipe(DC(this.destroy$)).subscribe(function(n){var o=i(n,2);o[0],o[1];t.profession.setValidators([wb.required,TI(t.professionsList)]),t.organisation.setValidators([wb.required,TI(t.organisationsList)]),t.formGroup.updateValueAndValidity({emitEvent:!1}),t.initFilters(),t.user&&(t.formGroup.patchValue(e(e({},t.user),{},{country_of_residence:t.COUNTRIES.find(function(e){return e.iso===t.user.country_of_residence})}),{emitEvent:!1}),t.customProfession.value&&(t.profession.clearValidators(),t.profession.setValidators(wb.required),t.profession.updateValueAndValidity({emitEvent:!1})),t.customOrganisation.value&&(t.organisation.clearValidators(),t.organisation.setValidators(wb.required),t.organisation.updateValueAndValidity({emitEvent:!1})),t.updateGradeValidators({emitEvent:!1})),t.data&&(t.firstName.patchValue(t.data.first_name,{emitEvent:!1}),t.lastName.patchValue(t.data.last_name,{emitEvent:!1}),t.email.patchValue(t.data.email,{emitEvent:!1}),t.isSignup||t.bio.patchValue(t.data.bio,{emitEvent:!1}))})}},{key:"updateGradeValidators",value:function(t){"Doctor"===this.profession.value?this.grade.setValidators(this.customGrade.value?[wb.required]:[wb.required,TI(this.DOCTOR_GRADES)]):"Medical student"===this.profession.value?this.grade.setValidators(this.customGrade.value?[wb.required]:[wb.required,TI(this.STUDENT_GRADES)]):this.grade.clearValidators(),this.grade.updateValueAndValidity(t)}},{key:"initFormGroup",value:function(){return this.isSignup?this.initSignupFormGroup():this.initProfileFormGroup()}},{key:"initFilters",value:function(){var t=this;this.filteredOrganisations$=this.organisation.valueChanges.pipe(wn(""),(0,Qt.U)(function(e){return e?t._filter(e,t.organisationsList):t.organisationsList})),this.filteredProfessions$=this.profession.valueChanges.pipe(wn(""),(0,Qt.U)(function(e){return e?t._filter(e,t.professionsList):t.professionsList})),this.filteredCountries$=this.countryOfResidence.valueChanges.pipe(DC(this.destroy$),wn(""),(0,Qt.U)(function(t){return"string"==typeof t?t:t.name}),(0,Qt.U)(function(e){return e?t._filterByName(e):t.COUNTRIES.slice()})),this.countriesList$=this.countryOfResidence.valueChanges.pipe(wn(""),(0,Qt.U)(function(t){return"string"==typeof t?t:t.name}),(0,Qt.U)(function(e){return t.COUNTRIES.slice().filter(function(t){if(e!==t.name&&null!=e&&""!==e)return t.name})})),this.isSignup||(this.filteredTimeZone$=this.timezone.valueChanges.pipe(wn(""),(0,Qt.U)(function(e){return e?t._filter(e,t.TIMEZONES):t.TIMEZONES.slice()})),this.timeZoneList$=this.timezone.valueChanges.pipe(wn(""),(0,Qt.U)(function(e){return e=t.TIMEZONES.slice().filter(function(t){if(e!==t)return t})}))),this.filteredDoctorGrades$=this.grade.valueChanges.pipe(wn(""),(0,Qt.U)(function(e){return e?t._filter(e,t.DOCTOR_GRADES):t.DOCTOR_GRADES.slice()})),this.doctorGradesList$=this.grade.valueChanges.pipe(wn(""),(0,Qt.U)(function(e){return e=t.DOCTOR_GRADES.slice().filter(function(t){if(e!==t)return t})})),this.filteredStudentGrades$=this.grade.valueChanges.pipe(wn(""),(0,Qt.U)(function(e){return e?t._filter(e,t.STUDENT_GRADES):t.STUDENT_GRADES.slice()})),this.studentGradesList$=this.grade.valueChanges.pipe(wn(""),(0,Qt.U)(function(e){return e=t.STUDENT_GRADES.slice().filter(function(t){if(e!==t)return t})}))}},{key:"selectProfession",value:function(t){this.selectedProfession=t.option.value,this.profession.patchValue(t.option.value),this.grade.patchValue(null)}},{key:"selectOrganisation",value:function(t){this.selectedOrganisation=t.option.value}},{key:"selectTimeZone",value:function(t){this.selectedTimeZone=t.option.value,this.timezone.patchValue(t.option.value)}},{key:"selectGrade",value:function(t){this.selectedGrade=t.option.value}},{key:"openProfileChangeEmailDialog",value:function(){console.log("openProfileChangeEmailDialog"),this._dialog.open(MI,{maxWidth:"100%",width:"586px",height:"auto"}).afterClosed().subscribe(function(t){console.log("The dialog was closed")})}},{key:"displayFn",value:function(t){return t&&t.name?t.name:""}},{key:"isEmptyControl",value:function(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}},{key:"submit",value:function(){if(!this.formGroup.invalid){var 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)}}},{key:"onCheckboxChange",value:function(t,e,n){t.patchValue(null),e.checked?("profession"===n&&(t.clearValidators(),t.setValidators([wb.required])),"organisation"===n&&(t.clearValidators(),t.setValidators([wb.required])),"countryOfResidence"===n&&(t.clearValidators(),t.setValidators([wb.required])),t.updateValueAndValidity(),t.markAsTouched()):("profession"===n&&(t.clearValidators(),t.setValidators([wb.required,TI(this.professionsList)])),"organisation"===n&&(t.clearValidators(),t.setValidators([wb.required,TI(this.organisationsList)])),"countryOfResidence"===n&&(t.clearValidators(),t.setValidators([wb.required,TI(this.COUNTRIES)])),t.updateValueAndValidity(),t.markAsTouched())}},{key:"initSignupFormGroup",value:function(){return this._fb.group({email:[null,[wb.required,wb.email]],password:[null,[wb.required,wb.minLength(8)]],first_name:[null,wb.required],last_name:[null,wb.required],profession:[null,[wb.required,TI(this.professionsList)]],has_custom_profession:null,grade:null,has_custom_grade:null,organisation:[null,[wb.required,TI(this.organisationsList)]],has_custom_organisation:null,country_of_residence:[null,[wb.required,TI(this.COUNTRIES)]]})}},{key:"initProfileFormGroup",value:function(){return this._fb.group({email:[{value:null,disabled:!0},[wb.required,wb.email]],first_name:[null,wb.required],last_name:[null,wb.required],profession:[null,[wb.required,TI(this.professionsList)]],has_custom_profession:null,grade:null,has_custom_grade:null,organisation:[null,[wb.required,TI(this.organisationsList)]],has_custom_organisation:null,country_of_residence:[null,[wb.required,TI(this.COUNTRIES)]],timezone:[null],bio:[null]})}},{key:"_eliminateDuplicates",value:function(t){for(var e=t.length,n={},i=0;i<e;i++)n[t[i].iso]=t[i];return Object.keys(n).map(function(t){return n[t]})}},{key:"_filterByName",value:function(t){var e=t.toLowerCase(),n=this.COUNTRIES.filter(function(t){return t.name.toLowerCase().includes(e)});return this._eliminateDuplicates(n)}},{key:"_filter",value:function(t,e){return e.filter(function(e){return e.toLowerCase().includes(t.toLowerCase())})}},{key:"timezoneCheck",value:function(t){t?(this.timezone.setValidators([TI(this.TIMEZONES)]),this.timezone.updateValueAndValidity()):(this.timezone.clearValidators(),this.timezone.updateValueAndValidity())}},{key:"ngOnDestroy",value:function(){this.destroy$.next(!0),this.destroy$.unsubscribe()}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ak),s.Y36(NC),s.Y36(ik),s.Y36(SI),s.Y36(dI))},t.\u0275cmp=s.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&&(s.YNc(0,WR,87,43,"form",0),s.YNc(1,KR,3,0,"ng-template",null,1,s.W1O)),2&t){var n=s.MAs(2);s.Q6J("ngIf",!e.loading)("ngIfElse",n)}},directives:[G,OC,Hb,TC,q,bE,LE,vb,Bb,EC,FS,gE,YE,hE,YI,VI,V,sE,bS],pipes:[tt],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}(),XR=new s.OlP("recaptcha-language"),tN=new s.OlP("recaptcha-base-url"),eN=new s.OlP("recaptcha-nonce-tag"),nN=new s.OlP("recaptcha-settings"),iN=new s.OlP("recaptcha-v3-site-key"),oN=function(){var t=function(){function t(e,n,i,o,r){v(this,t),this.platformId=e,this.language=n,this.baseUrl=i,this.nonce=o,this.v3SiteKey=r,this.init(),this.ready=nt(this.platformId)?t.ready.asObservable():(0,qt.of)()}return g(t,[{key:"init",value:function(){if(!t.ready&&nt(this.platformId)){var e=new WC(null);t.ready=e,function(t,e,n,i,o){window.ng2recaptchaloaded=function(){e(grecaptcha)};var r=document.createElement("script");r.innerHTML="",r.src="".concat(i||"https://www.google.com/recaptcha/api.js","?render=").concat(t,"&onload=ng2recaptchaloaded").concat(n),o&&(r.nonce=o),r.async=!0,r.defer=!0,document.head.appendChild(r)}(this.v3SiteKey||"explicit",function(t){return e.next(t)},this.language?"&hl="+this.language:"",this.baseUrl,this.nonce)}}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.Lbi),s.LFG(XR,8),s.LFG(tN,8),s.LFG(eN,8),s.LFG(iN,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t.ready=null,t}(),rN=0,aN=function(){var t=function(){return g(function t(e,n,i,o){v(this,t),this.elementRef=e,this.loader=n,this.zone=i,this.id="ngrecaptcha-"+rN++,this.errorMode="default",this.resolved=new s.vpe,this.error=new s.vpe,o&&(this.siteKey=o.siteKey,this.theme=o.theme,this.type=o.type,this.size=o.size,this.badge=o.badge)},[{key:"ngAfterViewInit",value:function(){var t=this;this.subscription=this.loader.ready.subscribe(function(e){null!=e&&e.render instanceof Function&&(t.grecaptcha=e,t.renderRecaptcha())})}},{key:"ngOnDestroy",value:function(){this.grecaptchaReset(),this.subscription&&this.subscription.unsubscribe()}},{key:"execute",value:function(){"invisible"===this.size&&(null!=this.widget?this.grecaptcha.execute(this.widget):this.executeRequested=!0)}},{key:"reset",value:function(){null!=this.widget&&(this.grecaptcha.getResponse(this.widget)&&this.resolved.emit(null),this.grecaptchaReset()
1)}},{key:"__unsafe_widgetValue",get:function(){return null!=this.widget?this.grecaptcha.getResponse(this.widget):null}},{key:"expired",value:function(){this.resolved.emit(null)}},{key:"errored",value:function(t){this.error.emit(t)}},{key:"captchaResponseCallback",value:function(t){this.resolved.emit(t)}},{key:"grecaptchaReset",value:function(){var t=this;null!=this.widget&&this.zone.runOutsideAngular(function(){return t.grecaptcha.reset(t.widget)})}},{key:"renderRecaptcha",value:function(){var t=this,e={badge:this.badge,callback:function(e){t.zone.run(function(){return t.captchaResponseCallback(e)})},"expired-callback":function(){t.zone.run(function(){return t.expired()})},sitekey:this.siteKey,size:this.size,tabindex:this.tabIndex,theme:this.theme,type:this.type};"handled"===this.errorMode&&(e["error-callback"]=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.zone.run(function(){return t.errored(n)})}),this.widget=this.grecaptcha.render(this.elementRef.nativeElement,e),!0===this.executeRequested&&(this.executeRequested=!1,this.execute())}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(oN),s.Y36(s.R0b),s.Y36(nN,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["re-captcha"]],hostVars:1,hostBindings:function(t,e){2&t&&s.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}(),sN=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t}(),cN=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[oN],imports:[[sN]]}),t}();function uN(t,e){1&t&&(s.ynx(0),s.TgZ(1,"div",2),s.TgZ(2,"article"),s.TgZ(3,"div",3),s._UZ(4,"mat-icon",4),s.qZA(),s.TgZ(5,"div",5),s.TgZ(6,"h3"),s._uU(7,"This license has already been redeemed"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.BQk())}function lN(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"h4"),s._uU(2),s.qZA(),s.TgZ(3,"p",31),s._uU(4),s.qZA(),s.BQk()),2&t){var n=s.oxw(3);s.xp6(2),s.hij(" ",n.name," "),s.xp6(2),s.Oqu(n.description)}}function hN(t,e){if(1&t&&(s.TgZ(0,"p",32),s._uU(1),s.qZA()),2&t){var n=s.oxw(3);s.xp6(1),s.hij(" ",n.name," ")}}function fN(t,e){1&t&&(s.TgZ(0,"p",40),s._uU(1,"Free"),s.qZA())}function dN(t,e){if(1&t&&(s.TgZ(0,"p",40),s._uU(1),s.qZA()),2&t){var n=s.oxw(4);s.xp6(1),s.Oqu(n.priceText)}}function pN(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"div",33),s.TgZ(2,"div",34),s._UZ(3,"mat-icon",35),s.TgZ(4,"p",36),s._uU(5),s.qZA(),s.qZA(),s._UZ(6,"div",37),s.TgZ(7,"div",38),s.YNc(8,fN,2,0,"p",39),s.YNc(9,dN,2,1,"p",39),s.qZA(),s.qZA(),s.BQk()),2&t){var n=s.oxw(3);s.xp6(5),s.Oqu(n.count),s.xp6(3),s.Q6J("ngIf",n.isPrice),s.xp6(1),s.Q6J("ngIf",!n.isPrice)}}function gN(t,e){1&t&&(s.TgZ(0,"p",40),s._uU(1,"Free"),s.qZA())}function mN(t,e){if(1&t&&(s.TgZ(0,"p",40),s._uU(1),s.qZA()),2&t){var n=s.oxw(4);s.xp6(1),s.Oqu(n.priceText)}}function vN(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"div",41),s.YNc(2,gN,2,0,"p",39),s.YNc(3,mN,2,1,"p",39),s.qZA(),s.BQk()),2&t){var n=s.oxw(3);s.xp6(2),s.Q6J("ngIf",n.isPrice),s.xp6(1),s.Q6J("ngIf",!n.isPrice)}}function yN(t,e){if(1&t&&(s.TgZ(0,"div",22),s.TgZ(1,"div",23),s.TgZ(2,"h3"),s._uU(3,"Create your account to access the course"),s.qZA(),s.TgZ(4,"p"),s._uU(5,"In order to enrol to the selected course, you must create a user account."),s.qZA(),s.qZA(),s.TgZ(6,"div",24),s.TgZ(7,"div",25),s.TgZ(8,"div",26),s.YNc(9,lN,5,2,"ng-container",0),s.YNc(10,hN,2,1,"ng-template",null,27,s.W1O),s.qZA(),s.TgZ(12,"div",28),s.YNc(13,pN,10,3,"ng-container",16),s.YNc(14,vN,4,2,"ng-container",16),s.qZA(),s.qZA(),s.TgZ(15,"div",29),s._UZ(16,"img",30),s.qZA(),s.qZA(),s.qZA()),2&t){var n=s.MAs(11),i=s.oxw(2);s.xp6(9),s.Q6J("ngIf",i.isBundle)("ngIfElse",n),s.xp6(4),s.Q6J("ngIf",i.isBundle),s.xp6(1),s.Q6J("ngIf",!i.isBundle),s.xp6(2),s.Q6J("src",i.imgURL,s.LSH)}}function _N(t,e){1&t&&(s.TgZ(0,"div",42),s.TgZ(1,"h3"),s._uU(2,"
1Let\u2019s create an account for you now"),s.qZA(),s.qZA())}function bN(t,e){1&t&&(s.TgZ(0,"mat-error"),s._UZ(1,"mat-icon",43),s._uU(2," Please check this box if you wish to proceed "),s.qZA())}function CN(t,e){if(1&t){var n=s.EpF();s.YNc(0,yN,17,5,"div",6),s.TgZ(1,"div",7),s.YNc(2,_N,3,0,"div",8),s.TgZ(3,"div",9),s.TgZ(4,"auth-user-form",10),s.NdJ("submitted",function(t){return s.CHM(n),s.oxw().signUp(t)}),s.ALo(5,"async"),s.qZA(),s.TgZ(6,"div",11),s.TgZ(7,"mat-checkbox",12),s.NdJ("ngModelChange",function(t){return s.CHM(n),s.oxw().privacy=t}),s.qZA(),s.TgZ(8,"span"),s._uU(9," I have read and agree to the "),s.TgZ(10,"strong"),s.TgZ(11,"a",13),s._uU(12,"Terms of Use"),s.qZA(),s.qZA(),s._uU(13," and "),s.TgZ(14,"strong"),s.TgZ(15,"a",14),s._uU(16,"Customer Privacy Policy"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(17,"div",15),s.YNc(18,bN,3,0,"mat-error",16),s.qZA(),s.qZA(),s.TgZ(19,"div",17),s.TgZ(20,"re-captcha",18),s.NdJ("resolved",function(t){return s.CHM(n),s.oxw().onResolved(t)}),s.qZA(),s.TgZ(21,"button",19),s.NdJ("click",function(){return s.CHM(n),s.oxw().authUserForm.submit()}),s._uU(22," Sign up "),s.qZA(),s.TgZ(23,"ul"),s.TgZ(24,"li"),s.TgZ(25,"span"),s._uU(26,"Already have an account?"),s.qZA(),s.TgZ(27,"strong",20),s.TgZ(28,"a",21),s._uU(29,"Sign in"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){var i=s.oxw();s.Q6J("ngIf",i.checkout),s.xp6(2),s.Q6J("ngIf",!i.checkout),s.xp6(2),s.Q6J("mode","create")("data",s.lcZ(5,12,i._route.queryParams)),s.xp6(2),s.Q6J("ngClass","true"==i.checkout?"mar-true":"mar-false"),s.xp6(1),s.Q6J("ngModel",i.privacy),s.xp6(10),s.Q6J("ngClass","true"==i.checkout?"check-true":"check-false"),s.xp6(1),s.Q6J("ngIf",(null==i.authUserForm||null==i.authUserForm.formGroup?null:i.authUserForm.formGroup.valid)&&!1===i.privacy),s.xp6(2),s.s9C("siteKey",i.siteKey),s.xp6(1),s.Q6J("disabled",i.isFormInvalid()),s.xp6(7),s.Q6J("routerLink","/")("queryParamsHandling","preserve")}}var xN=function(){var t=function(){return g(function t(e,n,i,o,r,a,s){v(this,t),this._router=e,this._auth=n,this._toastr=i,this.appLimit=o,this._appState=r,this._http=a,this._route=s,this.destroy$=new Ee.xQ,this.setEmailToVerified=!1,this.privacy=!1,this.isBundle=!1,this.isPrice=!1,this.siteKey="6LdKfcccAAAAANruwaRymsOBHFQKXi7dWtrwFEQf",this.recaptchaPassed=!1,this.isRedeemed=!1},[{key:"signUp",value:function(t){var n,i,o,r,a,s,c,u,l=this;if(this.recaptchaPassed){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());var h=this.couponData?e(e({},t),{},{privacy:this.privacy,coupons:[this.couponData],set_email_verified:this.setEmailToVerified}):e(e({},t),{},{privacy:this.privacy,set_email_verified:!1}),f=!1;this._auth.couponUserData.email&&(f=(null===(i=null===(n=this.authUserForm.email.value)||void 0===n?void 0:n.toLowerCase())||void 0===i?void 0:i.trim())!==(null===(r=null===(o=this._auth.couponUserData.email)||void 0===o?void 0:o.toLowerCase())||void 0===r?void 0:r.trim()));var d=!1;this._auth.couponUserData.first_name&&(d=(null===(s=null===(a=this._auth.couponUserData.first_name)||void 0===a?void 0:a.toLowerCase())||void 0===s?void 0:s.trim())!==this.authUserForm.firstName.value.toLowerCase().trim());var p=!1;this._auth.couponUserData.last_name&&(p=(null===(u=null===(c=this._auth.couponUserData.last_name)||void 0===c?void 0:c.toLowerCase())||void 0===u?void 0:u.trim())!==this.authUserForm.lastName.value.toLowerCase().trim()),h=this._auth.getUpdatePayload(h,f,d,p),this._auth.signup(h).pipe(Fe(function(e){return e?l._auth.signinClientPersistence({email:t.email,password:t.password},!0):(0,qt.of)(null)}),ZC(function(){l._appState.loading=!1}),DC(this.destroy$)).subscribe(function(e){return l.setEmailToVerified||l._toastr.success(YC(t.email)),localStorage.clear(),l.appLimit.setVerifyEmailLimitSignup(),"true"===l.checkout&&(l._route.
1snapshot.queryParams.price_id&&localStorage.setItem("price",l.price),localStorage.setItem("product",l.product),localStorage.setItem("checkout",l.checkout)),"true"===l.getFreeTrial&&(localStorage.setItem("product",l.product),localStorage.setItem("getFreeTrial",l.getFreeTrial)),l._router.navigate(["/auth/verify"],{queryParams:{signup:!0,checkout:null,getfreetrial:null,product_id:null,price_id:null},queryParamsHandling:"merge"})},function(t){var e,n,i;if(l._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."),l._auth.authUser.pipe(DC(l.destroy$),Fe(function(){return l._auth.deleteAuthUser()})).subscribe(),l._auth.handleAuthError(f,d,p),["auth/email-already-exists","auth/alternative-account-found"].includes(null===(i=t.error)||void 0===i?void 0:i.code))return l._router.navigate(["/"])})}}},{key:"onResolved",value:function(t){var e=this;return this._http.post(dP+"/auth-sendRecaptcha",{token:t}).subscribe(function(t){t.success||e._toastr.error('Failed to pass reCaptcha. Please try again or contact "[email protected]".'),e.recaptchaPassed=t.success},function(t){e.recaptchaPassed=!1})}},{key:"isFormInvalid",value:function(){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}},{key:"ngOnDestroy",value:function(){this.destroy$.next(!0),this.destroy$.unsubscribe()}},{key:"ngOnInit",value:function(){var t=this;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(function(e){if(1===e.length){var n,i=h(e[0].coupons);try{for(i.s();!(n=i.n()).done;){var o=n.value;console.log(o),t._route.snapshot.queryParams.product_id===o.product_id&&t._route.snapshot.queryParams.th__c===o.coupon_code&&o.redeemed&&(t.isRedeemed=!0,t._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())}}catch(r){i.e(r)}finally{i.f()}}t._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(function(e){if(t.productType=e.data.product_type,t.courseCardImageUrl=e.data.course_card_image_url,t.bundleCardImageUrl=e.data.bundle_card_image_url,"Course"===e.data.product_type){var n=e.data.product_prices.length;if(t._route.snapshot.queryParams.price_id)for(var i=0;i<n;i++)e.data.product_prices[i].id.toString()===t.price&&(t.coursePrice=e.data.product_prices[i].price,t.duration=e.data.product_prices[i].interval,t.timeCount=e.data.product_prices[i].interval_count,t.name=e.data.product_prices[i].price_name);else if(1===n)t.coursePrice=e.data.product_prices[0].price,t.duration=e.data.product_prices[0].interval,t.timeCount=e.data.product_prices[0].interval_count,t.name=e.data.product_prices[0].price_name;else for(var o=0;o<n;o++)e.data.price===e.data.product_prices[o].price&&(t.coursePrice=e.data.product_prices[o].price,t.duration=e.data.product_prices[o].interval,t.timeCount=e.data.product_prices[o].interval_count,t.name=e.data.product_prices[o].price_name)}"Bundle"===e.data.product_type&&(t.courseIds=e.data.course_ids.length,t.description=e.data.description,t.name=e.data.name,t.coursePrice=e.data.product_prices[0].price,t.duration=e.data.product_prices[0].interval,t.timeCount=e.data.product_prices[0].interval_count),t.createCard(),console.log(e.data)}))}},{key:"createCard",value:function(){"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)}},{key:"ngAfterViewInit",value:function(){var t=this;this._route.queryParams.pipe((0,LC.b)(function(e){t._auth.couponUserData={first_name:e.first_name?decodeURIComponent(e.first_name):null,last_name:e.last_name?decodeURIComponent(e.last_name):null,email:e.email?decodeURIComponent(e.email):null}}),(0,Qt.U)(function(t){return{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(function(e){for(var n in t.authUserForm.firstName.patchValue(e.first_name),t.authUserForm.lastName.patchValue(e.last_name),t.authUserForm.email.patchValue(e.email),e)("group_token"===n||"coupon_code"===n||"product_id"===n)&&e.hasOwnProperty(n)&&e[n]&&(console.log(n,e[n]),localStorage.setItem(n,decodeURIComponent(e[n])))})}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(VO),s.Y36(ik),s.Y36(Ak),s.Y36(uA),s.Y36(KC),s.Y36(ge),s.Y36(Cw))},t.\u0275cmp=s.Xpm({type:t,selectors:[["auth-signup"]],viewQuery:function(t,e){var n;(1&t&&s.Gf($R,5),2&t)&&(s.iGM(n=s.CRH())&&(e.authUserForm=n.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&&(s.YNc(0,uN,8,0,"ng-container",0),s.YNc(1,CN,30,14,"ng-template",null,1,s.W1O)),2&t){var n=s.MAs(2);s.Q6J("ngIf",e.isRedeemed)("ngIfElse",n)}},directives:[G,FS,$R,q,YE,Bb,wC,aN,BO,sE,gE],pipes:[tt],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}(),wN=["mat-button",""],ON=["*"],PN=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],MN=$T(KT(XT(g(function t(e){v(this,t),this._elementRef=e})))),kN=function(){var t=function(t){function e(t,n,i){var o;v(this,e),(o=y(this,e,[t]))._focusMonitor=n,o._animationMode=i,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var r,a=h(PN);try{for(a.s();!(r=a.n()).done;){var s=r.value;o._hasHostAttributes(s)&&o._getHostElement().classList.add(s)}}catch(c){a.e(c)}finally{a.f()}return t.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return b(e,t),g(e,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.some(function(e){return t._getHostElement().hasAttribute(e)})}}])}(MN);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(LT),s.Y36(ib,8))},t.\u0275cmp=s.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){var n;(1&t&&s.Gf(cS,5),2&t)&&(s.iGM(n=s.CRH())&&(e.ripple=n.first))},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(s.uIk("disabled",e.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:wN,ngContentSelectors:ON,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&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1),s._UZ(3,"span",2)),2&t&&(s.xp6(2),s.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[cS],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}
1.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}(),TN=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[uS,WT],WT]}),t}();function SN(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",16),s.TgZ(2,"span"),s._uU(3,"There is no account associated with this email"),s.qZA(),s.BQk())}function EN(t,e){1&t&&(s.ynx(0),s._uU(1," Please enter a valid email address "),s.BQk())}function AN(t,e){1&t&&s._uU(0," Incorrect email format ")}function IN(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s._UZ(1,"mat-icon",16),s.YNc(2,EN,2,0,"ng-container",17),s.YNc(3,AN,1,0,"ng-template",null,18,s.W1O),s.qZA()),2&t){var n=s.MAs(4),i=s.oxw(2);s.xp6(2),s.Q6J("ngIf",i.isEmptyControl(i.username))("ngIfElse",n)}}function RN(t,e){1&t&&(s.TgZ(0,"div",19),s.TgZ(1,"div",19),s._UZ(2,"div",20),s.qZA(),s.qZA())}function NN(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",2),s.TgZ(2,"div",3),s.TgZ(3,"h3"),s._uU(4,"Forgot your password?"),s.qZA(),s.qZA(),s.TgZ(5,"div",4),s.TgZ(6,"div",5),s.TgZ(7,"p"),s._uU(8," Enter the email you signed up with and we will send you instructions to reset your password. "),s.qZA(),s.qZA(),s.TgZ(9,"form",6),s.NdJ("submit",function(){return s.CHM(n),s.oxw().resetPassword()}),s.TgZ(10,"div",7),s.TgZ(11,"div",8),s.TgZ(12,"span"),s._uU(13,"Email"),s.qZA(),s.qZA(),s.TgZ(14,"mat-form-field",9),s._UZ(15,"input",10),s._UZ(16,"mat-icon",11),s.qZA(),s.TgZ(17,"div",12),s.YNc(18,SN,4,0,"ng-container",1),s.YNc(19,IN,5,2,"mat-error",1),s.qZA(),s.qZA(),s.qZA(),s.YNc(20,RN,3,0,"ng-template",null,13,s.W1O),s.qZA(),s.TgZ(22,"div",14),s.TgZ(23,"button",15),s._uU(24," Send instructions "),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){var i=s.oxw();s.xp6(9),s.Q6J("formGroup",i.formGroup),s.xp6(9),s.Q6J("ngIf",i.show),s.xp6(1),s.Q6J("ngIf",i.username.invali
1d&&(i.username.touched||i.username.dirty)&&!i.show),s.xp6(4),s.Q6J("disabled",i.loading)("disabled",i.isFormInvalid())}}function LN(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",21),s.TgZ(2,"h2",22),s._uU(3,"Check your email"),s.qZA(),s.TgZ(4,"p",23),s._uU(5),s.qZA(),s.TgZ(6,"div",24),s.TgZ(7,"button",25),s.NdJ("click",function(){return s.CHM(n),s.oxw().resetPassword()}),s.TgZ(8,"span",26),s._uU(9,"Resend"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(10,"p",27),s._uU(11," Did not receive the email? Check your spam filter,"),s._UZ(12,"br"),s._uU(13," or "),s.TgZ(14,"a",28),s._uU(15,"try another email address"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){var i=s.oxw();s.xp6(5),s.hij(" We have sent instructions to reset your password to ",i.username.value," ")}}var DN=function(){var t=function(){return g(function t(e,n,i,o,r,a){v(this,t),this._fb=e,this._auth=n,this._route=i,this.route=o,this._toastr=r,this.appLimit=a,this.loading=!1,this.hide=!0,this.show=!1,this.formGroup=this.initFormGroup()},[{key:"username",get:function(){return this.formGroup.get("username")}},{key:"ngOnInit",value:function(){"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")}},{key:"initFormGroup",value:function(){return this._fb.group({username:[null,[wb.email,wb.required]]})}},{key:"resetPassword",value:function(){var t=this;if(this.username.errors&&this.username.errors.email)this.show=!0;else if(this.appLimit.MA_PASSWORD_RESET_LIMIT.invalid())this._toastr.error("Please wait\n ".concat(this.millisToMinutesAndSeconds(this.appLimit.MA_PASSWORD_RESET_LIMIT.getTime()),' minutes before pressing "Resend" again'));else{this.loading=!0;var e=Object.assign({},this.formGroup.value);this._auth.sendPasswordResetEmail(e.username).pipe((0,LC.b)(function(){return t.appLimit.setPasswordResetLimit()}),ZC(function(){return t.loading=!1})).subscribe(function(e){t._toastr.success("An email with instructions to reset your password has been sent to your email: ".concat(t.username.value)),t.hide=!1,window.scrollTo(0,0)},function(e){t.show=!0})}}},{key:"isEmptyControl",value:function(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}},{key:"isFormInvalid",value:function(){var t;return!this.formGroup||(null===(t=this.formGroup)||void 0===t?void 0:t.invalid)}},{key:"millisToMinutesAndSeconds",value:function(t){var 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)(s.Y36(NC),s.Y36(ik),s.Y36(VO),s.Y36(Cw),s.Y36(Ak),s.Y36(uA))},t.\u0275cmp=s.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&&(s.TgZ(0,"div",0),s.YNc(1,NN,25,5,"div",1),s.YNc(2,LN,16,1,"div",1),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",e.hide),s.xp6(1),s.Q6J("ngIf",!e.hide))},directives:[G,OC,Hb,TC,bE,LE,vb,Bb,EC,FS,gE,sE,kN],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}(),FN=function(){var t=function(){return g(function t(e,n){v(this,t),this.document=e,this._auth=n,this.logout()},[{key:"logout",value:function(){var t=this;this._auth.logout().subscribe(function(){t.document.location.href="https://www.medics.academy/users/sign_out"})}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(f),s.Y36(ik))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-logout"]],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t}();function UN(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Je.E,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Je.E;return ix(function(){return t()?e:n})}function ZN(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",29),s.TgZ(2,"span",30),s._uU(3,"Please enter your email"),s.qZA(),s.BQk())}function qN(t,e){1&t&&(s._UZ(0,"mat-icon",29),s.TgZ(1,"span",30),s._uU(2,"Incorrect email format"),s.qZA())}function jN(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s.YNc(1,ZN,4,0,"ng-container",1),s.YNc(2,qN,3,0,"ng-template",null,28,s.W1O),s.qZA()),2&t){var n=s.MAs(3),i=s.oxw(2);s.xp6(1),s.Q6J("ngIf",i.isEmptyControl(i.newEmail))("ngIfElse",n)}}function VN(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",29),s.TgZ(2,"span",30),s._uU(3,"Please enter your current password"),s.qZA(),s.BQk())}function zN(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s.YNc(1,VN,4,0,"ng-container",19),s.qZA()),2&t){var n=s.oxw(2);s.xp6(1),s.Q6J("ngIf",n.isEmptyControl(n.password))}}function GN(t,e){1&t&&s._UZ(0,"screen-loading")}function BN(t,e){if(1&t&&s.YNc(0,GN,1,0,"screen-loading",19),2&t){var n=s.oxw(2);s.Q6J("ngIf",n.appState.loading)}}function HN(t,e){if(1&t){var n=s.EpF();s.ynx(0),s.TgZ(1,"p",31),s._uU(2," Did not receive the email? Check your spam filter, or "),s.TgZ(3,"a",32),s.NdJ("
1click",function(){return s.CHM(n),s.oxw(2).logout()}),s._uU(4,"try another email address"),s.qZA(),s.qZA(),s.BQk()}}function YN(t,e){if(1&t){var n=s.EpF();s.ynx(0),s.TgZ(1,"div",4),s.TgZ(2,"h2",5),s._uU(3," Please verify your email address to access the "),s._UZ(4,"br"),s.TgZ(5,"span"),s._uU(6,"Medics.Academy "),s.qZA(),s._uU(7," platform "),s.qZA(),s.TgZ(8,"p",6),s._uU(9),s.qZA(),s.TgZ(10,"div",7),s.TgZ(11,"button",8),s.NdJ("click",function(){return s.CHM(n),s.oxw().sendEmailVerification()}),s.TgZ(12,"span",9),s._uU(13,"Resend"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(14,"p",10),s._uU(15," We are currently experiencing difficulties in sending emails to some NHS email addresses. If you think that"),s._UZ(16,"br"),s._uU(17," this might be affecting you, then please kindly enter an alternative email. This email address"),s._UZ(18,"br"),s._uU(19," will be associated with your account and the email verification link will be sent to it."),s._UZ(20,"br"),s._uU(21," We apologise for any inconvenience caused. "),s.qZA(),s.TgZ(22,"p",11),s._uU(23,"Update email address"),s.qZA(),s.TgZ(24,"form",12),s.NdJ("ngSubmit",function(){return s.CHM(n),s.oxw().submit()}),s.TgZ(25,"div",13),s.TgZ(26,"div",14),s.TgZ(27,"span"),s._uU(28,"Email"),s.qZA(),s.qZA(),s.TgZ(29,"mat-form-field",15),s._UZ(30,"input",16),s._UZ(31,"mat-icon",17),s.qZA(),s.TgZ(32,"div",18),s.YNc(33,jN,4,2,"mat-error",19),s.qZA(),s.qZA(),s.TgZ(34,"div",20),s.TgZ(35,"div",21),s.TgZ(36,"span"),s._uU(37,"Current Password"),s.qZA(),s.qZA(),s.TgZ(38,"mat-form-field",15),s._UZ(39,"input",22),s.TgZ(40,"span",23),s.NdJ("click",function(){s.CHM(n);var t=s.oxw();return t.hide=!t.hide}),s._UZ(41,"mat-icon",24),s.qZA(),s.qZA(),s.TgZ(42,"div",18),s.YNc(43,zN,2,1,"mat-error",19),s.qZA(),s.qZA(),s.qZA(),s.TgZ(44,"button",25),s.TgZ(45,"span",26),s._uU(46,"Update email"),s.qZA(),s.qZA(),s.YNc(47,BN,1,1,"ng-template",null,27,s.W1O),s.YNc(49,HN,5,0,"ng-container",19),s.qZA(),s.BQk()}if(2&t){var i=s.oxw();s.xp6(9),s.hij(" The following email address ",i.auth.user.email," has not been verified, please make sure to verify before signing in "),s.xp6(15),s.Q6J("formGroup",i.formGroup),s.xp6(9),s.Q6J("ngIf",i.newEmail.invalid&&(i.newEmail.touched||i.newEmail.dirty)),s.xp6(6),s.Q6J("type",i.hide?"password":"text"),s.xp6(1),s.uIk("aria-pressed",i.hide),s.xp6(1),s.s9C("svgIcon",i.hide?"lockEye":"openEye"),s.xp6(2),s.Q6J("ngIf",i.password.invalid&&(i.password.touched||i.password.dirty)),s.xp6(1),s.Q6J("disabled",i.isFormInvalid()),s.xp6(5),s.Q6J("ngIf",!i.isSignup)}}function QN(t,e){if(1&t){var n=s.EpF();s.ynx(0),s.TgZ(1,"button",37),s.NdJ("click",function(){return s.CHM(n),s.oxw(3).navigateToSchool()}),s._uU(2," Go to Medics.Academy "),s.qZA(),s.BQk()}}function JN(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"button",38),s.NdJ("click",function(){return s.CHM(n),s.oxw(3).navigateToSchool()}),s._uU(1," Checkout "),s.qZA()}}function WN(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"div",33),s._UZ(2,"mat-icon",34),s.qZA(),s.TgZ(3,"div",35),s.TgZ(4,"h3"),s._uU(5,"Your email has been verified"),s.qZA(),s.YNc(6,QN,3,0,"ng-container",1),s.YNc(7,JN,2,0,"ng-template",null,36,s.W1O),s.qZA(),s.BQk()),2&t){var n=s.MAs(8),i=s.oxw(2);s.xp6(6),s.Q6J("ngIf",!i.checkout)("ngIfElse",n)}}function KN(t,e){if(1&t&&(s.YNc(0,WN,9,2,"ng-container",1),s.ALo(1,"async")),2&t){var n=s.oxw(),i=s.MAs(7);s.Q6J("ngIf",!1!==s.lcZ(1,2,n.auth.emailVerified)||null)("ngIfElse",i)}}function $N(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"p",42),s._uU(2," An email has been sent to "),s._UZ(3,"br"),s.TgZ(4,"span",43),s._uU(5),s.qZA(),s._uU(6," to verify your account. "),s.qZA(),s.BQk()),2&t){var n=s.oxw(4);s.xp6(5),s.Oqu(null==n.auth.user?null:n.auth.user.email)}}function XN(t,e){if(1&t&&(s.TgZ(0,"p",42),s._uU(1," An email has been resent to "),s._UZ(2,"br"),s.TgZ(3,"span",43),s._uU(4),s.qZA(),s._uU(5," to verify your account. "),s.qZA()),2&t){var n=s.oxw(4);s.xp6(4),s.Oqu(null==n.auth.user?null:n.auth.user.email)}}function tL(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"h2"),s._uU(2,"Email verification"),s.qZA(),s.YNc(3,$N,7,1,"ng-container",1),s.YNc(4,XN,6,1,"ng-template",null,41,s.W1O),s.BQk()),2&t){var n=s.MAs(5),i=s.oxw(3);s.xp6(3),s.Q6J("ngIf",i.hide)("ngIfElse",n)}}function eL(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"h2",5),s._uU(2," Please verify your email address to access the "),s._UZ(3,"br"),s.TgZ(4,"span"),s._uU(5,"Medics.Academy "),s.qZA(),s._uU(6," platform "),s.qZA(),s.TgZ(7,"p",6),s._uU(8),s.qZA(),s.BQk()),2&t){var n=s.oxw(3);s.xp6(8),s.hij(" The following email address ",null==n.auth.user?null:n.auth.user.email," has not been verified, please verify your email address to access the Medics.Academy platform ")}}function nL(t,e){if(1&t){var n=s.EpF();
1s.ynx(0),s.TgZ(1,"button",8),s.NdJ("click",function(){return s.CHM(n),s.oxw(3).sendEmailVerification()}),s.TgZ(2,"span",9),s._uU(3,"Resend"),s.qZA(),s.qZA(),s.BQk()}}function iL(t,e){if(1&t){var n=s.EpF();s.ynx(0),s.TgZ(1,"button",44),s.NdJ("click",function(){return s.CHM(n),s.oxw(3).sendEmailVerification()}),s.TgZ(2,"span",9),s._uU(3,"Resend email"),s.qZA(),s.qZA(),s.BQk()}}function oL(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",29),s.TgZ(2,"span",30),s._uU(3,"Please enter your email"),s.qZA(),s.BQk())}function rL(t,e){1&t&&(s._UZ(0,"mat-icon",29),s.TgZ(1,"span",30),s._uU(2,"Incorrect email format"),s.qZA())}function aL(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s.YNc(1,oL,4,0,"ng-container",1),s.YNc(2,rL,3,0,"ng-template",null,28,s.W1O),s.qZA()),2&t){var n=s.MAs(3),i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",i.isEmptyControl(i.newEmail))("ngIfElse",n)}}function sL(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",29),s.TgZ(2,"span",30),s._uU(3,"Please enter your current password"),s.qZA(),s.BQk())}function cL(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s.YNc(1,sL,4,0,"ng-container",19),s.qZA()),2&t){var n=s.oxw(3);s.xp6(1),s.Q6J("ngIf",n.isEmptyControl(n.password))}}function uL(t,e){if(1&t&&(s.TgZ(0,"button",45),s.TgZ(1,"span",46),s._uU(2,"Update email"),s.qZA(),s.qZA()),2&t){var n=s.oxw(3);s.Q6J("disabled",n.loading||n.isFormInvalid())}}function lL(t,e){1&t&&s._UZ(0,"screen-loading")}function hL(t,e){if(1&t&&s.YNc(0,lL,1,0,"screen-loading",19),2&t){var n=s.oxw(3);s.Q6J("ngIf",n.appState.loading)}}function fL(t,e){if(1&t){var n=s.EpF();s.ynx(0),s.TgZ(1,"div",4),s.YNc(2,tL,6,2,"ng-container",19),s.YNc(3,eL,9,1,"ng-container",19),s.TgZ(4,"div",7),s.YNc(5,nL,4,0,"ng-container",19),s.YNc(6,iL,4,0,"ng-container",19),s.qZA(),s.TgZ(7,"p",10),s._uU(8," We are having difficulty sending emails to some NHS email addresses. If you think this might be affecting you,"),s._UZ(9,"br"),s._uU(10," please enter an alternative email.This email address will be associated with your account and "),s._UZ(11,"br"),s._uU(12,"the email verification link will be sent to it. We apologise for any inconvenience caused. "),s.qZA(),s.TgZ(13,"p",11),s._uU(14,"Enter new email address"),s.qZA(),s.TgZ(15,"form",12),s.NdJ("ngSubmit",function(){return s.CHM(n),s.oxw(2).submit()}),s.TgZ(16,"div",13),s.TgZ(17,"div",14),s.TgZ(18,"span"),s._uU(19,"Email"),s.qZA(),s.qZA(),s.TgZ(20,"mat-form-field",15),s._UZ(21,"input",16),s._UZ(22,"mat-icon",17),s.qZA(),s.TgZ(23,"div",18),s.YNc(24,aL,4,2,"mat-error",19),s.qZA(),s.qZA(),s.TgZ(25,"div",20),s.TgZ(26,"div",21),s.TgZ(27,"span"),s._uU(28,"Current Password"),s.qZA(),s.qZA(),s.TgZ(29,"mat-form-field",15),s._UZ(30,"input",22),s.TgZ(31,"span",23),s.NdJ("click",function(){s.CHM(n);var t=s.oxw(2);return t.hide=!t.hide}),s._UZ(32,"mat-icon",24),s.qZA(),s.qZA(),s.TgZ(33,"div",18),s.YNc(34,cL,2,1,"mat-error",19),s.qZA(),s.qZA(),s.qZA(),s.TgZ(35,"div",39),s.YNc(36,uL,3,1,"button",40),s.qZA(),s.YNc(37,hL,1,1,"ng-template",null,27,s.W1O),s.qZA(),s.BQk()}if(2&t){var i=s.MAs(38),o=s.oxw(2);s.xp6(2),s.Q6J("ngIf",o.isSignup),s.xp6(1),s.Q6J("ngIf",!o.isSignup),s.xp6(2),s.Q6J("ngIf",!o.isSignup),s.xp6(1),s.Q6J("ngIf",o.isSignup),s.xp6(9),s.Q6J("formGroup",o.formGroup),s.xp6(9),s.Q6J("ngIf",o.newEmail.invalid&&(o.newEmail.touched||o.newEmail.dirty)),s.xp6(6),s.Q6J("type",o.hide?"password":"text"),s.xp6(1),s.uIk("aria-pressed",o.hide),s.xp6(1),s.s9C("svgIcon",o.hide?"lockEye":"openEye"),s.xp6(2),s.Q6J("ngIf",o.password.invalid&&(o.password.touched||o.password.dirty)),s.xp6(2),s.Q6J("ngIf",!o.loading)("ngIfElse",i)}}function dL(t,e){if(1&t&&(s.YNc(0,fL,39,12,"ng-container",1),s.ALo(1,"async")),2&t){var n=s.oxw(),i=s.MAs(5);s.Q6J("ngIf",!1===s.lcZ(1,2,n.auth.emailVerified))("ngIfElse",i)}}var pL=function(){var t=function(){return g(function t(e,n,i,o,r,a,s,c,u){var l=this;v(this,t),this.document=e,this.appState=n,this.appLimit=i,this.auth=o,this.toastr=r,this.route=a,this.dialog=s,this.router=c,this._formBuilder=u,this.hide=!0,this.checkout=!1,this.loading=!1,this.issuccsess=!1,this.destroy$=new Ee.xQ,this.formGroup=this.initFormGroup(),this.route.queryParams.subscribe(function(t){l.isSignup=!!(null==t?void 0:t.signup),l.token=null==t?void 0:t.token})},[{key:"password",get:function(){return this.formGroup.get("password")}},{key:"newEmail",get:function(){return this.formGroup.get("new_email")}},{key:"initFormGroup",value:function(){return this._formBuilder.group({new_email:[null,[wb.email,wb.required]],password:[null,wb.required]})}},{key:"sendEmailVerification",value:function(){var t=this;this.appLimit.MA_SIGNUP_LIMIT.invalid()?this.toastr.error("Please wait ".concat(this.millisToMinutesAndSeconds(this.appLimit.MA_SIGNUP_LIMIT.getTime()),' minutes before pressing "Resend" again')):this.appLimit.MA_VERIFY_EMAIL_LIMIT.pipe(We(1),Fe(function(e){return e.valid()?(t.appState.loading=!0,t.auth.sendVerificationMail().pipe(We(1))):(t.toastr.error("Please wait ".concat(t.millisToMinutesAndSeconds(e.getTime()),' minutes before pressing "Resend" again')),cA)}),Fe(function(){return t.appLimit.setVerifyEmailLimit()}),ZC(function(){t.appState.loading=!1}),DC(this.destroy$)).subscribe(function(){t.toastr.success(YC(t.auth.user.email)),t.hide=!1},function(e){console.log(e),t.toastr.error(nk.Parse(e.code))})}},{key:"submit",value:function(){var t=this;console.log("Submitting form!"),this.auth.user.email.toLowerCase()!==this.newEmail.value.toLowerCase()?(this.appState.loading=!0,this.appLimit.MA_CHANGE_EMAIL_LIMIT.pipe(We(1),Fe(function(e){return e.valid()?t.auth.reauthenticateWithCredential(t.password.value):(t.toastr.error("You can only change your email address once every 7 days"),t.appState.loading=!1,cA)}),Fe(function(){return t.auth.updateEmail(t.newEmail.value)}),Fe(function(){return t.auth.reauthenticateWithCredential(t.password.value,t.newEmail.value)}),Fe(function(){return t.auth.sendVerificationMail()}),Fe(function(){return t.appLimit.setChangeEmailLimit()}),ZC(function(){t.appState.loading=!1})).subscribe(function(e){return t.issuccsess=!0,t.formGroup.reset(),t.appState.loading=!1,localStorage.setItem("emailChanged","true"),t.router.navigate(["auth","verify"])},function(e){"auth/wrong-password"===(console.log(e),e.code)?t.toastr.error("Wrong password. Please enter the account's most recent password."):t.toastr.error(nk.Parse(e.code))})):this.toastr.error("Please use a different email, this email is the same associated to your current account")}},{key:"navigateToSchool",value:function(){var t=this;console.log("NAVIGATE TO SCHOOL!"),this.appState.loading=!0;var e={admin_dashboard:gP,bursary_internal_dashboard:"https://ma-bursary-internal-dashboard.web.app/",bursary_external_dashboard:"https://ma-bursary-external-dashboard.web.app/"};for(var n in e)if("true"===localStorage.getItem(n))return localStorage.removeItem(n),void(this.document.location.href=e[n]);var i=localStorage.getItem("checkout"),o=localStorage.getItem("getFreeTrial");if(i){console.log("CHECKOUT"),this.auth.updateLastLoginTime().subscribe();var r=localStorage.getItem("product"),a=localStorage.getItem("price");this.authFlow=this.auth.signEnroll(r,a).pipe((0,LC.b)(function(e){return t.document.location.href=e.redirect_uri}))}else if(o){console.log("FREE TRIAL"),this.auth.updateLastLoginTime().subscribe();var s=localStorage.getItem("product");this.authFlow=this.auth.signForFreeTrial(s,o).pipe((0,LC.b)(function(e){return t.document.location.href=e.redirect_uri}))}else console.log("SCHOOL"),this.auth.updateLastLoginTime().subscribe(),this.authFlow=this.auth.signinSchool().pipe((0,LC.b)(function(e){console.log("AUTH FLOW"),t.document.location.href=e.redirect_uri}));var c=(0,qt.of)(!1).pipe((0,LC.b)(function(){console.log("NON AUTH FLOW"),t.router.navigate(["/"])}),ZC(function(){t.appState.loading=!1}));this.auth.authenticated.pipe(We(1),(0,Vt.zg)(function(e){return UN(function(){return!!e},t.authFlow,c)})).subscribe(function(){localStorage.clear()},function(e){t.appState.loading=!1,t.toastr.error(nk.Parse(e.code))})}},{key:"logout",value:function(){var t=this;this.auth.logout().pipe(DC(this.destroy$)).subscribe(function(){return t.router.navigate(["signin"])},function(){return t.toastr.error("Something went wrong. Please refresh the page.")})}},{key:"millisToMinutesAndSeconds",value:function(t){var e=Math.floor(t/6e4),n=+(t%6e4/1e3).toFixed(0);return e+":"+(n<10?"0":"")+n}},{key:"ngOnDestroy",value:function(){this.destroy$.next(!0),this.destroy$.unsubscribe()}},{key:"ngOnInit",value:function(){"true"===localStorage.getItem("checkout")&&(this.checkout=!0)}},{key:"isEmptyControl",value:function(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}},{key:"isFormInvalid",value:function(){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)(s.Y36(f),s.Y36(KC),s.Y36(uA),s.Y36(ik),s.Y36(Ak),s.Y36(Cw),s.Y36(dI),s.Y36(VO),s.Y36(NC))},t.\u0275cmp=s.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&&(s.TgZ(0,"div",0),s.TgZ(1,"article"),s.YNc(2,YN,50,9,"ng-container",1),s.ALo(3,"async"),s.YNc(4,KN,2,4,"ng-template",null,2,s.W1O),s.YNc(6,dL,2,4,"ng-template",null,3,s.W1O),s.qZA(),s.qZA()),2&t){var n=s.MAs(7);s.xp6(2),s.Q6J("ngIf",(null==e.auth.user?null:e.auth.user.has_changed_email)&&!1===s.lcZ(3,2,e.auth.emailVerified))("ngIfElse",n)}},directives:[G,kN,OC,Hb,TC,bE,LE,vb,Bb,EC,FS,gE,sE,gI],pipes:[tt],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 gL(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){var n=s.oxw();s.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),s.uIk("r",n._getCircleRadius())}}function mL(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){var n=s.oxw();s.Udp("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),s.uIk("r",n._getCircleRadius())}}var vL=$T(g(function t(e){v(this,t),this._elementRef=e}),"primary"),yL=new s.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),_L=function(t){function e(t,n,i,o,r){var a;v(this,e),(a=y(this,e,[t]))._document=i,a._diameter=100,a._value=0,a._fallbackAnimation=!1,a.mode="determinate";var s=e._diameters;return a._spinnerAnimationLabel=a._getSpinnerAnimationLabel(),s.has(i.head)||s.set(i.head,new Set([100])),a._fallbackAnimation=n.EDGE||n.TRIDENT,a._noopAnimations="NoopAnimations"===o&&!!r&&!r._forceAnimations,r&&(r.diameter&&(a.diameter=r.diameter),r.strokeWidth&&(a.strokeWidth=r.strokeWidth)),a}return b(e,t),g(e,[{key:"diameter",get:function(){return this._diameter},set:function(t){this._diameter=Gk(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=Gk(t)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,Gk(t)))}},{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=iT(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var t=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(t," ").concat(t)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var t=this._styleRoot,n=this._diameter,i=e._diameters,o=i.get(t);if(!o||!o.has(n)){var r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),r.textContent=this._getAnimationText(),t.appendChild(r),o||(o=new Set,i.set(t,o)),o.add(n)}}},{key:"_getAnimationText",value:function(){var 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,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}])}(vL);_L.\u0275fac=function(t){return new(t||_L)(s.Y36(s.SBq),s.Y36($k),s.Y36(f,8),s.Y36(ib,8),s.Y36(yL))},_L.\u0275cmp=s.Xpm({type:_L,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(s.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),s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[s.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&&(s.O4$(),s.TgZ(0,"svg",0),s.YNc(1,gL,1,9,"circle",1),s.YNc(2,mL,1,7,"circle",2),s.qZA()),2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.Q6J("ngSwitch","indeterminate"===e.mode),s.uIk("viewBox",e._getViewBox()),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1))},directives:[Q,J],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}),_L._diameters=new WeakMap;var bL,CL=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[WT,et],WT]}),t}(),xL={provide:new s.OlP("mat-select-scroll-strategy"),deps:[KA],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},wL=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[xL],imports:[[et,XA,CS,WT],pA,CE,CS,WT]}),t}(),OL={provide:new s.OlP("mat-menu-scroll-strategy"),deps:[KA],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},PL=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[OL],imports:[[et,WT,uS,XA],pA,WT]}),t}(),ML=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t}(),kL=new Set,TL=function(){var t=function(){return g(function t(e){v(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):SL},[{key:"matchMedia",value:function(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function(t){if(!kL.has(t))try{bL||((bL=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(bL)),bL.sheet&&(bL.sheet.insertRule("@media ".concat(t," {body{ }}"),0),kL.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG($k))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG($k))},token:t,providedIn:"root"}),t}();function SL(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var EL=function(){var t=function(){return g(function t(e,n){v(this,t),this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=ne
1w Ee.xQ},[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return AL(Bk(t)).some(function(t){return e._registerQuery(t).mql.matches})}},{key:"observe",value:function(t){var e=this,n=tx(AL(Bk(t)).map(function(t){return e._registerQuery(t).observable}));return(n=Cn(n.pipe(We(1)),n.pipe(qk(1),VM(0)))).pipe((0,Qt.U)(function(t){var e={matches:!1,breakpoints:{}};return t.forEach(function(t){var n=t.matches,i=t.query;e.matches=e.matches||n,e.breakpoints[i]=n}),e}))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new jt.y(function(t){var i=function(n){return e._zone.run(function(){return t.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(wn(n),(0,Qt.U)(function(e){var n=e.matches;return{query:t,matches:n}}),DC(this._destroySubject)),mql:n};return this._queries.set(t,i),i}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(TL),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(TL),s.LFG(s.R0b))},token:t,providedIn:"root"}),t}();function AL(t){return t.map(function(t){return t.split(",")}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.trim()})}var IL={tooltipState:xv("state",[Mv("initial, void, hidden",Pv({opacity:0,transform:"scale(0)"})),Mv("visible",Pv({transform:"scale(1)"})),kv("* => visible",wv("200ms cubic-bezier(0, 0, 0.2, 1)",function(t){return{type:5,steps:t}}([Pv({opacity:0,transform:"scale(0)",offset:0}),Pv({opacity:.5,transform:"scale(0.99)",offset:.5}),Pv({opacity:1,transform:"scale(1)",offset:1})]))),kv("* => hidden",wv("100ms cubic-bezier(0, 0, 0.2, 1)",Pv({opacity:0}
1)))])},RL="tooltip-panel",NL=nT({passive:!0}),LL=new s.OlP("mat-tooltip-scroll-strategy"),DL={provide:LL,deps:[KA],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},FL=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),UL=function(){var t=function(){return g(function t(e,n,i,o,r,a,s,c,u,l,h,f){var d=this;v(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=o,this._ngZone=r,this._platform=a,this._ariaDescriber=s,this._focusMonitor=c,this._dir=l,this._defaultOptions=h,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 Ee.xQ,this._handleKeydown=function(t){d._isTooltipVisible()&&27===t.keyCode&&!Zk(t)&&(t.preventDefault(),t.stopPropagation(),d._ngZone.run(function(){return d.hide(0)}))},this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),l.change.pipe(DC(this._destroyed)).subscribe(function(){d._overlayRef&&d._updatePosition(d._overlayRef)}),r.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",d._handleKeydown)})},[{key:"position",get:function(){return this._position},set:function(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()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=zk(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(t){var e=this;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(function(){Promise.resolve().then(function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var t=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(DC(this._destroyed)).subscribe(function(e){e?"keyboard"===e&&t._ngZone.run(function(){return t.show()}):t._ngZone.run(function(){return t.hide(0)})})}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(e){var n=i(e,2),o=n[0],r=n[1];t.removeEventListener(o,r,NL)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new vA(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(DC(this._destroyed)).subscribe(function(){return t._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return n.positionChanges.pipe(DC(this._destroyed)).subscribe(function(e){t._updateCurrentPositionClass(e.connectionPair),t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run(function(){return t.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-").concat(RL),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(DC(this._destroyed)).subscribe(function(){return t._detach()}),this._overlayRef.outsidePointerEvents().pipe(DC(this._destroyed)).subscribe(function(){var e;return null===(e=t._tooltipInstance)||void 0===e?void 0:e._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(t){var 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))])}},{key:"_addOffset",value:function(t){return t}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?t={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&e||"right"==n&&!e?t={originX:"start",originY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(t={originX:"end",originY:"center"});var i=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?t={overlayX:"center",overlayY:"bottom"}:"below"==n?t={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&e||"right"==n&&!e?t={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(t={overlayX:"start",overlayY:"center"});var i=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(We(1),DC(this._destroyed)).subscribe(function(){t._tooltipInstance&&t._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(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}}},{key:"_updateCurrentPositionClass",value:function(t){var e,n=t.overlayY,i=t.originX,o=t.originY;if((e="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===o?"above":"below")!==this._currentPosition){var r=this._overlayRef;if(r){var a="".concat(this._cssClassPrefix,"-").concat(RL,"-");r.removePanelClass(a+this._currentPosition),r.addPanelClass(a+e)}this._currentPosition=e}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var t=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsM
1ouseEvents()?this._passiveListeners.push(["mouseenter",function(){t._setupPointerExitEventsIfNeeded(),t.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){t._setupPointerExitEventsIfNeeded(),clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout(function(){return t.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var t,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return e.hide()}],["wheel",function(t){return e._wheelListener(t)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(t=this._passiveListeners).push.apply(t,n)}}},{key:"_addListeners",value:function(t){var e=this;t.forEach(function(t){var n=i(t,2),o=n[0],r=n[1];e._elementRef.nativeElement.addEventListener(o,r,NL)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(t){if(this._isTooltipVisible()){var e=this._document.elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e!==n&&!n.contains(e)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this.touchGestures;if("off"!==t){var 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)(s.Y36(KA),s.Y36(s.SBq),s.Y36(fA),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36($k),s.Y36(yT),s.Y36(LT),s.Y36(void 0),s.Y36(VT),s.Y36(void 0),s.Y36(f))},t.\u0275dir=s.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}(),ZL=function(){var t=function(t){function e(t,n,i,o,r,a,s,c,u,l,h,f){var d;return v(this,e),(d=y(this,e,[t,n,i,o,r,a,s,c,u,l,h,f]))._tooltipComponent=jL,d}return b(e,t),g(e)}(UL);return t.\u0275fac=function(e){return new(e||t)(s.Y36(KA),s.Y36(s.SBq),s.Y36(fA),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36($k),s.Y36(yT),s.Y36(LT),s.Y36(LL),s.Y36(VT,8),s.Y36(FL,8),s.Y36(f))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),t}(),qL=function(){var t=function(){return g(function t(e){v(this,t),this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Ee.xQ},[{key:"show",value:function(t){var e=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){e._visibility="visible",e._showTimeoutId=void 0,e._onShow(),e._markForCheck()},t)}},{key:"hide",value:function(t){var e=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){e._visibility="hidden",e._hideTimeoutId=void 0,e._markForCheck()},t)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"===e&&!this.isVisible()&&this._onHide.next(),("visible"===e||"hidden"===e)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t}),t}(),jL=function(){var t=function(t){function e(t,n){var i;return v(this,e),(i=y(this,e,[t]))._breakpointObserver=n,i._isHandset=i._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),i}return b(e,t),g(e)}(qL);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(EL))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){2&t&&s.Udp("zoom","visible"===e._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;(1&t&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&t)&&(s.ekj("mat-tooltip-handset",null==(n=s.lcZ(1,5,e._isHandset))?null:n.matches),s.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),s.xp6(2),s.Oqu(e.message))},directives:[q],pipes:[tt],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:[IL.tooltipState]},changeDetection:0}),t}(),VL=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[DL],imports:[[qT,et,XA,WT],WT,pA]}),t}(),zL=[ML,QI,TN,CE,DE,US,CL,wL,JE,pI,PL,VL],GL=function(){var t=g(function t(e,n){v(this,t),this._iconRegistry=e,this._sanitizer=n,e.addSvgIcon("add",n.bypassSecurityTrustResourceUrl("assets/svg/add_circle_outline.svg")),e.addSvgIcon("apartment",n.bypassSecurityTrustResourceUrl("assets/svg/apartment.svg")),e.addSvgIcon("assessment",n.bypassSecurityTrustResourceUrl("assets/svg/assessment.svg")),e.addSvgIcon("business",n.bypassSecurityTrustResourceUrl("assets/svg/business.svg")),e.addSvgIcon("arrow_drop_down",n.bypassSecurityTrustResourceUrl("assets/svg/arrow_drop_down.svg")),e.addSvgIcon("email",n.bypassSecurityTrustResourceUrl("assets/svg/email.svg")),e.addSvgIcon("face",n.bypassSecurityTrustResourceUrl("assets/svg/face.svg")),e.addSvgIcon("help",n.bypassSecurityTrustResourceUrl("assets/svg/help.svg")),e.addSvgIcon("home",n.b
1ypassSecurityTrustResourceUrl("assets/svg/home.svg")),e.addSvgIcon("info",n.bypassSecurityTrustResourceUrl("assets/svg/info.svg")),e.addSvgIcon("licences",n.bypassSecurityTrustResourceUrl("assets/svg/licences.svg")),e.addSvgIcon("lock",n.bypassSecurityTrustResourceUrl("assets/svg/lock.svg")),e.addSvgIcon("mail",n.bypassSecurityTrustResourceUrl("assets/svg/mail.svg")),e.addSvgIcon("menu",n.bypassSecurityTrustResourceUrl("assets/svg/menu.svg")),e.addSvgIcon("more-vert",n.bypassSecurityTrustResourceUrl("assets/svg/more-vert.svg")),e.addSvgIcon("people",n.bypassSecurityTrustResourceUrl("assets/svg/people.svg")),e.addSvgIcon("person",n.bypassSecurityTrustResourceUrl("assets/svg/person.svg")),e.addSvgIcon("public",n.bypassSecurityTrustResourceUrl("assets/svg/public.svg")),e.addSvgIcon("settings",n.bypassSecurityTrustResourceUrl("assets/svg/settings.svg")),e.addSvgIcon("tick-fail",n.bypassSecurityTrustResourceUrl("assets/svg/tick-fail.svg")),e.addSvgIcon("tick-success",n.bypassSecurityTrustResourceUrl("assets/svg/tick-success.svg")),e.addSvgIcon("remove",n.bypassSecurityTrustResourceUrl("assets/svg/remove_circle_outline.svg")),e.addSvgIcon("arrow_down",n.bypassSecurityTrustResourceUrl("assets/svg/arrow_down.svg")),e.addSvgIcon("work",n.bypassSecurityTrustResourceUrl("assets/svg/work.svg")),e.addSvgIcon("Youtube Icon",n.bypassSecurityTrustResourceUrl("assets/svg/Youtube Icon.svg")),e.addSvgIcon("Twitter",n.bypassSecurityTrustResourceUrl("assets/svg/Twitter.svg")),e.addSvgIcon("Linkedin Icon",n.bypassSecurityTrustResourceUrl("assets/svg/Linkedin Icon.svg")),e.addSvgIcon("Facebook Icon",n.bypassSecurityTrustResourceUrl("assets/svg/Facebook Icon.svg")),e.addSvgIcon("Instagram Icon",n.bypassSecurityTrustResourceUrl("assets/svg/Instagram Icon.svg")),e.addSvgIcon("Podcast",n.bypassSecurityTrustResourceUrl("assets/svg/Podcast.svg")),e.addSvgIcon("MALogoColor",n.bypassSecurityTrustResourceUrl("assets/svg/MALogoColor.svg")),e.addSvgIcon("menu_close",n.bypassSecurityTrustResourceUrl("assets/svg/menu_close.svg")),e.addSvgIcon("lockEye",n.bypassSecurityTrustResourceUrl("assets/svg/lockEye.svg")),e.addSvgIcon("errorInfo",n.bypassSecurityTrustResourceUrl("assets/svg/errorInfo.svg")),e.addSvgIcon("openEye",n.bypassSecurityTrustResourceUrl("assets/svg/openEye.svg")),e.addSvgIcon("Desktop_icon",n.bypassSecurityTrustResourceUrl("assets/svg/Desktop_icon.svg")),e.addSvgIcon("alert-triangle",n.bypassSecurityTrustResourceUrl("assets/svg/alert-triangle.svg")),e.addSvgIcon("info_color",n.bypassSecurityTrustResourceUrl("assets/svg/info_color.svg")),e.addSvgIcon("bundle_icon",n.bypassSecurityTrustResourceUrl("assets/svg/bundle_icon.svg"))});return t.\u0275fac=function(e){return new(e||t)(s.LFG(TS),s.LFG(Lt))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:yE,useValue:{appearance:"outline"}}],imports:[[].concat(zL),ML,QI,TN,CE,DE,US,CL,wL,JE,pI,PL,VL]}),t}(),BL=function(){return{exact:!0}};function HL(t,e){if(1&t&&(s.TgZ(0,"li",11),s._uU(1),s.qZA()),2&t){var n=s.oxw().$implicit;s.Q6J("routerLink",n.url)("routerLinkActiveOptions",s.DdM(3,BL)),s.xp6(1),s.hij(" ",n.text," ")}}function YL(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"li",12),s.NdJ("click",function(){s.CHM(n);var t=s.oxw().$implicit;return s.oxw().navigateExternalURL(t)}),s._uU(1),s.qZA()}if(2&t){var i=s.oxw().$implicit;s.xp6(1),s.hij(" ",i.text," ")}}function QL(t,e){if(1&t&&(s.ynx(0),s.YNc(1,HL,2,4,"li",9),s.YNc(2,YL,2,1,"li",10),s.BQk()),2&t){var n=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("ngIf",i.isInternalURL(n)),s.xp6(1),s.Q6J("ngIf",i.isExternalURL(n))}}var JL=function(){var t=function(){return g(function t(e,n,i,o,r){v(this,t),this.document=e,this.auth=n,this.toastr=i,this.router=o,this.appState=r,this.isDirty$=new WC(!1)},[{key:"ngOnInit",value:function(){}},{key:"updateProfilePicture",value:function(t){var e=this;this.appState.loading=!0,this.isDirty$.next(!0),this.auth.updateUserProfileImage(t).pipe(We(1),ZC(function(){e.appState.loading=!1,e.isDirty$.next(!1)})).subscribe(function(t){e.toastr.success("Profile image successfully updated"),console.log("Upload profile picture: ",t),e.auth.profilePictureUrl=t},function(t){e.toastr.error("Invalid format for uploaded profile image, please try to upload a different image"),console.log("An error has occurred: ",t)})}},{key:"isExternalURL",value:function(t){return"string"==typeof t.url}},{key:"isInternalURL",value:function(t){return t.url instanceof Array}},{key:"navigateExternalURL",value:function(t){this.document.location.href=t.url}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(f),s.Y36(ik),s.Y36(Ak),s.Y36(VO),s.Y36(KC))},t.\u0275cmp=s.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){var n=s.EpF();s.ynx(0),s.TgZ(1,"div",0),s.TgZ(2,"div",1),s._UZ(3,"img",2),s.TgZ(4,"input",3,4),s.NdJ("
1change",function(t){return e.updateProfilePicture(t)}),s.qZA(),s.qZA(),s.TgZ(6,"div",5),s.TgZ(7,"a",6),s.NdJ("click",function(){return s.CHM(n),s.MAs(5).click()}),s._UZ(8,"img",7),s.qZA(),s.qZA(),s.qZA(),s.BQk(),s.TgZ(9,"ul"),s.YNc(10,QL,3,2,"ng-container",8),s.qZA()}2&t&&(s.xp6(3),s.Q6J("src",e.auth.profilePictureUrl||e.auth.profileImage,s.LSH),s.xp6(7),s.Q6J("ngForOf",e.navigation))},directives:[V,G,YO,GO],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;left: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}(),WL=function(){var t=function(){return g(function t(e,n,i,o,r){var a=this;v(this,t),this.document=e,this.route=n,this.appState=i,this.auth=o,this.toastr=r,this.route.url.subscribe(function(t){switch(t[0].path){case"home":a.navigateToSchool();break;case"collections":return window.location.href="https://www.medics.academy/collections";
1case"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"}})},[{key:"ngOnInit",value:function(){this.appState.loading=!0}},{key:"navigateToSchool",value:function(){var t=this,e=this.auth.signinSchool().pipe((0,LC.b)(function(e){t.document.location.href=e.redirect_uri})),n=(0,qt.of)(!1).pipe((0,LC.b)(function(){t.document.location.href="https://medics.academy"}));this.auth.authenticated.pipe((0,Vt.zg)(function(t){return UN(function(){return!!t},e,n)})).subscribe(function(){},function(e){t.toastr.error(e),t.appState.loading=!1})}},{key:"ngOnDestroy",value:function(){this.appState.loading=!1}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(f),s.Y36(Cw),s.Y36(KC),s.Y36(ik),s.Y36(Ak))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-redirect"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t}(),KL=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[],imports:[[et,GL,RC,IC,oP],et,GL,RC,IC,oP]}),t}();function $L(t,e){if(1&t&&s._UZ(0,"confirm-password-reset",4),2&t){var n=s.oxw(2);s.Q6J("params",n.params)}}function XL(t,e){if(1&t&&(s.ynx(0),s.YNc(1,$L,1,1,"confirm-password-reset",3),s.BQk()),2&t){var n=s.oxw();s.xp6(1),s.Q6J("ngIf",n.ischeckCode)}}function tD(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"recover-email",4),s.BQk()),2&t){var n=s.oxw();s.xp6(1),s.Q6J("params",n.params)}}function eD(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"verify-email-address",4),s.BQk()),2&t){var n=s.oxw();s.xp6(1),s.Q6J("params",n.params)}}function nD(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"reactivate-account",4),s.BQk()),2&t){var n=s.oxw();s.xp6(1),s.Q6J("params",n.params)}}function iD(t,e){1&t&&(s.ynx(0),s.TgZ(1,"p",5),s._uU(2,"Invalid params."),s.qZA(),s.BQk())}var oD=["resetPassword","recoverEmail","verifyEmail","reactivateAccount"],rD=function(){var t=function(){return g(function t(e,n,i,o){v(this,t),this.afAuth=e,this._toastr=n,this.route=i,this.router=o,this.ischeckCode=!1,this.params=i.snapshot.queryParams},[{key:"ngOnInit",value:function(){var t=this;oD.includes(this.params.mode)||this.router.navigate(["/"]),"resetPassword"===this.params.mode&&this.afAuth.checkActionCode(this.params.oobCode).then(function(e){t.ischeckCode=!0}).catch(function(e){console.log(e),("auth/invalid-action-code"===e.code||"auth/expired-action-code"===e.code)&&(t.router.navigate(["/reset-password"]),t._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)(s.Y36(vn),s.Y36(Ak),s.Y36(Cw),s.Y36(VO))},t.\u0275cmp=s.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&&(s.ynx(0,0),s.YNc(1,XL,2,1,"ng-container",1),s.YNc(2,tD,2,1,"ng-container",1),s.YNc(3,eD,2,1,"ng-container",1),s.YNc(4,nD,2,1,"ng-container",1),s.YNc(5,iD,3,0,"ng-container",2),s.BQk()),2&t&&(s.Q6J("ngSwitch",e.params.mode),s.xp6(1),s.Q6J("ngSwitchCase","resetPassword"),s.xp6(1),s.Q6J("ngSwitchCase","recoverEmail"),s.xp6(1),s.Q6J("ngSwitchCase","verifyEmail"),s.xp6(1),s.Q6J("ngSwitchCase","reactivateAccount"))},encapsulation:2}),t}(),aD=["params",""];function sD(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",21),s._uU(2," Please enter a password "),s.BQk())}function cD(t,e){1&t&&(s._UZ(0,"mat-icon",21),s._uU(1," Password must contain at least eight characters "))}function uD(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s.YNc(1,sD,3,0,"ng-container",19),s.YNc(2,cD,2,0,"ng-template",null,20,s.W1O),s.qZA()),2&t){var n=s.MAs(3),i=s.oxw(2);s.xp6(1),s.Q6J("ngIf",i.isEmptyControl(i.password))("ngIfElse",n)}}function lD(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",21),s._uU(2," Please enter a password "),s.BQk())}function hD(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",21),s._uU(2," Password does not match "),s.BQk())}function fD(t,e){if(1&t&&s.YNc(0,hD,3,0,"ng-container",17),2&t){var n=s.oxw(3);s.Q6J("ngIf",!n.passwordDoesMatch)}}function dD(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s.YNc(1,lD,3,0,"ng-container",19),s.YNc(2,fD,1,1,"ng-template",null,20,s.W1O),s.qZA()),2&t){var n=s.MAs(3),i=s.oxw(2);s.xp6(1),s.Q6J("ngIf",i.isEmptyControl(i.passwordConfirm))("ngIfElse",n)}}function pD(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"form",8),s.NdJ("submit",function(){return s.CHM(n),s.oxw().setPassword()}),s.TgZ(1,"div",9),s.TgZ(2,"div",10),s.TgZ(3,"div",11),s.TgZ(4,"span"),s._uU(5,"Password"),s.qZA(),s.qZA(),s.TgZ(6,"mat-form-field",12),s._UZ(7,"input",13),s.TgZ(8,"button",14),s.NdJ("
1click",function(){s.CHM(n);var t=s.oxw();return t.hide=!t.hide}),s.TgZ(9,"mat-icon",15),s._uU(10),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"div",16),s.YNc(12,uD,4,2,"mat-error",17),s.qZA(),s.qZA(),s.qZA(),s.TgZ(13,"div",9),s.TgZ(14,"div",10),s.TgZ(15,"div",11),s.TgZ(16,"span"),s._uU(17,"Confirm Password"),s.qZA(),s.qZA(),s.TgZ(18,"mat-form-field",12),s._UZ(19,"input",18),s.TgZ(20,"button",14),s.NdJ("click",function(){s.CHM(n);var t=s.oxw();return t.hidec=!t.hidec}),s.TgZ(21,"mat-icon",15),s._uU(22),s.qZA(),s.qZA(),s.qZA(),s.TgZ(23,"div",16),s.YNc(24,dD,4,2,"mat-error",17),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){var i=s.oxw();s.Q6J("formGroup",i.formGroup),s.xp6(7),s.Q6J("type",i.hide?"password":"text"),s.xp6(1),s.uIk("aria-pressed",i.hide),s.xp6(2),s.Oqu(i.hide?"visibility_off":"visibility"),s.xp6(2),s.Q6J("ngIf",i.password.invalid&&(i.password.dirty||i.password.touched)),s.xp6(7),s.Q6J("type",i.hidec?"password":"text"),s.xp6(1),s.uIk("aria-pressed",i.hide),s.xp6(2),s.Oqu(i.hidec?"visibility_off":"visibility"),s.xp6(2),s.Q6J("ngIf",i.passwordConfirm.dirty||i.passwordConfirm.touched)}}function gD(t,e){1&t&&(s.TgZ(0,"div",22),s.TgZ(1,"div",22),s._UZ(2,"div",23),s.qZA(),s.qZA())}var mD=function(){var t=function(){return g(function t(e,n,i,o,r){v(this,t),this.afAuth=e,this.fb=n,this.router=i,this._toastr=o,this._auth=r,this.loading=!1,this.hide=!0,this.hidec=!0},[{key:"password",get:function(){return this.formGroup.get("password")}},{key:"passwordConfirm",get:function(){return this.formGroup.get("confirmPassword")}},{key:"passwordDoesMatch",get:function(){return this.password.value===this.passwordConfirm.value}},{key:"passwordError",get:function(){return this._auth.getPasswordValidationError(this.password)}},{key:"initFormGroup",value:function(){return this.fb.group({password:[null,[wb.required,wb.minLength(8)]],confirmPassword:[null,[wb.required]]},{validators:kI("password","confirmPassword")})}},{key:"setPassword",value:function(){var t=this;if(!this.formGroup.invalid)return this.loading=!0,(0,Ae.D)(this.afAuth.confirmPasswordReset(this.params.oobCode,this.password.value)).pipe(We(1),ZC(function(){return t.loading=!1})).subscribe(function(){return localStorage.setItem("reset-password","true"),t._toastr.success("Great! Password updated successfully!"),window.scrollTo(0,0),t.router.navigate(["successful-reset-password"])},function(e){"auth/invalid-action-code"===(console.log(e.code),e.code)?t._toastr.error("The link has expired. Please enter your email address so a new link can be emailed to you."):t._toastr.error(nk.Parse(e.code)),window.scrollTo(0,0),t.router.navigate(["/reset-password"])});this._toastr.error(JC)}},{key:"isEmptyControl",value:function(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}},{key:"ngOnInit",value:function(){this.formGroup=this.initFormGroup()}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(vn),s.Y36(NC),s.Y36(VO),s.Y36(Ak),s.Y36(ik))},t.\u0275cmp=s.Xpm({type:t,selectors:[["confirm-password-reset","params",""]],inputs:{params:"params"},attrs:aD,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&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"h3"),s._uU(3,"Create new password"),s.qZA(),s.qZA(),s.TgZ(4,"div",2),s.TgZ(5,"div",3),s.TgZ(6,"p"),s._uU(7,"Your new password must be different from previous passwords."),s.qZA(),s.qZA(),s.YNc(8,pD,25,9,"form",4),s.YNc(9,gD,3,0,"ng-template",null,5,s.W1O),s.qZA(),s.TgZ(11,"div",6),s.TgZ(12,"button",7),s._uU(13," Change my password "),s.qZA(),s.qZA(),s.qZA()),2&t){var n=s.MAs(10);s.xp6(8),s.Q6J("ngIf",!e.loading)("ngIfElse",n),s.xp6(4),s.Q6J("disabled",e.loading||e.formGroup.invalid)}},directives:[G,OC,Hb,TC,bE,LE,vb,Bb,EC,kN,gE,FS,sE],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}(),vD=["params",""],yD=function(){var t=function(){return g(function t(e,n,i,o,r){v(this,t),this.afAuth=e,this.auth=n,this._toastr=i,this._appState=o,this.router=r,this.destroy$=new Ee.xQ},[{key:"ngOnInit",value:function(){var t=this;this._appState.loading=!0;var e=this.auth.checkEmailVerification(this.params.token).pipe((0,LC.b)(function(){t.router.navigate(["auth","verify"])}),Fe(function(){return t.auth.reload()}),ZC(function(){t._appState.loading=!1})),n=(0,qt.of)(!1).pipe((0,LC.b)(function(){return t._toastr.warning("Please sign in to verify your email address"),t.router.navigate(["/signin"],{queryParams:{email_verification_token:t.params.token}})}),ZC(function(){t._appState.loading=!1}));PE(1e3).pipe(Fe(function(){return t.auth.authenticated}),DC(this.destroy$),(0,Vt.zg)(function(t){return UN(function(){return!!t},e,n)})).subscribe(function(){console.log("Verification Succsess!")},function(e){return t._appState.loading=!1,t._toastr.error("The verification link is invalid. Please check the link and try again"),t.router.navigate(["auth","verify"])})}},{key:"ngOnDestroy",value:function(){this.destroy$.next(!0),this.destroy$.unsubscribe()}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(vn),s.Y36(ik),s.Y36(Ak),s.Y36(KC),s.Y36(VO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["verify-email-address","params",""]],inputs:{params:"params"},attrs:vD,decls:0,vars:0,template:function(t,e){},encapsulation:2}),t}(),_D=["params",""],bD=function(){var t=function(){return g(function t(e,n,i,o,r){v(this,t),this.afAuth=e,this._auth=n,this._appState=i,this.router=o,this._toastr=r},[{key:"ngOnInit",value:function(){var t=this;return console.log(this.params),this.handleRecoverEmail().pipe(Fe(function(){return t._auth.logout()})).subscribe(function(){t._toastr.success("Your email address has been changed back to ".concat(t.restoredEmail,". Please sign in")),t.router.navigate([""],{queryParams:{new_email:t.restoredEmail}})},function(e){t._toastr.error(nk.Parse(e.code)),t.router.navigate(["/"])})}},{key:"handleRecoverEmail",value:function(){var t=this;return this._appState.loading=!0,(0,Ae.D)(this.afAuth.checkActionCode(this.params.oobCode)).pipe(Fe(function(e){return t.restoredEmail=e.data.email,(0,Ae.D)(t.afAuth.applyActionCode(t.params.oobCode))}),Fe(function(e){return t._auth.checkUserEmail(t.restoredEmail)}),We(1),ZC(function(){return t._appState.loading=!1}))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(vn),s.Y36(ik),s.Y36(KC),s.Y36(VO),s.Y36(Ak))},t.\u0275cmp=s.Xpm({type:t,selectors:[["recover-email","params",""]],inputs:{params:"params"},attrs:_D,decls:0,vars:0,template:function(t,e){},encapsulation:2}),t}();function CD(t,e){1&t&&(s.TgZ(0,"div",1),s.TgZ(1,"div",2),s._UZ(2,"mat-icon",3),s.qZA(),s.TgZ(3,"div",4),s.TgZ(4,"h3"),s._uU(5,"Welcome back!"),s.qZA(),s.qZA(),s.TgZ(6,"div",5),s.TgZ(7,"p",6),s._uU(8,"You have successfully reactivated your account. Sign in."),s.qZA(),s.qZA(),s.TgZ(9,"div",7),s.TgZ(10,"button",8),s._uU(11,"Sign in"),s.qZA(),s.qZA(),s.qZA())}var xD=function(){var t=function(){return g(function t(e,n,i,o){v(this,t),this.auth=e,this.appState=n,this.toastr=i,this.router=o,this.showSuccessMessage=!1},[{key:"ngOnInit",value:function(){var t=this;this.appState.loading$.next(!0),this.auth.recoverAccount(this.params.token).subscribe(function(){t.appState.loading$.next(!1),t.showSuccessMessage=!0},function(e){return 405==e.error.status?(t.toastr.error("This account has already been reactivated, please sign in."),t.router.navigate([""])):(t.toastr.error("Something went wrong. Please contact [email protected]"),t.router.navigate([""]))})}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(ik),s.Y36(KC),s.Y36(Ak),s.Y36(VO))},t.\u0275cmp=s.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&&s.YNc(0,CD,12,0,"div",0),2&t&&s.Q6J("ngIf",e.showSuccessMessage)},directives:[G,FS,GO],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 wD(t,e){1&t&&(s.TgZ(0,"div",9),s._UZ(1,"img",10),s.qZA())}var OD=function(){var t=function(){return g(function t(e,n,i,o,r){v(this,t),this.afAuth=e,this.fb=n,this.router=i,this._toastr=o,this._auth=r,this.loading=!1},[{key:"password",get:function(){return this.formGroup.get("password")}},{key:"passwordConfirm",get:function(){return this.formGroup.get("confirmPassword")}},{key:"initFormGroup",value:function(){return this.fb.group({password:[null,[wb.required,wb.minLength(8),wb.pattern(this._auth.goodPasswordStrengthRegex)]],confirmPassword:[null,[wb.required]]},{validators:kI("password","confirmPassword")})}},{key:"sign",value:function(){var t=localStorage.getItem("admin_dashboard"),e=localStorage.getItem("bursary_internal_dashboard");"true"===t?(localStorage.removeItem("admin_dashboard"),document.location.href=gP):"true"===e?(localStorage.removeItem("bursary_internal_dashboard"),document.location.href="https://ma-bursary-internal-dashboard.web.app/"):document.location.href="/"}},{key:"setPassword",value:function(){var t=this;if(!this.formGroup.invalid)return this.loading=!0,(0,Ae.D)(this.afAuth.confirmPasswordReset(this.params.oobCode,this.password.value)).pipe(We(1),ZC(function(){return t.loading=!1})).subscribe(function(){return t._toastr.success("Great! Password updated successfully!"),t.router.navigate([""])},function(e){"auth/invalid-action-code"===(console.log(e.code),e.code)?t._toastr.error("The link has expired. Please enter your email address so a new link can be emailed to you."):t._toastr.error(nk.Parse(e.code)),t.router.navigate(["/reset-password"])});this._toastr.error(JC)}},{key:"isEmptyControl",value:function(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}},{key:"ngOnInit",value:function(){this.formGroup=this.initFormGroup()}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(vn),s.Y36(NC),s.Y36(VO),s.Y36(Ak),s.Y36(ik))},t.\u0275cmp=s.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&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-icon",1),s._uU(2," check_circle_outline "),s.qZA(),s.TgZ(3,"div",2),s._UZ(4,"br"),s.TgZ(5,"h3",3),s._uU(6," Your password has been successfully changed "),s.qZA(),s.qZA(),s.TgZ(7,"div",4),s.TgZ(8,"p",5),s._uU(9,"Use your new password to sign in."),s.qZA(),s.YNc(10,wD,2,0,"ng-template",null,6,s.W1O),s.qZA(),s.TgZ(12,"div",7),s.TgZ(13,"button",8),s.NdJ("
1click",function(){return e.sign()}),s._uU(14," Sign in "),s.qZA(),s.qZA(),s.qZA())},directives:[FS],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}(),PD=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[],imports:[[KL,cN]]}),t}();s.B6R(rD,[Q,J,G,mD,bD,yD,xD,W],[]);var MD=function(){var t=g(function t(){v(this,t),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=s.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&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s._UZ(2,"sidebar-navigation",2),s.TgZ(3,"article"),s._UZ(4,"router-outlet"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("navigation",e.profileNavigation))},directives:[JL,QO],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}(),kD=function(){var t=function(){return g(function t(e,n){v(this,t),this.auth=e,this.router=n},[{key:"canActivate",value:function(t,e){var n=this;return this.auth.user$.pipe((0,Qt.U)(function(t){return!!t}),(0,LC.b)(function(t){t||(console.log("access denied"),n.router.navigate(["/signin"]))}))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(ik),s.LFG(VO))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),TD=function(){var t=function(){return g(function t(e,n,i,o,r){v(this,t),this.document=e,this.auth=n,this.router=i,this.appState=o,this.afAuth=r},[{key:"canActivate",value:function(t,e){var n=this;return tx([this.auth.authUser,this.afAuth.authState]).pipe((0,Qt.U)(function(t){var e=i(t,2),n=e[0],o=e[1];return{emailVerified:null==n?void 0:n.emailVerified,loggedIn:!!o}}),(0,Vt.zg)(function(e){var i=e.emailVerified;
1if(e.loggedIn){n.appState.loading=!0;var o=t.queryParams;if("true"===o.admin_dashboard?n.setLocalStorageItem("admin_dashboard","true"):"true"===o.bursary_internal_dashboard?n.setLocalStorageItem("bursary_internal_dashboard","true"):"true"===o.bursary_external_dashboard&&n.setLocalStorageItem("bursary_external_dashboard","true"),o.product_id&&o.th__c&&o.th__ug){var r={product_id:decodeURIComponent(o.product_id),group_token:decodeURIComponent(o.th__ug),coupon_code:decodeURIComponent(o.th__c),redeemed:!1};return i?(console.log("IS LOGGED IN GUARD: Navigate to school"),n.handleValidCoupon(r)):(console.log("IS LOGGED IN GUARD: Email not verified"),n.handleUnverifiedEmail(r))}return o.custom_auth&&o.redirect_url?n.handleCustomAuth(o.redirect_url):o.checkout?n.navigateToSchool({checkout:!0,product_id:o.productId,price_id:o.priceId}):n.navigateToSchool()}return console.log("IS LOGGED IN GUARD: RETURN TRUE"),n.appState.loading=!1,(0,qt.of)(!0)}))}},{key:"setLocalStorageItem",value:function(t,e){localStorage.setItem(t,e)}},{key:"handleUnverifiedEmail",value:function(t){var e=this;return this.auth.addCoupon(t).pipe(Fe(function(){return e.router.navigate(["/auth/verify"])}),(0,Qt.U)(function(){return!1}))}},{key:"handleValidCoupon",value:function(t){var e=this;return this.auth.addCoupon(t).pipe(Fe(function(){return e.navigateToSchool()}),(0,Qt.U)(function(){return!1}))}},{key:"handleCustomAuth",value:function(t){return this.auth.getAuthTokenFromServer(t).pipe((0,LC.b)(function(t){var e=t.redirectUri;return window.location.href=e}),(0,Qt.U)(function(){return!1}))}},{key:"navigateToSchool",value:function(t){var e=this;return t?this.auth.signEnroll(t.product_id,t.price_id).pipe((0,LC.b)(function(t){var n=t.redirect_uri;return e.document.location.href=n}),(0,Qt.U)(function(){return!1})):this.auth.signinSchool().pipe((0,LC.b)(function(t){e.document.location.href=t.redirect_uri}),(0,Qt.U)(function(){return!1}))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(f),s.LFG(ik),s.LFG(VO),s.LFG(KC),s.LFG(vn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),SD=function(){var t=function(){return g(function t(e,n,i){v(this,t),this.auth=e,this.router=n,this._afAuth=i},[{key:"canActivate",value:function(t,e){var n=this;return this._afAuth.authState.pipe((0,Qt.U)(function(t){return t.emailVerified}),(0,LC.b)(function(t){var e=!t;console.log({emailNotVerified:e}),e&&n.router.navigate(["/auth/verify"])}))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(ik),s.LFG(VO),s.LFG(vn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}();function ED(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"div",4),s._UZ(1,"mat-icon",5),s.TgZ(2,"p"),s._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?"),s.qZA(),s.TgZ(4,"div",6),s.TgZ(5,"button",7),s.NdJ("click",function(){return s.CHM(n),s.oxw().deleteAccount()}),s._uU(6,"Yes, delete"),s.qZA(),s.TgZ(7,"button",8),s.NdJ("click",function(){return s.CHM(n),s.oxw().dialogRef.close()}),s._uU(8,"No, don't delete"),s.qZA(),s.qZA(),s.qZA()}}function AD(t,e){1&t&&(s.TgZ(0,"div",4),s.TgZ(1,"h3"),s._uU(2,"Delete Account"),s.qZA(),s.TgZ(3,"p",9),s._uU(4,"We are processing your request, please wait..."),s.qZA(),s.qZA())}function ID(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"div",4),s.TgZ(1,"h3"),s._uU(2,"Goodbye!"),s.qZA(),s.TgZ(3,"p"),s._uU(4,"Your account has been deleted."),s.qZA(),s.TgZ(5,"p"),s._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."),s.qZA(),s.TgZ(7,"div",6),s.TgZ(8,"button",8),s.NdJ("click",function(){return s.CHM(n),s.oxw().goodBye()}),s._uU(9,"Ok"),s.qZA(),s.qZA(),s.qZA()}}var RD=function(){var t=function(){return g(function t(e,n,i){v(this,t),this.dialogRef=e,this.router=n,this._auth=i,this.dialogState="initial",e.disableClose=!0},[{key:"ngOnInit",value:function(){}},{key:"close",value:function(){"goodbye"===this.dialogState?(this.dialogRef.close(),this.router.navigate(["auth","logout"])):this.dialogRef.close()}},{key:"deleteAccount",value:function(){var t=this;return this.dialogState="awaiting",this._auth.deleteAccount().pipe(ZC(function(){return t.dialogState="goodbye"})).subscribe(function(t){console.log({res:t})},function(t){return console.error})}},{key:"goodBye",value:function(){return this.dialogRef.close(),this.router.navigate(["auth","logout"])}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(aI),s.Y36(VO),s.Y36(ik))},t.\u0275cmp=s.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&&(s.ynx(0,0),s.YNc(1,ED,9,0,"ng-template",1),s.YNc(2,AD,5,0,"ng-template",2),s.YNc(3,ID,10,0,"ng-template",3),s.BQk()),2&t&&s.Q6J("ngSwitch",e.dialogState)},directives:[Q,J,FS],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;
1background:#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}(),ND=r(8873),LD=function(){return["/home"]};function DD(t,e){1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"p"),s._uU(2," Your profile is being verified and can\u2019t currently be updated. Please check back later. "),s.qZA(),s.TgZ(3,"div",6),s.TgZ(4,"button",7),s._uU(5," Back to courses "),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.Q6J("routerLink",s.DdM(1,LD)))}function FD(t,e){1&t&&(s.TgZ(0,"div",8),s.TgZ(1,"div",9),s._UZ(2,"div",10),s.qZA(),s.qZA())}function UD(t,e){if(1&t){var n=s.EpF();s.ynx(0),s.TgZ(1,"auth-user-form",11),s.NdJ("submitted",function(t){return s.CHM(n),s.oxw().submit(t)}),s.qZA(),s.TgZ(2,"div",12),s.TgZ(3,"div",13),s.TgZ(4,"button",14),s.NdJ("click",function(){return s.CHM(n),s.oxw().openDeleteAccountDialog()}),s._uU(5,"Delete account "),s.qZA(),s.qZA(),s.TgZ(6,"button",15),s.NdJ("click",function(){return s.CHM(n),s.oxw().authUserForm.submit()}),s._uU(7," Save changes "),s.qZA(),s.qZA(),s.BQk()}if(2&t){var i=s.oxw();s.xp6(1),s.Q6J("user",i.auth.user)("mode","update"),s.xp6(2),s.Q6J("matTooltipDisabled",!i.disableDeleteButton()),s.xp6(1),s.Q6J("disabled",i.disableDeleteButton()||!i.user.thinkific_uid),s.xp6(2),s.Q6J("disabled",!i.user.thinkific_uid||!(null==i.authUserForm||null==i.authUserForm.formGroup||!i.authUserForm.formGroup.invalid)||i.isFormChange)}}function ZD(t,e){1&t&&(s.TgZ(0,"div",16),s.TgZ(1,"div",9),s._UZ(2,"div",10),s.qZA(),s.qZA())}var qD=function(){var t=function(){return g(function t(e,n,i,o){v(this,t),this.auth=e,this.formBuilder=n,this.toastr=i,this.dialog=o,this.loadingProfileInfo=!1,this.isFormChange=!0,this.isDirty$=new WC(!1),this.destroy$=new Ee.xQ},[{key:"canDeactivate",value:function(){return!this.isDirty$.getValue()}},{key:"ngOnInit",value:function(){this.user=this.auth.user}},{key:"ngAfterViewInit",value:function(){var t=this;this.authUserForm.formGroup.valueChanges.pipe(En(),(0,LC.b)(function(){t.isFormChange=!1,t.isDirty$.next(!0)}),DC(this.destroy$)).subscribe()}},{key:"disableDeleteButton",value:function(){var t,e;return!!(null===(t=this.user)||void 0===t?void 0:t.account_recovered_at)&&ND(new Date).diff(ND(null===(e=this.user)||void 0===e?void 0:e.account_recovered_at.toDate()),"day",!0)<7}},{key:"submit",value:function(t){var e=this;delete t.email,this.loadingProfileInfo=!0,this.auth.updateUser(t).pipe(DC(this.destroy$)).subscribe(function(t){e.isDirty$.next(!1),e.loadingProfileInfo=!1,e.toastr.success("Profile successfully updated")},function(t){console.error("Update error: ",t&&t.message?t.message:t),e.toastr.error("An error occurred please try again later")})}},{key:"openDeleteAccountDialog",value:function(){this.dialog.open(RD,{width:"584px",height:"auto"})}},{key:"ngOnDestroy",value:function(){this.destroy$.next(!0),this.destroy$.unsubscribe(),this.isDirty$.unsubscribe()}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(ik),s.Y36(NC),s.Y36(Ak),s.Y36(dI))},t.\u0275cmp=s.Xpm({type:t,selectors:[["profile-info"]],viewQuery:function(t,e){var n;(1&t&&s.Gf($R,5),2&t)&&(s.iGM(n=s.CRH())&&(e.authUserForm=n.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&&(s.YNc(0,DD,6,2,"div",0),s.TgZ(1,"div",1),s.YNc(2,FD,3,0,"ng-template",null,2,s.W1O),s.qZA(),s.YNc(4,UD,8,5,"ng-container",3),s.YNc(5,ZD,3,0,"ng-template",null,4,s.W1O)),2&t){var n=s.MAs(6);s.Q6J("ngIf",!e.user.thinkific_uid),s.xp6(4),s.Q6J("ngIf",!e.loadingProfileInfo)("ngIfElse",n)}},directives:[G,GO,$R,ZL],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}(),jD=["formDirective"],VD=function(){return["/home"]};function zD(t,e){1&t&&(s.TgZ(0,"div",3),s.TgZ(1,"p"),s._uU(2,"Your password cannot be updated at this time."),s.qZA(),s.TgZ(3,"p"),s._uU(4,"Please check back later..."),s.qZA(),s.TgZ(5,"div",4),s.TgZ(6,"button",5),s._uU(7," Back to courses "),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(6),s.Q6J("routerLink",s.DdM(1,VD)))}function GD(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",21),s._uU(2," Please enter your current password "),s.BQk())}function BD(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s.YNc(1,GD,3,0,"ng-container",14),s.qZA()),2&t){var n=s.oxw(2);s.xp6(1),s.Q6J("ngIf",n.isEmptyControl(n.old_password))}}function HD(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",21),s._uU(2," Please enter a new password "),s.BQk())}function YD(t,e){1&t&&(s._UZ(0,"mat-icon",21),s._uU(1," Password must contain at least eight characters "))}function QD(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s.YNc(1,HD,3,0,"ng-container",1),s.YNc(2,YD,2,0,"ng-template",null,22,s.W1O),s.qZA()),2&t){var n=s.MAs(3),i=s.oxw(2);s.xp6(1),s.Q6J("ngIf",i.isEmptyControl(i.password))("ngIfElse",n)}}function JD(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",21),s._uU(2," Please confirm new password "),s.BQk())}function WD(t,e){1&t&&(s.ynx(0),s._UZ(1,"mat-icon",21),s._uU(2," Password does not match "),s.BQk())}function KD(t,e){if(1&t&&s.YNc(0,WD,3,0,"ng-container",14),2&t){var n=s.oxw(3);s.Q6J("ngIf",!n.passwordDoesMatch)}}function $D(t,e){if(1&t&&(s.TgZ(0,"mat-error"),s.YNc(1,JD,3,0,"ng-container",1),s.YNc(2,KD,1,1,"ng-template",null,22,s.W1O),s.qZA()),2&t){var n=s.MAs(3),i=s.oxw(2);s.xp6(1),s.Q6J("ngIf",i.isEmptyControl(i.passwordConfirm))("ngIfElse",n)}}function XD(t,e){if(1&t){var n=s.EpF();s.ynx(0),s.TgZ(1,"form",6),s.NdJ("ngSubmit",function(){s.CHM(n);var t=s.oxw();return t.submit(t.formGroup.value)}),s.TgZ(2,"div",7),s.TgZ(3,"div",8),s.TgZ(4,"span"),s._uU(5,"Current Password"),s.qZA(),s.qZA(),s.TgZ(6,"mat-form-field",9),s._UZ(7,"input",10),s.TgZ(8,"span",11),s.NdJ("
1click",function(){s.CHM(n);var t=s.oxw();return t.hides=!t.hides}),s._UZ(9,"mat-icon",12),s.qZA(),s.qZA(),s.TgZ(10,"div",13),s.YNc(11,BD,2,1,"mat-error",14),s.qZA(),s.qZA(),s.TgZ(12,"div",15),s.TgZ(13,"div",8),s.TgZ(14,"span"),s._uU(15,"New Password"),s.qZA(),s.qZA(),s.TgZ(16,"mat-form-field",9),s._UZ(17,"input",16),s.TgZ(18,"span",11),s.NdJ("click",function(){s.CHM(n);var t=s.oxw();return t.hide=!t.hide}),s._UZ(19,"mat-icon",12),s.qZA(),s.qZA(),s.TgZ(20,"div",13),s.YNc(21,QD,4,2,"mat-error",14),s.qZA(),s.qZA(),s.TgZ(22,"div",17),s.TgZ(23,"div",8),s.TgZ(24,"span"),s._uU(25,"Confirm New Password"),s.qZA(),s.qZA(),s.TgZ(26,"mat-form-field",9),s._UZ(27,"input",18),s.TgZ(28,"span",11),s.NdJ("click",function(){s.CHM(n);var t=s.oxw();return t.hidec=!t.hidec}),s._UZ(29,"mat-icon",12),s.qZA(),s.qZA(),s.TgZ(30,"div",13),s.YNc(31,$D,4,2,"mat-error",14),s.qZA(),s.qZA(),s.qZA(),s.TgZ(32,"div",19),s.TgZ(33,"button",20),s._uU(34," Change my password "),s.qZA(),s.qZA(),s.BQk()}if(2&t){var i=s.oxw();s.xp6(1),s.Q6J("formGroup",i.formGroup),s.xp6(6),s.Q6J("type",i.hides?"password":"text"),s.xp6(1),s.uIk("aria-pressed",i.hide),s.xp6(1),s.s9C("svgIcon",i.hides?"lockEye":"openEye"),s.xp6(2),s.Q6J("ngIf",i.old_password.invalid&&(i.old_password.dirty||i.old_password.touched)),s.xp6(6),s.Q6J("type",i.hide?"password":"text"),s.xp6(1),s.uIk("aria-pressed",i.hide),s.xp6(1),s.s9C("svgIcon",i.hide?"lockEye":"openEye"),s.xp6(2),s.Q6J("ngIf",i.password.invalid&&(i.password.dirty||i.password.touched)),s.xp6(6),s.Q6J("type",i.hidec?"password":"text"),s.xp6(1),s.uIk("aria-pressed",i.hide),s.xp6(1),s.s9C("svgIcon",i.hidec?"lockEye":"openEye"),s.xp6(2),s.Q6J("ngIf",i.passwordConfirm.dirty||i.passwordConfirm.touched),s.xp6(2),s.Q6J("disabled",!i.user.thinkific_uid)("disabled",i.isFormInvalid())}}function tF(t,e){1&t&&(s.TgZ(0,"div",23),s._UZ(1,"div",24),s.qZA())}var eF=function(t,e){return function(n){var 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}},nF=[{path:"",pathMatch:"full",redirectTo:"signin"},{path:"signin",component:aA,canActivate:[TD]},{path:"signup",component:xN,canActivate:[TD]},{path:"reset-password",component:DN,canActivate:[TD]},{path:"auth/logout",component:FN},{path:"auth/verify",component:pL,canActivate:[kD]},{path:"auth/action",component:rD},{path:"successful-reset-password",component:OD,canActivate:[TD]},{path:"profile",component:MD,canActivate:[kD,SD],children:[{path:"",component:qD,canDeactivate:[function(){var t=function(){return g(function t(){v(this,t)},[{key:"canDeactivate",value:function(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=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()],pathMatch:"full"},{path:"password",component:function(){var t=function(){return g(function t(e,n,i){v(this,t),this.auth=e,this.formBuilder=n,this.toastr=i,this.loading=!1,this.hide=!0,this.hidec=!0,this.hides=!0,this.formGroup=this.initFormGroup(),this.user=this.auth.user},[{key:"old_password",get:function(){return this.formGroup.get("old_password")}},{key:"password",get:function(){return this.formGroup.get("password")}},{key:"passwordConfirm",get:function(){return this.formGroup.get("confirm_password")}},{key:"passwordError",get:function(){return this.auth.getPasswordValidationError(this.password)}},{key:"passwordDoesMatch",get:function(){var t;return!(null===(t=this.formGroup.errors)||void 0===t?void 0:t.match)}},{key:"initFormGroup",value:function(){return this.formBuilder.group({old_password:[null,wb.required],password:[null,[wb.required,wb.minLength(8)]],confirm_password:[null,wb.required]},{validators:eF("password","confirm_password")})}},{key:"submit",value:function(t){var e,n=this;(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(Fe(function(){return n.auth.updateUserPassword(t.confirm_password)}),We(1),Fe(function(){return n.auth.reauthenticateWithCredential(t.confirm_password)}),ZC(function(){return n.loading=!1})).subscribe(function(){n.toastr.success("Your password has been successfully updated"),n.resetForm()},function(t){switch(console.log(t),t.code){case"auth/wrong-password":n.toastr.error("Incorrect current password entered. Please enter the account's most recent password");break;case"auth/too-many-requests":n.toastr.error("Too many attempts to change the password. Please try again later");break;default:n.toastr.error(QC)}})):this.toastr.error("Current password and new password is same! Please provide a different password")}},{key:"resetForm",value:function(){var t=this;this.formGroup.reset(),Object.keys(this.formGroup.controls).forEac
1h(function(e){return t.formGroup.get(e).setErrors(null)})}},{key:"isEmptyControl",value:function(t){var e;return!(null===(e=t.value)||void 0===e?void 0:e.length)}},{key:"isFormInvalid",value:function(){var t;return!this.formGroup||(null===(t=this.formGroup)||void 0===t?void 0:t.invalid)}},{key:"ngOnInit",value:function(){}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(ik),s.Y36(NC),s.Y36(Ak))},t.\u0275cmp=s.Xpm({type:t,selectors:[["profile-password"]],viewQuery:function(t,e){var n;(1&t&&s.Gf(jD,5),2&t)&&(s.iGM(n=s.CRH())&&(e.formDirectiveRef=n.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&&(s.YNc(0,zD,8,2,"div",0),s.YNc(1,XD,35,15,"ng-container",1),s.YNc(2,tF,2,0,"ng-template",null,2,s.W1O)),2&t){var n=s.MAs(3);s.Q6J("ngIf",!e.user.thinkific_uid),s.xp6(1),s.Q6J("ngIf",!e.loading)("ngIfElse",n)}},directives:[G,GO,OC,Hb,TC,bE,LE,vb,Bb,EC,gE,FS,sE],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:WL},{path:"billing",component:WL},{path:"orders",component:WL},{path:"certificates",component:WL}]},{path:"home",component:WL},{path:"collections",component:WL},{path:"dashboard",component:WL},{path:"f-docs",component:WL},{path:"f-docs-curriculum",component:WL},{path:"organisations",component:WL},{path:"blog",component:WL},{path:"terms",component:WL},{path:"privacy",component:WL},{path:"fellowship-programme",component:WL},{path:"all-opportunities",component:WL},{path:"medics-academy-ethics-policy",component:WL},{path:"medics-academy-list-of-standard-fees",component:WL},{path:"all-programmes",component:WL},{path:"hla",component:WL},{path:"masters-programmes",component:WL},{path:"short-courses",component:WL},{path:"educator-community",component:WL},{path:"global-internships",component:WL},{path:"about-us",component:WL},{path:"merchandise",component:WL},{path:"events",component:WL},{path:"facebook",component:WL},{path:"twitter",component:WL},{path:"youtube",component:WL},{path:"linkedIn",component:WL},{path:"instagram",component:WL},{path:"podcasts",component:WL},{path:"partners",component:WL},{path:"solutions-page",component:WL},{path:"sletter",component:WL},{path:"**",redirectTo:"",pathMatch:"full"}],iF=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[oP.forRoot(nF)],oP]}),t}(),oF=function(){var t=g(function t(e){v(this,t),this.breakpointObserver=e,this.isSmallScreen$=e.observe("(max-width: 480px)").pipe((0,Qt.U)(function(t){return t.matches}),He()),this.isMediumScreen$=e.observe(["(min-width: 481px) and (max-width: 1224px)"]).pipe((0,Qt.U)(function(t){return t.matches}),He()),this.isLargeScreen$=e.observe("(min-width: 1225px)").pipe((0,Qt.U)(function(t){return t.matches}),He()),this.state=tx([this.isSmallScreen$,this.isMediumScreen$,this.isLargeScreen$]).pipe((0,Qt.U)(function(t){var e=i(t,3),n=e[0],o=e[1],r=e[2];return n?"sm":o?"md":r?"lg":void 0}))});return t.\u0275fac=function(e){return new(e||t)(s.LFG(EL))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),rF=function(){return["home"]};function aF(t,e){1&t&&s._UZ(0,"img",21),2&t&&s.Q6J("routerLink",s.DdM(1,rF))}function sF(t,e){if(1&t&&(s.ynx(0),s.YNc(1,aF,1,2,"img",20),s.ALo(2,"async"),s.BQk()),2&t){var n=s.oxw(),i=s.MAs(6);s.xp6(1),s.Q6J("ngIf",s.lcZ(2,2,n.auth.emailVerified))("ngIfElse",i)}}function cF(t,e){1&t&&(s.TgZ(0,"a",22),s._UZ(1,"img",23),s.qZA()),2&t&&s.Q6J("routerLink",s.DdM(1,rF))}function uF(t,e){if(1&t){var n=s.EpF();s.ynx(0),s.TgZ(1,"a",22),s._UZ(2,"img",23),s.qZA(),s.TgZ(3,"div",24),s.TgZ(4,"span",25),s.NdJ("click",function(){s.CHM(n);var t=s.oxw();return t.isMenuOpen=!t.isMenuOpen}),s._UZ(5,"mat-icon",26),s.qZA(),s.qZA(),s.BQk()}2&t&&(s.xp6(1),s.Q6J("routerLink",s.DdM(1,rF)))}function lF(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"a",22),s._uU(2),s.qZA(),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("routerLink",n.url),s.xp6(1),s.Oqu(n.text)}}function hF(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"a",22),s._uU(2),s.qZA(),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("routerLink",n.url),s.xp6(1),s.Oqu(n.text)}}function fF(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"a",22),s._uU(2),s.qZA(),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("routerLink",n.url),s.xp6(1),s.Oqu(n.text)}}function dF(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"a",39),s._uU(2),s.qZA(),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("routerLink",n.url),s.xp6(1),s.Oqu(n.text)}}function pF(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"li",40),s.TgZ(2,"a",41),s._uU(3,"Supporting Letter"),s.qZA(),s.qZA(),s.qZA())}function gF(t,e){if(1&t){var n=s.EpF();
1s.TgZ(0,"li",40),s.TgZ(1,"a",42),s.NdJ("click",function(){return s.CHM(n),s.oxw(2).getRedirectPath()}),s._uU(2,"Supporting Letter"),s.qZA(),s.qZA()}}function mF(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"a",22),s._UZ(2,"img",43),s._uU(3),s.qZA(),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("routerLink",n.url),s.xp6(1),s.s9C("src",n.Image,s.LSH),s.xp6(1),s.hij(" ",n.text,"")}}function vF(t,e){1&t&&(s.TgZ(0,"li",44),s.TgZ(1,"a",45),s._uU(2,"My Dashboard"),s.qZA(),s.qZA())}function yF(t,e){1&t&&(s.TgZ(0,"a",54),s._uU(1," My Account "),s.qZA())}function _F(t,e){if(1&t&&(s.TgZ(0,"a",57),s._uU(1),s.qZA()),2&t){var n=s.oxw().$implicit;s.Q6J("href",n.url,s.LSH),s.xp6(1),s.hij(" ",n.text," ")}}function bF(t,e){if(1&t&&(s.TgZ(0,"a",22),s._uU(1),s.qZA()),2&t){var n=s.oxw().$implicit;s.Q6J("routerLink",n.url),s.xp6(1),s.hij(" ",n.text," ")}}function CF(t,e){if(1&t&&(s.TgZ(0,"li"),s.YNc(1,_F,2,2,"a",55),s.YNc(2,bF,2,2,"a",56),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("ngIf",n.external_url),s.xp6(1),s.Q6J("ngIf",!n.external_url)}}function xF(t,e){if(1&t&&(s.TgZ(0,"div",46),s.TgZ(1,"div",47),s.TgZ(2,"span",48),s._uU(3),s.qZA(),s.TgZ(4,"div",49),s._UZ(5,"img",50),s.qZA(),s._UZ(6,"mat-icon",51),s.qZA(),s.TgZ(7,"div",52),s.YNc(8,yF,2,0,"a",53),s.ALo(9,"async"),s.YNc(10,CF,3,2,"li",7),s.qZA(),s.qZA()),2&t){var n=s.oxw(2);s.xp6(3),s.Oqu(n.auth.fullName),s.xp6(2),s.Q6J("src",n.auth.profilePictureUrl||n.auth.profileImage,s.LSH),s.xp6(3),s.Q6J("ngIf",s.lcZ(9,4,n.auth.checkThinkificId)&&!n.emailChanged),s.xp6(2),s.Q6J("ngForOf",n.allProfileList)}}var wF=function(){return{exact:!0}};function OF(t,e){1&t&&(s.TgZ(0,"ul",58),s.TgZ(1,"li"),s.TgZ(2,"a",59),s.TgZ(3,"button",60),s.TgZ(4,"span"),s._uU(5,"Sign up"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"li"),s.TgZ(7,"a",61),s.TgZ(8,"button",62),s.TgZ(9,"span"),s._uU(10,"Sign in"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(7),s.Q6J("routerLinkActiveOptions",s.DdM(1,wF)))}function PF(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"ul",6),s.TgZ(2,"li",27),s.TgZ(3,"a",28),s._uU(4," Programmes "),s._UZ(5,"mat-icon",29),s.qZA(),s.TgZ(6,"div",30),s.TgZ(7,"ul",31),s.YNc(8,lF,3,2,"li",7),s.qZA(),s.qZA(),s.qZA(),s.TgZ(9,"li",27),s.TgZ(10,"a",32),s._uU(11,"Opportunities "),s._UZ(12,"mat-icon",29),s.qZA(),s.TgZ(13,"div",33),s.TgZ(14,"ul",31),s.YNc(15,hF,3,2,"li",7),s.qZA(),s.qZA(),s.qZA(),s.TgZ(16,"li",27),s.TgZ(17,"a",32),s._uU(18,"Work with Us "),s._UZ(19,"mat-icon",29),s.qZA(),s.TgZ(20,"div",33),s.TgZ(21,"ul",31),s.YNc(22,fF,3,2,"li",7),s.qZA(),s.qZA(),s.qZA(),s.TgZ(23,"li",27),s.TgZ(24,"a",32),s._uU(25,"Community "),s._UZ(26,"mat-icon",29),s.qZA(),s.TgZ(27,"div",34),s.TgZ(28,"ul",31),s.YNc(29,dF,3,2,"li",7),s.YNc(30,pF,4,0,"div",35),s.ALo(31,"async"),s.YNc(32,gF,3,0,"ng-template",null,36,s.W1O),s.YNc(34,mF,4,3,"li",7),s.qZA(),s.qZA(),s.qZA(),s.YNc(35,vF,3,0,"li",37),s.ALo(36,"async"),s.qZA(),s.YNc(37,xF,11,6,"div",38),s.ALo(38,"async"),s.YNc(39,OF,11,2,"ng-template",null,2,s.W1O),s.BQk()),2&t){var n=s.MAs(33),i=s.MAs(40),o=s.oxw();s.xp6(8),s.Q6J("ngForOf",o.allProgrammesList),s.xp6(7),s.Q6J("ngForOf",o.allOpportunitiesList),s.xp6(7),s.Q6J("ngForOf",o.allPartnersList),s.xp6(7),s.Q6J("ngForOf",o.allCommunityList),s.xp6(1),s.Q6J("ngIf",s.lcZ(31,10,o.auth.checkThinkificId))("ngIfElse",n),s.xp6(4),s.Q6J("ngForOf",o.allSocialList),s.xp6(1),s.Q6J("ngIf",s.lcZ(36,12,o.auth.checkThinkificId)&&!o.emailChanged),s.xp6(2),s.Q6J("ngIf",s.lcZ(38,14,o.auth.authenticated))("ngIfElse",i)}}function MF(t,e){1&t&&(s.TgZ(0,"a",82),s._uU(1," My Dashboard "),s.qZA())}function kF(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"a",83),s.NdJ("click",function(){s.CHM(n);var t=s.oxw(4);return t.isMenuOpen=!t.isMenuOpen}),s._uU(1," My Account "),s.qZA()}}function TF(t,e){if(1&t&&(s.TgZ(0,"a",84),s._uU(1),s.qZA()),2&t){var n=e.$implicit;s.Q6J("routerLink",n.url),s.xp6(1),s.hij(" ",n.text," ")}}function SF(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"ul",78),s.TgZ(2,"li",27),s.YNc(3,MF,2,0,"a",79),s.ALo(4,"async"),s.YNc(5,kF,2,0,"a",80),s.ALo(6,"async"),s.YNc(7,TF,2,2,"a",81),s.qZA(),s.qZA(),s.qZA()),2&t){var n=s.oxw(3);s.xp6(3),s.Q6J("ngIf",s.lcZ(4,3,n.auth.checkThinkificId)&&!n.emailChanged),s.xp6(2),s.Q6J("ngIf",s.lcZ(6,5,n.auth.checkThinkificId)&&!n.emailChanged),s.xp6(2),s.Q6J("ngForOf",n.allMobileProfileList)}}function EF(t,e){if(1&t){var n=s.EpF();
1s.TgZ(0,"ul",85),s.TgZ(1,"li"),s.TgZ(2,"a",86),s.NdJ("click",function(){s.CHM(n);var t=s.oxw(3);return t.isMenuOpen=!t.isMenuOpen}),s.TgZ(3,"button",60),s.TgZ(4,"span"),s._uU(5,"Sign up"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"li"),s.TgZ(7,"a",87),s.NdJ("click",function(){s.CHM(n);var t=s.oxw(3);return t.isMenuOpen=!t.isMenuOpen}),s.TgZ(8,"button",62),s.TgZ(9,"span"),s._uU(10,"Sign in"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}2&t&&(s.xp6(7),s.Q6J("routerLinkActiveOptions",s.DdM(1,wF)))}function AF(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"a",22),s._uU(2),s.qZA(),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("routerLink",n.url),s.xp6(1),s.Oqu(n.text)}}function IF(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"a",22),s._uU(2),s.qZA(),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("routerLink",n.url),s.xp6(1),s.Oqu(n.text)}}function RF(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"a",22),s._uU(2),s.qZA(),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("routerLink",n.url),s.xp6(1),s.Oqu(n.text)}}function NF(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"a",39),s._uU(2),s.qZA(),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("routerLink",n.url),s.xp6(1),s.Oqu(n.text)}}function LF(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"li"),s.TgZ(2,"a",41),s._uU(3,"Supporting Letter"),s.qZA(),s.qZA(),s.qZA())}function DF(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"li"),s.TgZ(1,"a",88),s.NdJ("click",function(){s.CHM(n);var t=s.oxw(3);return t.isMenuOpen=!t.isMenuOpen}),s._uU(2,"Supporting Letter"),s.qZA(),s.qZA()}}function FF(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"a",22),s._UZ(2,"img",43),s._uU(3),s.qZA(),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("routerLink",n.url),s.xp6(1),s.s9C("src",n.Image,s.LSH),s.xp6(1),s.hij(" ",n.text,"")}}function UF(t,e){1&t&&(s.TgZ(0,"li",27),s.TgZ(1,"a",89),s._uU(2,"Email Support"),s.qZA(),s.qZA())}function ZF(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"div",64),s.TgZ(1,"div",65),s.TgZ(2,"div",66),s.TgZ(3,"a",67),s._UZ(4,"img",68),s.qZA(),s.qZA(),s.TgZ(5,"div",69),s.TgZ(6,"span",25),s.NdJ("click",function(){s.CHM(n);var t=s.oxw(2);return t.isMenuOpen=!t.isMenuOpen}),s._UZ(7,"mat-icon",70),s.qZA(),s.qZA(),s.qZA(),s.YNc(8,SF,8,7,"div",35),s.ALo(9,"async"),s.YNc(10,EF,11,2,"ng-template",null,2,s.W1O),s.TgZ(12,"ul",71),s.TgZ(13,"li",27),s.TgZ(14,"a",32),s._uU(15," Programmes "),s.qZA(),s.TgZ(16,"div",72),s.TgZ(17,"ul",31),s.YNc(18,AF,3,2,"li",7),s.qZA(),s.qZA(),s.qZA(),s.TgZ(19,"li",27),s.TgZ(20,"a",32),s._uU(21,"Opportunities "),s.qZA(),s.TgZ(22,"div",72),s.TgZ(23,"ul",31),s.YNc(24,IF,3,2,"li",7),s.qZA(),s.qZA(),s.qZA(),s.TgZ(25,"li",73),s.TgZ(26,"a",32),s._uU(27,"Work with Us"),s.qZA(),s.TgZ(28,"div",72),s.TgZ(29,"ul",31),s.YNc(30,RF,3,2,"li",7),s.qZA(),s.qZA(),s.qZA(),s.TgZ(31,"li",27),s.TgZ(32,"a",32),s._uU(33,"Community "),s.qZA(),s.TgZ(34,"div",72),s.TgZ(35,"ul",31),s.YNc(36,NF,3,2,"li",7),s.YNc(37,LF,4,0,"div",35),s.ALo(38,"async"),s.YNc(39,DF,3,0,"ng-template",null,36,s.W1O),s._UZ(41,"div",74),s.TgZ(42,"div",75),s.YNc(43,FF,4,3,"li",7),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.YNc(44,UF,3,0,"li",76),s.ALo(45,"async"),s.qZA(),s.TgZ(46,"div",77),s.TgZ(47,"label"),s.TgZ(48,"small"),s._uU(49," \xa9 Copyright Vopulus 2021"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){var i=s.MAs(11),o=s.MAs(40),r=s.oxw(2);s.xp6(8),s.Q6J("ngIf",s.lcZ(9,10,r.auth.authenticated))("ngIfElse",i),s.xp6(10),s.Q6J("ngForOf",r.allProgrammesList),s.xp6(6),s.Q6J("ngForOf",r.allOpportunitiesList),s.xp6(6),s.Q6J("ngForOf",r.allPartnersList),s.xp6(6),s.Q6J("ngForOf",r.allCommunityList),s.xp6(1),s.Q6J("ngIf",s.lcZ(38,12,r.auth.emailVerified))("ngIfElse",o),s.xp6(6),s.Q6J("ngForOf",r.allSocialList),s.xp6(1),s.Q6J("ngIf",s.lcZ(45,14,r.auth.authenticated))}}function qF(t,e){if(1&t&&(s.ynx(0),s.YNc(1,ZF,50,16,"div",63),s.BQk()),2&t){var n=s.oxw();s.xp6(1),s.Q6J("ngIf",n.isMenuOpen)}}function jF(t,e){1&t&&s._UZ(0,"screen-loading")}function VF(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"a",22),s._uU(2),s.qZA(),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("routerLink",n.url),s.xp6(1),s.Oqu(n.text)}}function zF(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"a",22),s._uU(2),s.qZA(),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("routerLink",n.url),s.xp6(1),s.Oqu(n.text)}}function GF(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"a",22),s._uU(2),s.qZA(),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("routerLink",n.url),s.xp6(1),s.Oqu(n.text)}}function BF(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"a",22),s._UZ(2,"img",90),s._uU(3),s.qZA(),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("routerLink",n.url),s.xp6(1),s.s9C("src",n.Image,s.LSH),s.xp6(1),s.hij(" ",n.text,"")}}function HF(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"a",22),s._uU(2),s.qZA(),s.qZA()),2&t){var n=e.$implicit;s.xp6(1),s.Q6J("routerLink",n.url),s.xp6(1),s.Oqu(n.text)}}var YF=function(){var t=function(){return g(function t(e,n,i,o,r){var a=this;v(this,t),this.document=e,this.breakpointsService=n,this.auth=i,this.appState=o,this.router=r,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:"".concat(pP,"/profile"),visibility:"verified"},{text:"Sign In",url:"".concat(pP),visibility:"public"},{text:"Sign up",url:"".concat(pP,"/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:"".concat(pP,"/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 Ee.xQ,this.isMenuOpen=!1,this.emailChanged=!1,console.log=function(){},this.localStorageEventListener=this.handleLocalStorageEvent.bind(this),window.addEventListener("storage",this.localStorageEventListener),this.emailChanged="true"===localStorage.getItem("emailChanged"),this.auth.authUser.pipe(DC(this.destroy$)).subscribe(function(t){a.allMobileList=a.getNavigationMenu(a.navigationMobileList,t),a.allProfileList=a.getNavigationMenu(a.profileList,t),a.allMobileProfileList=a.getNavigationMenu(a.mobileProfileList,t),a.allFooterList=a.getNavigationMenu(a.footerNavigationList,t),a.allFooterOpportunityList=a.getNavigationMenu(a.footerOpportunityNavigationList,t),a.allFooterCommunityList=a.getNavigationMenu(a.footerCommunityNavigationList,t),a.allFooterSocialList=a.getNavigationMenu(a.footerSocialNavigationList,t),a.allFooterSupportList=a.getNavigationMenu(a.footerSupportNavigationList,t),a.allSocialList=a.getNavigationMenu(a.socialNavigationList,t),a.allCommunityList=a.getNavigationMenu(a.navCommunityList,t),a.allPartnersList=a.getNavigationMenu(a.partnersList,t),a.allProgrammesList=a.getNavigationMenu(a.navProgrammesList,t),a.allOpportunitiesList=a.getNavigationMenu(a.navOpportunitiesList,t)})},[{key:"handleLocalStorageEvent",value:function(t){"logged_out"===t.key&&"true"===t.newValue&&(console.log("LOGGED OUT"),this.router.navigate(["/signin"]).then(function(){localStorage.removeItem("logged_out")}))}},{key:"getNavigationMenu",value:function(t,e){return t.filter(e?e.emailVerified?function(t){return["all","auth","verified"].includes(t.visibility)}:function(t){return["all","auth"].includes(t.visibility)}:function(t){return["all","public"].includes(t.visibility)})}},{key:"getRedirectPath",value:function(){var t=this;this.auth.authenticated?this.auth.logout().subscribe(function(){t.document.location.href="/signup"}):this.document.location.href="/signup"}},{key:"ngOnDestroy",value:function(){window.removeEventListener("storage",this.localStorageEventListener),this.destroy$.next(!0),this.destroy$.unsubscribe()}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(f),s.Y36(oF),s.Y36(ik),s.Y36(KC),s.Y36(VO))},t.\u0275cmp=s.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&&(s.TgZ(0,"header"),s.TgZ(1,"nav"),s.TgZ(2,"div",0),s.YNc(3,sF,3,4,"ng-container",1),s.ALo(4,"async"),s.YNc(5,cF,2,2,"ng-template",null,2,s.W1O),s.YNc(7,uF,6,2,"ng-container",1),s.ALo(8,"async"),s.ALo(9,"async"),s.TgZ(10,"div",3),s.YNc(11,PF,41,16,"ng-container",1),s.ALo(12,"async"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(13,"div"),s.YNc(14,qF,2,1,"ng-container",1),s.ALo(15,"async"),s.ALo(16,"async"),s.qZA(),s.qZA(),s.TgZ(17,"main"),s._UZ(18,"router-outlet"),s.qZA(),s.YNc(19,jF,1,0,"screen-loading",1),s.TgZ(20,"footer"),s.TgZ(21,"nav"),s.TgZ(22,"div",4),s.ynx(23),s.TgZ(24,"div",5),s.TgZ(25,"p"),s._uU(26,"Programmes"),s.qZA(),s.TgZ(27,"ul",6),s.YNc(28,VF,3,2,"li",7),s.qZA(),s.qZA(),s.BQk(),s.ynx(29),s.TgZ(30,"div",8),s.TgZ(31,"p"),s._uU(32,"Opportunities"),s.qZA(),s.TgZ(33,"ul",6),s.YNc(34,zF,3,2,"li",7),s.qZA(),s.qZA(),s.BQk(),s.ynx(35),s.TgZ(36,"div",9),s.TgZ(37,"p"),s._uU(38,"Community"),s.qZA(),s.TgZ(39,"ul",6),s.YNc(40,GF,3,2,"li",7),s.qZA(),s.qZA(),s.BQk(),s.ynx(41),s.TgZ(42,"div",10),s.TgZ(43,"ul",11),s.YNc(44,BF,4,3,"li",7),s.qZA(),s.qZA(),s.BQk(),s.ynx(45),s.TgZ(46,"div",12),s.TgZ(47,"p"),s._uU(48,"Support"),s.qZA(),s.TgZ(49,"ul",6),s.TgZ(50,"li"),s.TgZ(51,"a",13),s._uU(52,"Contact us"),s.qZA(),s.qZA(),s.YNc(53,HF,3,2,"li",7),s.qZA(),s.qZA(),s.BQk(),s.qZA(),s.qZA(),s.TgZ(54,"div",14),s.TgZ(55,"div",15),s.TgZ(56,"div",16),s.TgZ(57,"label"),s.TgZ(58,"small",17),s._uU(59," \xa9 Copyright Vopulus 2021"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(60,"div",18),s._UZ(61,"img",19),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Q6J("ngIf",s.lcZ(4,10,e.breakpointsService.isLargeScreen$)),s.xp6(4),s.Q6J("ngIf",s.lcZ(8,12,e.breakpointsService.isSmallScreen$)||s.lcZ(9,14,e.breakpointsService.isMediumScreen$)),s.xp6(4),s.Q6J("ngIf",s.lcZ(12,16,e.breakpointsService.isLargeScreen$)),s.xp6(3),s.Q6J("ngIf",s.lcZ(15,18,e.breakpointsService.isSmallScreen$)||s.lcZ(16,20,e.breakpointsService.isMediumScreen$)),s.xp6(5),s.Q6J("ngIf",e.appState.loading),s.xp6(9),s.Q6J("ngForOf",e.allFooterList),s.xp6(6),s.Q6J("ngForOf",e.allFooterOpportunityList),s.xp6(6),s.Q6J("ngForOf",e.allFooterCommunityList),s.xp6(4),s.Q6J("ngForOf",e.allFooterSocialList),s.xp6(9),s.Q6J("ngForOf",e.allFooterSupportList))},directives:[G,QO,V,GO,BO,FS,YO,kN,gI],pipes:[tt],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}(),QF=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[],imports:[[KL,oP]]}),t}(),JF=function(){var t=function(){return g(function t(e,n,i){v(this,t),this.http=e,this.authService=n,this.router=i},[{key:"getClientMessage",value:function(t){return navigator.onLine?t.message?t.message:t.toString():"No Internet Connection."}},{key:"getClientStack",value:function(t){return console.log(t),t.stack||""}},{key:"getServerMessage",value:function(t){return t.message}},{key:"getServerStack",value:function(t){return"stack"}},{key:"logError",value:function(t,e){return console.log("logError start"),this.postErrorToSlack(t,e)}},{key:"postErrorToSlack",value:function(t,e){return this.http.post(dP+"/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)(s.LFG(ge),s.LFG(ik),s.LFG(VO))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),WF=function(){var t=function(t){function e(t){var n;return v(this,e),(n=y(this,e)).injector=t,n}return b(e,t),g(e,[{key:"handleError",value:function(t){var e,n,i=this.injector.get(JF);return t instanceof de?(e=i.getServerMessage(t),n=i.getServerStack(t)):(e=i.getClientMessage(t),n=i.getClientStack(t)),i.logError(e,n).subscribe()}}])}(s.qLn);return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),KF=function(){return g(function t(e,n){v(this,t),this.count=e,this.source=n},[{key:"call",value:function(t,e){return e.subscribe(new $F(t,this.count,this.source))}}])}(),$F=function(t){function e(t,n,i){var o;return v(this,e),(o=y(this,e,[t])).count=n,o.source=i,o}return b(e,t),g(e,[{key:"error",value:function(t){if(!this.isStopped){var n=this.source,i=this.count;if(0===i)return a(e,"error",this,3)([t]);i>-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}}}])}(Gt.L),XF=function(){var t=function(){return g(function t(){v(this,t)},[{key:"intercept",value:function(t,e){return e.handle(t).pipe(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(e){return e.lift(new KF(t,e))}}(1),rx(function(t){return console.log("server interceptor throw error"),(0,vP._)(t)}))}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),tU=function(){var t=g(function t(){v(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t,bootstrap:[YF]}),t.\u0275inj=s.cJS({providers:[KC,{provide:s.qLn,useClass:WF},{provide:ve,useClass:XF,multi:!0}],imports:[[Zt,sb,Te,Nk.forRoot(),Se.hO.initializeApp(mP),yn,_v,XM,PD,QF,KL,iF]]}),t}();(0,s.G48)();var eU=window.document.createElement("script");eU.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(eU),Ft().bootstrapModule(tU).catch(function(t){return console.error(t)})},7582:function(t,e,n){"use strict";n.d(e,{ZT:function(){return o},pi:function(){return r},mG:function(){return a},Jh:function(){return s},XA:function(){return c},CR:function(){return u},ev:function(){return l}});
1var 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 a(t,e,n,i){return new(n||(n=Promise))(function(o,r){function a(t){try{c(i.next(t))}catch(e){r(e)}}function s(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(a,s)}c((i=i.apply(t,e||[])).next())})}function s(t,e){var n,i,o,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(r=0)),r;)try{if(n=1,i&&(o=2&s[0]?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,i=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!(o=(o=r.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){r=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(6===s[0]&&r.label<o[1]){r.label=o[1],o=s;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(s);break}o[2]&&r.ops.pop(),r.trys.pop();continue}s=e.call(t,r)}catch(c){s=[6,c],i=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,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),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}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.