1(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{"+l4i":function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return o});var r=n("8Y7J");const i={contentsCss:[""],customConfig:""};let s=(()=>{class e{constructor(t,n){this.ngZone=t,this.hostEl=n,this.innerValue="",this.disabled=!1,this.editorInitialized=!1,this.readonly=!1,this.config={},this.skin="moono-lisa",this.language="en",this.fullPage=!1,this.inline=!1,this.change=new r.n,this.ready=new r.n,this.blur=new r.n,this.focus=new r.n,this.onChange=e=>{},this.onTouched=()=>{},this.identifier=e.getRandomIdentifier(this.id)}static getRandomIdentifier(t=""){return"editor-"+(""!==t?t:String(e.idx++))}get instance(){return this.ckIns}ngOnInit(){}ngOnChanges(e){this.editorInitialized&&(this.destroyEditor(),this.initEditor(this.identifier))}ngAfterViewChecked(){!this.editorInitialized&&this.documentContains(this.textareaRef.nativeElement)?(this.editorInitialized=!0,this.initEditor(this.identifier)):this.editorInitialized&&!this.documentContains(this.textareaRef.nativeElement)&&(this.editorInitialized=!1,this.destroyEditor())}ngOnDestroy(){this.destroyEditor()}initEditor(e){if("undefined"==typeof CKEDITOR)return console.warn("CKEditor 4.x is missing (http://ckeditor.com/)");const t=this.textareaRef.nativeElement;if(this.identifier=e,t.setAttribute("name",this.identifier),this.ckIns||!this.documentContains(this.textareaRef.nativeElement))return;const n=Object.assign({},i,this.config,{readOnly:this.readonly,skin:this.skin,language:this.language,fullPage:this.fullPage,inline:this.inline});
1this.ckIns=this.inline?CKEDITOR.inline(t,n):CKEDITOR.replace(t,n),this.ckIns.setData(this.innerValue),this.ckIns.on("change",()=>{const e=this.ckIns.getData();this.updateValue(e)}),this.ckIns.on("instanceReady",e=>{this.ngZone.run(()=>{this.ready.emit(e)})}),this.ckIns.on("blur",e=>{this.ngZone.run(()=>{this.blur.emit(e),this.onTouched()})}),this.ckIns.on("focus",e=>{this.ngZone.run(()=>{this.focus.emit(e)})})}destroyEditor(){if(this.ckIns){CKEDITOR.instances.hasOwnProperty(this.ckIns.name)&&CKEDITOR.remove(CKEDITOR.instances[this.ckIns.name]),this.ckIns=null;const e=this.hostEl.nativeElement.querySelector("#cke_"+this.identifier);null!=e&&e.parentElement&&e.parentElement.removeChild(e)}}updateValue(e){this.ngZone.run(()=>{this.innerValue=e,this.onChange(e),this.onTouched(),this.change.emit(e)})}documentContains(e){return document.contains?document.contains(e):document.body.contains(e)}writeValue(e){if(this.innerValue=e||"",this.ckIns){this.ckIns.setData(this.innerValue);const e=this.ckIns.getData();this.ckIns.setData(e)}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}}return e.idx=1,e})();class o{}},"/6Yf":function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return o});var r=n("LpKv"),i=n("qOnz"),s=function(){function e(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return e.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},e.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},e.prototype.setServiceProps=function(e){return this.serviceProps=e,this},e.prototype.setInstanceCreatedCallback=function(e){return this.onInstanceCreated=e,this},e}(),o=function(){function e(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return e.prototype.get=function(e){var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new i.a;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{var r=this.getOrInitializeService({instanceIdentifier:t});r&&n.resolve(r)}catch(s){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t,n=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),r=null!==(t=null==e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(e){var t,n;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:"[DEFAULT]"})}catch(c){}try{for(var i=Object(r.g)(this.instancesDeferred.entries()),s=i.next();!s.done;s=i.next()){var o=Object(r.e)(s.value,2),a=o[1],l=this.normalizeInstanceIdentifier(o[0]);try{var u=this.getOrInitializeService({instanceIdentifier:l});a.resolve(u)}catch(c){}}}catch(h){t={error:h}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}},e.prototype.clearInstance=function(e){void 0===e&&(e="[DEFAULT]"),this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return Object(r.b)(this,void 0,void 0,function(){var e;return Object(r.d)(this,function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(Object(r.f)(Object(r.f)([],Object(r.e)(e.filter(function(e){return"INTERNAL"in e}).map(function(e){return e.INTERNAL.delete()}))),Object(r.e)(e.filter(function(e){return"_delete"in e}).map(function(e){return e._delete()}))))];case 1:return t.sent(),[2]}})})},e.prototype.isComponentSet=function(){return null!=this.component},e.prototype.isInitialized=function(e){return void 0===e&&(e="[DEFAULT]"),this.instances.has(e)},e.prototype.getOptions=function(e){return void 0===e&&(e="[DEFAULT]"),this.instancesOptions.get(e)||{}},e.prototype.initialize=function(e){var t,n;void 0===e&&(e={});var i=e.options,s=void 0===i?{}:i,o=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(o))throw Error(this.name+"("+o+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var a=this.getOrInitializeService({instanceIdentifier:o,options:s});try{for(var l=Object(r.g)(this.instancesDeferred.entries()),u=l.next();!u.done;u=l.next()){var c=Object(r.e)(u.value,2),h=c[1];o===this.normalizeInstanceIdentifier(c[0])&&h.resolve(a)}}catch(d){t={error:d}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return a},e.prototype.onInit=function(e,t){var n,r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);var s=this.instances.get(r);return s&&e(s,r),function(){i.delete(e)}},e.prototype.invokeOnInitCallbacks=function(e,t){var n,i,s=this.onInitCallbacks.get(t);if(s)try{for(var o=Object(r.g)(s),a=o.next();!a.done;a=o.next()){var l=a.value;try{l(e,t)}catch(u){}}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.getOrInitializeService=function(e){var t,n=e.instanceIdentifier,r=e.options,i=void 0===r?{}:r,s=this.instances.get(n);if(!s&&this.component&&(s=this.component.instanceFactory(this.container,{instanceIdentifier:(t=n,"[DEFAULT]"===t?void 0:t),options:i}),this.instances.set(n,s),this.instancesOptions.set(n,i),this.invokeOnInitCallbacks(s,n),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,s)}catch(o){}return s||null},e.prototype.normalizeInstanceIdentifier=function(e){return void 0===e&&(e="[DEFAULT]"),this.component?this.component.multipleInstances?e:"[DEFAULT]":e},e.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},e}(),a=function(){function e(e){this.name=e,this.providers=new Map}return e.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},e.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},e.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new o(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}()},"/uUt":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){return n=>n.lift(new s(e,t))}class s{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new o(e,this.compare,this.keySelector))}}class o extends r.a{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}},0:function(e,t,n){e.exports=n("zUnb")},"0EUg":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("bHdf");function i(){return Object(r.a)(1)}},"1G5W":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("zx2A");function i(e){return t=>t.lift(new s(e))}class s{constructor(e){this.notifier=e}call(e,t){const n=new o(e),i=Object(r.c)(this.notifier,new r.a(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}class o extends r.b{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("XNiG"),i=n("9ppp");class s extends r.a{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value}next(e){super.next(this._value=e)}}},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return i});let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior b
1y code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"3E0/":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("D0XW"),i=n("7o/Q"),s=n("WMd4");function o(e,t=r.a){var n;const i=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new a(i,t))}class a{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new l(e,this.delay,this.scheduler))}}class l extends i.a{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,r=e.scheduler,i=e.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){const t=Math.max(0,n[0].time-r.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(l.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new u(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(s.a.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(s.a.createComplete()),this.unsubscribe()}}class u{constructor(e,t){this.time=e,this.notification=t}}},"3N8a":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("quSY");class i extends r.a{constructor(e,t){super()}schedule(e,t=0){return this}}class s extends i{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n,r=!1;try{this.work(e)}catch(i){r=!0,n=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),n}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}},"3UD+":function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},"4I5i":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})()},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("lJxs"),i=n("Cfvw"),s=n("zx2A");function o(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?s=>s.pipe(o((n,s)=>Object(i.a)(e(n,s)).pipe(Object(r.a)((e,r)=>t(n,e,s,r))),n)):("number"==typeof t&&(n=t),t=>t.lift(new a(e,n)))}class a{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}class l extends s.b{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new s.a(this),n=this.destination;n.add(t);const r=Object(s.c)(e,t);r!==t&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"5yfJ":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("HDdC"),i=n("KqfI");const s=new r.a(i.a)},"6Uf2":function(e,t,n){"use strict";(function(e){var t=n("zIRd"),r=n("/6Yf"),i=n("qOnz"),s=n("LpKv"),o=n("q/0M"),a="";function l(e){a=e}var u,c=function(){function e(e){this.domStorage_=e,this.prefix_="firebase:"}return e.prototype.set=function(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),Object(i.D)(t))},e.prototype.get=function(e){var t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:Object(i.x)(t)},e.prototype.remove=function(e){this.domStorage_.removeItem(this.prefixedName_(e))},e.prototype.prefixedName_=function(e){return this.prefix_+e},e.prototype.toString=function(){return this.domStorage_.toString()},e}(),h=function(){function e(){this.cache_={},this.isInMemoryStorage=!0}return e.prototype.set=function(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t},e.prototype.get=function(e){return Object(i.i)(this.cache_,e)?this.cache_[e]:null},e.prototype.remove=function(e){delete this.cache_[e]},e}(),d=function(e){try{if("undefined"!=typeof window&&void 0!==window[e]){var t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new c(t)}}catch(n){}return new h},p=d("localStorage"),f=d("sessionStorage"),g=new o.b("@firebase/database"),m=(u=1,function(){return u++}
1),b=function(e){var t=Object(i.C)(e),n=new i.d;n.update(t);var r=n.digest();return i.g.encodeByteArray(r)},y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=0;r<e.length;r++){var s=e[r];Array.isArray(s)||s&&"object"==typeof s&&"number"==typeof s.length?n+=y.apply(null,s):n+="object"==typeof s?Object(i.D)(s):s,n+=" "}return n},_=null,v=!0,w=function(e,t){Object(i.e)(!t||!0===e||!1===e,"Can't turn on custom loggers persistently."),!0===e?(g.logLevel=o.a.VERBOSE,_=g.log.bind(g),t&&f.set("logging_enabled",!0)):"function"==typeof e?_=e:(_=null,f.remove("logging_enabled"))},C=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!0===v&&(v=!1,null===_&&!0===f.get("logging_enabled")&&w(!0)),_){var n=y.apply(null,e);_(n)}},S=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];C.apply(void 0,Object(s.f)([e],Object(s.e)(t)))}},O=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE INTERNAL ERROR: "+y.apply(void 0,Object(s.f)([],Object(s.e)(e)));g.error(n)},k=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE FATAL ERROR: "+y.apply(void 0,Object(s.f)([],Object(s.e)(e)));throw g.error(n),new Error(n)},E=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE WARNING: "+y.apply(void 0,Object(s.f)([],Object(s.e)(e)));g.warn(n)},x=function(e){return"number"==typeof e&&(e!=e||e===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY)},T="[MIN_NAME]",I="[MAX_NAME]",j=function(e,t){if(e===t)return 0;if(e===T||t===I)return-1;if(t===T||e===I)return 1;var n=L(e),r=L(t);return null!==n?null!==r?n-r===0?e.length-t.length:n-r:-1:null!==r?1:e<t?-1:1},D=function(e,t){return e===t?0:e<t?-1:1},A=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+Object(i.D)(t))},R=function(e){if("object"!=typeof e||null===e)return Object(i.D)(e);var t=[];for(var n in e)t.push(n);t.sort();for(var r="{",s=0;s<t.length;s++)0!==s&&(r+=","),r+=Object(i.D)(t[s]),r+=":",r+=R(e[t[s]]);return r+"}"},P=function(e,t){var n=e.length;if(n<=t)return[e];for(var r=[],i=0;i<n;i+=t)r.push(e.substring(i,i+t>n?n:i+t));return r};function N(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}var M=function(e){var t,n,r,s,o;Object(i.e)(!x(e),"Invalid JSON number"),0===e?(n=0,r=0,t=1/e==-1/0?1:0):(t=e<0,(e=Math.abs(e))>=Math.pow(2,-1022)?(n=(s=Math.min(Math.floor(Math.log(e)/Math.LN2),1023))+1023,r=Math.round(e*Math.pow(2,52-s)-Math.pow(2,52))):(n=0,r=Math.round(e/Math.pow(2,-1074))));var a=[];for(o=52;o;o-=1)a.push(r%2?1:0),r=Math.floor(r/2);for(o=11;o;o-=1)a.push(n%2?1:0),n=Math.floor(n/2);a.push(t?1:0),a.reverse();var l=a.join(""),u="";for(o=0;o<64;o+=8){var c=parseInt(l.substr(o,8),2).toString(16);1===c.length&&(c="0"+c),u+=c}return u.toLowerCase()},F=new RegExp("^-?(0*)\\d{1,10}$"),L=function(e){if(F.test(e)){var t=Number(e);if(t>=-2147483648&&t<=2147483647)return t}return null},V=function(e){try{e()}catch(t){setTimeout(function(){throw E("Exception was thrown by user callback.",t.stack||""),t},Math.floor(0))}},U=function(e,t){var n=setTimeout(e,t);return"object"==typeof n&&n.unref&&n.unref(),n},z=function(){function e(e,t){var n=this;this.appName_=e,this.appCheckProvider=t,this.appCheck=null==t?void 0:t.getImmediate({optional:!0}),this.appCheck||null==t||t.get().then(function(e){return n.appCheck=e})}return e.prototype.getToken=function(e){var t=this;return this.appCheck?this.appCheck.getToken(e):new Promise(function(n,r){setTimeout(function(){t.appCheck?t.getToken(e).then(n,r):n(null)},0)})},e.prototype.addTokenChangeListener=function(e){var t;null===(t=this.appCheckProvider)||void 0===t||t.get().then(function(t){return t.addTokenListener(e)})},e.prototype.notifyForInvalidToken=function(){E('Provided AppCheck credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly.')},e}(),$=function(){function e(e,t,n){var r=this;this.appName_=e,this.firebaseOptions_=t,this.authProvider_=n,this.auth_=null,this.auth_=n.getImmediate({optional:!0}),this.auth_||n.onInit(function(e){return r.auth_=e})}return e.prototype.getToken=function(e){var t=this;return this.auth_?this.auth_.getToken(e).catch(function(e){return e&&"auth/token-not-initialized"===e.code?(C("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(e)}):new Promise(function(n,r){setTimeout(function(){t.auth_?t.getToken(e).then(n,r):n(null)},0)})},e.prototype.addTokenChangeListener=function(e){this.auth_?this.auth_.addAuthTokenListener(e):this.authProvider_.get().then(function(t){return t.addAuthTokenListener(e)})},e.prototype.removeTokenChangeListener=function(e){this.authProvider_.get().then(function(t){return t.removeAuthTokenListener(e)})},e.prototype.notifyForInvalidToken=function(){var e='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';E(e+="credential"in this.firebaseOptions_?'Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?'Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':'Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.')},e}(),q=function(){function e(e){this.accessToken=e}return e.prototype.getToken=function(e){return Promise.resolve({accessToken:this.accessToken})},e.prototype.addTokenChangeListener=function(e){e(this.accessToken)},e.prototype.removeTokenChangeListener=function(e){},e.prototype.notifyForInvalidToken=function(){},e.OWNER="owner",e}(),H=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,W=function(){function e(e,t,n,r,i,s,o){void 0===i&&(i=!1),void 0===s&&(s=""),void 0===o&&(o=!1),this.secure=t,this.namespace=n,this.webSocketOnly=r,this.nodeAdmin=i,this.persistenceKey=s,this.includeNamespaceInQueryParams=o,this._host=e.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=p.get("host:"+e)||this._host}return e.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},e.prototype.isCustomHost=function(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain},Object.defineProperty(e.prototype,"host",{get:function(){return this._host},set:function(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&p.set("host:"+this._host,this.internalHost))}
1,enumerable:!1,configurable:!0}),e.prototype.toString=function(){var e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e},e.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host+"/"+(this.includeNamespaceInQueryParams?"?ns="+this.namespace:"")},e}();function B(e,t,n){var r;if(Object(i.e)("string"==typeof t,"typeof type must == string"),Object(i.e)("object"==typeof n,"typeof params must == object"),"websocket"===t)r=(e.secure?"wss://":"ws://")+e.internalHost+"/.ws?";else{if("long_polling"!==t)throw new Error("Unknown connection type: "+t);r=(e.secure?"https://":"http://")+e.internalHost+"/.lp?"}(function(e){return e.host!==e.internalHost||e.isCustomHost()||e.includeNamespaceInQueryParams})(e)&&(n.ns=e.namespace);var s=[];return N(n,function(e,t){s.push(e+"="+t)}),r+s.join("&")}var K=function(){function e(){this.counters_={}}return e.prototype.incrementCounter=function(e,t){void 0===t&&(t=1),Object(i.i)(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t},e.prototype.get=function(){return Object(i.l)(this.counters_)},e}(),Q={},Z={};function G(e){var t=e.toString();return Q[t]||(Q[t]=new K),Q[t]}var Y=function(){function e(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return e.prototype.closeAfter=function(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)},e.prototype.handleResponse=function(e,t){var n=this;this.pendingResponses[e]=t;for(var r=function(){var e=i.pendingResponses[i.currentResponseNum];delete i.pendingResponses[i.currentResponseNum];for(var t=function(t){e[t]&&V(function(){n.onMessage_(e[t])})},r=0;r<e.length;++r)t(r);if(i.currentResponseNum===i.closeAfterResponse)return i.onClose&&(i.onClose(),i.onClose=null),"break";i.currentResponseNum++},i=this;this.pendingResponses[this.currentResponseNum]&&"break"!==r(););},e}(),J=function(){function e(e,t,n,r,i,s,o){var a=this;this.connId=e,this.repoInfo=t,this.applicationId=n,this.appCheckToken=r,this.authToken=i,this.transportSessionId=s,this.lastSessionId=o,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=S(e),this.stats_=G(t),this.urlFn=function(e){return a.appCheckToken&&(e.ac=a.appCheckToken),B(t,"long_polling",e)}}return e.prototype.open=function(e,t){var n=this;this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new Y(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(function(){n.log_("Timed out trying to connect."),n.onClosed_(),n.connectTimeoutTimer_=null},Math.floor(3e4)),function(e){if(Object(i.u)()||"complete"===document.readyState)e();else{var t=!1,n=function(){document.body?t||(t=!0,e()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&n()}),window.attachEvent("onload",n))}}(function(){if(!n.isClosed_){n.scriptTagHolder=new X(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object(s.e)(e,5),i=r[0],o=r[1],a=r[2];if(n.incrementIncomingBytes_(e),n.scriptTagHolder)if(n.connectTimeoutTimer_&&(clearTimeout(n.connectTimeoutTimer_),n.connectTimeoutTimer_=null),n.everConnected_=!0,"start"===i)n.id=o,n.password=a;else{if("close"!==i)throw new Error("Unrecognized command received: "+i);o?(n.scriptTagHolder.sendNewPolls=!1,n.myPacketOrderer.closeAfter(o,function(){n.onClosed_()})):n.onClosed_()}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object(s.e)(e,2),i=r[0],o=r[1];n.incrementIncomingBytes_(e),n.myPacketOrderer.handleResponse(i,o)},function(){n.onClosed_()},n.urlFn);var e={start:"t"};e.ser=Math.floor(1e8*Math.random()),n.scriptTagHolder.uniqueCallbackIdentifier&&(e.cb=n.scriptTagHolder.uniqueCallbackIdentifier),e.v="5",n.transportSessionId&&(e.s=n.transportSessionId),n.lastSessionId&&(e.ls=n.lastSessionId),n.applicationId&&(e.p=n.applicationId),n.appCheckToken&&(e.ac=n.appCheckToken),"undefined"!=typeof location&&location.hostname&&H.test(location.hostname)&&(e.r="f");var t=n.urlFn(e);n.log_("Connecting via long-poll to "+t),n.scriptTagHolder.addTag(t,function(){})}})},e.prototype.start=function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)},e.forceAllow=function(){e.forceAllow_=!0},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){return!(Object(i.u)()||!e.forceAllow_&&(e.forceDisallow_||"undefined"==typeof document||null==document.createElement||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.UI))},e.prototype.markConnectionHealthy=function(){},e.prototype.shutdown_=function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))},e.prototype.close=function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())},e.prototype.send=function(e){var t=Object(i.D)(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);for(var n=Object(i.h)(t),r=P(n,1840),s=0;s<r.length;s++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,r.length,r[s]),this.curSegmentNum++},e.prototype.addDisconnectPingFrame=function(e,t){if(!Object(i.u)()){this.myDisconnFrame=document.createElement("iframe");var n={dframe:"t"};n.id=e,n.pw=t,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}},e.prototype.incrementIncomingBytes_=function(e){var t=Object(i.D)(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)},e}(),X=function(){function e(t,n,r,s){if(this.onDisconnect=r,this.urlFn=s,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,Object(i.u)())this.commandCB=t,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=m(),window["pLPCommand"+this.uniqueCallbackIdentifier]=t,window["pRTLPCB"+this.uniqueCallbackIdentifier]=n,this.myIFrame=e.createI
1Frame_();var o="";this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,11)&&(o='<script>document.domain="'+document.domain+'";<\/script>');var a="<html><body>"+o+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(a),this.myIFrame.doc.close()}catch(l){C("frame writing exception"),l.stack&&C(l.stack),C(l)}}}return e.createIFrame_=function(){var e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||C("No IE domain setting required")}catch(n){var t=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+t+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e},e.prototype.close=function(){var e=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout(function(){null!==e.myIFrame&&(document.body.removeChild(e.myIFrame),e.myIFrame=null)},Math.floor(0)));var t=this.onDisconnect;t&&(this.onDisconnect=null,t())},e.prototype.startLongPoll=function(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););},e.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;for(var t=this.urlFn(e),n="",r=0;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+30+n.length<=1870;){var i=this.pendingSegs.shift();n=n+"&seg"+r+"="+i.seg+"&ts"+r+"="+i.ts+"&d"+r+"="+i.d,r++}return this.addLongPollTag_(t+=n,this.currentSerial),!0}return!1},e.prototype.enqueueSegment=function(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()},e.prototype.addLongPollTag_=function(e,t){var n=this;this.outstandingRequests.add(t);var r=function(){n.outstandingRequests.delete(t),n.newRequest_()},i=setTimeout(r,Math.floor(25e3));this.addTag(e,function(){clearTimeout(i),r()})},e.prototype.addTag=function(e,t){var n=this;Object(i.u)()?this.doNodeLongPoll(e,t):setTimeout(function(){try{if(!n.sendNewPolls)return;var r=n.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,r.onload=r.onreadystatechange=function(){var e=r.readyState;e&&"loaded"!==e&&"complete"!==e||(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),t())},r.onerror=function(){C("Long-poll script failed to load: "+e),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(r)}catch(i){}},Math.floor(1))},e}(),ee=null;"undefined"!=typeof MozWebSocket?ee=MozWebSocket:"undefined"!=typeof WebSocket&&(ee=WebSocket);var te=function(){function e(t,n,r,i,s,o,a){this.connId=t,this.applicationId=r,this.appCheckToken=i,this.authToken=s,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=S(this.connId),this.stats_=G(n),this.connURL=e.connectionURL_(n,o,a,i),this.nodeAdmin=n.nodeAdmin}return e.connectionURL_=function(e,t,n,r){var s={v:"5"};return!Object(i.u)()&&"undefined"!=typeof location&&location.hostname&&H.test(location.hostname)&&(s.r="f"),t&&(s.s=t),n&&(s.ls=n),r&&(s.ac=r),B(e,"websocket",s)},e.prototype.open=function(e,t){var n=this;this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,p.set("previous_websocket_failure",!0);try{if(Object(i.u)()){var r={headers:{"User-Agent":"Firebase/5/"+a+"/"+process.platform+"/"+(this.nodeAdmin?"AdminNode":"Node"),"X-Firebase-GMPID":this.applicationId||""}};this.authToken&&(r.headers.Authorization="Bearer "+this.authToken),this.appCheckToken&&(r.headers["X-Firebase-AppCheck"]=this.appCheckToken);var s=process.env,o=0===this.connURL.indexOf("wss://")?s.HTTPS_PROXY||s.https_proxy:s.HTTP_PROXY||s.http_proxy;o&&(r.proxy={origin:o}),this.mySock=new ee(this.connURL,[],r)}else this.mySock=new ee(this.connURL,[],r={headers:{"X-Firebase-GMPID":this.applicationId||"","X-Firebase-AppCheck":this.appCheckToken||""}})}catch(u){this.log_("Error instantiating WebSocket.");var l=u.message||u.data;return l&&this.log_(l),void this.onClosed_()}this.mySock.onopen=function(){n.log_("Websocket connected."),n.everConnected_=!0}
1,this.mySock.onclose=function(){n.log_("Websocket connection was disconnected."),n.mySock=null,n.onClosed_()},this.mySock.onmessage=function(e){n.handleIncomingFrame(e)},this.mySock.onerror=function(e){n.log_("WebSocket error. Closing connection.");var t=e.message||e.data;t&&n.log_(t),n.onClosed_()}},e.prototype.start=function(){},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){var t=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var n=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);n&&n.length>1&&parseFloat(n[1])<4.4&&(t=!0)}return!t&&null!==ee&&!e.forceDisallow_},e.previouslyFailed=function(){return p.isInMemoryStorage||!0===p.get("previous_websocket_failure")},e.prototype.markConnectionHealthy=function(){p.remove("previous_websocket_failure")},e.prototype.appendFrame_=function(e){if(this.frames.push(e),this.frames.length===this.totalFrames){var t=this.frames.join("");this.frames=null;var n=Object(i.x)(t);this.onMessage(n)}},e.prototype.handleNewFrameCount_=function(e){this.totalFrames=e,this.frames=[]},e.prototype.extractFrameCount_=function(e){if(Object(i.e)(null===this.frames,"We already have a frame buffer"),e.length<=6){var t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e},e.prototype.handleIncomingFrame=function(e){if(null!==this.mySock){var t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{var n=this.extractFrameCount_(t);null!==n&&this.appendFrame_(n)}}},e.prototype.send=function(e){this.resetKeepAlive();var t=Object(i.D)(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);var n=P(t,16384);n.length>1&&this.sendString_(String(n.length));for(var r=0;r<n.length;r++)this.sendString_(n[r])},e.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},e.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},e.prototype.resetKeepAlive=function(){var e=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(function(){e.mySock&&e.sendString_("0"),e.resetKeepAlive()},Math.floor(45e3))},e.prototype.sendString_=function(e){try{this.mySock.send(e)}catch(t){this.log_("Exception thrown from WebSocket.send():",t.message||t.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}},e.responsesRequiredToBeHealthy=2,e.healthyTimeout=3e4,e}(),ne=function(){function e(e){this.initTransports_(e)}return Object.defineProperty(e,"ALL_TRANSPORTS",{get:function(){return[J,te]},enumerable:!1,configurable:!0}),e.prototype.initTransports_=function(t){var n,r,i=te&&te.isAvailable(),o=i&&!te.previouslyFailed();if(t.webSocketOnly&&(i||E("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),o=!0),o)this.transports_=[te];else{var a=this.transports_=[];try{for(var l=Object(s.g)(e.ALL_TRANSPORTS),u=l.next();!u.done;u=l.next()){var c=u.value;c&&c.isAvailable()&&a.push(c)}}catch(h){n={error:h}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}},e.prototype.initialTransport=function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")},e.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},e}(),re=function(){function e(e,t,n,r,i,s,o,a,l,u){this.id=e,this.repoInfo_=t,this.applicationId_=n,this.appCheckToken_=r,this.authToken_=i,this.onMessage_=s,this.onReady_=o,this.onDisconnect_=a,this.onKill_=l,this.lastSessionId=u,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=S("c:"+this.id+":"),this.transportManager_=new ne(t),this.log_("Connection created"),this.start_()}return e.prototype.start_=function(){var e=this,t=this.transportManager_.initialTransport();this.conn_=new t(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(function(){e.conn_&&e.conn_.open(n,r)},Math.floor(0));var i=t.healthyTimeout||0;i>0&&(this.healthyTimeout_=U(function(){e.healthyTimeout_=null,e.isHealthy_||(e.conn_&&e.conn_.bytesReceived>
1102400?(e.log_("Connection exceeded healthy timeout but has received "+e.conn_.bytesReceived+" bytes. Marking connection healthy."),e.isHealthy_=!0,e.conn_.markConnectionHealthy()):e.conn_&&e.conn_.bytesSent>10240?e.log_("Connection exceeded healthy timeout but has sent "+e.conn_.bytesSent+" bytes. Leaving connection alive."):(e.log_("Closing unhealthy connection after timeout."),e.close()))},Math.floor(i)))},e.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},e.prototype.disconnReceiver_=function(e){var t=this;return function(n){e===t.conn_?t.onConnectionLost_(n):e===t.secondaryConn_?(t.log_("Secondary connection lost."),t.onSecondaryConnectionLost_()):t.log_("closing an old connection")}},e.prototype.connReceiver_=function(e){var t=this;return function(n){2!==t.state_&&(e===t.rx_?t.onPrimaryMessageReceived_(n):e===t.secondaryConn_?t.onSecondaryMessageReceived_(n):t.log_("message on old connection"))}},e.prototype.sendRequest=function(e){this.sendData_({t:"d",d:e})},e.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},e.prototype.onSecondaryControl_=function(e){if("t"in e){var t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},e.prototype.onSecondaryMessageReceived_=function(e){var t=A("t",e),n=A("d",e);if("c"===t)this.onSecondaryControl_(n);else{if("d"!==t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}},e.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},e.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},e.prototype.onPrimaryMessageReceived_=function(e){var t=A("t",e),n=A("d",e);"c"===t?this.onControl_(n):"d"===t&&this.onDataMessage_(n)},e.prototype.onDataMessage_=function(e){this.onPrimaryResponse_(),this.onMessage_(e)},e.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},e.prototype.onControl_=function(e){var t=A("t",e);if("d"in e){var n=e.d;if("h"===t)this.onHandshake_(n);else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var r=0;r<this.pendingDataMessages.length;++r)this.onDataMessage_(this.pendingDataMessages[r]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===t?this.onConnectionShutdown_(n):"r"===t?this.onReset_(n):"e"===t?O("Server Error: "+n):"o"===t?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):O("Unknown control packet command: "+t)}},e.prototype.onHandshake_=function(e){var t=e.ts,n=e.v,r=e.h;this.sessionId=e.s,this.repoInfo_.host=r,0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),"5"!==n&&E("Protocol version mismatch detected"),this.tryStartUpgrade_())},e.prototype.tryStartUpgrade_=function(){var e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)},e.prototype.startUpgrade_=function(e){var t=this;this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,r),U(function(){t.secondaryConn_&&(t.log_("Timed out trying to upgrade."),t.secondaryConn_.close())},Math.floor(6e4))},e.prototype.onReset_=function(e){this.log_("Reset packet received. New host: "+e),this.repoInfo_.host=e,1===this.state_?this.close():(this.closeConnections_(),this.start_())},e.prototype.onConnectionEstablished_=function(e,t){var n=this;this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):U(function(){n.sendPingOnPrimaryIfNecessary_()},Math.floor(5e3))},e.prototype.sendPingOnPrimaryIfNecessary_=function(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))},e.prototype.onSecondaryConnectionLost_=function(){var e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()},e.prototype.onConnectionLost_=function(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(p.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()},e.prototype.onConnectionShutdown_=function(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()},e.prototype.sendData_=function(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)},e.prototype.close=function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))},e.prototype.closeConnections_=function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)},e}(),ie=function(){function e(){}return e.prototype.put=function(e,t,n,r){},e.prototype.merge=function(e,t,n,r){},e.prototype.refreshAuthToken=function(e){},e.prototype.refreshAppCheckToken=function(e){},e.prototype.onDisconnectPut=function(e,t,n){},e.prototype.onDisconnectMerge=function(e,t,n){},e.prototype.onDisconnectCancel=function(e,t){},e.prototype.reportStats=function(e){},e}(),se=function(){function e(e){this.allowedEvents_=e,this.listeners_={},Object(i.e)(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}return e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Array.isArray(this.listeners_[e]))for(var r=Object(s.f)([],Object(s.e)(this.listeners_[e])),i=0;i<r.length;i++)r[i].callback.apply(r[i].context,t)},e.prototype.on=function(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});var r=this.getInitialEvent(e);r&&t.apply(n,r)},e.prototype.off=function(e,t,n){this.validateEventType_(e);for(var r=this.listeners_[e]||[],i=0;i<r.length;i++)if(r[i].callback===t&&(!n||n===r[i].context))return void r.splice(i,1)},e.prototype.validateEventType_=function(e){Object(i.e)(this.allowedEvents_.find(function(t){return t===e}),"Unknown event: "+e)},e}(),oe=function(e){function t(){var t=e.call(this,["online"])||this;return t.online_=!0,"undefined"==typeof window||void 0===window.addEventListener||Object(i.s)()||(window.addEventListener("online",function(){t.online_||(t.online_=!0,t.trigger("online",!0))},!1),window.addEventListener("offline",function(){t.online_&&(t.online_=!1,t.trigger("online",!1))},!1)),t}return Object(s.c)(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return Object(i.e)("online"===e,"Unknown event type: "+e),[this.online_]},t.prototype.currentlyOnline=function(){return this.online_},t}(se),ae=function(){function e(e,t){if(void 0===t){this.pieces_=e.split("/");for(var n=0,r=0;r<this.pieces_.length;r++)this.pieces_[r].length>0&&(this.pieces_[n]=this.pieces_[r],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}return e.prototype.toString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+this.pieces_[t]);return e||"/"},e}();function le(){return new ae("")}function ue(e){return e.pieceNum_>=e.pieces_.length?null:e.pieces_[e.pieceNum_]}function ce(e){return e.pieces_.length-e.pieceNum_}function he(e){var t=e.pieceNum_;return t<e.pieces_.length&&t++,new ae(e.pieces_,t)}function de(e){return e.pieceNum_<e.pieces_.length?e.pieces_[e.pieces_.length-1]:null}function pe(e,t){return void 0===t&&(t=0),e.pieces_.slice(e.pieceNum_+t)}function fe(e){if(e.pieceNum_>=e.pieces_.length)return null;for(var t=[],n=e.pieceNum_;n<e.pieces_.length-1;n++)t.push(e.pieces_[n]);return new ae(t,0)}function ge(e,t){for(var n=[],r=e.pieceNum_;r<e.pieces_.length;r++)n.push(e.pieces_[r]);if(t instanceof ae)for(r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);else{var i=t.split("/");for(r=0;r<i.length;r++)i[r].length>0&&n.push(i[r])}return new ae(n,0)}function me(e){return e.pieceNum_>=e.pieces_.length}function be(e,t){var n=ue(e),r=ue(t);if(null===n)return t;if(n===r)return be(he(e),he(t));
1throw new Error("INTERNAL ERROR: innerPath ("+t+") is not within outerPath ("+e+")")}function ye(e,t){for(var n=pe(e,0),r=pe(t,0),i=0;i<n.length&&i<r.length;i++){var s=j(n[i],r[i]);if(0!==s)return s}return n.length===r.length?0:n.length<r.length?-1:1}function _e(e,t){if(ce(e)!==ce(t))return!1;for(var n=e.pieceNum_,r=t.pieceNum_;n<=e.pieces_.length;n++,r++)if(e.pieces_[n]!==t.pieces_[r])return!1;return!0}function ve(e,t){var n=e.pieceNum_,r=t.pieceNum_;if(ce(e)>ce(t))return!1;for(;n<e.pieces_.length;){if(e.pieces_[n]!==t.pieces_[r])return!1;++n,++r}return!0}var we=function(){return function(e,t){this.errorPrefix_=t,this.parts_=pe(e,0),this.byteLength_=Math.max(1,this.parts_.length);for(var n=0;n<this.parts_.length;n++)this.byteLength_+=Object(i.B)(this.parts_[n]);Ce(this)}}();function Ce(e){if(e.byteLength_>768)throw new Error(e.errorPrefix_+"has a key path longer than 768 bytes ("+e.byteLength_+").");if(e.parts_.length>32)throw new Error(e.errorPrefix_+"path specified exceeds the maximum depth that can be written (32) or object contains a cycle "+Se(e))}function Se(e){return 0===e.parts_.length?"":"in property '"+e.parts_.join(".")+"'"}var Oe,ke,Ee=function(e){function t(){var t,n,r=e.call(this,["visible"])||this;return"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(n="visibilitychange",t="hidden"):void 0!==document.mozHidden?(n="mozvisibilitychange",t="mozHidden"):void 0!==document.msHidden?(n="msvisibilitychange",t="msHidden"):void 0!==document.webkitHidden&&(n="webkitvisibilitychange",t="webkitHidden")),r.visible_=!0,n&&document.addEventListener(n,function(){var e=!document[t];e!==r.visible_&&(r.visible_=e,r.trigger("visible",e))},!1),r}return Object(s.c)(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return Object(i.e)("visible"===e,"Unknown event type: "+e),[this.visible_]},t}(se),xe=function(e){function t(n,r,s,o,a,l,u,c){var h=e.call(this)||this;if(h.repoInfo_=n,h.applicationId_=r,h.onDataUpdate_=s,h.onConnectStatus_=o,h.onServerInfoUpdate_=a,h.authTokenProvider_=l,h.appCheckTokenProvider_=u,h.authOverride_=c,h.id=t.nextPersistentConnectionId_++,h.log_=S("p:"+h.id+":"),h.interruptReasons_={},h.listens=new Map,h.outstandingPuts_=[],h.outstandingGets_=[],h.outstandingPutCount_=0,h.outstandingGetCount_=0,h.onDisconnectRequestQueue_=[],h.connected_=!1,h.reconnectDelay_=1e3,h.maxReconnectDelay_=3e5,h.securityDebugCallback_=null,h.lastSessionId=null,h.establishConnectionTimer_=null,h.visible_=!1,h.requestCBHash_={},h.requestNumber_=0,h.realtime_=null,h.authToken_=null,h.appCheckToken_=null,h.forceTokenRefresh_=!1,h.invalidAuthTokenCount_=0,h.invalidAppCheckTokenCount_=0,h.firstConnection_=!0,h.lastConnectionAttemptTime_=null,h.lastConnectionEstablishedTime_=null,c&&!Object(i.u)())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return Ee.getInstance().on("visible",h.onVisible_,h),-1===n.host.indexOf("fblocal")&&oe.getInstance().on("online",h.onOnline_,h),h}return Object(s.c)(t,e),t.prototype.sendRequest=function(e,t,n){var r=++this.requestNumber_,s={r,a:e,b:t};this.log_(Object(i.D)(s)),Object(i.e)(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(s),n&&(this.requestCBHash_[r]=n)},t.prototype.get=function(e){var t=this;this.initConnection_();var n=new i.a,r={p:e._path.toString(),q:e._queryObject},s={action:"g",request:r,onComplete:function(e){var i=e.d;"ok"===e.s?(t.onDataUpdate_(r.p,i,!1,null),n.resolve(i)):n.reject(i)}};this.outstandingGets_.push(s),this.outstandingGetCount_++;var o=this.outstandingGets_.length-1;return this.connected_||setTimeout(function(){var e=t.outstandingGets_[o];void 0!==e&&s===e&&(delete t.outstandingGets_[o],t.outstandingGetCount_--,0===t.outstandingGetCount_&&(t.outstandingGets_=[]),t.log_("get "+o+" timed out on connection"),n.reject(new Error("Client is offline.")))},3e3),this.connected_&&this.sendGet_(o),n.promise},t.prototype.listen=function(e,t,n,r){this.initConnection_();var s=e._queryIdentifier,o=e._path.toString();this.log_("Listen called for "+o+" "+s),this.listens.has(o)||this.listens.set(o,new Map),Object(i.e)(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"listen() called for non-default but complete query"),Object(i.e)(!this.listens.get(o).has(s),"listen() called twice for same path/queryId.");var a={onComplete:r,hashFn:t,query:e,tag:n};this.listens.get(o).set(s,a),this.connected_&&this.sendListen_(a)},t.prototype.sendGet_=function(e){var t=this,n=this.outstandingGets_[e];this.sendRequest("g",n.request,function(r){delete t.outstandingGets_[e],t.outstandingGetCount_--,0===t.outstandingGetCount_&&(t.outstandingGets_=[]),n.onComplete&&n.onComplete(r)})},t.prototype.sendListen_=function(e){var n=this,r=e.query,i=r._path.toString(),s=r._queryIdentifier;this.log_("Listen on "+i+" for "+s);var o={p:i};e.tag&&(o.q=r._queryObject,o.t=e.tag),o.h=e.hashFn(),this.sendRequest("q",o,function(o){var a=o.d,l=o.s;t.warnOnListenWarnings_(a,r),(n.listens.get(i)&&n.listens.get(i).get(s))===e&&(n.log_("listen response",o),"ok"!==l&&n.removeListen_(i,s),e.onComplete&&e.onComplete(l,a))})},t.warnOnListenWarnings_=function(e,t){if(e&&"object"==typeof e&&Object(i.i)(e,"w")){var n=Object(i.A)(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){var r='".indexOn": "'+t._queryParams.getIndex().toString()+'"',s=t._path.toString();E("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+r+" at "+s+" to your security rules for better performance.")}}},t.prototype.refreshAuthToken=function(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},function(){}),this.reduceReconnectDelayIfAdminCredential_(e)},t.prototype.reduceReconnectDelayIfAdminCredential_=function(e){(e&&40===e.length||Object(i.p)(e))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},t.prototype.refreshAppCheckToken=function(e){this.appCheckToken_=e,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},function(){})},t.prototype.tryAuth=function(){var e=this;if(this.connected_&&this.authToken_){var t=this.authToken_,n=Object(i.w)(t)?"auth":"gauth",r={cred:t};null===this.authOverride_?r.noauth=!0:"object"==typeof this.authOverride_&&(r.authvar=this.authOverride_),this.sendRequest(n,r,function(n){var r=n.s,i=n.d||"error";
1e.authToken_===t&&("ok"===r?e.invalidAuthTokenCount_=0:e.onAuthRevoked_(r,i))})}},t.prototype.tryAppCheck=function(){var e=this;this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},function(t){var n=t.s,r=t.d||"error";"ok"===n?e.invalidAppCheckTokenCount_=0:e.onAppCheckRevoked_(n,r)})},t.prototype.unlisten=function(e,t){var n=e._path.toString(),r=e._queryIdentifier;this.log_("Unlisten called for "+n+" "+r),Object(i.e)(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(n,r)&&this.connected_&&this.sendUnlisten_(n,r,e._queryObject,t)},t.prototype.sendUnlisten_=function(e,t,n,r){this.log_("Unlisten on "+e+" for "+t);var i={p:e};r&&(i.q=n,i.t=r),this.sendRequest("n",i)},t.prototype.onDisconnectPut=function(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})},t.prototype.onDisconnectMerge=function(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})},t.prototype.onDisconnectCancel=function(e,t){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})},t.prototype.sendOnDisconnect_=function(e,t,n,r){var i={p:t,d:n};this.log_("onDisconnect "+e,i),this.sendRequest(e,i,function(e){r&&setTimeout(function(){r(e.s,e.d)},Math.floor(0))})},t.prototype.put=function(e,t,n,r){this.putInternal("p",e,t,n,r)},t.prototype.merge=function(e,t,n,r){this.putInternal("m",e,t,n,r)},t.prototype.putInternal=function(e,t,n,r,i){this.initConnection_();var s={p:t,d:n};void 0!==i&&(s.h=i),this.outstandingPuts_.push({action:e,request:s,onComplete:r}),this.outstandingPutCount_++,this.connected_?this.sendPut_(this.outstandingPuts_.length-1):this.log_("Buffering put: "+t)},t.prototype.sendPut_=function(e){var t=this,n=this.outstandingPuts_[e].action,r=this.outstandingPuts_[e].request,i=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(n,r,function(r){t.log_(n+" response",r),delete t.outstandingPuts_[e],t.outstandingPutCount_--,0===t.outstandingPutCount_&&(t.outstandingPuts_=[]),i&&i(r.s,r.d)})},t.prototype.reportStats=function(e){var t=this;if(this.connected_){var n={c:e};this.log_("reportStats",n),this.sendRequest("s",n,function(e){"ok"!==e.s&&t.log_("reportStats","Error sending stats: "+e.d)})}},t.prototype.onDataMessage_=function(e){if("r"in e){this.log_("from server: "+Object(i.D)(e));var t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}},t.prototype.onDataPush_=function(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t.p,t.d,!1,t.t):"m"===e?this.onDataUpdate_(t.p,t.d,!0,t.t):"c"===e?this.onListenRevoked_(t.p,t.q):"ac"===e?this.onAuthRevoked_(t.s,t.d):"apc"===e?this.onAppCheckRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):O("Unrecognized action received from server: "+Object(i.D)(e)+"\nAre you using the latest client?")},t.prototype.onReady_=function(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},t.prototype.scheduleConnect_=function(e){var t=this;Object(i.e)(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(function(){t.establishConnectionTimer_=null,t.establishConnection_()},Math.floor(e))},t.prototype.initConnection_=function(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)},t.prototype.onVisible_=function(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0)),this.visible_=e},t.prototype.onOnline_=function(e){e?(this.log_("Browser went online."),this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())},t.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){this.visible_?this.lastConnectionEstablishedTime_&&((new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=1e3),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime());var e=(new Date).getTime()-this.lastConnectionAttemptTime_,t=Math.max(0,this.reconnectDelay_-e);
1t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},t.prototype.establishConnection_=function(){return Object(s.b)(this,void 0,void 0,function(){var e,n,r,o,a,l,u,c,h,d,p,f,g,m=this;return Object(s.d)(this,function(b){switch(b.label){case 0:if(!this.shouldReconnect_())return[3,4];this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null,e=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),o=this.id+":"+t.nextConnectionId_++,a=this.lastSessionId,l=!1,u=null,this.realtime_={close:c=function(){u?u.close():(l=!0,r())},sendRequest:function(e){Object(i.e)(u,"sendRequest call when we're not connected not allowed."),u.sendRequest(e)}},h=this.forceTokenRefresh_,this.forceTokenRefresh_=!1,b.label=1;case 1:return b.trys.push([1,3,,4]),[4,Promise.all([this.authTokenProvider_.getToken(h),this.appCheckTokenProvider_.getToken(h)])];case 2:return d=s.e.apply(void 0,[b.sent(),2]),p=d[0],f=d[1],l?C("getToken() completed but was canceled"):(C("getToken() completed. Creating connection."),this.authToken_=p&&p.accessToken,this.appCheckToken_=f&&f.token,u=new re(o,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,e,n,r,function(e){E(e+" ("+m.repoInfo_.toString()+")"),m.interrupt("server_kill")},a)),[3,4];case 3:return g=b.sent(),this.log_("Failed to get token: "+g),l||(this.repoInfo_.nodeAdmin&&E(g),c()),[3,4];case 4:return[2]}})})},t.prototype.interrupt=function(e){C("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},t.prototype.resume=function(e){C("Resuming connection for reason: "+e),delete this.interruptReasons_[e],Object(i.r)(this.interruptReasons_)&&(this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0))},t.prototype.handleTimestamp_=function(e){var t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})},t.prototype.cancelSentTransactions_=function(){for(var e=0;e<this.outstandingPuts_.length;e++){var t=this.outstandingPuts_[e];t&&"h"in t.request&&t.queued&&(t.onComplete&&t.onComplete("disconnect"),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])},t.prototype.onListenRevoked_=function(e,t){var n;n=t?t.map(function(e){return R(e)}).join("$"):"default";var r=this.removeListen_(e,n);r&&r.onComplete&&r.onComplete("permission_denied")},t.prototype.removeListen_=function(e,t){var n,r=new ae(e).toString();if(this.listens.has(r)){var i=this.listens.get(r);n=i.get(t),i.delete(t),0===i.size&&this.listens.delete(r)}else n=void 0;return n},t.prototype.onAuthRevoked_=function(e,t){C("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},t.prototype.onAppCheckRevoked_=function(e,t){C("App check token revoked: "+e+"/"+t),this.appCheckToken_=null,this.forceTokenRefresh_=!0,"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=3&&this.appCheckTokenProvider_.notifyForInvalidToken())},t.prototype.onSecurityDebugPacket_=function(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))},t.prototype.restoreState_=function(){var e,t,n,r;this.tryAuth(),this.tryAppCheck();try{for(var i=Object(s.g)(this.listens.values()),o=i.next();!o.done;o=i.next()){var a=o.value;try{for(var l=(n=void 0,Object(s.g)(a.values())),u=l.next();!u.done;u=l.next())this.sendListen_(u.value)}catch(d){n={error:d}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}catch(p){e={error:p}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}for(var c=0;c<this.outstandingPuts_.length;c++)this.outstandingPuts_[c]&&this.sendPut_(c);for(;this.onDisconnectRequestQueue_.length;){var h=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(h.action,h.pathString,h.data,h.onComplete)}for(c=0;c<this.outstandingGets_.length;c++)this.outstandingGets_[c]&&this.sendGet_(c)},t.prototype.sendConnectStats_=function(){var e={},t="js";
1Object(i.u)()&&(t=this.repoInfo_.nodeAdmin?"admin_node":"node"),e["sdk."+t+"."+a.replace(/\./g,"-")]=1,Object(i.s)()?e["framework.cordova"]=1:Object(i.v)()&&(e["framework.reactnative"]=1),this.reportStats(e)},t.prototype.shouldReconnect_=function(){var e=oe.getInstance().currentlyOnline();return Object(i.r)(this.interruptReasons_)&&e},t.nextPersistentConnectionId_=0,t.nextConnectionId_=0,t}(ie),Te=function(){function e(e,t){this.name=e,this.node=t}return e.Wrap=function(t,n){return new e(t,n)},e}(),Ie=function(){function e(){}return e.prototype.getCompare=function(){return this.compare.bind(this)},e.prototype.indexedValueChanged=function(e,t){var n=new Te(T,e),r=new Te(T,t);return 0!==this.compare(n,r)},e.prototype.minPost=function(){return Te.MIN},e}(),je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(s.c)(t,e),Object.defineProperty(t,"__EMPTY_NODE",{get:function(){return Oe},set:function(e){Oe=e},enumerable:!1,configurable:!0}),t.prototype.compare=function(e,t){return j(e.name,t.name)},t.prototype.isDefinedOn=function(e){throw Object(i.f)("KeyIndex.isDefinedOn not expected to be called.")},t.prototype.indexedValueChanged=function(e,t){return!1},t.prototype.minPost=function(){return Te.MIN},t.prototype.maxPost=function(){return new Te(I,Oe)},t.prototype.makePost=function(e,t){return Object(i.e)("string"==typeof e,"KeyIndex indexValue must always be a string."),new Te(e,Oe)},t.prototype.toString=function(){return".key"},t}(Ie),De=new je,Ae=function(){function e(e,t,n,r,i){void 0===i&&(i=null),this.isReverse_=r,this.resultGenerator_=i,this.nodeStack_=[];for(var s=1;!e.isEmpty();)if(s=t?n(e.key,t):1,r&&(s*=-1),s<0)e=this.isReverse_?e.left:e.right;else{if(0===s){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}return e.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},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},e.prototype.hasNext=function(){return this.nodeStack_.length>0},e.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}},e}(),Re=function(){function e(t,n,r,i,s){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:Ne.EMPTY_NODE,this.right=null!=s?s:Ne.EMPTY_NODE}return e.prototype.copy=function(t,n,r,i,s){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=s?s:this.right)},e.prototype.count=function(){return this.left.count()+1+this.right.count()},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},e.prototype.minKey=function(){return this.min_().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n))).fixUp_()},e.prototype.removeMin_=function(){if(this.left.isEmpty())return Ne.EMPTY_NODE;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_()},e.prototype.remove=function(e,t){var n,r;if(t(e,(n=this).key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return Ne.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()},e.prototype.isRed_=function(){return this.color},e.prototype.fixUp_=function(){var e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e},e.prototype.moveRedLeft_=function(){var e=this.colorFlip_();return e.right.left.isRed_()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight_())).rotateLeft_()).colorFlip_()),e},e.prototype.moveRedRight_=function(){var e=this.colorFlip_();return e.left.left.isRed_()&&(e=(e=e.rotateRight_()).colorFlip_()),e},e.prototype.rotateLeft_=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight_=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip_=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth_=function(){var e=this.check_();return Math.pow(2,e)<=this.count()+1},e.prototype.check_=function(){if(this.isRed_()&&this.left.isRed_()
1)throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)},e.RED=!0,e.BLACK=!1,e}(),Pe=function(){function e(){}return e.prototype.copy=function(e,t,n,r,i){return this},e.prototype.insert=function(e,t,n){return new Re(e,t,null)},e.prototype.remove=function(e,t){return this},e.prototype.count=function(){return 0},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.check_=function(){return 0},e.prototype.isRed_=function(){return!1},e}(),Ne=function(){function e(t,n){void 0===n&&(n=e.EMPTY_NODE),this.comparator_=t,this.root_=n}return e.prototype.insert=function(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,Re.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,Re.BLACK,null,null))},e.prototype.get=function(e){for(var t,n=this.root_;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key)))return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null},e.prototype.getPredecessorKey=function(e){for(var t,n=this.root_,r=null;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key))){if(n.left.isEmpty())return r?r.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")},e.prototype.isEmpty=function(){return this.root_.isEmpty()},e.prototype.count=function(){return this.root_.count()},e.prototype.minKey=function(){return this.root_.minKey()},e.prototype.maxKey=function(){return this.root_.maxKey()},e.prototype.inorderTraversal=function(e){return this.root_.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.root_.reverseTraversal(e)},e.prototype.getIterator=function(e){return new Ae(this.root_,null,this.comparator_,!1,e)},e.prototype.getIteratorFrom=function(e,t){return new Ae(this.root_,e,this.comparator_,!1,t)},e.prototype.getReverseIteratorFrom=function(e,t){return new Ae(this.root_,e,this.comparator_,!0,t)},e.prototype.getReverseIterator=function(e){return new Ae(this.root_,null,this.comparator_,!0,e)},e.EMPTY_NODE=new Pe,e}();function Me(e,t){return j(e.name,t.name)}function Fe(e,t){return j(e,t)}var Le,Ve,Ue,ze,$e,qe=function(e){return"number"==typeof e?"number:"+M(e):"string:"+e},He=function(e){if(e.isLeafNode()){var t=e.val();Object(i.e)("string"==typeof t||"number"==typeof t||"object"==typeof t&&Object(i.i)(t,".sv"),"Priority must be a string or number.")}else Object(i.e)(e===ke||e.isEmpty(),"priority of unexpected type.");Object(i.e)(e===ke||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},We=function(){function e(t,n){void 0===n&&(n=e.__childrenNodeConstructor.EMPTY_NODE),this.value_=t,this.priorityNode_=n,this.lazyHash_=null,Object(i.e)(null!=this.value_,"LeafNode shouldn't be created with null/undefined value."),He(this.priorityNode_)}return Object.defineProperty(e,"__childrenNodeConstructor",{get:function(){return Le},set:function(e){Le=e},enumerable:!1,configurable:!0}),e.prototype.isLeafNode=function(){return!0},e.prototype.getPriority=function(){return this.priorityNode_},e.prototype.updatePriority=function(t){return new e(this.value_,t)},e.prototype.getImmediateChild=function(t){return".priority"===t?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.getChild=function(t){return me(t)?this:".priority"===ue(t)?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.hasChild=function(){return!1},e.prototype.getPredecessorChildName=function(e,t){return null},e.prototype.updateImmediateChild=function(t,n){return".priority"===t?this.updatePriority(n):n.isEmpty()&&".priority"!==t?this:e.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,n).updatePriority(this.priorityNode_)},e.prototype.updateChild=function(t,n){var r=ue(t);return null===r?n:n.isEmpty()&&".priority"!==r?this:(Object(i.e)(".priority"!==r||1===ce(t),".priority must be the last token in a path"),this.updateImmediateChild(r,e.__childrenNodeConstructor.EMPTY_NODE.updateChild(he(t),n)))},e.prototype.isEmpty=function(){return!1},e.prototype.numChildren=function(){return 0},e.prototype.forEachChild=function(e,t){return!1}
1,e.prototype.val=function(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.priorityNode_.isEmpty()||(e+="priority:"+qe(this.priorityNode_.val())+":");var t=typeof this.value_;e+=t+":",e+="number"===t?M(this.value_):this.value_,this.lazyHash_=b(e)}return this.lazyHash_},e.prototype.getValue=function(){return this.value_},e.prototype.compareTo=function(t){return t===e.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof e.__childrenNodeConstructor?-1:(Object(i.e)(t.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(t))},e.prototype.compareToLeafNode_=function(t){var n=typeof t.value_,r=typeof this.value_,s=e.VALUE_TYPE_ORDER.indexOf(n),o=e.VALUE_TYPE_ORDER.indexOf(r);return Object(i.e)(s>=0,"Unknown leaf type: "+n),Object(i.e)(o>=0,"Unknown leaf type: "+r),s===o?"object"===r?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:o-s},e.prototype.withIndex=function(){return this},e.prototype.isIndexed=function(){return!0},e.prototype.equals=function(e){return e===this||!!e.isLeafNode()&&this.value_===e.value_&&this.priorityNode_.equals(e.priorityNode_)},e.VALUE_TYPE_ORDER=["object","boolean","number","string"],e}(),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(s.c)(t,e),t.prototype.compare=function(e,t){var n=e.node.getPriority(),r=t.node.getPriority(),i=n.compareTo(r);return 0===i?j(e.name,t.name):i},t.prototype.isDefinedOn=function(e){return!e.getPriority().isEmpty()},t.prototype.indexedValueChanged=function(e,t){return!e.getPriority().equals(t.getPriority())},t.prototype.minPost=function(){return Te.MIN},t.prototype.maxPost=function(){return new Te(I,new We("[PRIORITY-POST]",Ue))},t.prototype.makePost=function(e,t){var n=Ve(e);return new Te(t,new We("[PRIORITY-POST]",n))},t.prototype.toString=function(){return".priority"},t}(Ie),Ke=new Be,Qe=Math.log(2),Ze=function(){function e(e){this.count=parseInt(Math.log(e+1)/Qe,10),this.current_=this.count-1;var t=parseInt(Array(this.count+1).join("1"),2);this.bits_=e+1&t}return e.prototype.nextBitIsOne=function(){var e=!(this.bits_&1<<this.current_);return this.current_--,e},e}(),Ge=function(e,t,n,r){e.sort(t);var i=function(t,r){var s,o,a=r-t;if(0===a)return null;if(1===a)return s=e[t],o=n?n(s):s,new Re(o,s.node,Re.BLACK,null,null);var l=parseInt(a/2,10)+t,u=i(t,l),c=i(l+1,r);return s=e[l],o=n?n(s):s,new Re(o,s.node,Re.BLACK,u,c)},s=function(t){for(var r=null,s=null,o=e.length,a=function(t,r){var s=o-t,a=o;o-=t;var u=i(s+1,a),c=e[s],h=n?n(c):c;l(new Re(h,c.node,r,null,u))},l=function(e){r?(r.left=e,r=e):(s=e,r=e)},u=0;u<t.count;++u){var c=t.nextBitIsOne(),h=Math.pow(2,t.count-(u+1));c?a(h,Re.BLACK):(a(h,Re.BLACK),a(h,Re.RED))}return s}(new Ze(e.length));return new Ne(r||t,s)},Ye={},Je=function(){function e(e,t){this.indexes_=e,this.indexSet_=t}return Object.defineProperty(e,"Default",{get:function(){return Object(i.e)(Ye&&Ke,"ChildrenNode.ts has not been loaded"),ze=ze||new e({".priority":Ye},{".priority":Ke})},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t=Object(i.A)(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t instanceof Ne?t:null},e.prototype.hasIndex=function(e){return Object(i.i)(this.indexSet_,e.toString())},e.prototype.addIndex=function(t,n){Object(i.e)(t!==De,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var r,o=[],a=!1,l=n.getIterator(Te.Wrap),u=l.getNext();u;)a=a||t.isDefinedOn(u.node),o.push(u),u=l.getNext();r=a?Ge(o,t.getCompare()):Ye;var c=t.toString(),h=Object(s.a)({},this.indexSet_);h[c]=t;var d=Object(s.a)({},this.indexes_);return d[c]=r,new e(d,h)},e.prototype.addToIndexes=function(t,n){var r=this;return new e(Object(i.y)(this.indexes_,function(e,s){var o=Object(i.A)(r.indexSet_,s);if(Object(i.e)(o,"Missing index implementation for "+s),e===Ye){if(o.isDefinedOn(t.node)){for(var a=[],l=n.getIterator(Te.Wrap),u=l.getNext();u;)u.name!==t.name&&a.push(u),u=l.getNext();return a.push(t),Ge(a,o.getCompare())}return Ye}var c=n.get(t.name),h=e;return c&&(h=h.remove(new Te(t.name,c))),h.insert(t,t.node)}),this.indexSet_)}
1,e.prototype.removeFromIndexes=function(t,n){return new e(Object(i.y)(this.indexes_,function(e){if(e===Ye)return e;var r=n.get(t.name);return r?e.remove(new Te(t.name,r)):e}),this.indexSet_)},e}(),Xe=function(){function e(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&He(this.priorityNode_),this.children_.isEmpty()&&Object(i.e)(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(e,"EMPTY_NODE",{get:function(){return $e||($e=new e(new Ne(Fe),null,Je.Default))},enumerable:!1,configurable:!0}),e.prototype.isLeafNode=function(){return!1},e.prototype.getPriority=function(){return this.priorityNode_||$e},e.prototype.updatePriority=function(t){return this.children_.isEmpty()?this:new e(this.children_,t,this.indexMap_)},e.prototype.getImmediateChild=function(e){if(".priority"===e)return this.getPriority();var t=this.children_.get(e);return null===t?$e:t},e.prototype.getChild=function(e){var t=ue(e);return null===t?this:this.getImmediateChild(t).getChild(he(e))},e.prototype.hasChild=function(e){return null!==this.children_.get(e)},e.prototype.updateImmediateChild=function(t,n){if(Object(i.e)(n,"We should always be passing snapshot nodes"),".priority"===t)return this.updatePriority(n);var r=new Te(t,n),s=void 0,o=void 0;n.isEmpty()?(s=this.children_.remove(t),o=this.indexMap_.removeFromIndexes(r,this.children_)):(s=this.children_.insert(t,n),o=this.indexMap_.addToIndexes(r,this.children_));var a=s.isEmpty()?$e:this.priorityNode_;return new e(s,a,o)},e.prototype.updateChild=function(e,t){var n=ue(e);if(null===n)return t;Object(i.e)(".priority"!==ue(e)||1===ce(e),".priority must be the last token in a path");var r=this.getImmediateChild(n).updateChild(he(e),t);return this.updateImmediateChild(n,r)},e.prototype.isEmpty=function(){return this.children_.isEmpty()},e.prototype.numChildren=function(){return this.children_.count()},e.prototype.val=function(t){if(this.isEmpty())return null;var n={},r=0,i=0,s=!0;if(this.forEachChild(Ke,function(o,a){n[o]=a.val(t),r++,s&&e.INTEGER_REGEXP_.test(o)?i=Math.max(i,Number(o)):s=!1}),!t&&s&&i<2*r){var o=[];for(var a in n)o[a]=n[a];return o}return t&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.getPriority().isEmpty()||(e+="priority:"+qe(this.getPriority().val())+":"),this.forEachChild(Ke,function(t,n){var r=n.hash();""!==r&&(e+=":"+t+":"+r)}),this.lazyHash_=""===e?"":b(e)}return this.lazyHash_},e.prototype.getPredecessorChildName=function(e,t,n){var r=this.resolveIndex_(n);if(r){var i=r.getPredecessorKey(new Te(e,t));return i?i.name:null}return this.children_.getPredecessorKey(e)},e.prototype.getFirstChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.minKey();return n&&n.name}return this.children_.minKey()},e.prototype.getFirstChild=function(e){var t=this.getFirstChildName(e);return t?new Te(t,this.children_.get(t)):null},e.prototype.getLastChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.maxKey();return n&&n.name}return this.children_.maxKey()},e.prototype.getLastChild=function(e){var t=this.getLastChildName(e);return t?new Te(t,this.children_.get(t)):null},e.prototype.forEachChild=function(e,t){var n=this.resolveIndex_(e);return n?n.inorderTraversal(function(e){return t(e.name,e.node)}):this.children_.inorderTraversal(t)},e.prototype.getIterator=function(e){return this.getIteratorFrom(e.minPost(),e)},e.prototype.getIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,function(e){return e});for(var r=this.children_.getIteratorFrom(e.name,Te.Wrap),i=r.peek();null!=i&&t.compare(i,e)<0;)r.getNext(),i=r.peek();return r},e.prototype.getReverseIterator=function(e){return this.getReverseIteratorFrom(e.maxPost(),e)},e.prototype.getReverseIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,function(e){return e});for(var r=this.children_.getReverseIteratorFrom(e.name,Te.Wrap),i=r.peek();null!=i&&t.compare(i,e)>0;)r.getNext(),i=r.peek();return r},e.prototype.compareTo=function(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===et?-1:0},e.prototype.withIndex=function(t){if(t===De||this.indexMap_.hasIndex(t))return this;var n=this.indexMap_.addIndex(t,this.children_);return new e(this.children_,this.priorityNode_,n)},e.prototype.isIndexed=function(e){return e===De||this.indexMap_.hasIndex(e)},e.prototype.equals=function(e){if(e===this)return!0;
1if(e.isLeafNode())return!1;var t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){for(var n=this.getIterator(Ke),r=t.getIterator(Ke),i=n.getNext(),s=r.getNext();i&&s;){if(i.name!==s.name||!i.node.equals(s.node))return!1;i=n.getNext(),s=r.getNext()}return null===i&&null===s}return!1}return!1},e.prototype.resolveIndex_=function(e){return e===De?null:this.indexMap_.get(e.toString())},e.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,e}(),et=new(function(e){function t(){return e.call(this,new Ne(Fe),Xe.EMPTY_NODE,Je.Default)||this}return Object(s.c)(t,e),t.prototype.compareTo=function(e){return e===this?0:1},t.prototype.equals=function(e){return e===this},t.prototype.getPriority=function(){return this},t.prototype.getImmediateChild=function(e){return Xe.EMPTY_NODE},t.prototype.isEmpty=function(){return!1},t}(Xe));function tt(e,t){if(void 0===t&&(t=null),null===e)return Xe.EMPTY_NODE;if("object"==typeof e&&".priority"in e&&(t=e[".priority"]),Object(i.e)(null===t||"string"==typeof t||"number"==typeof t||"object"==typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"==typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!=typeof e||".sv"in e)return new We(e,tt(t));if(e instanceof Array){var n=Xe.EMPTY_NODE;return N(e,function(t,r){if(Object(i.i)(e,t)&&"."!==t.substring(0,1)){var s=tt(r);!s.isLeafNode()&&s.isEmpty()||(n=n.updateImmediateChild(t,s))}}),n.updatePriority(tt(t))}var r=[],s=!1;if(N(e,function(e,t){if("."!==e.substring(0,1)){var n=tt(t);n.isEmpty()||(s=s||!n.getPriority().isEmpty(),r.push(new Te(e,n)))}}),0===r.length)return Xe.EMPTY_NODE;var o=Ge(r,Me,function(e){return e.name},Fe);if(s){var a=Ge(r,Ke.getCompare());return new Xe(o,tt(t),new Je({".priority":a},{".priority":Ke}))}return new Xe(o,tt(t),Je.Default)}Object.defineProperties(Te,{MIN:{value:new Te(T,Xe.EMPTY_NODE)},MAX:{value:new Te(I,et)}}),je.__EMPTY_NODE=Xe.EMPTY_NODE,We.__childrenNodeConstructor=Xe,ke=et,Ue=et,Ve=tt;var nt,rt,it=function(e){function t(t){var n=e.call(this)||this;return n.indexPath_=t,Object(i.e)(!me(t)&&".priority"!==ue(t),"Can't create PathIndex with empty path or .priority key"),n}return Object(s.c)(t,e),t.prototype.extractChild=function(e){return e.getChild(this.indexPath_)},t.prototype.isDefinedOn=function(e){return!e.getChild(this.indexPath_).isEmpty()},t.prototype.compare=function(e,t){var n=this.extractChild(e.node),r=this.extractChild(t.node),i=n.compareTo(r);return 0===i?j(e.name,t.name):i},t.prototype.makePost=function(e,t){var n=tt(e),r=Xe.EMPTY_NODE.updateChild(this.indexPath_,n);return new Te(t,r)},t.prototype.maxPost=function(){var e=Xe.EMPTY_NODE.updateChild(this.indexPath_,et);return new Te(I,e)},t.prototype.toString=function(){return pe(this.indexPath_,0).join("/")},t}(Ie),st=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(s.c)(t,e),t.prototype.compare=function(e,t){var n=e.node.compareTo(t.node);return 0===n?j(e.name,t.name):n},t.prototype.isDefinedOn=function(e){return!0},t.prototype.indexedValueChanged=function(e,t){return!e.equals(t)},t.prototype.minPost=function(){return Te.MIN},t.prototype.maxPost=function(){return Te.MAX},t.prototype.makePost=function(e,t){var n=tt(e);return new Te(t,n)},t.prototype.toString=function(){return".value"},t}(Ie),ot=new st,at="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",lt=(nt=0,rt=[],function(e){var t,n=e===nt;nt=e;var r=new Array(8);for(t=7;t>=0;t--)r[t]=at.charAt(e%64),e=Math.floor(e/64);Object(i.e)(0===e,"Cannot push at time == 0");var s=r.join("");if(n){for(t=11;t>=0&&63===rt[t];t--)rt[t]=0;rt[t]++}else for(t=0;t<12;t++)rt[t]=Math.floor(64*Math.random());for(t=0;t<12;t++)s+=at.charAt(rt[t]);return Object(i.e)(20===s.length,"nextPushId: Length should be 20."),s}),ut=function(e){if("2147483647"===e)return"-";var t=L(e);if(null!=t)return""+(t+1);for(var n=new Array(e.length),r=0;r<n.length;r++)n[r]=e.charAt(r);if(n.length<786)return n.push("-"),n.join("");for(var i=n.length-1;i>=0&&"z"===n[i];)i--;if(-1===i)return I;var s=at.charAt(at.indexOf(n[i])+1);return n[i]=s,n.slice(0,i+1).join("")},ct=function(e){if("-2147483648"===e)return T;var t=L(e);if(null!=t)return""+(t-1);for(var n=new Array(e.length),r=0;r<n.length;r++)n[r]=e.charAt(r);return"-"===n[n.length-1]?1===n.length?"2147483647":(delete n[n.length-1],n.join("")):(n[n.length-1]=at.charAt(at.indexOf(n[n.length-1])-1),n.join("")+"z".repeat(786-n.length))};function ht(e){return{type:"value",snapshotNode:e}}function dt(e,t){return{type:"child_added",snapshotNode:t,childName:e}}function pt(e,t){return{type:"child_removed",snapshotNode:t,childName:e}}function ft(e,t,n){return{type:"child_changed",snapshotNode:t,childName:e,oldSnap:n}}var gt=function(){function e(e){this.index_=e}return e.prototype.updateChild=function(e,t,n,r,s,o){Object(i.e)(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");var a=e.getImmediateChild(t);return a.getChild(r).equals(n.getChild(r))&&a.isEmpty()===n.isEmpty()?e:(null!=o&&(n.isEmpty()?e.hasChild(t)?o.trackChildChange(pt(t,a)):Object(i.e)(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):a.isEmpty()?o.trackChildChange(dt(t,n)):o.trackChildChange(ft(t,n,a))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))},e.prototype.updateFullNode=function(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild(Ke,function(e,r){t.hasChild(e)||n.trackChildChange(pt(e,r))}),t.isLeafNode()||t.forEachChild(Ke,function(t,r){if(e.hasChild(t)){var i=e.getImmediateChild(t);i.equals(r)||n.trackChildChange(ft(t,r,i))}else n.trackChildChange(dt(t,r))})),t.withIndex(this.index_)},e.prototype.updatePriority=function(e,t){return e.isEmpty()?Xe.EMPTY_NODE:e.updatePriority(t)},e.prototype.filtersNodes=function(){return!1},e.prototype.getIndexedFilter=function(){return this},e.prototype.getIndex=function(){return this.index_},e}
1(),mt=function(){function e(t){this.indexedFilter_=new gt(t.getIndex()),this.index_=t.getIndex(),this.startPost_=e.getStartPost_(t),this.endPost_=e.getEndPost_(t)}return e.prototype.getStartPost=function(){return this.startPost_},e.prototype.getEndPost=function(){return this.endPost_},e.prototype.matches=function(e){return this.index_.compare(this.getStartPost(),e)<=0&&this.index_.compare(e,this.getEndPost())<=0},e.prototype.updateChild=function(e,t,n,r,i,s){return this.matches(new Te(t,n))||(n=Xe.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,r,i,s)},e.prototype.updateFullNode=function(e,t,n){t.isLeafNode()&&(t=Xe.EMPTY_NODE);var r=t.withIndex(this.index_);r=r.updatePriority(Xe.EMPTY_NODE);var i=this;return t.forEachChild(Ke,function(e,t){i.matches(new Te(e,t))||(r=r.updateImmediateChild(e,Xe.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.indexedFilter_},e.prototype.getIndex=function(){return this.index_},e.getStartPost_=function(e){if(e.hasStart()){var t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()},e.getEndPost_=function(e){if(e.hasEnd()){var t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()},e}(),bt=function(){function e(e){this.rangedFilter_=new mt(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft()}return e.prototype.updateChild=function(e,t,n,r,i,s){return this.rangedFilter_.matches(new Te(t,n))||(n=Xe.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(e,t,n,r,i,s):this.fullLimitUpdateChild_(e,t,n,i,s)},e.prototype.updateFullNode=function(e,t,n){var r;if(t.isLeafNode()||t.isEmpty())r=Xe.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){r=Xe.EMPTY_NODE.withIndex(this.index_);var i=void 0;i=this.reverse_?t.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):t.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);for(var s=0;i.hasNext()&&s<this.limit_;){var o=i.getNext();if(!(this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),o)<=0:this.index_.compare(o,this.rangedFilter_.getEndPost())<=0))break;r=r.updateImmediateChild(o.name,o.node),s++}}else{r=(r=t.withIndex(this.index_)).updatePriority(Xe.EMPTY_NODE);var a=void 0,l=void 0,u=void 0;if(i=void 0,this.reverse_){i=r.getReverseIterator(this.index_),a=this.rangedFilter_.getEndPost(),l=this.rangedFilter_.getStartPost();var c=this.index_.getCompare();u=function(e,t){return c(t,e)}}else i=r.getIterator(this.index_),a=this.rangedFilter_.getStartPost(),l=this.rangedFilter_.getEndPost(),u=this.index_.getCompare();s=0;for(var h=!1;i.hasNext();)o=i.getNext(),!h&&u(a,o)<=0&&(h=!0),h&&s<this.limit_&&u(o,l)<=0?s++:r=r.updateImmediateChild(o.name,Xe.EMPTY_NODE)}return this.rangedFilter_.getIndexedFilter().updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.rangedFilter_.getIndexedFilter()},e.prototype.getIndex=function(){return this.index_},e.prototype.fullLimitUpdateChild_=function(e,t,n,r,s){var o;if(this.reverse_){var a=this.index_.getCompare();o=function(e,t){return a(t,e)}}else o=this.index_.getCompare();var l=e;Object(i.e)(l.numChildren()===this.limit_,"");var u=new Te(t,n),c=this.reverse_?l.getFirstChild(this.index_):l.getLastChild(this.index_),h=this.rangedFilter_.matches(u);if(l.hasChild(t)){for(var d=l.getImmediateChild(t),p=r.getChildAfterChild(this.index_,c,this.reverse_);null!=p&&(p.name===t||l.hasChild(p.name));)p=r.getChildAfterChild(this.index_,p,this.reverse_);var f=null==p?1:o(p,u);if(h&&!n.isEmpty()&&f>=0)return null!=s&&s.trackChildChange(ft(t,n,d)),l.updateImmediateChild(t,n);null!=s&&s.trackChildChange(pt(t,d));var g=l.updateImmediateChild(t,Xe.EMPTY_NODE);return null!=p&&this.rangedFilter_.matches(p)?(null!=s&&s.trackChildChange(dt(p.name,p.node)),g.updateImmediateChild(p.name,p.node)):g}return n.isEmpty()?e:h&&o(c,u)>=0?(null!=s&&(s.trackChildChange(pt(c.name,c.node)),s.trackChildChange(dt(t,n))),l.updateImmediateChild(t,n).updateImmediateChild(c.name,Xe.EMPTY_NODE)):e},e}(),yt=function(){function e(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=Ke}return e.prototype.hasStart=function(){return this.startSet_},e.prototype.hasStartAfter=function(){return this.startAfterSet_},e.prototype.hasEndBefore=function(){return this.endBeforeSet_},e.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_},e.prototype.getIndexStartValue=function(){return Object(i.e)(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},e.prototype.getIndexStartName=function(){return Object(i.e)(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:T},e.prototype.hasEnd=function(){return this.endSet_},e.prototype.getIndexEndValue=function(){return Object(i.e)(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},e.prototype.getIndexEndName=function(){return Object(i.e)(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:I},e.prototype.hasLimit=function(){return this.limitSet_},e.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},e.prototype.getLimit=function(){return Object(i.e)(this.limitSet_,"Only valid if limit has been set"),this.limit_},e.prototype.getIndex=function(){return this.index_},e.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},e.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===Ke},e.prototype.copy=function(){var t=new e;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_
1=this.index_,t.viewFrom_=this.viewFrom_,t},e}();function _t(e,t,n){var r=e.copy();return r.startSet_=!0,void 0===t&&(t=null),r.indexStartValue_=t,null!=n?(r.startNameSet_=!0,r.indexStartName_=n):(r.startNameSet_=!1,r.indexStartName_=""),r}function vt(e,t,n){var r=e.copy();return r.endSet_=!0,void 0===t&&(t=null),r.indexEndValue_=t,void 0!==n?(r.endNameSet_=!0,r.indexEndName_=n):(r.endNameSet_=!1,r.indexEndName_=""),r}function wt(e,t){var n=e.copy();return n.index_=t,n}function Ct(e){var t,n={};return e.isDefault()||(e.index_===Ke?t="$priority":e.index_===ot?t="$value":e.index_===De?t="$key":(Object(i.e)(e.index_ instanceof it,"Unrecognized index type!"),t=e.index_.toString()),n.orderBy=Object(i.D)(t),e.startSet_&&(n.startAt=Object(i.D)(e.indexStartValue_),e.startNameSet_&&(n.startAt+=","+Object(i.D)(e.indexStartName_))),e.endSet_&&(n.endAt=Object(i.D)(e.indexEndValue_),e.endNameSet_&&(n.endAt+=","+Object(i.D)(e.indexEndName_))),e.limitSet_&&(e.isViewFromLeft()?n.limitToFirst=e.limit_:n.limitToLast=e.limit_)),n}function St(e){var t={};if(e.startSet_&&(t.sp=e.indexStartValue_,e.startNameSet_&&(t.sn=e.indexStartName_)),e.endSet_&&(t.ep=e.indexEndValue_,e.endNameSet_&&(t.en=e.indexEndName_)),e.limitSet_){t.l=e.limit_;var n=e.viewFrom_;""===n&&(n=e.isViewFromLeft()?"l":"r"),t.vf=n}return e.index_!==Ke&&(t.i=e.index_.toString()),t}var Ot=function(e){function t(t,n,r,i){var s=e.call(this)||this;return s.repoInfo_=t,s.onDataUpdate_=n,s.authTokenProvider_=r,s.appCheckTokenProvider_=i,s.log_=S("p:rest:"),s.listens_={},s}return Object(s.c)(t,e),t.prototype.reportStats=function(e){throw new Error("Method not implemented.")},t.getListenId_=function(e,t){return void 0!==t?"tag$"+t:(Object(i.e)(e._queryParams.isDefault(),"should have a tag if it's not a default query."),e._path.toString())},t.prototype.listen=function(e,n,r,s){var o=this,a=e._path.toString();this.log_("Listen called for "+a+" "+e._queryIdentifier);var l=t.getListenId_(e,r),u={};this.listens_[l]=u;var c=Ct(e._queryParams);this.restRequest_(a+".json",c,function(e,t){var n=t;404===e&&(n=null,e=null),null===e&&o.onDataUpdate_(a,n,!1,r),Object(i.A)(o.listens_,l)===u&&s(e?401===e?"permission_denied":"rest_error:"+e:"ok",null)})},t.prototype.unlisten=function(e,n){var r=t.getListenId_(e,n);delete this.listens_[r]},t.prototype.get=function(e){var t=this,n=Ct(e._queryParams),r=e._path.toString(),s=new i.a;return this.restRequest_(r+".json",n,function(e,n){var i=n;404===e&&(i=null,e=null),null===e?(t.onDataUpdate_(r,i,!1,null),s.resolve(i)):s.reject(new Error(i))}),s.promise},t.prototype.refreshAuthToken=function(e){},t.prototype.restRequest_=function(e,t,n){var r=this;return void 0===t&&(t={}),t.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then(function(o){var a=Object(s.e)(o,2),l=a[0],u=a[1];l&&l.accessToken&&(t.auth=l.accessToken),u&&u.token&&(t.ac=u.token);var c=(r.repoInfo_.secure?"https://":"http://")+r.repoInfo_.host+e+"?ns="+r.repoInfo_.namespace+Object(i.z)(t);r.log_("Sending REST request for "+c);var h=new XMLHttpRequest;h.onreadystatechange=function(){if(n&&4===h.readyState){r.log_("REST Response for "+c+" received. status:",h.status,"response:",h.responseText);var e=null;if(h.status>=200&&h.status<300){try{e=Object(i.x)(h.responseText)}catch(t){E("Failed to parse JSON response for "+c+": "+h.responseText)}n(null,e)}else 401!==h.status&&404!==h.status&&E("Got unsuccessful REST response for "+c+" Status: "+h.status),n(h.status);n=null}},h.open("GET",c,!0),h.send()})},t}(ie),kt=function(){function e(){this.rootNode_=Xe.EMPTY_NODE}return e.prototype.getNode=function(e){return this.rootNode_.getChild(e)},e.prototype.updateSnapshot=function(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)},e}();function Et(){return{value:null,children:new Map}}function xt(e,t,n){if(me(t))e.value=n,e.children.clear();else if(null!==e.value)e.value=e.value.updateChild(t,n);else{var r=ue(t);e.children.has(r)||e.children.set(r,Et()),xt(e.children.get(r),t=he(t),n)}}function Tt(e,t){if(me(t))return e.value=null,e.children.clear(),!0;if(null!==e.value){if(e.value.isLeafNode())return!1;var n=e.value;
1return e.value=null,n.forEachChild(Ke,function(t,n){xt(e,new ae(t),n)}),Tt(e,t)}if(e.children.size>0){var r=ue(t);return t=he(t),e.children.has(r)&&Tt(e.children.get(r),t)&&e.children.delete(r),0===e.children.size}return!0}function It(e,t,n){null!==e.value?n(t,e.value):function(e,t){e.children.forEach(function(e,n){t(n,e)})}(e,function(e,r){It(r,new ae(t.toString()+"/"+e),n)})}var jt=function(){function e(e){this.collection_=e,this.last_=null}return e.prototype.get=function(){var e=this.collection_.get(),t=Object(s.a)({},e);return this.last_&&N(this.last_,function(e,n){t[e]=t[e]-n}),this.last_=e,t},e}(),Dt=function(){function e(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new jt(e);var n=1e4+2e4*Math.random();U(this.reportStats_.bind(this),Math.floor(n))}return e.prototype.reportStats_=function(){var e=this,t=this.statsListener_.get(),n={},r=!1;N(t,function(t,s){s>0&&Object(i.i)(e.statsToReport_,t)&&(n[t]=s,r=!0)}),r&&this.server_.reportStats(n),U(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},e}(),At=function(e){return e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE",e}({});function Rt(e){return{fromUser:!1,fromServer:!0,queryId:e,tagged:!0}}var Pt,Nt=function(){function e(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=At.ACK_USER_WRITE,this.source={fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}return e.prototype.operationForChild=function(t){if(me(this.path)){if(null!=this.affectedTree.value)return Object(i.e)(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new ae(t));return new e(le(),n,this.revert)}return Object(i.e)(ue(this.path)===t,"operationForChild called for unrelated child."),new e(he(this.path),this.affectedTree,this.revert)},e}(),Mt=function(){function e(e,t){this.source=e,this.path=t,this.type=At.LISTEN_COMPLETE}return e.prototype.operationForChild=function(t){return me(this.path)?new e(this.source,le()):new e(this.source,he(this.path))},e}(),Ft=function(){function e(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=At.OVERWRITE}return e.prototype.operationForChild=function(t){return me(this.path)?new e(this.source,le(),this.snap.getImmediateChild(t)):new e(this.source,he(this.path),this.snap)},e}(),Lt=function(){function e(e,t,n){this.source=e,this.path=t,this.children=n,this.type=At.MERGE}return e.prototype.operationForChild=function(t){if(me(this.path)){var n=this.children.subtree(new ae(t));return n.isEmpty()?null:n.value?new Ft(this.source,le(),n.value):new e(this.source,le(),n)}return Object(i.e)(ue(this.path)===t,"Can't get a merge for a child not on the path of the operation"),new e(this.source,he(this.path),this.children)},e.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},e}(),Vt=function(){function e(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}return e.prototype.isFullyInitialized=function(){return this.fullyInitialized_},e.prototype.isFiltered=function(){return this.filtered_},e.prototype.isCompleteForPath=function(e){if(me(e))return this.isFullyInitialized()&&!this.filtered_;var t=ue(e);return this.isCompleteForChild(t)},e.prototype.isCompleteForChild=function(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)},e.prototype.getNode=function(){return this.node_},e}(),Ut=function(){return function(e){this.query_=e,this.index_=this.query_._queryParams.getIndex()}}();function zt(e,t,n,r,s,o){var a=r.filter(function(e){return e.type===n});a.sort(function(t,n){return function(e,t,n){if(null==t.childName||null==n.childName)throw Object(i.f)("Should only compare child_ events.");var r=new Te(t.childName,t.snapshotNode),s=new Te(n.childName,n.snapshotNode);return e.index_.compare(r,s)}(e,t,n)}),a.forEach(function(n){var r=function(e,t,n){return"value"===t.type||"child_removed"===t.type||(t.prevName=n.getPredecessorChildName(t.childName,t.snapshotNode,e.index_)),t}(e,n,o);
1s.forEach(function(i){i.respondsTo(n.type)&&t.push(i.createEvent(r,e.query_))})})}function $t(e,t){return{eventCache:e,serverCache:t}}function qt(e,t,n,r){return $t(new Vt(t,n,r),e.serverCache)}function Ht(e,t,n,r){return $t(e.eventCache,new Vt(t,n,r))}function Wt(e){return e.eventCache.isFullyInitialized()?e.eventCache.getNode():null}function Bt(e){return e.serverCache.isFullyInitialized()?e.serverCache.getNode():null}var Kt=function(){function e(e,t){void 0===t&&(Pt||(Pt=new Ne(D)),t=Pt),this.value=e,this.children=t}return e.fromObject=function(t){var n=new e(null);return N(t,function(e,t){n=n.set(new ae(e),t)}),n},e.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},e.prototype.findRootMostMatchingPathAndValue=function(e,t){if(null!=this.value&&t(this.value))return{path:le(),value:this.value};if(me(e))return null;var n=ue(e),r=this.children.get(n);if(null!==r){var i=r.findRootMostMatchingPathAndValue(he(e),t);return null!=i?{path:ge(new ae(n),i.path),value:i.value}:null}return null},e.prototype.findRootMostValueAndPath=function(e){return this.findRootMostMatchingPathAndValue(e,function(){return!0})},e.prototype.subtree=function(t){if(me(t))return this;var n=ue(t),r=this.children.get(n);return null!==r?r.subtree(he(t)):new e(null)},e.prototype.set=function(t,n){if(me(t))return new e(n,this.children);var r=ue(t),i=(this.children.get(r)||new e(null)).set(he(t),n),s=this.children.insert(r,i);return new e(this.value,s)},e.prototype.remove=function(t){if(me(t))return this.children.isEmpty()?new e(null):new e(null,this.children);var n=ue(t),r=this.children.get(n);if(r){var i=r.remove(he(t)),s=void 0;return s=i.isEmpty()?this.children.remove(n):this.children.insert(n,i),null===this.value&&s.isEmpty()?new e(null):new e(this.value,s)}return this},e.prototype.get=function(e){if(me(e))return this.value;var t=ue(e),n=this.children.get(t);return n?n.get(he(e)):null},e.prototype.setTree=function(t,n){if(me(t))return n;var r,i=ue(t),s=(this.children.get(i)||new e(null)).setTree(he(t),n);return r=s.isEmpty()?this.children.remove(i):this.children.insert(i,s),new e(this.value,r)},e.prototype.fold=function(e){return this.fold_(le(),e)},e.prototype.fold_=function(e,t){var n={};return this.children.inorderTraversal(function(r,i){n[r]=i.fold_(ge(e,r),t)}),t(e,this.value,n)},e.prototype.findOnPath=function(e,t){return this.findOnPath_(e,le(),t)},e.prototype.findOnPath_=function(e,t,n){var r=!!this.value&&n(t,this.value);if(r)return r;if(me(e))return null;var i=ue(e),s=this.children.get(i);return s?s.findOnPath_(he(e),ge(t,i),n):null},e.prototype.foreachOnPath=function(e,t){return this.foreachOnPath_(e,le(),t)},e.prototype.foreachOnPath_=function(t,n,r){if(me(t))return this;this.value&&r(n,this.value);var i=ue(t),s=this.children.get(i);return s?s.foreachOnPath_(he(t),ge(n,i),r):new e(null)},e.prototype.foreach=function(e){this.foreach_(le(),e)},e.prototype.foreach_=function(e,t){this.children.inorderTraversal(function(n,r){r.foreach_(ge(e,n),t)}),this.value&&t(e,this.value)},e.prototype.foreachChild=function(e){this.children.inorderTraversal(function(t,n){n.value&&e(t,n.value)})},e}(),Qt=function(){function e(e){this.writeTree_=e}return e.empty=function(){return new e(new Kt(null))},e}();function Zt(e,t,n){if(me(t))return new Qt(new Kt(n));var r=e.writeTree_.findRootMostValueAndPath(t);if(null!=r){var i=r.path,s=r.value,o=be(i,t);return s=s.updateChild(o,n),new Qt(e.writeTree_.set(i,s))}var a=new Kt(n),l=e.writeTree_.setTree(t,a);return new Qt(l)}function Gt(e,t,n){var r=e;return N(n,function(e,n){r=Zt(r,ge(t,e),n)}),r}function Yt(e,t){if(me(t))return Qt.empty();var n=e.writeTree_.setTree(t,new Kt(null));return new Qt(n)}function Jt(e,t){return null!=Xt(e,t)}function Xt(e,t){var n=e.writeTree_.findRootMostValueAndPath(t);return null!=n?e.writeTree_.get(n.path).getChild(be(n.path,t)):null}function en(e){var t=[],n=e.writeTree_.value;return null!=n?n.isLeafNode()||n.forEachChild(Ke,function(e,n){t.push(new Te(e,n))}
1):e.writeTree_.children.inorderTraversal(function(e,n){null!=n.value&&t.push(new Te(e,n.value))}),t}function tn(e,t){if(me(t))return e;var n=Xt(e,t);return new Qt(null!=n?new Kt(n):e.writeTree_.subtree(t))}function nn(e){return e.writeTree_.isEmpty()}function rn(e,t){return sn(le(),e.writeTree_,t)}function sn(e,t,n){if(null!=t.value)return n.updateChild(e,t.value);var r=null;return t.children.inorderTraversal(function(t,s){".priority"===t?(Object(i.e)(null!==s.value,"Priority writes must always be leaf nodes"),r=s.value):n=sn(ge(e,t),s,n)}),n.getChild(e).isEmpty()||null===r||(n=n.updateChild(ge(e,".priority"),r)),n}function on(e,t){return bn(t,e)}function an(e,t){if(e.snap)return ve(e.path,t);for(var n in e.children)if(e.children.hasOwnProperty(n)&&ve(ge(e.path,n),t))return!0;return!1}function ln(e){return e.visible}function un(e,t,n){for(var r=Qt.empty(),s=0;s<e.length;++s){var o=e[s];if(t(o)){var a=o.path,l=void 0;if(o.snap)ve(n,a)?r=Zt(r,l=be(n,a),o.snap):ve(a,n)&&(l=be(a,n),r=Zt(r,le(),o.snap.getChild(l)));else{if(!o.children)throw Object(i.f)("WriteRecord should have .snap or .children");if(ve(n,a))r=Gt(r,l=be(n,a),o.children);else if(ve(a,n))if(me(l=be(a,n)))r=Gt(r,le(),o.children);else{var u=Object(i.A)(o.children,ue(l));if(u){var c=u.getChild(he(l));r=Zt(r,le(),c)}}}}}return r}function cn(e,t,n,r,i){if(r||i){var s=tn(e.visibleWrites,t);return!i&&nn(s)?n:i||null!=n||Jt(s,le())?rn(un(e.allWrites,function(e){return(e.visible||i)&&(!r||!~r.indexOf(e.writeId))&&(ve(e.path,t)||ve(t,e.path))},t),n||Xe.EMPTY_NODE):null}var o=Xt(e.visibleWrites,t);if(null!=o)return o;var a=tn(e.visibleWrites,t);return nn(a)?n:null!=n||Jt(a,le())?rn(a,n||Xe.EMPTY_NODE):null}function hn(e,t,n,r){return cn(e.writeTree,e.treePath,t,n,r)}function dn(e,t){return function(e,t,n){var r=Xe.EMPTY_NODE,i=Xt(e.visibleWrites,t);if(i)return i.isLeafNode()||i.forEachChild(Ke,function(e,t){r=r.updateImmediateChild(e,t)}),r;if(n){var s=tn(e.visibleWrites,t);return n.forEachChild(Ke,function(e,t){var n=rn(tn(s,new ae(e)),t);r=r.updateImmediateChild(e,n)}),en(s).forEach(function(e){r=r.updateImmediateChild(e.name,e.node)}),r}
1return en(tn(e.visibleWrites,t)).forEach(function(e){r=r.updateImmediateChild(e.name,e.node)}),r}(e.writeTree,e.treePath,t)}function pn(e,t,n,r){return function(e,t,n,r,s){Object(i.e)(r||s,"Either existingEventSnap or existingServerSnap must exist");var o=ge(t,n);if(Jt(e.visibleWrites,o))return null;var a=tn(e.visibleWrites,o);return nn(a)?s.getChild(n):rn(a,s.getChild(n))}(e.writeTree,e.treePath,t,n,r)}function fn(e,t){return function(e,t){return Xt(e.visibleWrites,t)}(e.writeTree,ge(e.treePath,t))}function gn(e,t,n){return function(e,t,n,r){var i=ge(t,n),s=Xt(e.visibleWrites,i);return null!=s?s:r.isCompleteForChild(n)?rn(tn(e.visibleWrites,i),r.getNode().getImmediateChild(n)):null}(e.writeTree,e.treePath,t,n)}function mn(e,t){return bn(ge(e.treePath,t),e.writeTree)}function bn(e,t){return{treePath:e,writeTree:t}}var yn=function(){function e(){this.changeMap=new Map}return e.prototype.trackChildChange=function(e){var t=e.type,n=e.childName;Object(i.e)("child_added"===t||"child_changed"===t||"child_removed"===t,"Only child changes supported for tracking"),Object(i.e)(".priority"!==n,"Only non-priority child changes can be tracked.");var r=this.changeMap.get(n);if(r){var s=r.type;if("child_added"===t&&"child_removed"===s)this.changeMap.set(n,ft(n,e.snapshotNode,r.snapshotNode));else if("child_removed"===t&&"child_added"===s)this.changeMap.delete(n);else if("child_removed"===t&&"child_changed"===s)this.changeMap.set(n,pt(n,r.oldSnap));else if("child_changed"===t&&"child_added"===s)this.changeMap.set(n,dt(n,e.snapshotNode));else{if("child_changed"!==t||"child_changed"!==s)throw Object(i.f)("Illegal combination of changes: "+e+" occurred after "+r);this.changeMap.set(n,ft(n,e.snapshotNode,r.oldSnap))}}else this.changeMap.set(n,e)},e.prototype.getChanges=function(){return Array.from(this.changeMap.values())},e}(),_n=new(function(){function e(){}return e.prototype.getCompleteChild=function(e){return null},e.prototype.getChildAfterChild=function(e,t,n){return null},e}()),vn=function(){function e(e,t,n){void 0===n&&(n=null),this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}return e.prototype.getCompleteChild=function(e){var t=this.viewCache_.eventCache;if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);var n=null!=this.optCompleteServerCache_?new Vt(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return gn(this.writes_,e,n)},e.prototype.getChildAfterChild=function(e,t,n){var r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:Bt(this.viewCache_),i=function(e,t,n,r,i,s){return function(e,t,n,r,i,s,o){var a,l=tn(e.visibleWrites,t),u=Xt(l,le());if(null!=u)a=u;else{if(null==n)return[];a=rn(l,n)}if((a=a.withIndex(o)).isEmpty()||a.isLeafNode())return[];for(var c=[],h=o.getCompare(),d=s?a.getReverseIteratorFrom(r,o):a.getIteratorFrom(r,o),p=d.getNext();p&&c.length<1;)0!==h(p,r)&&c.push(p),p=d.getNext();return c}(e.writeTree,e.treePath,t,n,0,i,s)}(this.writes_,r,t,0,n,e);return 0===i.length?null:i[0]},e}();function wn(e,t,n,r,s,o){var a=t.eventCache;if(null!=fn(r,n))return t;var l=void 0,u=void 0;if(me(n))if(Object(i.e)(t.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),t.serverCache.isFiltered()){var c=Bt(t),h=dn(r,c instanceof Xe?c:Xe.EMPTY_NODE);l=e.filter.updateFullNode(t.eventCache.getNode(),h,o)}else{var d=hn(r,Bt(t));l=e.filter.updateFullNode(t.eventCache.getNode(),d,o)}else{var p=ue(n);if(".priority"===p){Object(i.e)(1===ce(n),"Can't have a priority with additional path components");var f=a.getNode(),g=pn(r,n,f,u=t.serverCache.getNode());l=null!=g?e.filter.updatePriority(f,g):a.getNode()}else{var m=he(n),b=void 0;
1if(a.isCompleteForChild(p)){u=t.serverCache.getNode();var y=pn(r,n,a.getNode(),u);b=null!=y?a.getNode().getImmediateChild(p).updateChild(m,y):a.getNode().getImmediateChild(p)}else b=gn(r,p,t.serverCache);l=null!=b?e.filter.updateChild(a.getNode(),p,b,m,s,o):a.getNode()}}return qt(t,l,a.isFullyInitialized()||me(n),e.filter.filtersNodes())}function Cn(e,t,n,r,i,s,o,a){var l,u=t.serverCache,c=o?e.filter:e.filter.getIndexedFilter();if(me(n))l=c.updateFullNode(u.getNode(),r,null);else if(c.filtersNodes()&&!u.isFiltered()){var h=u.getNode().updateChild(n,r);l=c.updateFullNode(u.getNode(),h,null)}else{var d=ue(n);if(!u.isCompleteForPath(n)&&ce(n)>1)return t;var p=he(n),f=u.getNode().getImmediateChild(d).updateChild(p,r);l=".priority"===d?c.updatePriority(u.getNode(),f):c.updateChild(u.getNode(),d,f,p,_n,null)}var g=Ht(t,l,u.isFullyInitialized()||me(n),c.filtersNodes());return wn(e,g,n,i,new vn(i,g,s),a)}function Sn(e,t,n,r,i,s,o){var a,l,u=t.eventCache,c=new vn(i,t,s);if(me(n))l=e.filter.updateFullNode(t.eventCache.getNode(),r,o),a=qt(t,l,!0,e.filter.filtersNodes());else{var h=ue(n);if(".priority"===h)l=e.filter.updatePriority(t.eventCache.getNode(),r),a=qt(t,l,u.isFullyInitialized(),u.isFiltered());else{var d=he(n),p=u.getNode().getImmediateChild(h),f=void 0;if(me(d))f=r;else{var g=c.getCompleteChild(h);f=null!=g?".priority"===de(d)&&g.getChild(fe(d)).isEmpty()?g:g.updateChild(d,r):Xe.EMPTY_NODE}a=p.equals(f)?t:qt(t,e.filter.updateChild(u.getNode(),h,f,d,c,o),u.isFullyInitialized(),e.filter.filtersNodes())}}return a}function On(e,t){return e.eventCache.isCompleteForChild(t)}function kn(e,t,n){return n.foreach(function(e,n){t=t.updateChild(e,n)}),t}function En(e,t,n,r,i,s,o,a){if(t.serverCache.getNode().isEmpty()&&!t.serverCache.isFullyInitialized())return t;var l,u=t;l=me(n)?r:new Kt(null).setTree(n,r);var c=t.serverCache.getNode();return l.children.inorderTraversal(function(n,r){if(c.hasChild(n)){var l=kn(0,t.serverCache.getNode().getImmediateChild(n),r);u=Cn(e,u,new ae(n),l,i,s,o,a)}}),l.children.inorderTraversal(function(n,r){var l=!t.serverCache.isCompleteForChild(n)&&void 0===r.value;if(!c.hasChild(n)&&!l){var h=kn(0,t.serverCache.getNode().getImmediateChild(n),r);u=Cn(e,u,new ae(n),h,i,s,o,a)}}),u}var xn,Tn=function(){function e(e,t){this.query_=e,this.eventRegistrations_=[];var n,r=this.query_._queryParams,i=new gt(r.getIndex()),s=(n=r).loadsAllData()?new gt(n.getIndex()):n.hasLimit()?new bt(n):new mt(n);this.processor_=function(e){return{filter:e}}(s);var o=t.serverCache,a=t.eventCache,l=i.updateFullNode(Xe.EMPTY_NODE,o.getNode(),null),u=s.updateFullNode(Xe.EMPTY_NODE,a.getNode(),null),c=new Vt(l,o.isFullyInitialized(),i.filtersNodes()),h=new Vt(u,a.isFullyInitialized(),s.filtersNodes());this.viewCache_=$t(h,c),this.eventGenerator_=new Ut(this.query_)}return Object.defineProperty(e.prototype,"query",{get:function(){return this.query_},enumerable:!1,configurable:!0}),e}();function In(e,t){var n=Bt(e.viewCache_);return n&&(e.query._queryParams.loadsAllData()||!me(t)&&!n.getImmediateChild(ue(t)).isEmpty())?n.getChild(t):null}function jn(e){return 0===e.eventRegistrations_.length}function Dn(e,t,n){var r=[];if(n){Object(i.e)(null==t,"A cancel should cancel all event registrations.");var s=e.query._path;e.eventRegistrations_.forEach(function(e){var t=e.createCancelEvent(n,s);t&&r.push(t)})}if(t){for(var o=[],a=0;a<e.eventRegistrations_.length;++a){var l=e.eventRegistrations_[a];if(l.matches(t)){if(t.hasAnyCallback()){o=o.concat(e.eventRegistrations_.slice(a+1));break}}else o.push(l)}e.eventRegistrations_=o}else e.eventRegistrations_=[];return r}function An(e,t,n,r){t.type===At.MERGE&&null!==t.source.queryId&&(Object(i.e)(Bt(e.viewCache_),"We should always have a full cache before handling merges"),Object(i.e)(Wt(e.viewCache_),"Missing event cache, even though we have a server cache"));var s,o,a=e.viewCache_,l=function(e,t,n,r,s){var o,a,l=new yn;if(n.type===At.OVERWRITE){var u=n;u.source.fromUser?o=Sn(e,t,u.path,u.snap,r,s,l):(Object(i.e)(u.source.fromServer,"Unknown source."),a=u.source.tagged||t.serverCache.isFiltered()&&!me(u.path),o=Cn(e,t,u.path,u.snap,r,s,a,l))}else if(n.type===At.MERGE){var c=n;c.source.fromUser?o=function(e,t,n,r,i,s,o){var a=t;return r.foreach(function(r,l){var u=ge(n,r);On(t,ue(u))&&(a=Sn(e,a,u,l,i,s,o))}),r.foreach(function(r,l){var u=ge(n,r);On(t,ue(u))||(a=Sn(e,a,u,l,i,s,o))}),a}(e,t,c.path,c.children,r,s,l):(Object(i.e)(c.source.fromServer,"Unknown source."),a=c.source.tagged||t.serverCache.isFiltered(),o=En(e,t,c.path,c.children,r,s,a,l))}else if(n.type===At.ACK_USER_WRITE){var h=n;o=h.revert?function(e,t,n,r,s,o){var a;if(null!=fn(r,n))return t;var l=new vn(r,t,s),u=t.eventCache.getNode(),c=void 0;if(me(n)||".priority"===ue(n)){var h=void 0;if(t.serverCache.isFullyInitialized())h=hn(r,Bt(t));else{var d=t.serverCache.getNode();Object(i.e)(d instanceof Xe,"serverChildren would be complete if leaf node"),h=dn(r,d)}c=e.filter.updateFullNode(u,h,o)}else{var p=ue(n),f=gn(r,p,t.serverCache);null==f&&t.serverCache.isCompleteForChild(p)&&(f=u.getImmediateChild(p)),(c=null!=f?e.filter.updateChild(u,p,f,he(n),l,o):t.eventCache.getNode().hasChild(p)?e.filter.updateChild(u,p,Xe.EMPTY_NODE,he(n),l,o):u).isEmpty()&&t.serverCache.isFullyInitialized()&&(a=hn(r,Bt(t))).isLeafNode()&&(c=e.filter.updateFullNode(c,a,o))}return a=t.serverCache.isFullyInitialized()||null!=fn(r,le()),qt(t,c,a,e.filter.filtersNodes())}(e,t,h.path,r,s,l):function(e,t,n,r,i,s,o){if(null!=fn(i,n))return t;var a=t.serverCache.isFiltered(),l=t.serverCache;if(null!=r.value){if(me(n)&&l.isFullyInitialized()||l.isCompleteForPath(n))return Cn(e,t,n,l.getNode().getChild(n),i,s,a,o);if(me(n)){var u=new Kt(null);
1return l.getNode().forEachChild(De,function(e,t){u=u.set(new ae(e),t)}),En(e,t,n,u,i,s,a,o)}return t}var c=new Kt(null);return r.foreach(function(e,t){var r=ge(n,e);l.isCompleteForPath(r)&&(c=c.set(e,l.getNode().getChild(r)))}),En(e,t,n,c,i,s,a,o)}(e,t,h.path,h.affectedTree,r,s,l)}else{if(n.type!==At.LISTEN_COMPLETE)throw Object(i.f)("Unknown operation type: "+n.type);o=function(e,t,n,r,i){var s=t.serverCache;return wn(e,Ht(t,s.getNode(),s.isFullyInitialized()||me(n),s.isFiltered()),n,r,_n,i)}(e,t,n.path,r,l)}var d=l.getChanges();return function(e,t,n){var r=t.eventCache;if(r.isFullyInitialized()){var i=r.getNode().isLeafNode()||r.getNode().isEmpty(),s=Wt(e);(n.length>0||!e.eventCache.isFullyInitialized()||i&&!r.getNode().equals(s)||!r.getNode().getPriority().equals(s.getPriority()))&&n.push(ht(Wt(t)))}}(t,o,d),{viewCache:o,changes:d}}(e.processor_,a,t,n,r);return s=e.processor_,o=l.viewCache,Object(i.e)(o.eventCache.getNode().isIndexed(s.filter.getIndex()),"Event snap not indexed"),Object(i.e)(o.serverCache.getNode().isIndexed(s.filter.getIndex()),"Server snap not indexed"),Object(i.e)(l.viewCache.serverCache.isFullyInitialized()||!a.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),e.viewCache_=l.viewCache,Rn(e,l.changes,l.viewCache.eventCache.getNode(),null)}function Rn(e,t,n,r){return function(e,t,n,r){var i=[],s=[];return t.forEach(function(t){"child_changed"===t.type&&e.index_.indexedValueChanged(t.oldSnap,t.snapshotNode)&&s.push({type:"child_moved",snapshotNode:t.snapshotNode,childName:t.childName})}),zt(e,i,"child_removed",t,r,n),zt(e,i,"child_added",t,r,n),zt(e,i,"child_moved",s,r,n),zt(e,i,"child_changed",t,r,n),zt(e,i,"value",t,r,n),i}(e.eventGenerator_,t,n,r?[r]:e.eventRegistrations_)}var Pn,Nn=function(){return function(){this.views=new Map}}();function Mn(e,t,n,r){var o,a,l=t.source.queryId;if(null!==l){var u=e.views.get(l);return Object(i.e)(null!=u,"SyncTree gave us an op for an invalid query."),An(u,t,n,r)}var c=[];try{for(var h=Object(s.g)(e.views.values()),d=h.next();!d.done;d=h.next())c=c.concat(An(u=d.value,t,n,r))}catch(p){o={error:p}}finally{try{d&&!d.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}return c}function Fn(e,t,n,r,i){var s=e.views.get(t._queryIdentifier);if(!s){var o=hn(n,i?r:null),a=!1;o?a=!0:r instanceof Xe?(o=dn(n,r),a=!1):(o=Xe.EMPTY_NODE,a=!1);var l=$t(new Vt(o,a,!1),new Vt(r,i,!1));return new Tn(t,l)}return s}function Ln(e){var t,n,r=[];try{for(var i=Object(s.g)(e.views.values()),o=i.next();!o.done;o=i.next()){var a=o.value;a.query._queryParams.loadsAllData()||r.push(a)}}
1catch(l){t={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Vn(e,t){var n,r,i=null;try{for(var o=Object(s.g)(e.views.values()),a=o.next();!a.done;a=o.next())i=i||In(a.value,t)}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}function Un(e,t){return t._queryParams.loadsAllData()?qn(e):e.views.get(t._queryIdentifier)}function zn(e,t){return null!=Un(e,t)}function $n(e){return null!=qn(e)}function qn(e){var t,n;try{for(var r=Object(s.g)(e.views.values()),i=r.next();!i.done;i=r.next()){var o=i.value;if(o.query._queryParams.loadsAllData())return o}}catch(a){t={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null}var Hn=1,Wn=function(){return function(e){this.listenProvider_=e,this.syncPointTree_=new Kt(null),this.pendingWriteTree_={visibleWrites:Qt.empty(),allWrites:[],lastWriteId:-1},this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}();function Bn(e,t,n,r,s){return function(e,t,n,r,s){Object(i.e)(r>e.lastWriteId,"Stacking an older write on top of newer ones"),void 0===s&&(s=!0),e.allWrites.push({path:t,snap:n,writeId:r,visible:s}),s&&(e.visibleWrites=Zt(e.visibleWrites,t,n)),e.lastWriteId=r}(e.pendingWriteTree_,t,n,r,s),s?Jn(e,new Ft({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},t,n)):[]}function Kn(e,t,n){void 0===n&&(n=!1);var r=function(e,t){for(var n=0;n<e.allWrites.length;n++){var r=e.allWrites[n];if(r.writeId===t)return r}return null}(e.pendingWriteTree_,t);if(function(e,t){var n=e.allWrites.findIndex(function(e){return e.writeId===t});Object(i.e)(n>=0,"removeWrite called with nonexistent writeId.");var r=e.allWrites[n];e.allWrites.splice(n,1);for(var s=r.visible,o=!1,a=e.allWrites.length-1;s&&a>=0;){var l=e.allWrites[a];l.visible&&(a>=n&&an(l,r.path)?s=!1:ve(r.path,l.path)&&(o=!0)),a--}return!!s&&(o?(function(e){e.visibleWrites=un(e.allWrites,ln,le()),e.lastWriteId=e.allWrites.length>0?e.allWrites[e.allWrites.length-1].writeId:-1}(e),!0):(r.snap?e.visibleWrites=Yt(e.visibleWrites,r.path):N(r.children,function(t){e.visibleWrites=Yt(e.visibleWrites,ge(r.path,t))}),!0))}(e.pendingWriteTree_,t)){var s=new Kt(null);return null!=r.snap?s=s.set(le(),!0):N(r.children,function(e){s=s.set(new ae(e),!0)}),Jn(e,new Nt(r.path,s,n))}return[]}function Qn(e,t,n){return Jn(e,new Ft({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t,n))}function Zn(e,t,n,r){var o=t._path,a=e.syncPointTree_.get(o),l=[];if(a&&("default"===t._queryIdentifier||zn(a,t))){var u=function(e,t,n,r){var o,a,l=t._queryIdentifier,u=[],c=[],h=$n(e);if("default"===l)try{for(var d=Object(s.g)(e.views.entries()),p=d.next();!p.done;p=d.next()){var f,g=Object(s.e)(p.value,2),m=g[0];c=c.concat(Dn(f=g[1],n,r)),jn(f)&&(e.views.delete(m),f.query._queryParams.loadsAllData()||u.push(f.query))}}catch(b){o={error:b}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}else(f=e.views.get(l))&&(c=c.concat(Dn(f,n,r)),jn(f)&&(e.views.delete(l),f.query._queryParams.loadsAllData()||u.push(f.query)));return h&&!$n(e)&&u.push(new(Object(i.e)(xn,"Reference.ts has not been loaded"),xn)(t._repo,t._path)),{removed:u,events:c}}(a,t,n,r);0===a.views.size&&(e.syncPointTree_=e.syncPointTree_.remove(o));var c=u.removed;l=u.events;var h=-1!==c.findIndex(function(e){return e._queryParams.loadsAllData()}),d=e.syncPointTree_.findOnPath(o,function(e,t){return $n(t)});if(h&&!d){var p=e.syncPointTree_.subtree(o);if(!p.isEmpty())for(var f=function(e){return e.fold(function(e,t,n){if(t&&$n(t))return[qn(t)];var r=[];return t&&(r=Ln(t)),N(n,function(e,t){r=r.concat(t)}),r})}(p),g=0;g<f.length;++g){var m=f[g],b=m.query,y=tr(e,m);e.listenProvider_.startListening(ar(b),nr(e,b),y.hashFn,y.onComplete)}}!d&&c.length>0&&!r&&(h?e.listenProvider_.stopListening(ar(t),null):c.forEach(function(t){var n=e.queryToTagMap.get(rr(t));e.listenProvider_.stopListening(ar(t),n)})),function(e,t){for(var n=0;n<t.length;++n){var r=t[n];if(!r._queryParams.loadsAllData()){var i=rr(r),s=e.queryToTagMap.get(i);e.queryToTagMap.delete(i),e.tagToQueryMap.delete(s)}}}(e,c)}return l}function Gn(e,t,n){var r=t._path,s=null,o=!1;e.syncPointTree_.foreachOnPath(r,function(e,t){var n=be(e,r);s=s||Vn(t,n),o=o||$n(t)});var a,l=e.syncPointTree_.get(r);l?(o=o||$n(l),s=s||Vn(l,le())):(l=new Nn,e.syncPointTree_=e.syncPointTree_.set(r,l)),null!=s?a=!0:(a=!1,s=Xe.EMPTY_NODE,e.syncPointTree_.subtree(r).foreachChild(function(e,t){var n=Vn(t,le());n&&(s=s.updateImmediateChild(e,n))}));var u=zn(l,t);if(!u&&!t._queryParams.loadsAllData()){var c=rr(t);Object(i.e)(!e.queryToTagMap.has(c),"View does not exist, but we have a tag");var h=Hn++;e.queryToTagMap.set(c,h),e.tagToQueryMap.set(h,c)}var d=function(e,t,n,r,i,s){var o=Fn(e,t,r,i,s);return e.views.has(t._queryIdentifier)||e.views.set(t._queryIdentifier,o),function(e,t){e.eventRegistrations_.push(t)}(o,n),function(e,t){var n=e.viewCache_.eventCache,r=[];
1return n.getNode().isLeafNode()||n.getNode().forEachChild(Ke,function(e,t){r.push(dt(e,t))}),n.isFullyInitialized()&&r.push(ht(n.getNode())),Rn(e,r,n.getNode(),t)}(o,n)}(l,t,n,on(e.pendingWriteTree_,r),s,a);if(!u&&!o){var p=Un(l,t);d=d.concat(function(e,t,n){var r=t._path,s=nr(e,t),o=tr(e,n),a=e.listenProvider_.startListening(ar(t),s,o.hashFn,o.onComplete),l=e.syncPointTree_.subtree(r);if(s)Object(i.e)(!$n(l.value),"If we're adding a query, it shouldn't be shadowed");else for(var u=l.fold(function(e,t,n){if(!me(e)&&t&&$n(t))return[qn(t).query];var r=[];return t&&(r=r.concat(Ln(t).map(function(e){return e.query}))),N(n,function(e,t){r=r.concat(t)}),r}),c=0;c<u.length;++c){var h=u[c];e.listenProvider_.stopListening(ar(h),nr(e,h))}return a}(e,t,p))}return d}function Yn(e,t,n){var r=e.pendingWriteTree_,i=e.syncPointTree_.findOnPath(t,function(e,n){var r=Vn(n,be(e,t));if(r)return r});return cn(r,t,i,n,!0)}function Jn(e,t){return Xn(t,e.syncPointTree_,null,on(e.pendingWriteTree_,le()))}function Xn(e,t,n,r){if(me(e.path))return er(e,t,n,r);var i=t.get(le());null==n&&null!=i&&(n=Vn(i,le()));var s=[],o=ue(e.path),a=e.operationForChild(o),l=t.children.get(o);if(l&&a){var u=n?n.getImmediateChild(o):null,c=mn(r,o);s=s.concat(Xn(a,l,u,c))}return i&&(s=s.concat(Mn(i,e,r,n))),s}function er(e,t,n,r){var i=t.get(le());null==n&&null!=i&&(n=Vn(i,le()));var s=[];return t.children.inorderTraversal(function(t,i){var o=n?n.getImmediateChild(t):null,a=mn(r,t),l=e.operationForChild(t);l&&(s=s.concat(er(l,i,o,a)))}),i&&(s=s.concat(Mn(i,e,r,n))),s}function tr(e,t){var n=t.query,r=nr(e,n);return{hashFn:function(){var e=function(e){return e.viewCache_.serverCache.getNode()}(t)||Xe.EMPTY_NODE;return e.hash()},onComplete:function(t){if("ok"===t)return r?function(e,t,n){var r=ir(e,n);if(r){var i=sr(r),s=i.path,o=i.queryId,a=be(s,t);return or(e,s,new Mt(Rt(o),a))}return[]}(e,n._path,r):function(e,t){return Jn(e,new Mt({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t))}(e,n._path);var i=function(e,t){var n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===e?n="Client doesn't have permission to access the desired data.":"unavailable"===e&&(n="The service is unavailable");var r=new Error(e+" at "+t._path.toString()+": "+n);return r.code=e.toUpperCase(),r}(t,n);return Zn(e,n,null,i)}}}function nr(e,t){var n=rr(t);return e.queryToTagMap.get(n)}function rr(e){return e._path.toString()+"$"+e._queryIdentifier}function ir(e,t){return e.tagToQueryMap.get(t)}function sr(e){var t=e.indexOf("$");return Object(i.e)(-1!==t&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new ae(e.substr(0,t))}}function or(e,t,n){var r=e.syncPointTree_.get(t);return Object(i.e)(r,"Missing sync point for query tag that we're tracking"),Mn(r,n,on(e.pendingWriteTree_,t),null)}
1function ar(e){return e._queryParams.loadsAllData()&&!e._queryParams.isDefault()?new(Object(i.e)(Pn,"Reference.ts has not been loaded"),Pn)(e._repo,e._path):e}var lr=function(){function e(e){this.node_=e}return e.prototype.getImmediateChild=function(t){return new e(this.node_.getImmediateChild(t))},e.prototype.node=function(){return this.node_},e}(),ur=function(){function e(e,t){this.syncTree_=e,this.path_=t}return e.prototype.getImmediateChild=function(t){var n=ge(this.path_,t);return new e(this.syncTree_,n)},e.prototype.node=function(){return Yn(this.syncTree_,this.path_)},e}(),cr=function(e,t,n){return e&&"object"==typeof e?(Object(i.e)(".sv"in e,"Unexpected leaf node or priority contents"),"string"==typeof e[".sv"]?hr(e[".sv"],t,n):"object"==typeof e[".sv"]?dr(e[".sv"],t):void Object(i.e)(!1,"Unexpected server value: "+JSON.stringify(e,null,2))):e},hr=function(e,t,n){if("timestamp"===e)return n.timestamp;Object(i.e)(!1,"Unexpected server value: "+e)},dr=function(e,t,n){e.hasOwnProperty("increment")||Object(i.e)(!1,"Unexpected server value: "+JSON.stringify(e,null,2));var r=e.increment;"number"!=typeof r&&Object(i.e)(!1,"Unexpected increment value: "+r);var s=t.node();if(Object(i.e)(null!=s,"Expected ChildrenNode.EMPTY_NODE for nulls"),!s.isLeafNode())return r;var o=s.getValue();return"number"!=typeof o?r:o+r},pr=function(e,t,n,r){return gr(t,new ur(n,e),r)},fr=function(e,t,n){return gr(e,new lr(t),n)};function gr(e,t,n){var r,i=e.getPriority().val(),s=cr(i,t.getImmediateChild(".priority"),n);if(e.isLeafNode()){var o=e,a=cr(o.getValue(),t,n);return a!==o.getValue()||s!==o.getPriority().val()?new We(a,tt(s)):e}var l=e;return r=l,s!==l.getPriority().val()&&(r=r.updatePriority(new We(s))),l.forEachChild(Ke,function(e,i){var s=gr(i,t.getImmediateChild(e),n);s!==i&&(r=r.updateImmediateChild(e,s))}),r}var mr=function(){return function(e,t,n){void 0===e&&(e=""),void 0===t&&(t=null),void 0===n&&(n={children:{},childCount:0}),this.name=e,this.parent=t,this.node=n}}();function br(e,t){for(var n=t instanceof ae?t:new ae(t),r=e,s=ue(n);null!==s;){var o=Object(i.A)(r.node.children,s)||{children:{},childCount:0};r=new mr(s,r,o),s=ue(n=he(n))}return r}function yr(e){return e.node.value}function _r(e,t){e.node.value=t,Or(e)}function vr(e){return e.node.childCount>0}function wr(e,t){N(e.node.children,function(n,r){t(new mr(n,e,r))})}function Cr(e,t,n,r){n&&!r&&t(e),wr(e,function(e){Cr(e,t,!0,r)}),n&&r&&t(e)}function Sr(e){return new ae(null===e.parent?e.name:Sr(e.parent)+"/"+e.name)}function Or(e){null!==e.parent&&function(e,t,n){var r=function(e){return void 0===yr(e)&&!vr(e)}(n),s=Object(i.i)(e.node.children,t);r&&s?(delete e.node.children[t],e.node.childCount--,Or(e)):r||s||(e.node.children[t]=n.node,e.node.childCount++,Or(e))}(e.parent,e.name,e)}var kr=/[\[\].#$\/\u0000-\u001F\u007F]/,Er=/[\[\].#$\u0000-\u001F\u007F]/,xr=function(e){return"string"==typeof e&&0!==e.length&&!kr.test(e)},Tr=function(e){return"string"==typeof e&&0!==e.length&&!Er.test(e)},Ir=function(e){return null===e||"string"==typeof e||"number"==typeof e&&!x(e)||e&&"object"==typeof e&&Object(i.i)(e,".sv")},jr=function(e,t,n,r){r&&void 0===t||Dr(Object(i.n)(e,"value"),t,n)},Dr=function(e,t,n){var r=n instanceof ae?new we(n,e):n;if(void 0===t)throw new Error(e+"contains undefined "+Se(r));if("function"==typeof t)throw new Error(e+"contains a function "+Se(r)+" with contents = "+t.toString());if(x(t))throw new Error(e+"contains "+t.toString()+" "+Se(r));if("string"==typeof t&&t.length>10485760/3&&Object(i.B)(t)>10485760)throw new Error(e+"contains a string greater than 10485760 utf8 bytes "+Se(r)+" ('"+t.substring(0,50)+"...')");if(t&&"object"==typeof t){var s=!1,o=!1;if(N(t,function(t,n){if(".value"===t)s=!0;else if(".priority"!==t&&".sv"!==t&&(o=!0,!xr(t)))throw new Error(e+" contains an invalid key ("+t+") "+Se(r)+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');var a,l;!function(e,t){e.parts_.length>0&&(e.byteLength_+=1),e.parts_.push(t),e.byteLength_+=Object(i.B)(t),Ce(e)}(r,t),Dr(e,n,r),l=(a=r).parts_.pop(),a.byteLength_-=Object(i.B)(l),a.parts_.length>0&&(a.byteLength_-=1)}),s&&o)throw new Error(e+' contains ".value" child '+Se(r)+" in addition to actual children.")}},Ar=function(e,t,n,r){if(!r||void 0!==t){var s=Object(i.n)(e,"values");if(!t||"object"!=typeof t||Array.isArray(t))throw new Error(s+" must be an object c
1ontaining the children to replace.");var o=[];N(t,function(e,t){var r=new ae(e);if(Dr(s,t,ge(n,r)),".priority"===de(r)&&!Ir(t))throw new Error(s+"contains an invalid value for '"+r.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");o.push(r)}),function(e,t){var n,r;for(n=0;n<t.length;n++)for(var i=pe(r=t[n]),s=0;s<i.length;s++)if(".priority"===i[s]&&s===i.length-1);else if(!xr(i[s]))throw new Error(e+"contains an invalid key ("+i[s]+") in path "+r.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');t.sort(ye);var o=null;for(n=0;n<t.length;n++){if(r=t[n],null!==o&&ve(o,r))throw new Error(e+"contains a path "+o.toString()+" that is ancestor of another path "+r.toString());o=r}}(s,o)}},Rr=function(e,t,n){if(!n||void 0!==t){if(x(t))throw new Error(Object(i.n)(e,"priority")+"is "+t.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!Ir(t))throw new Error(Object(i.n)(e,"priority")+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},Pr=function(e,t,n,r){if(!(r&&void 0===n||xr(n)))throw new Error(Object(i.n)(e,t)+'was an invalid key = "'+n+'". Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},Nr=function(e,t,n,r){if(!(r&&void 0===n||Tr(n)))throw new Error(Object(i.n)(e,t)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},Mr=function(e,t){if(".info"===ue(t))throw new Error(e+" failed = Can't modify data under /.info/")},Fr=function(e,t){var n=t.path.toString();if("string"!=typeof t.repoInfo.host||0===t.repoInfo.host.length||!xr(t.repoInfo.namespace)&&"localhost"!==t.repoInfo.host.split(":")[0]||0!==n.length&&!function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),Tr(e)}(n))throw new Error(Object(i.n)(e,"url")+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},Lr=function(){return function(){this.eventLists_=[],this.recursionDepth_=0}}();function Vr(e,t){for(var n=null,r=0;r<t.length;r++){var i=t[r],s=i.getPath();null===n||_e(s,n.path)||(e.eventLists_.push(n),n=null),null===n&&(n={events:[],path:s}),n.events.push(i)}n&&e.eventLists_.push(n)}function Ur(e,t,n){Vr(e,n),$r(e,function(e){return _e(e,t)})}function zr(e,t,n){Vr(e,n),$r(e,function(e){return ve(e,t)||ve(t,e)})}function $r(e,t){e.recursionDepth_++;for(var n=!0,r=0;r<e.eventLists_.length;r++){var i=e.eventLists_[r];i&&(t(i.path)?(qr(e.eventLists_[r]),e.eventLists_[r]=null):n=!1)}n&&(e.eventLists_=[]),e.recursionDepth_--}function qr(e){for(var t=0;t<e.events.length;t++){var n=e.events[t];if(null!==n){e.events[t]=null;var r=n.getEventRunner();_&&C("event: "+n.toString()),V(r)}}}var Hr=function(){function e(e,t,n,r){this.repoInfo_=e,this.forceRestClient_=t,this.authTokenProvider_=n,this.appCheckProvider_=r,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new Lr,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=Et(),this.transactionQueueTree_=new mr,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}return e.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},e}();function Wr(e){var t=e.infoData_.getNode(new ae(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+t}function Br(e){return(t=(t={timestamp:Wr(e)})||{}).timestamp=t.timestamp||(new Date).getTime(),t;var t}function Kr(e,t,n,r,s){e.dataUpdateCount++;var o=new ae(t);n=e.interceptServerDataCallback_?e.interceptServerDataCallback_(t,n):n;var a=[];if(s)if(r){var l=Object(i.y)(n,function(e){return tt(e)});a=function(e,t,n,r){var i=ir(e,r);if(i){var s=sr(i),o=s.path,a=s.queryId,l=be(o,t),u=Kt.fromObject(n);return or(e,o,new Lt(Rt(a),l,u))}return[]}(e.serverSyncTree_,o,l,s)}else{var u=tt(n);a=function(e,t,n,r){var i=ir(e,r);if(null!=i){var s=sr(i),o=s.path,a=s.queryId,l=be(o,t);return or(e,o,new Ft(Rt(a),l,n))}return[]}(e.serverSyncTree_,o,u,s)}else if(r){var c=Object(i.y)(n,function(e){return tt(e)});a=function(e,t,n){var r=Kt.fromObject(n);return Jn(e,new Lt({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t,r))}(e.serverSyncTree_,o,c)}else{var h=tt(n);a=Qn(e.serverSyncTree_,o,h)}var d=o;a.length>0&&(d=oi(e,o)),zr(e.eventQueue_,d,a)}function Qr(e,t){Zr(e,"connected",t),!1===t&&function(e){ni(e,"onDisconnectEvents");var t=Br(e),n=Et();It(e.onDisconnect_,le(),function(r,i){var s=pr(r,i,e.serverSyncTree_,t);xt(n,r,s)});var r=[];It(n,le(),function(t,n){r=r.concat(Qn(e.serverSyncTree_,t,n));var i=hi(e,t);oi(e,i)}),e.onDisconnect_=Et(),zr(e.eventQueue_,le(),r)}(e)}function Zr(e,t,n){var r=new ae("/.info/"+t),i=tt(n);e.infoData_.updateSnapshot(r,i);var s=Qn(e.infoSyncTree_,r,i);zr(e.eventQueue_,r,s)}function Gr(e){return e.nextWriteId_++}function Yr(e,t,n,r,i){ni(e,"set",{path:t.toString(),value:n,priority:r});var s=Br(e),o=tt(n,r),a=Yn(e.serverSyncTree_,t),l=fr(o,a,s),u=Gr(e),c=Bn(e.serverSyncTree_,t,l,u,!0);Vr(e.eventQueue_,c),e.server_.put(t.toString(),o.val(!0),function(n,r){var s="ok"===n;s||E("set at "+t+" failed: "+n);var o=Kn(e.serverSyncTree_,u,!s);zr(e.eventQueue_,t,o),ri(0,i,n,r)});var h=hi(e,t);oi(e,h),zr(e.eventQueue_,h,[])}function Jr(e,t,n){e.server_.onDisconnectCancel(t.toString(),function(r,i){"ok"===r&&Tt(e.onDisconnect_,t),ri(0,n,r,i)})}function Xr(e,t,n,r){var i=tt(n);e.server_.onDisconnectPut(t.toString(),i.val(!0),function(n,s){"ok"===n&&xt(e.onDisconnect_,t,i),ri(0,r,n,s)})}
1function ei(e,t,n){var r;r=".info"===ue(t._path)?Zn(e.infoSyncTree_,t,n):Zn(e.serverSyncTree_,t,n),Ur(e.eventQueue_,t._path,r)}function ti(e){e.persistentConnection_&&e.persistentConnection_.interrupt("repo_interrupt")}function ni(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r="";e.persistentConnection_&&(r=e.persistentConnection_.id+":"),C.apply(void 0,Object(s.f)([r],Object(s.e)(t)))}function ri(e,t,n,r){t&&V(function(){if("ok"===n)t(null);else{var e=(n||"error").toUpperCase(),i=e;r&&(i+=": "+r);var s=new Error(i);s.code=e,t(s)}})}function ii(e,t,n){return Yn(e.serverSyncTree_,t,n)||Xe.EMPTY_NODE}function si(e,t){if(void 0===t&&(t=e.transactionQueueTree_),t||ci(e,t),yr(t)){var n=li(e,t);Object(i.e)(n.length>0,"Sending zero length transaction queue"),n.every(function(e){return 0===e.status})&&function(e,t,n){for(var r=n.map(function(e){return e.currentWriteId}),s=ii(e,t,r),o=s,a=s.hash(),l=0;l<n.length;l++){var u=n[l];Object(i.e)(0===u.status,"tryToSendTransactionQueue_: items in queue should all be run."),u.status=1,u.retryCount++;var c=be(t,u.path);o=o.updateChild(c,u.currentOutputSnapshotRaw)}var h=o.val(!0),d=t;e.server_.put(d.toString(),h,function(r){ni(e,"transaction put response",{path:d.toString(),status:r});var i=[];if("ok"===r){for(var s=[],o=function(t){n[t].status=2,i=i.concat(Kn(e.serverSyncTree_,n[t].currentWriteId)),n[t].onComplete&&s.push(function(){return n[t].onComplete(null,!0,n[t].currentOutputSnapshotResolved)}),n[t].unwatcher()},a=0;a<n.length;a++)o(a);for(ci(e,br(e.transactionQueueTree_,t)),si(e,e.transactionQueueTree_),zr(e.eventQueue_,t,i),a=0;a<s.length;a++)V(s[a])}else{if("datastale"===r)for(a=0;a<n.length;a++)n[a].status=3===n[a].status?4:0;else for(E("transaction at "+d.toString()+" failed: "+r),a=0;a<n.length;a++)n[a].status=4,n[a].abortReason=r;oi(e,t)}},a)}(e,Sr(t),n)}else vr(t)&&wr(t,function(t){si(e,t)})}function oi(e,t){var n=ai(e,t),r=Sr(n);return function(e,t,n){if(0!==t.length){for(var r=[],s=[],o=t.filter(function(e){return 0===e.status}).map(function(e){return e.currentWriteId}),a=function(a){var l,u=t[a],c=be(n,u.path),h=!1;if(Object(i.e)(null!==c,"rerunTransactionsUnderNode_: relativePath should not be null."),4===u.status)h=!0,l=u.abortReason,s=s.concat(Kn(e.serverSyncTree_,u.currentWriteId,!0));else if(0===u.status)if(u.retryCount>=25)h=!0,l="maxretry",s=s.concat(Kn(e.serverSyncTree_,u.currentWriteId,!0));else{var d=ii(e,u.path,o);u.currentInputSnapshot=d;var p=t[a].update(d.val());if(void 0!==p){Dr("transaction failed: Data returned ",p,u.path);var f=tt(p);"object"==typeof p&&null!=p&&Object(i.i)(p,".priority")||(f=f.updatePriority(d.getPriority()));var g=u.currentWriteId,m=Br(e),b=fr(f,d,m);u.currentOutputSnapshotRaw=f,u.currentOutputSnapshotResolved=b,u.currentWriteId=Gr(e),o.splice(o.indexOf(g),1),s=(s=s.concat(Bn(e.serverSyncTree_,u.path,b,u.currentWriteId,u.applyLocally))).concat(Kn(e.serverSyncTree_,g,!0))}else h=!0,l="nodata",s=s.concat(Kn(e.serverSyncTree_,u.currentWriteId,!0))}zr(e.eventQueue_,n,s),s=[],h&&(t[a].status=2,setTimeout(t[a].unwatcher,Math.floor(0)),t[a].onComplete&&r.push("nodata"===l?function(){return t[a].onComplete(null,!1,t[a].currentInputSnapshot)}:function(){return t[a].onComplete(new Error(l),!1,null)}))},l=0;l<t.length;l++)a(l);for(ci(e,e.transactionQueueTree_),l=0;l<r.length;l++)V(r[l]);si(e,e.transactionQueueTree_)}}(e,li(e,n),r),r}function ai(e,t){var n,r=e.transactionQueueTree_;for(n=ue(t);null!==n&&void 0===yr(r);)r=br(r,n),n=ue(t=he(t));return r}function li(e,t){var n=[];return ui(e,t,n),n.sort(function(e,t){return e.order-t.order}),n}function ui(e,t,n){var r=yr(t);if(r)for(var i=0;i<r.length;i++)n.push(r[i]);wr(t,function(t){ui(e,t,n)})}function ci(e,t){var n=yr(t);if(n){for(var r=0,i=0;i<n.length;i++)2!==n[i].status&&(n[r]=n[i],r++);n.length=r,_r(t,n.length>0?n:void 0)}wr(t,function(t){ci(e,t)})}function hi(e,t){var n=Sr(ai(e,t)),r=br(e.transactionQueueTree_,t);return function(e,t){for(var n=e.parent;null!==n;){if(t(n))return!0;n=n.parent}}(r,function(t){di(e,t)}),di(e,r),Cr(r,function(t){di(e,t)}),n}function di(e,t){var n=yr(t);if(n){for(var r=[],s=[],o=-1,a=0;a<n.length;a++)3===n[a].status||(1===n[a].status?(Object(i.e)(o===a-1,"All SENT items should be at beginning of queue."),o=a,n[a].status=3,n[a].abortReason="set"):(Object(i.e)(0===n[a].status,"Unexpected transaction status in abort"),n[a].unwatcher(),s=s.concat(Kn(e.serverSyncTree_,n[a].currentWriteId,!0)),n[a].onComplete&&r.push(n[a].onComplete.bind(null,new Error("set"),!1,null))));for(-1===o?_r(t,void 0):n.length=o+1,zr(e.eventQueue_,Sr(t),s),a=0;a<r.length;a++)V(r[a])}}var pi=function(e,t){var n=fi(e),r=n.namespace;return"firebase.com"===n.domain&&k(n.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),r&&"undefined"!==r||"localhost"===n.domain||k("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),n.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&E("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),{repoInfo:new W(n.host,n.secure,r,t,"ws"===n.scheme||"wss"===n.scheme,"",r!==n.subdomain),path:new ae(n.pathString)}},fi=function(e){var t="",n="",r="",i="",o="",a=!0,l="https",u=443;if("string"==typeof e){var c=e.indexOf("//");c>=0&&(l=e.substring(0,c-1),e=e.substring(c+2));var h=e.indexOf("/");-1===h&&(h=e.length);var d=e.indexOf("?");-1===d&&(d=e.length),t=e.substring(0,Math.min(h,d)),h<d&&(i=function(e){for(var t="",n=e.split("/"),r=0;r<n.length;r++)if(n[r].length>0){var i=n[r];try{i=decodeURIComponent(i.replace(/\+/g," "))}catch(s){}t+="/"+i}return t}(e.substring(h,d)));var p=function(e){var t,n,r={};"?"===e.charAt(0)&&(e=e.substring(1));try{for(var i=Object(s.g)(e.split("&")),o=i.next();!o.done;o=i.next()){var a=o.value;if(0!==a.length){var l=a.split("=");
12===l.length?r[decodeURIComponent(l[0])]=decodeURIComponent(l[1]):E("Invalid query segment '"+a+"' in query '"+e+"'")}}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(e.substring(Math.min(e.length,d)));(c=t.indexOf(":"))>=0?(a="https"===l||"wss"===l,u=parseInt(t.substring(c+1),10)):c=t.length;var f=t.slice(0,c);if("localhost"===f.toLowerCase())n="localhost";else if(f.split(".").length<=2)n=f;else{var g=t.indexOf(".");r=t.substring(0,g).toLowerCase(),n=t.substring(g+1),o=r}"ns"in p&&(o=p.ns)}return{host:t,port:u,domain:n,subdomain:r,secure:a,scheme:l,pathString:i,namespace:o}},gi=function(){function e(e,t,n,r){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=r}return e.prototype.getPath=function(){var e=this.snapshot.ref;return"value"===this.eventType?e._path:e.parent._path},e.prototype.getEventType=function(){return this.eventType},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+Object(i.D)(this.snapshot.exportVal())},e}(),mi=function(){function e(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}return e.prototype.getPath=function(){return this.path},e.prototype.getEventType=function(){return"cancel"},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.path.toString()+":cancel"},e}(),bi=function(){function e(e,t){this.snapshotCallback=e,this.cancelCallback=t}return e.prototype.onValue=function(e,t){this.snapshotCallback.call(null,e,t)},e.prototype.onCancel=function(e){return Object(i.e)(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,e)},Object.defineProperty(e.prototype,"hasCancelCallback",{get:function(){return!!this.cancelCallback},enumerable:!1,configurable:!0}),e.prototype.matches=function(e){return this.snapshotCallback===e.snapshotCallback||void 0!==this.snapshotCallback.userCallback&&this.snapshotCallback.userCallback===e.snapshotCallback.userCallback&&this.snapshotCallback.context===e.snapshotCallback.context},e}(),yi=function(){function e(e,t){this._repo=e,this._path=t}return e.prototype.cancel=function(){var e=new i.a;return Jr(this._repo,this._path,e.wrapCallback(function(){})),e.promise},e.prototype.remove=function(){Mr("OnDisconnect.remove",this._path);var e=new i.a;return Xr(this._repo,this._path,null,e.wrapCallback(function(){})),e.promise},e.prototype.set=function(e){Mr("OnDisconnect.set",this._path),jr("OnDisconnect.set",e,this._path,!1);var t=new i.a;return Xr(this._repo,this._path,e,t.wrapCallback(function(){})),t.promise},e.prototype.setWithPriority=function(e,t){Mr("OnDisconnect.setWithPriority",this._path),jr("OnDisconnect.setWithPriority",e,this._path,!1),Rr("OnDisconnect.setWithPriority",t,!1);var n=new i.a;return function(e,t,n,r,i){var s=tt(n,r);e.server_.onDisconnectPut(t.toString(),s.val(!0),function(n,r){"ok"===n&&xt(e.onDisconnect_,t,s),ri(0,i,n,r)})}(this._repo,this._path,e,t,n.wrapCallback(function(){})),n.promise},e.prototype.update=function(e){Mr("OnDisconnect.update",this._path),Ar("OnDisconnect.update",e,this._path,!1);var t=new i.a;return function(e,t,n,r){if(Object(i.r)(n))return C("onDisconnect().update() called with empty data. Don't do anything."),void ri(0,r,"ok",void 0);e.server_.onDisconnectMerge(t.toString(),n,function(i,s){"ok"===i&&N(n,function(n,r){var i=tt(r);xt(e.onDisconnect_,ge(t,n),i)}),ri(0,r,i,s)})}(this._repo,this._path,e,t.wrapCallback(function(){})),t.promise},e}(),_i=function(){function e(e,t,n,r){this._repo=e,this._path=t,this._queryParams=n,this._orderByCalled=r}return Object.defineProperty(e.prototype,"key",{get:function(){return me(this._path)?null:de(this._path)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ref",{get:function(){return new Si(this._repo,this._path)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_queryIdentifier",{get:function(){var e=St(this._queryParams),t=R(e);return"{}"===t?"default":t}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_queryObject",{get:function(){return St(this._queryParams)},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){if(!((t=Object(i.o)(t))instanceof e))return!1;var n=this._repo===t._repo,r=_e(this._path,t._path);return n&&r&&this._queryIdentifier===t._queryIdentifier},e.prototype.toJSON=function(){return this.toString()},e.prototype.toString=function(){return this._repo.toString()+function(e){for(var t="",n=e.pieceNum_;n<e.pieces_.length;n++)""!==e.pieces_[n]&&(t+="/"+encodeURIComponent(String(e.pieces_[n])));return t||"/"}(this._path)},e}();function vi(e,t){if(!0===e._orderByCalled)throw new Error(t+": You can't combine multiple orderBy calls.")}function wi(e){var t=null,n=null;if(e.hasStart()&&(t=e.getIndexStartValue()),e.hasEnd()&&(n=e.getIndexEndValue()),e.getIndex()===De){var r="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",s="Query: When ordering by key, the argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() must be a string.";if(e.hasStart()){if(e.getIndexStartName()!==T)throw new Error(r);if("string"!=typeof t)throw new Error(s)}if(e.hasEnd()){if(e.getIndexEndName()!==I)throw new Error(r);if("string"!=typeof n)throw new Error(s)}}else if(e.getIndex()===Ke){if(null!=t&&!Ir(t)||null!=n&&!Ir(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), startAfter() endAt(), endBefore(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(Object(i.e)(e.getIndex()instanceof it||e.getIndex()===ot,"unknown index type."),null!=t&&"object"==typeof t||null!=n&&"object"==typeof n)throw new Error("Query: First argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() cannot be an object.")}function Ci(e){if(e.hasStart()&&e.hasEnd()&&e.hasLimit()&&!e.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), startAfter(), endAt(), endBefore(), and limit(). Use limitToFirst() or limitToLast() instead.")}var Si=function(e){function t(t,n){return e.call(this,t,n,new yt,!1)||this}return Object(s.c)(t,e),Object.defineProperty(t.prototype,"parent",{get:function(){var e=fe(this._path);return null===e?null:new t(this._repo,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t}(_i),Oi=function(){function e(e,t,n){this._node=e,this.ref=t,this._index=n}return Object.defineProperty(e.prototype,"priority",{get:function(){return this._node.getPriority().val()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"key",{get:function(){return this.ref.key},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._node.numChildren()},enumerable:!1,configurable:!0}),e.prototype.child=function(t){var n=new ae(t),r=xi(this.ref,t);return new e(this._node.getChild(n),r,Ke)},e.prototype.exists=function(){return!this._node.isEmpty()},e.prototype.exportVal=function(){return this._node.val(!0)},e.prototype.forEach=function(t){var n=this;return!this._node.isLeafNode()&&!!this._node.forEachChild(this._index,function(r,i){return t(new e(i,xi(n.ref,r),Ke))})},e.prototype.hasChild=function(e){var t=new ae(e);return!this._node.getChild(t).isEmpty()},e.prototype.hasChildren=function(){return!this._node.isLeafNode()&&!this._node.isEmpty()},e.prototype.toJSON=function(){return this.exportVal()},e.prototype.val=function(){return this._node.val()},e}();function ki(e,t){return(e=Object(i.o)(e))._checkNotDeleted("ref"),void 0!==t?xi(e._root,t):e._root}function Ei(e,t){(e=Object(i.o)(e))._checkNotDeleted("refFromURL");var n=pi(t,e._repo.repoInfo_.nodeAdmin);Fr("refFromURL",n);var r=n.repoInfo;return e._repo.repoInfo_.isCustomHost()||r.host===e._repo.repoInfo_.host||k("refFromURL: Host name does not match the current database: (found "+r.host+" but expected "+e._repo.repoInfo_.host+")"),ki(e,n.path.toString())}function xi(e,t){var n;return null===ue((e=Object(i.o)(e))._path)?((n=t)&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),Nr("child","path",n,!1)):Nr("child","path",t,!1),new Si(e._repo,ge(e._path,t))}function Ti(e,t){e=Object(i.o)(e),Mr("set",e._path),jr("set",t,e._path,!1);var n=new i.a;return Yr(e._repo,e._path,t,null,n.wrapCallback(function(){})),n.promise}var Ii=function(){function e(e){this.callbackContext=e}return e.prototype.respondsTo=function(e){return"value"===e},e.prototype.createEvent=function(e,t){var n=t._queryParams.getIndex();return new gi("value",this,new Oi(e.snapshotNode,new Si(t._repo,t._path),n))},e.prototype.getEventRunner=function(e){var t=this;return"cancel"===e.getEventType()?function(){return t.callbackContext.onCancel(e.error)}:function(){return t.callbackContext.onValue(e.snapshot,null)}},e.prototype.createCancelEvent=function(e,t){return this.callbackContext.hasCancelCallback?new mi(this,e,t):null},e.prototype.matches=function(t){return t instanceof e&&(!t.callbackContext||!this.callbackContext||t.callbackContext.matches(this.callbackContext))},e.prototype.hasAnyCallback=function(){return null!==this.callbackContext},e}(),ji=function(){function e(e,t){this.eventType=e,this.callbackContext=t}return e.prototype.respondsTo=function(e){var t="children_added"===e?"child_added":e;return this.eventType===("children_removed"===t?"child_removed":t)},e.prototype.createCancelEvent=function(e,t){return this.callbackContext.hasCancelCallback?new mi(this,e,t):null},e.prototype.createEvent=function(e,t){Object(i.e)(null!=e.childName,"Child events should have a childName.");var n=xi(new Si(t._repo,t._path),e.childName),r=t._queryParams.getIndex();return new gi(e.type,this,new Oi(e.snapshotNode,n,r),e.prevName)},e.prototype.getEventRunner=function(e){var t=this;return"cancel"===e.getEventType()?function(){return t.callbackContext.onCancel(e.error)}:function(){return t.callbackContext.onValue(e.snapshot,e.prevName)}},e.prototype.matches=function(t){return t instanceof e&&this.eventType===t.eventType&&(!this.callbackContext||!t.callbackContext||this.callbackContext.matches(t.callbackContext))},e.prototype.hasAnyCallback=function(){return!!this.callbackContext},e}();function Di(e,t,n,r,i){var s;if("object"==typeof r&&(s=void 0,i=r),"function"==typeof r&&(s=r),i&&i.onlyOnce){var o=n,a=function(t,n){ei(e._repo,e,u),o(t,n)};a.userCallback=n.userCallback,a.context=n.context,n=a}var l=new bi(n,s||void 0),u="value"===t?new Ii(l):new ji(t,l);return function(e,t,n){var r;r=".info"===ue(t._path)?Gn(e.infoSyncTree_,t,n):Gn(e.serverSyncTree_,t,n),Ur(e.eventQueue_,t._path,r)}(e._repo,e,u),function(){return ei(e._repo,e,u)}}function Ai(e,t,n,r){return Di(e,"value",t,n,r)}function Ri(e,t,n,r){return Di(e,"child_added",t,n,r)}function Pi(e,t,n,r){return Di(e,"child_changed",t,n,r)}function Ni(e,t,n,r){return Di(e,"child_moved",t,n,r)}function Mi(e,t,n,r){return Di(e,"child_removed",t,n,r)}function Fi(e,t,n){var r=null,i=n?new bi(n):null;"value"===t?r=new Ii(i):t&&(r=new ji(t,i)),ei(e._repo,e,r)}var Li=function(){return function(){}}(),Vi=function(e){function t(t,n){var r=e.call(this)||this;return r._value=t,r._key=n,r}return Object(s.c)(t,e),t.prototype._apply=function(e){jr("endAt",this._value,e._path,!0);var t=vt(e._queryParams,this._value,this._key);if(Ci(t),wi(t),e._queryParams.hasEnd())throw new Error("endAt: Starting point was already set
1(by another call to endAt, endBefore or equalTo).");return new _i(e._repo,e._path,t,e._orderByCalled)},t}(Li),Ui=function(e){function t(t,n){var r=e.call(this)||this;return r._value=t,r._key=n,r}return Object(s.c)(t,e),t.prototype._apply=function(e){jr("endBefore",this._value,e._path,!1);var t,n,r,i,s=(n=this._value,r=this._key,(t=e._queryParams).index_===De?("string"==typeof n&&(n=ct(n)),i=vt(t,n,r)):i=vt(t,n,null==r?T:ct(r)),i.endBeforeSet_=!0,i);if(Ci(s),wi(s),e._queryParams.hasEnd())throw new Error("endBefore: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new _i(e._repo,e._path,s,e._orderByCalled)},t}(Li),zi=function(e){function t(t,n){var r=e.call(this)||this;return r._value=t,r._key=n,r}return Object(s.c)(t,e),t.prototype._apply=function(e){jr("startAt",this._value,e._path,!0);var t=_t(e._queryParams,this._value,this._key);if(Ci(t),wi(t),e._queryParams.hasStart())throw new Error("startAt: Starting point was already set (by another call to startAt, startBefore or equalTo).");return new _i(e._repo,e._path,t,e._orderByCalled)},t}(Li),$i=function(e){function t(t,n){var r=e.call(this)||this;return r._value=t,r._key=n,r}return Object(s.c)(t,e),t.prototype._apply=function(e){jr("startAfter",this._value,e._path,!1);var t,n,r,i,s=(n=this._value,r=this._key,(t=e._queryParams).index_===De?("string"==typeof n&&(n=ut(n)),i=_t(t,n,r)):i=_t(t,n,null==r?I:ut(r)),i.startAfterSet_=!0,i);if(Ci(s),wi(s),e._queryParams.hasStart())throw new Error("startAfter: Starting point was already set (by another call to startAt, startAfter, or equalTo).");return new _i(e._repo,e._path,s,e._orderByCalled)},t}(Li),qi=function(e){function t(t){var n=e.call(this)||this;return n._limit=t,n}return Object(s.c)(t,e),t.prototype._apply=function(e){if(e._queryParams.hasLimit())throw new Error("limitToFirst: Limit was already set (by another call to limitToFirst or limitToLast).");return new _i(e._repo,e._path,(t=this._limit,(n=e._queryParams.copy()).limitSet_=!0,n.limit_=t,n.viewFrom_="l",n),e._orderByCalled);var t,n},t}(Li),Hi=function(e){function t(t){var n=e.call(this)||this;return n._limit=t,n}return Object(s.c)(t,e),t.prototype._apply=function(e){if(e._queryParams.hasLimit())throw new Error("limitToLast: Limit was already set (by another call to limitToFirst or limitToLast).");return new _i(e._repo,e._path,(t=this._limit,(n=e._queryParams.copy()).limitSet_=!0,n.limit_=t,n.viewFrom_="r",n),e._orderByCalled);var t,n},t}(Li),Wi=function(e){function t(t){var n=e.call(this)||this;return n._path=t,n}return Object(s.c)(t,e),t.prototype._apply=function(e){vi(e,"orderByChild");var t=new ae(this._path);if(me(t))throw new Error("orderByChild: cannot pass in empty path. Use orderByValue() instead.");var n=new it(t),r=wt(e._queryParams,n);return wi(r),new _i(e._repo,e._path,r,!0)},t}(Li),Bi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(s.c)(t,e),t.prototype._apply=function(e){vi(e,"orderByKey");var t=wt(e._queryParams,De);return wi(t),new _i(e._repo,e._path,t,!0)},t}(Li),Ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(s.c)(t,e),t.prototype._apply=function(e){vi(e,"orderByPriority");var t=wt(e._queryParams,Ke);return wi(t),new _i(e._repo,e._path,t,!0)},t}(Li),Qi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(s.c)(t,e),t.prototype._apply=function(e){vi(e,"orderByValue");var t=wt(e._queryParams,ot);return wi(t),new _i(e._repo,e._path,t,!0)},t}(Li),Zi=function(e){function t(t,n){var r=e.call(this)||this;return r._value=t,r._key=n,r}return Object(s.c)(t,e),t.prototype._apply=function(e){if(jr("equalTo",this._value,e._path,!1),e._queryParams.hasStart())throw new Error("equalTo: Starting point was already set (by another call to startAt/startAfter or equalTo).");if(e._queryParams.hasEnd())throw new Error("equalTo: Ending point was already set (by another call to endAt/endBefore or equalTo).");return new Vi(this._value,this._key)._apply(new zi(this._value,this._key)._apply(e))},t}(Li);function Gi(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var a=Object(i.o)(e);try{for(var l=Object(s.g)(r),u=l.next();!u.done;u=l.next())a=u.value._apply(a)}catch(c){t={error:c}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return a}!function(e){Object(i.e)(!xn,"__referenceConstructor has already been defined"),xn=e}(Si),function(e){Object(i.e)(!Pn,"__referenceConstructor has already been defined"),Pn=e}(Si);var Yi={},Ji=!1;function Xi(e,t,n,r,i){var s=r||e.options.databaseURL;void 0===s&&(e.options.projectId||k("Can't determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp()."),C("Using default host for project ",e.options.projectId),s=e.options.projectId+"-default-rtdb.firebaseio.com");var o,a=pi(s,i),l=a.repoInfo,u=void 0;"undefined"!=typeof process&&(u=process.env.FIREBASE_DATABASE_EMULATOR_HOST),u?(o=!0,l=(a=pi(s="http://"+u+"?ns="+l.namespace,i)).repoInfo):o=!a.repoInfo.secure;var c=i&&o?new q(q.OWNER):new $(e.name,e.options,t);Fr("Invalid Firebase Database URL",a),me(a.path)||k("Database URL must point to the root of a Firebase Database (not including a child path).");var h=function(e,t,n,r){var i=Yi[t.name];i||(Yi[t.name]=i={});var s=i[e.toURLString()];return s&&k("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),s=new Hr(e,Ji,n,r),i[e.toURLString()]=s,s}(l,e,c,new z(e.name,n));return new es(h,e)}var es=function(){function e(e,t){this._repoInternal=e,this.app=t,this.type="database",this._instanceStarted=!1}return Object.defineProperty(e.prototype,"_repo",{get:function(){return this._instanceStarted||(function(e,t,n){if(e.stats_=G(e.repoInfo_),e.forceRestClient_||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)e.server_=new Ot(e.repoInfo_,function(t,n,r,i){Kr(e,t,n,r,i)},e.authTokenProvider_,e.appCheckProvider_),setTimeout(function(){return Qr(e,!0)},0);else{if(null!=n){if("object"!=typeof n)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{Object(i.D)(n)}catch(o){throw new Error("Invalid authOverride provided: "+o)}}e.persistentConnection_=new xe(e.repoInfo_,t,function(t,n,r,i){Kr(e,t,n,r,i)},function(t){Qr(e,t)},function(t){!function(e,t){N(t,function(t,n){Zr(e,t,n)})}(e,t)},e.authTokenProvider_,e.appCheckProvider_,n),e.server_=e.persistentConnection_}var r,s;e.authTokenProvider_.addTokenChangeListener(function(t){e.server_.refreshAuthToken(t)}),e.appCheckProvider_.addTokenChangeListener(function(t){e.server_.refreshAppCheckToken(t.token)}),e.statsReporter_=(r=function(){return new Dt(e.stats_,e.server_)},s=e.repoInfo_.toString(),Z[s]||(Z[s]=r()),Z[s]),e.infoData_=new kt,e.infoSyncTree_=new Wn({startListening:function(t,n,r,i){var s=[],o=e.infoData_.getNode(t._path);return o.isEmpty()||(s=Qn(e.infoSyncTree_,t._path,o),setTimeout(function(){i("ok")},0)),s},stopListening:function(){}}),Zr(e,"connected",!1),e.serverSyncTree_=new Wn({startListening:function(t,n,r,i){return e.server_.listen(t,r,n,function(n,r){var s=i(n,r);zr(e.eventQueue_,t._path,s)}),[]},stopListening:function(t,n){e.server_.unlisten(t,n)}})}(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_root",{get:function(){return this._rootInternal||(this._rootInternal=new Si(this._repo,le())),this._rootInternal},enumerable:!1,configurable:!0}),e.prototype._delete=function(){var e,t,n;return null!==this._rootInternal&&(e=this._repo,(n=Yi[t=this.app.name])&&n[e.key]===e||k("Database "+t+"("+e.repoInfo_+") has already been deleted."),ti(e),delete n[e.key],this._repoInternal=null,this._rootInternal=null),Promise.resolve()},e.prototype._checkNotDeleted=function(e){null===this._rootInternal&&k("Cannot call "+e+" on a deleted database.")},e}(),ts={".sv":"timestamp"},ns=function(){function e(e,t){this.committed=e,this.snapshot=t}return e.prototype.toJSON=function(){return{committed:this.committed,snapshot:this.snapshot.toJSON()}},e}();var rs=function(){function e(e){this._delegate=e}return e.prototype.cancel=function(e){Object(i.E)("OnDisconnect.cancel",0,1,arguments.length),Object(i.F)("OnDisconnect.cancel","onComplete",e,!0);var t=this._delegate.cancel();return e&&t.then(function(){return e(null)},function(t){return e(t)}),t},e.prototype.remove=function(e){Object(i.E)("OnDisconnect.remove",0,1,arguments.length),Object(i.F)("OnDisconnect.remove","onComplete",e,!0);var t=this._delegate.remove();return e&&t.then(function(){return e(null)},function(t){return e(t)}),t},e.prototype.set=function(e,t){Object(i.E)("OnDisconnect.set",1,2,arguments.length),Object(i.F)("OnDisconnect.set","onComplete",t,!0);var n=this._delegate.set(e);return t&&n.then(function(){return t(null)},function(e){return t(e)}),n},e.prototype.setWithPriority=function(e,t,n){Object(i.E)("OnDisconnect.setWithPriority",2,3,arguments.length),Object(i.F)("OnDisconnect.setWithPriority","onComplete",n,!0);var r=this._delegate.setWithPriority(e,t);return n&&r.then(function(){return n(null)},function(e){return n(e)}),r},e.prototype.update=function(e,t){if(Object(i.E)("OnDisconnect.update",1,2,arguments.length),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,E("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}Object(i.F)("OnDisconnect.update","onComplete",t,!0);var s=this._delegate.update(e);return t&&s.then(function(){return t(null)},function(e){return t(e)}),s},e}(),is=function(){function e(e,t){this.committed=e,this.snapshot=t}return e.prototype.toJSON=function(){return Object(i.E)("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},e}(),ss=function(){function e(e,t){this._database=e,this._delegate=t}return e.prototype.val=function(){return Object(i.E)("DataSnapshot.val",0,0,arguments.length),this._delegate.val()},e.prototype.exportVal=function(){return Object(i.E)("DataSnapshot.exportVal",0,0,arguments.length),this._delegate.exportVal()},e.prototype.toJSON=function(){return Object(i.E)("DataSnapshot.toJSON",0,1,arguments.length),this._delegate.toJSON()},e.prototype.exists=function(){return Object(i.E)("DataSnapshot.exists",0,0,arguments.length),this._delegate.exists()},e.prototype.child=function(t){return Object(i.E)("DataSnapshot.child",0,1,arguments.length),t=String(t),Nr("DataSnapshot.child","path",t,!1),new e(this._database,this._delegate.child(t))},e.prototype.hasChild=function(e){return Object(i.E)("DataSnapshot.hasChild",1,1,arguments.length),Nr("DataSnapshot.hasChild","path",e,!1),this._delegate.hasChild(e)},e.prototype.getPriority=function(){return Object(i.E)("DataSnapshot.getPriority",0,0,arguments.length),this._delegate.priority},e.prototype.forEach=function(t){var n=this;return Object(i.E)("DataSnapshot.forEach",1,1,arguments.length),Object(i.F)("DataSnapshot.forEach","action",t,!1),this._delegate.forEach(function(r){return t(new e(n._database,r))})},e.prototype.hasChildren=function(){return Object(i.E)("DataSnapshot.hasChildren",0,0,arguments.length),this._delegate.hasChildren()},Object.defineProperty(e.prototype,"key",{get:function(){return this._delegate.key}
1,enumerable:!1,configurable:!0}),e.prototype.numChildren=function(){return Object(i.E)("DataSnapshot.numChildren",0,0,arguments.length),this._delegate.size},e.prototype.getRef=function(){return Object(i.E)("DataSnapshot.ref",0,0,arguments.length),new as(this._database,this._delegate.ref)},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),e}(),os=function(){function e(e,t){this.database=e,this._delegate=t}return e.prototype.on=function(t,n,r,s){var o,a=this;Object(i.E)("Query.on",2,4,arguments.length),Object(i.F)("Query.on","callback",n,!1);var l=e.getCancelAndContextArgs_("Query.on",r,s),u=function(e,t){n.call(l.context,new ss(a.database,e),t)};u.userCallback=n,u.context=l.context;var c=null===(o=l.cancel)||void 0===o?void 0:o.bind(l.context);switch(t){case"value":return Ai(this._delegate,u,c),n;case"child_added":return Ri(this._delegate,u,c),n;case"child_removed":return Mi(this._delegate,u,c),n;case"child_changed":return Pi(this._delegate,u,c),n;case"child_moved":return Ni(this._delegate,u,c),n;default:throw new Error(Object(i.n)("Query.on","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},e.prototype.off=function(e,t,n){if(Object(i.E)("Query.off",0,3,arguments.length),function(e,t){if(void 0!==t)switch(t){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(Object(i.n)("Query.off","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}}(0,e),Object(i.F)("Query.off","callback",t,!0),Object(i.G)("Query.off","context",n,!0),t){var r=function(){};r.userCallback=t,r.context=n,Fi(this._delegate,e,r)}else Fi(this._delegate,e)},e.prototype.get=function(){var e=this;return function(e){return function(e,t){var n=function(e,t){var n=t._path,r=null;e.syncPointTree_.foreachOnPath(n,function(e,t){var i=be(e,n);r=r||Vn(t,i)});var i=e.syncPointTree_.get(n);i?r=r||Vn(i,le()):(i=new Nn,e.syncPointTree_=e.syncPointTree_.set(n,i));var s=null!=r,o=s?new Vt(r,!0,!1):null;return Wt(Fn(i,t,on(e.pendingWriteTree_,t._path),s?o.getNode():Xe.EMPTY_NODE,s).viewCache_)}(e.serverSyncTree_,t);return null!=n?Promise.resolve(n):e.server_.get(t).then(function(n){var r=tt(n).withIndex(t._queryParams.getIndex()),i=Qn(e.serverSyncTree_,t._path,r);return Ur(e.eventQueue_,t._path,i),Promise.resolve(r)},function(n){return ni(e,"get for query "+Object(i.D)(t)+" failed: "+n),Promise.reject(new Error(n))})}((e=Object(i.o)(e))._repo,e).then(function(t){return new Oi(t,new Si(e._repo,e._path),e._queryParams.getIndex())})}(this._delegate).then(function(t){return new ss(e.database,t)})},e.prototype.once=function(t,n,r,s){var o=this;Object(i.E)("Query.once",1,4,arguments.length),Object(i.F)("Query.once","callback",n,!0);var a=e.getCancelAndContextArgs_("Query.once",r,s),l=new i.a,u=function(e,t){var r=new ss(o.database,e);n&&n.call(a.context,r,t),l.resolve(r)};u.userCallback=n,u.context=a.context;var c=function(e){a.cancel&&a.cancel.call(a.context,e),l.reject(e)};switch(t){case"value":Ai(this._delegate,u,c,{onlyOnce:!0});break;case"child_added":Ri(this._delegate,u,c,{onlyOnce:!0});break;case"child_removed":Mi(this._delegate,u,c,{onlyOnce:!0});break;case"child_changed":Pi(this._delegate,u,c,{onlyOnce:!0});break;case"child_moved":Ni(this._delegate,u,c,{onlyOnce:!0});break;default:throw new Error(Object(i.n)("Query.once","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}return l.promise},e.prototype.limitToFirst=function(t){return Object(i.E)("Query.limitToFirst",1,1,arguments.length),new e(this.database,Gi(this._delegate,function(e){if("number"!=typeof e||Math.floor(e)!==e||e<=0)throw new Error("limitToFirst: First argument must be a positive integer.");return new qi(e)}(t)))},e.prototype.limitToLast=function(t){return Object(i.E)("Query.limitToLast",1,1,arguments.length),new e(this.database,Gi(this._delegate,function(e){if("number"!=typeof e||Math.floor(e)!==e||e<=0)throw new Error("limitToLast: First argument must be a positive integer.");return new Hi(e)}(t)))},e.prototype.orderByChild=function(t){return Object(i.E)("Query.orderByChild",1,1,arguments.length),new e(this.database,Gi(this._delegate,function(e){if("$key"===e)throw new Error('orderByChild: "$key" is invali
1d. Use orderByKey() instead.');if("$priority"===e)throw new Error('orderByChild: "$priority" is invalid. Use orderByPriority() instead.');if("$value"===e)throw new Error('orderByChild: "$value" is invalid. Use orderByValue() instead.');return Nr("orderByChild","path",e,!1),new Wi(e)}(t)))},e.prototype.orderByKey=function(){return Object(i.E)("Query.orderByKey",0,0,arguments.length),new e(this.database,Gi(this._delegate,new Bi))},e.prototype.orderByPriority=function(){return Object(i.E)("Query.orderByPriority",0,0,arguments.length),new e(this.database,Gi(this._delegate,new Ki))},e.prototype.orderByValue=function(){return Object(i.E)("Query.orderByValue",0,0,arguments.length),new e(this.database,Gi(this._delegate,new Qi))},e.prototype.startAt=function(t,n){return void 0===t&&(t=null),Object(i.E)("Query.startAt",0,2,arguments.length),new e(this.database,Gi(this._delegate,function(e,t){return void 0===e&&(e=null),Pr("startAt","key",t,!0),new zi(e,t)}(t,n)))},e.prototype.startAfter=function(t,n){return void 0===t&&(t=null),Object(i.E)("Query.startAfter",0,2,arguments.length),new e(this.database,Gi(this._delegate,function(e,t){return Pr("startAfter","key",t,!0),new $i(e,t)}(t,n)))},e.prototype.endAt=function(t,n){return void 0===t&&(t=null),Object(i.E)("Query.endAt",0,2,arguments.length),new e(this.database,Gi(this._delegate,function(e,t){return Pr("endAt","key",t,!0),new Vi(e,t)}(t,n)))},e.prototype.endBefore=function(t,n){return void 0===t&&(t=null),Object(i.E)("Query.endBefore",0,2,arguments.length),new e(this.database,Gi(this._delegate,function(e,t){return Pr("endBefore","key",t,!0),new Ui(e,t)}(t,n)))},e.prototype.equalTo=function(t,n){return Object(i.E)("Query.equalTo",1,2,arguments.length),new e(this.database,Gi(this._delegate,function(e,t){return Pr("equalTo","key",t,!0),new Zi(e,t)}(t,n)))},e.prototype.toString=function(){return Object(i.E)("Query.toString",0,0,arguments.length),this._delegate.toString()},e.prototype.toJSON=function(){return Object(i.E)("Query.toJSON",0,1,arguments.length),this._delegate.toJSON()},e.prototype.isEqual=function(t){if(Object(i.E)("Query.isEqual",1,1,arguments.length),!(t instanceof e))throw new Error("Query.isEqual failed: First argument must be an instance of firebase.database.Query.");return this._delegate.isEqual(t._delegate)},e.getCancelAndContextArgs_=function(e,t,n){var r={cancel:void 0,context:void 0};if(t&&n)r.cancel=t,Object(i.F)(e,"cancel",r.cancel,!0),r.context=n,Object(i.G)(e,"context",r.context,!0);else if(t)if("object"==typeof t&&null!==t)r.context=t;else{if("function"!=typeof t)throw new Error(Object(i.n)(e,"cancelOrContext")+" must either be a cancel callback or a context object.");r.cancel=t}return r},Object.defineProperty(e.prototype,"ref",{get:function(){return new as(this.database,new Si(this._delegate._repo,this._delegate._path))},enumerable:!1,configurable:!0}),e}(),as=function(e){function t(t,n){var r=e.call(this,t,new _i(n._repo,n._path,new yt,!1))||this;return r.database=t,r._delegate=n,r}return Object(s.c)(t,e),t.prototype.getKey=function(){return Object(i.E)("Reference.key",0,0,arguments.length),this._delegate.key},t.prototype.child=function(e){return Object(i.E)("Reference.child",1,1,arguments.length),"number"==typeof e&&(e=String(e)),new t(this.database,xi(this._delegate,e))},t.prototype.getParent=function(){Object(i.E)("Reference.parent",0,0,arguments.length);var e=this._delegate.parent;return e?new t(this.database,e):null},t.prototype.getRoot=function(){return Object(i.E)("Reference.root",0,0,arguments.length),new t(this.database,this._delegate.root)},t.prototype.set=function(e,t){Object(i.E)("Reference.set",1,2,arguments.length),Object(i.F)("Reference.set","onComplete",t,!0);var n=Ti(this._delegate,e);return t&&n.then(function(){return t(null)},function(e){return t(e)}),n},t.prototype.update=function(e,t){if(Object(i.E)("Reference.update",1,2,arguments.length),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,E("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}Mr("Reference.update",this._delegate._path),Object(i.F)("Reference.update","onComplete",t,!0);var s=function(e,t){Ar("update",t,e._path,!1);var n=new i.a;return function(e,t,n,r){ni(e,"update",{path:t.toString(),value:n});var s=!0,o=Br(e),a={};if(N(n,function(n,r){s=!1,a[n]=pr(ge(t,n),tt(r),e.serverSyncTree_,o)}),s)C("update() called with empty data. Don't do anything."),ri(0,r,"ok",void 0);else{var l=Gr(e),u=function(e,t,n,r){!function(e,t,n,r){Object(i.e)(r>e.lastWriteId,"Stacking an older merge on top of newer ones"),e.allWrites.push({path:t,children:n,writeId:r,visible:!0}),e.visibleWrites=Gt(e.visibleWrites,t,n),e.lastWriteId=r}(e.pendingWriteTree_,t,n,r);var s=Kt.fromObject(n);return Jn(e,new Lt({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},t,s))}(e.serverSyncTree_,t,a,l);Vr(e.eventQueue_,u),e.server_.merge(t.toString(),n,function(n,i){var s="ok"===n;s||E("update at "+t+" failed: "+n);var o=Kn(e.serverSyncTree_,l,!s),a=o.length>0?oi(e,t):t;zr(e.eventQueue_,a,o),ri(0,r,n,i)}),N(n,function(n){var r=hi(e,ge(t,n));oi(e,r)}),zr(e.eventQueue_,t,[])}}(e._repo,e._path,t,n.wrapCallback(function(){})),n.promise}(this._delegate,e);return t&&s.then(function(){return t(null)},function(e){return t(e)}),s},t.prototype.setWithPriority=function(e,t,n){Object(i.E)("Reference.setWithPriority",2,3,arguments.length),Object(i.F)("Reference.setWithPriority","onComplete",n,!0);var r=function(e,t,n){if(Mr("setWithPriority",e._path),jr("setWithPriority",t,e._path,!1),Rr("setWithPriority",n,!1),".length"===e.key||".keys"===e.key)throw"setWithPriority failed: "+e.key+" is a read-only object.";var r=new i.a;return Yr(e._repo,e._path,t,n,r.wrapCallback(function(){})),r.promise}(this._delegate,e,t);return n&&r.then(function(){return n(null)},function(e){return n(e)}),r},t.prototype.remove=function(e){Object(i.E)("Reference.remove",0,1,arguments.length),Object(i.F)("Reference.remove","onComplete",e,!0);var t=function(e){return Mr("remove",e._path),Ti(e,null)}(this._delegate);return e&&t.then(function(){return e(null)},function(t){return e(t)}),t},t.prototype.transaction=function(e,t,n){var r=this;Object(i.E)("Reference.transaction",1,3,arguments.length),Object(i.F)("Reference.transaction","transactionUpdate",e,!1),Object(i.F)("Reference.transaction","onComplete",t,!0),function(e,t,n){if(void 0!==n&&"boolean"!=typeof n)throw new Error(Object(i.n)("Reference.transaction","applyLocally")+"must be a boolean.")}(0,0,n);var s=function(e,t,n){var r;if(e=Object(i.o)(e),Mr("Reference.transaction",e._path),".length"===e.key||".keys"===e.key)throw"Reference.transaction failed: "+e.key+" is a read-only object.";var s=null===(r=null==n?void 0:n.applyLocally)||void 0===r||r,o=new i.a,a=A
1i(e,function(){});return function(t,n,r,s,a,l){ni(t,"transaction on "+n);var u={path:n,update:r,onComplete:function(t,n,r){var i=null;t?o.reject(t):(i=new Oi(r,new Si(e._repo,e._path),Ke),o.resolve(new ns(n,i)))},status:null,order:m(),applyLocally:l,retryCount:0,unwatcher:a,abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},c=ii(t,n,void 0);u.currentInputSnapshot=c;var h=u.update(c.val());if(void 0===h)u.unwatcher(),u.currentOutputSnapshotRaw=null,u.currentOutputSnapshotResolved=null,u.onComplete&&u.onComplete(null,!1,u.currentInputSnapshot);else{Dr("transaction failed: Data returned ",h,u.path),u.status=0;var d=br(t.transactionQueueTree_,n),p=yr(d)||[];p.push(u),_r(d,p);var f=void 0;"object"==typeof h&&null!==h&&Object(i.i)(h,".priority")?(f=Object(i.A)(h,".priority"),Object(i.e)(Ir(f),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.")):f=(Yn(t.serverSyncTree_,n)||Xe.EMPTY_NODE).getPriority().val();var g=Br(t),b=tt(h,f),y=fr(b,c,g);u.currentOutputSnapshotRaw=b,u.currentOutputSnapshotResolved=y,u.currentWriteId=Gr(t);var _=Bn(t.serverSyncTree_,n,y,u.currentWriteId,u.applyLocally);zr(t.eventQueue_,n,_),si(t,t.transactionQueueTree_)}}(e._repo,e._path,t,0,a,s),o.promise}(this._delegate,e,{applyLocally:n}).then(function(e){return new is(e.committed,new ss(r.database,e.snapshot))});return t&&s.then(function(e){return t(null,e.committed,e.snapshot)},function(e){return t(e,!1,null)}),s},t.prototype.setPriority=function(e,t){Object(i.E)("Reference.setPriority",1,2,arguments.length),Object(i.F)("Reference.setPriority","onComplete",t,!0);var n=function(e,t){e=Object(i.o)(e),Mr("setPriority",e._path),Rr("setPriority",t,!1);var n=new i.a;return Yr(e._repo,ge(e._path,".priority"),t,null,n.wrapCallback(function(){})),n.promise}(this._delegate,e);return t&&n.then(function(){return t(null)},function(e){return t(e)}),n},t.prototype.push=function(e,n){var r=this;Object(i.E)("Reference.push",0,2,arguments.length),Object(i.F)("Reference.push","onComplete",n,!0);var s=function(e,t){e=Object(i.o)(e),Mr("push",e._path),jr("push",t,e._path,!0);var n,r=Wr(e._repo),s=lt(r),o=xi(e,s),a=xi(e,s);return n=null!=t?Ti(a,t).then(function(){return a}):Promise.resolve(a),o.then=n.then.bind(n),o.catch=n.then.bind(n,void 0),o}(this._delegate,e),o=s.then(function(e){return new t(r.database,e)});n&&o.then(function(){return n(null)},function(e){return n(e)});var a=new t(this.database,s);return a.then=o.then.bind(o),a.catch=o.catch.bind(o,void 0),a},t.prototype.onDisconnect=function(){return Mr("Reference.onDisconnect",this._delegate._path),new rs(new yi(this._delegate._repo,this._delegate._path))},Object.defineProperty(t.prototype,"key",{get:function(){return this.getKey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getParent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this.getRoot()},enumerable:!1,configurable:!0}),t}(os),ls=function(){function e(e,t){var n=this;this._delegate=e,this.app=t,this.INTERNAL={delete:function(){return n._delegate._delete()}}}return e.prototype.useEmulator=function(e,t,n){void 0===n&&(n={}),function(e,t,n,r){void 0===r&&(r={}),(e=Object(i.o)(e))._checkNotDeleted("useEmulator"),e._instanceStarted&&k("Cannot call useEmulator() after instance has already been initialized.");var s=e._repoInternal,o=void 0;if(s.repoInfo_.nodeAdmin)r.mockUserToken&&k('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),o=new q(q.OWNER);else if(r.mockUserToken){var a="string"==typeof r.mockUserToken?r.mockUserToken:Object(i.j)(r.mockUserToken,e.app.options.projectId);o=new q(a)}!function(e,t,n,r){e.repoInfo_=new W(t+":"+n,!1,e.repoInfo_.namespace,e.repoInfo_.webSocketOnly,e.repoInfo_.nodeAdmin,e.repoInfo_.persistenceKey,e.repoInfo_.includeNamespaceInQueryParams),r&&(e.authTokenProvider_=r)}(s,t,n,o)}(this._delegate,e,t,n)},e.prototype.ref=function(e){if(Object(i.E)("database.ref",0,1,arguments.length),e instanceof as){var t=Ei(this._delegate,e.toString());return new as(this,t)}return t=ki(this._delegate,e),new as(this,t)},e.prototype.refFromURL=function(e){Object(i.E)("database.refFromURL",1,1,arguments.length);var t=Ei(this._delegate,e);return new as(this,t)},e.prototype.goOffline=function(){return Object(i.E)("database.goOffline",0,0,arguments.length),e=this._delegate,(e=Object(i.o)(e))._checkNotDeleted("goOffline"),void ti(e._repo);var e},e.prototype.goOnline=function(){return Object(i.E)("database.goOnline",0,0,arguments.length),e=this._delegate,(e=Object(i.o)(e))._checkNotDeleted("goOnline"),void((t=e._repo).persistentConnection_&&t.persistentConnection_.resume("repo_interrupt"));var e,t},e.ServerValue={TIMESTAMP:ts,increment:function(e){return function(e){return{".sv":{increment:e}}}(e)}},e}(),us=Object.freeze({__proto__:null,forceLongPolling:function(){te.forceDisallow(),J.forceAllow()},forceWebSockets:function(){J.forceDisallow()},isWebSocketsAvailable:function(){return te.isAvailable()},setSecurityDebugCallback:function(e,t){e._delegate._repo.persistentConnection_.securityDebugCallback_=t},stats:function(e,t){!function(e,t){if(void 0===t&&(t=!1),"undefined"!=typeof console){var n;t?(e.statsListener_||(e.statsListener_=new jt(e.stats_)),n=e.statsListener_.get()):n=e.stats_.get();var r=Object.keys(n).reduce(function(e,t){return Math.max(t.length,e)},0);N(n,function(e,t){for(var n=e,i=e.length;i<r+2;i++)n+=" ";console.log(n+t)})}}(e._delegate._repo,t)},statsIncrementCounter:function(e,t){!function(e,t){e.stats_.incrementCounter(t),e.statsReporter_.statsToReport_[t]=!0}(e._delegate._repo,t)},dataUpdateCount:function(e){return e._delegate._repo.dataUpdateCount},interceptServerData:function(e,t){return function(e,t){e.interceptServerDataCallback_=t}(e._delegate._repo,t)},initStandalone:function(e){var t=e.app,n=e.url,i=e.customAuthImpl,s=e.namespace,o=e.nodeAdmin,a=void 0!==o&&o;l(e.version);var u=new r.c("auth-internal",new r.b("database-standalone"));return u.setComponent(new r.a("auth-internal",function(){return i},"PRIVATE")),{instance:new ls(Xi(t,u,void 0,n,a),t),namespace:s}}}),cs=xe;xe.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},xe.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};var hs=Object.freeze({__proto__:null,DataConnection:cs,RealTimeConnection:re,hijackHash:function(e){var t=xe.prototype.put;return xe.prototype.put=function(n,r,i,s){void 0!==s&&(s=e()),t.call(this,n,r,i,s)},function(){xe.prototype.put=t}},ConnectionTarget:W,queryIdentifier:function(e){return e._delegate._queryIdentifier},forceRestClient:function(e){!function(e){Ji=e}(e)}}),ds=ls.ServerValue;!function(t){l(t.SDK_VERSION);var n=t.INTERNAL.registerComponent(new r.a("database",function(e,t){var n=t.instanceIdentifier,r=e.getProvider("app").getImmediate(),i=e.getProvider("auth-internal"),s=e.getProvider("app-check-internal");return new ls(Xi(r,i,s,n),r)},"PUBLIC").setServiceProps({Reference:as,Query:os,Database:ls,DataSnapshot:ss,enableLogging:w,INTERNAL:us,ServerValue:ds,TEST_ACCESS:hs}).setMultipleInstances(!0));
1t.registerVersion("@firebase/database","0.11.0"),Object(i.u)()&&(e.exports=n)}(t.a)}).call(this,n("3UD+")(e))},"7Hc7":function(e,t,n){"use strict";n.d(t,"b",function(){return d}),n.d(t,"a",function(){return p});let r=1;const i=(()=>Promise.resolve())(),s={};function o(e){return e in s&&(delete s[e],!0)}const a={setImmediate(e){const t=r++;return s[t]=!0,i.then(()=>o(t)&&e()),t},clearImmediate(e){o(e)}};var l=n("3N8a");class u extends l.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=a.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(a.clearImmediate(t),e.scheduled=void 0)}}var c=n("IjjT");class h extends c.a{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,r=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++r<i&&(e=t.shift()));if(this.active=!1,n){for(;++r<i&&(e=t.shift());)e.unsubscribe();throw n}}}const d=new h(u),p=d},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("n6bG"),i=n("gRHU"),s=n("quSY"),o=n("2QA8"),a=n("2fFW"),l=n("NJ4a");class u extends s.a{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.a;break;case 1:if(!e){this.destination=i.a;break}if("object"==typeof e){e instanceof u?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,e,t,n)}}[o.a](){return this}static create(e,t,n){const r=new u(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class c extends u{constructor(e,t,n,s){let o;super(),this._parentSubscriber=e;let a=this;Object(r.a)(t)?o=t:t&&(o=t.next,n=t.error,s=t.complete,t!==i.a&&(a=Object.create(t),Object(r.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(l.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(l.a)(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(e,t,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(l.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"8Y7J":function(e,t,n){"use strict";n.d(t,"a",function(){return ht}),n.d(t,"b",function(){return yi}),n.d(t,"c",function(){return pi}),n.d(t,"d",function(){return hi}),n.d(t,"e",function(){return di}),n.d(t,"f",function(){return ws}),n.d(t,"g",function(){return Xi}),n.d(t,"h",function(){return Ge}),n.d(t,"i",function(){return Ti}),n.d(t,"j",function(){return kt}),n.d(t,"k",function(){return wi}),n.d(t,"l",function(){return It}),n.d(t,"m",function(){return re}),n.d(t,"n",function(){return li}),n.d(t,"o",function(){return j}),n.d(t,"p",function(){return u}),n.d(t,"q",function(){return I}),n.d(t,"r",function(){return et}),n.d(t,"s",function(){return Qt}),n.d(t,"t",function(){return Zt}),n.d(t,"u",function(){return vi}),n.d(t,"v",function(){return H}),n.d(t,"w",function(){return ts}),n.d(t,"x",function(){return q}),n.d(t,"y",function(){return Qi}),n.d(t,"z",function(){return Ai}),n.d(t,"A",function(){return c}),n.d(t,"B",function(){return bi}),n.d(t,"C",function(){return mi}),n.d(t,"D",function(){return ci}),n.d(t,"E",function(){return Rt}),n.d(t,"F",function(){return Dt}),n.d(t,"G",function(){return At}),n.d(t,"H",function(){return Nt}),n.d(t,"I",function(){return Be}),n.d(t,"J",function(){return d}),n.d(t,"K",function(){return is}),n.d(t,"L",function(){return ns}),n.d(t,"M",function(){return Xt}),n.d(t,"N",function(){return Ui}),n.d(t,"O",function(){return Ft}),n.d(t,"P",function(){return Mt}),n.d(t,"Q",function(){return tn}),n.d(t,"R",function(){return Z}),n.d(t,"S",function(){return Zi}),n.d(t,"T",function(){return we}),n.d(t,"U",function(){return C}),n.d(t,"V",function(){return U}),n.d(t,"W",function(){return ve}),n.d(t,"X",function(){return ms}),n.d(t,"Y",function(){return qi}),n.d(t,"Z",function(){return Et}),n.d(t,"ab",function(){return _i}),n.d(t,"bb",function(){return Yn}),n.d(t,"cb",function(){return Je}),n.d(t,"db",function(){return ri}),n.d(t,"eb",function(){return He}),n.d(t,"fb",function(){return Ee}),n.d(t,"gb",function(){return he}),n.d(t,"hb",function(){return Cs}),n.d(t,"ib",function(){return fi}),n.d(t,"jb",function(){return bs}),n.d(t,"kb",function(){return ys}),n.d(t,"lb",function(){return _s}),n.d(t,"mb",function(){return vs}),n.d(t,"nb",function(){return si}
1),n.d(t,"ob",function(){return Qr}),n.d(t,"pb",function(){return pe}),n.d(t,"qb",function(){return be}),n.d(t,"rb",function(){return ge}),n.d(t,"sb",function(){return fe}),n.d(t,"tb",function(){return me}),n.d(t,"ub",function(){return cr}),n.d(t,"vb",function(){return Go}),n.d(t,"wb",function(){return wn}),n.d(t,"xb",function(){return Dr}),n.d(t,"yb",function(){return Ss}),n.d(t,"zb",function(){return Xr}),n.d(t,"Ab",function(){return fs}),n.d(t,"Bb",function(){return ei}),n.d(t,"Cb",function(){return ti}),n.d(t,"Db",function(){return de}),n.d(t,"Eb",function(){return T}),n.d(t,"Fb",function(){return Zn}),n.d(t,"Gb",function(){return mt}),n.d(t,"Hb",function(){return _t}),n.d(t,"Ib",function(){return yt}),n.d(t,"Jb",function(){return rr}),n.d(t,"Kb",function(){return nr}),n.d(t,"Lb",function(){return Ps}),n.d(t,"Mb",function(){return wr}),n.d(t,"Nb",function(){return Fs}),n.d(t,"Ob",function(){return Ar}),n.d(t,"Pb",function(){return Ls}),n.d(t,"Qb",function(){return Ms}),n.d(t,"Rb",function(){return Rr}),n.d(t,"Sb",function(){return Ts}),n.d(t,"Tb",function(){return Jr}),n.d(t,"Ub",function(){return J}),n.d(t,"Vb",function(){return v}),n.d(t,"Wb",function(){return zs}),n.d(t,"Xb",function(){return yn}),n.d(t,"Yb",function(){return ce}),n.d(t,"Zb",function(){return Hs}),n.d(t,"ac",function(){return g}),n.d(t,"bc",function(){return V});var r=n("XNiG"),i=n("quSY"),s=n("HDdC"),o=n("VRyK"),a=n("w1tV");function l(e,t,n){return r=()=>{const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function i(...e){if(this instanceof i)return r.apply(this,e),this;const t=new i(...e);return n.annotation=t,n;function n(e,n,r){const i=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(t),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i},r();var r}const u=l("Inject",e=>({token:e})),c=l("Optional"),h=l("Self"),d=l("SkipSelf");var p=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function f(e){for(let t in e)if(e[t]===f)return t;throw Error("Could not find renamed property on target object.")}function g(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function m(e){return b(e,e[y])||b(e,e[_])}function b(e,t){return t&&t.token===e?t:null}const y=f({\u0275prov:f}),_=f({ngInjectableDef:f});function v(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(v).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const w=f({__forward_ref__:f});function C(e){return e.__forward_ref__=C,e.toString=function(){return v(this())},e}function S(e){return"function"==typeof(t=e)&&t.hasOwnProperty(w)&&t.__forward_ref__===C?e():e;var t}const O="undefined"!=typeof globalThis&&globalThis,k="undefined"!=typeof window&&window,E="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,x="undefined"!=typeof global&&global,T=O||x||k||E;class I{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=g({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const j=new I("INJECTOR",-1),D={},A=/\n/gm,R="__source",P=f({provide:String,useValue:f});let N,M;function F(e){const t=N;return N=e,t}function L(e,t=p.Default){if(void 0===N)throw new Error("inject() must be called from an injection context");return null===N?function(e,t,n){const r=m(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&p.Optional)return null;throw new Error(`Injector: NOT_FOUND [${v(e)}]`)}(e,0,t):N.get(e,t&p.Optional?null:void 0,t)}function V(e,t=p.Default){return(M||L)(S(e),t)}const U=V;class z{get(e,t=D){if(t===D){const t=new Error(`NullInjectorError: No provider for ${v(e)}!`);throw t.name="NullInjectorError",t}return t}}function $(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=v(t);if(Array.isArray(t))i=t.map(v).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];
1e.push(n+":"+("string"==typeof r?JSON.stringify(r):v(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(A,"\n ")}`}class q{}class H{}function W(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),W(r,t)):t!==e&&t.push(r)}return t}function B(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function K(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Q(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}var Z=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});class G{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}let Y;function J(e){Y=e}const X=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(T))();function ee(e){return e.ngDebugContext}function te(e){return e.ngOriginalError}function ne(e,...t){e.error(...t)}class re{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||ne}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?ee(e)?ee(e):this._findContext(te(e)):null}_findOriginalError(e){let t=te(e);for(;t&&te(t);)t=te(t);return t}}class ie{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see http://g.co/ng/security#xss)`}}class se extends ie{getTypeName(){return"HTML"}}class oe extends ie{getTypeName(){return"Style"}}class ae extends ie{getTypeName(){return"Script"}}class le extends ie{getTypeName(){return"URL"}}class ue extends ie{getTypeName(){return"ResourceURL"}}function ce(e){return e instanceof ie?e.changingThisBreaksApplicationSecurity:e}function he(e,t){const n=de(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===t}function de(e){return e instanceof ie&&e.getTypeName()||null}function pe(e){return new se(e)}function fe(e){return new oe(e)}function ge(e){return new ae(e)}function me(e){return new le(e)}function be(e){return new ue(e)}let ye=!0,_e=!1;function ve(){return _e=!0,ye}function we(){if(_e)throw new Error("Cannot enable prod mode after platform setup.");ye=!1}class Ce{getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}}class Se{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;const n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const n=t.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Oe=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ke=/^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 Ee(e){return(e=String(e)).match(Oe)||e.match(ke)?e:(ve()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function xe(e){return(e=String(e)).split(",").map(e=>Ee(e.trim())).join(", ")}function Te(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ie(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const je=Te("area,br,col,hr,img,wbr"),De=Te("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ae=Te("rp,rt"),Re=Ie(Ae,De),Pe=Ie(je,Ie(De,Te("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")),Ie(Ae,Te("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")),Re),Ne=Te("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Me=Te("srcset"),Fe=Ie(Ne,Me,Te("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
1olspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Te("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")),Le=Te("script,style,template");class Ve{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Pe.hasOwnProperty(t))return this.sanitizedSomething=!0,!Le.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r),t=e.name,i=t.toLowerCase();if(!Fe.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let s=e.value;Ne[i]&&(s=Ee(s)),Me[i]&&(s=xe(s)),this.buf.push(" ",t,'="',$e(s),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Pe.hasOwnProperty(t)&&!je.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push($e(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const Ue=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ze=/([^\#-~ |!])/g;function $e(e){return e.replace(/&/g,"&").replace(Ue,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(ze,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let qe;function He(e,t){let n=null;try{qe=qe||function(e){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(e){return!1}}()?new Ce:new Se(e)}(e);let r=t?String(t):"";n=qe.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=qe.getInertBodyElement(r)}while(r!==s);const o=new Ve,a=o.sanitizeChildren(We(n)||n);return ve()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=We(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function We(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Be=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Ke(e){var t;return t=e.replace(/[$@]/g,"_"),`ng-reflect-${e=t.replace(Qe,(...e)=>"-"+e[1].toLowerCase())}`}const Qe=/([A-Z])/g;function Ze(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}let Ge=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ye(),e})();const Ye=(...e)=>{},Je=new I("Set Injector scope."),Xe=function(e,t,n){return new st(e,t,n)};let et=(()=>{class e{static create(e,t){return Array.isArray(e)?Xe(e,t,""):Xe(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=D,e.NULL=new z,e.\u0275prov=g({token:e,providedIn:"any",factory:()=>V(j)}),e.__NG_ELEMENT_ID__=-1,e})();const tt=function(e){return e},nt=[],rt=tt,it=function(){return Array.prototype.slice.call(arguments)};class st{constructor(e,t=et.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(et,{token:et,fn:tt,deps:nt,value:this,useNew:!1}),r.set(j,{token:j,fn:tt,deps:nt,value:this,useNew:!1}),this.scope=lt(r,e)}get(e,t,n=p.Default){const r=this._records;let i=r.get(e);if(void 0===i){const t=m(e);if(t){const n=t&&t.providedIn;("any"===n||null!=n&&n===this.scope)&&r.set(e,i=ot({provide:e,useFactory:t.factory,deps:nt}))}void 0===i&&r.set(e,null)}let s=F(this);try{return ut(e,i,r,this.parent,t,n)}catch(o){return function(e,t,n,r){const i=e.ngTempTokenPath;throw t[R]&&i.unshift(t[R]),e.message=$("\n"+e.message,i,"StaticInjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(o,e,0,this.source)}finally{F(s)}}toString(){const e=[];return this._records.forEach((t,n)=>e.push(v(n))),`StaticInjector[${e.join(", ")}]`}}function ot(e){const t=function(e){let t=nt;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e<n.length;e++){let r=6,i=S(n[e]);if(Array.isArray(i))for(let e=0,t=i;e<t.length;e++){const n=t[e];n instanceof c||n==c?r|=1:n instanceof d||n==d?r&=-3:n instanceof h||n==h?r&=-5:i=n instanceof u?n.token:S(n)}t.push({token:i,options:r})}}else if(e.useExisting)t=[{token:S(e.useExisting),options:6}];else if(!n&&!(P in e))throw ct("'deps' required",e);return t}(e);let n=tt,r=nt,i=!1,s=S(e.provide);
1if(P in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)i=!0,n=S(e.useClass);else{if("function"!=typeof s)throw ct("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);i=!0,n=s}return{deps:t,fn:n,useNew:i,value:r}}function at(e){return ct("Cannot mix multi providers and regular providers",e)}function lt(e,t){let n=null;if(t)if(t=S(t),Array.isArray(t))for(let r=0;r<t.length;r++)n=lt(e,t[r])||n;else{if("function"==typeof t)throw ct("Function/Class not supported",t);if(!t||"object"!=typeof t||!t.provide)throw ct("Unexpected provider",t);{let r=S(t.provide);const i=ot(t);if(!0===t.multi){let n=e.get(r);if(n){if(n.fn!==it)throw at(r)}else e.set(r,n={token:t.provide,deps:[],useNew:!1,fn:it,value:nt});r=t,n.deps.push({token:r,options:6})}const s=e.get(r);if(s&&s.fn==it)throw at(r);r===Je&&(n=i.value),e.set(r,i)}}return n}function ut(e,t,n,r,i,s){try{return function(e,t,n,r,i,s){let o;if(!t||s&p.SkipSelf)o=s&p.Self?et.NULL.get(e,s&p.Optional?void 0!==i?i:null:i):r.get(e,i,p.Default);else{if(o=t.value,o==rt)throw Error("\u0275Circular dependency");if(o===nt){let e;t.value=rt;let i=t.useNew,s=t.fn,a=t.deps,l=nt;if(a.length){l=[];for(let e=0;e<a.length;e++){const t=a[e],i=t.options,s=2&i?n.get(t.token):void 0;l.push(ut(t.token,s,n,s||4&i?r:et.NULL,1&i?null:et.THROW_IF_NOT_FOUND,p.Default))}}t.value=o=i?new s(...l):s.apply(e,l)}}return o}(e,t,n,r,i,s)}catch(o){throw o instanceof Error||(o=new Error(o)),(o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(e),t&&t.value==rt&&(t.value=nt),o}}function ct(e,t){return new Error($(e,t,"StaticInjectorError"))}const ht=new I("AnalyzeForEntryComponents");let dt=null;function pt(){if(!dt){const e=T.Symbol;if(e&&e.iterator)dt=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(dt=n)}}}return dt}function ft(e,t){const n=mt(e),r=mt(t);return n&&r?function(e,t,n){const r=e[pt()](),i=t[pt()]();for(;;){const e=r.next(),t=i.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,ft):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}class gt{constructor(e){this.wrapped=e}static wrap(e){return new gt(e)}static unwrap(e){return gt.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof gt}}function mt(e){return!!bt(e)&&(Array.isArray(e)||!(e instanceof Map)&&pt()in e)}function bt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function yt(e){return!!e&&"function"==typeof e.then}function _t(e){return!!e&&"function"==typeof e.subscribe}class vt{}class wt{}function Ct(e){const t=Error(`No component factory found for ${v(e)}. Did you add it to @NgModule.entryComponents?`);return t[St]=e,t}const St="ngComponent";class Ot{resolveComponentFactory(e){throw Ct(e)}}let kt=(()=>{class e{}return e.NULL=new Ot,e})();class Et{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r<e.length;r++){const t=e[r];this._factories.set(t.componentType,t)}}resolveComponentFactory(e){let t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw Ct(e);return new xt(t,this._ngModule)}}class xt extends wt{constructor(e,t){super(),this.factory=e,this.ngModule=t,this.selector=e.selector,this.componentType=e.componentType,this.ngContentSelectors=e.ngContentSelectors,this.inputs=e.inputs,this.outputs=e.outputs}create(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)}}function Tt(...e){}let It=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>jt(e),e})();const jt=Tt;class Dt{}var At=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let Rt=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Pt(),e})();const Pt=Tt;let Nt=(()=>{class e{}return e.\u0275prov=g({token:e,providedIn:"root",factory:()=>null}),e})();class Mt{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Ft=new Mt("10.1.2");class Lt{constructor(){}supports(e){return mt(e)}create(e){return new Ut(e)}}const Vt=(e,t)=>
vendor: 7,854 bytes, line 1
1t;class Ut{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Vt}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){const s=!n||t&&t.currentIndex<Ht(n,r,i)?t:n,o=Ht(s,r,i),a=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(t=t._next,null==s.previousIndex)r++;else{i||(i=[]);const e=o-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<i.length?i[n]:i[n]=0,s=r+n;t<=s&&s<e&&(i[n]=r+1)}i[s.previousIndex]=t-e}}o!==a&&e(s,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!mt(e))throw new Error(`Error trying to diff '${v(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,i=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],r=this._trackByFn(t,n),null!==i&&Object.is(i.trackById,r)?(s&&(i=this._verifyReinsertion(i,n,r,t)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,t),s=!0),i=i._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[pt()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==i&&Object.is(i.trackById,r)?(s&&(i=this._verifyReinsertion(i,e,r,t)),Object.is(i.item,e)||this._addIdentityChange(i,e)):(i=this._mismatch(i,e,r,t),s=!0),i=i._next,t++}),this.length=t;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new zt(t,n),i,r),e}_verifyReinsertion(e,t,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new qt),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new qt),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class zt{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class $t{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class qt{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new $t,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ht(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class Wt{constructor(){}supports(e){return e instanceof Map||bt(e)}create(){return new Bt}}class Bt{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||bt(e)))throw new Error(`Error trying to diff '${v(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;
vendor: 4,262 bytes, line 1
1if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new Kt(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Kt{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Qt=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new d,new c]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=g({token:e,providedIn:"root",factory:()=>new e([new Lt])}),e})(),Zt=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new d,new c]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=g({token:e,providedIn:"root",factory:()=>new e([new Wt])}),e})();const Gt=[new Wt],Yt=new Qt([new Lt]),Jt=new Zt(Gt);let Xt=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>en(e,It),e})();const en=Tt;let tn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>nn(e,It),e})();const nn=Tt;function rn(e,t,n,r){let i=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return sn(n,t),n}(i,e)}function sn(e,t){e.ngDebugContext=t,e.ngErrorLogger=t.logError.bind(t)}function on(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function an(e,t,n){const r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}
1function ln(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function un(e,t){return e.nodes[t]}function cn(e,t){return e.nodes[t]}function hn(e,t){return e.nodes[t]}function dn(e,t){return e.nodes[t]}function pn(e,t){return e.nodes[t]}const fn={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},gn=()=>{},mn=new Map;function bn(e){let t=mn.get(e);return t||(t=v(e)+"_"+mn.size,mn.set(e,t)),t}function yn(e,t,n,r){if(gt.isWrapped(r)){r=gt.unwrap(r);const i=e.def.nodes[t].bindingIndex+n,s=gt.unwrap(e.oldValues[i]);e.oldValues[i]=new gt(s)}return r}const _n="$$undefined",vn="$$empty";function wn(e){return{id:_n,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let Cn=0;function Sn(e,t,n,r){return!(!(2&e.state)&&Object.is(e.oldValues[t.bindingIndex+n],r))}function On(e,t,n,r){return!!Sn(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function kn(e,t,n,r){const i=e.oldValues[t.bindingIndex+n];if(1&e.state||!ft(i,r)){const s=t.bindings[n].name;throw rn(fn.createDebugContext(e,t.nodeIndex),`${s}: ${i}`,`${s}: ${r}`,!!(1&e.state))}}function En(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function xn(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Tn(e,t,n,r){try{return En(33554432&e.def.nodes[t].flags?cn(e,t).componentView:e),fn.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function In(e){return e.parent?cn(e.parent,e.parentNodeDef.nodeIndex):null}function jn(e){return e.parent?e.parentNodeDef.parent:null}function Dn(e,t){switch(201347067&t.flags){case 1:return cn(e,t.nodeIndex).renderElement;case 2:return un(e,t.nodeIndex).renderText}}function An(e,t){return e?`${e}:${t}`:t}function Rn(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function Pn(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function Nn(e){return 1<<e%32}function Mn(e){const t={};let n=0;const r={};return e&&e.forEach(([e,i])=>{"number"==typeof e?(t[e]=i,n|=Nn(e)):r[e]=i}),{matchedQueries:t,references:r,matchedQueryIds:n}}function Fn(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,R,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:bn(n)}})}function Ln(e,t,n){let r=n.renderParent;return r?1&r.flags&&33554432&r.flags&&(!r.element.componentRendererType||r.element.componentRendererType.encapsulation!==Z.Native)?void 0:cn(e,n.renderParent.nodeIndex).renderElement:t}const Vn=new WeakMap;function Un(e){let t=Vn.get(e);return t||(t=e(()=>gn),t.factory=e,Vn.set(e,t)),t}function zn(e,t,n,r,i){3===t&&(n=e.renderer.parentNode(Dn(e,e.def.lastRenderRootNode))),$n(e,t,0,e.def.nodes.length-1,n,r,i)}function $n(e,t,n,r,i,s,o){for(let a=n;a<=r;a++){const n=e.def.nodes[a];11&n.flags&&Hn(e,n,t,i,s,o),a+=n.childCount}}function qn(e,t,n,r,i,s){let o=e;for(;o&&!Rn(o);)o=o.parent;const a=o.parent,l=jn(o),u=l.nodeIndex+l.childCount;for(let c=l.nodeIndex+1;c<=u;c++){const e=a.def.nodes[c];e.ngContentIndex===t&&Hn(a,e,n,r,i,s),c+=e.childCount}if(!a.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t<o.length;t++)Wn(e,o[t],n,r,i,s)}}function Hn(e,t,n,r,i,s){if(8&t.flags)qn(e,t.ngContent.index,n,r,i,s);else{const o=Dn(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&Wn(e,o,n,r,i,s),32&t.bindingFlags&&Wn(cn(e,t.nodeIndex).componentView,o,n,r,i,s)):Wn(e,o,n,r,i,s),16777216&t.flags){const o=cn(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<o.length;e++)zn(o[e],n,r,i,s)}1&t.flags&&!t.element.name&&$n(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,i,s)}}function Wn(e,t,n,r,i,s){const o=e.renderer;switch(n){case 1:o.appendChild(r,t);break;case 2:o.insertBefore(r,t,i);break;case 3:o.removeChild(r,t);break;case 0:s.push(t)}}const Bn=/^:([^:]+):(.+)$/;function Kn(e){if(":"===e[0]){const t=e.match(Bn);return[t[1],t[2]]}return["",e]}function Qn(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}function Zn(e,t,n,r,i,s,o,a,l,u,c,h,d,p,f,g,m,b,y,_){switch(e){case 1:return t+Gn(n)+r;case 2:return t+Gn(n)+r+Gn(i)+s;case 3:return t+Gn(n)+r+Gn(i)+s+Gn(o)+a;case 4:return t+Gn(n)+r+Gn(i)+s+Gn(o)+a+Gn(l)+u;case 5:return t+Gn(n)+r+Gn(i)+s+Gn(o)+a+Gn(l)+u+Gn(c)+h;case 6:return t+Gn(n)+r+Gn(i)+s+Gn(o)+a+Gn(l)+u+Gn(c)+h+Gn(d)+p;case 7:return t+Gn(n)+r+Gn(i)+s+Gn(o)+a+Gn(l)+u+Gn(c)+h+Gn(d)+p+Gn(f)+g;case 8:return t+Gn(n)+r+Gn(i)+s+Gn(o)+a+Gn(l)+u+Gn(c)+h+Gn(d)+p+Gn(f)+g+Gn(m)+b;case 9:return t+Gn(n)+r+Gn(i)+s+Gn(o)+a+Gn(l)+u+Gn(c)+h+Gn(d)+p+Gn(f)+g+Gn(m)+b+Gn(y)+_;default:throw new Error("Does not support more than 9 expressions")}}function Gn(e){return null!=e?e.toString():""}const Yn=[],Jn={},Xn=bn(et),er=bn(j),tr=bn(q);function nr(e,t,n,r){return n=S(n),{index:-1,deps:Fn(r,v(t)),flags:e,token:t,value:n}}function rr(e){const t={},n=[];let r=null;for(let i=0;i<e.length;i++){const s=e[i];s.token===Je&&(r=s.value),1073741824&s.flags&&n.push(s.token),s.index=i,t[bn(s.token)]=s}return{factory:null,providersByKey:t,providers:e,modules:n,scope:r}}function ir(e,t,n=et.THROW_IF_NOT_FOUND){const r=F(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const i=t.tokenKey;switch(i){case Xn:case er:case tr:return e}const s=e._def.providersByKey[i];let o;if(s){let t=e._providers[s.index];
vendor: 4,223 bytes, line 1
1return void 0===t&&(t=e._providers[s.index]=sr(e,s)),t===Jn?void 0:t}if((o=m(t.token))&&function(e,t){const n=t.providedIn;return null!=n&&("any"===n||n===e._def.scope||function(e,t){return e._def.modules.indexOf(t)>-1}(e,n))}(e,o)){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:o.factory,deps:[],index:n,token:t.token},e._providers[n]=Jn,e._providers[n]=sr(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{F(r)}}function sr(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(ir(e,n[0]));case 2:return new t(ir(e,n[0]),ir(e,n[1]));case 3:return new t(ir(e,n[0]),ir(e,n[1]),ir(e,n[2]));default:const i=[];for(let t=0;t<r;t++)i[t]=ir(e,n[t]);return new t(...i)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const r=n.length;switch(r){case 0:return t();case 1:return t(ir(e,n[0]));case 2:return t(ir(e,n[0]),ir(e,n[1]));case 3:return t(ir(e,n[0]),ir(e,n[1]),ir(e,n[2]));default:const i=[];for(let t=0;t<r;t++)i[t]=ir(e,n[t]);return t(...i)}}(e,t.value,t.deps);break;case 2048:n=ir(e,t.deps[0]);break;case 256:n=t.value}return n===Jn||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Jn:n}function or(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,K(n,t),fn.dirtyParentQueries(r),lr(r),r}function ar(e,t,n){const r=t?Dn(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),s=n.renderer.nextSibling(r);zn(n,2,i,s,void 0)}function lr(e){zn(e,3,null,null,void 0)}const ur={};function cr(e,t,n,r,i,s){return new hr(e,t,n,r,i,s)}class hr extends wt{constructor(e,t,n,r,i,s){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=i,this.ngContentSelectors=s,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const i=Un(this.viewDefFactory),s=i.nodes[0].element.componentProvider.nodeIndex,o=fn.createRootView(e,t||[],n,i,r,ur),a=hn(o,s).instance;return n&&o.renderer.setAttribute(cn(o,0).renderElement,"ng-version",Ft.full),new dr(o,new mr(o),a)}}class dr extends vt{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new It(cn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new vr(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function pr(e,t,n){return new fr(e,t,n)}class fr{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new It(this._data.renderElement)}get injector(){return new vr(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=jn(e),e=e.parent;return e?new vr(e,t):new vr(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=or(this._data,e);fn.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new mr(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,i){const s=n||this.parentInjector;i||e instanceof xt||(i=s.get(q));const o=e.create(s,r,void 0,i);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let i=t.viewContainer._embeddedViews;null==n&&(n=i.length),r.viewContainerParent=e,B(i,n,r),function(e,t){const n=In(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(4&t.flags)return;
1e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),fn.dirtyParentQueries(r),ar(t,n>0?i[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const r=e.viewContainer._embeddedViews,i=r[t];K(r,t),null==n&&(n=r.length),B(r,n,i),fn.dirtyParentQueries(i),lr(i),ar(e,n>0?r[n-1]:null,i)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=or(this._data,e);t&&fn.destroyView(t)}detach(e){const t=or(this._data,e);return t?new mr(t):null}}function gr(e){return new mr(e)}class mr{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return zn(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return!!(128&this._view.state)}markForCheck(){En(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{fn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){fn.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),fn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,lr(this._view),fn.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function br(e,t){return new yr(e,t)}class yr extends Xt{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new mr(fn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new It(cn(this._parentView,this._def.nodeIndex).renderElement)}}function _r(e,t){return new vr(e,t)}class vr{constructor(e,t){this.view=e,this.elDef=t}get(e,t=et.THROW_IF_NOT_FOUND){return fn.resolveDep(this.view,this.elDef,!!this.elDef&&!!(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:bn(e)},t)}}function wr(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=cn(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return un(e,n.nodeIndex).renderText;if(20240&n.flags)return hn(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function Cr(e,t,n,r){return new Sr(e,t,n,r)}class Sr{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=Q(t.providers.length);for(let r=0;r<t.providers.length;r++){const i=t.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=sr(e,i))}}(this)}get(e,t=et.THROW_IF_NOT_FOUND,n=p.Default){let r=0;return n&p.SkipSelf?r|=1:n&p.Self&&(r|=4),ir(this,{token:e,tokenKey:bn(e),flags:r},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(kt)}destroy(){if(this._destroyed)throw new Error(`The ng module ${v(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e){const t=e._def,n=new Set;for(let r=0;r<t.providers.length;r++)if(131072&t.providers[r].flags){const t=e._providers[r];if(t&&t!==Jn){const e=t.ngOnDestroy;"function"!=typeof e||n.has(t)||(e.apply(t),n.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const Or=bn(Rt),kr=bn(It),Er=bn(tn),xr=bn(Xt),Tr=bn(Ge),Ir=bn(et),jr=bn(j);function Dr(e,t,n,r,i,s,o,a){const l=[];if(o)for(let c in o){const[e,t]=o[c];l[e]={flags:8,name:c,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const u=[];
vendor: 4,429 bytes, line 1
1if(a)for(let c in a)u.push({type:1,propName:c,target:null,eventName:a[c]});return Pr(e,t|=16384,n,r,i,i,s,l,u)}function Ar(e,t,n){return Pr(-1,e|=16,null,0,t,t,n)}function Rr(e,t,n,r,i){return Pr(-1,e,t,0,n,r,i)}function Pr(e,t,n,r,i,s,o,a,l){const{matchedQueries:u,references:c,matchedQueryIds:h}=Mn(n);l||(l=[]),a||(a=[]),s=S(s);const d=Fn(o,v(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:h,references:c,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:Qn(a),outputs:l,element:null,provider:{token:i,value:s,deps:d},text:null,query:null,ngContent:null}}function Nr(e,t){return Vr(e,t)}function Mr(e,t){let n=e;for(;n.parent&&!Rn(n);)n=n.parent;return Ur(n.parent,jn(n),!0,t.provider.value,t.provider.deps)}function Fr(e,t){const n=Ur(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r<t.outputs.length;r++){const i=t.outputs[r],s=n[i.propName];if(!_t(s))throw new Error(`@Output ${i.propName} not initialized in '${n.constructor.name}'.`);{const n=s.subscribe(Lr(e,t.parent.nodeIndex,i.eventName));e.disposables[t.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function Lr(e,t,n){return r=>Tn(e,t,n,r)}function Vr(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return Ur(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){const s=i.length;switch(s){case 0:return r();case 1:return r($r(e,t,n,i[0]));case 2:return r($r(e,t,n,i[0]),$r(e,t,n,i[1]));case 3:return r($r(e,t,n,i[0]),$r(e,t,n,i[1]),$r(e,t,n,i[2]));default:const o=[];for(let r=0;r<s;r++)o.push($r(e,t,n,i[r]));return r(...o)}}(e,t.parent,n,r.value,r.deps);case 2048:return $r(e,t.parent,n,r.deps[0]);case 256:return r.value}}function Ur(e,t,n,r,i){const s=i.length;switch(s){case 0:return new r;case 1:return new r($r(e,t,n,i[0]));case 2:return new r($r(e,t,n,i[0]),$r(e,t,n,i[1]));case 3:return new r($r(e,t,n,i[0]),$r(e,t,n,i[1]),$r(e,t,n,i[2]));default:const o=[];for(let r=0;r<s;r++)o.push($r(e,t,n,i[r]));return new r(...o)}}const zr={};function $r(e,t,n,r,i=et.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const s=e;2&r.flags&&(i=null);const o=r.tokenKey;o===Tr&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);let a=e;for(;a;){if(t)switch(o){case Or:return qr(a,t,n).renderer;case kr:return new It(cn(a,t.nodeIndex).renderElement);case Er:return cn(a,t.nodeIndex).viewContainer;case xr:if(t.element.template)return cn(a,t.nodeIndex).template;break;case Tr:return gr(qr(a,t,n));case Ir:case jr:return _r(a,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[o];if(e){let t=hn(a,e.nodeIndex);return t||(t={instance:Vr(a,e)},a.nodes[e.nodeIndex]=t),t.instance}}n=Rn(a),t=jn(a),a=a.parent,4&r.flags&&(a=null)}const l=s.root.injector.get(r.token,zr);return l!==zr||i===zr?l:s.root.ngModule.injector.get(r.token,i)}function qr(e,t,n){let r;if(n)r=cn(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!Rn(r);)r=r.parent;return r}function Hr(e,t,n,r,i,s){if(32768&n.flags){const t=cn(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){s=s||{};const t=gt.unwrap(e.oldValues[n.bindingIndex+r]);s[n.bindings[r].nonMinifiedName]=new G(t,i,!!(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,s}function Wr(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let r=0;for(let i=0;i<n.length;i++){const s=n[i];let o=s.parent;for(!o&&s.flags&t&&Kr(e,i,s.flags&t,r++),0===(s.childFlags&t)&&(i+=s.childCount);o&&1&o.flags&&i===o.nodeIndex+o.childCount;)o.directChildFlags&t&&(r=Br(e,o,t,r)),o=o.parent}}function Br(e,t,n,r){for(let i=t.nodeIndex+1;i<=t.nodeIndex+t.childCount;i++){const t=e.def.nodes[i];t.flags&n&&Kr(e,i,t.flags&n,r++),i+=t.childCount}return r}function Kr(e,t,n,r){const i=hn(e,t);if(!i)return;const s=i.instance;s&&(fn.setCurrentNode(e,t),1048576&n&&ln(e,512,r)&&s.ngAfterContentInit(),2097152&n&&s.ngAfterContentChecked(),4194304&n&&ln(e,768,r)&&s.ngAfterViewInit(),8388608&n&&s.ngAfterViewChecked(),131072&n&&s.ngOnDestroy())}const Qr=new I("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>X}),Zr=void 0;var Gr=["en",[["a","p"],["AM","PM"],Zr],[["AM","PM"],Zr,Zr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Zr,[["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"]],Zr,[["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}",Zr,"{1} 'at' {0}",Zr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Yr={};function Jr(e,t,n){"string"!=typeof t&&(n=t,t=e[ri.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Yr[t]=e,n&&(Yr[t][ri.ExtraData]=n)}function Xr(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=ni(t);if(n)return n;const r=t.split("-")[0];if(n=ni(r),n)return n;if("en"===r)return Gr;throw new Error(`Missing locale data for the locale "${e}".`)}function ei(e){return Xr(e)[ri.CurrencyCode]||null}function ti(e){return Xr(e)[ri.PluralCase]}function ni(e){return e in Yr||(Yr[e]=T.ng&&T.ng.common&&T.ng.common.locales&&T.ng.common.locales[e]),Yr[e]}var ri=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});const ii="en-US",si="USD";let oi=ii;function ai(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t){throw new Error(`ASSERTION ERROR: ${e} [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(oi=e.toLowerCase().replace(/_/g,"-"))}const li=class extends r.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,o=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(r,s,o);return e instanceof i.a&&e.add(a),a}};function ui(){return this._results[pt()]()}class ci{constructor(){this.dirty=!0,this._results=[],this.changes=new li,this.length=0;const e=pt(),t=ci.prototype;t[e]||(t[e]=ui)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=W(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}const hi=new I("Application Initializer");class di{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();yt(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}const pi=new I("AppId");function fi(){return`${gi()}${gi()}${gi()}`}function gi(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const mi=new I("Platform Initializer"),bi=new I("Platform ID"),yi=new I("appBootstrapListener");class _i{log(e){console.log(e)}warn(e){console.warn(e)}}const vi=new I("LocaleId"),wi=new I("DefaultCurrencyCode"),Ci=!1;function Si(){throw new Error("Runtime compiler is not loaded")}const Oi=Si,ki=Si,Ei=Si,xi=Si;class Ti{constructor(){this.compileModuleSync=Oi,this.compileModuleAsync=ki,this.compileModuleAndAllComponentsSync=Ei,this.compileModuleAndAllComponentsAsync=xi}clearCache(){}clearCacheFor(e){}getModuleId(e){}}class Ii{}const ji=(()=>Promise.resolve(0))();function Di(e){"undefined"==typeof Zone?ji.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ai{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new li(!1),this.onMicrotaskEmpty=new li(!1),this.onStable=new li(!1),this.onError=ne
1w li(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=t,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=T.requestAnimationFrame,t=T.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(T,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Mi(e),Ni(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Mi(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,r,i,s,o,a)=>{try{return Fi(e),n.invokeTask(i,s,o,a)}finally{t&&"eventTask"===s.type&&t(),Li(e)}},onInvoke:(t,n,r,i,s,o,a)=>{try{return Fi(e),t.invoke(r,i,s,o,a)}finally{Li(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Mi(e),Ni(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ai.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ai.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+r,e,Pi,Ri,Ri);try{return i.runTask(s,t,n)}finally{i.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function Ri(){}const Pi={};function Ni(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Mi(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function Fi(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Li(e){e._nesting--,Ni(e)}class Vi{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new li,this.onMicrotaskEmpty=new li,this.onStable=new li,this.onError=new li}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}}class Ui{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ai.assertNotInAngularZone(),Di(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}
1isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Di(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}class zi{constructor(){this._applications=new Map,Wi.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Wi.findTestabilityInTree(this,e,t)}}class $i{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function qi(e){Wi=e}let Hi,Wi=new $i,Bi=function(){};const Ki=new I("AllowMultipleToken");class Qi{constructor(e,t){this.name=e,this.token=t}}function Zi(e,t,n=[]){const r=`Platform: ${t}`,i=new I(r);return(t=[])=>{let s=Gi();if(!s||s.injector.get(Ki,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{const e=n.concat(t).concat({provide:i,useValue:!0},{provide:Je,useValue:"platform"});!function(e){if(Hi&&!Hi.destroyed&&!Hi.injector.get(Ki,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Bi(),Hi=e.get(Yi);const t=e.get(mi,null);t&&t.forEach(e=>e())}(et.create({providers:e,name:r}))}return function(e){const t=Gi();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function Gi(){return Hi&&!Hi.destroyed?Hi:null}class Yi{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new Vi:("zone.js"===e?void 0:e)||new Ai({enableLongStackTrace:ve(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),r=[{provide:Ai,useValue:n}];return n.run(()=>{const t=et.create({providers:r,parent:this.injector,name:e.moduleType.name}),i=e.create(t),s=i.injector.get(re,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>es(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{s.handleError(e)}})),function(e,t,n){try{const r=n();return yt(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,n,()=>{const e=i.injector.get(di);return e.runInitializers(),e.donePromise.then(()=>(Ci&&ai(i.injector.get(vi,ii)||ii),this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,t=[]){const n=Ji({},t);return function(e,t,n){return e.get(Ii).createCompiler([t]).compileModuleAsync(n)}(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Xi);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${v(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");
1this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}function Ji(e,t){return Array.isArray(t)?t.reduce(Ji,e):Object.assign(Object.assign({},e),t)}class Xi{constructor(e,t,n,r,i,l){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ve(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new s.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),c=new s.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Ai.assertNotInAngularZone(),Di(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Ai.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(u,c.pipe(Object(a.a)()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof wt?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=n instanceof xt?void 0:this._injector.get(q),i=n.create(et.NULL,[],t||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const s=i.injector.get(Ui,null);return s&&i.injector.get(zi).registerApplication(i.location.nativeElement,s),this._loadComponent(i),ve()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;es(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(yi,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),es(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}function es(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ts{}class ns{}const rs={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class is{constructor(e,t){this._compiler=e,this._config=t||rs}load(e){return!Ci&&this._compiler instanceof Ti?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("zn8P")(t).then(e=>e[r]).then(e=>ss(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+i]).then(e=>ss(e,t,r))}}function ss(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class os{constructor(e,t){this.name=e,this.callback=t}}class as{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof ls&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class ls extends as{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);
1-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return us(this,e,t),t}queryAllNodes(e){const t=[];return cs(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof ls)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}function us(e,t,n){e.childNodes.forEach(e=>{e instanceof ls&&(t(e)&&n.push(e),us(e,t,n))})}function cs(e,t,n){e instanceof ls&&e.childNodes.forEach(e=>{t(e)&&n.push(e),e instanceof ls&&cs(e,t,n)})}const hs=new Map;function ds(e){return hs.get(e)||null}const ps=ds,fs=function(e){return ds(e)};function gs(e){hs.set(e.nativeNode,e)}const ms=Zi(null,"core",[{provide:bi,useValue:"unknown"},{provide:Yi,deps:[et]},{provide:zi,deps:[]},{provide:_i,deps:[]}]);function bs(){return Yt}function ys(){return Jt}function _s(e){return e=e||Ci&&"undefined"!=typeof $localize&&$localize.locale||ii,Ci&&ai(e),e}function vs(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}class ws{constructor(e){}}function Cs(e,t,n,r,i,s){e|=1;const{matchedQueries:o,references:a,matchedQueryIds:l}=Mn(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:l,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:s?Un(s):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||gn},provider:null,text:null,query:null,ngContent:null}}function Ss(e,t,n,r,i,s,o=[],a,l,u,c,h){u||(u=gn);const{matchedQueries:d,references:p,matchedQueryIds:f}=Mn(n);let g=null,m=null;s&&([g,m]=Kn(s)),a=a||[];const b=[];for(let v=0;v<a.length;v++){const[e,t,n]=a[v],[r,i]=Kn(t);let s,o;switch(15&e){case 4:o=n;break;case 1:case 8:s=n}b[v]={flags:e,ns:r,name:i,nonMinifiedName:i,securityContext:s,suffix:o}}l=l||[];const y=[];for(let v=0;v<l.length;v++){const[e,t]=l[v];y[v]={type:0,target:e,eventName:t,propName:null}}const _=(o=o||[]).map(([e,t])=>{const[n,r]=Kn(e);return[n,r,t]});return h=function(e){if(e&&e.id===_n){const t=null!=e.encapsulation&&e.encapsulation!==Z.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+Cn++:vn}return e&&e.id===vn&&(e=null),e||null}(h),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:r,childCount:i,bindings:b,bindingFlags:Qn(b),outputs:y,element:{ns:g,name:m,attrs:_,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:u||gn},provider:null,text:null,query:null,ngContent:null}}function Os(e,t,n){const r=n.element,i=e.root.selectorOrNode,s=e.renderer;let o;if(e.parent||!i){o=r.name?s.createElement(r.name,r.ns):s.createComment("");const i=Ln(e,t,n);i&&s.appendChild(i,o)}else o=s.selectRootElement(i,!!r.componentRendererType&&r.componentRendererType.encapsulation===Z.ShadowDom);if(r.attrs)for(let a=0;a<r.attrs.length;a++){const[e,t,n]=r.attrs[a];s.setAttribute(o,t,n,e)}return o}function ks(e,t,n,r){for(let i=0;i<n.outputs.length;i++){const s=n.outputs[i],o=Es(e,n.nodeIndex,An(s.target,s.eventName));let a=s.target,l=e;"component"===s.target&&(a=null,l=t);const u=l.renderer.listen(a||r,s.eventName,o);e.disposables[n.outputIndex+i]=u}}function Es(e,t,n){return r=>Tn(e,t,n,r)}function xs(e,t,n,r){if(!On(e,t,n,r))return!1;const i=t.bindings[n],s=cn(e,t.nodeIndex),o=s.renderElement,a=i.name;switch(15&i.flags){case 1:!function(e,t,n,r,i,s){const o=t.securityContext;let a=o?e.root.sanitizer.sanitize(o,s):s;a=null!=a?a.toString():null;const l=e.renderer;null!=s?l.setAttribute(n,i,a,r):l.removeAttribute(n,i,r)}(e,i,o,i.ns,a,r);break;case 2:!function(e,t,n,r){const i=e.renderer;r?i.addClass(t,n):i.removeClass(t,n)}(e,o,a,r);break;case 4:!function(e,t,n,r,i){let s=e.root.sanitizer.sanitize(Be.STYLE,i);if(null!=s){s=s.toString();const e=t.suffix;null!=e&&(s+=e)}else s=null;const o=e.renderer;null!=s?o.setStyle(n,r,s):o.removeStyle(n,r)}(e,i,o,a,r);break;case 8:!function(e,t,n,r,i){const s=t.securityContext;let o=s?e.root.sanitizer.sanitize(s,i):i;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&i.flags?s.componentView:e,i,o,a,r)}return!0}
1function Ts(e,t,n){let r=[];for(let i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:Nn(t),bindings:r},ngContent:null}}function Is(){return new ci}function js(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&Pn(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let i=0;i<=r;i++){const r=e.def.nodes[i];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&pn(e,i).setDirty(),!(1&r.flags&&i+r.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(i+=r.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const t=e.def.nodes[n];134217728&t.flags&&536870912&t.flags&&pn(e,n).setDirty(),n+=t.childCount}}function Ds(e,t){const n=pn(e,t.nodeIndex);if(!n.dirty)return;let r,i;if(67108864&t.flags){const n=t.parent.parent;i=As(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),r=hn(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(i=As(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(i);const s=t.query.bindings;let o=!1;for(let a=0;a<s.length;a++){const e=s[a];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,o=!0}r[e.propName]=t}o&&n.notifyOnChanges()}function As(e,t,n,r,i){for(let s=t;s<=n;s++){const t=e.def.nodes[s],n=t.matchedQueries[r.id];if(null!=n&&i.push(Rs(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=cn(e,s);if((t.childMatchedQueries&r.filterId)===r.filterId&&(As(e,s+1,s+t.childCount,r,i),s+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const s=e[t],o=In(s);o&&o===n&&As(s,0,s.def.nodes.length-1,r,i)}}const o=n.template._projectedViews;if(o)for(let e=0;e<o.length;e++){const t=o[e];As(t,0,t.def.nodes.length-1,r,i)}}(t.childMatchedQueries&r.filterId)!==r.filterId&&(s+=t.childCount)}return i}function Rs(e,t,n){if(null!=n)switch(n){case 1:return cn(e,t.nodeIndex).renderElement;case 0:return new It(cn(e,t.nodeIndex).renderElement);case 2:return cn(e,t.nodeIndex).template;case 3:return cn(e,t.nodeIndex).viewContainer;case 4:return hn(e,t.nodeIndex).instance}}function Ps(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function Ns(e,t,n){const r=Ln(e,t,n);r&&qn(e,n.ngContent.index,1,r,null,void 0)}function Ms(e,t){return Vs(128,e,Q(t+1))}function Fs(e,t){return Vs(32,e,Q(t))}function Ls(e,t){const n=Object.keys(t),r=n.length,i=[];for(let s=0;s<r;s++)i.push(n[s]);return Vs(64,e,i)}function Vs(e,t,n){const r=[];for(let i=0;i<n.length;i++){const e=n[i];r.push({flags:8,name:e,ns:null,nonMinifiedName:e,securityContext:null,suffix:null})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:Qn(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Us(e,t){return{value:void 0}}function zs(e,t,n){const r=[];for(let i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function $s(e,t,n){let r;const i=e.renderer;r=i.createText(n.text.prefix);const s=Ln(e,t,n);return s&&i.appendChild(s,r),{renderText:r}}function qs(e,t){return(null!=e?e.toString():"")+t.suffix}function Hs(e,t,n,r){let i=0,s=0,o=0,a=0,l=0,u=null,c=null,h=!1,d=!1,p=null;for(let f=0;f<t.length;f++){const e=t[f];if(e.nodeIndex=f,e.parent=u,e.bindingIndex=i,e.outputIndex=s,e.renderParent=c,o|=e.flags,l|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=u?u.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,h=!1,d=!1,e.element.template&&(l|=e.element.template.nodeMatchedQueries)}if(Bs(u,e,t.length),i+=e.bindings.length,s+=e.outputs.length,!c&&3&e.flags&&(p=e),20224&e.flags){h||(h=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);const t=!!(32768&e.flags);8192&e.flags&&!t?(d||(d=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[bn(e.provider.token)]=e):u.element.publicProviders[bn(e.provider.token)]=e,t&&(u.element.componentProvider=e)}if(u?(u.childFlags|=e.flags,u.directChildFlags|=e.flags,u.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(u.childMatchedQueries|=e.element.template.nodeMatchedQueries)):a|=e.flags,e.childCount>0)u=e,Ws(e)||(c=e);else for(;u&&f===u.nodeIndex+u.childCount;){const e=u.parent;e&&(e.childFlags|=u.childFlags,e.childMatchedQueries|=u.childMatchedQueries),u=e,c=u&&Ws(u)?u.renderParent:u}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||gn,updateRenderer:r||gn,handleEvent:(e,n,r,i)=>t[n].element.handleEvent(e,r,i),bindingCount:i,outputCount:s,lastRenderRootNode:p}}function Ws(e){return!!(1&e.flags)&&null===e.element.name}function Bs(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&!(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||!(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;
1if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function Ks(e,t,n,r){const i=Gs(e.root,e.renderer,e,t,n);return Ys(i,e.component,r),Js(i),i}function Qs(e,t,n){const r=Gs(e,e.renderer,null,null,t);return Ys(r,n,n),Js(r),r}function Zs(e,t,n,r){const i=t.element.componentRendererType;let s;return s=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,Gs(e.root,s,e,t.element.componentProvider,n)}function Gs(e,t,n,r,i){const s=new Array(i.nodes.length),o=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:s,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:o,initIndex:-1}}function Ys(e,t,n){e.component=t,e.context=n}function Js(e){let t;Rn(e)&&(t=cn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let i=0;i<n.nodes.length;i++){const s=n.nodes[i];let o;switch(fn.setCurrentNode(e,i),201347067&s.flags){case 1:const n=Os(e,t,s);let a;if(33554432&s.flags){const t=Un(s.element.componentView);a=fn.createComponentView(e,s,t,n)}ks(e,a,s,n),o={renderElement:n,componentView:a,viewContainer:null,template:s.element.template?br(e,s):void 0},16777216&s.flags&&(o.viewContainer=pr(e,s,o));break;case 2:o=$s(e,t,s);break;case 512:case 1024:case 2048:case 256:o=r[i],o||4096&s.flags||(o={instance:Nr(e,s)});break;case 16:o={instance:Mr(e,s)};break;case 16384:o=r[i],o||(o={instance:Fr(e,s)}),32768&s.flags&&Ys(cn(e,s.parent.nodeIndex).componentView,o.instance,o.instance);break;case 32:case 64:case 128:o=Us();break;case 67108864:case 134217728:o=Is();break;case 8:Ns(e,t,s),o=void 0}r[i]=o}ao(e,oo.CreateViewNodes),ho(e,201326592,268435456,0)}function Xs(e){no(e),fn.updateDirectives(e,1),lo(e,oo.CheckNoChanges),fn.updateRenderer(e,1),ao(e,oo.CheckNoChanges),e.state&=-97}function eo(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,an(e,0,256),no(e),fn.updateDirectives(e,0),lo(e,oo.CheckAndUpdate),ho(e,67108864,536870912,0);let t=an(e,256,512);Wr(e,2097152|(t?1048576:0)),fn.updateRenderer(e,0),ao(e,oo.CheckAndUpdate),ho(e,134217728,536870912,0),t=an(e,512,768),Wr(e,8388608|(t?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,an(e,768,1024)}function to(e,t,n,r,i,s,o,a,l,u,c,h,d){return 0===n?function(e,t,n,r,i,s,o,a,l,u,c,h){switch(201347067&t.flags){case 1:return function(e,t,n,r,i,s,o,a,l,u,c,h){const d=t.bindings.length;let p=!1;return d>0&&xs(e,t,0,n)&&(p=!0),d>1&&xs(e,t,1,r)&&(p=!0),d>2&&xs(e,t,2,i)&&(p=!0),d>3&&xs(e,t,3,s)&&(p=!0),d>4&&xs(e,t,4,o)&&(p=!0),d>5&&xs(e,t,5,a)&&(p=!0),d>6&&xs(e,t,6,l)&&(p=!0),d>7&&xs(e,t,7,u)&&(p=!0),d>8&&xs(e,t,8,c)&&(p=!0),d>9&&xs(e,t,9,h)&&(p=!0),p}(e,t,n,r,i,s,o,a,l,u,c,h);case 2:return function(e,t,n,r,i,s,o,a,l,u,c,h){let d=!1;const p=t.bindings,f=p.length;if(f>0&&On(e,t,0,n)&&(d=!0),f>1&&On(e,t,1,r)&&(d=!0),f>2&&On(e,t,2,i)&&(d=!0),f>3&&On(e,t,3,s)&&(d=!0),f>4&&On(e,t,4,o)&&(d=!0),f>5&&On(e,t,5,a)&&(d=!0),f>6&&On(e,t,6,l)&&(d=!0),f>7&&On(e,t,7,u)&&(d=!0),f>8&&On(e,t,8,c)&&(d=!0),f>9&&On(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;f>0&&(d+=qs(n,p[0])),f>1&&(d+=qs(r,p[1])),f>2&&(d+=qs(i,p[2])),f>3&&(d+=qs(s,p[3])),f>4&&(d+=qs(o,p[4])),f>5&&(d+=qs(a,p[5])),f>6&&(d+=qs(l,p[6])),f>7&&(d+=qs(u,p[7])),f>8&&(d+=qs(c,p[8])),f>9&&(d+=qs(h,p[9]));const g=un(e,t.nodeIndex).renderText;e.renderer.setValue(g,d)}return d}(e,t,n,r,i,s,o,a,l,u,c,h);case 16384:return function(e,t,n,r,i,s,o,a,l,u,c,h){const d=hn(e,t.nodeIndex),p=d.instance;let f,g=!1;const m=t.bindings.length;return m>0&&Sn(e,t,0,n)&&(g=!0,f=Hr(e,d,t,0,n,f)),m>1&&Sn(e,t,1,r)&&(g=!0,f=Hr(e,d,t,1,r,f)),m>2&&Sn(e,t,2,i)&&(g=!0,f=Hr(e,d,t,2,i,f)),m>3&&Sn(e,t,3,s)&&(g=!0,f=Hr(e,d,t,3,s,f)),m>4&&Sn(e,t,4,o)&&(g=!0,f=Hr(e,d,t,4,o,f)),m>5&&Sn(e,t,5,a)&&(g=!0,f=Hr(e,d,t,5,a,f)),m>6&&Sn(e,t,6,l)&&(g=!0,f=Hr(e,d,t,6,l,f)),m>7&&Sn(e,t,7,u)&&(g=!0,f=Hr(e,d,t,7,u,f)),m>8&&Sn(e,t,8,c)&&(g=!0,f=Hr(e,d,t,8,c,f)),m>9&&Sn(e,t,9,h)&&(g=!0,f=Hr(e,d,t,9,h,f)),f&&p.ngOnChanges(f),65536&t.flags&&ln(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),g}(e,t,n,r,i,s,o,a,l,u,c,h);case 32:case 64:case 128:return function(e,t,n,r,i,s,o,a,l,u,c,h){const d=t.bindings;let p=!1;const f=d.length;if(f>0&&On(e,t,0,n)&&(p=!0),f>1&&On(e,t,1,r)&&(p=!0),f>2&&On(e,t,2,i)&&(p=!0),f>3&&On(e,t,3,s)&&(p=!0),f>4&&On(e,t,4,o)&&(p=!0),f>
vendor: 4,385 bytes, line 1
15&&On(e,t,5,a)&&(p=!0),f>6&&On(e,t,6,l)&&(p=!0),f>7&&On(e,t,7,u)&&(p=!0),f>8&&On(e,t,8,c)&&(p=!0),f>9&&On(e,t,9,h)&&(p=!0),p){const p=dn(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=[],f>0&&g.push(n),f>1&&g.push(r),f>2&&g.push(i),f>3&&g.push(s),f>4&&g.push(o),f>5&&g.push(a),f>6&&g.push(l),f>7&&g.push(u),f>8&&g.push(c),f>9&&g.push(h);break;case 64:g={},f>0&&(g[d[0].name]=n),f>1&&(g[d[1].name]=r),f>2&&(g[d[2].name]=i),f>3&&(g[d[3].name]=s),f>4&&(g[d[4].name]=o),f>5&&(g[d[5].name]=a),f>6&&(g[d[6].name]=l),f>7&&(g[d[7].name]=u),f>8&&(g[d[8].name]=c),f>9&&(g[d[9].name]=h);break;case 128:const e=n;switch(f){case 1:g=e.transform(n);break;case 2:g=e.transform(r);break;case 3:g=e.transform(r,i);break;case 4:g=e.transform(r,i,s);break;case 5:g=e.transform(r,i,s,o);break;case 6:g=e.transform(r,i,s,o,a);break;case 7:g=e.transform(r,i,s,o,a,l);break;case 8:g=e.transform(r,i,s,o,a,l,u);break;case 9:g=e.transform(r,i,s,o,a,l,u,c);break;case 10:g=e.transform(r,i,s,o,a,l,u,c,h)}}p.value=g}return p}(e,t,n,r,i,s,o,a,l,u,c,h);default:throw"unreachable"}}(e,t,r,i,s,o,a,l,u,c,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let i=0;i<n.length;i++)xs(e,t,i,n[i])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){const r=t.bindings;let i=!1;for(let s=0;s<n.length;s++)On(e,t,s,n[s])&&(i=!0);if(i){let i="";for(let e=0;e<n.length;e++)i+=qs(n[e],r[e]);i=t.text.prefix+i;const s=un(e,t.nodeIndex).renderText;e.renderer.setValue(s,i)}return i}(e,t,n);case 16384:return function(e,t,n){const r=hn(e,t.nodeIndex),i=r.instance;let s,o=!1;for(let a=0;a<n.length;a++)Sn(e,t,a,n[a])&&(o=!0,s=Hr(e,r,t,a,n[a],s));return s&&i.ngOnChanges(s),65536&t.flags&&ln(e,256,t.nodeIndex)&&i.ngOnInit(),262144&t.flags&&i.ngDoCheck(),o}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const r=t.bindings;let i=!1;for(let s=0;s<n.length;s++)On(e,t,s,n[s])&&(i=!0);if(i){const i=dn(e,t.nodeIndex);let s;switch(201347067&t.flags){case 32:s=n;break;case 64:s={};for(let i=0;i<n.length;i++)s[r[i].name]=n[i];break;case 128:const e=n[0],t=n.slice(1);s=e.transform(...t)}i.value=s}return i}(e,t,n);default:throw"unreachable"}}(e,t,r)}function no(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const r=t.nodes[n];if(4&r.flags){const t=cn(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const r=t[n];r.state|=32,xn(r,e)}}else 4&r.childFlags||(n+=r.childCount)}}function ro(e,t,n,r,i,s,o,a,l,u,c,h,d){return 0===n?function(e,t,n,r,i,s,o,a,l,u,c,h){const d=t.bindings.length;d>0&&kn(e,t,0,n),d>1&&kn(e,t,1,r),d>2&&kn(e,t,2,i),d>3&&kn(e,t,3,s),d>4&&kn(e,t,4,o),d>5&&kn(e,t,5,a),d>6&&kn(e,t,6,l),d>7&&kn(e,t,7,u),d>8&&kn(e,t,8,c),d>9&&kn(e,t,9,h)}(e,t,r,i,s,o,a,l,u,c,h,d):function(e,t,n){for(let r=0;r<n.length;r++)kn(e,t,r,n[r])}(e,t,r),!1}function io(e,t){if(pn(e,t.nodeIndex).dirty)throw rn(fn.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,!!(1&e.state))}function so(e){if(!(128&e.state)){if(lo(e,oo.Destroy),ao(e,oo.Destroy),Wr(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(!(16&e.state))return;const t=In(e);if(t){const n=t.template._projectedViews;n&&(K(n,n.indexOf(e)),fn.dirtyParentQueries(e))}}(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const t=e.def.nodes[n];1&t.flags?e.renderer.destroyNode(cn(e,n).renderElement):2&t.flags?e.renderer.destroyNode(un(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&pn(e,n).destroy()}}(e),Rn(e)&&e.renderer.destroy(),e.state|=128}}var oo=function(e){return e[e.CreateViewNodes=0]="CreateViewNodes",e[e.CheckNoChanges=1]="CheckNoChanges",e[e.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate=3]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",e[e.Destroy=5]="Destroy",e}({});function ao(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];33554432&i.flags?uo(cn(e,r).componentView,t):33554432&i.childFlags||(r+=i.childCount)}}function lo(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];if(16777216&i.flags){const n=cn(e,r).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)uo(n[e],t)}else 16777216&i.childFlags||(r+=i.childCount)}}function uo(e,t){const n=e.state;
1switch(t){case oo.CheckNoChanges:128&n||(12&~n?64&n&&co(e,oo.CheckNoChangesProjectedViews):Xs(e));break;case oo.CheckNoChangesProjectedViews:128&n||(32&n?Xs(e):64&n&&co(e,t));break;case oo.CheckAndUpdate:128&n||(12&~n?64&n&&co(e,oo.CheckAndUpdateProjectedViews):eo(e));break;case oo.CheckAndUpdateProjectedViews:128&n||(32&n?eo(e):64&n&&co(e,t));break;case oo.Destroy:so(e);break;case oo.CreateViewNodes:Js(e)}}function co(e,t){lo(e,t),ao(e,t)}function ho(e,t,n,r){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const i=e.def.nodes.length;for(let s=0;s<i;s++){const i=e.def.nodes[s];if(i.flags&t&&i.flags&n)switch(fn.setCurrentNode(e,i.nodeIndex),r){case 0:Ds(e,i);break;case 1:io(e,i)}i.childFlags&t&&i.childFlags&n||(s+=i.childCount)}}let po=!1;function fo(e,t,n,r,i,s){const o=i.injector.get(Dt);return Qs(mo(e,i,o,t,n),r,s)}function go(e,t,n,r,i,s){const o=i.injector.get(Dt),a=mo(e,i,new Qo(o),t,n),l=Eo(r);return Bo(Ao.create,Qs,null,[a,l,s])}function mo(e,t,n,r,i){const s=t.injector.get(Nt),o=t.injector.get(re),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:i,sanitizer:s,rendererFactory:n,renderer:a,errorHandler:o}}function bo(e,t,n,r){const i=Eo(n);return Bo(Ao.create,Ks,null,[e,t,i,r])}function yo(e,t,n,r){return n=Co.get(t.element.componentProvider.provider.token)||Eo(n),Bo(Ao.create,Zs,null,[e,t,n,r])}function _o(e,t,n,r){const i=function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===vo.size||(e.providers.forEach(e=>{const r=vo.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{wo.forEach((r,i)=>{m(i).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})})),{hasOverrides:t,hasDeprecatedOverrides:n}}(e);return t?(function(e){for(let t=0;t<e.providers.length;t++){const r=e.providers[t];n&&(r.flags|=4096);const i=vo.get(r.token);i&&(r.flags=-3841&r.flags|i.flags,r.deps=Fn(i.deps),r.value=i.value)}if(wo.size>0){let t=new Set(e.modules);wo.forEach((r,i)=>{if(t.has(m(i).providedIn)){let t={token:i,flags:r.flags|(n?4096:0),deps:Fn(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[bn(i)]=t}})}}(e=e.factory(()=>gn)),e):e}(r);return Cr(e,t,n,i)}const vo=new Map,wo=new Map,Co=new Map;function So(e){let t;vo.set(e.token,e),"function"==typeof e.token&&(t=m(e.token))&&"function"==typeof t.providedIn&&wo.set(e.token,e)}function Oo(e,t){const n=Un(t.viewDefFactory),r=Un(n.nodes[0].element.componentView);Co.set(e,r)}
vendor: 4,397 bytes, line 1
1function ko(){vo.clear(),wo.clear(),Co.clear()}function Eo(e){if(0===vo.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;r<e.nodes.length;r++){const i=e.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&vo.has(i.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>gn);for(let r=0;r<t.length;r++)n(e,t[r]);return e;function n(e,t){for(let n=t+1;n<e.nodes.length;n++){const t=e.nodes[n];if(1&t.flags)return;if(3840&t.flags){const e=t.provider,n=vo.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=Fn(n.deps),e.value=n.value)}}}}function xo(e,t,n,r,i,s,o,a,l,u,c,h,d){const p=e.def.nodes[t];return to(e,p,n,r,i,s,o,a,l,u,c,h,d),224&p.flags?dn(e,t).value:void 0}function To(e,t,n,r,i,s,o,a,l,u,c,h,d){const p=e.def.nodes[t];return ro(e,p,n,r,i,s,o,a,l,u,c,h,d),224&p.flags?dn(e,t).value:void 0}function Io(e){return Bo(Ao.detectChanges,eo,null,[e])}function jo(e){return Bo(Ao.checkNoChanges,Xs,null,[e])}function Do(e){return Bo(Ao.destroy,so,null,[e])}var Ao=function(e){return e[e.create=0]="create",e[e.detectChanges=1]="detectChanges",e[e.checkNoChanges=2]="checkNoChanges",e[e.destroy=3]="destroy",e[e.handleEvent=4]="handleEvent",e}({});let Ro,Po,No;function Mo(e,t){Po=e,No=t}function Fo(e,t,n,r){return Mo(e,t),Bo(Ao.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function Lo(e,t){if(128&e.state)throw on(Ao[Ro]);return Mo(e,$o(e,0)),e.def.updateDirectives(function(e,n,r,...i){const s=e.def.nodes[n];return 0===t?Uo(e,s,r,i):zo(e,s,r,i),16384&s.flags&&Mo(e,$o(e,n)),224&s.flags?dn(e,s.nodeIndex).value:void 0},e)}function Vo(e,t){if(128&e.state)throw on(Ao[Ro]);return Mo(e,qo(e,0)),e.def.updateRenderer(function(e,n,r,...i){const s=e.def.nodes[n];return 0===t?Uo(e,s,r,i):zo(e,s,r,i),3&s.flags&&Mo(e,qo(e,n)),224&s.flags?dn(e,s.nodeIndex).value:void 0},e)}function Uo(e,t,n,r){if(to(e,t,n,...r)){const i=1===n?r[0]:r;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const r=t.bindings[e],s=i[e];8&r.flags&&(n[Ke(r.nonMinifiedName)]=Ze(s))}const r=t.parent,s=cn(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(s,t,r):e.renderer.removeAttribute(s,t)}else e.renderer.setValue(s,`bindings=${JSON.stringify(n,null,2)}`)}}}function zo(e,t,n,r){ro(e,t,n,...r)}function $o(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(16384&t.flags&&t.bindings&&t.bindings.length)return n}return null}function qo(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(3&t.flags&&t.bindings&&t.bindings.length)return n}return null}class Ho{constructor(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];let n=this.nodeDef,r=e;for(;n&&!(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=jn(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return cn(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return _r(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const e=[];if(this.elDef)for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}get references(){const e={};if(this.elDef){Wo(this.elView,this.elDef,e);for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&Wo(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!Rn(e);)e=e.parent;return e.parent?cn(e.parent,jn(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?Dn(this.view,this.nodeDef):Dn(this.elView,this.elDef)}logError(e,...t){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const i=function(e,t){let n=-1;for(let r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(n,r);let s=-1;n.factory(()=>(s++,s===i?e.error.bind(e,...t):gn)),s<i&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function Wo(e,t,n){for(let r in t.references)n[r]=Rs(e,t,t.references[r])}function Bo(e,t,n,r){const i=Ro,s=Po,o=No;try{Ro=e;const a=t.apply(n,r);return Po=s,No=o,Ro=i,a}catch(u){if(ee(u)||!Po)throw u;
1throw a=u,l=Ko(),a instanceof Error||(a=new Error(a.toString())),sn(a,l),a}var a,l}function Ko(){return Po?new Ho(Po,No):null}class Qo{constructor(e){this.delegate=e}createRenderer(e,t){return new Zo(this.delegate.createRenderer(e,t))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class Zo{constructor(e){this.delegate=e,this.debugContextFactory=Ko,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){const t=ps(e);!function(e){hs.delete(e.nativeNode)}(t),t instanceof as&&(t.listeners.length=0),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){const t=new ls(n,null,r);t.name=e,gs(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&gs(new as(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&gs(new as(t,null,n)),t}appendChild(e,t){const n=ps(e),r=ps(t);n&&r&&n instanceof ls&&n.addChild(r),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const r=ps(e),i=ps(t),s=ps(n);r&&i&&r instanceof ls&&r.insertBefore(s,i),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=ps(e),r=ps(t);n&&r&&n instanceof ls&&n.removeChild(r),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),r=Ko();return r&&gs(new ls(n,null,r)),n}setAttribute(e,t,n,r){const i=ps(e);i&&i instanceof ls&&(i.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){const r=ps(e);r&&r instanceof ls&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=ps(e);n&&n instanceof ls&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=ps(e);n&&n instanceof ls&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,r){const i=ps(e);i&&i instanceof ls&&(i.styles[t]=n),this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){const r=ps(e);r&&r instanceof ls&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const r=ps(e);r&&r instanceof ls&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const r=ps(e);r&&r.listeners.push(new os(t,n))}return this.delegate.listen(e,t,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setValue(e,t){return this.delegate.setValue(e,t)}}function Go(e,t,n){return new Yo(e,t,n)}class Yo extends H{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){!function(){if(po)return;po=!0;const e=ve()?{setCurrentNode:Mo,createRootView:go,createEmbeddedView:bo,createComponentView:yo,createNgModuleRef:_o,overrideProvider:So,overrideComponentView:Oo,clearOverrides:ko,checkAndUpdateView:Io,checkNoChangesView:jo,destroyView:Do,createDebugContext:(e,t)=>
1new Ho(e,t),handleEvent:Fo,updateDirectives:Lo,updateRenderer:Vo}:{setCurrentNode:()=>{},createRootView:fo,createEmbeddedView:Ks,createComponentView:Zs,createNgModuleRef:Cr,overrideProvider:gn,overrideComponentView:gn,clearOverrides:gn,checkAndUpdateView:eo,checkNoChangesView:Xs,destroyView:so,createDebugContext:(e,t)=>new Ho(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?xo:To,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?xo:To,e)};fn.setCurrentNode=e.setCurrentNode,fn.createRootView=e.createRootView,fn.createEmbeddedView=e.createEmbeddedView,fn.createComponentView=e.createComponentView,fn.createNgModuleRef=e.createNgModuleRef,fn.overrideProvider=e.overrideProvider,fn.overrideComponentView=e.overrideComponentView,fn.clearOverrides=e.clearOverrides,fn.checkAndUpdateView=e.checkAndUpdateView,fn.checkNoChangesView=e.checkNoChangesView,fn.destroyView=e.destroyView,fn.resolveDep=$r,fn.createDebugContext=e.createDebugContext,fn.handleEvent=e.handleEvent,fn.updateDirectives=e.updateDirectives,fn.updateRenderer=e.updateRenderer,fn.dirtyParentQueries=js}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,scope:e.scope,providers:t,modules:n,providersByKey:r}}(Un(this._ngModuleDefFactory));return fn.createNgModuleRef(this.moduleType,e||et.NULL,this._bootstrapComponents,t)}}},"8YKC":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("AytR"),i=n("8Y7J"),s=n("IheW");let o=(()=>{class e{constructor(e){this.http=e,this.baseUrl=r.a.env.apiUrl}uploadtokent(e){const t=JSON.stringify({tokenfire:e});return this.http.post(this.baseUrl+"stocksignal.php/uploadtokenfire",t)}}return e.\u0275prov=i.ac({factory:function(){return new e(i.bc(s.c))},token:e,providedIn:"root"}),e})()},"9AJC":function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"c",function(){return d}),n.d(t,"i",function(){return _}),n.d(t,"b",function(){return q}),n.d(t,"e",function(){return te}),n.d(t,"k",function(){return se}),n.d(t,"f",function(){return oe}),n.d(t,"l",function(){return xe}),n.d(t,"o",function(){return Pe}),n.d(t,"g",function(){return Ne}),n.d(t,"m",function(){return Ve}),n.d(t,"h",function(){return Ue}),n.d(t,"n",function(){return He}),n.d(t,"p",function(){return Qe}),n.d(t,"q",function(){return tt}),n.d(t,"d",function(){return nt}),n.d(t,"j",function(){return ot}),n.d(t,"r",function(){return ct}),n.d(t,"s",function(){return ft});var r=n("8Y7J"),i=n("G0yt"),s=n("SVse"),o=n("s7LF"),a=r.wb({encapsulation:2,styles:["ngb-alert{display:block}"],data:{}});function l(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.closeHandler()&&r),r},null,null)),(e()(),r.yb(1,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),r.Wb(-1,null,["\xd7"]))],null,null)}function u(e){return r.Zb(2,[r.Lb(null,0),(e()(),r.hb(16777216,null,null,1,null,l)),r.xb(2,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,2,0,t.component.dismissible)},null)}function c(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"ngb-alert",[["class","alert"],["role","alert"]],[[2,"alert-dismissible",null]],null,null,u,a)),r.xb(1,638976,null,0,i.d,[i.e,r.E,r.l],null,null)],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,r.Mb(t,1).dismissible)})}var h=r.ub("ngb-alert",i.d,c,{dismissible:"dismissible",type:"type"},{close:"close"},["*"]),d=r.wb({encapsulation:2,styles:[],data:{}});function p(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,0,"li",[],[[8,"id",0],[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.select(e.context.$implicit.id,i.NgbSlideEventSource.INDICATOR)&&r),r},null,null))],null,function(e,t){e(t,0,0,t.context.$implicit.id,t.context.$implicit.id===t.component.activeId)})}function f(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,2,"ol",[["class","carousel-indicators"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,p)),r.xb(2,278528,null,0,s.m,[r.Q,r.M,r.s],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.slides)},null)}function g(e){return r.Zb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function m(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,2,"div",[["class","carousel-item"]],[[2,"active",null]],null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,g)),r.xb(2,540672,null,0,s.r,[r.Q],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null)],function(e,t){e(t,2,0,t.context.$implicit.tplRef)},function(e,t){e(t,0,0,t.context.$implicit.id===t.component.activeId)})}function b(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,3,"a",[["class","carousel-control-prev"],["role","button"]],null,[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.prev(i.NgbSlideEventSource.ARROW_LEFT)&&r),r}
1,null,null)),(e()(),r.yb(1,0,null,null,0,"span",[["aria-hidden","true"],["class","carousel-control-prev-icon"]],null,null,null,null,null)),(e()(),r.yb(2,0,null,null,1,"span",[["class","sr-only"]],null,null,null,null,null)),(e()(),r.Wb(-1,null,["Previous"]))],null,null)}function y(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,3,"a",[["class","carousel-control-next"],["role","button"]],null,[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.next(i.NgbSlideEventSource.ARROW_RIGHT)&&r),r},null,null)),(e()(),r.yb(1,0,null,null,0,"span",[["aria-hidden","true"],["class","carousel-control-next-icon"]],null,null,null,null,null)),(e()(),r.yb(2,0,null,null,1,"span",[["class","sr-only"]],null,null,null,null,null)),(e()(),r.Wb(-1,null,["Next"]))],null,null)}function _(e){return r.Zb(2,[(e()(),r.hb(16777216,null,null,1,null,f)),r.xb(1,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.yb(2,0,null,null,2,"div",[["class","carousel-inner"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,m)),r.xb(4,278528,null,0,s.m,[r.Q,r.M,r.s],{ngForOf:[0,"ngForOf"]},null),(e()(),r.hb(16777216,null,null,1,null,b)),r.xb(6,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,y)),r.xb(8,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,0,n.showNavigationIndicators),e(t,4,0,n.slides),e(t,6,0,n.showNavigationArrows),e(t,8,0,n.showNavigationArrows)},null)}var v=r.wb({encapsulation:2,styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"],data:{}});function w(e){return r.Zb(2,[(e()(),r.Wb(0,null,["",""]))],null,function(e,t){var n=t.component;e(t,0,0,n.i18n.getDayNumerals(n.date))})}var C=r.wb({encapsulation:2,styles:["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"],data:{}});function S(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"ngb-datepicker-navigation-select",[["class","ngb-dp-navigation-select"]],null,[[null,"select"]],function(e,t,n){var r=!0;return"select"===t&&(r=!1!==e.component.select.emit(n)&&r),r},A,I)),r.xb(1,8437760,null,0,i.yb,[i.r,r.E],{date:[0,"date"],disabled:[1,"disabled"],months:[2,"months"],years:[3,"years"]},{select:"select"})],function(e,t){var n=t.component;e(t,1,0,n.date,n.disabled,n.selectBoxes.months,n.selectBoxes.years)},null)}function O(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,0,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null))],null,null)}function k(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,0,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null))],null,null)}function E(e){return r.Zb(0,[(e()(),r.hb(16777216,null,null,1,null,O)),r.xb(1,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.yb(2,0,null,null,1,"div",[["class","ngb-dp-month-name"]],null,null,null,null,null)),(e()(),r.Wb(3,null,[" "," "," "])),(e()(),r.hb(16777216,null,null,1,null,k)),r.xb(5,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(0,null,null,0))],function(e,t){var n=t.component;
1e(t,1,0,t.context.index>0),e(t,5,0,t.context.index!==n.months.length-1)},function(e,t){var n=t.component;e(t,3,0,n.i18n.getMonthFullName(t.context.$implicit.number,t.context.$implicit.year),n.i18n.getYearNumerals(t.context.$implicit.year))})}function x(e){return r.Zb(0,[(e()(),r.hb(16777216,null,null,1,null,E)),r.xb(1,278528,null,0,s.m,[r.Q,r.M,r.s],{ngForOf:[0,"ngForOf"]},null),(e()(),r.hb(0,null,null,0))],function(e,t){e(t,1,0,t.component.months)},null)}function T(e){return r.Zb(2,[(e()(),r.yb(0,0,null,null,2,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null)),(e()(),r.yb(1,0,null,null,1,"button",[["aria-label","Previous month"],["class","btn btn-link ngb-dp-arrow-btn"],["title","Previous month"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onClickPrev(n)&&r),r},null,null)),(e()(),r.yb(2,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,S)),r.xb(4,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,x)),r.xb(6,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.yb(7,0,null,null,2,"div",[["class","ngb-dp-arrow right"]],null,null,null,null,null)),(e()(),r.yb(8,0,null,null,1,"button",[["aria-label","Next month"],["class","btn btn-link ngb-dp-arrow-btn"],["title","Next month"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onClickNext(n)&&r),r},null,null)),(e()(),r.yb(9,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron"]],null,null,null,null,null))],function(e,t){var n=t.component;e(t,4,0,n.showSelect),e(t,6,0,!n.showSelect)},function(e,t){var n=t.component;e(t,1,0,n.prevDisabled),e(t,8,0,n.nextDisabled)})}var I=r.wb({encapsulation:2,styles:["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.custom-select:focus{z-index:1}ngb-datepicker-navigation-select>.custom-select::-ms-value{background-color:transparent!important}"],data:{}});function j(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,3,"option",[],[[1,"aria-label",0]],null,null,null,null)),r.xb(1,147456,null,0,o.r,[r.l,r.E,[8,null]],{value:[0,"value"]},null),r.xb(2,147456,null,0,o.A,[r.l,r.E,[8,null]],{value:[0,"value"]},null),(e()(),r.Wb(3,null,["",""]))],function(e,t){e(t,1,0,t.context.$implicit),e(t,2,0,t.context.$implicit)},function(e,t){var n=t.component;e(t,0,0,n.i18n.getMonthFullName(t.context.$implicit,null==n.date?null:n.date.year)),e(t,3,0,n.i18n.getMonthShortName(t.context.$implicit,null==n.date?null:n.date.year))})}function D(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,3,"option",[],null,null,null,null,null)),r.xb(1,147456,null,0,o.r,[r.l,r.E,[8,null]],{value:[0,"value"]},null),r.xb(2,147456,null,0,o.A,[r.l,r.E,[8,null]],{value:[0,"value"]},null),(e()(),r.Wb(3,null,["",""]))],function(e,t){e(t,1,0,t.context.$implicit),e(t,2,0,t.context.$implicit)},function(e,t){e(t,3,0,t.component.i18n.getYearNumerals(t.context.$implicit))})}function A(e){return r.Zb(2,[r.Sb(402653184,1,{monthSelect:0}),r.Sb(402653184,2,{yearSelect:0}),(e()(),r.yb(2,0,[[1,0],["month",1]],null,2,"select",[["aria-label","Select month"],["class","custom-select"],["title","Select month"]],[[8,"disabled",0]],[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.changeMonth(n.target.value)&&r),r},null,null)),(e()(),r.hb(16777216,null,null,1,null,j)),r.xb(4,278528,null,0,s.m,[r.Q,r.M,r.s],{ngForOf:[0,"ngForOf"]},null),(e()(),r.yb(5,0,[[2,0],["year",1]],null,2,"select",[["aria-label","Select year"],["class","custom-select"],["title","Select year"]],[[8,"disabled",0]],[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.changeYear(n.target.value)&&r),r},null,null)),(e()(),r.hb(16777216,null,null,1,null,D)),r.xb(7,278528,null,0,s.m,[r.Q,r.M,r.s],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component;e(t,4,0,n.months),e(t,7,0,n.years)},function(e,t){var n=t.component;e(t,2,0,n.disabled),e(t,5,0,n.disabled)})}
1var R=r.wb({encapsulation:2,styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"],data:{}});function P(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"div",[["class","btn-light"],["ngbDatepickerDayView",""]],[[2,"bg-primary",null],[2,"text-white",null],[2,"text-muted",null],[2,"outside",null],[2,"active",null]],null,null,w,v)),r.xb(1,49152,null,0,i.wb,[i.r],{currentMonth:[0,"currentMonth"],date:[1,"date"],disabled:[2,"disabled"],focused:[3,"focused"],selected:[4,"selected"]},null)],function(e,t){e(t,1,0,t.context.currentMonth,t.context.date,t.context.disabled,t.context.focused,t.context.selected)},function(e,t){e(t,0,0,r.Mb(t,1).selected,r.Mb(t,1).selected,r.Mb(t,1).isMuted(),r.Mb(t,1).isMuted(),r.Mb(t,1).focused)})}function N(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"div",[["class","ngb-dp-month-name"]],null,null,null,null,null)),(e()(),r.Wb(1,null,[" "," "," "]))],null,function(e,t){var n=t.component;e(t,1,0,n.i18n.getMonthFullName(t.parent.context.$implicit.number,t.parent.context.$implicit.year),n.i18n.getYearNumerals(t.parent.context.$implicit.year))})}function M(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,4,"div",[["class","ngb-dp-month"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,N)),r.xb(2,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.yb(3,0,null,null,1,"ngb-datepicker-month",[["role","grid"]],null,[[null,"keydown"]],function(e,t,n){var i=!0;return"keydown"===t&&(i=!1!==r.Mb(e,4).onKeyDown(n)&&i),i},ee,H)),r.xb(4,49152,null,0,i.u,[i.r,i.p,i.s,i.Cb],{month:[0,"month"]},null)],function(e,t){var n=t.component;e(t,2,0,"none"===n.navigation||n.displayMonths>1&&"select"===n.navigation),e(t,4,0,t.context.$implicit.firstDate)},null)}function F(e){return r.Zb(0,[(e()(),r.hb(16777216,null,null,1,null,M)),r.xb(1,278528,null,0,s.m,[r.Q,r.M,r.s],{ngForOf:[0,"ngForOf"]},null),(e()(),r.hb(0,null,null,0))],function(e,t){e(t,1,0,t.component.model.months)},null)}function L(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"ngb-datepicker-navigation",[],null,[[null,"navigate"],[null,"select"]],function(e,t,n){var r=!0,i=e.component;return"navigate"===t&&(r=!1!==i.onNavigateEvent(n)&&r),"select"===t&&(r=!1!==i.onNavigateDateSelect(n)&&r),r},T,C)),r.xb(1,49152,null,0,i.xb,[i.r],{date:[0,"date"],disabled:[1,"disabled"],months:[2,"months"],showSelect:[3,"showSelect"],prevDisabled:[4,"prevDisabled"],nextDisabled:[5,"nextDisabled"],selectBoxes:[6,"selectBoxes"]},{navigate:"navigate",select:"select"})],function(e,t){var n=t.component;e(t,1,0,n.model.firstDate,n.model.disabled,n.model.months,"select"===n.model.navigation,n.model.prevDisabled,n.model.nextDisabled,n.model.selectBoxes)},null)}function V(e){return r.Zb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function U(e){return r.Zb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function z(e){return r.Zb(2,[r.Sb(402653184,1,{_defaultDayTemplate:0}),r.Sb(402653184,2,{_contentEl:0}),(e()(),r.hb(0,[[1,2],["defaultDayTemplate",2]],null,0,null,P)),(e()(),r.hb(0,[["defaultContentTemplate",2]],null,0,null,F)),(e()(),r.yb(4,0,null,null,2,"div",[["class","ngb-dp-header"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,L)),r.xb(6,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.yb(7,0,[[2,0],["content",1]],null,2,"div",[["class","ngb-dp-content"]],[[2,"ngb-dp-months",null]],null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,V)),r.xb(9,540672,null,0,s.r,[r.Q],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null),(e()(),r.hb(16777216,null,null,1,null,U)),r.xb(11,540672,null,0,s.r,[r.Q],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null)],function(e,t){var n=t.component;e(t,6,0,"none"!==n.navigation),e(t,9,0,(null==n.contentTemplate?null:n.contentTemplate.templateRef)||r.Mb(t,3)),e(t,11,0,n.footerTemplate)},function(e,t){e(t,7,0,!t.component.contentTemplate)})}function $(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,4,"ngb-datepicker",[],null,
1null,null,z,R)),r.Rb(5120,null,o.l,function(e){return[e]},[i.p]),r.Rb(512,null,i.Cb,i.Cb,[i.i,i.r]),r.xb(3,4964352,null,1,i.p,[i.Cb,i.i,i.r,i.q,r.h,r.l,i.o,r.z],null,null),r.Sb(335544320,1,{contentTemplate:0})],function(e,t){e(t,3,0)},null)}var q=r.ub("ngb-datepicker",i.p,$,{dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},{navigate:"navigate",dateSelect:"dateSelect",select:"select"},[]),H=r.wb({encapsulation:2,styles:['ngb-datepicker-month{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}'],data:{}});function W(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,0,"div",[["class","ngb-dp-weekday ngb-dp-showweek"]],null,null,null,null,null))],null,null)}function B(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"div",[["class","ngb-dp-weekday small"],["role","columnheader"]],null,null,null,null,null)),(e()(),r.Wb(1,null,[" "," "]))],null,function(e,t){e(t,1,0,t.component.i18n.getWeekdayShortName(t.context.$implicit))})}function K(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,4,"div",[["class","ngb-dp-week ngb-dp-weekdays"],["role","row"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,W)),r.xb(2,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,B)),r.xb(4,278528,null,0,s.m,[r.Q,r.M,r.s],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component;e(t,2,0,n.datepicker.showWeekNumbers),e(t,4,0,n.viewModel.weekdays)},null)}function Q(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"div",[["class","ngb-dp-week-number small text-muted"]],null,null,null,null,null)),(e()(),r.Wb(1,null,["",""]))],null,function(e,t){e(t,1,0,t.component.i18n.getWeekNumerals(t.parent.parent.context.$implicit.number))})}function Z(e){return r.Zb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function G(e){return r.Zb(0,[(e()(),r.hb(16777216,null,null,1,null,Z)),r.xb(1,540672,null,0,s.r,[r.Q],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),(e()(),r.hb(0,null,null,0))],function(e,t){e(t,1,0,t.parent.context.$implicit.context,t.component.datepicker.dayTemplate)},null)}function Y(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,2,"div",[["class","ngb-dp-day"],["role","gridcell"]],[[2,"disabled",null],[8,"tabIndex",0],[2,"hidden",null],[2,"ngb-dp-today",null],[1,"aria-label",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(e.component.doSelect(e.context.$implicit),r=!1!==n.preventDefault()&&r),r},null,null)),(e()(),r.hb(16777216,null,null,1,null,G)),r.xb(2,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,2,0,!t.context.$implicit.hidden)},function(e,t){e(t,0,0,t.context.$implicit.context.disabled,t.context.$implicit.tabindex,t.context.$implicit.hidden,t.context.$implicit.context.today,t.context.$implicit.ariaLabel)})}function J(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,4,"div",[["class","ngb-dp-week"],["role","row"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,Q)),r.xb(2,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,Y)),r.xb(4,278528,null,0,s.m,[r.Q,r.M,r.s],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.datepicker.showWeekNumbers),e(t,4,0,t.parent.context.$implicit.days)},null)}function X(e){return r.Zb(0,[(e()(),r.hb(16777216,null,null,1,null,J)),r.xb(1,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(0,null,null,0))],function(e,t){e(t,1,0,!t.context.$implicit.collapsed)},null)}function ee(e){return r.Zb(0,[(e()(),r.hb(16777216,null,null,1,null,K)),r.xb(1,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,X)),r.xb(3,278528,null,0,s.m,[r.Q,r.M,r.s],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component;e(t,1,0,n.datepicker.showWeekdays),e(t,3,0,n.viewModel.weeks)},null)}var te=r.wb({encapsulation:2,styles:[],data:{}});function ne(e){return r.Zb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function re(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,3,"div",[["class","tab-pane"]],[[8,"id",0],[2,"active",null],[1,"role",0],[1,"aria-labelledby",0]],null,null,null,null)),(e()(),r.hb(16777216,null,null,2,null,ne)),r.xb(2,540672,null,0,s.r,[r.Q],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Pb(3,{$implicit:0})],function(e,t){var n=e(t,3,0,t.parent.context.$implicit.active);e(t,2,0,n,(null==t.parent.context.$implicit.contentTpl?null:t.parent.context.$implicit.contentTpl.templateRef)||null)},function(e,t){var n=t.component;e(t,0,0,t.parent.context.$implicit.panelDomId,t.parent.context.$implicit.active,n.paneRole?n.paneRole:n.nav.roles?"tabpanel":void 0,t.parent.context.$implicit.domId)})}function ie(e){return r.Zb(0,[(e()(),r.hb(16777216,null,null,1,null,re)),r.xb(1,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(0,null,null,0))],function(e,t){var n=t.context.$implicit.isPanelInDom();e(t,1,0,n)},null)}function se(e){return r.Zb(0,[(e()(),r.hb(16777216,null,null,1,null,ie)),r.xb(1,278528,null,0,s.m,[r.Q,r.M,r.s],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,1,0,t.component.nav.items)},null)}var oe=r.wb({encapsulation:2,styles:[],data:{}});function ae(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),r.Wb(-1,null,["\xab\xab"]))],null,null)}function le(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),r.Wb(-1,null,["\xab"]))],null,null)}function ue(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),r.Wb(-1,null,["\xbb"]))],null,null)}function ce(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),r.Wb(-1,null,["\xbb\xbb"]))],null,null)}function he(e){return r.Zb(0,[(e()(),r.Wb(-1,null,["..."]))],null,null)}function de(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"span",[["class","sr-only"]],null,null,null,null,null)),(e()(),r.Wb(-1,null,["(current)"]))],null,null)}function pe(e){return r.Zb(0,[(e()(),r.Wb(0,null,[" "," "])),(e()(),r.hb(16777216,null,null,1,null,de)),r.xb(2,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(0,null,null,0))],function(e,t){e(t,2,0,t.context.$implicit===t.context.currentPage)},function(e,t){e(t,0,0,t.context.$implicit)})}function fe(e){return r.Zb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function ge(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,4,"li",[["class","page-item"]],[[2,"disabled",null]],null,null,null,null)),(e()(),r.yb(1,0,null,null,3,"a",[["aria-label","First"],["class","page-link"],["href",""]],[[1,"tabindex",0],[1,"aria-disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(e.component.selectPage(1),r=!1!==n.preventDefault()&&r),r}
1,null,null)),(e()(),r.hb(16777216,null,null,2,null,fe)),r.xb(3,540672,null,0,s.r,[r.Q],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Pb(4,{disabled:0,currentPage:1})],function(e,t){var n=t.component,i=e(t,4,0,n.previousDisabled(),n.page);e(t,3,0,i,(null==n.tplFirst?null:n.tplFirst.templateRef)||r.Mb(t.parent,0))},function(e,t){var n=t.component;e(t,0,0,n.previousDisabled()),e(t,1,0,n.previousDisabled()?"-1":null,n.previousDisabled()?"true":null)})}function me(e){return r.Zb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function be(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,4,"li",[["class","page-item"]],[[2,"disabled",null]],null,null,null,null)),(e()(),r.yb(1,0,null,null,3,"a",[["aria-label","Previous"],["class","page-link"],["href",""]],[[1,"tabindex",0],[1,"aria-disabled",0]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(i.selectPage(i.page-1),r=!1!==n.preventDefault()&&r),r},null,null)),(e()(),r.hb(16777216,null,null,2,null,me)),r.xb(3,540672,null,0,s.r,[r.Q],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Pb(4,{disabled:0})],function(e,t){var n=t.component,i=e(t,4,0,n.previousDisabled());e(t,3,0,i,(null==n.tplPrevious?null:n.tplPrevious.templateRef)||r.Mb(t.parent,1))},function(e,t){var n=t.component;e(t,0,0,n.previousDisabled()),e(t,1,0,n.previousDisabled()?"-1":null,n.previousDisabled()?"true":null)})}function ye(e){return r.Zb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function _e(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,3,"a",[["aria-disabled","true"],["class","page-link"],["tabindex","-1"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,2,null,ye)),r.xb(2,540672,null,0,s.r,[r.Q],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Pb(3,{disabled:0,currentPage:1})],function(e,t){var n=t.component,i=e(t,3,0,!0,n.page);e(t,2,0,i,(null==n.tplEllipsis?null:n.tplEllipsis.templateRef)||r.Mb(t.parent.parent,4))},null)}function ve(e){return r.Zb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function we(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,3,"a",[["class","page-link"],["href",""]],[[1,"tabindex",0],[1,"aria-disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(e.component.selectPage(e.parent.context.$implicit),r=!1!==n.preventDefault()&&r),r},null,null)),(e()(),r.hb(16777216,null,null,2,null,ve)),r.xb(2,540672,null,0,s.r,[r.Q],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Pb(3,{disabled:0,$implicit:1,currentPage:2})],function(e,t){var n=t.component,i=e(t,3,0,n.disabled,t.parent.context.$implicit,n.page);e(t,2,0,i,(null==n.tplNumber?null:n.tplNumber.templateRef)||r.Mb(t.parent.parent,5))},function(e,t){var n=t.component;e(t,0,0,n.disabled?"-1":null,n.disabled?"true":null)})}function Ce(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,4,"li",[["class","page-item"]],[[2,"active",null],[2,"disabled",null],[1,"aria-current",0]],null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,_e)),r.xb(2,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,we)),r.xb(4,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,2,0,n.isEllipsis(t.context.$implicit)),e(t,4,0,!n.isEllipsis(t.context.$implicit))},function(e,t){var n=t.component;e(t,0,0,t.context.$implicit===n.page,n.isEllipsis(t.context.$implicit)||n.disabled,t.context.$implicit===n.page?"page":null)})}function Se(e){return r.Zb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function Oe(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,4,"li",[["class","page-item"]],[[2,"disabled",null]],null,null,null,null)),(e()(),r.yb(1,0,null,null,3,"a",[["aria-label","Next"],["class","page-link"],["href",""]],[[1,"tabindex",0],[1,"aria-disabled",0]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(i.selectPage(i.page+1),r=!1!==n.preventDefault()&&r),r},null,null)),(e()(),r.hb(16777216,null,null,2,null,Se)),r.xb(3,540672,null,0,s.r,[r.Q],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Pb(4,{disabled:0,currentPage:1})],function(e,t){var n=t.component,i=e(t,4,0,n.nextDisabled(),n.page);e(t,3,0,i,(null==n.tplNext?null:n.tplNext.templateRef)||r.Mb(t.parent,2))},function(e,t){var n=t.component;e(t,0,0,n.nextDisabled()),e(t,1,0,n.nextDisabled()?"-1":null,n.nextDisabled()?"true":null)})}function ke(e){return r.Zb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function Ee(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,4,"li",[["class","page-item"]],[[2,"disabled",null]],null,null,null,null)),(e()(),r.yb(1,0,null,null,3,"a",[["aria-label","Last"],["class","page-link"],["href",""]],[[1,"tabindex",0],[1,"aria-disabled",0]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(i.selectPage(i.pageCount),r=!1!==n.preventDefault()&&r),r}
1,null,null)),(e()(),r.hb(16777216,null,null,2,null,ke)),r.xb(3,540672,null,0,s.r,[r.Q],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Pb(4,{disabled:0,currentPage:1})],function(e,t){var n=t.component,i=e(t,4,0,n.nextDisabled(),n.page);e(t,3,0,i,(null==n.tplLast?null:n.tplLast.templateRef)||r.Mb(t.parent,3))},function(e,t){var n=t.component;e(t,0,0,n.nextDisabled()),e(t,1,0,n.nextDisabled()?"-1":null,n.nextDisabled()?"true":null)})}function xe(e){return r.Zb(2,[(e()(),r.hb(0,[["first",2]],null,0,null,ae)),(e()(),r.hb(0,[["previous",2]],null,0,null,le)),(e()(),r.hb(0,[["next",2]],null,0,null,ue)),(e()(),r.hb(0,[["last",2]],null,0,null,ce)),(e()(),r.hb(0,[["ellipsis",2]],null,0,null,he)),(e()(),r.hb(0,[["defaultNumber",2]],null,0,null,pe)),(e()(),r.yb(6,0,null,null,10,"ul",[],[[8,"className",0]],null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,ge)),r.xb(8,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,be)),r.xb(10,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,Ce)),r.xb(12,278528,null,0,s.m,[r.Q,r.M,r.s],{ngForOf:[0,"ngForOf"]},null),(e()(),r.hb(16777216,null,null,1,null,Oe)),r.xb(14,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,Ee)),r.xb(16,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,8,0,n.boundaryLinks),e(t,10,0,n.directionLinks),e(t,12,0,n.pages),e(t,14,0,n.directionLinks),e(t,16,0,n.boundaryLinks)},function(e,t){var n=t.component;e(t,6,0,"pagination"+(n.size?" pagination-"+n.size:""))})}var Te=r.wb({encapsulation:2,styles:["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{top:auto;bottom:.7em}"],data:{}});function Ie(e){return r.Zb(0,[(e()(),r.Wb(0,null,["",""]))],null,function(e,t){e(t,0,0,t.component.title)})}function je(e){return r.Zb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function De(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,3,"h3",[["class","popover-header"]],null,null,null,null,null)),(e()(),r.hb(0,[["simpleTitle",2]],null,0,null,Ie)),(e()(),r.hb(16777216,null,null,1,null,je)),r.xb(3,540672,null,0,s.r,[r.Q],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null)],function(e,t){var n=t.component;e(t,3,0,n.context,n.isTitleTemplate()?n.title:r.Mb(t,1))},null)}function Ae(e){return r.Zb(2,[(e()(),r.yb(0,0,null,null,0,"div",[["class","arrow"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,De)),r.xb(2,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.yb(3,0,null,null,1,"div",[["class","popover-body"]],null,null,null,null,null)),r.Lb(null,0)],function(e,t){e(t,2,0,null!=t.component.title)},null)}function Re(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"ngb-popover-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,Ae,Te)),r.xb(1,49152,null,0,i.zb,[],null,null)],null,function(e,t){e(t,0,0,"popover"+(r.Mb(t,1).popoverClass?" "+r.Mb(t,1).popoverClass:""),r.Mb(t,1).id)})}var Pe=r.ub("ngb-popover-window",i.zb,Re,{title:"title",id:"id",popoverClass:"popoverClass",context:"context"},{},["*"]),Ne=r.wb({encapsulation:2,styles:[],data:{}});function Me(e){return r.Zb(0,[(e()(),r.Wb(0,null,["",""]))],null,function(e,t){e(t,0,0,100===t.context.fill?"\u2605":"\u2606")})}function Fe(e){return r.Zb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function Le(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"span",[["class","sr-only"]],null,null,null,null,null)),(e()(),r.Wb(1,null,["(",")"])),(e()(),r.yb(2,0,null,null,2,"span",[],[[4,"cursor",null]],[[null,"mouseenter"],[null,"click"]],function(e,t,n){var r=!0,i=e.component;
1return"mouseenter"===t&&(r=!1!==i.enter(e.context.index+1)&&r),"click"===t&&(r=!1!==i.handleClick(e.context.index+1)&&r),r},null,null)),(e()(),r.hb(16777216,null,null,1,null,Fe)),r.xb(4,540672,null,0,s.r,[r.Q],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null)],function(e,t){var n=t.component;e(t,4,0,n.contexts[t.context.index],n.starTemplate||n.starTemplateFromContent||r.Mb(t.parent,0))},function(e,t){var n=t.component;e(t,1,0,t.context.index<n.nextRate?"*":" "),e(t,2,0,n.readonly||n.disabled?"default":"pointer")})}function Ve(e){return r.Zb(2,[(e()(),r.hb(0,[["t",2]],null,0,null,Me)),(e()(),r.hb(16777216,null,null,1,null,Le)),r.xb(2,278528,null,0,s.m,[r.Q,r.M,r.s],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.contexts)},null)}var Ue=r.wb({encapsulation:2,styles:[".ngb-toasts{position:fixed;top:0;right:0;margin:.5em;z-index:1200}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}"],data:{}});function ze(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"strong",[["class","mr-auto"]],null,null,null,null,null)),(e()(),r.Wb(1,null,["",""]))],null,function(e,t){e(t,1,0,t.component.header)})}function $e(e){return r.Zb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function qe(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,5,"div",[["class","toast-header"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,$e)),r.xb(2,540672,null,0,s.r,[r.Q],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null),(e()(),r.yb(3,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.hide()&&r),r},null,null)),(e()(),r.yb(4,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),r.Wb(-1,null,["\xd7"]))],function(e,t){e(t,2,0,t.component.contentHeaderTpl||r.Mb(t.parent,0))},null)}function He(e){return r.Zb(0,[(e()(),r.hb(0,[["headerTpl",2]],null,0,null,ze)),(e()(),r.hb(16777216,null,null,1,null,qe)),r.xb(2,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.yb(3,0,null,null,1,"div",[["class","toast-body"]],null,null,null,null,null)),r.Lb(null,0)],function(e,t){var n=t.component;e(t,2,0,n.contentHeaderTpl||n.header)},null)}var We=r.wb({encapsulation:2,styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"],data:{}});function Be(e){return r.Zb(2,[(e()(),r.yb(0,0,null,null,0,"div",[["class","arrow"]],null,null,null,null,null)),(e()(),r.yb(1,0,null,null,1,"div",[["class","tooltip-inner"]],null,null,null,null,null)),r.Lb(null,0)],null,null)}function Ke(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"ngb-tooltip-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,Be,We)),r.xb(1,49152,null,0,i.Ab,[],null,null)],null,function(e,t){e(t,0,0,"tooltip show"+(r.Mb(t,1).tooltipClass?" "+r.Mb(t,1).tooltipClass:""),r.Mb(t,1).id)})}var Qe=r.ub("ngb-tooltip-window",i.Ab,Ke,{id:"id",tooltipClass:"tooltipClass"},{},["*"]),Ze=r.wb({encapsulation:2,styles:[],data:{}});function Ge(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"ngb-highlight",[],null,null,null,ot,nt)),r.xb(1,573440,null,0,i.B,[],{result:[0,"result"],term:[1,"term"]},null)],function(e,t){var n=t.context.formatter(t.context.result);e(t,1,0,n,t.context.term)},null)}function Ye(e){return r.Zb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function Je(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,3,"button",[["class","dropdown-item"],["role","option"],["type","button"]],[[8,"id",0],[2,"active",null]],[[null,"mouseenter"],[null,"click"]],function(e,t,n){var r=!0,i=e.component;
1return"mouseenter"===t&&(r=!1!==i.markActive(e.context.index)&&r),"click"===t&&(r=!1!==i.select(e.context.$implicit)&&r),r},null,null)),(e()(),r.hb(16777216,null,null,2,null,Ye)),r.xb(2,540672,null,0,s.r,[r.Q],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Pb(3,{result:0,term:1,formatter:2})],function(e,t){var n=t.component,i=e(t,3,0,t.context.$implicit,n.term,n.formatter);e(t,2,0,i,n.resultTemplate||r.Mb(t.parent,0))},function(e,t){var n=t.component;e(t,0,0,n.id+"-"+t.context.index,t.context.index===n.activeIdx)})}function Xe(e){return r.Zb(0,[(e()(),r.hb(0,[["rt",2]],null,0,null,Ge)),(e()(),r.hb(16777216,null,null,1,null,Je)),r.xb(2,278528,null,0,s.m,[r.Q,r.M,r.s],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.results)},null)}function et(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"ngb-typeahead-window",[["class","dropdown-menu show"],["role","listbox"]],[[8,"id",0]],[[null,"mousedown"]],function(e,t,n){var r=!0;return"mousedown"===t&&(r=!1!==n.preventDefault()&&r),r},Xe,Ze)),r.xb(1,114688,null,0,i.Bb,[],null,null)],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,r.Mb(t,1).id)})}var tt=r.ub("ngb-typeahead-window",i.Bb,et,{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate"},{selectEvent:"select",activeChangeEvent:"activeChange"},[]),nt=r.wb({encapsulation:2,styles:[".ngb-highlight{font-weight:700}"],data:{}});function rt(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(e()(),r.Wb(1,null,["",""]))],null,function(e,t){e(t,0,0,t.component.highlightClass),e(t,1,0,t.parent.context.$implicit)})}function it(e){return r.Zb(0,[(e()(),r.Wb(0,null,["",""]))],null,function(e,t){e(t,0,0,t.parent.context.$implicit)})}function st(e){return r.Zb(0,[(e()(),r.hb(16777216,null,null,1,null,rt)),r.xb(1,16384,null,0,s.n,[r.Q,r.M],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),r.hb(0,[["even",2]],null,0,null,it))],function(e,t){e(t,1,0,t.context.odd,r.Mb(t,2))},null)}function ot(e){return r.Zb(2,[(e()(),r.hb(16777216,null,null,1,null,st)),r.xb(1,278528,null,0,s.m,[r.Q,r.M,r.s],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,1,0,t.component.parts)},null)}var at=r.wb({encapsulation:2,styles:[],data:{}});function lt(e){return r.Zb(0,[],null,null)}function ut(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"ngb-modal-backdrop",[["style","z-index: 1050"]],[[8,"className",0]],null,null,lt,at)),r.xb(1,49152,null,0,i.Db,[],null,null)],null,function(e,t){e(t,0,0,"modal-backdrop fade show"+(r.Mb(t,1).backdropClass?" "+r.Mb(t,1).backdropClass:""))})}var ct=r.ub("ngb-modal-backdrop",i.Db,ut,{backdropClass:"backdropClass"},{},[]),ht=r.wb({encapsulation:2,styles:["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"],data:{}});function dt(e){return r.Zb(0,[r.Sb(402653184,1,{_dialogEl:0}),(e()(),r.yb(1,0,[[1,0],["dialog",1]],null,2,"div",[["role","document"]],[[8,"className",0]],null,null,null,null)),(e()(),r.yb(2,0,null,null,1,"div",[["class","modal-content"]],null,null,null,null,null)),r.Lb(null,0)],null,function(e,t){var n=t.component;e(t,1,0,"modal-dialog"+(n.size?" modal-"+n.size:"")+(n.centered?" modal-dialog-centered":"")+(n.scrollable?" modal-dialog-scrollable":""))})}function pt(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"ngb-modal-window",[["role","dialog"],["tabindex","-1"]],[[8,"className",0],[1,"aria-modal",0],[1,"aria-labelledby",0],[1,"aria-describedby",0]],null,null,dt,ht)),r.xb(1,4440064,null,0,i.Eb,[s.d,r.l,r.z],null,null)],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,"modal fade show d-block"+(r.Mb(t,1).windowClass?" "+r.Mb(t,1).windowClass:""),!0,r.Mb(t,1).ariaLabelledBy,r.Mb(t,1).ariaDescribedBy)})}var ft=r.ub("ngb-modal-window",i.Eb,pt,{ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass"},{dismissEvent:"dismiss"},["*"])},"9ppp":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})()},"9qWr":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("2Vo4"),i=n("AytR"),s=n("8Y7J"),o=n("IheW");let a=(()=>{class e{constructor(e){this.http=e,this.loggedInStatus=new r.a(this.hasToken())}hasToken(){const e=this.getUserInfo();return!!e&&!!e.token}isLoggedIn(){return this.hasToken()}setlogout(){localStorage.removeItem("users"),localStorage.removeItem("fnotification"),this.loggedInStatus.next(!1)}setlogin(e){localStorage.setItem("users",JSON.stringify(e)),this.loggedInStatus.next(!0)}getUserInfo(){const e=localStorage.getItem("users");return null!==e?JSON.parse(e):""}getStrUserInfo(){const e=localStorage.getItem("users");if(null===e)return JSON.stringify({username:"nududo",token:"",subdomain:""});{const t=JSON.parse(e);return JSON.stringify({username:t.username,token:t.token,subdomain:""})}}login(e){const t=JSON.stringify({users:e});return this.http.post(i.a.env.apiUrl+"auth.php/login",t)}register(e){const t=JSON.stringify({users:e});return this.http.post(i.a.env.apiUrl+"auth.php/register",t)}resetPass(e,t){const n=JSON.stringify({username:e,email:t});return this.http.post(i.a.env.apiUrl+"auth.php/resetpass",n)}logout(e){const t=JSON.stringify({users:e});return this.http.post(i.a.env.apiUrl+"auth.php/logout",t)}activeaccount(e){const t=JSON.stringify({users:e});return this.http.post(i.a.env.apiUrl+"auth.php/activeaccount",t)}}return e.\u0275prov=s.ac({factory:function(){return new e(s.bc(o.c))},token:e,providedIn:"root"}),e})()},AytR:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r={production:!0,env:{apiUrl:"https://dstockbot.com/api/v2/",apiImage:"https://dstockbot.com",baseUrl:"http://localhost:4200",domainPath:"http://localhost:4200/#/home"},pusher:{app_id:"1780545",key:"13a9f1ea32fa3943e31b",secret:"6158ae420cfc73255aa2",cluster:"ap1",APP_PUSHER_AUTH:"https://auth-pusher.dstockbot.com/pusher/auth"},firebase:{apiKey:"AIzaSyAYvs_wQmtPMW3HwIs-AMPbfA3tBvda03c",authDomain:"nodudo-2c723.firebaseapp.com",databaseURL:"https://nodudo-2c723.firebaseio.com",projectId:"nodudo-2c723",storageBucket:"nodudo-2c723.appspot.com",messagingSenderId:"214945855980",appId:"1:214945855980:web:9dd02e29b6f509b15028c9",measurementId:"G-FNH2155ZY9"}}},Beq4:function(e,t,n){"use strict";n.d(t,"a",function(){return r});class r{}},Cfvw:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n("HDdC"),i=n("SeVD"),s=n("quSY"),o=n("kJWO"),a=n("jZKg"),l=n("Lhse"),u=n("c2HN"),c=n("I55L");function h(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[o.a]}(e))return function(e,t){return new r.a(n=>{const r=new s.a;return r.add(t.schedule(()=>{const i=e[o.a]();r.add(i.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(Object(u.a)(e))return function(e,t){return new r.a(n=>{const r=new s.a;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(Object(c.a)(e))return Object(a.a)(e,t);if(function(e){return e&&"function"==typeof e[l.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new s.a;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(()=>{i=e[l.a](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=i.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(i.a)(e))}},D0XW:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return s});var r=n("3N8a");const i=new(n("IjjT").a)(r.a),s=i},DH7j:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))()},DlQD:function(e,t,n){e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,n){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e){if(e){if("string"==typeof e)return t(e,undefined);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,undefined):void 0}}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}var r=function(){var e={exports:{}};return function(e){function t(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}
1e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:t,changeDefaults:function(t){e.exports.defaults=t}}}(e),e.exports}(),i=/[&<>"']/,s=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"},u=function(e){return l[e]},c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(e){return e.replace(c,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var d=/(^|[^\[])\^/g,p=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,g={},m=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(e,t,n){var r=e.length;if(0===r)return"";for(var i=0;i<r;){var s=e.charAt(r-i-1);if(s!==t||n){if(s===t||!n)break;i++}else i++}return e.substr(0,r-i)}var v=function(e,t){if(t){if(i.test(e))return e.replace(s,u)}else if(o.test(e))return e.replace(a,u);return e},w=h,C=function(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},S=r.defaults,O=_,k=function(e,t){var n=e.replace(/\|/g,function(e,t,n){for(var r=!1,i=t;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},E=v;function x(e,t,n){var r=t.href,i=t.title?E(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:r,title:i,text:s}:{type:"image",raw:n,href:r,title:i,text:E(s)}}var T=function(){function e(e){this.options=e||S}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e,t){var n=this.rules.block.code.exec(e);if(n){var r=t[t.length-1];if(r&&"paragraph"===r.type)return{raw:n[0],text:n[0].trimRight()};var i=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:O(i,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=r.length?e.slice(r.length):e}).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:r}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=O(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:k(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var r,i=n.align.length;for(r=0;r<i;r++)n.align[r]=/^ *-+: *$/.test(n.align[r])?"right":/^ *:-+: *$/.test(n.align[r])?"center":/^ *:-+ *$/.test(n.align[r])?"left":null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=k(n.cells[r],n.header.length);return n}}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,i,s,o,a,l,u,c=t[0],h=t[2],d=h.length>1,p={type:"list",raw:c,ordered:d,start:d?+h.slice(0,-1):"",loose:!1,items:[]},f=t[0].match(this.rules.block.item),g=!1,m=f.length;i=this.rules.block.listItemStart.exec(f[0]);for(var b=0;b<m;b++){if(c=n=f[b],b!==m-1){if(s=this.rules.block.listItemStart.exec(f[b+1]),this.options.pedantic?s[1].length>i[1].length:s[1].length>i[0].length||s[1].length>3){f.splice(b,2,f[b]+"\n"+f[b+1]),b--,m--;continue}(!this.options.pedantic||this.options.smartLists?s[2][s[2].length-1]!==h[h.length-1]:d===(1===s[2].length))&&(o=f.slice(b+1).join("\n"),p.raw=p.raw.substring(0,p.raw.length-o.length),b=m-1),i=s}r=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(r-=n.length,n=n.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+r+"}","gm"),"")),a=g||/\n\n(?!\s*$)/.test(n),b!==m-1&&(g="\n"===n.charAt(n.length-1),a||(a=g)),a&&(p.loose=!0),this.options.gfm&&(u=void 0,(l=/^\[[ xX]\] /.test(n))&&(u=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,""))),p.items.push({type:"list_item",raw:c,task:l,checked:u,loose:a,text:n})}return p}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):E(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:k(t[1].replace(/^ *| *\| *$/g,"")),al
vendor: 5,711 bytes, line 1
1ign:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r,i=n.align.length;for(r=0;r<i;r++)n.align[r]=/^ *-+: *$/.test(n.align[r])?"right":/^ *:-+: *$/.test(n.align[r])?"center":/^ *:-+ *$/.test(n.align[r])?"left":null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=k(n.cells[r].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}},t.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1]}},t.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t)return{type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1]}},t.text=function(e,t){var n=this.rules.block.text.exec(e);if(n){var r=t[t.length-1];return r&&"text"===r.type?{raw:n[0],text:n[0]}:{type:"text",raw:n[0],text:n[0]}}},t.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:E(t[1])}},t.tag=function(e,t,n){var r=this.rules.inline.tag.exec(e);if(r)return!t&&/^<a /i.test(r[0])?t=!0:t&&/^<\/a>/i.test(r[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):E(r[0]):r[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var r=O(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var i=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,r=0,i=0;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&--r<0)return i;return-1}(t[2],"()");if(i>-1){var s=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,s).trim(),t[3]=""}}var o=t[2],a="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);l&&(o=l[1],a=l[3])}else a=t[3]?t[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(o=this.options.pedantic&&!/>$/.test(n)?o.slice(1):o.slice(1,-1)),x(t,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])||!r.href){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return x(n,r,n[0])}},t.strong=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.strong.start.exec(e);if(r&&(!r[1]||r[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){t=t.slice(-1*e.length);var i,s="**"===r[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(s.lastIndex=0;null!=(r=s.exec(t));)if(i=this.rules.inline.strong.middle.exec(t.slice(0,r.index+3)))return{type:"strong",raw:e.slice(0,i[0].length),text:e.slice(2,i[0].length-2)}}},t.em=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.em.start.exec(e);if(r&&(!r[1]||r[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){t=t.slice(-1*e.length);var i,s="*"===r[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(s.lastIndex=0;null!=(r=s.exec(t));)if(i=this.rules.inline.em.middle.exec(t.slice(0,r.index+2)))return{type:"em",raw:e.slice(0,i[0].length),text:e.slice(1,i[0].length-1)}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return r&&i&&(n=n.substring(1,n.length-1)),n=E(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,r,i=this.rules.inline.autolink.exec(e);if(i)return r="@"===i[2]?"mailto:"+(n=E(this.options.mangle?t(i[1]):i[1])):n=E(i[1]),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,i;if("@"===n[2])i="mailto:"+(r=E(this.options.mangle?t(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);r=E(n[0]),i="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},t.inlineText=function(e,t,n){var r,i=this.rules.inline.text.exec(e);if(i)return r=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):E(i[0]):i[0]:E(this.options.smartypants?n(i[0]):i[0]),{type:"text",raw:i[0],text:r}},e}(),I={exec:function(){}},j=function(e,t){e=e.source||e,t=t||"";var n={replace:function(t,r){return r=(r=r.source||r).replace(d,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n},D=C,A={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}
1|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:I,table:I,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};A.def=j(A.def).replace("label",A._label).replace("title",A._title).getRegex(),A.bullet=/(?:[*+-]|\d{1,9}[.)])/,A.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,A.item=j(A.item,"gm").replace(/bull/g,A.bullet).getRegex(),A.listItemStart=j(/^( *)(bull)/).replace("bull",A.bullet).getRegex(),A.list=j(A.list).replace(/bull/g,A.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+A.def.source+")").getRegex(),A._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",A._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,A.html=j(A.html,"i").replace("comment",A._comment).replace("tag",A._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),A.paragraph=j(A._paragraph).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",A._tag).getRegex(),A.blockquote=j(A.blockquote).replace("paragraph",A.paragraph).getRegex(),A.normal=D({},A),A.gfm=D({},A.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),A.gfm.nptable=j(A.gfm.nptable).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",A._tag).getRegex(),A.gfm.table=j(A.gfm.table).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",A._tag).getRegex(),A.pedantic=D({},A.normal,{html:j("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",A._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:I,paragraph:j(A.normal._paragraph).replace("hr",A.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",A.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var R={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:I,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?
vendor: 6,811 bytes, line 1
1:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:I,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\s*punctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};R.punctuation=j(R.punctuation).replace(/punctuation/g,R._punctuation).getRegex(),R._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",R._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",R._comment=j(A._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),R.em.start=j(R.em.start).replace(/punctuation/g,R._punctuation).getRegex(),R.em.middle=j(R.em.middle).replace(/punctuation/g,R._punctuation).replace(/overlapSkip/g,R._overlapSkip).getRegex(),R.em.endAst=j(R.em.endAst,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.em.endUnd=j(R.em.endUnd,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.strong.start=j(R.strong.start).replace(/punctuation/g,R._punctuation).getRegex(),R.strong.middle=j(R.strong.middle).replace(/punctuation/g,R._punctuation).replace(/overlapSkip/g,R._overlapSkip).getRegex(),R.strong.endAst=j(R.strong.endAst,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.strong.endUnd=j(R.strong.endUnd,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.blockSkip=j(R._blockSkip,"g").getRegex(),R.overlapSkip=j(R._overlapSkip,"g").getRegex(),R._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,R._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,R._email=/[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])?)+(?![-_])/,R.autolink=j(R.autolink).replace("scheme",R._scheme).replace("email",R._email).getRegex(),R._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,R.tag=j(R.tag).replace("comment",R._comment).replace("attribute",R._attribute).getRegex(),R._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,R._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,R._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,R.link=j(R.link).replace("label",R._label).replace("href",R._href).replace("title",R._title).getRegex(),R.reflink=j(R.reflink).replace("label",R._label).getRegex(),R.reflinkSearch=j(R.reflinkSearch,"g").replace("reflink",R.reflink).replace("nolink",R.nolink).getRegex(),R.normal=D({},R),R.pedantic=D({},R.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:j(/^!?\[(label)\]\((.*?)\)/).replace("label",R._label).getRegex(),reflink:j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",R._label).getRegex()}),R.gfm=D({},R.normal,{escape:j(R.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),R.gfm.url=j(R.gfm.url,"i").replace("email",R.gfm._extended_email).getRegex(),R.breaks=D({},R.gfm,{br:j(R.br).replace("{2,}","*").getRegex(),text:j(R.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var P={block:A,inline:R},N=r.defaults,M=P.block,F=P.inline,L=function(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e};function V(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function U(e){var t,n,r="",i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var z=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||N,this.options.tokenizer=this.options.tokenizer||new T,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:M.normal,inline:F.normal};this.options.pedantic?(t.block=M.pedantic,t.inline=F.pedantic):this.options.gfm&&(t.block=M.gfm,t.inline=this.options.breaks?F.breaks:F.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,r,i=t.prototype;return i.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},i.blockTokens=function(e,t,n){var r,i,s,o;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),r.type&&t.push(r);else if(r=this.tokenizer.code(e,t))e=e.substring(r.raw.length),r.type?t.push(r):((o=t[t.length-1]).raw+="\n"+r.raw,o.text+="\n"+r.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.nptable(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),r.tokens=this.blockTokens(r.text,[],n),t.push(r);else if(r=this.tokenizer.list(e)){for(e=e.substring(r.raw.length),s=r.items.length,i=0;i<s;i++)r.items[i].tokens=this.blockTokens(r.items[i].text,[],!1);t.push(r)}else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(n&&(r=this.tokenizer.def(e)))e=e.substring(r.raw.length),this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else if(n&&(r=this.tokenizer.paragraph(e)))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.text(e,t))e=e.substring(r.raw.length),r.type?t.push(r):((o=t[t.length-1]).raw+="\n"+r.raw,o.text+="\n"+r.text);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return t},i.inline=function(e){var t,n,r,i,s,o,a=e.length;for(t=0;t<a;t++)switch((o=e[t]).type){case"paragraph":case"text":case"heading":
vendor: 15,639 bytes, line 1
1o.tokens=[],this.inlineTokens(o.text,o.tokens);break;case"table":for(o.tokens={header:[],cells:[]},i=o.header.length,n=0;n<i;n++)o.tokens.header[n]=[],this.inlineTokens(o.header[n],o.tokens.header[n]);for(i=o.cells.length,n=0;n<i;n++)for(s=o.cells[n],o.tokens.cells[n]=[],r=0;r<s.length;r++)o.tokens.cells[n][r]=[],this.inlineTokens(s[r],o.tokens.cells[n][r]);break;case"blockquote":this.inline(o.tokens);break;case"list":for(i=o.items.length,n=0;n<i;n++)this.inline(o.items[n].tokens)}return e},i.inlineTokens=function(e,t,n,r){var i;void 0===t&&(t=[]),void 0===n&&(n=!1),void 0===r&&(r=!1);var s,o,a,l=e;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(u.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(l));)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,s.index)+"["+L("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,s.index)+"["+L("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;e;)if(o||(a=""),o=!1,i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e,n,r))e=e.substring(i.raw.length),n=i.inLink,r=i.inRawBlock,t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),"link"===i.type&&(i.tokens=this.inlineTokens(i.text,[],!0,r)),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),"link"===i.type&&(i.tokens=this.inlineTokens(i.text,[],!0,r)),t.push(i);else if(i=this.tokenizer.strong(e,l,a))e=e.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),t.push(i);else if(i=this.tokenizer.em(e,l,a))e=e.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),t.push(i);else if(i=this.tokenizer.autolink(e,U))e=e.substring(i.raw.length),t.push(i);else if(n||!(i=this.tokenizer.url(e,U))){if(i=this.tokenizer.inlineText(e,r,V))e=e.substring(i.raw.length),a=i.raw.slice(-1),o=!0,t.push(i);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else e=e.substring(i.raw.length),t.push(i);return t},n=t,r=[{key:"rules",get:function(){return{block:M,inline:F}}}],null&&e(n.prototype,null),r&&e(n,r),t}(),$=r.defaults,q=function(e,t,n){if(e){var r;try{r=decodeURIComponent(h(n)).replace(p,"").toLowerCase()}catch(i){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!f.test(n)&&(n=function(e,t){g[" "+e]||(g[" "+e]=m.test(e)?e+"/":_(e,"/",!0));var n=-1===(e=g[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(b,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(y,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n},H=v,W=function(){function e(e){this.options=e||$}var t=e.prototype;return t.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+H(r,!0)+'">'+(n?e:H(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:H(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,n){if(null===(e=q(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<a href="'+H(e)+'"';return t&&(r+=' title="'+t+'"'),r+">"+n+"</a>"},t.image=function(e,t,n){if(null===(e=q(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+(this.options.xhtml?"/>":">")},t.text=function(e){return e},e}(),B=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),K=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{n=e+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),Q=r.defaults,Z=w,G=function(){function e(e){this.options=e||Q,this.options.renderer=this.options.renderer||new W,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new B,this.slugger=new K}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,r,i,s,o,a,l,u,c,h,d,p,f,g,m,b,y,_,v="",w=e.length;for(n=0;n<w;n++)switch((h=e[n]).type){case"space":continue;case"hr":v+=this.renderer.hr();continue;case"heading":v+=this.renderer.heading(this.parseInline(h.tokens),h.depth,Z(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":v+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(u="",l="",s=h.header.length,r=0;r<s;r++)l+=this.renderer.tablecell(this.parseInline(h.tokens.header[r]),{header:!0,align:h.align[r]});for(u+=this.renderer.tablerow(l),c="",s=h.cells.length,r=0;r<s;r++){for(l="",o=(a=h.tokens.cells[r]).length,i=0;i<o;i++)l+=this.renderer.tablecell(this.parseInline(a[i]),{header:!1,align:h.align[i]});c+=this.renderer.tablerow(l)}v+=this.renderer.table(u,c);continue;case"blockquote":c=this.parse(h.tokens),v+=this.renderer.blockquote(c);continue;case"list":for(d=h.ordered,p=h.start,f=h.loose,s=h.items.length,c="",r=0;r<s;r++)b=(m=h.items[r]).checked,y=m.task,g="",m.task&&(_=this.renderer.checkbox(b),f?m.tokens.length>0&&"text"===m.tokens[0].type?(m.tokens[0].text=_+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=_+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:_}):g+=_),g+=this.parse(m.tokens,f),c+=this.renderer.listitem(g,y,b);v+=this.renderer.list(c,d,p);continue;case"html":v+=this.renderer.html(h.text);continue;case"paragraph":v+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(c=h.tokens?this.parseInline(h.tokens):h.text;n+1<w&&"text"===e[n+1].type;)c+="\n"+((h=e[++n]).tokens?this.parseInline(h.tokens):h.text);v+=t?this.renderer.paragraph(c):c;continue;default:var C='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(C);throw new Error(C)}return v},t.parseInline=function(e,t){t=t||this.renderer;var n,r,i="",s=e.length;for(n=0;n<s;n++)switch((r=e[n]).type){case"escape":case"text":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;default:var o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(o);throw new Error(o)}return i},e}(),Y=C,J=function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},X=v,ee=r.getDefaults,te=r.changeDefaults,ne=r.defaults;function re(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=Y({},re.defaults,t||{}),J(t),n){var r,i=t.highlight;try{r=z.lex(e,t)}catch(l){return n(l)}var s=function(e){var s;if(!e)try{s=G.parse(r,t)}catch(l){e=l}return t.highlight=i,e?n(e):n(null,s)};if(!i||i.length<3)return s();if(delete t.highlight,!r.length)return s();var o=0;return re.walkTokens(r,function(e){"code"===e.type&&(o++,setTimeout(function(){i(e.text,e.lang,function(t,n){if(t)return s(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0===--o&&s()})},0))}),void(0===o&&s())}try{var a=z.lex(e,t);return t.walkTokens&&re.walkTokens(a,t.walkTokens),G.parse(a,t)}catch(l){if(l.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+X(l.message+"",!0)+"</pre>";throw l}}return re.options=re.setOptions=function(e){return Y(re.defaults,e),te(re.defaults),re},re.getDefaults=ee,re.defaults=ne,re.use=function(e){var t=Y({},e);if(e.renderer&&function(){var n=re.defaults.renderer||new W,r=function(t){var r=n[t];n[t]=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a=e.renderer[t].apply(n,s);return!1===a&&(a=r.apply(n,s)),a}};for(var i in e.renderer)r(i);t.renderer=n}(),e.tokenizer&&function(){var n=re.defaults.tokenizer||new T,r=function(t){var r=n[t];n[t]=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a=e.tokenizer[t].apply(n,s);return!1===a&&(a=r.apply(n,s)),a}};for(var i in e.tokenizer)r(i);t.tokenizer=n}(),e.walkTokens){var n=re.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens(t),n&&n(t)}}re.setOptions(t)},re.walkTokens=function(e,t){for(var r,i=n(e);!(r=i()).done;){var s=r.value;switch(t(s),s.type){case"table":for(var o,a=n(s.tokens.header);!(o=a()).done;)re.walkTokens(o.value,t);for(var l,u=n(s.tokens.cells);!(l=u()).done;)for(var c,h=n(l.value);!(c=h()).done;)re.walkTokens(c.value,t);break;case"list":re.walkTokens(s.items,t);break;default:s.tokens&&re.walkTokens(s.tokens,t)}}},re.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=Y({},re.defaults,t||{}),J(t);try{var n=z.lexInline(e,t);return t.walkTokens&&re.walkTokens(n,t.walkTokens),G.parseInline(n,t)}catch(r){if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+X(r.message+"",!0)+"</pre>";throw r}},re.Parser=G,re.parser=G.parse,re.Renderer=W,re.TextRenderer=B,re.Lexer=z,re.lexer=z.lex,re.Tokenizer=T,re.Slugger=K,re.parse=re,re}()},EY2u:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return s});var r=n("HDdC");const i=new r.a(e=>e.complete());function s(e){return e?function(e){return new r.a(t=>e.schedule(()=>t.complete()))}(e):i}},G0yt:function(e,t,n){"use strict";n.d(t,"a",function(){return z}),n.d(t,"b",function(){return V}),n.d(t,"c",function(){return q}),n.d(t,"d",function(){return W}),n.d(t,"e",function(){return H}),n.d(t,"f",function(){return B}),n.d(t,"g",function(){return K}),n.d(t,"h",function(){return J}),n.d(t,"i",function(){return de}),n.d(t,"j",function(){return ne}),n.d(t,"k",function(){return X}),n.d(t,"l",function(){return se}),n.d(t,"m",function(){return oe}),n.d(t,"n",function(){return ae}),n.d(t,"o",function(){return Oe}),n.d(t,"p",function(){return Ee}),n.d(t,"q",function(){return Ce}),n.d(t,"r",function(){return ye}),n.d(t,"s",function(){return Te}),n.d(t,"t",function(){return He}),n.d(t,"u",function(){return Ie}),n.d(t,"v",function(){return Ge}),n.d(t,"w",function(){return Qe}),n.d(t,"x",function(){return We}),n.d(t,"y",function(){return Ke}),n.d(t,"z",function(){return Ye}),n.d(t,"A",function(){return Ze}),n.d(t,"B",function(){return on}),n.d(t,"C",function(){return ut}),n.d(t,"D",function(){return Je}),n.d(t,"E",function(){return ct}),n.d(t,"F",function(){return hn}),n.d(t,"G",function(){return mt}),n.d(t,"H",function(){return ht}),n.d(t,"I",function(){return ft}),n.d(t,"J",function(){return gt}),n.d(t,"K",function(){return bt}),n.d(t,"L",function(){return _t}),n.d(t,"M",function(){return yt}),n.d(t,"N",function(){return Be}),n.d(t,"O",function(){return kt}),n.d(t,"P",function(){return vt}),n.d(t,"Q",function(){return wt}),n.d(t,"R",function(){return Ct}),n.d(t,"S",function(){return Et}),n.d(t,"T",function(){return St}),n.d(t,"U",function(){return Ot}),n.d(t,"V",function(){return U}),n.d(t,"W",function(){return $}),n.d(t,"X",function(){return Dt}),n.d(t,"Y",function(){return Rt}),n.d(t,"Z",function(){return At}),n.d(t,"ab",function(){return Pt}),n.d(t,"bb",function(){return Y}),n.d(t,"cb",function(){return G}),n.d(t,"db",function(){return Mt}),n.d(t,"eb",function(){return Nt}),n.d(t,"fb",function(){return Ft}),n.d(t,"gb",function(){return te}),n.d(t,"hb",function(){return Vt}),n.d(t,"ib",function(){return Lt}),n.d(t,"jb",function(){return Ut}),n.d(t,"kb",function(){return Ht}),n.d(t,"lb",function(){return Zt}),n.d(t,"mb",function(){return $t}),n.d(t,"nb",function(){return Bt}),n.d(t,"ob",function(){return Gt}),n.d(t,"pb",function(){return Jt}),n.d(t,"qb",function(){return Yt}),n.d(t,"rb",function(){return Xt}),n.d(t,"sb",function(){return rn}),n.d(t,"tb",function(){return en}),n.d(t,"ub",function(){return sn}),n.d(t,"vb",function(){return cn}),n.d(t,"wb",function(){return $e}),n.d(t,"xb",function(){return je}),n.d(t,"yb",function(){return qe}),n.d(t,"zb",function(){return jt}),n.d(t,"Ab",function(){return nn}),n.d(t,"Bb",function(){return an}),n.d(t,"Cb",function(){return ve}),n.d(t,"Db",function(){return rt}),n.d(t,"Eb",function(){return at}),n.d(t,"Fb",function(){return lt});var r=n("8Y7J"),i=n("SVse"),s=(n("s7LF"),n("XNiG")),o=n("2Vo4"),a=n("itXk"),l=n("PqYM"),u=n("5yfJ"),c=n("xgIS"),h=n("VRyK"),d=n("DH7j"),p=n("yCtX"),f=n("l7GE"),g=n("ZUHj");class m{call(e,t){return t.subscribe(new b(e))}}class b extends f.a{constructor(e){super(e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(e){this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(let n=0;n<t&&!this.hasFirst;
1n++){const t=e[n],r=Object(g.a)(this,t,void 0,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}}notifyNext(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(let e=0;e<this.subscriptions.length;e++)if(e!==n){let t=this.subscriptions[e];t.unsubscribe(),this.remove(t)}this.subscriptions=null}this.destination.next(t)}}var y=n("HDdC"),_=n("lJxs"),v=n("JX91"),w=n("/uUt"),C=n("eIep"),S=n("1G5W"),O=n("pLZG"),k=n("IzEk"),E=n("vkgz"),x=n("zp1y"),T=n("3E0/"),I=n("w1tV");function j(e){return parseInt(`${e}`,10)}function D(e){return null!=e?`${e}`:""}function A(e,t,n=0){return Math.max(Math.min(e,t),n)}function R(e){return"string"==typeof e}function P(e){return!isNaN(j(e))}function N(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function M(e){return null!=e}function F(e){return P(e)?`0${e}`.slice(-2):""}function L(e,t){return e&&e.className&&e.className.split&&e.className.split(/\s+/).indexOf(t)>=0}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});let V=(()=>{let e=class{constructor(){this.closeOthers=!1}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),U=class{constructor(e){this.templateRef=e}},z=class{constructor(e){this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new r.n,this.type=e.type,this.closeOtherPanels=e.closeOthers}isExpanded(e){return this.activeIds.indexOf(e)>-1}expand(e){this._changeOpenState(this._findPanelById(e),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(e=>this._changeOpenState(e,!0))}collapse(e){this._changeOpenState(this._findPanelById(e),!1)}collapseAll(){this.panels.forEach(e=>{this._changeOpenState(e,!1)})}toggle(e){const t=this._findPanelById(e);t&&this._changeOpenState(t,!t.isOpen)}ngAfterContentChecked(){R(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(e=>e.isOpen=!e.disabled&&this.activeIds.indexOf(e.id)>-1),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0]),this._updateActiveIds())}_changeOpenState(e,t){if(null!=e&&!e.disabled&&e.isOpen!==t){let n=!1;this.panelChange.emit({panelId:e.id,nextState:t,preventDefault:()=>{n=!0}}),n||(e.isOpen=t,t&&this.closeOtherPanels&&this._closeOthers(e.id),this._updateActiveIds())}}_closeOthers(e){this.panels.forEach(t=>{t.id!==e&&(t.isOpen=!1)})}_findPanelById(e){return this.panels.find(t=>t.id===e)||null}_updateActiveIds(){this.activeIds=this.panels.filter(e=>e.isOpen&&!e.disabled).map(e=>e.id)}},$=class{constructor(e,t){this.accordion=e,this.panel=t}set ngbPanelToggle(e){e&&(this.panel=e)}},q=class{},H=(()=>{let e=class{constructor(){this.dismissible=!0,this.type="warning"}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),W=class{constructor(e,t,n){this._renderer=t,this._element=n,this.close=new r.n,this.dismissible=e.dismissible,this.type=e.type}closeHandler(){this.close.emit()}ngOnChanges(e){const t=e.type;t&&!t.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${t.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${t.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}},B=class{},K=class{};Object(r.U)(()=>Q);let Q=class{constructor(e,t){this._label=e,this._cd=t,this.disabled=!1,this.valueChecked=!0,this.valueUnChecked=!1,this.onChange=e=>{},this.onTouched=()=>{}}set focused(e){this._label.focused=e,e||this.onTouched()}onInputChange(e){const t=e.target.checked?this.valueChecked:this.valueUnChecked;this.onChange(t),this.onTouched(),this.writeValue(t)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._label.disabled=e}writeValue(e){this.checked=e===this.valueChecked,this._label.active=this.checked,this._cd.markForCheck()}};Object(r.U)(()=>G);let Z=0,G=class{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+Z++,this.onChange=e=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this.setDisabledState(e)}onRadioChange(e){this.writeValue(e.value),this.onChange(e.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(e){this._radios.add(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._disabled=e,this._updateRadiosDisabled()}unregister(e){this._radios.delete(e)}writeValue(e){this._value=e,this._updateRadiosValue()}
1_updateRadiosValue(){this._radios.forEach(e=>e.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(e=>e.updateDisabled())}},Y=class{constructor(e,t,n,r,i){this._group=e,this._label=t,this._renderer=n,this._element=r,this._cd=i,this._value=null,this._group.register(this),this.updateDisabled()}set value(e){this._value=e;const t=e?e.toString():"";this._renderer.setProperty(this._element.nativeElement,"value",t),this._group.onRadioValueUpdate()}set disabled(e){this._disabled=!1!==e,this.updateDisabled()}set focused(e){this._label&&(this._label.focused=e),e||this._group.onTouched()}get checked(){return this._checked}get disabled(){return this._group.disabled||this._disabled}get value(){return this._value}get nameAttr(){return this.name||this._group.name}ngOnDestroy(){this._group.unregister(this)}onChange(){this._group.onRadioChange(this)}updateValue(e){this.value!==e&&this._cd.markForCheck(),this._checked=this.value===e,this._label.active=this._checked}updateDisabled(){this._label.disabled=this.disabled}},J=class{},X=(()=>{let e=class{constructor(){this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),ee=0,te=class{constructor(e){this.tplRef=e,this.id="ngb-slide-"+ee++}},ne=class{constructor(e,t,n,i){this._platformId=t,this._ngZone=n,this._cd=i,this.NgbSlideEventSource=ie,this._destroy$=new s.a,this._interval$=new o.a(0),this._mouseHover$=new o.a(!1),this._pauseOnHover$=new o.a(!1),this._pause$=new o.a(!1),this._wrap$=new o.a(!1),this.slide=new r.n,this.interval=e.interval,this.wrap=e.wrap,this.keyboard=e.keyboard,this.pauseOnHover=e.pauseOnHover,this.showNavigationArrows=e.showNavigationArrows,this.showNavigationIndicators=e.showNavigationIndicators}set interval(e){this._interval$.next(e)}get interval(){return this._interval$.value}set wrap(e){this._wrap$.next(e)}get wrap(){return this._wrap$.value}set pauseOnHover(e){this._pauseOnHover$.next(e)}get pauseOnHover(){return this._pauseOnHover$.value}mouseEnter(){this._mouseHover$.next(!0)}mouseLeave(){this._mouseHover$.next(!1)}ngAfterContentInit(){Object(i.C)(this._platformId)&&this._ngZone.runOutsideAngular(()=>{const e=Object(a.a)([this.slide.pipe(Object(_.a)(e=>e.current),Object(v.a)(this.activeId)),this._wrap$,this.slides.changes.pipe(Object(v.a)(null))]).pipe(Object(_.a)(([e,t])=>{const n=this.slides.toArray(),r=this._getSlideIdxById(e);return t?n.length>1:r<n.length-1}),Object(w.a)());Object(a.a)([this._pause$,this._pauseOnHover$,this._mouseHover$,this._interval$,e]).pipe(Object(_.a)(([e,t,n,r,i])=>e||t&&n||!i?0:r),Object(w.a)(),Object(C.a)(e=>e>0?Object(l.a)(e,e):u.a),Object(S.a)(this._destroy$)).subscribe(()=>this._ngZone.run(()=>this.next(ie.TIMER)))}),this.slides.changes.pipe(Object(S.a)(this._destroy$)).subscribe(()=>this._cd.markForCheck())}ngAfterContentChecked(){let e=this._getSlideById(this.activeId);this.activeId=e?e.id:this.slides.length?this.slides.first.id:""}ngOnDestroy(){this._destroy$.next()}select(e,t){this._cycleToSelected(e,this._getSlideEventDirection(this.activeId,e),t)}prev(e){this._cycleToSelected(this._getPrevSlide(this.activeId),re.RIGHT,e)}next(e){this._cycleToSelected(this._getNextSlide(this.activeId),re.LEFT,e)}pause(){this._pause$.next(!0)}cycle(){this._pause$.next(!1)}_cycleToSelected(e,t,n){let r=this._getSlideById(e);r&&r.id!==this.activeId&&(this.slide.emit({prev:this.activeId,current:r.id,direction:t,paused:this._pause$.value,source:n}),this.activeId=r.id),this._cd.markForCheck()}_getSlideEventDirection(e,t){return this._getSlideIdxById(e)>this._getSlideIdxById(t)?re.RIGHT:re.LEFT}_getSlideById(e){return this.slides.find(t=>t.id===e)||null}_getSlideIdxById(e){const t=this._getSlideById(e);return null!=t?this.slides.toArray().indexOf(t):-1}_getNextSlide(e){const t=this.slides.toArray(),n=this._getSlideIdxById(e);return n===t.length-1?this.wrap?t[0].id:t[t.length-1].id:t[n+1].id}_getPrevSlide(e){const t=this.slides.toArray(),n=this._getSlideIdxById(e);return 0===n?this.wrap?t[t.length-1].id:t[0].id:t[n-1].id}};var re=function(e){return e[e.LEFT="left"]="LEFT",e[e.RIGHT="right"]="RIGHT",e}({}),ie=function(e){return e.TIMER="timer",e.ARROW_LEFT="arrowLeft",e.ARROW_RIGHT="arrowRight",e.INDICATOR="indicator",e}({});let se=class{},oe=class{constructor(){this.collapsed=!1}},ae=class{};class le{constructor(e,t,n){this.year=N(e)?e:null,this.month=N(t)?t:null,this.day=N(n)?n:null}static from(e){return e instanceof le?e:e?new le(e.year,e.month,e.day):null}equals(e){return null!=e&&this.year===e.year&&this.month===e.month&&this.day===e.day}before(e){return!!e&&(this.year===e.year?this.month===e.month?this.day!==e.day&&this.day<e.day:this.month<e.month:this.year<e.year)}after(e){return!!e&&(this.year===e.year?this.month===e.month?this.day!==e.day&&this.day>e.day:this.month>e.month:this.year>e.year)}}function ue(e){return new le(e.getFullYear(),e.getMonth()+1,e.getDate())}function ce(e){const t=new Date(e.year,e.month-1,e.day,12);return isNaN(t.getTime())||t.setFullYear(e.year),t}function he(){return new pe}let de=(()=>{let e=class{};return e.\u0275prov=Object(r.ac)({factory:he,token:e,providedIn:"root"}),e})(),pe=class extends de{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,t="d",n=1){let r=ce(e),i=!0,s=r.getMonth();switch(t){case"y":r.setFullYear(r.getFullYear()+n);break;case"m":s+=n,r.setMonth(s),s%=12,s<0&&(s+=12);break;case"d":r.setDate(r.getDate()+n),i=!1;break;default:return e}return i&&r.getMonth()!==s&&r.setDate(0),ue(r)}getPrev(e,t="d",n=1){return this.getNext(e,t,-n)}getWeekday(e){let t=ce(e).getDay();return 0===t?7:t}getWeekNumber(e,t){7===t&&(t=0);const n=ce(e[(11-t)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));const r=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((r-n.getTime())/864e5)/7)+1}getToday(){return ue(new Date)}
1isValid(e){if(!(e&&N(e.year)&&N(e.month)&&N(e.day)))return!1;if(0===e.year)return!1;const t=ce(e);return!isNaN(t.getTime())&&t.getFullYear()===e.year&&t.getMonth()+1===e.month&&t.getDate()===e.day}};function fe(e,t){return!function(e,t){return!e&&!t||!!e&&!!t&&e.equals(t)}(e,t)}function ge(e,t){return!(!e&&!t||e&&t&&e.year===t.year&&e.month===t.month)}function me(e,t,n){return e&&t&&e.before(t)?t:e&&n&&e.after(n)?n:e||null}function be(e,t){const{minDate:n,maxDate:r,disabled:i,markDisabled:s}=t;return!(null==e||i||s&&s(e,{year:e.year,month:e.month})||n&&e.before(n)||r&&e.after(r))}let ye=(()=>{let e=class{getDayNumerals(e){return`${e.day}`}getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}};return e.\u0275prov=Object(r.ac)({factory:function(){return e=Object(r.bc)(r.u),new _e(e);var e},token:e,providedIn:"root"}),e})(),_e=class extends ye{constructor(e){super(),this._locale=e;const t=Object(i.z)(e,i.g.Standalone,i.w.Short);this._weekdaysShort=t.map((e,n)=>t[(n+1)%7]),this._monthsShort=Object(i.B)(e,i.g.Standalone,i.w.Abbreviated),this._monthsFull=Object(i.B)(e,i.g.Standalone,i.w.Wide)}getWeekdayShortName(e){return this._weekdaysShort[e-1]||""}getMonthShortName(e){return this._monthsShort[e-1]||""}getMonthFullName(e){return this._monthsFull[e-1]||""}getDayAriaLabel(e){const t=new Date(e.year,e.month-1,e.day);return Object(i.y)(t,"fullDate",this._locale)}},ve=class{constructor(e,t){this._calendar=e,this._i18n=t,this._VALIDATORS={dayTemplateData:e=>{if(this._state.dayTemplateData!==e)return{dayTemplateData:e}},displayMonths:e=>{if(N(e=j(e))&&e>0&&this._state.displayMonths!==e)return{displayMonths:e}},disabled:e=>{if(this._state.disabled!==e)return{disabled:e}},firstDayOfWeek:e=>{if(N(e=j(e))&&e>=0&&this._state.firstDayOfWeek!==e)return{firstDayOfWeek:e}},focusVisible:e=>{if(this._state.focusVisible!==e&&!this._state.disabled)return{focusVisible:e}},markDisabled:e=>{if(this._state.markDisabled!==e)return{markDisabled:e}},maxDate:e=>{const t=this.toValidDate(e,null);if(fe(this._state.maxDate,t))return{maxDate:t}},minDate:e=>{const t=this.toValidDate(e,null);if(fe(this._state.minDate,t))return{minDate:t}},navigation:e=>{if(this._state.navigation!==e)return{navigation:e}},outsideDays:e=>{if(this._state.outsideDays!==e)return{outsideDays:e}}},this._model$=new s.a,this._dateSelect$=new s.a,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]}}}get model$(){return this._model$.pipe(Object(O.a)(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(Object(O.a)(e=>null!==e))}set(e){let t=Object.keys(e).map(t=>this._VALIDATORS[t](e[t])).reduce((e,t)=>Object.assign(Object.assign({},e),t),{});Object.keys(t).length>0&&this._nextState(t)}focus(e){const t=this.toValidDate(e,null);null!=t&&!this._state.disabled&&fe(this._state.focusDate,t)&&this._nextState({focusDate:e})}focusSelect(){be(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){const t=this.toValidDate(e,this._calendar.getToday());null==t||this._state.disabled||this._state.firstDate&&!ge(this._state.firstDate,t)||this._nextState({firstDate:t})}select(e,t={}){const n=this.toValidDate(e,null);null==n||this._state.disabled||(fe(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),t.emitEvent&&be(n,this._state)&&this._dateSelect$.next(n))}toValidDate(e,t){const n=le.from(e);return void 0===t&&(t=this._calendar.getToday()),this._calendar.isValid(n)?n:t}getMonth(e){for(let t of this._state.months)if(e.month===t.number&&e.year===t.year)return t;throw new Error(`month ${e.month} of year ${e.year} not found`)}_nextState(e){const t=this._updateState(e);this._patchContexts(t),this._state=t,this._model$.next(this._state)}_patchContexts(e){const{months:t,displayMonths:n,selectedDate:r,focusDate:i,focusVisible:s,disabled:o,outsideDays:a}=e;
1e.months.forEach(e=>{e.weeks.forEach(l=>{l.days.forEach(l=>{i&&(l.context.focused=i.equals(l.date)&&s),l.tabindex=!o&&i&&l.date.equals(i)&&i.month===e.number?0:-1,!0===o&&(l.context.disabled=!0),void 0!==r&&(l.context.selected=null!==r&&r.equals(l.date)),e.number!==l.date.month&&(l.hidden="hidden"===a||"collapsed"===a||n>1&&l.date.after(t[0].firstDate)&&l.date.before(t[n-1].lastDate))})})})}_updateState(e){const t=Object.assign({},this._state,e);let n=t.firstDate;if(("minDate"in e||"maxDate"in e)&&(function(e,t){if(t&&e&&t.before(e))throw new Error(`'maxDate' ${t} should be greater than 'minDate' ${e}`)}(t.minDate,t.maxDate),t.focusDate=me(t.focusDate,t.minDate,t.maxDate),t.firstDate=me(t.firstDate,t.minDate,t.maxDate),n=t.focusDate),"disabled"in e&&(t.focusVisible=!1),"selectedDate"in e&&0===this._state.months.length&&(n=t.selectedDate),"focusVisible"in e)return t;if("focusDate"in e&&(t.focusDate=me(t.focusDate,t.minDate,t.maxDate),n=t.focusDate,0!==t.months.length&&t.focusDate&&!t.focusDate.before(t.firstDate)&&!t.focusDate.after(t.lastDate)))return t;if("firstDate"in e&&(t.firstDate=me(t.firstDate,t.minDate,t.maxDate),n=t.firstDate),n){const r=function(e,t,n,r,i){const{displayMonths:s,months:o}=n,a=o.splice(0,o.length);return Array.from({length:s},(n,r)=>{const s=Object.assign(e.getNext(t,"m",r),{day:1});if(o[r]=null,!i){const e=a.findIndex(e=>e.firstDate.equals(s));-1!==e&&(o[r]=a.splice(e,1)[0])}return s}).forEach((t,i)=>{null===o[i]&&(o[i]=function(e,t,n,r,i={}){const{dayTemplateData:s,minDate:o,maxDate:a,firstDayOfWeek:l,markDisabled:u,outsideDays:c}=n,h=e.getToday();i.firstDate=null,i.lastDate=null,i.number=t.month,i.year=t.year,i.weeks=i.weeks||[],i.weekdays=i.weekdays||[],t=function(e,t,n){const r=e.getDaysPerWeek(),i=new le(t.year,t.month,1),s=e.getWeekday(i)%r;return e.getPrev(i,"d",(r+s-n)%r)}(e,t,l);for(let d=0;d<e.getWeeksPerMonth();d++){let n=i.weeks[d];n||(n=i.weeks[d]={number:0,days:[],collapsed:!0});const p=n.days;for(let l=0;l<e.getDaysPerWeek();l++){0===d&&(i.weekdays[l]=e.getWeekday(t));const n=new le(t.year,t.month,t.day),c=e.getNext(n),f=r.getDayAriaLabel(n);let g=!!(o&&n.before(o)||a&&n.after(a));!g&&u&&(g=u(n,{month:i.number,year:i.year}));let m=n.equals(h),b=s?s(n,{month:i.number,year:i.year}):void 0;null===i.firstDate&&n.month===i.number&&(i.firstDate=n),n.month===i.number&&c.month!==i.number&&(i.lastDate=n);let y=p[l];y||(y=p[l]={}),y.date=n,y.context=Object.assign(y.context||{},{$implicit:n,date:n,data:b,currentMonth:i.number,currentYear:i.year,disabled:g,focused:!1,selected:!1,today:m}),y.tabindex=-1,y.ariaLabel=f,y.hidden=!1,t=c}n.number=e.getWeekNumber(p.map(e=>e.date),l),n.collapsed="collapsed"===c&&p[0].date.month!==i.number&&p[p.length-1].date.month!==i.number}return i}(e,t,n,r,a.shift()||{}))}),o}(this._calendar,n,t,this._i18n,"dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e);t.months=r,t.firstDate=r[0].firstDate,t.lastDate=r[r.length-1].lastDate,"selectedDate"in e&&!be(t.selectedDate,t)&&(t.selectedDate=null),"firstDate"in e&&(!t.focusDate||t.focusDate.before(t.firstDate)||t.focusDate.after(t.lastDate))&&(t.focusDate=n);const i=!this._state.firstDate||this._state.firstDate.year!==t.firstDate.year,s=!this._state.firstDate||this._state.firstDate.month!==t.firstDate.month;"select"===t.navigation?(("minDate"in e||"maxDate"in e||0===t.selectBoxes.years.length||i)&&(t.selectBoxes.years=function(e,t,n){if(!e)return[];const r=t?Math.max(t.year,e.year-500):e.year-10,i=(n?Math.min(n.year,e.year+500):e.year+10)-r+1,s=Array(i);for(let o=0;o<i;o++)s[o]=r+o;return s}(t.firstDate,t.minDate,t.maxDate)),("minDate"in e||"maxDate"in e||0===t.selectBoxes.months.length||i)&&(t.selectBoxes.months=function(e,t,n,r){if(!t)return[];let i=e.getMonths(t.year);if(n&&t.year===n.year){const e=i.findIndex(e=>e===n.month);i=i.slice(e)}if(r&&t.year===r.year){const e=i.findIndex(e=>e===r.month);i=i.slice(0,e+1)}return i}(this._calendar,t.firstDate,t.minDate,t.maxDate))):t.selectBoxes={years:[],months:[]},"arrows"!==t.navigation&&"select"!==t.navigation||!(s||i||"minDate"in e||"maxDate"in e||"disabled"in e)||(t.prevDisabled=t.disabled||function(e,t,n){const r=Object.assign(e.getPrev(t,"m"),{day:1});return null!=n&&(r.year===n.year&&r.month<n.month||r.year<n.year&&1===n.month)}(this._calendar,t.firstDate,t.minDate),t.nextDisabled=t.disabled||function(e,t,n){const r=Object.assign(e.getNext(t,"m"),{day:1});return null!=n&&r.after(n)}(this._calendar,t.lastDate,t.maxDate))}return t}};var we=function(e){return e[e.PREV=0]="PREV",e[e.NEXT=1]="NEXT",e}({});let Ce=(()=>{let e=class{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e},token:e,providedIn:"root"}),e})();function Se(){return new ke}let Oe=(()=>{let e=class{};return e.\u0275prov=Object(r.ac)({factory:Se,token:e,providedIn:"root"}),e})(),ke=class extends Oe{fromModel(e){return e&&N(e.year)&&N(e.month)&&N(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&N(e.year)&&N(e.month)&&N(e.day)?{year:e.year,month:e.month,day:e.day}:null}};Object(r.U)(()=>Ee);let Ee=class{constructor(e,t,n,i,o,a,l,u){this._service=e,this._calendar=t,this.i18n=n,this._elementRef=a,this._ngbDateAdapter=l,this._ngZone=u,this._controlValue=null,this._destroyed$=new s.a,this._publicState={},this.navigate=new r.n,this.dateSelect=new r.n,this.select=this.dateSelect,this.onChange=e=>{},this.onTouched=()=>{},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekdays","showWeekNumbers","startDate"].forEach(e
1=>this[e]=i[e]),e.dateSelect$.pipe(Object(S.a)(this._destroyed$)).subscribe(e=>{this.dateSelect.emit(e)}),e.model$.pipe(Object(S.a)(this._destroyed$)).subscribe(e=>{const t=e.firstDate,n=this.model?this.model.firstDate:null;this._publicState={maxDate:e.maxDate,minDate:e.minDate,firstDate:e.firstDate,lastDate:e.lastDate,focusedDate:e.focusDate,months:e.months.map(e=>e.firstDate)};let r=!1;if(!t.equals(n)&&(this.navigate.emit({current:n?{year:n.year,month:n.month}:null,next:{year:t.year,month:t.month},preventDefault:()=>r=!0}),r&&null!==n))return void this._service.open(n);const i=e.selectedDate,s=e.focusDate,a=this.model?this.model.focusDate:null;this.model=e,fe(i,this._controlValue)&&(this._controlValue=i,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(i))),fe(s,a)&&a&&e.focusVisible&&this.focus(),o.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}focusDate(e){this._service.focus(le.from(e))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(Object(k.a)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(le.from(e?e.day?e:Object.assign(Object.assign({},e),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=Object(c.a)(this._contentEl.nativeElement,"focusin"),t=Object(c.a)(this._contentEl.nativeElement,"focusout"),{nativeElement:n}=this._elementRef;Object(h.a)(e,t).pipe(Object(O.a)(({target:e,relatedTarget:t})=>!(L(e,"ngb-dp-day")&&L(t,"ngb-dp-day")&&n.contains(e)&&n.contains(t))),Object(S.a)(this._destroyed$)).subscribe(({type:e})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===e})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const e={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].forEach(t=>e[t]=this[t]),this._service.set(e),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(e){const t={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].filter(t=>t in e).forEach(e=>t[e]=this[e]),this._service.set(t),"startDate"in e){const{currentValue:t,previousValue:n}=e.startDate;ge(n,t)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case we.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case we.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.set({disabled:e})}writeValue(e){this._controlValue=le.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}};var xe=function(e){return e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown",e}({});let Te=(()=>{let e=class{processKey(e,t){const{state:n,calendar:r}=t;switch(e.which){case xe.PageUp:t.focusDate(r.getPrev(n.focusedDate,e.shiftKey?"y":"m",1));break;case xe.PageDown:t.focusDate(r.getNext(n.focusedDate,e.shiftKey?"y":"m",1));break;case xe.End:t.focusDate(e.shiftKey?n.maxDate:n.lastDate);break;case xe.Home:t.focusDate(e.shiftKey?n.minDate:n.firstDate);break;case xe.ArrowLeft:t.focusDate(r.getPrev(n.focusedDate,"d",1));break;case xe.ArrowUp:t.focusDate(r.getPrev(n.focusedDate,"d",r.getDaysPerWeek()));break;case xe.ArrowRight:t.focusDate(r.getNext(n.focusedDate,"d",1));break;case xe.ArrowDown:t.focusDate(r.getNext(n.focusedDate,"d",r.getDaysPerWeek()));break;case xe.Enter:case xe.Space:t.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Ie=class{constructor(e,t,n,r){this.i18n=e,this.datepicker=t,this._keyboardService=n,this._service=r}set month(e){this.viewModel=this._service.getMonth(e)}onKeyDown(e){this._keyboardService.processKey(e,this.datepicker)}doSelect(e){e.context.disabled||e.hidden||this.datepicker.onDateSelect(e.date)}},je=class{constructor(e){this.i18n=e,this.navigation=we,this.months=[],this.navigate=new r.n,this.select=new r.n}
1onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}};const De=(e,t)=>!!t&&t.some(t=>t.contains(e)),Ae=(e,t)=>!t||null!=function(e,t){return t?void 0===e.closest?null:e.closest(t):null}(e,t),Re="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function Pe(e,t,n,r,i,s,o,a){var l;n&&e.runOutsideAngular((l=()=>{const l=Object(c.a)(t,"keydown").pipe(Object(S.a)(i),Object(O.a)(e=>e.which===xe.Escape),Object(E.a)(e=>e.preventDefault())),u=Object(c.a)(t,"mousedown").pipe(Object(_.a)(e=>{const t=e.target;return 2!==e.button&&!De(t,o)&&("inside"===n?De(t,s)&&Ae(t,a):"outside"===n?!De(t,s):Ae(t,a)||!De(t,s))}),Object(S.a)(i)),h=Object(c.a)(t,"mouseup").pipe(Object(x.a)(u),Object(O.a)(([e,t])=>t),Object(T.a)(0),Object(S.a)(i));(function(...e){if(1===e.length){if(!Object(d.a)(e[0]))return e[0];e=e[0]}return Object(p.a)(e,void 0).lift(new m)})([l.pipe(Object(_.a)(e=>0)),h.pipe(Object(_.a)(e=>1))]).subscribe(t=>e.run(()=>r(t)))},Re?()=>setTimeout(()=>l(),100):l))}const Ne=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Me(e){const t=Array.from(e.querySelectorAll(Ne)).filter(e=>-1!==e.tabIndex);return[t[0],t[t.length-1]]}const Fe=(e,t,n,r=!1)=>{e.runOutsideAngular(()=>{const e=Object(c.a)(t,"focusin").pipe(Object(S.a)(n),Object(_.a)(e=>e.target));Object(c.a)(t,"keydown").pipe(Object(S.a)(n),Object(O.a)(e=>e.which===xe.Tab),Object(x.a)(e)).subscribe(([e,n])=>{const[r,i]=Me(t);n!==r&&n!==t||!e.shiftKey||(i.focus(),e.preventDefault()),n!==i||e.shiftKey||(r.focus(),e.preventDefault())}),r&&Object(c.a)(t,"click").pipe(Object(S.a)(n),Object(x.a)(e),Object(_.a)(e=>e[1])).subscribe(e=>e.focus())})},Le=/\s+/,Ve=new class{getAllStyles(e){return window.getComputedStyle(e)}getStyle(e,t){return this.getAllStyles(e)[t]}isStaticPositioned(e){return"static"===(this.getStyle(e,"position")||"static")}offsetParent(e){let t=e.offsetParent||document.documentElement;for(;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement}position(e,t=!0){let n,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))n=e.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const t=this.offsetParent(e);n=this.offset(e,!1),t!==document.documentElement&&(r=this.offset(t,!1)),r.top+=t.clientTop,r.left+=t.clientLeft}return n.top-=r.top,n.bottom-=r.top,n.left-=r.left,n.right-=r.left,t&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(e,t=!0){const n=e.getBoundingClientRect(),r=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft;let s={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+r,bottom:n.bottom+r,left:n.left+i,right:n.right+i};return t&&(s.height=Math.round(s.height),s.width=Math.round(s.width),s.top=Math.round(s.top),s.bottom=Math.round(s.bottom),s.left=Math.round(s.left),s.right=Math.round(s.right)),s}positionElements(e,t,n,r){const[i="top",s="center"]=n.split("-"),o=r?this.offset(e,!1):this.position(e,!1),a=this.getAllStyles(t),l=parseFloat(a.marginTop),u=parseFloat(a.marginBottom),c=parseFloat(a.marginLeft),h=parseFloat(a.marginRight);let d=0,p=0;switch(i){case"top":d=o.top-(t.offsetHeight+l+u);break;case"bottom":d=o.top+o.height;break;case"left":p=o.left-(t.offsetWidth+c+h);break;case"right":p=o.left+o.width}switch(s){case"top":d=o.top;break;case"bottom":d=o.top+o.height-t.offsetHeight;break;case"left":p=o.left;break;case"right":p=o.left+o.width-t.offsetWidth;break;case"center":"top"===i||"bottom"===i?p=o.left+o.width/2-t.offsetWidth/2:d=o.top+o.height/2-t.offsetHeight/2}t.style.transform=`translate(${Math.round(p)}px, ${Math.round(d)}px)`;const f=t.getBoundingClientRect(),g=document.documentElement,m=window.innerHeight||g.clientHeight,b=window.innerWidth||g.clientWidth;return f.left>=0&&f.top>=0&&f.right<=b&&f.bottom<=m}};function Ue(e,t,n,r,i){let s=Array.isArray(n)?n:n.split(Le);const o=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=t.classList,l=e=>{const[t,n]=e.split("-"),r=[];return i&&(r.push(`${i}-${t}`),n&&r.push(`${i}-${t}-${n}
1`),r.forEach(e=>{a.add(e)})),r};i&&o.forEach(e=>{a.remove(`${i}-${e}`)});let u=s.findIndex(e=>"auto"===e);u>=0&&o.forEach(function(e){null==s.find(t=>-1!==t.search("^"+e))&&s.splice(u++,1,e)});const c=t.style;c.position="absolute",c.top="0",c.left="0",c["will-change"]="transform";let h=null,d=!1;for(h of s){let n=l(h);if(Ve.positionElements(e,t,h,r)){d=!0;break}i&&n.forEach(e=>{a.remove(e)})}return d||(h=s[0],l(h),Ve.positionElements(e,t,h,r)),h}Object(r.U)(()=>ze),Object(r.U)(()=>ze);let ze=class{constructor(e,t,n,i,s,o,a,l,u,c,h){this._parserFormatter=e,this._elRef=t,this._vcRef=n,this._renderer=i,this._cfr=s,this._ngZone=o,this._calendar=a,this._dateAdapter=l,this._document=u,this._changeDetector=c,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this.dateSelect=new r.n,this.navigate=new r.n,this.closed=new r.n,this._onChange=e=>{},this._onTouched=()=>{},this._validatorChange=()=>{},["autoClose","container","positionTarget","placement"].forEach(e=>this[e]=h[e]),this._zoneSubscription=o.onStable.subscribe(()=>this._updatePopupPosition())}get disabled(){return this._disabled}set disabled(e){this._disabled=""===e||e&&"false"!==e,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}registerOnValidatorChange(e){this._validatorChange=e}setDisabledState(e){this.disabled=e}validate(e){const{value:t}=e;if(null!=t){const e=this._fromDateStruct(this._dateAdapter.fromModel(t));if(!e)return{ngbDate:{invalid:t}};if(this.minDate&&e.before(le.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:t}}};if(this.maxDate&&e.after(le.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:t}}}}return null}writeValue(e){this._model=this._fromDateStruct(this._dateAdapter.fromModel(e)),this._writeModelValue(this._model)}manualDateChange(e,t=!1){const n=e!==this._inputValue;n&&(this._inputValue=e,this._model=this._fromDateStruct(this._parserFormatter.parse(e))),!n&&t||this._onChange(this._model?this._dateAdapter.toModel(this._model):""===e?null:e),t&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){const e=this._cfr.resolveComponentFactory(Ee);this._cRef=this._vcRef.createComponent(e),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef.instance),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(e=>{this.writeValue(e),this._onChange(e),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,Fe(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),this._cRef.instance.focus(),Pe(this._ngZone,this._document,this.autoClose,()=>this.close(),this.closed,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this.closed.emit(),this._changeDetector.markForCheck();let e=this._elWithFocus;R(this.restoreFocus)?e=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(e=this.restoreFocus),e&&e.focus?e.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(e){this.isOpen()&&this._cRef.instance.navigateTo(e)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(e){(e.minDate||e.maxDate)&&(this._validatorChange(),this.isOpen()&&(e.minDate&&(this._cRef.instance.minDate=this.minDate),e.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(e)))}ngOnDestroy(){this.close(),this._zoneSubscription.unsubscribe()}_applyDatepickerInputs(e){["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekdays","showWeekNumbers"].forEach(t=>{void 0!==this[t]&&(e[t]=this[t])}),e.startDate=this.startDate||this._model}_applyPopupStyling(e){this._renderer.addClass(e,"dropdown-menu"),this._renderer.addClass(e,"show"),"body"===this.container&&this._renderer.addClass(e,"ngb-dp-body")}_subscribeForDatepickerOutputs(e){e.navigate.subscribe(e=>this.navigate.emit(e)),e.dateSelect.subscribe(e=>{this.dateSelect.emit(e),!0!==this.autoClose&&"inside"!==this.autoClose||this.close()})}_writeModelValue(e){const t=this._parserFormatter.format(e);this._inputValue=t,this._renderer.setProperty(this._elRef.nativeElement,"value",t),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(e)),this._onTouched())}_fromDateStruct(e){const t=e?new le(e.year,e.month,e.day):null;return this._calendar.isValid(t)?t:null}_updatePopupPosition(){if(!this._cRef)return;let e;if(e=R(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this.positionTarget&&!e)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");Ue(e,this._cRef.location.nativeElement,this.placement,"body"===this.container)}},$e=class{constructor(e){this.i18n=e}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}},qe=class{constructor(e,t){this.i18n=e,this._renderer=t,this.select=new r.n,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new le(this.date.year,j(e),1))}changeYear(e){this.select.emit(new le(j(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}};new Date(1882,10,12),new Date(2174,10,25);let He=class{},We=(()=>{let e=class{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Be=class{},Ke=class{constructor(e,t){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=t.nativeElement}},Qe=class{constructor(e,t){this.dropdown=e,this.nativeElement=t.nativeElement}},Ze=class extends Qe{constructor(e,t){super(e,t)}},Ge=class{constructor(e,t,n,i,o,a,l){this._changeDetector=e,this._document=n,this._ngZone=i,this._elementRef=o,this._renderer=a,this._closed$=new s.a,this._bodyContainer=null,this._open=!1,this.openChange=new r.n,this.placement=t.placement,this.container=t.container,this.autoClose=t.autoClose,this.display=l?"static":"dynamic",this._zoneSubscription=i.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(Object(k.a)(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.isFirstChange&&this._applyPlacementClasses()}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}_setCloseHandlers(){Pe(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(e){const t=e.which,n=this._getMenuElements();let r=-1,i=null;const s=this._isEventFromToggle(e);
1if(!s&&n.length&&n.forEach((t,n)=>{t.contains(e.target)&&(i=t),t===this._document.activeElement&&(r=n)}),t!==xe.Space&&t!==xe.Enter){if(t!==xe.Tab){if(s||i){if(this.open(),n.length){switch(t){case xe.ArrowDown:r=Math.min(r+1,n.length-1);break;case xe.ArrowUp:if(this._isDropup()&&-1===r){r=n.length-1;break}r=Math.max(r-1,0);break;case xe.Home:r=0;break;case xe.End:r=n.length-1}n[r].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const t=this._menu.nativeElement.querySelectorAll(Ne);e.shiftKey&&e.target===t[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):e.shiftKey||e.target!==t[t.length-1]||(this._anchor.nativeElement.focus(),this.close())}else Object(c.a)(e.target,"focusout").pipe(Object(k.a)(1)).subscribe(({relatedTarget:e})=>{this._elementRef.nativeElement.contains(e)||this.close()})}}else!i||!0!==this.autoClose&&"inside"!==this.autoClose||Object(c.a)(i,"click").pipe(Object(k.a)(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(e=>!e.disabled).map(e=>e.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&this._applyPlacementClasses("dynamic"===this.display?Ue(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;if(this._menu){const t=this._menu.nativeElement;e.appendChild(this._elementRef.nativeElement,t),e.removeStyle(t,"position"),e.removeStyle(t,"transform")}this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const e=this._renderer,t=this._menu.nativeElement,n=this._bodyContainer=this._bodyContainer||e.createElement("div");e.setStyle(n,"position","absolute"),e.setStyle(t,"position","static"),e.setStyle(n,"z-index","1050"),e.appendChild(n,t),e.appendChild(this._document.body,n)}}_applyPlacementClasses(e){const t=this._menu;if(t){e||(e=this._getFirstPlacement(this.placement));const n=this._renderer,r=this._elementRef.nativeElement;n.removeClass(r,"dropup"),n.removeClass(r,"dropdown"),t.placement="static"===this.display?null:e;const i=-1!==e.search("^top")?"dropup":"dropdown";n.addClass(r,i);const s=this._bodyContainer;s&&(n.removeClass(s,"dropup"),n.removeClass(s,"dropdown"),n.addClass(s,i))}}},Ye=class{},Je=(()=>{let e=class{constructor(){this.backdrop=!0,this.keyboard=!0}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e},token:e,providedIn:"root"}),e})();class Xe{constructor(e,t,n){this.nodes=e,this.viewRef=t,this.componentRef=n}}class et{constructor(e,t,n,r,i,s){this._type=e,this._injector=t,this._viewContainerRef=n,this._renderer=r,this._componentFactoryResolver=i,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(e,t){return this._windowRef||(this._contentRef=this._getContentRef(e,t),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes)),this._windowRef}close(){var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null,(null===(e=this._contentRef)||void 0===e?void 0:e.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null))}_getContentRef(e,t){if(e){if(e instanceof r.M){const n=e.createEmbeddedView(t);return this._applicationRef.attachView(n),new Xe([n.rootNodes],n)}return new Xe([[this._renderer.createText(`${e}`)]])}return new Xe([])}}const tt=()=>{};let nt=(()=>{let e=class{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):tt}_adjustBody(e){const t=this._document.body,n=t.style.paddingRight,r=parseFloat(window.getComputedStyle(t)["padding-right"]);return t.style["padding-right"]=`${r+e}px`,()=>t.style["padding-right"]=n}_isPresent(e){const t=this._document.body.getBoundingClientRect();return window.innerWidth-(t.left+t.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const t=this._document.body;t.appendChild(e);const n=e.getBoundingClientRect().width-e.clientWidth;return t.removeChild(e),n}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e(Object(r.bc)(i.d))},token:e,providedIn:"root"}),e})(),rt=class{};class it{close(e){}dismiss(e){}}class st{constructor(e,t,n,r){this._windowCmptRef=e,this._contentRef=t,this._backdropCmptRef=n,this._beforeDismiss=r,e.instance.dismissEvent.subscribe(e=>{this.dismiss(e)}),this.result=new Promise((e,t)=>
1{this._resolve=e,this._reject=t}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}close(e){this._windowCmptRef&&(this._resolve(e),this._removeModalElements())}_dismiss(e){this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();t&&t.then?t.then(t=>{!1!==t&&this._dismiss(e)},()=>{}):!1!==t&&this._dismiss(e)}else this._dismiss(e)}_removeModalElements(){const e=this._windowCmptRef.location.nativeElement;if(e.parentNode.removeChild(e),this._windowCmptRef.destroy(),this._backdropCmptRef){const e=this._backdropCmptRef.location.nativeElement;e.parentNode.removeChild(e),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null}}var ot=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}({});let at=class{constructor(e,t,n){this._document=e,this._elRef=t,this._zone=n,this._closed$=new s.a,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new r.n}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){const{nativeElement:e}=this._elRef;if(this._zone.runOutsideAngular(()=>{Object(c.a)(e,"keydown").pipe(Object(S.a)(this._closed$),Object(O.a)(e=>e.which===xe.Escape&&this.keyboard)).subscribe(e=>requestAnimationFrame(()=>{e.defaultPrevented||this._zone.run(()=>this.dismiss(ot.ESC))}));let t=!1;Object(c.a)(this._dialogEl.nativeElement,"mousedown").pipe(Object(S.a)(this._closed$),Object(E.a)(()=>t=!1),Object(C.a)(()=>Object(c.a)(e,"mouseup").pipe(Object(S.a)(this._closed$),Object(k.a)(1))),Object(O.a)(({target:t})=>e===t)).subscribe(()=>{t=!0}),Object(c.a)(e,"click").pipe(Object(S.a)(this._closed$)).subscribe(({target:n})=>{!0!==this.backdrop||e!==n||t||this._zone.run(()=>this.dismiss(ot.BACKDROP_CLICK)),t=!1})}),!e.contains(document.activeElement)){const t=e.querySelector("[ngbAutofocus]"),n=Me(e)[0];(t||n||e).focus()}}ngOnDestroy(){const e=this._document.body,t=this._elWithFocus;let n;n=t&&t.focus&&e.contains(t)?t:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null}),this._closed$.next()}},lt=(()=>{let e=class{constructor(e,t,n,i,o,a){this._applicationRef=e,this._injector=t,this._document=n,this._scrollBar=i,this._rendererFactory=o,this._ngZone=a,this._activeWindowCmptHasChanged=new s.a,this._ariaHiddenValues=new Map,this._backdropAttributes=["backdropClass"],this._modalRefs=[],this._windowAttributes=["ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new r.n,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const e=this._windowCmpts[this._windowCmpts.length-1];Fe(this._ngZone,e.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(e.location.nativeElement)}})}open(e,t,n,r){const i=r.container instanceof HTMLElement?r.container:M(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!i)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);const l=new it,u=this._getContentRef(e,r.injector||t,n,l,r);let c=!1!==r.backdrop?this._attachBackdrop(e,i):void 0,h=this._attachWindowComponent(e,i,u),d=new st(h,u,c,r.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(h),d.result.then(o,o),d.result.then(a,a),l.close=e=>{d.close(e)},l.dismiss=e=>{d.dismiss(e)},this._applyWindowOptions(h.instance,r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),c&&c.instance&&this._applyBackdropOptions(c.instance,r),d}get activeInstances(){return this._activeInstances}
1dismissAll(e){this._modalRefs.forEach(t=>t.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,t){let n=e.resolveComponentFactory(rt).create(this._injector);return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}_attachWindowComponent(e,t,n){let r=e.resolveComponentFactory(at).create(this._injector,n.nodes);return this._applicationRef.attachView(r.hostView),t.appendChild(r.location.nativeElement),r}_applyWindowOptions(e,t){this._windowAttributes.forEach(n=>{M(t[n])&&(e[n]=t[n])})}_applyBackdropOptions(e,t){this._backdropAttributes.forEach(n=>{M(t[n])&&(e[n]=t[n])})}_getContentRef(e,t,n,i,s){return n?n instanceof r.M?this._createFromTemplateRef(n,i):R(n)?this._createFromString(n):this._createFromComponent(e,t,n,i,s):new Xe([])}_createFromTemplateRef(e,t){const n=e.createEmbeddedView({$implicit:t,close(e){t.close(e)},dismiss(e){t.dismiss(e)}});return this._applicationRef.attachView(n),new Xe([n.rootNodes],n)}_createFromString(e){const t=this._document.createTextNode(`${e}`);return new Xe([[t]])}_createFromComponent(e,t,n,i,s){const o=e.resolveComponentFactory(n),a=r.r.create({providers:[{provide:it,useValue:i}],parent:t}),l=o.create(a),u=l.location.nativeElement;return s.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new Xe([[u]],l.hostView,l)}_setAriaHidden(e){const t=e.parentElement;t&&e!==this._document.body&&(Array.from(t.children).forEach(t=>{t!==e&&"SCRIPT"!==t.nodeName&&(this._ariaHiddenValues.set(t,t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}),this._setAriaHidden(t))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const t=()=>{const t=this._modalRefs.indexOf(e);t>-1&&(this._modalRefs.splice(t,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(t,t)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const t=this._windowCmpts.indexOf(e);t>-1&&(this._windowCmpts.splice(t,1),this._activeWindowCmptHasChanged.next())})}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e(Object(r.bc)(r.g),Object(r.bc)(r.o),Object(r.bc)(i.d),Object(r.bc)(nt),Object(r.bc)(r.F),Object(r.bc)(r.z))},token:e,providedIn:"root"}),e})(),ut=(()=>{let e=class{constructor(e,t,n,r){this._moduleCFR=e,this._injector=t,this._modalStack=n,this._config=r}open(e,t={}){const n=Object.assign({},this._config,t);return this._modalStack.open(this._moduleCFR,this._injector,e,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e(Object(r.bc)(r.j),Object(r.bc)(r.o),Object(r.bc)(lt),Object(r.bc)(Je))},token:e,providedIn:"root"}),e})(),ct=class{},ht=(()=>{let e=class{constructor(){this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const dt=e=>M(e)&&""!==e;let pt=0,ft=class{constructor(e){this.templateRef=e}},gt=class{constructor(e,t){this.elementRef=t,this.disabled=!1,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){M(this.domId)||(this.domId="ngb-nav-"+pt++)}get active(){return this._nav.activeId===this.id}get id(){return dt(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(M(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}},mt=class{constructor(e,t,n,i){this.role=e,this._cd=n,this._document=i,this.activeIdChange=new r.n,this.navChange=new r.n,this.destroyOnHide=t.destroyOnHide,this.orientation=t.orientation,this.roles=t.roles,this.keyboard=t.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const t=e.which,n=this.links.filter(e=>!e.navItem.disabled),{length:r}=n;let i=-1;
1if(n.forEach((e,t)=>{e.elRef.nativeElement===this._document.activeElement&&(i=t)}),r){switch(t){case xe.ArrowLeft:if("vertical"===this.orientation)return;i=(i-1+r)%r;break;case xe.ArrowRight:if("vertical"===this.orientation)return;i=(i+1)%r;break;case xe.ArrowDown:if("horizontal"===this.orientation)return;i=(i+1)%r;break;case xe.ArrowUp:if("horizontal"===this.orientation)return;i=(i-1+r)%r;break;case xe.Home:i=0;break;case xe.End:i=r-1}"changeWithArrows"===this.keyboard&&this.select(n[i].navItem.id),n[i].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!M(this.activeId)){const e=this.items.first?this.items.first.id:null;dt(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}}_updateActiveId(e,t=!0){if(this.activeId!==e){let n=!1;t&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{n=!0}}),n||(this.activeId=e,this.activeIdChange.emit(e))}}},bt=class{constructor(e,t,n,r){this.role=e,this.navItem=t,this.nav=n,this.elRef=r}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}},yt=class{},_t=class{},vt=(()=>{let e=class{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),wt=class{constructor(e){this.templateRef=e}},Ct=class{constructor(e){this.templateRef=e}},St=class{constructor(e){this.templateRef=e}},Ot=class{constructor(e){this.templateRef=e}},kt=class{constructor(e){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new r.n(!0),this.disabled=e.disabled,this.boundaryLinks=e.boundaryLinks,this.directionLinks=e.directionLinks,this.ellipses=e.ellipses,this.maxSize=e.maxSize,this.pageSize=e.pageSize,this.rotate=e.rotate,this.size=e.size}hasPrevious(){return this.page>1}hasNext(){return this.page<this.pageCount}nextDisabled(){return!this.hasNext()||this.disabled}previousDisabled(){return!this.hasPrevious()||this.disabled}selectPage(e){this._updatePages(e)}ngOnChanges(e){this._updatePages(this.page)}isEllipsis(e){return-1===e}_applyEllipses(e,t){this.ellipses&&(e>0&&(e>2?this.pages.unshift(-1):2===e&&this.pages.unshift(2),this.pages.unshift(1)),t<this.pageCount&&(t<this.pageCount-2?this.pages.push(-1):t===this.pageCount-2&&this.pages.push(this.pageCount-1),this.pages.push(this.pageCount)))}_applyRotation(){let e=0,t=this.pageCount,n=Math.floor(this.maxSize/2);return this.page<=n?t=this.maxSize:this.pageCount-this.page<n?e=this.pageCount-this.maxSize:(e=this.page-n-1,t=this.page+(this.maxSize%2==0?n-1:n)),[e,t]}_applyPagination(){let e=(Math.ceil(this.page/this.maxSize)-1)*this.maxSize;return[e,e+this.maxSize]}_setPageInRange(e){const t=this.page;this.page=A(e,this.pageCount,1),this.page!==t&&P(this.collectionSize)&&this.pageChange.emit(this.page)}_updatePages(e){this.pageCount=Math.ceil(this.collectionSize/this.pageSize),P(this.pageCount)||(this.pageCount=0),this.pages.length=0;for(let t=1;t<=this.pageCount;t++)this.pages.push(t);if(this._setPageInRange(e),this.maxSize>0&&this.pageCount>this.maxSize){let e=0,t=this.pageCount;[e,t]=this.rotate?this._applyRotation():this._applyPagination(),this.pages=this.pages.slice(e,t),this._applyEllipses(e,t)}}},Et=class{};class xt{constructor(e,t){this.open=e,this.close=t,t||(this.close=e)}isManual(){return"manual"===this.open||"manual"===this.close}}const Tt={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},It=e=>e>0?Object(T.a)(e):e=>e;let jt=class{isTitleTemplate(){return this.title instanceof r.M}},Dt=class{},At=(()=>{let e=class{constructor(){this.max=100,this.animated=!1,this.striped=!1,this.showValue=!1}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Rt=class{constructor(e){this.value=0,this.max=e.max,this.animated=e.animated,this.striped=e.striped,this.textType=e.textType,this.type=e.type,this.showValue=e.showValue,this.height=e.height}set max(e){this._max=!P(e)||e<=0?100:e}get max(){return this._max}getValue(){return A(this.value,this.max)}getPercentValue(){return 100*this.getValue()/this.max}},Pt=class{},Nt=(()=>{let e=class{constructor(){this.max=10,this.readonly=!1,this.resettable=!1}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e},token:e,providedIn:"root"}),e})();Object(r.U)(()=>Mt);let Mt=class{constructor(e,t){this._changeDetectorRef=t,this.contexts=[],this.disabled=!1,this.hover=new r.n,this.leave=ne
1w r.n,this.rateChange=new r.n(!0),this.onChange=e=>{},this.onTouched=()=>{},this.max=e.max,this.readonly=e.readonly}ariaValueText(){return`${this.nextRate} out of ${this.max}`}enter(e){this.readonly||this.disabled||this._updateState(e),this.hover.emit(e)}handleBlur(){this.onTouched()}handleClick(e){this.readonly||this.disabled||this.update(this.resettable&&this.rate===e?0:e)}handleKeyDown(e){switch(e.which){case xe.ArrowDown:case xe.ArrowLeft:this.update(this.rate-1);break;case xe.ArrowUp:case xe.ArrowRight:this.update(this.rate+1);break;case xe.Home:this.update(0);break;case xe.End:this.update(this.max);break;default:return}e.preventDefault()}ngOnChanges(e){e.rate&&this.update(this.rate)}ngOnInit(){this.contexts=Array.from({length:this.max},(e,t)=>({fill:0,index:t})),this._updateState(this.rate)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(e){this.disabled=e}update(e,t=!0){const n=A(e,this.max,0);this.readonly||this.disabled||this.rate===n||(this.rate=n,this.rateChange.emit(this.rate)),t&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(e){this.update(e,!1),this._changeDetectorRef.markForCheck()}_getFillValue(e){const t=this.nextRate-e;return t>=1?100:t<1&&t>0?parseInt((100*t).toFixed(2),10):0}
1_updateState(e){this.nextRate=e,this.contexts.forEach((e,t)=>e.fill=this._getFillValue(t))}},Ft=class{},Lt=(()=>{let e=class{constructor(){this.justify="start",this.orientation="horizontal",this.type="tabs"}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Vt=class{constructor(e){this.destroyOnHide=!0,this.tabChange=new r.n,this.type=e.type,this.justify=e.justify,this.orientation=e.orientation}set justify(e){this.justifyClass="fill"===e||"justified"===e?`nav-${e}`:`justify-content-${e}`}select(e){let t=this._getTabById(e);if(t&&!t.disabled&&this.activeId!==t.id){let e=!1;this.tabChange.emit({activeId:this.activeId,nextId:t.id,preventDefault:()=>{e=!0}}),e||(this.activeId=t.id)}}ngAfterContentChecked(){let e=this._getTabById(this.activeId);this.activeId=e?e.id:this.tabs.length?this.tabs.first.id:null}_getTabById(e){let t=this.tabs.filter(t=>t.id===e);return t.length?t[0]:null}},Ut=class{};class zt{constructor(e,t,n){this.hour=j(e),this.minute=j(t),this.second=j(n)}changeHour(e=1){this.updateHour((isNaN(this.hour)?0:this.hour)+e)}updateHour(e){this.hour=P(e)?(e<0?24+e:e)%24:NaN}changeMinute(e=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+e)}updateMinute(e){P(e)?(this.minute=e%60<0?60+e%60:e%60,this.changeHour(Math.floor(e/60))):this.minute=NaN}changeSecond(e=1){this.updateSecond((isNaN(this.second)?0:this.second)+e)}updateSecond(e){P(e)?(this.second=e<0?60+e%60:e%60,this.changeMinute(Math.floor(e/60))):this.second=NaN}isValid(e=!0){return P(this.hour)&&P(this.minute)&&(!e||P(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let $t=(()=>{let e=class{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e},token:e,providedIn:"root"}),e})();function qt(){return new Wt}let Ht=(()=>{let e=class{};return e.\u0275prov=Object(r.ac)({factory:qt,token:e,providedIn:"root"}),e})(),Wt=class extends Ht{fromModel(e){return e&&N(e.hour)&&N(e.minute)?{hour:e.hour,minute:e.minute,second:N(e.second)?e.second:null}:null}toModel(e){return e&&N(e.hour)&&N(e.minute)?{hour:e.hour,minute:e.minute,second:N(e.second)?e.second:null}:null}},Bt=(()=>{let e=class{};return e.\u0275prov=Object(r.ac)({factory:function(){return e=Object(r.bc)(r.u),new Kt(e);var e},token:e,providedIn:"root"}),e})(),Kt=class extends Bt{constructor(e){super(),this._periods=Object(i.A)(e,i.g.Standalone,i.w.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}};const Qt=/[^0-9]/g;Object(r.U)(()=>Zt);let Zt=class{constructor(e,t,n,r){this._config=e,this._ngbTimeAdapter=t,this._cd=n,this.i18n=r,this.onChange=e=>{},this.onTouched=()=>{},this.meridian=e.meridian,this.spinners=e.spinners,this.seconds=e.seconds,this.hourStep=e.hourStep,this.minuteStep=e.minuteStep,this.secondStep=e.secondStep,this.disabled=e.disabled,this.readonlyInputs=e.readonlyInputs,this.size=e.size}set hourStep(e){this._hourStep=N(e)?e:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(e){this._minuteStep=N(e)?e:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(e){this._secondStep=N(e)?e:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(e){const t=this._ngbTimeAdapter.fromModel(e);this.model=t?new zt(t.hour,t.minute,t.second):new zt,this.seconds||t&&P(t.second)||(this.model.second=0),this._cd.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}changeHour(e){this.model.changeHour(e),this.propagateModelChange()}changeMinute(e){this.model.changeMinute(e),this.propagateModelChange()}changeSecond(e){this.model.changeSecond(e),this.propagateModelChange()}updateHour(e){const t=this.model.hour>=12,n=j(e);this.model.updateHour(this.meridian&&(t&&n<12||!t&&12===n)?n+12:n),this.propagateModelChange()}
1updateMinute(e){this.model.updateMinute(j(e)),this.propagateModelChange()}updateSecond(e){this.model.updateSecond(j(e)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(e){e.value=e.value.replace(Qt,"")}formatHour(e){return P(e)?F(this.meridian?e%12==0?12:e%12:e%24):F(NaN)}formatMinSec(e){return F(P(e)?e:NaN)}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(e){e.seconds&&!this.seconds&&this.model&&!P(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(e=!0){e&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}},Gt=class{},Yt=(()=>{let e=class{constructor(){this.autohide=!0,this.delay=500,this.ariaLive="polite"}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Jt=class{constructor(e,t){this.ariaLive=e,this.contentHeaderTpl=null,this.hideOutput=new r.n,null==this.ariaLive&&(this.ariaLive=t.ariaLive),this.delay=t.delay,this.autohide=t.autohide}ngAfterContentInit(){this._init()}ngOnChanges(e){"autohide"in e&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout(),this.hideOutput.emit()}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}},Xt=class{},en=(()=>{let e=class{constructor(){this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}};return e.\u0275prov=Object(r.ac)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),tn=0,nn=class{},rn=class{constructor(e,t,n,i,s,o,a,l,u,c){this._elementRef=e,this._renderer=t,this._ngZone=a,this._document=l,this._changeDetector=u,this.shown=new r.n,this.hidden=new r.n,this._ngbTooltipWindowId="ngb-tooltip-"+tn++,this._windowRef=null,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disableTooltip=o.disableTooltip,this.tooltipClass=o.tooltipClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new et(nn,n,s,t,i,c),this._zoneSubscription=a.onStable.subscribe(()=>{this._windowRef&&Ue(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){this._windowRef||!this._ngbTooltip||this.disableTooltip||(this._windowRef=this._popupService.open(this._ngbTooltip,e),this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),Pe(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),this.shown.emit())}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck())}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function(e,t,n,r,i,s,o=0,a=0){const l=function(e,t=Tt){const n=(e||"").trim();if(0===n.length)return[];const r=n.split(/\s+/).map(e=>e.split(":")).map(e=>{let n=t[e[0]]||e;return new xt(n[0],n[1])}),i=r.filter(e=>e.isManual());if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===i.length&&r.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return r}(n);if(1===l.length&&l[0].isManual())return()=>{};const u=function(e,t,n,r){return new y.a(i=>{const s=[],o=()=>i.next(!0),a=()=>i.next(!1),l=()=>i.next(!r());
1return n.forEach(n=>{n.open===n.close?s.push(e.listen(t,n.open,l)):s.push(e.listen(t,n.open,o),e.listen(t,n.close,a))}),()=>{s.forEach(e=>e())}})}(e,t,l,r).pipe(function(e,t,n){return r=>{let i=null;const s=r.pipe(Object(_.a)(e=>({open:e})),Object(O.a)(e=>{const t=n();return t===e.open||i&&i.open!==t?(i&&i.open!==e.open&&(i=null),!1):(i=e,!0)}),Object(I.a)()),o=s.pipe(Object(O.a)(e=>e.open),It(e)),a=s.pipe(Object(O.a)(e=>!e.open),It(t));return Object(h.a)(o,a).pipe(Object(O.a)(e=>e===i&&(i=null,e.open!==n())),Object(_.a)(e=>e.open))}}(o,a,r)).subscribe(e=>e?i():s());return()=>u.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}},sn=class{},on=class{constructor(){this.highlightClass="ngb-highlight"}ngOnChanges(e){const t=D(this.result),n=(Array.isArray(this.term)?this.term:[this.term]).map(e=>D(e).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")).filter(e=>e);this.parts=n.length?t.split(new RegExp(`(${n.join("|")})`,"gmi")):[t]}},an=class{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=D,this.selectEvent=new r.n,this.activeChangeEvent=ne
1w r.n}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(e){this.activeIdx=e,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:0===this.activeIdx?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(e){this.selectEvent.emit(e)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}};new r.q("live announcer delay",{providedIn:"root",factory:function(){return 100}}),Object(r.U)(()=>un);let ln=0,un=class{constructor(e,t,n,i,a,l,u,h,d,p,f,g){this._elementRef=e,this._renderer=n,this._live=h,this._document=d,this._ngZone=p,this._changeDetector=f,this._subscription=null,this._closed$=new s.a,this._inputValueBackup=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new r.n,this.activeDescendant=null,this.popupId="ngb-typeahead-"+ln++,this._onTouched=()=>{},this._onChange=e=>{},this.container=l.container,this.editable=l.editable,this.focusFirst=l.focusFirst,this.showHint=l.showHint,this.placement=l.placement,this._valueChanges=Object(c.a)(e.nativeElement,"input").pipe(Object(_.a)(e=>e.target.value)),this._resubscribeTypeahead=new o.a(null),this._popupService=new et(an,i,t,n,a,g),this._zoneSubscription=u.onStable.subscribe(()=>{this.isPopupOpen()&&Ue(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container)})}ngOnInit(){const e=this._valueChanges.pipe(Object(E.a)(e=>{this._inputValueBackup=this.showHint?e:null,this._onChange(this.editable?e:void 0)})).pipe(this.ngbTypeahead),t=this._resubscribeTypeahead.pipe(Object(C.a)(()=>e));this._subscription=this._subscribeToUserInput(t)}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}writeValue(e){this._writeInputValue(this._formatItemForInput(e)),this.showHint&&(this._inputValueBackup=e)}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(e){if(this.isPopupOpen())switch(e.which){case xe.ArrowDown:e.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case xe.ArrowUp:e.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case xe.Enter:case xe.Tab:const t=this._windowRef.instance.getActive();M(t)&&(e.preventDefault(),e.stopPropagation(),this._selectResult(t)),this._closePopup()}}_openPopup(){this.isPopupOpen()||(this._inputValueBackup=this._elementRef.nativeElement.value,this._windowRef=this._popupService.open(),this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe(e=>this._selectResultClosePopup(e)),this._windowRef.instance.activeChangeEvent.subscribe(e=>this.activeDescendant=e),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._changeDetector.markForCheck(),Pe(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement]))}_closePopup(){this._closed$.next(),this._popupService.close(),this._windowRef=null,this.activeDescendant=null}_selectResult(e){let t=!1;this.selectItem.emit({item:e,preventDefault:()=>{t=!0}}),this._resubscribeTypeahead.next(null),t||(this.writeValue(e),this._onChange(e))}_selectResultClosePopup(e){this._selectResult(e),this._closePopup()}_showHint(){var e;if(this.showHint&&(null===(e=this._windowRef)||void 0===e?void 0:e.instance.hasActive())&&null!=this._inputValueBackup){const e=this._inputValueBackup.toLowerCase(),t=this._formatItemForInput(this._windowRef.instance.getActive());e===t.substr(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+t.substr(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,t.length])):this._writeInputValue(t)}}_formatItemForInput(e){return null!=e&&this.inputFormatter?this.inputFormatter(e):D(e)}_writeInputValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",D(e))}_subscribeToUserInput(e){return e.subscribe(e=>{e&&0!==e.length?(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=e,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const t=e?e.length:0;this._live.say(0===t?"No results available":`${t} result${1===t?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}},cn=class{},hn=class{}},GS7A:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return b}),n.d(t,"e",function(){return a}),n.d(t,"f",function(){return f}),n.d(t,"g",function(){return l}),n.d(t,"h",function(){return d}),n.d(t,"i",function(){return g}),n.d(t,"j",function(){return u}),n.d(t,"k",function(){return h}),n.d(t,"l",function(){return c}),n.d(t,"m",function(){return p}),n.d(t,"n",function(){return o}
1),n.d(t,"o",function(){return y}),n.d(t,"p",function(){return _});class r{}class i{}const s="*";function o(e,t){return{type:7,name:e,definitions:t,options:{}}}function a(e,t=null){return{type:4,styles:t,timings:e}}function l(e,t=null){return{type:3,steps:e,options:t}}function u(e,t=null){return{type:2,steps:e,options:t}}function c(e){return{type:6,styles:e,offset:null}}function h(e,t,n){return{type:0,name:e,styles:t,options:n}}function d(e){return{type:5,steps:e}}function p(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function f(e=null){return{type:9,options:e}}function g(e,t,n=null){return{type:11,selector:e,animation:t,options:n}}function m(e){Promise.resolve(null).then(e)}class b{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class y{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,r=0;const i=this.players.length;0==i?m(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==i&&this._onFinish()}),e.onDestroy(()=>{++n==i&&this._onDestroy()}),e.onStart(()=>{++r==i&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}const _="!"},GyhO:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("LRne"),i=n("0EUg");function s(...e){return Object(i.a)()(Object(r.a)(...e))}},HDdC:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("7o/Q"),i=n("2QA8"),s=n("gRHU"),o=n("kJWO"),a=n("SpAZ"),l=n("2fFW");let u=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:o}=this,a=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[i.a])return e[i.a]()}return e||t||n?new r.a(e,t,n):new r.a(s.a)}
1(e,t,n);if(a.add(o?o.call(a,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(e){try{return this._subscribe(e)}catch(t){l.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:i}=e;if(t||i)return!1;e=n&&n instanceof r.a?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=c(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(i){n(i),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[o.a](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?a.a:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=c(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function c(e){if(e||(e=l.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},I55L:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=e=>e&&"number"==typeof e.length&&"function"!=typeof e},IheW:function(e,t,n){"use strict";n.d(t,"a",function(){return T}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return E}),n.d(t,"d",function(){return z}),n.d(t,"e",function(){return U}),n.d(t,"f",function(){return c}),n.d(t,"g",function(){return g}),n.d(t,"h",function(){return R}),n.d(t,"i",function(){return M}),n.d(t,"j",function(){return D}),n.d(t,"k",function(){return V}),n.d(t,"l",function(){return A}),n.d(t,"m",function(){return P}),n.d(t,"n",function(){return N}),n.d(t,"o",function(){return F}),n.d(t,"p",function(){return L});var r=n("8Y7J"),i=n("LRne"),s=n("HDdC"),o=n("bOdf"),a=n("pLZG"),l=n("lJxs"),u=n("SVse");class c{}class h{}class d{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),r=n.toLowerCase(),i=e.slice(t+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(i):this.headers.set(r,[i])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new d;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const i=e.value;if(i){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===i.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEac
vendor: 4,515 bytes, line 1
1h(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class p{encodeKey(e){return f(e)}encodeValue(e){return f(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function f(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class g{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new p,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.split("&").forEach(e=>{const r=e.indexOf("="),[i,s]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],o=n.get(i)||[];o.push(s),n.set(i,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new g({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat([e]),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function m(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function b(e){return"undefined"!=typeof Blob&&e instanceof Blob}function y(e){return"undefined"!=typeof FormData&&e instanceof FormData}class _{constructor(e,t,n,r){let i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new d),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new g,this.urlWithParams=t}serializeBody(){return null===this.body?null:m(this.body)||b(this.body)||y(this.body)||"string"==typeof this.body?this.body:this.body instanceof g?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||y(this.body)?null:b(this.body)?this.body.type||null:m(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof g?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(e={}){const t=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,i=void 0!==e.body?e.body:this.body,s=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,o=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new _(t,n,i,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:s})}}
1var v=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class w{constructor(e,t=200,n="OK"){this.headers=e.headers||new d,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class C extends w{constructor(e={}){super(e),this.type=v.ResponseHeader}clone(e={}){return new C({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class S extends w{constructor(e={}){super(e),this.type=v.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new S({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class O extends w{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function k(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}class E{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof _)r=e;else{let i,s;i=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(s=n.params instanceof g?n.params:new g({fromObject:n.params})),r=new _(e,t,void 0!==n.body?n.body:null,{headers:i,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Object(i.a)(r).pipe(Object(o.a)(e=>this.handler.handle(e)));if(e instanceof _||"events"===n.observe)return s;const u=s.pipe(Object(a.a)(e=>e instanceof S));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return u.pipe(Object(l.a)(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(Object(l.a)(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(Object(l.a)(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));default:return u.pipe(Object(l.a)(e=>e.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new g).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,k(n,t))}post(e,t,n={}){return this.request("POST",e,k(n,t))}put(e,t,n={}){return this.request("PUT",e,k(n,t))}}class x{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const T=new r.q("HTTP_INTERCEPTORS");class I{intercept(e,t){return t.handle(e)}}const j=/^\)\]\}',?\n/;class D{}class A{constructor(){}build(){return new XMLHttpRequest}}class R{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new s.a(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const r=e.serializeBody();let i=null;const s=()=>
1{if(null!==i)return i;const t=1223===n.status?204:n.status,r=n.statusText||"OK",s=new d(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return i=new C({headers:s,status:t,statusText:r,url:o}),i},o=()=>{let{headers:r,status:i,statusText:o,url:a}=s(),l=null;204!==i&&(l=void 0===n.response?n.responseText:n.response),0===i&&(i=l?200:0);let u=i>=200&&i<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(j,"");try{l=""!==l?JSON.parse(l):null}catch(c){l=e,u&&(u=!1,l={error:c,text:l})}}u?(t.next(new S({body:l,headers:r,status:i,statusText:o,url:a||void 0})),t.complete()):t.error(new O({error:l,headers:r,status:i,statusText:o,url:a||void 0}))},a=e=>{const{url:r}=s(),i=new O({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(i)};let l=!1;const u=r=>{l||(t.next(s()),l=!0);let i={type:v.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===e.responseType&&n.responseText&&(i.partialText=n.responseText),t.next(i)},c=e=>{let n={type:v.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),e.reportProgress&&(n.addEventListener("progress",u),null!==r&&n.upload&&n.upload.addEventListener("progress",c)),n.send(r),t.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),e.reportProgress&&(n.removeEventListener("progress",u),null!==r&&n.upload&&n.upload.removeEventListener("progress",c)),n.readyState!==n.DONE&&n.abort()}})}}const P=new r.q("XSRF_COOKIE_NAME"),N=new r.q("XSRF_HEADER_NAME");class M{}class F{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(u.H)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}class L{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}class V{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(T,[]);this.chain=e.reduceRight((e,t)=>new x(e,t),this.backend)}return this.chain.handle(e)}}class U{static disable(){return{ngModule:U,providers:[{provide:L,useClass:I}]}}static withOptions(e={}){return{ngModule:U,providers:[e.cookieName?{provide:P,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}class z{}},IjjT:function(e,t,n){"use strict";n.d(t,"a",function(){return i});let r=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class i extends r{constructor(e,t=r.now){super(e,()=>i.delegate&&i.delegate!==this?i.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return i.delegate&&i.delegate!==this?i.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}},IzEk:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("7o/Q"),i=n("4I5i"),s=n("EY2u");function o(e){return t=>0===e?Object(s.b)():t.lift(new a(e))}class a{constructor(e){if(this.total=e,this.total<0)throw new i.a}call(e,t){return t.subscribe(new l(e,this.total))}}class l extends r.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}},JIr8:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("zx2A");function i(e){return function(t){const n=new s(e),r=t.lift(n);return n.caught=r}}class s{constructor(e){this.selector=e}call(e,t){return t.subscribe(new o(e,this.selector,this.caught))}}class o extends r.b{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const i=new r.a(this);this.add(i);const s=Object(r.c)(n,i);s!==i&&this.add(s)}}}},JX91:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("GyhO"),i=n("z+Ro");function s(...e){const t=e[e.length-1];return Object(i.a)(t)?(e.pop(),n=>Object(r.a)(e,n,t)):t=>Object(r.a)(e,t)}},Jgta:function(e,t,n){"use strict";var r=n("zIRd");n.d(t,"a",function(){return r.a}),r.a.registerVersion("firebase","8.10.1","app"),r.a.SDK_VERSION="8.10.1"},Kqap:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new s(e,t,n))}}class s{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new o(e,this.accumulator,this.seed,this.hasSeed))}}class o extends r.a{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}},KqfI:function(e,t,n){"use strict";function r(){}n.d(t,"a",function(){return r})},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return o}
1);var r=n("z+Ro"),i=n("yCtX"),s=n("jZKg");function o(...e){let t=e[e.length-1];return Object(r.a)(t)?(e.pop(),Object(s.a)(e,t)):Object(i.a)(e)}},Lhse:function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return i});const i=r()},LpKv:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"a",function(){return s}),n.d(t,"b",function(){return o}),n.d(t,"d",function(){return a}),n.d(t,"g",function(){return l}),n.d(t,"e",function(){return u}),n.d(t,"f",function(){return c});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};function o(e,t,n,r){return new(n||(n=Promise))(function(i,s){function o(e){try{l(r.next(e))}catch(t){s(t)}}function a(e){try{l(r.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,i,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(l){a=[6,l],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function l(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function c(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError},NJ4a:function(e,t,n){"use strict";function r(e){setTimeout(()=>{throw e},0)}n.d(t,"a",function(){return r})},NXyV:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("HDdC"),i=n("Cfvw"),s=n("EY2u");function o(e){return new r.a(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?Object(i.a)(n):Object(s.b)()).subscribe(t)})}},PqYM:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=n("D0XW"),s=n("Y7HM"),o=n("z+Ro");function a(e=0,t,n){let a=-1;return Object(s.a)(t)?a=Number(t)<1?1:Number(t):Object(o.a)(t)&&(n=t),Object(o.a)(n)||(n=i.a),new r.a(t=>{const r=Object(s.a)(e)?e:+e-n.now();return n.schedule(l,r,{index:0,period:a,subscriber:t})})}function l(e){const{index:t,period:n,subscriber:r}=e;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}},SVse:function(e,t,n){"use strict";n.d(t,"a",function(){return v}),n.d(t,"b",function(){return je}),n.d(t,"c",function(){return Fe}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return De}),n.d(t,"f",function(){return Ae}),n.d(t,"g",function(){return T}),n.d(t,"h",function(){return C}),n.d(t,"i",function(){return h}),n.d(t,"j",function(){return S}),n.d(t,"k",function(){return y}),n.d(t,"l",function(){return me}),n.d(t,"m",function(){return ye}),n.d(t,"n",function(){return ve}),n.d(t,"o",function(){return fe}),n.d(t,"p",function(){return pe}),n.d(t,"q",function(){return Se}),n.d(t,"r",function(){return Oe}),n.d(t,"s",function(){return w}),n.d(t,"t",function(){return Re}),n.d(t,"u",function(){return u}),n.d(t,"v",function(){return Me}),n.d(t,"w",function(){return I}),n.d(t,"x",function(){return $e}),n.d(t,"y",function(){return G}),n.d(t,"z",function(){return R}),n.d(t,"A",function(){return A}),n.d(t,"B",function(){return P}),n.d(t,"C",function(){return Ue}),n.d(t,"D",function(){return ze}),n.d(t,"E",function(){return a}),n.d(t,"F",function(){return Le}),n.d(t,"G",function(){return s}),n.d(t,"H",function(){return ge}),n.d(t,"I",function(){return o}
1);var r=n("8Y7J");let i=null;function s(){return i}function o(e){i||(i=e)}class a{}const l=new r.q("DocumentToken");let u=(()=>{class e{}return e.\u0275prov=Object(r.ac)({factory:c,token:e,providedIn:"platform"}),e})();function c(){return Object(r.bc)(d)}const h=new r.q("Location Initialized");let d=(()=>{class e extends u{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=s().getLocation(),this._history=s().getHistory()}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){p()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){p()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275prov=Object(r.ac)({factory:f,token:e,providedIn:"platform"}),e})();function p(){return!!window.history.pushState}function f(){return new d(Object(r.bc)(l))}function g(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function b(e){return e&&"?"!==e[0]?"?"+e:e}let y=(()=>{class e{}return e.\u0275prov=Object(r.ac)({factory:_,token:e,providedIn:"root"}),e})();function _(e){const t=Object(r.bc)(l).location;return new w(Object(r.bc)(u),t&&t.origin||"")}const v=new r.q("appBaseHref");class w extends y{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return g(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+b(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const i=this.prepareExternalUrl(n+b(r));this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){const i=this.prepareExternalUrl(n+b(r));this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}class C extends y{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=g(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let i=this.prepareExternalUrl(n+b(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){let i=this.prepareExternalUrl(n+b(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}let S=(()=>{class e{constructor(e,t){this._subject=new r.n,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=m(k(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+b(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,k(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+b(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+b(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}
1_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.normalizeQueryParams=b,e.joinWithSlash=g,e.stripTrailingSlash=m,e.\u0275prov=Object(r.ac)({factory:O,token:e,providedIn:"root"}),e})();function O(){return new S(Object(r.bc)(y),Object(r.bc)(u))}function k(e){return e.replace(/\/index.html$/,"")}var E=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),x=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),T=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),I=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),j=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),D=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function A(e,t,n){const i=Object(r.zb)(e),s=$([i[r.db.DayPeriodsFormat],i[r.db.DayPeriodsStandalone]],t);return $(s,n)}function R(e,t,n){const i=Object(r.zb)(e),s=$([i[r.db.DaysFormat],i[r.db.DaysStandalone]],t);return $(s,n)}function P(e,t,n){const i=Object(r.zb)(e),s=$([i[r.db.MonthsFormat],i[r.db.MonthsStandalone]],t);return $(s,n)}function N(e,t){return $(Object(r.zb)(e)[r.db.DateFormat],t)}function M(e,t){return $(Object(r.zb)(e)[r.db.TimeFormat],t)}function F(e,t){return $(Object(r.zb)(e)[r.db.DateTimeFormat],t)}function L(e,t){const n=Object(r.zb)(e),i=n[r.db.NumberSymbols][t];if(void 0===i){if(t===D.CurrencyDecimal)return n[r.db.NumberSymbols][D.Decimal];if(t===D.CurrencyGroup)return n[r.db.NumberSymbols][D.Group]}return i}function V(e,t){return Object(r.zb)(e)[r.db.NumberFormats][t]}const U=r.Cb;function z(e){if(!e[r.db.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[r.db.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function $(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function q(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const H=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,W={},B=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var K=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),Q=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),Z=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function G(e,t,n,r){let i=function(e){if(le(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){const[t,n,r]=e.split("-").map(e=>+e);return new Date(t,n-1,r)}let n;if(n=e.match(H))return function(e){const t=new Date(0);let n=0,r=0;const i=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const o=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(t,o,a,l,u),t}(n)}const t=new Date(e);if(!le(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=Y(n,t)||t;let s,o=[];for(;t;){if(s=B.exec(t),!s){o.push(t);break}{o=o.concat(s.slice(1));const e=o.pop();if(!e)break;t=e}}let a=i.getTimezoneOffset();r&&(a=ae(r,a),i=function(e,t){const n=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(ae(t,n)-n))}(i,r));let l="";
1return o.forEach(e=>{const t=function(e){if(oe[e])return oe[e];let t;switch(e){case"G":case"GG":case"GGG":t=te(Z.Eras,I.Abbreviated);break;case"GGGG":t=te(Z.Eras,I.Wide);break;case"GGGGG":t=te(Z.Eras,I.Narrow);break;case"y":t=ee(Q.FullYear,1,0,!1,!0);break;case"yy":t=ee(Q.FullYear,2,0,!0,!0);break;case"yyy":t=ee(Q.FullYear,3,0,!1,!0);break;case"yyyy":t=ee(Q.FullYear,4,0,!1,!0);break;case"M":case"L":t=ee(Q.Month,1,1);break;case"MM":case"LL":t=ee(Q.Month,2,1);break;case"MMM":t=te(Z.Months,I.Abbreviated);break;case"MMMM":t=te(Z.Months,I.Wide);break;case"MMMMM":t=te(Z.Months,I.Narrow);break;case"LLL":t=te(Z.Months,I.Abbreviated,T.Standalone);break;case"LLLL":t=te(Z.Months,I.Wide,T.Standalone);break;case"LLLLL":t=te(Z.Months,I.Narrow,T.Standalone);break;case"w":t=se(1);break;case"ww":t=se(2);break;case"W":t=se(1,!0);break;case"d":t=ee(Q.Date,1);break;case"dd":t=ee(Q.Date,2);break;case"E":case"EE":case"EEE":t=te(Z.Days,I.Abbreviated);break;case"EEEE":t=te(Z.Days,I.Wide);break;case"EEEEE":t=te(Z.Days,I.Narrow);break;case"EEEEEE":t=te(Z.Days,I.Short);break;case"a":case"aa":case"aaa":t=te(Z.DayPeriods,I.Abbreviated);break;case"aaaa":t=te(Z.DayPeriods,I.Wide);break;case"aaaaa":t=te(Z.DayPeriods,I.Narrow);break;case"b":case"bb":case"bbb":t=te(Z.DayPeriods,I.Abbreviated,T.Standalone,!0);break;case"bbbb":t=te(Z.DayPeriods,I.Wide,T.Standalone,!0);break;case"bbbbb":t=te(Z.DayPeriods,I.Narrow,T.Standalone,!0);break;case"B":case"BB":case"BBB":t=te(Z.DayPeriods,I.Abbreviated,T.Format,!0);break;case"BBBB":t=te(Z.DayPeriods,I.Wide,T.Format,!0);break;case"BBBBB":t=te(Z.DayPeriods,I.Narrow,T.Format,!0);break;case"h":t=ee(Q.Hours,1,-12);break;case"hh":t=ee(Q.Hours,2,-12);break;case"H":t=ee(Q.Hours,1);break;case"HH":t=ee(Q.Hours,2);break;case"m":t=ee(Q.Minutes,1);break;case"mm":t=ee(Q.Minutes,2);break;case"s":t=ee(Q.Seconds,1);break;case"ss":t=ee(Q.Seconds,2);break;case"S":t=ee(Q.FractionalSeconds,1);break;case"SS":t=ee(Q.FractionalSeconds,2);break;case"SSS":t=ee(Q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ne(K.Short);break;case"ZZZZZ":t=ne(K.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ne(K.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ne(K.Long);break;default:return null}return oe[e]=t,t}(e);l+=t?t(i,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Y(e,t){const n=function(e){return Object(r.zb)(e)[r.db.LocaleId]}(e);if(W[n]=W[n]||{},W[n][t])return W[n][t];let i="";switch(t){case"shortDate":i=N(e,j.Short);break;case"mediumDate":i=N(e,j.Medium);break;case"longDate":i=N(e,j.Long);break;case"fullDate":i=N(e,j.Full);break;case"shortTime":i=M(e,j.Short);break;case"mediumTime":i=M(e,j.Medium);break;case"longTime":i=M(e,j.Long);break;case"fullTime":i=M(e,j.Full);break;case"short":const t=Y(e,"shortTime"),n=Y(e,"shortDate");i=J(F(e,j.Short),[t,n]);break;case"medium":const r=Y(e,"mediumTime"),s=Y(e,"mediumDate");i=J(F(e,j.Medium),[r,s]);break;case"long":const o=Y(e,"longTime"),a=Y(e,"longDate");i=J(F(e,j.Long),[o,a]);break;case"full":const l=Y(e,"fullTime"),u=Y(e,"fullDate");i=J(F(e,j.Full),[l,u])}return i&&(W[n][t]=i),i}function J(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function X(e,t,n="-",r,i){let s="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,s=n));let o=String(e);for(;o.length<t;)o="0"+o;return r&&(o=o.substr(o.length-t)),s+o}function ee(e,t,n=0,r=!1,i=!1){return function(s,o){let a=function(e,t){switch(e){case Q.FullYear:return t.getFullYear();case Q.Month:return t.getMonth();case Q.Date:return t.getDate();case Q.Hours:return t.getHours();case Q.Minutes:return t.getMinutes();case Q.Seconds:return t.getSeconds();case Q.FractionalSeconds:return t.getMilliseconds();case Q.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,s);if((n>0||a>-n)&&(a+=n),e===Q.Hours)0===a&&-12===n&&(a=12);else if(e===Q.FractionalSeconds)return l=t,X(a,3).substr(0,l);var l;const u=L(o,D.MinusSign);return X(a,t,u,r,i)}}function te(e,t,n=T.Format,i=!1){return function(s,o){return function(e,t,n,i,s,o){switch(n){case Z.Months:return P(t,s,i)[e.getMonth()];case Z.Days:return R(t,s,i)[e.getDay()];case Z.DayPeriods:const a=e.getHours(),l=e.getMinutes();if(o){const e=function(e){const t=Object(r.zb)(e);return z(t),(t[r.db.ExtraData][2]||[]).map(e=>"string"==typeof e?q(e):[q(e[0]),q(e[1])])}(t),n=function(e,t,n){const i=Object(r.zb)(e);z(i);const s=$([i[r.db.ExtraData][0],i[r.db.ExtraData][1]],t)||[];return $(s,n)||[]}
vendor: 10,838 bytes, line 1
1(t,s,i),o=e.findIndex(e=>{if(Array.isArray(e)){const[t,n]=e,r=a>=t.hours&&l>=t.minutes,i=a<n.hours||a===n.hours&&l<n.minutes;if(t.hours<n.hours){if(r&&i)return!0}else if(r||i)return!0}else if(e.hours===a&&e.minutes===l)return!0;return!1});if(-1!==o)return n[o]}return A(t,s,i)[a<12?0:1];case Z.Eras:return function(e,t){return $(Object(r.zb)(e)[r.db.Eras],t)}(t,i)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(s,o,e,t,n,i)}}function ne(e){return function(t,n,r){const i=-1*r,s=L(n,D.MinusSign),o=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case K.Short:return(i>=0?"+":"")+X(o,2,s)+X(Math.abs(i%60),2,s);case K.ShortGMT:return"GMT"+(i>=0?"+":"")+X(o,1,s);case K.Long:return"GMT"+(i>=0?"+":"")+X(o,2,s)+":"+X(Math.abs(i%60),2,s);case K.Extended:return 0===r?"Z":(i>=0?"+":"")+X(o,2,s)+":"+X(Math.abs(i%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}const re=0,ie=4;function se(e,t=!1){return function(n,r){let i;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();i=1+Math.floor((t+e)/7)}else{const e=(s=n,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(ie-s.getDay()))),t=function(e){const t=new Date(e,re,1).getDay();return new Date(e,0,1+(t<=ie?ie:ie+7)-t)}(e.getFullYear()),r=e.getTime()-t.getTime();i=1+Math.round(r/6048e5)}var s;return X(i,e,L(r,D.MinusSign))}}const oe={};function ae(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function le(e){return e instanceof Date&&!isNaN(e.valueOf())}const ue=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ce(e,t,n,r,i,s,o=!1){let a="",l=!1;if(isFinite(e)){let u=function(e){let t,n,r,i,s,o=Math.abs(e)+"",a=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(r=o.search(/e/i))>0?(n<0&&(n=r),n+=+o.slice(r+1),o=o.substring(0,r)):n<0&&(n=o.length),r=0;"0"===o.charAt(r);r++);if(r===(s=o.length))t=[0],n=1;else{for(s--;"0"===o.charAt(s);)s--;for(n-=r,t=[],i=0;r<=s;r++,i++)t[i]=Number(o.charAt(r))}return n>22&&(t=t.splice(0,21),a=n-1,n=1),{digits:t,exponent:a,integerLen:n}}(e);o&&(u=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(u));let c=t.minInt,h=t.minFrac,d=t.maxFrac;if(s){const e=s.match(ue);if(null===e)throw new Error(`${s} is not a valid digit info`);const t=e[1],n=e[3],r=e[5];null!=t&&(c=de(t)),null!=n&&(h=de(n)),null!=r?d=de(r):null!=n&&h>d&&(d=h)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,i=r.length-e.integerLen;const s=Math.min(Math.max(t,i),n);let o=s+e.integerLen,a=r[o];if(o>0){r.splice(Math.max(e.integerLen,o));for(let e=o;e<r.length;e++)r[e]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,o=s+1),r[0]=0;for(let e=1;e<o;e++)r[e]=0}if(a>=5)if(o-1<0){for(let t=0;t>o;t--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[o-1]++;for(;i<Math.max(0,s);i++)r.push(0);let l=0!==s;const u=t+e.integerLen,c=r.reduceRight(function(e,t,n,r){return r[n]=(t+=e)<10?t:t-10,l&&(0===r[n]&&n>=u?r.pop():l=!1),t>=10?1:0},0);c&&(r.unshift(c),e.integerLen++)}(u,h,d);let p=u.digits,f=u.integerLen;const g=u.exponent;let m=[];for(l=p.every(e=>!e);f<c;f++)p.unshift(0);for(;f<0;f++)p.unshift(0);f>0?m=p.splice(f,p.length):(m=p,p=[0]);const b=[];for(p.length>=t.lgSize&&b.unshift(p.splice(-t.lgSize,p.length).join(""));p.length>t.gSize;)b.unshift(p.splice(-t.gSize,p.length).join(""));p.length&&b.unshift(p.join("")),a=b.join(L(n,r)),m.length&&(a+=L(n,i)+m.join("")),g&&(a+=L(n,D.Exponential)+"+"+g)}else a=L(n,D.Infinity);return a=e<0&&!l?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}function he(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),i=r[0],s=r[1],o=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let c=0;c<l.length;c++){const e=l.charAt(c);"0"===e?n.minFrac=n.maxFrac=c+1:"#"===e?n.maxFrac=c+1:n.posSuf+=e}const u=a.split(",");if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,s){const e=i.length-n.posPre.length-n.posSuf.length,t=s.indexOf("#");n.negPre=s.substr(0,t).replace(/'/g,""),n.negSuf=s.substr(t+e).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function de(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}class pe{}class fe extends pe{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(U(t||this.locale)(e)){case x.Zero:return"zero";case x.One:return"one";case x.Two:return"two";case x.Few:return"few";case x.Many:return"many";default:return"other"}}}function ge(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,i]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(i)}return null}class me{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.Gb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(r.Vb)(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}class be{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}class ye{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Object(r.W)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new be(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new _e(e,n);t.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const s=new _e(e,i);t.push(s)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=r,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}class _e{constructor(e,t){this.record=e,this.view=t}}class ve{constructor(e,t){this._viewContainer=e,this._context=new we,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Ce("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Ce("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}class we{constructor(){this.$implicit=null,this.ngIf=null}}function Ce(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(r.Vb)(t)}'.`)}class Se{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,r]=e.split(".");null!=(t=null!=t&&r?`${t}${r}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}
1class Oe{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}function ke(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Object(r.Vb)(e)}'`)}class Ee{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class xe{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const Te=new xe,Ie=new Ee;class je{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(e){if(Object(r.Ib)(e))return Te;if(Object(r.Hb)(e))return Ie;throw ke(je,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}class De{constructor(e){this.locale=e}transform(e,t="mediumDate",n,r){if(null==e||""===e||e!=e)return null;try{return G(e,t,r||this.locale,n)}catch(i){throw ke(De,i.message)}}}class Ae{constructor(e){this._locale=e}transform(e,t,n){if(Pe(e))return null;n=n||this._locale;try{return function(e,t,n){return ce(e,he(V(t,E.Decimal),L(t,D.MinusSign)),t,D.Group,D.Decimal,n)}(Ne(e),n,t)}catch(r){throw ke(Ae,r.message)}}}class Re{constructor(e){this._locale=e}transform(e,t,n){if(Pe(e))return null;n=n||this._locale;try{return function(e,t,n){return ce(e,he(V(t,E.Percent),L(t,D.MinusSign)),t,D.Group,D.Decimal,n,!0).replace(new RegExp("%","g"),L(t,D.PercentSign))}(Ne(e),n,t)}catch(r){throw ke(Re,r.message)}}}function Pe(e){return null==e||""===e||e!=e}function Ne(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e}class Me{transform(e,t,n){if(null==e)return e;if(!this.supports(e))throw ke(Me,e);return e.slice(t,n)}supports(e){return"string"==typeof e||Array.isArray(e)}}class Fe{}const Le="browser",Ve="server";function Ue(e){return e===Le}function ze(e){return e===Ve}let $e=(()=>{class e{}return e.\u0275prov=Object(r.ac)({token:e,providedIn:"root",factory:()=>new qe(Object(r.bc)(l),window,Object(r.bc)(r.m))}),e})();class qe{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportsScrolling()){const t=this.document.getElementById(e)||this.document.getElementsByName(e)[0];t&&this.scrollToElement(t)}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const e=He(this.window.history)||He(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(e){return!1}}}function He(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}},SeVD:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("ngJS"),i=n("NJ4a"),s=n("Lhse"),o=n("kJWO"),a=n("I55L"),l=n("c2HN"),u=n("XoHu");const c=e=>{if(e&&"function"==typeof e[o.a])return c=e,e=>{const t=c[o.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(a.a)(e))return Object(r.a)(e);if(Object(l.a)(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,i.a),e);if(e&&"function"==typeof e[s.a])return t=e,e=>{const n=t[s.a]();for(;;){let t;try{t=n.next()}catch(r){return e.error(r),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};
1{const t=Object(u.a)(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,c}},SpAZ:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",function(){return r})},SxV6:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("sVev"),i=n("pLZG"),s=n("IzEk"),o=n("xbPD"),a=n("XDbj"),l=n("SpAZ");function u(e,t){const n=arguments.length>=2;return u=>u.pipe(e?Object(i.a)((t,n)=>e(t,n,u)):l.a,Object(s.a)(1),n?Object(o.a)(t):Object(a.a)(()=>new r.a))}},TfjI:function(e,t,n){"use strict";n.d(t,"a",function(){return k}),n.d(t,"b",function(){return E}),n.d(t,"c",function(){return S}),n.d(t,"d",function(){return C});var r=n("LpKv"),i=n("8Y7J"),s=n("Jgta"),o=n("LRne"),a=n("EY2u"),l=n("z6cu"),u=n("HDdC"),c=n("GyhO"),h=n("tf+s"),d=n("pxpQ"),p=n("eIep"),f=n("lJxs"),g=n("UXun"),m=n("aGrj"),b=n("JIr8"),y=n("5+tZ"),_=n("xbPD"),v=n("jmUF"),w=n("SVse");const C=new i.q("angularfire2.messaging.vapid-key"),S=new i.q("angularfire2.messaging.service-worker-registeration"),O=parseInt(s.a.SDK_VERSION,10)<8;let k=(()=>{class e{constructor(e,t,i,C,S,k){const E=new v.e(C),x=k,T=Object(o.a)(void 0).pipe(Object(h.a)(E.outsideAngular),Object(d.b)(E.insideAngular),Object(p.a)(()=>Object(w.D)(i)?a.a:n.e(36).then(n.bind(null,"dB9c"))),Object(f.a)(()=>Object(v.h)(e,C,t)),Object(p.a)(e=>Object(v.g)(`${e.name}.messaging`,"AngularFireMessaging",e,()=>Object(r.b)(this,void 0,void 0,function*(){const t=e.messaging();return O&&(S&&t.usePublicVapidKey(S),x&&t.useServiceWorker(yield x)),t}),[S,x])),Object(g.a)({bufferSize:1,refCount:!1}));this.requestPermission=T.pipe(Object(h.a)(E.outsideAngular),Object(d.b)(E.insideAngular),Object(p.a)(e=>s.a.messaging.isSupported()?e.requestPermission():Object(l.a)("Not supported."))),this.getToken=T.pipe(Object(h.a)(E.outsideAngular),Object(d.b)(E.insideAngular),Object(p.a)(e=>Object(r.b)(this,void 0,void 0,function*(){if(s.a.messaging.isSupported()&&"granted"===Notification.permission){if(O)return yield e.getToken();{const t=x?yield x:null;return yield e.getToken({vapidKey:S,serviceWorkerRegistration:t})}}return null})));const I=new u.a(e=>{navigator.permissions.query({name:"notifications"}).then(t=>{t.onchange=()=>e.next()})}),j=T.pipe(Object(h.a)(E.outsideAngular),Object(d.b)(E.insideAngular),Object(m.a)(I),Object(m.a)(this.getToken));return this.tokenChanges=T.pipe(Object(h.a)(E.outsideAngular),Object(d.b)(E.insideAngular),Object(p.a)(()=>s.a.messaging.isSupported()?Object(c.a)(this.getToken,j):a.a)),this.messages=T.pipe(Object(h.a)(E.outsideAngular),Object(d.b)(E.insideAngular),Object(p.a)(e=>s.a.messaging.isSupported()?new u.a(t=>e.onMessage(e=>t.next(e),e=>t.error(e),()=>t.complete())):a.a)),this.requestToken=Object(o.a)(void 0).pipe(Object(h.a)(E.outsideAngular),Object(d.b)(E.insideAngular),Object(p.a)(()=>this.requestPermission),Object(b.a)(()=>Object(o.a)(null)),Object(y.a)(()=>this.tokenChanges)),this.deleteToken=e=>T.pipe(Object(h.a)(E.outsideAngular),Object(d.b)(E.insideAngular),Object(p.a)(t=>t.deleteToken(e||void 0)),Object(_.a)(!1)),Object(v.j)(this,T,C)}}return e.\u0275prov=i.ac({factory:function(){return new e(i.bc(v.c),i.bc(v.b,8),i.bc(i.B),i.bc(i.z),i.bc(C,8),i.bc(S,8))},token:e,providedIn:"any"}),e})();Object(v.f)(k,[{deleteToken:null,getToken:null,onMessage:null,onBackgroundMessage:null,onTokenRefresh:null,requestPermission:null,setBackgroundMessageHandler:null,useServiceWorker:null,usePublicVapidKey:null}]);class E{}},UXun:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("jtHE");function i(e,t,n){let i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},e=>e.lift(function({bufferSize:e=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:n,scheduler:i}){let s,o,a=0,l=!1,u=!1;return function(c){let h;a++,!s||l?(l=!1,s=new r.a(e,t,i),h=s.subscribe(this),o=c.subscribe({next(e){s.next(e)},error(e){l=!0,s.error(e)},complete(){u=!0,o=void 0,s.complete()}})):h=s.subscribe(this),this.add(()=>{a--,h.unsubscribe(),o&&!u&&n&&0===a&&(o.unsubscribe(),o=void 0,s=void 0)})}}(i))}},VRyK:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=n("z+Ro"),s=n("bHdf"),o=n("yCtX");function a(...e){let t=Number.POSITIVE_INFINITY,n=null,a=e[e.length-1];return Object(i.a)(a)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof a&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof r.a?e[0]:Object(s.a)(t)(Object(o.a)(e,n))}},WMd4:function(e,t,n){"use strict";n.d(t,"a",function(){return o}
1);var r=n("EY2u"),i=n("LRne"),s=n("z6cu");let o=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return Object(s.a)(this.error);case"C":return Object(r.b)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})()},XDbj:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("sVev"),i=n("7o/Q");function s(e=l){return t=>t.lift(new o(e))}class o{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new a(e,this.errorFactory))}}class a extends i.a{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function l(){return new r.a}},XNiG:function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return c});var r=n("HDdC"),i=n("7o/Q"),s=n("quSY"),o=n("9ppp"),a=n("Ylt2"),l=n("2QA8");class u extends i.a{constructor(e){super(e),this.destination=e}}let c=(()=>{class e extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new u(this)}lift(e){const t=new h(this,this);return t.operator=e,t}next(e){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].next(e)}}error(e){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].error(e);this.observers.length=0}complete(){if(this.closed)throw new o.a;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new o.a;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new o.a;return this.hasError?(e.error(this.thrownError),s.a.EMPTY):this.isStopped?(e.complete(),s.a.EMPTY):(this.observers.push(e),new a.a(this,e))}asObservable(){const e=new r.a;return e.source=this,e}}return e.create=(e,t)=>new h(e,t),e})();class h extends c{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):s.a.EMPTY}}},XoHu:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",function(){return r})},Y7HM:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("DH7j");function i(e){return!Object(r.a)(e)&&e-parseFloat(e)+1>=0}},Ylt2:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("quSY");class i extends r.a{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},ZUHj:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("7o/Q");class i extends r.a{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var s=n("SeVD"),o=n("HDdC");function a(e,t,n,r,a=new i(e,n,r)){if(!a.closed)return t instanceof o.a?t.subscribe(a):Object(s.a)(t)(a)}},ZcxY:function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return a}),n.d(t,"e",function(){return l});var r=n("8Y7J"),i=n("SVse"),s=n("DlQD"),o=n("lJxs");n("SxV6");class a{}const l=new r.q("SECURITY_CONTEXT");class u{constructor(e,t,n,r,i){this.platform=e,this.securityContext=t,this.http=n,this.sanitizer=i,this.initialMarkedOptions={renderer:new s.Renderer},this.options=r}get options(){return this._options}set options(e){this._options=Object.assign(Object.assign({},this.initialMarkedOptions),e)}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}
1compile(e,t=!1,n=!1,r=this.options){const i=this.trimIndentation(e),o=t?this.decodeHtml(i):i,a=n?this.renderEmoji(o):o,l=Object(s.parse)(a,r);return this.sanitizer.sanitize(this.securityContext,l)||""}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(Object(o.a)(t=>this.handleExtension(e,t)))}highlight(e){if(Object(i.C)(this.platform)&&"undefined"!=typeof Prism){e||(e=document);const t=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(t,e=>e.classList.add("language-none")),Prism.highlightAllUnder(e)}}renderKatex(e,t){if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return e.replace(/\$([^\s][^$]*?[^\s])\$/gm,(e,n)=>katex.renderToString(n,t))}decodeHtml(e){if(Object(i.C)(this.platform)){const t=document.createElement("textarea");return t.innerHTML=e,t.value}return e}handleExtension(e,t){const n=e?e.split("?")[0].split(".").splice(-1).join():null;return"md"!==n?"```"+n+"\n"+t+"\n```":t}renderEmoji(e){if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}trimIndentation(e){if(!e)return"";let t;return e.split("\n").map(e=>{let n=t;return e.length>0&&(n=isNaN(n)?e.search(/\S|$/):Math.min(e.search(/\S|$/),n)),isNaN(t)&&(t=n),n?e.substring(n):e}).join("\n")}}var c=function(e){return e.LineHighlight="line-highlight",e.LineNumbers="line-numbers",e}({});class h{constructor(e,t){this.element=e,this.markdownService=t,this.error=new r.n,this.load=new r.n,this.ready=new r.n,this._emoji=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}ngOnChanges(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){this.data||this.src||this.handleTransclusion()}render(e,t=!1){let n=this.markdownService.compile(e,t,this.emoji);n=this.katex?this.markdownService.renderKatex(n,this.katexOptions):n,this.element.nativeElement.innerHTML=n,this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement),this.ready.emit()}coerceBooleanProperty(e){return null!=e&&"false"!=`${e}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe(e=>{this.render(e),this.load.emit(e)},e=>this.error.emit(e))}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.lineHighlight&&(this.setPluginClass(this.element.nativeElement,c.LineHighlight),this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset})),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,c.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,t){const n=e.querySelectorAll("pre");for(let r=0;r<n.length;r++){const e=t instanceof Array?t:[t];n.item(r).classList.add(...e)}}setPluginOptions(e,t){const n=e.querySelectorAll("pre");for(let r=0;r<n.length;r++)Object.keys(t).forEach(e=>{const i=t[e];if(i){const t=this.toLispCase(e);n.item(r).setAttribute(t,i.toString())}})}toLispCase(e){const t=e.match(/([A-Z])/g);if(!t)return e;let n=e.toString();for(let r=0,i=t.length;r<i;r++)n=n.replace(new RegExp(t[r]),"-"+t[r].toLowerCase());return"-"===n.slice(0,1)&&(n=n.slice(1)),n}}class d{static forRoot(e){return{ngModule:d,providers:[u,e&&e.loader||[],e&&e.markedOptions||[],{provide:l,useValue:e&&null!=e.sanitize?e.sanitize:r.I.HTML}]}}static forChild(){return{ngModule:d}}}},aGrj:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("eIep");function i(e,t){return t?Object(r.a)(()=>e,t):Object(r.a)(()=>e)}},bHdf:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("5+tZ"),i=n("SpAZ");function s(e=Number.POSITIVE_INFINITY){return Object(r.a)(i.a,e)}},bOdf:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("5+tZ");function i(e,t){return Object(r.a)(e,t,1)}},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return r})},cUpR:function(e,t,n){"use strict";n.d(t,"a",function(){return Q}),n.d(t,"b",function(){return $}),n.d(t,"c",function(){return y}),n.d(t,"d",function(){return _}),n.d(t,"e",function(){return R}),n.d(t,"f",function(){return P}),n.d(t,"g",function(){return N}),n.d(t,"h",function(){return G}),n.d(t,"i",function(){return K}),n.d(t,"j",function(){return D}),n.d(t,"k",function(){return x}),n.d(t,"l",function(){return H}),n.d(t,"m",function(){return C}),n.d(t,"n",function(){return M}),n.d(t,"o",function(){return z}),n.d(t,"p",function(){return w}),n.d(t,"q",function(){return W}),n.d(t,"r",function(){return b});var r=n("SVse"),i=n("8Y7J");class s extends r.E{constructor(){super()}supportsDOMEvents(){return!0}}class o extends s{static makeCurrent(){Object(r.I)(new o)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}
1isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=l||(l=document.querySelector("base"),l)?l.getAttribute("href"):null;return null==t?null:(n=t,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Object(r.H)(document.cookie,e)}}let a,l=null;const u=new i.q("TRANSITION_ID"),c=[{provide:i.d,useFactory:function(e,t,n){return()=>{n.get(i.e).donePromise.then(()=>{const n=Object(r.G)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[u,r.d,i.r],multi:!0}];class h{static init(){Object(i.Y)(new h)}addToWindow(e){i.Eb.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},i.Eb.getAllAngularTestabilities=()=>e.getAllTestabilities(),i.Eb.getAllAngularRootElements=()=>e.getAllRootElements(),i.Eb.frameworkStabilizers||(i.Eb.frameworkStabilizers=[]),i.Eb.frameworkStabilizers.push(e=>{const t=i.Eb.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,n--,0==n&&e(r)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const i=e.getTestability(t);return null!=i?i:n?Object(r.G)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}function d(e,t){"undefined"!=typeof COMPILED&&COMPILED||((i.Eb.ng=i.Eb.ng||{})[e]=t)}const p=(()=>({ApplicationRef:i.g,NgZone:i.z}))(),f="probe",g="coreTokens";function m(e){return Object(i.Ab)(e)}function b(e){return d(f,m),d(g,Object.assign(Object.assign({},p),(e||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>m}const y=new i.q("EventManagerPlugins");class _{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}class v{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const i=Object(r.G)().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${t}`);return this.addEventListener(i,t,n)}}class w{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}class C extends w{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Object(r.G)().remove(e))}}const S={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/"},O=/%COMP%/g;function k(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?k(e,i,n):(i=i.replace(O,e),n.push(i))}return n}function E(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}class x{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new T(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.R.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new I(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyTo
1Host(e),n}case i.R.Native:case i.R.ShadowDom:return new j(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=k(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}class T{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(S[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const i=S[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=S[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&i.G.DashCase?e.style.setProperty(t,n,r&i.G.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&i.G.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,E(n)):this.eventManager.addEventListener(e,t,E(n))}}class I extends T{constructor(e,t,n,r){super(e),this.component=n;const i=k(r+"-"+n.id,n.styles,[]);t.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(O,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(O,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class j extends T{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===i.R.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=k(r.id,r.styles,[]);for(let i=0;i<s.length;i++){const e=document.createElement("style");e.textContent=s[i],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}class D extends v{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}const A={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},R=new i.q("HammerGestureConfig"),P=new i.q("HammerLoader");class N{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}class M extends v{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!A.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.`),1))}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let r=!1,i=()=>{r=!0};return this.loader().then(()=>
1{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(i=()=>{});r||(i=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom Hammer.JS loader failed.`),i=()=>{}}),()=>{i()}}return r.runOutsideAngular(()=>{const i=this._config.buildHammer(e),s=function(e){r.runGuarded(function(){n(e)})};return i.on(t,s),()=>{i.off(t,s),"function"==typeof i.destroy&&i.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}const F=["alt","control","meta","shift"],L={"\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"},V={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"},U={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class z extends v{constructor(e){super(e)}supports(e){return null!=z.parseEventName(e)}addEventListener(e,t,n){const i=z.parseEventName(t),s=z.eventCallback(i.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(r.G)().onAndCancel(e,i.domEventName,s))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const r=z._normalizeKey(t.pop());let i="";
1if(F.forEach(e=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),i+=e+".")}),i+=r,0!=t.length||0===r.length)return null;const s={};return s.domEventName=n,s.fullKey=i,s}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&V.hasOwnProperty(t)&&(t=V[t]))}return L[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),F.forEach(r=>{r!=n&&(0,U[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(e,t,n){return r=>{z.getEventFullKey(r)===e&&n.runGuarded(()=>t(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}let $=(()=>{class e{}return e.\u0275prov=Object(i.ac)({factory:function(){return Object(i.bc)(H)},token:e,providedIn:"root"}),e})();function q(e){return new H(e.get(r.d))}let H=(()=>{class e extends ${constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.I.NONE:return t;case i.I.HTML:return Object(i.gb)(t,"HTML")?Object(i.Yb)(t):Object(i.eb)(this._doc,String(t));case i.I.STYLE:return Object(i.gb)(t,"Style")?Object(i.Yb)(t):t;case i.I.SCRIPT:if(Object(i.gb)(t,"Script"))return Object(i.Yb)(t);throw new Error("unsafe value used in a script context");case i.I.URL:return Object(i.Db)(t),Object(i.gb)(t,"URL")?Object(i.Yb)(t):Object(i.fb)(String(t));case i.I.RESOURCE_URL:if(Object(i.gb)(t,"ResourceURL"))return Object(i.Yb)(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return Object(i.pb)(e)}bypassSecurityTrustStyle(e){return Object(i.sb)(e)}bypassSecurityTrustScript(e){return Object(i.rb)(e)}bypassSecurityTrustUrl(e){return Object(i.tb)(e)}bypassSecurityTrustResourceUrl(e){return Object(i.qb)(e)}}return e.\u0275prov=Object(i.ac)({factory:function(){return q(Object(i.bc)(i.o))},token:e,providedIn:"root"}),e})();function W(){return new i.m}const B=[{provide:i.B,useValue:r.F},{provide:i.C,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:r.d,useFactory:function(){return Object(i.Ub)(document),document},deps:[]}],K=Object(i.S)(i.X,"browser",B);class Q{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:Q,providers:[{provide:i.c,useValue:e.appId},{provide:u,useExisting:i.c},c]}}}function Z(){return new G(Object(i.bc)(r.d))}let G=(()=>{class e{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return e.\u0275prov=Object(i.ac)({factory:Z,token:e,providedIn:"root"}),e})();"undefined"!=typeof window&&window},cp0P:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("HDdC"),i=n("DH7j"),s=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function l(...e){if(1===e.length){const t=e[0];if(Object(i.a)(t))return u(t,null);if(Object(o.a)(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return u(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return u(e=1===e.length&&Object(i.a)(e[0])?e[0]:e,null).pipe(Object(s.a)(e=>t(...e)))}return u(e,null)}function u(e,t){return new r.a(n=>{const r=e.length;if(0===r)return void n.complete();const i=new Array(r);let s=0,o=0;for(let l=0;l<r;l++){const u=Object(a.a)(e[l]);let c=!1;n.add(u.subscribe({next:e=>{c||(c=!0,o++),i[l]=e},error:e=>n.error(e),complete:()=>{s++,s!==r&&c||(o===r&&n.next(t?t.reduce((e,t,n)=>(e[t]=i[n],e),{}):i),n.complete())}}))}})}},eIep:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("lJxs"),i=n("Cfvw"),s=n("zx2A");function o(e,t){return"function"==typeof t?n=>n.pipe(o((n,s)=>Object(i.a)(e(n,s)).pipe(Object(r.a)((e,r)=>t(n,e,s,r))))):t=>t.lift(new a(e))}class a{constructor(e){this.project=e}call(e,t){return t.subscribe(new l(e,this.project))}}class l extends s.b{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new s.a(this),r=this.destination;r.add(n),this.innerSubscription=Object(s.c)(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}},fDlF:function(e,t,n){"use strict";n.d(t,"a",function(){return O}),n.d(t,"b",function(){return qe}),n.d(t,"c",function(){return fe}),n.d(t,"d",function(){return rt}),n.d(t,"e",function(){return S}),n.d(t,"f",function(){return st}),n.d(t,"g",function(){return ge}),n.d(t,"h",function(){return ot});var r=n("GS7A");function i(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function s(e){switch(e.length){case 0:return new r.d;case 1:return e[0];default:return new r.o(e)}}function o(e,t,n,i,s={},o={}){const a=[],l=[];let u=-1,c=null;
1if(i.forEach(e=>{const n=e.offset,i=n==u,h=i&&c||{};Object.keys(e).forEach(n=>{let i=n,l=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),l){case r.p:l=s[n];break;case r.a:l=o[n];break;default:l=t.normalizeStyleValue(n,i,l,a)}h[i]=l}),i||l.push(h),c=h,u=n}),a.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${a.join(e)}`)}return l}function a(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&l(n,"start",e)));break;case"done":e.onDone(()=>r(n&&l(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&l(n,"destroy",e)))}}function l(e,t,n){const r=n.totalTime,i=u(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),s=e._data;return null!=s&&(i._data=s),i}function u(e,t,n,r,i="",s=0,o){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function c(e,t,n){let r;return e instanceof Map?(r=e.get(t),r||e.set(t,r=n)):(r=e[t],r||(r=e[t]=n)),r}function h(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let d=(e,t)=>!1,p=(e,t)=>!1,f=(e,t,n)=>[];const g=i();(g||"undefined"!=typeof Element)&&(d=(e,t)=>e.contains(t),p=(()=>{if(g||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):p}})(),f=(e,t,n)=>{let r=[];if(n)r.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&r.push(n)}return r});let m=null,b=!1;function y(e){m||(m=("undefined"!=typeof document?document.body:null)||{},b=!!m.style&&"WebkitAppearance"in m.style);let t=!0;return m.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in m.style,!t&&b)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in m.style),t}const _=p,v=d,w=f;function C(e){const t={};return Object.keys(e).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}class S{validateStyleProperty(e){return y(e)}matchesElement(e,t){return _(e,t)}containsElement(e,t){return v(e,t)}query(e,t,n){return w(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,i,s,o=[],a){return new r.d(n,i)}}let O=(()=>{class e{}return e.NOOP=new S,e})();function k(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:E(parseFloat(t[1]),t[2])}function E(e,t){return"s"===t?1e3*e:e}function x(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let r,i=0,s="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};r=E(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(i=E(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else r=e;if(!n){let n=!1,s=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(s,0,`The provided timing value "${e}" is invalid.`)}return{duration:r,delay:i,easing:s}}(e,t,n)}function T(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function I(e,t,n={}){if(t)for(let r in e)n[r]=e[r];else T(e,n);return n}function j(e,t,n){return n?t+":"+n+";":""}function D(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style.item(n);t+=j(0,r,e.style.getPropertyValue(r))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=j(0,z(n),e.style[n]));e.setAttribute("style",t)}function A(e,t,n){e.style&&(Object.keys(t).forEach(r=>{const i=U(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[i]),e.style[i]=t[r]}),i()&&D(e))}function R(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=U(t);e.style[n]=""}),i()&&D(e))}function P(e){return Array.isArray(e)?1==e.length?e[0]:Object(r.j)(e):e}const N=new RegExp("{{\\s*(.+?)\\s*}}","g");function M(e){let t=[];if("string"==typeof e){let n;for(;n=N.exec(e);)t.push(n[1]);N.lastIndex=0}return t}function F(e,t,n){const r=e.toString(),i=r.replace(N,(e,r)=>{let i=t[r];return t.hasOwnProperty(r)||(n.push(`Please provide a value for the animation param ${r}`),i=""),i.toString()});return i==r?e:i}function L(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const V=/-+([a-z0-9])/g;function U(e){return e.replace(V,(...e)=>e[1].toUpperCase())}function z(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function $(e,t){return 0===e||0===t}function q(e,t,n){const r=Object.keys(n);if(r.length&&t.length){let s=t[0],o=[];
1if(r.forEach(e=>{s.hasOwnProperty(e)||o.push(e),s[e]=n[e]}),o.length)for(var i=1;i<t.length;i++){let n=t[i];o.forEach(function(t){n[t]=W(e,t)})}}return t}function H(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error(`Unable to resolve animation metadata node #${t.type}`)}}function W(e,t){return window.getComputedStyle(e)[t]}function B(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}const r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const i=r[1],s=r[2],o=r[3];t.push(Z(i,o)),"<"!=s[0]||"*"==i&&"*"==o||t.push(Z(o,i))}(e,n,t)):n.push(e),n}const K=new Set(["true","1"]),Q=new Set(["false","0"]);function Z(e,t){const n=K.has(e)||Q.has(e),r=K.has(t)||Q.has(t);return(i,s)=>{let o="*"==e||e==i,a="*"==t||t==s;return!o&&n&&"boolean"==typeof i&&(o=i?K.has(e):Q.has(e)),!a&&r&&"boolean"==typeof s&&(a=s?K.has(t):Q.has(t)),o&&a}}const G=new RegExp("s*:selfs*,?","g");function Y(e,t,n){return new J(e).build(t,n)}class J{constructor(e){this._driver=e}build(e,t){const n=new X(t);return this._resetContextStyleTimingState(n),H(this,P(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0;const i=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,r=n.name;r.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,i.push(this.visitState(n,t))}),n.name=r}else if(1==e.type){const i=this.visitTransition(e,t);n+=i.queryCount,r+=i.depCount,s.push(i)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:i,transitions:s,queryCount:n,depCount:r,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){const i=new Set,s=r||{};if(n.styles.forEach(e=>{if(ee(e)){const t=e;Object.keys(t).forEach(e=>{M(t[e]).forEach(e=>{s.hasOwnProperty(e)||i.add(e)})})}}),i.size){const n=L(i.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=H(this,P(e.animation),t);return{type:1,matchers:B(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:te(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>H(this,e,t)),options:te(e.options)}}visitGroup(e,t){const n=t.currentTime;let r=0;const i=e.steps.map(e=>{t.currentTime=n;const i=H(this,e,t);return r=Math.max(r,t.currentTime),i});return t.currentTime=r,{type:3,steps:i,options:te(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return ne(x(e,t).duration,0,"");const r=e;if(r.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=ne(0,0,"");return e.dynamic=!0,e.strValue=r,e}return n=n||x(r,t),ne(n.duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let s=e.styles?e.styles:Object(r.l)({});if(5==s.type)i=this.visitKeyframes(s,t);else{let s=e.styles,o=!1;if(!s){o=!0;const e={};n.easing&&(e.easing=n.easing),s=Object(r.l)(e)}t.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,t);a.isEmptyStep=o,i=a}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);
1return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==r.a?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let i=!1,s=null;return n.forEach(e=>{if(ee(e)){const t=e,n=t.easing;if(n&&(s=n,delete t.easing),!i)for(let e in t)if(t[e].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let r=t.currentTime,i=t.currentTime;n&&i>0&&(i-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=t.collectedStyles[t.currentQuerySelector],o=s[n];let a=!0;o&&(i!=r&&i>=o.startTime&&r<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${r}ms"`),a=!1),i=o.startTime),a&&(s[n]={startTime:i,endTime:r}),t.options&&function(e,t,n){const r=t.params||{},i=M(e);i.length&&i.forEach(e=>{r.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const i=[];let s=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(ee(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(ee(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),u=0;return null!=l&&(r++,u=n.offset=l),o=o||u<0||u>1,s=s||u<a,a=u,i.push(u),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&t.errors.push("Please ensure that all keyframe offsets are in order");const u=e.steps.length;let c=0;r>0&&r<u?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(c=1/(u-1));const h=u-1,d=t.currentTime,p=t.currentAnimateTimings,f=p.duration;return l.forEach((e,r)=>{const s=c>0?r==h?1:c*r:i[r],o=s*f;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=s,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:H(this,P(e.animation),t),options:te(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:te(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:te(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[i,s]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(G,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+i:i,c(t.collectedStyles,t.currentQuerySelector,{});const o=H(this,P(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:o,originalSelector:e.selector,options:te(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:x(e.timings,t.errors,!0);return{type:12,animation:H(this,P(e.animation),t),timings:n,options:null}}}class X{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ee(e){return!Array.isArray(e)&&"object"==typeof e}function te(e){var t;return e?(e=T(e)).params&&(e.params=(t=e.params)?T(t):null):e={},e}function ne(e,t,n){return{duration:e,delay:t,easing:n}}function re(e,t,n,r,i,s,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}class ie{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const se=new RegExp(":enter","g"),oe=new RegExp(":leave","g");function ae(e,t,n,r,i,s={},o={},a,l,u=[]){return(new le).buildKeyframes(e,t,n,r,i,s,o,a,l,u)}class le{buildKeyframes(e,t,n,r,i,s,o,a,l,u=[]){l=l||new ie;const c=new ce(e,t,l,r,i,u,[]);c.options=a,c.currentTimeline.setStyles([s],null,c.errors,a),H(this,n,c);const h=c.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,c.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[re(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}
vendor: 4,117 bytes, line 1
1visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);i!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime;const i=null!=n.duration?k(n.duration):null,s=null!=n.delay?k(n.delay):null;return 0!==i&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,i,s);r=Math.max(r,n.duration+n.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),H(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let r=t;const i=e.options;if(i&&(i.params||i.delay)&&(r=t.createSubContext(i),r.transformIntoNewTimeline(),null!=i.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ue);const e=k(i.delay);r.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>H(this,e,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let r=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?k(e.options.delay):0;e.steps.forEach(s=>{const o=t.createSubContext(e.options);i&&o.delayNextStep(i),H(this,s,o),r=Math.max(r,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return x(t.params?F(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());const i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,s=t.createSubContext().currentTimeline;s.easing=n.easing,e.styles.forEach(e=>{s.forwardTime((e.offset||0)*i),s.setStyles(e.styles,e.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(r+i),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,r=e.options||{},i=r.delay?k(r.delay):0;i&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ue);let s=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,r)=>{t.currentQueryIndex=r;const o=t.createSubContext(e.options,n);i&&o.delayNextStep(i),n===t.element&&(a=o.currentTimeline),H(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,r=t.currentTimeline,i=e.timings,s=Math.abs(i.duration),o=s*(t.currentQueryTotal-1);let a=s*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const u=l.currentTime;H(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const ue={};class ce{constructor(e,t,n,r,i,s,o,a){this._driver=e,this.element=t,this.subInstru
1ctions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ue,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new he(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let r=this.options;null!=n.duration&&(r.duration=k(n.duration)),null!=n.delay&&(r.delay=k(n.delay));const i=n.params;if(i){let e=r.params;e||(e=this.options.params={}),Object.keys(i).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=F(i[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const r=t||this.element,i=new ce(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=ue,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new de(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,r,i,s){let o=[];if(r&&o.push(this.element),e.length>0){e=(e=e.replace(se,"."+this._enterClassName)).replace(oe,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return i||0!=o.length||s.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class he{constructor(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new he(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEac
1h(e=>{this._backFill[e]=this._globalTimelineStyles[e]||r.a,this._currentKeyframe[e]=r.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&(this._previousKeyframe.easing=t);const s=i&&i.params||{},o=function(e,t){const n={};let i;return e.forEach(e=>{"*"===e?(i=i||Object.keys(t),i.forEach(e=>{n[e]=r.a})):I(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(o).forEach(e=>{const t=F(o[e],s,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:r.a),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],r=e._styleSummary[t];(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const a=I(s,!0);Object.keys(a).forEach(n=>{const i=a[n];i==r.p?e.add(n):i==r.a&&t.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const s=e.size?L(e.values()):[],o=t.size?L(t.values()):[];if(n){const e=i[0],t=T(e);e.offset=0,t.offset=1,i=[e,t]}return re(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class de extends he{constructor(e,t,n,r,i,s,o=!1){super(e,t,s.delay),this.element=t,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],s=n+t,o=t/s,a=I(e[0],!1);a.offset=0,i.push(a);const l=I(e[0],!1);l.offset=pe(o),i.push(l);const u=e.length-1;for(let r=1;r<=u;r++){let o=I(e[r],!1);o.offset=pe((t+o.offset*n)/s),i.push(o)}n=s,t=0,r="",e=i}return re(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}}function pe(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class fe{}class ge extends fe{normalizePropertyName(e,t){return U(e)}normalizeStyleValue(e,t,n,r){let i="";const s=n.toString().trim();if(me[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&r.push(`Please provide a CSS unit value for ${e}:${n}`)}return s+i}}const me=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function be(e,t,n,r,i,s,o,a,l,u,c,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}const ye={};class _e{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return function(e,t,n,r,i){return e.some(e=>e(t,n,r,i))}(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){const r=this._stateStyles["*"],i=this._stateStyles[e],s=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):s}build(e,t,n,r,i,s,o,a,l,u){const h=[],d=this.ast.options&&this.ast.options.params||ye,p=this.buildStyles(n,o&&o.params||ye,h),f=a&&a.params||ye,g=this.buildStyles(r,f,h),m=new Set,b=new Map,y=new Map,_="void"===r,v={params:Object.assign(Object.assign({},d),f)},w=u?[]:ae(e,t,this.ast.animation,i,s,p,g,v,l,h);let C=0;
1if(w.forEach(e=>{C=Math.max(e.duration+e.delay,C)}),h.length)return be(t,this._triggerName,n,r,_,p,g,[],[],b,y,C,h);w.forEach(e=>{const n=e.element,r=c(b,n,{});e.preStyleProps.forEach(e=>r[e]=!0);const i=c(y,n,{});e.postStyleProps.forEach(e=>i[e]=!0),n!==t&&m.add(n)});const S=L(m.values());return be(t,this._triggerName,n,r,_,p,g,w,S,b,y,C)}}class ve{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},r=T(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const i=e;Object.keys(i).forEach(e=>{let s=i[e];s.length>1&&(s=F(s,r,t)),n[e]=s})}}),n}}class we{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new ve(e.style,e.options&&e.options.params||{})}),Ce(this.states,"true","1"),Ce(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new _e(e,t,this.states))}),this.fallbackTransition=new _e(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(i=>i.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Ce(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const Se=new ie;class Oe{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],r=Y(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=r}_buildPlayer(e,t,n){const r=e.element,i=o(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],o=this._animations[e];let a;const l=new Map;if(o?(a=ae(this._driver,t,o,"ng-enter","ng-leave",{},{},n,Se,i),a.forEach(e=>{const t=c(l,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),a=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);l.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,r.a)})});const u=s(a.map(e=>{const t=l.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,r){const i=u(t,"","","");return a(this._getPlayer(e),n,i,r),()=>{}}command(e,t,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n)return void this.create(e,t,r[0]||{});const i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const ke=[],Ee={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Te{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(r=n?e.value:e)?r:null,n){const t=T(e);delete t.value,this.options=t}else this.options={};var r;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Ie=new Te("void");class je{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
1+e,Le(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(i=n)&&"done"!=i)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var i;const s=c(this._elementListeners,e,[]),o={name:t,phase:n,callback:r};s.push(o);const a=c(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Le(e,"ng-trigger"),Le(e,"ng-trigger-"+t),a[t]=Ie),()=>{this._engine.afterFlush(()=>{const e=s.indexOf(o);e>=0&&s.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,r=!0){const i=this._getTrigger(t),s=new Ae(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Le(e,"ng-trigger"),Le(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new Te(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=Ie),"void"!==l.value&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){const r=n[i];if(!t.hasOwnProperty(r)||e[r]!==t[r])return!1}return!0}(a.params,l.params)){const t=[],n=i.matchStyles(a.value,a.params,t),r=i.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{R(e,n),A(e,r)})}return}const u=c(this._engine.playersByElement,e,[]);u.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let h=i.matchTransition(a.value,l.value,e,l.params),d=!1;if(!h){if(!r)return;h=i.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:a,toState:l,player:s,isFallbackTransition:d}),d||(Le(e,"ng-animate-queued"),s.onStart(()=>{Ve(e,"ng-animate-queued")})),s.onDone(()=>{let t=this.players.indexOf(s);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(s);e>=0&&n.splice(e,1)}}),this.players.push(s),u.push(s),s}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,".ng-trigger",!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,r){const i=this._engine.statesByElement.get(e);if(i){const o=[];
1if(Object.keys(i).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,"void",r);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&s(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const r=t.name;if(n.has(r))return;n.add(r);const i=this._triggers[r].fallbackTransition,s=this._engine.statesByElement.get(e)[r]||Ie,o=new Te("void"),a=new Ae(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:i,fromState:s,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)r=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,t);else{const r=e.__ng_removed;r&&r!==Ee||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Le(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const i=n.element,s=this._elementListeners.get(i);s&&s.forEach(t=>{if(t.name==n.triggerName){const r=u(i,n.triggerName,n.fromState.value,n.toState.value);r._data=e,a(n.player,t.phase,r,t.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,r=t.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class De{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new je(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let r=0;r<e.length;r++){const i=n[e[r]].namespaceId;if(i){const e=this._fetchNamespace(i);e&&t.add(e)}}}return t}trigger(e,t,n,r){if(Re(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,n,r),!0}return!1}insertNode(e,t,n,r){if(!Re(t))return;const i=t.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const r=this._fetchNamespace(e);
1r&&r.insertNode(t,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Le(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ve(e,"ng-animate-disabled"))}removeNode(e,t,n,r){if(Re(t)){const i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,n,r){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,r,i){return Re(t)?this._fetchNamespace(e).listen(t,n,r,i):()=>{}}_buildInstruction(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,".ng-trigger",!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,".ng-animating",!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return s(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Ee,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Le(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?s(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new ie,i=[],o=new Map,a=[],l=new Map,u=new Map,h=new Map,d=new Set;this.disabledNodes.forEach(e=>{d.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)d.add(t[n])});const p=this.bodyNode,f=Array.from(this.statesByElement.keys()),g=Me(f,this.collectedEnterElements),m=new Map;let b=0;g.forEach((e,t)=>{const n="ng-enter"+b++;m.set(t,n),e.forEach(e=>Le(e,n))});const y=[],_=new Set,v=new Set;for(let r=0;r<this.collectedLeaveElements.length;r++){const e=this.collectedLeaveElements[r],t=e.__ng_removed;t&&t.setForRemoval&&(y.push(e),_.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>_.add(e)):v.add(e))}const w=new Map,C=Me(f,Array.from(_));C.forEach((e,t)=>{const n="ng-leave"+b++;w.set(t,n),e.forEach(e=>Le(e,n))}),e.push(()=>{g.forEach((e,t)=>{const n=m.get(t);e.forEach(e=>Ve(e,n))}),C.forEach((e,t)=>{const n=w.get(t);e.forEach(e=>Ve(e,n))}),y.forEach(e=>{this.processLeaveNode(e)})});const S=[],O=[];for(let r=this._namespaceList.length-1;r>=0;
1r--)this._namespaceList[r].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(S.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const s=!p||!this.driver.containsElement(p,r),o=w.get(r),d=m.get(r),f=this._buildInstruction(e,n,d,o,s);if(f.errors&&f.errors.length)O.push(f);else{if(s)return t.onStart(()=>R(r,f.fromStyles)),t.onDestroy(()=>A(r,f.toStyles)),void i.push(t);if(e.isFallbackTransition)return t.onStart(()=>R(r,f.fromStyles)),t.onDestroy(()=>A(r,f.toStyles)),void i.push(t);f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,f.timelines),a.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(e=>c(l,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=u.get(t);e||u.set(t,e=new Set),n.forEach(t=>e.add(t))}}),f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let r=h.get(t);r||h.set(t,r=new Set),n.forEach(e=>r.add(e))})}});if(O.length){const e=[];O.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),S.forEach(e=>e.destroy()),this.reportError(e)}const k=new Map,E=new Map;a.forEach(e=>{const t=e.element;n.has(t)&&(E.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,k))}
vendor: 1,097 bytes, line 1
1),i.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{c(k,t,[]).push(e),e.destroy()})});const x=y.filter(e=>$e(e,u,h)),T=new Map;Ne(T,this.driver,v,h,r.a).forEach(e=>{$e(e,u,h)&&x.push(e)});const I=new Map;g.forEach((e,t)=>{Ne(I,this.driver,new Set(e),u,r.p)}),x.forEach(e=>{const t=T.get(e),n=I.get(e);T.set(e,Object.assign(Object.assign({},t),n))});const j=[],D=[],P={};a.forEach(e=>{const{element:t,player:r,instruction:a}=e;if(n.has(t)){if(d.has(t))return r.onDestroy(()=>A(t,a.toStyles)),r.disabled=!0,r.overrideTotalTime(a.totalTime),void i.push(r);let e=P;if(E.size>1){let n=t;const r=[];for(;n=n.parentNode;){const t=E.get(n);if(t){e=t;break}r.push(n)}r.forEach(t=>E.set(t,e))}const n=this._buildAnimation(r.namespaceId,a,k,o,I,T);if(r.setRealPlayer(n),e===P)j.push(r);else{const t=this.playersByElement.get(e);t&&t.length&&(r.parentPlayer=s(t)),i.push(r)}}else R(t,a.fromStyles),r.onDestroy(()=>A(t,a.toStyles)),D.push(r),d.has(t)&&i.push(r)}),D.forEach(e=>{const t=o.get(e.element);if(t&&t.length){const n=s(t);e.setRealPlayer(n)}}
1),i.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let r=0;r<y.length;r++){const e=y[r],t=e.__ng_removed;if(Ve(e,"ng-leave"),t&&t.hasAnimation)continue;let n=[];if(l.size){let t=l.get(e);t&&t.length&&n.push(...t);let r=this.driver.query(e,".ng-animating",!0);for(let e=0;e<r.length;e++){let t=l.get(r[e]);t&&t.length&&n.push(...t)}}const i=n.filter(e=>!e.destroyed);i.length?Ue(this,e,i):this.processLeaveNode(e)}return y.length=0,j.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),j}elementContainsData(e,t){let n=!1;const r=t.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,r,i){let s=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(s=t)}else{const t=this.playersByElement.get(e);if(t){const e=!i||"void"==i;t.forEach(t=>{t.queued||(e||t.triggerName==r)&&s.push(t)})}}return(n||r)&&(s=s.filter(e=>!(n&&n!=e.namespaceId||r&&r!=e.triggerName))),s}_beforeAnimationBuild(e,t,n){const r=t.element,i=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==r,l=c(n,e,[]);this._getPreviousPlayers(e,a,i,s,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}R(r,t.fromStyles)}_buildAnimation(e,t,n,i,a,l){const u=t.triggerName,h=t.element,d=[],p=new Set,f=new Set,g=t.timelines.map(t=>{const s=t.element;p.add(s);const c=s.__ng_removed;if(c&&c.removedBeforeQueried)return new r.d(t.duration,t.delay);const g=s!==h,m=function(e){const t=[];return ze(e,t),t}((n.get(s)||ke).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===s),b=a.get(s),y=l.get(s),_=o(0,this._normalizer,0,t.keyframes,b,y),v=this._buildPlayer(t,_,m);if(t.subTimeline&&i&&f.add(s),g){const t=new Ae(e,u,s);t.setRealPlayer(v),d.push(t)}return v});d.forEach(e=>{c(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let r;if(e instanceof Map){if(r=e.get(t),r){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&e.delete(t)}}else if(r=e[t],r){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&delete e[t]}return r}(this.playersByQueriedElement,e.element,e))}),p.forEach(e=>Le(e,"ng-animating"));const m=s(g);return m.onDestroy(()=>{p.forEach(e=>Ve(e,"ng-animating")),A(h,t.toStyles)}),f.forEach(e=>{c(i,e,[]).push(m)}),m}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new r.d(e.duration,e.delay)}}class Ae{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new r.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEac
1h(t=>{this._queuedCallbacks[t].forEach(n=>a(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){c(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Re(e){return e&&1===e.nodeType}function Pe(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Ne(e,t,n,r,i){const s=[];n.forEach(e=>s.push(Pe(e)));const o=[];r.forEach((n,r)=>{const s={};n.forEach(e=>{const n=s[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r.__ng_removed=xe,o.push(r))}),e.set(r,s)});let a=0;return n.forEach(e=>Pe(e,s[a++])),o}function Me(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const r=new Set(t),i=new Map;function s(e){if(!e)return 1;let t=i.get(e);if(t)return t;const o=e.parentNode;return t=n.has(o)?o:r.has(o)?1:s(o),i.set(e,t),t}return t.forEach(e=>{const t=s(e);1!==t&&n.get(t).push(e)}),n}const Fe="$$classes";function Le(e,t){if(e.classList)e.classList.add(t);else{let n=e[Fe];n||(n=e[Fe]={}),n[t]=!0}}function Ve(e,t){if(e.classList)e.classList.remove(t);else{let n=e[Fe];n&&delete n[t]}}function Ue(e,t,n){s(n).onDone(()=>e.processLeaveNode(t))}function ze(e,t){for(let n=0;n<e.length;n++){const i=e[n];i instanceof r.o?ze(i.players,t):t.push(i)}}function $e(e,t,n){const r=n.get(e);if(!r)return!1;let i=t.get(e);return i?r.forEach(e=>i.add(e)):t.set(e,r),n.delete(e),!0}class qe{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new De(e,t,n),this._timelineEngine=new Oe(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,r,i){const s=e+"-"+r;let o=this._triggerCache[s];if(!o){const e=[],t=Y(this._driver,i,e);if(e.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new we(e,t)}(r,t),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(t,r,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if("@"==n.charAt(0)){const[e,i]=h(n);this._timelineEngine.command(e,t,i,r)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,i){if("@"==n.charAt(0)){const[e,r]=h(n);return this._timelineEngine.listen(e,t,r,i)}return this._transitionEngine.listen(e,t,n,r,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function He(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=Be(t[0]),t.length>1&&(r=Be(t[t.length-1]))):t&&(n=Be(t)),n||r?new We(e,n,r):null}let We=(()=>{class e{constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&A(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(A(this._element,this._initialStyles),this._endStyles&&(A(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(R(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(R(this._element,this._endStyles),this._endStyles=null),A(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Be(e){let t=null;const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=n[r];Ke(i)&&(t=t||{},t[i]=e[i])}return t}function Ke(e){return"display"===e||"position"===e}class Qe{constructor(e,t,n,r,i,s,o){this._element=e,this._name=t,this._duration=n,this._delay=r,this._easing=i,this._fillMode=s,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e
1=>this._handleCallback(e)}apply(){!function(e,t){const n=et(e,"").trim();n.length&&(function(e){let t=0;for(let n=0;n<e.length;n++)","===e.charAt(n)&&t++}(n),t=`${n}, ${t}`),Xe(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Je(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Ze(this._element,this._name,"paused")}resume(){Ze(this._element,this._name,"running")}setPosition(e){const t=Ge(this._element,this._name);this._position=e*this._duration,Xe(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Je(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=et(e,"").split(","),r=Ye(n,t);r>=0&&(n.splice(r,1),Xe(e,"",n.join(",")))}(this._element,this._name))}}function Ze(e,t,n){Xe(e,"PlayState",n,Ge(e,t))}function Ge(e,t){const n=et(e,"");return n.indexOf(",")>0?Ye(n.split(","),t):Ye([n],t)}function Ye(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Je(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Xe(e,t,n,r){const i="animation"+t;if(null!=r){const t=e.style[i];if(t.length){const e=t.split(",");e[r]=n,n=e.join(",")}}e.style[i]=n}function et(e,t){return e.style["animation"+t]}class tt{constructor(e,t,n,r,i,s,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=r+i,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Qe(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:W(this.element,n))})}this.currentSnapshot=e}}class nt extends r.d{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=C(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class rt{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return y(e)}matchesElement(e,t){return _(e,t)}containsElement(e,t){return v(e,t)}query(e,t,n){return w(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>C(e));let r=`@keyframes ${t} {\n`,i="";
1n.forEach(e=>{i=" ";const t=parseFloat(e.offset);r+=`${i}${100*t}% {\n`,i+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=`${i}animation-timing-function: ${n};\n`));default:return void(r+=`${i}${t}: ${n};\n`)}}),r+=`${i}}\n`}),r+="}\n";const s=document.createElement("style");return s.innerHTML=r,s}animate(e,t,n,r,i,s=[],o){o&&this._notifyFaultyScrubber();const a=s.filter(e=>e instanceof tt),l={};$(n,r)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=q(e,t,l));if(0==n)return new nt(e,u);const c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);const d=He(e,t),p=new tt(e,t,c,n,r,i,u,d);return p.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class it{constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:W(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class st{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(at().toString()),this._cssKeyframesDriver=new rt}validateStyleProperty(e){return y(e)}matchesElement(e,t){return _(e,t)}containsElement(e,t){return v(e,t)}query(e,t,n){return w(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,r,i,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,s);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);const l={},u=s.filter(e=>e instanceof it);
1$(n,r)&&u.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=He(e,t=q(e,t=t.map(e=>I(e,!1)),l));return new it(e,t,a,c)}}function ot(){return"function"==typeof at()}function at(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}},gRHU:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("2fFW"),i=n("NJ4a");const s={closed:!0,next(e){},error(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete(){}}},iInd:function(e,t,n){"use strict";n.d(t,"a",function(){return He}),n.d(t,"b",function(){return Y}),n.d(t,"c",function(){return an}),n.d(t,"d",function(){return Ce}),n.d(t,"e",function(){return V}),n.d(t,"f",function(){return vn}),n.d(t,"g",function(){return _n}),n.d(t,"h",function(){return yn}),n.d(t,"i",function(){return Sn}),n.d(t,"j",function(){return Fn}),n.d(t,"k",function(){return rn}),n.d(t,"l",function(){return Zt}),n.d(t,"m",function(){return pn}),n.d(t,"n",function(){return fn}),n.d(t,"o",function(){return xn}),n.d(t,"p",function(){return mn}),n.d(t,"q",function(){return wn}),n.d(t,"r",function(){return ln}),n.d(t,"s",function(){return we}),n.d(t,"t",function(){return On}),n.d(t,"u",function(){return En}),n.d(t,"v",function(){return Tn}),n.d(t,"w",function(){return In}),n.d(t,"x",function(){return jn}),n.d(t,"y",function(){return An}),n.d(t,"z",function(){return Rn}),n.d(t,"A",function(){return Pn}),n.d(t,"B",function(){return Nn}),n.d(t,"C",function(){return Mn}),n.d(t,"D",function(){return Jt}),n.d(t,"E",function(){return Cn});var r=n("SVse"),i=n("8Y7J"),s=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),l=n("itXk"),u=n("HDdC"),c=n("sVev"),h=n("NXyV"),d=n("EY2u"),p=n("XNiG"),f=n("lJxs"),g=n("0EUg"),m=n("pLZG"),b=n("7o/Q"),y=n("4I5i");function _(e){return function(t){return 0===e?Object(d.b)():t.lift(new v(e))}}class v{constructor(e){if(this.total=e,this.total<0)throw new y.a}call(e,t){return t.subscribe(new w(e,this.total))}}class w extends b.a{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;i<n;i++){const i=t++%n;e.next(r[i])}}e.complete()}}var C=n("XDbj"),S=n("xbPD"),O=n("SpAZ"),k=n("eIep"),E=n("IzEk"),x=n("JX91"),T=n("Kqap"),I=n("JIr8"),j=n("bOdf"),D=n("SxV6"),A=n("5+tZ"),R=n("vkgz"),P=n("quSY");class N{constructor(e){this.callback=e}call(e,t){return t.subscribe(new M(e,this.callback))}}class M extends b.a{constructor(e,t){super(e),this.add(new P.a(t))}}var F=n("bHdf");class L{constructor(e,t){this.id=e,this.url=t}}class V extends L{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class U extends L{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class z extends L{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $ extends L{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class q extends L{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class H extends L{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class W extends L{constructor(e,t,n,r,i){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class B extends L{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K extends L{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Q{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Z{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class G{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Y{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class J{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class X{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ee{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const te="primary";class ne{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function re(e){return new ne(e)}function ie(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function se(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const i={};for(let s=0;s<r.length;s++){const t=r[s],n=e[s];if(t.startsWith(":"))i[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function oe(e,t){const n=Object.keys(e),r=Object.keys(t);if(!n||!r||n.length!=r.length)return!1;let i;for(let s=0;s<n.length;s++)if(i=n[s],!ae(e[i],t[i]))return!1;return!0}function ae(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),r=[...t].sort();return n.every((e,t)=>r[t]===e)}return e===t}function le(e){return Array.prototype.concat.apply([],e)}function ue(e){return e.length>0?e[e.length-1]:null}function ce(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function he(e){return Object(i.Hb)(e)?e:Object(i.Ib)(e)?Object(o.a)(Prom
1ise.resolve(e)):Object(s.a)(e)}function de(e,t,n){return n?function(e,t){return oe(e,t)}(e.queryParams,t.queryParams)&&pe(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>ae(e[n],t[n]))}(e.queryParams,t.queryParams)&&fe(e.root,t.root)}function pe(e,t){if(!_e(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children){if(!e.children[n])return!1;if(!pe(e.children[n],t.children[n]))return!1}return!0}function fe(e,t){return ge(e,t,t.segments)}function ge(e,t,n){if(e.segments.length>n.length)return!!_e(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!_e(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!fe(e.children[n],t.children[n]))return!1}return!0}{const r=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!_e(e.segments,r)&&!!e.children.primary&&ge(e.children.primary,t,i)}}class me{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=re(this.queryParams)),this._queryParamMap}toString(){return Se.serialize(this)}}class be{constructor(e,t){this.segments=e,this.children=t,this.parent=null,ce(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Oe(this)}}class ye{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=re(this.parameters)),this._parameterMap}toString(){return De(this)}}function _e(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function ve(e,t){let n=[];return ce(e.children,(e,r)=>{"primary"===r&&(n=n.concat(t(e,r)))}),ce(e.children,(e,r)=>{"primary"!==r&&(n=n.concat(t(e,r)))}),n}class we{}class Ce{parse(e){const t=new Me(e);return new me(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`/${ke(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${xe(t)}=${xe(e)}`).join("&"):`${xe(t)}=${xe(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const Se=new Ce;function Oe(e){return e.segments.map(e=>De(e)).join("/")}function ke(e,t){if(!e.hasChildren())return Oe(e);if(t){const t=e.children.primary?ke(e.children.primary,!1):"",n=[];return ce(e.children,(e,t)=>{"primary"!==t&&n.push(`${t}:${ke(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=ve(e,(t,n)=>"primary"===n?[ke(e.children.primary,!1)]:[`${n}:${ke(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${Oe(e)}/${t[0]}`:`${Oe(e)}/(${t.join("//")})`}}function Ee(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xe(e){return Ee(e).replace(/%3B/gi,";")}function Te(e){return Ee(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ie(e){return decodeURIComponent(e)}function je(e){return Ie(e.replace(/\+/g,"%20"))}function De(e){return`${Te(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Te(e)}=${Te(t[e])}`).join("")}`;var t}const Ae=/^[^\/()?;=#]+/;function Re(e){const t=e.match(Ae);return t?t[0]:""}const Pe=/^[^=?&#]+/,Ne=/^[^?&#]+/;class Me{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new be([],{}):new be([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new be(e,t)),n}parseSegment(){const e=Re(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new ye(Ie(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Re(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Re(this.remaining);e&&(n=e,this.capture(n))}e[Ie(t)]=Ie(n)}parseQueryParam(e){const t=function(e){const t=e.match(Pe);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(Ne);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const r=je(t),i=je(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(t=[t],e[r]=t),t.push(i)}else e[r]=i}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Re(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i="primary");const s=this.parseChildren();t[i]=1===Object.keys(s).length?s.primary:new be([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class Fe{constructor(e){this._root=e}get root(){return this._root.value}
1parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Le(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Le(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Ve(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Ve(e,this._root).map(e=>e.value)}}function Le(e,t){if(e===t.value)return t;for(const n of t.children){const t=Le(e,n);if(t)return t}return null}function Ve(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Ve(e,n);if(r.length)return r.unshift(t),r}return[]}class Ue{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function ze(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class $e extends Fe{constructor(e,t){super(e),this.snapshot=t,Qe(this,e)}toString(){return this.snapshot.toString()}}function qe(e,t){const n=function(e,t){const n=new Be([],{},{},"",{},"primary",t,null,e.root,-1,{});return new Ke("",new Ue(n,[]))}(e,t),r=new a.a([new ye("",{})]),i=new a.a({}),s=new a.a({}),o=new a.a({}),l=new a.a(""),u=new He(r,i,o,l,s,"primary",t,n.root);return u.snapshot=n.root,new $e(new Ue(u,[]),n)}class He{constructor(e,t,n,r,i,s,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(f.a)(e=>re(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(f.a)(e=>re(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function We(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Be{constructor(e,t,n,r,i,s,o,a,l,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=re(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=re(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ke extends Fe{constructor(e,t){super(t),this.url=e,Qe(this,t)}toString(){return Ze(this._root)}}function Qe(e,t){t.value._routerState=e,t.children.forEach(t=>Qe(e,t))}function Ze(e){const t=e.children.length>0?` { ${e.children.map(Ze).join(", ")} } `:"";return`${e.value}${t}`}function Ge(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,oe(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),oe(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!oe(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),oe(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Ye(e,t){const n=oe(e.params,t.params)&&_e(r=e.url,i=t.url)&&r.every((e,t)=>oe(e.parameters,i[t].parameters));var r,i;return n&&!(!e.parent!=!t.parent)&&(!e.parent||Ye(e.parent,t.parent))}function Je(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function(e,t,n){return t.children.map(t=>{for(const r of n.children)if(e.shouldReuseRoute(r.value.snapshot,t.value))return Je(e,t,r);return Je(e,t)})}
1(e,t,n);return new Ue(r,i)}{const n=e.retrieve(t.value);if(n){const e=n.route;return Xe(t,e),e}{const n=new He(new a.a((r=t.value).url),new a.a(r.params),new a.a(r.queryParams),new a.a(r.fragment),new a.a(r.data),r.outlet,r.component,r),i=t.children.map(t=>Je(e,t));return new Ue(n,i)}}var r}function Xe(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let n=0;n<e.children.length;++n)Xe(e.children[n],t.children[n])}function et(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function tt(e,t,n,r,i){let s={};return r&&ce(r,(e,t)=>{s[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new me(n.root===e?t:nt(n.root,e,t),s,i)}function nt(e,t,n){const r={};return ce(e.children,(e,i)=>{r[i]=e===t?n:nt(e,t,n)}),new be(e.segments,r)}class rt{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&et(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(r&&r!==ue(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class it{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function st(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets.primary:`${e}`}function ot(e,t,n){if(e||(e=new be([],{})),0===e.segments.length&&e.hasChildren())return at(e,t,n);const r=function(e,t,n){let r=0,i=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return s;const t=e.segments[i],o=st(n[r]),a=r<n.length-1?n[r+1]:null;if(i>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!ht(o,a,t))return s;r+=2}else{if(!ht(o,{},t))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const t=new be(e.segments.slice(0,r.pathIndex),{});return t.children.primary=new be(e.segments.slice(r.pathIndex),e.children),at(t,0,i)}return r.match&&0===i.length?new be(e.segments,{}):r.match&&!e.hasChildren()?lt(e,t,n):r.match?at(e,0,i):lt(e,t,n)}function at(e,t,n){if(0===n.length)return new be(e.segments,{});{const r=function(e){return"object"==typeof e[0]&&null!==e[0]&&e[0].outlets?e[0].outlets:{[te]:e}}(n),i={};return ce(r,(n,r)=>{null!==n&&(i[r]=ot(e.children[r],t,n))}),ce(e.children,(e,t)=>{void 0===r[t]&&(i[t]=e)}),new be(e.segments,i)}}function lt(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i<n.length;){if("object"==typeof n[i]&&null!==n[i]&&void 0!==n[i].outlets){const e=ut(n[i].outlets);return new be(r,e)}if(0===i&&et(n[0])){r.push(new ye(e.segments[t].path,n[0])),i++;continue}const s=st(n[i]),o=i<n.length-1?n[i+1]:null;s&&o&&et(o)?(r.push(new ye(s,ct(o))),i+=2):(r.push(new ye(s,{})),i++)}return new be(r,{})}function ut(e){const t={};return ce(e,(e,n)=>{null!==e&&(t[n]=lt(new be([],{}),0,e))}),t}function ct(e){const t={};return ce(e,(e,n)=>t[n]=`${e}`),t}function ht(e,t,n){return e==n.path&&oe(t,n.parameters)}class dt{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Ge(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=ze(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),ce(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const r=ze(e),i=e.value.component?n.children:t;ce(r,(e,t)=>this.deactivateRouteAndItsChildren(e,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}
1activateChildRoutes(e,t,n){const r=ze(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new X(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Y(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(Ge(r),r===s)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),pt(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=s,t.outlet?t.outlet.activateWith(r,s):Object(i.W)()&&console&&console.warn&&console.warn(`A router outlet has not been instantiated during routes activation. URL Segment: '${r.snapshot._urlSegment}'`),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function pt(e){Ge(e.value),e.children.forEach(pt)}class ft{constructor(e,t){this.routes=e,this.module=t}}function gt(e){return"function"==typeof e}function mt(e){return e instanceof me}const bt=Symbol("INITIAL_VALUE");function yt(){return Object(k.a)(e=>Object(l.a)(...e.map(e=>e.pipe(Object(E.a)(1),Object(x.a)(bt)))).pipe(Object(T.a)((e,t)=>{let n=!1;return t.reduce((e,r,i)=>{if(e!==bt)return e;if(r===bt&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||mt(r))return r}return e},e)},bt),Object(m.a)(e=>e!==bt),Object(f.a)(e=>mt(e)?e:!0===e),Object(E.a)(1)))}class _t{constructor(e){this.segmentGroup=e||null}}class vt{constructor(e){this.urlTree=e}}function wt(e){return new u.a(t=>t.error(new _t(e)))}function Ct(e){return new u.a(t=>t.error(new vt(e)))}function St(e){return new u.a(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Ot{constructor(e,t,n,r,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(i.x)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(f.a)(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(I.a)(e=>{if(e instanceof vt)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof _t)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(Object(f.a)(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(Object(I.a)(e=>{if(e instanceof _t)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new be([],{[te]:e}):e;return new me(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(f.a)(e=>new be([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return Object(s.a)({});const n=[],r=[],i={};return ce(e,(e,s)=>{const o=t(s,e).pipe(Object(f.a)(e=>i[s]=e));"primary"===s?n.push(o):r.push(o)}),s.a.apply(null,n.concat(r)).pipe(Object(g.a)(),function(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Object(m.a)((t,n)=>e(t,n,r)):O.a,_(1),n?Object(S.a)(t):Object(C.a)(()=>new c.a))}(),Object(f.a)(()=>i))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,i,o){return Object(s.a)(...n).pipe(Object(j.a)(a=>this.expandSegmentAgainstRoute(e,t,n,a,r,i,o).pipe(Object(I.a)(e=>{if(e instanceof _t)return Object(s.a)(null);throw e}))),Object(D.a)(e=>!!e),Object(I.a)((e,n)=>{if(e instanceof c.a||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,i))return Object(s.a)(new be([],{}));throw new _t(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,i,s,o){return Tt(r)!==s?wt(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i
1):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s):wt(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ct(i):this.lineralizeSegments(n,i).pipe(Object(A.a)(n=>{const i=new be(n,{});return this.expandSegment(e,i,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:u}=kt(t,r,i);if(!o)return wt(t);const c=this.applyRedirectCommands(a,r.redirectTo,u);return r.redirectTo.startsWith("/")?Ct(c):this.lineralizeSegments(r,c).pipe(Object(A.a)(r=>this.expandSegment(e,t,n,r.concat(i.slice(l)),s,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(f.a)(e=>(n._loadedConfig=e,new be(r,{})))):Object(s.a)(new be(r,{}));const{matched:i,consumedSegments:o,lastChild:a}=kt(t,n,r);if(!i)return wt(t);const l=r.slice(a);return this.getChildConfig(e,n,r).pipe(Object(A.a)(e=>{const n=e.module,r=e.routes,{segmentGroup:i,slicedSegments:a}=function(e,t,n,r){if(n.length>0&&function(e,t,n){return n.some(n=>xt(e,t,n)&&"primary"!==Tt(n))}(e,n,r))return{segmentGroup:Et(new be(t,function(e,t){const n={};n.primary=t;for(const r of e)""===r.path&&"primary"!==Tt(r)&&(n[Tt(r)]=new be([],{}));return n}(r,new be(n,e.children)))),slicedSegments:[]};if(0===n.length&&function(e,t,n){return n.some(n=>xt(e,t,n))}(e,n,r)){const t=new be(e.segments,function(e,t,n,r){const i={};for(const s of n)xt(e,t,s)&&!r[Tt(s)]&&(i[Tt(s)]=new be([],{}));return Object.assign(Object.assign({},r),i)}(e,n,r,e.children));return{segmentGroup:Et(t),slicedSegments:n}}return{segmentGroup:e,slicedSegments:n}}(t,o,l,r);return 0===a.length&&i.hasChildren()?this.expandChildren(n,r,i).pipe(Object(f.a)(e=>new be(o,e))):0===r.length&&0===a.length?Object(s.a)(new be(o,{})):this.expandSegment(n,i,r,a,"primary",!0).pipe(Object(f.a)(e=>new be(o.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Object(s.a)(new ft(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(s.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(A.a)(n=>n?this.configLoader.load(e.injector,t).pipe(Object(f.a)(e=>(t._loadedConfig=e,e))):function(e){return new u.a(t=>t.error(ie(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Object(s.a)(new ft([],e))}runCanLoadGuards(e,t,n){const r=t.canLoad;if(!r||0===r.length)return Object(s.a)(!0);const i=r.map(r=>{const i=e.get(r);let s;if(function(e){return e&>(e.canLoad)}(i))s=i.canLoad(t,n);else{if(!gt(i))throw new Error("Invalid CanLoad guard");s=i(t,n)}return he(s)});return Object(s.a)(i).pipe(yt(),Object(R.a)(e=>{if(!mt(e))return;const t=ie(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),Object(f.a)(e=>!0===e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(s.a)(n);if(r.numberOfChildren>1||!r.children.primary)return St(e.redirectTo);r=r.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const i=this.createSegmentGroup(e,t.root,n,r);return new me(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return ce(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const i=this.createSegments(e,t.segments,n,r);let s={};return ce(t.children,(t,i)=>{s[i]=this.createSegmentGroup(e,t,n,r)}),new be(i,s)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function kt(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(t.matcher||se)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Et(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new be(e.segments.concat(t.segments),t.children)}return e}function xt(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Tt(e){return e.outlet||"primary"}class It{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class jt{constructor(e,t){this.component=e,this.route=t}}function Dt(e,t,n){const r=e._root;return Rt(r,t?t._root:null,n,[r.value])}function At(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Rt(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=ze(t);
1return e.children.forEach(e=>{!function(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,o=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!_e(e.url,t.url);case"pathParamsOrQueryParamsChange":return!_e(e.url,t.url)||!oe(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ye(e,t)||!oe(e.queryParams,t.queryParams);default:return!Ye(e,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new It(r)):(s.data=o.data,s._resolvedData=o._resolvedData),Rt(e,t,s.component?a?a.children:null:n,r,i),l&&i.canDeactivateChecks.push(new jt(a&&a.outlet&&a.outlet.component||null,o))}else o&&Pt(t,a,i),i.canActivateChecks.push(new It(r)),Rt(e,null,s.component?a?a.children:null:n,r,i)}(e,s[e.value.outlet],n,r.concat([e.value]),i),delete s[e.value.outlet]}),ce(s,(e,t)=>Pt(e,n.getContext(t),i)),i}function Pt(e,t,n){const r=ze(e),i=e.value;ce(r,(e,r)=>{Pt(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new jt(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function Nt(e,t){return null!==e&&t&&t(new J(e)),Object(s.a)(!0)}function Mt(e,t){return null!==e&&t&&t(new G(e)),Object(s.a)(!0)}function Ft(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Object(s.a)(!0);const i=r.map(r=>Object(h.a)(()=>{const i=At(r,t,n);let s;if(function(e){return e&>(e.canActivate)}(i))s=he(i.canActivate(t,e));else{if(!gt(i))throw new Error("Invalid CanActivate guard");s=he(i(t,e))}return s.pipe(Object(D.a)())}));return Object(s.a)(i).pipe(yt())}function Lt(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>Object(h.a)(()=>{const i=t.guards.map(i=>{const s=At(i,t.node,n);let o;if(function(e){return e&>(e.canActivateChild)}(s))o=he(s.canActivateChild(r,e));else{if(!gt(s))throw new Error("Invalid CanActivateChild guard");o=he(s(r,e))}return o.pipe(Object(D.a)())});return Object(s.a)(i).pipe(yt())}));return Object(s.a)(i).pipe(yt())}class Vt{}class Ut{constructor(e,t,n,r,i,s){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){try{const e=qt(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new Be([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ue(n,t),i=new Ke(this.url,r);return this.inheritParamsAndData(i._root),Object(s.a)(i)}catch(e){return new u.a(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=We(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=ve(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};e.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),r=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value})}(n),n.sort((e,t)=>"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,r){for(const s of e)try{return this.processSegmentAgainstRoute(s,t,n,r)}catch(i){if(!(i instanceof Vt))throw i}if(this.noLeftoversInUrl(t,n,r))return[];throw new Vt}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new Vt;if((e.outlet||"primary")!==r)throw new Vt;let i,s=[],o=[];if("**"===e.path){const s=n.length>0?ue(n).parameters:{};i=new Be(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Bt(e),r,e.component,e,zt(t),$t(t)+n.length,Kt(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Vt;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||se)(n,e,t);if(!r)throw new Vt;const i={};ce(r.posParams,(e,t)=>{i[t]=e.path});const s=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(t,e,n);
1s=a.consumedSegments,o=n.slice(a.lastChild),i=new Be(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Bt(e),r,e.component,e,zt(t),$t(t)+s.length,Kt(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:u}=qt(t,s,o,a,this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const e=this.processChildren(a,l);return[new Ue(i,e)]}if(0===a.length&&0===u.length)return[new Ue(i,[])];const c=this.processSegment(a,l,u,"primary");return[new Ue(i,c)]}}function zt(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function $t(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function qt(e,t,n,r,i){if(n.length>0&&function(e,t,n){return n.some(n=>Ht(e,t,n)&&"primary"!==Wt(n))}(e,n,r)){const i=new be(t,function(e,t,n,r){const i={};i.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const s of n)if(""===s.path&&"primary"!==Wt(s)){const n=new be([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,i[Wt(s)]=n}return i}(e,t,r,new be(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>Ht(e,t,n))}(e,n,r)){const s=new be(e.segments,function(e,t,n,r,i,s){const o={};for(const a of r)if(Ht(e,n,a)&&!i[Wt(a)]){const n=new be([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===s?e.segments.length:t.length,o[Wt(a)]=n}return Object.assign(Object.assign({},i),o)}(e,t,n,r,e.children,i));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const s=new be(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Ht(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Wt(e){return e.outlet||"primary"}function Bt(e){return e.data||{}}function Kt(e){return e.resolve||{}}function Qt(e){return function(t){return t.pipe(Object(k.a)(t=>{const n=e(t);return n?Object(o.a)(n).pipe(Object(f.a)(()=>t)):Object(o.a)([t])}))}}class Zt{}class Gt{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}class Yt extends Gt{}class Jt{}function Xt(e,t=""){for(let n=0;n<e.length;n++){const r=e[n];en(r,tn(t,r))}}function en(e,t){if(!e)throw new Error(`\n Invalid configuration of route '${t}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);if(Array.isArray(e))throw new Error(`Invalid configuration of route '${t}': Array cannot be specified`);if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&"primary"!==e.outlet)throw new Error(`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);if(e.redirectTo&&e.children)throw new Error(`Invalid configuration of route '${t}': redirectTo and children cannot be used together`);if(e.redirectTo&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);if(e.children&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);if(e.redirectTo&&e.component)throw new Error(`Invalid configuration of route '${t}': redirectTo and component cannot be used together`);if(e.path&&e.matcher)throw new Error(`Invalid configuration of route '${t}': path and matcher cannot be used together`);if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error(`Invalid configuration of route '${t}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===e.path&&void 0===e.matcher)throw new Error(`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error(`Invalid configuration of route '${t}': path cannot start with a slash`);if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error(`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error(`Invalid configuration of route '${t}': pathMatch can only be set to 'prefix' or 'full'`);e.children&&Xt(e.children,t)}function tn(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function nn(e){const t=e.children&&e.children.map(nn),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=Jt),n}const rn=new i.q("ROUTES");class sn{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(f.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new ft(le(r.injector.get(rn)).map(nn),r)}))}loadModuleFactory(e){return"string"==typeof e?Object(o.a)(this.loader.load(e)):he(e()).pipe(Object(A.a)(e=>e instanceof i.v?Object(s.a)(e):Object(o.a)(this.compiler.compileModuleAsync(e))))}}class on{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new an,this.attachRef=null}}class an{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new on,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class ln{}class un{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function cn(e){throw e}function hn(e,t,n){return t.parse("/")}function dn(e,t){return Object(s.a)(null)}class pn{constructor(e,t,n,r,s,o,l,u){this.rootComponentType=e,this.urlSerializer
1=t,this.rootContexts=n,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new p.a,this.errorHandler=cn,this.malformedUriErrorHandler=hn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:dn,afterPreactivation:dn},this.urlHandlingStrategy=new un,this.routeReuseStrategy=new Yt,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(i.x),this.console=s.get(i.ab);const c=s.get(i.z);this.isNgZoneEnabled=c instanceof i.z,this.resetConfig(u),this.currentUrlTree=new me(new be([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new sn(o,l,e=>this.triggerEvent(new Q(e)),e=>this.triggerEvent(new Z(e))),this.routerState=qe(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(Object(m.a)(e=>0!==e.id),Object(f.a)(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Object(k.a)(e=>{let n=!1,r=!1;return Object(s.a)(e).pipe(Object(R.a)(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(k.a)(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(s.a)(e).pipe(Object(k.a)(e=>{const n=this.transitions.getValue();return t.next(new V(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?d.a:[e]}),Object(k.a)(e=>Promise.resolve(e)),(r=this.ngModule.injector,i=this.configLoader,o=this.urlSerializer,a=this.config,function(e){return e.pipe(Object(k.a)(e=>function(e,t,n,r,i){return new Ot(e,t,n,r,i).apply()}(r,i,o,e.extractedUrl,a).pipe(Object(f.a)(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t})))))}),Object(R.a)(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,i){return function(s){return s.pipe(Object(A.a)(s=>function(e,t,n,r,i="emptyOnly",s="legacy"){return new Ut(e,t,n,r,i,s).recognize()}(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),r,i).pipe(Object(f.a)(e=>Object.assign(Object.assign({},s),{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(R.a)(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Object(R.a)(e=>{const n=new q(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var r,i,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:o,extras:a}=e,l=new V(n,this.serializeUrl(r),i,o);t.next(l);const u=qe(r,this.rootComponentType).snapshot;return Object(s.a)(Object.assign(Object.assign({},e),{targetSnapshot:u,urlAfterRedirects:r,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}
1))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),d.a}),Qt(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),Object(R.a)(e=>{const t=new H(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(f.a)(e=>Object.assign(Object.assign({},e),{guards:Dt(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(Object(A.a)(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:a,canDeactivateChecks:l}}=n;return 0===l.length&&0===a.length?Object(s.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return Object(o.a)(e).pipe(Object(A.a)(e=>function(e,t,n,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(s.a)(!0);const a=o.map(s=>{const o=At(s,t,i);let a;if(function(e){return e&>(e.canDeactivate)}(o))a=he(o.canDeactivate(e,t,n,r));else{if(!gt(o))throw new Error("Invalid CanDeactivate guard");a=he(o(e,t,n,r))}return a.pipe(Object(D.a)())});return Object(s.a)(a).pipe(yt())}(e.component,e.route,n,t,r)),Object(D.a)(e=>!0!==e,!0))}(l,r,i,e).pipe(Object(A.a)(n=>n&&"boolean"==typeof n?function(e,t,n,r){return Object(o.a)(t).pipe(Object(j.a)(t=>Object(o.a)([Mt(t.route.parent,r),Nt(t.route,r),Lt(e,t.path,n),Ft(e,t.route,n)]).pipe(Object(g.a)(),Object(D.a)(e=>!0!==e,!0))),Object(D.a)(e=>!0!==e,!0))}(r,a,e,t):Object(s.a)(n)),Object(f.a)(e=>Object.assign(Object.assign({},n),{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),Object(R.a)(e=>{if(mt(e.guardsResult)){const t=ie(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),Object(R.a)(e=>{const t=new W(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Object(m.a)(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new z(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Qt(e=>{if(e.guards.canActivateChecks.length)return Object(s.a)(e).pipe(Object(R.a)(e=>{const t=new B(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(k.a)(e=>{let n=!1;return Object(s.a)(e).pipe((r=this.paramsInheritanceStrategy,i=this.ngModule.injector,function(e){return e.pipe(Object(A.a)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return Object(s.a)(e);let a=0;return Object(o.a)(n).pipe(Object(j.a)(e=>function(e,t,n,r){return function(e,t,n,r){const i=Object.keys(e);if(0===i.length)return Object(s.a)({});const a={};return Object(o.a)(i).pipe(Object(A.a)(i=>function(e,t,n,r){const i=At(e,t,r);return he(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe(Object(R.a)(e=>{a[i]=e}))),_(1),Object(A.a)(()=>Object.keys(a).length===i.length?Object(s.a)(a):d.a))}(e._resolve,e,t,r).pipe(Object(f.a)(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),We(e,n).resolve),null)))}(e.route,t,r,i)),Object(R.a)(()=>a++),_(1),Object(A.a)(t=>a===n.length?Object(s.a)(e):d.a))}))}),Object(R.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new z(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(n),e.resolve(!1)}}}));var r,i}),Object(R.a)(e=>{const t=new K(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Qt(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),Object(f.a)(e=>{const t=function(e,t,n){const r=Je(e,t._root,n?n._root:void 0);return new $e(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),Object(R.a)(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(a=this.rootContexts,l=this.routeReuseStrategy,u=e=>this.triggerEvent(e),Object(f.a)(e=>(new dt(l,e.targetRouterState,e.currentRouterState,u).activate(a),e))),Object(R.a)({next(){
1n=!0},complete(){n=!0}}),(i=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new z(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null},e=>e.lift(new N(i))),Object(I.a)(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=mt(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const i=new z(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(i),r?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new $(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}var i;return d.a}));var i,a,l,u}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:n,urlTree:r}=t,i={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,0!==Object.keys(e).length&&(i.state=e)}this.scheduleNavigation(r,e,n,i)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,t){if(!e)return!0;const n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Xt(e),this.config=e.map(nn),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:s,preserveQueryParams:o,queryParamsHandling:a,preserveFragment:l}=t;Object(i.W)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const u=n||this.routerState.root,c=l?this.currentUrlTree.fragment:s;let h=null;if(a)switch(a){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=o?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(e,t,n,r,i){if(0===n.length)return tt(t.root,t.root,t,r,i);const s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new rt(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return ce(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new rt(n,t,r)}(n);if(s.toRoot())return tt(t.root,new be([],{}),t,r,i);const o=function(e,t,n){if(e.isAbsolute)return new it(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new it(e,e===t.root,0)}const r=et(e.commands[0])?0:1;return function(e,t,n){let r=e,i=t,s=n;for(;s>i;){if(s-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new it(r,!1,i-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(s,t,e),a=o.processChildren?at(o.segmentGroup,o.index,s.commands):ot(o.segmentGroup,o.index,s.commands);return tt(o.segmentGroup,a,t,r,i)}(u,this.currentUrlTree,e,h,c)}navigateByUrl(e,t={skipLocationChange:!1}){Object(i.W)()&&this.isNgZoneEnabled&&!i.z.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did
1you forget to call 'ngZone.run()'?");const n=mt(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(mt(e))return de(this.currentUrlTree,e,t);const n=this.parseUrl(e);return de(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new U(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r,i){const s=this.getTransition(),o="imperative"!==t&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===e.toString();if(o&&a)return Promise.resolve(!0);let l,u,c;i?(l=i.resolve,u=i.reject,c=i.promise):c=new Promise((e,t)=>{l=e,u=t});const h=++this.navigationId;return this.setTransition({id:h,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:l,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const i=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(i)||t?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class fn{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new p.a,this.subscription=e.events.subscribe(e=>{e instanceof U&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}set preserveQueryParams(e){Object(i.W)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,r,i){if(0!==e||t||n||r||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:gn(this.skipLocationChange),replaceUrl:gn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:gn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:gn(this.preserveFragment)})}}function gn(e){return""===e||!!e}class mn{constructor(e,t,n,r,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.n,this.deactivateEvents=new i.n,this.name=r||"primary",e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new bn(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}class bn{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===He?this.route:e===an?this.childContexts:this.parent.get(e,t)}}class yn{}class _n{preload(e,t){return t().pipe(Object(I.a)(()=>Object(s.a)(null)))}}class vn{preload(e,t){return Object(s.a)(null)}}class wn{constructor(e,t,n,r,i){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=new sn(t,n,t=>e.triggerEvent(new Q(t)),t=>e.triggerEvent(new Z(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(m.a)(e=>e instanceof U),Object(j.a)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(i.x);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return Object(o.a)(n).pipe(Object(F.a)(),Object(f.a)(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(Object(A.a)(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}class Cn{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anch
1orScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof V?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof U&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof ee&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new ee(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const Sn=new i.q("ROUTER_CONFIGURATION"),On=new i.q("ROUTER_FORROOT_GUARD"),kn=[r.j,{provide:we,useClass:Ce},{provide:pn,useFactory:An,deps:[we,an,r.j,i.r,i.w,i.i,rn,Sn,[ln,new i.A],[Zt,new i.A]]},an,{provide:He,useFactory:Rn,deps:[pn]},{provide:i.w,useClass:i.K},wn,vn,_n,{provide:Sn,useValue:{enableTracing:!1}}];function En(){return new i.y("Router",pn)}class xn{constructor(e,t){}static forRoot(e,t){return{ngModule:xn,providers:[kn,Dn(e),{provide:On,useFactory:jn,deps:[[pn,new i.A,new i.J]]},{provide:Sn,useValue:t||{}},{provide:r.k,useFactory:In,deps:[r.u,[new i.p(r.a),new i.A],Sn]},{provide:Cn,useFactory:Tn,deps:[pn,r.x,Sn]},{provide:yn,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:vn},{provide:i.y,multi:!0,useFactory:En},[Pn,{provide:i.d,multi:!0,useFactory:Nn,deps:[Pn]},{provide:Fn,useFactory:Mn,deps:[Pn]},{provide:i.b,multi:!0,useExisting:Fn}]]}}static forChild(e){return{ngModule:xn,providers:[Dn(e)]}}}function Tn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Cn(e,t,n)}function In(e,t,n={}){return n.useHash?new r.h(e,t):new r.s(e,t)}function jn(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Dn(e){return[{provide:i.a,multi:!0,useValue:e},{provide:rn,multi:!0,useValue:e}]}function An(e,t,n,i,s,o,a,l={},u,c){const h=new pn(null,e,t,n,i,s,o,le(a));if(u&&(h.urlHandlingStrategy=u),c&&(h.routeReuseStrategy=c),l.errorHandler&&(h.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(h.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){const e=Object(r.G)();h.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return l.onSameUrlNavigation&&(h.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(h.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(h.relativeLinkResolution=l.relativeLinkResolution),h}function Rn(e){return e.routerState.root}class Pn{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new p.a}appInitializer(){return this.injector.get(r.i,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(pn),r=this.injector.get(Sn);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(s.a)(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(Sn),n=this.injector.get(wn),r=this.injector.get(Cn),s=this.injector.get(pn),o=this.injector.get(i.g);e===o.components[0]&&(this.isLegacyEnabled(t)?s.initialNavigation():this.isLegacyDisabled(t)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}function Nn(e){return e.appInitializer.bind(e)}function Mn(e){return e.bootstrapListener.bind(e)}const Fn=new i.q("Router Initializer")},itXk:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("z+Ro"),i=n("DH7j"),s=n("l7GE"),o=n("ZUHj"),a=n("yCtX");const l={};function u(...e){let t,n;return Object(r.a)(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(i.a)(e[0])&&(e=e[0]),Object(a.a)(e,n).lift(new c(t))}class c{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new h(e,this.resultSelector))}}class h extends s.a{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(l),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;
1n++){const t=e[n];this.add(Object(o.a)(this,t,void 0,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n){const r=this.values,i=this.toRespond?r[n]===l?--this.toRespond:this.toRespond:0;r[n]=t,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},jZKg:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("HDdC"),i=n("quSY");function s(e,t){return new r.a(n=>{const r=new i.a;let s=0;return r.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},jmUF:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return E}),n.d(t,"b",function(){return _}),n.d(t,"c",function(){return y}),n.d(t,"d",function(){return v}),n.d(t,"e",function(){return p}),n.d(t,"f",function(){return b}),n.d(t,"g",function(){return k}),n.d(t,"h",function(){return C}),n.d(t,"i",function(){return f}),n.d(t,"j",function(){return m}),n.d(t,"k",function(){return S});var r=n("qgXg"),i=n("D0XW"),s=n("vkgz"),o=n("tf+s"),a=n("pxpQ"),l=n("8Y7J"),u=n("Jgta");function c(){}class h{constructor(e,t=r.b){this.zone=e,this.delegate=t}now(){return this.delegate.now()}schedule(e,t,n){const r=this.zone;return this.delegate.schedule(function(t){r.runGuarded(()=>{e.apply(this,[t])})},t,n)}}class d{constructor(e){this.zone=e,this.task=null}call(e,t){const n=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",c,{},c,c)),t.pipe(Object(s.a)({next:n,complete:n,error:n})).subscribe(e).add(n)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}class p{constructor(e){this.ngZone=e,this.outsideAngular=e.runOutsideAngular(()=>new h(Zone.current)),this.insideAngular=e.run(()=>new h(Zone.current,i.b))}}function f(e){return function(t){return(t=t.lift(new d(e.ngZone))).pipe(Object(o.a)(e.outsideAngular),Object(a.b)(e.insideAngular))}}const g=["ngOnDestroy"],m=(e,t,n,r={})=>new Proxy(e,{get:(i,s)=>n.runOutsideAngular(()=>{var i;if(e[s])return(null===(i=null==r?void 0:r.spy)||void 0===i?void 0:i.get)&&r.spy.get(s,e[s]),e[s];if(g.indexOf(s)>-1)return()=>{};const o=t.toPromise().then(e=>{const t=e&&e[s];return"function"==typeof t?t.bind(e):t&&t.then?t.then(e=>n.run(()=>e)):n.run(()=>t)});return new Proxy(()=>{},{get:(e,t)=>o[t],apply:(e,t,n)=>o.then(e=>{var t;const i=e&&e(...n);return(null===(t=null==r?void 0:r.spy)||void 0===t?void 0:t.apply)&&r.spy.apply(s,n,i),i})})})}),b=(e,t)=>{t.forEach(t=>{Object.getOwnPropertyNames(t.prototype||t).forEach(n=>{Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t.prototype||t,n))})})},y=new l.q("angularfire2.app.options"),_=new l.q("angularfire2.app.nameOrConfig");class v{}const w=new l.P("6.1.5");function C(t,n,r){const i="object"==typeof r&&r||{};i.name=i.name||"string"==typeof r&&r||"[DEFAULT]";const s=u.a.apps.filter(e=>e&&e.name===i.name)[0],o=s||n.runOutsideAngular(()=>u.a.initializeApp(t,i));try{JSON.stringify(t)!==JSON.stringify(o.options)&&O("error",`${o.name} Firebase App already initialized with different options${e.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch(a){}return o}const S=()=>{O("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")},O=(e,...t)=>{Object(l.W)()&&"undefined"!=typeof console&&console[e](...t)};function k(t,n,r,i,s){const[o,...a]=globalThis.\u0275AngularfireInstanceCache.get(t)||[];if(o){try{s.some((e,t)=>{const n=a[t];return e&&"object"==typeof e?JSON.stringify(e)!==JSON.stringify(n):e!==n})&&O("error",`${n} was already initialized on the ${r.name} Firebase App instance with different settings.${e.hot?" You may need to reload as Firebase is not HMR aware.":""}`)}catch(l){}return o}{const e=i();return globalThis.\u0275AngularfireInstanceCache.set(t,[e,...s]),e}}globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=new Map),new l.A;class E{constructor(e){u.a.registerVersion("angularfire",w.full,e.toString()),u.a.registerVersion("angular",l.O.full)}static initializeApp(e,t){return{ngModule:E,providers:[{provide:y,useValue:e},{provide:_,useValue:t}]}}}}).call(this,n("3UD+")(e))},jtHE:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("XNiG"),i=n("qgXg"),s=n("quSY"),o=n("pxpQ"),a=n("9ppp"),l=n("Ylt2");class u extends r.a{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler
1=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new c(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,i=n.length;let u;if(this.closed)throw new a.a;if(this.isStopped||this.hasError?u=s.a.EMPTY:(this.observers.push(e),u=new l.a(this,e)),r&&e.add(e=new o.a(e,r)),t)for(let s=0;s<i&&!e.closed;s++)e.next(n[s]);else for(let s=0;s<i&&!e.closed;s++)e.next(n[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),u}_getNow(){return(this.scheduler||i.a).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length;let s=0;for(;s<i&&!(e-r[s].time<n);)s++;return i>t&&(s=Math.max(s,i-t)),s>0&&r.splice(0,s),r}}class c{constructor(e,t){this.time=e,this.value=t}}},kJWO:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},l7GE:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");class i extends r.a{notifyNext(e,t,n,r,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}},lJxs:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(e,t))}}class s{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.project,this.thisArg))}}class o extends r.a{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},n6bG:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",function(){return r})},ngJS:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}},oB13:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("XNiG"),i=n("HDdC"),s=(n("7o/Q"),n("quSY")),o=n("x+ZX");class a extends i.a{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new s.a,e.add(this.source.subscribe(new u(this.getSubject(),this))),e.closed&&(this._connection=null,e=s.a.EMPTY)),e}refCount(){return Object(o.a)()(this)}}const l=(()=>{const e=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class u extends r.b{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function c(e,t){return function(n){let r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new h(r,t));const i=Object.create(n,l);return i.source=n,i.subjectFactory=r,i}}class h{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:n}=this,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i}}},omvX:function(e,t,n){"use strict";n.d(t,"a",function(){return b}),n.d(t,"b",function(){return y}),n.d(t,"c",function(){return o}
1),n.d(t,"d",function(){return p}),n.d(t,"e",function(){return f}),n.d(t,"f",function(){return g}),n.d(t,"g",function(){return m});var r=n("8Y7J"),i=(n("cUpR"),n("GS7A")),s=n("fDlF");class o extends i.b{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:r.R.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Object(i.j)(e):e;return u(this._renderer,null,t,"register",[n]),new a(t,this._renderer)}}class a extends i.c{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new l(this._id,e,t||{},this._renderer)}}class l{constructor(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return u(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){return 0}}function u(e,t,n,r,i){return e.setProperty(t,`@@${n}:${r}`,i)}class c{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new h("",n,this.engine),this._rendererCache.set(n,e)),e}const r=t.id,i=t.id+"-"+this._currentId;this._currentId++,this.engine.register(i,e);const s=t=>{Array.isArray(t)?t.forEach(s):this.engine.registerTrigger(r,i,e,t.name,t)};return t.data.animation.forEach(s),new d(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}class h{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}
1listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class d extends h{constructor(e,t,n,r){super(t,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if("@"==t.charAt(0)){const r=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let i=t.substr(1),s="";return"@"!=i.charAt(0)&&([i,s]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(i)),this.engine.listen(this.namespaceId,r,i,s,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}class p extends s.b{constructor(e,t,n){super(e.body,t,n)}}function f(){return Object(s.h)()?new s.f:new s.d}function g(){return new s.g}function m(e,t,n){return new c(e,t,n)}const b=new r.q("AnimationModuleType");class y{}},pLZG:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){return function(n){return n.lift(new s(e,t))}}class s{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.predicate,this.thisArg))}}class o extends r.a{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}},pMnS:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("8Y7J"),i=n("iInd"),s=r.wb({encapsulation:2,styles:[],data:{}});function o(e){return r.Zb(0,[(e()(),r.yb(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r.xb(1,212992,null,0,i.p,[i.c,r.Q,r.j,[8,null],r.h],null,null)],function(e,t){e(t,1,0)},null)}function a(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"ng-component",[],null,
1null,null,o,s)),r.xb(1,49152,null,0,i.D,[],null,null)],null,null)}var l=r.ub("ng-component",i.D,a,{},{},[])},pXDD:function(e,t,n){"use strict";n.d(t,"a",function(){return r});class r{}},pxpQ:function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return a});var r=n("7o/Q"),i=n("WMd4");function s(e,t=0){return function(n){return n.lift(new o(e,t))}}class o{constructor(e,t=0){this.scheduler=e,this.delay=t}call(e,t){return t.subscribe(new a(e,this.scheduler,this.delay))}}class a extends r.a{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new l(e,this.destination)))}_next(e){this.scheduleMessage(i.a.createNext(e))}_error(e){this.scheduleMessage(i.a.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(i.a.createComplete()),this.unsubscribe()}}class l{constructor(e,t){this.notification=e,this.destination=t}}},"q/0M":function(e,t,n){"use strict";function r(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r}var i;n.d(t,"a",function(){return o}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return d}),n.d(t,"d",function(){return p});var s=[],o=function(e){return e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT",e}({}),a={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},l=o.INFO,u=((i={})[o.DEBUG]="log",i[o.VERBOSE]="log",i[o.INFO]="info",i[o.WARN]="warn",i[o.ERROR]="error",i),c=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(t<e.logLevel)){var s=(new Date).toISOString(),o=u[t];if(!o)throw new Error("Attempted to log a message with an invalid logType (value: "+t+")");console[o].apply(console,r(["["+s+"] "+e.name+":"],n))}},h=function(){function e(e){this.name=e,this._logLevel=l,this._logHandler=c,this._userLogHandler=null,s.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in o))throw new TypeError('Invalid value "'+e+'" assigned to `logLevel`');this._logLevel=e},enumerable:!1,configurable:!0}),e.prototype.setLogLevel=function(e){this._logLevel="string"==typeof e?a[e]:e},Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e},enumerable:!1,configurable:!0}),e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.DEBUG],e)),this._logHandler.apply(this,r([this,o.DEBUG],e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.VERBOSE],e)),this._logHandler.apply(this,r([this,o.VERBOSE],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.INFO],e)),this._logHandler.apply(this,r([this,o.INFO],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.WARN],e)),this._logHandler.apply(this,r([this,o.WARN],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.ERROR],e)),this._logHandler.apply(this,r([this,o.ERROR],e))},e}();function d(e){s.forEach(function(t){t.setLogLevel(e)})}function p(e,t){for(var n=function(n){var r=null;t&&t.level&&(r=a[t.level]),n.userLogHandler=null===e?null:function(t,n){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var a=i.map(function(e){if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(t){return null}}).filter(function(e){return e}).join(" ");n>=(null!=r?r:t.logLevel)&&e({level:o[n].toLowerCase(),message:a,args:i,type:t.name})}},r=0,i=s;r<i.length;r++)n(i[r])}},qOnz:function(e,t,n){"use strict";n.d(t,"a",function(){return g}),n.d(t,"b",function(){return S}),n.d(t,"c",function(){return C}),n.d(t,"d",function(){return N}),n.d(t,"e",function(){return s}),n.d(t,"f",function(){return o}
1),n.d(t,"g",function(){return l}),n.d(t,"h",function(){return u}),n.d(t,"i",function(){return j}),n.d(t,"j",function(){return m}),n.d(t,"k",function(){return M}),n.d(t,"l",function(){return d}),n.d(t,"m",function(){return p}),n.d(t,"n",function(){return U}),n.d(t,"o",function(){return W}),n.d(t,"p",function(){return I}),n.d(t,"q",function(){return _}),n.d(t,"r",function(){return A}),n.d(t,"s",function(){return b}),n.d(t,"t",function(){return y}),n.d(t,"u",function(){return w}),n.d(t,"v",function(){return v}),n.d(t,"w",function(){return T}),n.d(t,"x",function(){return k}),n.d(t,"y",function(){return R}),n.d(t,"z",function(){return P}),n.d(t,"A",function(){return D}),n.d(t,"B",function(){return H}),n.d(t,"C",function(){return q}),n.d(t,"D",function(){return E}),n.d(t,"E",function(){return V}),n.d(t,"F",function(){return z}),n.d(t,"G",function(){return $});var r=n("LpKv"),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},s=function(e,t){if(!e)throw o(t)},o=function(e){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},a=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},l={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(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<e.length;i+=3){var s=e[i],o=i+1<e.length,a=o?e[i+1]:0,l=i+2<e.length,u=l?e[i+2]:0,c=(15&a)<<2|u>>6,h=63&u;l||(h=64,o||(c=64)),r.push(n[s>>2],n[(3&s)<<4|a>>4],n[c],n[h])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(a(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){var s=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&s)}else if(i>239&&i<365){var o=((7&i)<<18|(63&(s=e[n++]))<<12|(63&(a=e[n++]))<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{s=e[n++];var a=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<e.length;){var s=n[e.charAt(i++)],o=i<e.length?n[e.charAt(i)]:0,a=++i<e.length?n[e.charAt(i)]:64,l=++i<e.length?n[e.charAt(i)]:64;if(++i,null==s||null==o||null==a||null==l)throw Error();r.push(s<<2|o>>4),64!==a&&(r.push(o<<4&240|a>>2),64!==l&&r.push(a<<6&192|l))}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},u=function(e){var t=a(e);return l.encodeByteArray(t,!0)},c=function(e){return u(e).replace(/\./g,"")},h=function(e){try{return l.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function d(e){return p(void 0,e)}function p(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&f(n)&&(e[n]=p(e[n],t[n]));return e}function f(e){return"__proto__"!==e}var g=function(){function e(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return e.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"==typeof e&&(t.promise.catch(function(){}),1===e.length?e(n):e(n,r))}},e}();function m(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var n=t||"demo-project",i=e.iat||0,s=e.sub||e.user_id;if(!s)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var o=Object(r.a)({iss:"https://securetoken.google.com/"+n,aud:n,iat:i,exp:i+3600,auth_time:i,sub:s,user_id:s,firebase:{sign_in_provider:"custom",identities:{}}},e);return[c(JSON.stringify({alg:"none",type:"JWT"})),c(JSON.stringify(o)),""].join(".")}function b(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test("undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:"")}function y(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(e){return!1}}function _(){return"object"==typeof self&&self.self===self}function v(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function w(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN}var C=function(e){function t(n,r,i){var s=e.call(this,r)||this;return s.code=n,s.customData=i,s.name="FirebaseError",Object.setPrototypeOf(s,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(s,S.prototype.create),s}return Object(r.c)(t,e),t}(Error),S=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t[0]||{},i=this.service+"/"+e,s=this.errors[e],o=s?function(e,t){return e.replace(O,function(e,n){var r=t[n];return null!=r?String(r):"<"+n+"?>"})}(s,r):"Error";return new C(i,this.serviceName+": "+o+" ("+i+").",r)},e}(),O=/\{\$([^}]+)}/g;function k(e){return JSON.parse(e)}function E(e){return JSON.stringify(e)}var x=function(e){var t={},n={},r={},i="";try{var s=e.split(".");t=k(h(s[0])||""),n=k(h(s[1])||""),i=s[2],r=n.d||{},delete n.d}catch(o){}return{header:t,claims:n,data:r,signature:i}},T=function(e){var t=x(e).claims;return!!t&&"object"==typeof t&&t.hasOwnProperty("iat")},I=function(e){var t=x(e).claims;return"object"==typeof t&&!0===t.admin};function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function A(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function R(e,t,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}function P(e){for(var t=[],n=function(e,n){Array.isArray(n)?n.forEac
1h(function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))},r=0,i=Object.entries(e);r<i.length;r++){var s=i[r];n(s[0],s[1])}return t.length?"&"+t.join("&"):""}var N=function(){function e(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}return e.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},e.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if("string"==typeof e)for(var r=0;r<16;r++)n[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(r=16;r<80;r++)n[r]=4294967295&((h=n[r-3]^n[r-8]^n[r-14]^n[r-16])<<1|h>>>31);var i,s,o=this.chain_[0],a=this.chain_[1],l=this.chain_[2],u=this.chain_[3],c=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(i=u^a&(l^u),s=1518500249):(i=a^l^u,s=1859775393):r<60?(i=a&l|u&(a|l),s=2400959708):(i=a^l^u,s=3395469782);var h=(o<<5|o>>>27)+i+c+s+n[r]&4294967295;c=u,u=l,l=4294967295&(a<<30|a>>>2),a=o,o=h}this.chain_[0]=this.chain_[0]+o&4294967295,this.chain_[1]=this.chain_[1]+a&4294967295,this.chain_[2]=this.chain_[2]+l&4294967295,this.chain_[3]=this.chain_[3]+u&4294967295,this.chain_[4]=this.chain_[4]+c&4294967295},e.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,i=this.buf_,s=this.inbuf_;r<t;){if(0===s)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if("string"==typeof e){for(;r<t;)if(i[s]=e.charCodeAt(r),++r,++s===this.blockSize){this.compress_(i),s=0;break}}else for(;r<t;)if(i[s]=e[r],++r,++s===this.blockSize){this.compress_(i),s=0;break}}this.inbuf_=s,this.total_+=t}},e.prototype.digest=function(){var e=[],t=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&t,t/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)e[r]=this.chain_[n]>>i&255,++r;return e},e}();function M(e,t){var n=new F(e,t);return n.subscribe.bind(n)}var F=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(function(){e(n)}).catch(function(e){n.error(e)})}return e.prototype.next=function(e){this.forEachObserver(function(t){t.next(e)})},e.prototype.error=function(e){this.forEachObserver(function(t){t.error(e)}),this.close(e)},e.prototype.complete=function(){this.forEachObserver(function(e){e.complete()}),this.close()},e.prototype.subscribe=function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e){if("object"!=typeof e||null===e)return!1;for(var t=0,n=["next","error","complete"];t<n.length;t++){var r=n[t];if(r in e&&"function"==typeof e[r])return!0}return!1}(e)?e:{next:e,error:t,complete:n}).next&&(r.next=L),void 0===r.error&&(r.error=L),void 0===r.complete&&(r.complete=L);var s=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(e){}}),this.observers.push(r),s},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then(function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(r){"undefined"!=typeof console&&console.error&&console.error(r)}})},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(function(){t.observers=void 0,t.onNoObservers=void 0}))},e}();function L(){}var V=function(e,t,n,r){var i;if(r<t?i="at least "+t:r>n&&(i=0===n?"none":"no more than "+n),i)throw new Error(e+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")};function U(e,t){return e+" failed: "+t+" argument "}function z(e,t,n,r){if((!r||n)&&"function"!=typeof n)throw new Error(U(e,t)+"must be a valid function.")}function $(e,t,n,r){if((!r||n)&&("object"!=typeof n||null===n))throw new Error(U(e,t)+"must be a valid context object.")}var q=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i>=55296&&i<=56319){var o=i-55296;r++,s(r<e.length,"Surrogate pair missing trail surrogate."),i=65536+(o<<10)+(e.charCodeAt(r)-56320)}i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},H=function(e){for(var t=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t++:r<2048?t+=2:r>=55296&&r<=56319?(t+=4,n++):t+=3}return t};function W(e){return e&&e._delegate?e._delegate:e}},qgXg:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return l});var r=n("3N8a");
1class i extends r.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}var s=n("IjjT");class o extends s.a{}const a=new o(i),l=a},quSY:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("DH7j"),i=n("XoHu"),s=n("n6bG");const o=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let a=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:u,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(Object(s.a)(u)){a&&(this._unsubscribe=void 0);try{u.call(this)}catch(h){t=h instanceof o?l(h.errors):[h]}}if(Object(r.a)(c)){let e=-1,n=c.length;for(;++e<n;){const n=c[e];if(Object(i.a)(n))try{n.unsubscribe()}catch(h){t=t||[],h instanceof o?t=t.concat(l(h.errors)):t.push(h)}}}if(t)throw new o(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}var t;return e.EMPTY=((t=new e).closed=!0,t),e})();function l(e){return e.reduce((e,t)=>e.concat(t instanceof o?t.errors:t),[])}},s7LF:function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"c",function(){return p}),n.d(t,"d",function(){return h}),n.d(t,"e",function(){return ce}),n.d(t,"f",function(){return de}),n.d(t,"g",function(){return J}),n.d(t,"h",function(){return le}),n.d(t,"i",function(){return ae}),n.d(t,"j",function(){return pe}),n.d(t,"k",function(){return v}),n.d(t,"l",function(){return l}),n.d(t,"m",function(){return f}),n.d(t,"n",function(){return m}),n.d(t,"o",function(){return b}),n.d(t,"p",function(){return ne}),n.d(t,"q",function(){return ie}),n.d(t,"r",function(){return A}),n.d(t,"s",function(){return T}),n.d(t,"t",function(){return fe}),n.d(t,"u",function(){return ue}),n.d(t,"v",function(){return D}),n.d(t,"w",function(){return C}),n.d(t,"x",function(){return he}),n.d(t,"y",function(){return I}),n.d(t,"z",function(){return oe}),n.d(t,"A",function(){return P}),n.d(t,"B",function(){return se});var r=n("8Y7J"),i=n("SVse"),s=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const l=new r.q("NgValueAccessor");class u{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}const c=new r.q("CompositionEventMode");class h{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Object(i.G)()?Object(i.G)().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}class d{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class p extends d{get formDirective(){return null}get path(){return null}}class f extends d{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}class g{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}class m extends g{constructor(e){super(e)}}class b extends g{constructor(e){super(e)}}function y(e){return null==e||0===e.length}function _(e){return null!=e&&"number"==typeof e.length}const v=new r.q("NgValidators"),w=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class C{static min(e){return t=>{if(y(t.value)||y(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(y(t.value)||y(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return y(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return y(e.value)||w.test(e.value)?null:{email:!0}}static minLength(e){return t=>y(t.value)||!_(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}static maxLength(e){return t=>_(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}static pattern(e){if(!e)return C.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(y(e.value))return null;const r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(S);return 0==t.length?null:function(e){return k(E(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(S);return 0==t.length?null:function(e){const n=E(e,t).map(O);return Object(s.a)(n).pipe(Object(a.a)(k))}}}function S(e){return null!=e}function O(e){const t=Object(r.Ib)(e)?Object(o.a)(e):e;return Object(r.Hb)(t),t}function k(e){let t={};
1return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function E(e,t){return t.map(t=>t(e))}function x(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}class T{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}class I{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}function j(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}class D{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=j(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}class A{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(j(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}function R(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}class P{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(R(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(R(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}function N(e,t){return[...t.path,e]}function M(e,t){e.validator=C.compose([e.validator,t.validator]),e.asyncValidator=C.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&F(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&F(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}
1),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function F(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function L(e,t){e.validator=C.compose([e.validator,t.validator]),e.asyncValidator=C.composeAsync([e.asyncValidator,t.asyncValidator])}function V(e){return null!=e?C.compose(x(e)):null}function U(e){return null!=e?C.composeAsync(x(e)):null}function z(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}const $=[u,class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},T,D,class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const r=e.item(t),i=this._getOptionValue(r.value);n.push(i)}}else{const e=t.options;for(let t=0;t<e.length;t++){const r=e.item(t);if(r.selected){const e=this._getOptionValue(r.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}},class{constructor(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(f),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}];function q(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function H(e,t){if(!t)return null;let n,r,i;return Array.isArray(t),t.forEach(e=>{var t;e.constructor===h?n=e:(t=e,$.some(e=>t.constructor===e)?r=e:i=e)}),i||r||n||null}function W(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function B(e){return(G(e)?e.validators:e)||null}function K(e){return Array.isArray(e)?V(e):e||null}function Q(e,t){return(G(t)?t.asyncValidators:e)||null}function Z(e){return Array.isArray(e)?U(e):e||null}function G(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Y{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=K(this._rawValidators),this._composedAsyncValidatorFn=Z(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=K(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Z(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}
vendor: 8,806 bytes, line 1
1),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const t=O(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let n=e;return t.forEach(e=>{n=n instanceof X?n.controls.hasOwnProperty(e)?n.controls[e]:null:n instanceof ee&&n.at(e)||null}),n}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new r.n,this.statusChanges=new r.n}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){G(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class J extends Y{constructor(e=null,t,n){super(B(t),Q(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class X extends Y{constructor(e,t,n){super(B(t),Q(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof J?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,r)=>{n=t(n,e,r)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class ee extends Y{constructor(e,t,n){super(B(t),Q(n,t)),this.controls=e,this._initOb
1servables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof J?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const te=(()=>Promise.resolve(null))();class ne extends p{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.n,this.form=new X({},V(e),U(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){te.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),M(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}
1removeControl(e){te.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),W(this._directives,e)})}addFormGroup(e){te.then(()=>{const t=this._findContainer(e.path),n=new X({});L(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){te.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){te.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,q(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}const re=(()=>Promise.resolve(null))();class ie extends f{constructor(e,t,n,i){super(),this.control=new J,this._registered=!1,this.update=new r.n,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=H(0,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),z(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?N(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return V(this._rawValidators)}get asyncValidator(){return U(this._rawAsyncValidators)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){M(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){re.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;re.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}class se{}const oe=new r.q("NgModelWithFormControlWarning");class ae extends p{constructor(e,t){super(),this._validators=e,this._asyncValidators=t,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new r.n}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return M(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}
1removeControl(e){W(this.directives,e)}addFormGroup(e){const t=this.form.get(e.path);L(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormGroup(e){}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){const t=this.form.get(e.path);L(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormArray(e){}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,q(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=this.form.get(e.path);e.control!==t&&(function(e,t){const n=()=>{};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),t._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(e.control,e),t&&M(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const e=V(this._validators);this.form.validator=C.compose([this.form.validator,e]);const t=U(this._asyncValidators);this.form.asyncValidator=C.composeAsync([this.form.asyncValidator,t])}_checkFormPresent(){}}let le=(()=>{class e extends f{constructor(e,t,n,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new r.n,this._ngModelWarningSent=!1,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=H(0,i)}set isDisabled(e){}ngOnChanges(t){var n,i;this._added||this._setUpControl(),z(t,this.viewModel)&&(n=e,i=this._ngModelWarningConfig,Object(r.W)()&&"never"!==i&&((null!==i&&"once"!==i||n._ngModelWarningSentOnce)&&("always"!==i||this._ngModelWarningSent)||(n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return N(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return V(this._rawValidators)}get asyncValidator(){return U(this._rawAsyncValidators)}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e._ngModelWarningSentOnce=!1,e})();class ue{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?C.required(e):null}registerOnValidatorChange(e){this._onChange=e}}class ce{constructor(){this._enabled=!1}set email(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}validate(e){return this._enabled?C.email(e):null}registerOnValidatorChange(e){this._onChange=e}}class he{}class de{group(e,t=null){const n=this._reduceControls(e);let r,i=null,s=null;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,s=null!=t.asyncValidators?t.asyncValidators:null,r=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,s=null!=t.asyncValidator?t.asyncValidator:null)),new X(n,{asyncValidators:s,updateOn:r,validators:i})}control(e,t,n){return new J(e,t,n)}array(e,t,n){const r=e.map(e=>this._createControl(e));return new ee(r,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof J||e instanceof X||e instanceof ee?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}class pe{}class fe{static withConfig(e){return{ngModule:fe,providers:[{provide:oe,useValue:e.warnOnNgModelWithFormControl}]}}}},sVev:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})()},"tf+s":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=n("7Hc7"),s=n("Y7HM");class o extends r.a{constructor(e,t=0,n=i.a){super(),this.source=e,this.delayTime=t,this.scheduler
1=n,(!Object(s.a)(t)||t<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=i.a)}static create(e,t=0,n=i.a){return new o(e,t,n)}static dispatch(e){const{source:t,subscriber:n}=e;return this.add(t.subscribe(n))}_subscribe(e){return this.scheduler.schedule(o.dispatch,this.delayTime,{source:this.source,subscriber:e})}}function a(e,t=0){return function(n){return n.lift(new l(e,t))}}class l{constructor(e,t){this.scheduler=e,this.delay=t}call(e,t){return new o(t,this.delay,this.scheduler).subscribe(e)}}},vDyb:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("2Vo4");n("8YKC");class i{constructor(e,t){this.angularFireMessaging=e,this.homeService=t,this.currentMessage=new r.a(null),this.angularFireMessaging.messages.subscribe(e=>{})}requestPermission(){this.angularFireMessaging.requestToken.subscribe(e=>{if(null!==e){let t="",n=localStorage.getItem("fnotification");t=null==n?"":JSON.parse(n).token,t!==e&&this.homeService.uploadtokent(e).subscribe(t=>{"ok"===t.status&&""!==t.username&&localStorage.setItem("fnotification",JSON.stringify({token:e,username:t.username}))})}},e=>{console.error("Unable to get permission to notify.",e)})}receiveMessage(){this.angularFireMessaging.messages.subscribe(e=>{const t=document.getElementById("idbadge");if(null!=t){let e=t.innerText;if(e=e.replace("+",""),""!==e){const n=Number(e)+1;t.innerText=n>9?"9+":n.toString()}}this.currentMessage.next(e)})}}},vkgz:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("7o/Q"),i=n("KqfI"),s=n("n6bG");function o(e,t,n){return function(r){return r.lift(new a(e,t,n))}}class a{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))}}class l extends r.a{constructor(e,t,n,r){super(e),this._tapNext=i.a,this._tapError=i.a,this._tapComplete=i.a,this._tapError=n||i.a,this._tapComplete=r||i.a,Object(s.a)(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||i.a,this._tapError=t.error||i.a,this._tapComplete=t.complete||i.a)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}},w1tV:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("oB13"),i=n("x+ZX"),s=n("XNiG");function o(){return new s.a}function a(){return e=>Object(i.a)()(Object(r.a)(o)(e))}},"x+ZX":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(){return function(e){return e.lift(new s(e))}}class s{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new o(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class o extends r.a{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}},xbPD:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e=null){return t=>t.lift(new s(e))}class s{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new o(e,this.defaultValue))}}class o extends r.a{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},xgIS:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=n("DH7j"),s=n("n6bG"),o=n("lJxs");function a(e,t,n,u){return Object(s.a)(n)&&(u=n,n=void 0),u?a(e,t,n).pipe(Object(o.a)(e=>Object(i.a)(e)?u(...e):u(e))):new r.a(r=>{l(e,t,function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},r,n)})}function l(e,t,n,r,i){let s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const r=e;e.addEventListener(t,n,i),s=()=>r.removeEventListener(t,n,i)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const r=e;e.on(t,n),s=()=>r.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const r=e;e.addListener(t,n),s=()=>r.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,o=e.length;s<o;s++)l(e[s],t,n,r,i)}r.add(s)}},yCtX:function(e,t,n){"use strict";n.d(t,"a",function(){return o}
1);var r=n("HDdC"),i=n("ngJS"),s=n("jZKg");function o(e,t){return t?Object(s.a)(e,t):new r.a(Object(i.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return r})},z6cu:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("HDdC");function i(e,t){return new r.a(t?n=>t.schedule(s,0,{error:e,subscriber:n}):t=>t.error(e))}function s({error:e,subscriber:t}){t.error(e)}},zIRd:function(e,t,n){"use strict";var r,i,s=n("LpKv"),o=n("qOnz"),a=n("/6Yf"),l=n("q/0M"),u=((r={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$appName}",r["duplicate-app"]="Firebase App named '{$appName}' already exists",r["app-deleted"]="Firebase App named '{$appName}' already deleted",r["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",r["invalid-log-argument"]="First argument to `onLog` must be null or a function.",r),c=new o.b("app","Firebase",u),h=((i={})["@firebase/app"]="fire-core",i["@firebase/analytics"]="fire-analytics",i["@firebase/app-check"]="fire-app-check",i["@firebase/auth"]="fire-auth",i["@firebase/database"]="fire-rtdb",i["@firebase/functions"]="fire-fn",i["@firebase/installations"]="fire-iid",i["@firebase/messaging"]="fire-fcm",i["@firebase/performance"]="fire-perf",i["@firebase/remote-config"]="fire-rc",i["@firebase/storage"]="fire-gcs",i["@firebase/firestore"]="fire-fst",i["fire-js"]="fire-js",i["firebase-wrapper"]="fire-js-all",i),d=new l.b("@firebase/app"),p=function(){function e(e,t,n){var r=this;this.firebase_=n,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=Object(o.l)(e),this.container=new a.b(t.name),this._addComponent(new a.a("app",function(){return r},"PUBLIC")),this.firebase_.INTERNAL.components.forEach(function(e){return r._addComponent(e)})}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise(function(t){e.checkDestroyed_(),t()}).then(function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map(function(e){return e.delete()}))}).then(function(){e.isDeleted_=!0})},e.prototype._getService=function(e,t){var n;void 0===t&&(t="[DEFAULT]"),this.checkDestroyed_();var r=this.container.getProvider(e);return r.isInitialized()||"EXPLICIT"!==(null===(n=r.getComponent())||void 0===n?void 0:n.instantiationMode)||r.initialize(),r.getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){void 0===t&&(t="[DEFAULT]"),this.container.getProvider(e).clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){d.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,t)}},e.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},e.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw c.create("app-deleted",{appName:this.name_})},e}();p.prototype.name&&p.prototype.options||p.prototype.delete||console.log("dc");var f=function e(){var t=function(e){var t={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={}),"object"==typeof i&&null!==i||(i={name:i});var s=i;void 0===s.name&&(s.name="[DEFAULT]");var a=s.name;if("string"!=typeof a||!a)throw c.create("bad-app-name",{appName:String(a)});if(Object(o.i)(t,a))throw c.create("duplicate-app",{appName:a});var l=new e(n,s,r);return t[a]=l,l},app:i,registerVersion:function(e,t,n){var r,i=null!==(r=h[e])&&void 0!==r?r:e;n&&(i+="-"+n);var o=i.match(/\s|\//),l=t.match(/\s|\//);if(o||l){var u=['Unable to register library "'+i+'" with version "'+t+'":'];return o&&u.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),o&&l&&u.push("and"),l&&u.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),void d.warn(u.join(" "))}s(new a.a(i+"-version",function(){return{library:i,version:t}},"VERSION"))},setLogLevel:l.c,onLog:function(e,t){if(null!==e&&"function"!=typeof e)throw c.create("invalid-log-argument");Object(l.d)(e,t)},apps:null,SDK_VERSION:"8.10.0",INTERNAL:{registerComponent:s,removeApp:function(e){delete t[e]}
1,components:n,useAsService:function(e,t){return"serverAuth"===t?null:t}}};function i(e){if(e=e||"[DEFAULT]",!Object(o.i)(t,e))throw c.create("no-app",{appName:e});return t[e]}function s(s){var a=s.name;if(n.has(a))return d.debug("There were multiple attempts to register component "+a+"."),"PUBLIC"===s.type?r[a]:null;if(n.set(a,s),"PUBLIC"===s.type){var l=function(e){if(void 0===e&&(e=i()),"function"!=typeof e[a])throw c.create("invalid-app-argument",{appName:a});return e[a]()};void 0!==s.serviceProps&&Object(o.m)(l,s.serviceProps),r[a]=l,e.prototype[a]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._getService.bind(this,a).apply(this,s.multipleInstances?e:[])}}for(var u=0,h=Object.keys(t);u<h.length;u++)t[h[u]]._addComponent(s);return"PUBLIC"===s.type?r[a]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(t).map(function(e){return t[e]})}}),i.App=e,r}(p);return t.INTERNAL=Object(s.a)(Object(s.a)({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){Object(o.m)(t,e)},createSubscribe:o.k,ErrorFactory:o.b,deepExtend:o.m}),t}(),g=function(){function e(e){this.container=e}return e.prototype.getPlatformInfoString=function(){return this.container.getProviders().map(function(e){if(function(e){var t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){var t=e.getImmediate();return t.library+"/"+t.version}return null}).filter(function(e){return e}).join(" ")},e}();if(Object(o.q)()&&void 0!==self.firebase){d.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");var m=self.firebase.SDK_VERSION;m&&m.indexOf("LITE")>=0&&d.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var b=f.initializeApp;f.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Object(o.t)()&&d.warn('\n Warning: This is a browser-targeted Firebase bundle but it appears it is being\n run in a Node environment. If running in a Node environment, make sure you\n are using the bundle specified by the "main" field in package.json.\n \n If you are using Webpack, you can specify "main" as the first item in\n "resolve.mainFields":\n https://webpack.js.org/configuration/resolve/#resolvemainfields\n \n If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"\n as the first item in "mainFields", e.g. [\'main\', \'module\'].\n https://github.com/rollup/@rollup/plugin-node-resolve\n '),b.apply(void 0,e)};var y=f;!function(e){e.INTERNAL.registerComponent(new a.a("platform-logger",function(e){return new g(e)},"PRIVATE")),e.registerVersion("@firebase/app","0.6.30",void 0),e.registerVersion("fire-js","")}(y),t.a=y},zUnb:function(e,t,n){"use strict";n.r(t);var r=n("8Y7J"),i=n("AytR");class s{}var o=n("iInd"),a=n("vDyb"),l=n("9qWr"),u=n("pLZG"),c=n("IheW");let h=(()=>{class e{constructor(e){this.http=e,this.baseUrl=i.a.env.apiUrl}authPusher(e,t){const n=JSON.stringify({channel_name:e,socket_id:t});return this.http.post(this.baseUrl+"pusher/auth",n)}}return e.\u0275prov=r.ac({factory:function(){return new e(r.bc(c.c))},token:e,providedIn:"root"}),e})();class d{constructor(e,t,n,r,i){this.router=e,this.messagingService=t,this.titleService=n,this.authService=r,this.appServices=i,this.title="Ph\u1ea7n m\u1ec1m Robot ch\u1ee9ng kho\xe1n Dstock",this.router.events.pipe(Object(u.a)(e=>e instanceof o.b)).subscribe(e=>{let t=e.snapshot;for(;null!==t.firstChild;)t=t.firstChild;this.titleService.setTitle(t.data.title||"Ph\u1ea7n m\u1ec1m Robot ch\u1ee9ng kho\xe1n Dstock")})}ngOnInit(){localStorage.setItem("flag","false"),this.authService.isLoggedIn()&&(this.messagingService.requestPermission(),this.messagingService.receiveMessage(),this.message=this.messagingService.currentMessage)}}var p=n("pMnS"),f=n("9AJC"),g=n("cUpR"),m=r.wb({encapsulation:0,styles:[[""]],data:{}});function b(e){return r.Zb(0,[(e()(),r.yb(0,16777216,null,null,1,"router-outlet",[],null,
1null,null,null,null)),r.xb(1,212992,null,0,o.p,[o.c,r.Q,r.j,[8,null],r.h],null,null)],function(e,t){e(t,1,0)},null)}function y(e){return r.Zb(0,[(e()(),r.yb(0,0,null,null,1,"app-root",[],null,null,null,b,m)),r.xb(1,114688,null,0,d,[o.m,a.a,g.h,l.a,h],null,null)],function(e,t){e(t,1,0)},null)}var _=r.ub("app-root",d,y,{},{},[]),v=n("SVse"),w=n("fDlF"),C=n("omvX"),S=n("s7LF"),O=n("G0yt");class k{constructor(e){this.auth=e}intercept(e,t){return e=e.clone({setHeaders:{Authorization:encodeURIComponent(this.auth.getStrUserInfo())}}),t.handle(e)}}var E=n("D0XW"),x=n("HDdC"),T=n("LRne"),I=n("VRyK"),j=n("lJxs"),D=n("w1tV"),A=n("eIep"),R=n("Kqap"),P=n("/uUt"),N=n("zp1y"),M=n("7o/Q");class F{constructor(e){this.predicate=e}call(e,t){return t.subscribe(new L(e,this.predicate))}}class L extends M.a{constructor(e,t){super(e),this.predicate=t,this.skipping=!0,this.index=0}_next(e){const t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}tryCallPredicate(e){try{const t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(t){this.destination.error(t)}}}var V=n("jmUF"),U=(n("6Uf2"),n("XNiG")),z=n("Cfvw"),$=n("pxpQ"),q=n("UXun"),H=n("SxV6"),W=n("aGrj"),B=n("tf+s");const K=new r.q("angularfire2.auth.use-emulator"),Q=new r.q("angularfire2.auth.settings"),Z=new r.q("angularfire2.auth.tenant-id"),G=new r.q("angularfire2.auth.langugage-code"),Y=new r.q("angularfire2.auth.use-device-language"),J=new r.q("angularfire.auth.persistence");let X=(()=>{class e{constructor(e,t,r,i,s,o,a,l,c,h){const d=new V.e(i),p=Object(V.i)(d),f=new U.a,g=Object(T.a)(void 0).pipe(Object($.b)(d.outsideAngular),Object(A.a)(()=>i.runOutsideAngular(()=>n.e(46).then(n.bind(null,"6nsN")))),Object(j.a)(()=>Object(V.h)(e,i,t)),Object(j.a)(e=>i.runOutsideAngular(()=>{const t=s,n=o;return Object(V.g)(`${e.name}.auth`,"AngularFireAuth",e,()=>{const r=i.runOutsideAngular(()=>e.auth());if(t&&r.useEmulator(`http://${t.join(":")}`),a&&(r.tenantId=a),r.languageCode=l,c&&r.useDeviceLanguage(),n)for(const[e,t]of Object.entries(n))r.settings[e]=t;return h&&r.setPersistence(h),r},[t,a,l,c,n,h])})),Object(q.a)({bufferSize:1,refCount:!1}));if(Object(v.D)(r))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=Object(T.a)(null);else{g.pipe(Object(H.a)()).subscribe();const e=g.pipe(Object(A.a)(e=>e.getRedirectResult().then(e=>e,()=>null)),p,Object(q.a)({bufferSize:1,refCount:!1})),t=e=>new x.a(t=>({unsubscribe:i.runOutsideAngular(()=>e(t))})),n=g.pipe(Object(A.a)(e=>t(e.onAuthStateChanged.bind(e)))),r=g.pipe(Object(A.a)(e=>t(e.onIdTokenChanged.bind(e))));this.authState=e.pipe(Object(W.a)(n),Object(B.a)(d.outsideAngular),Object($.b)(d.insideAngular)),this.user=e.pipe(Object(W.a)(r),Object(B.a)(d.outsideAngular),Object($.b)(d.insideAngular)),this.idToken=this.user.pipe(Object(A.a)(e=>e?Object(z.a)(e.getIdToken()):Object(T.a)(null))),this.idTokenResult=this.user.pipe(Object(A.a)(e=>e?Object(z.a)(e.getIdTokenResult()):Object(T.a)(null))),this.credential=Object(I.a)(e,f,this.authState.pipe(Object(u.a)(e=>!e))).pipe(Object(j.a)(e=>(null==e?void 0:e.user)?e:null),Object(B.a)(d.outsideAngular),Object($.b)(d.insideAngular))}return Object(V.j)(this,g,i,{spy:{apply:(e,t,n)=>{(e.startsWith("signIn")||e.startsWith("createUser"))&&n.then(e=>f.next(e))}}})}}return e.\u0275prov=r.ac({factory:function(){return new e(r.bc(V.c),r.bc(V.b,8),r.bc(r.B),r.bc(r.z),r.bc(K,8),r.bc(Q,8),r.bc(Z,8),r.bc(G,8),r.bc(Y,8),r.bc(J,8))},token:e,providedIn:"any"}),e})();Object(V.f)(X,[{app:null,applyActionCode:null,checkActionCode:null,confirmPasswordReset:null,createUserWithEmailAndPassword:null,currentUser:null,fetchSignInMethodsForEmail:null,isSignInWithEmailLink:null,getRedirectResult:null,languageCode:null,settings:null,onAuthStateChanged:null,onIdTokenChanged:null,sendSignInLinkToEmail:null,sendPasswordResetEmail:null,setPersistence:null,signInAndRetrieveDataWithCredential:null,signInAnonymously:null,signInWithCredential:null,signInWithCustomToken:null,signInWithEmailAndPassword:null,signInWithPhoneNumber:null,signInWithEmailLink:null,signInWithPopup:null,signInWithRedirect:null,signOut:null,tenantId:null,updateCurrentUser:null,useDeviceLanguage:null,useEmulator:null,verifyPasswordResetCode:null}]);class ee{}var te=n("Jgta");function ne(e){return null==e}function re(e){return"function"==typeof e.set}function ie(e,t){return re(t)?t:e.ref(t)}function se(e,t){if("string"==typeof e)return t.stringCase();if(re(e))return t.firebaseCase();if("function"==typeof e.exportVal)return t.snapshotCase();throw new Error("Expects a string, snapshot, or reference. Got: "+typeof e)}function oe(e,t,n="on",r=E.b){return new x.a(i=>{let s=null;return s=e[n](t,(e,t)=>{r.schedule(()=>{i.next({snapshot:e,prevKey:t})}),"once"===n&&r.schedule(()=>i.complete())},e=>{r.schedule(()=>i.error(e))}),"on"===n?{unsubscribe(){null!=s&&e.off(t,s)}}:{unsubscribe(){}}}).pipe(Object(j.a)(e=>{const{snapshot:n,prevKey:r}=e;let i=null;return n.exists()&&(i=n.key),{type:t,payload:n,prevKey:r,key:i}}),Object(D.a)())}function ae(e,t){const n=e.length;for(let r=0;r<n;r++)if(e[r].payload.key===t)return r;return-1}function le(e,t){const{payload:n,prevKey:r,key:i}=t,s=ae(e,i),o=function(e,t){if(ne(t))return 0;{const n=ae(e,t);return-1===n?e.length:n+1}}(e,r);switch(t.type){case"value":if(t.payload&&t.payload.exists()){let n=null;
1t.payload.forEach(t=>{const r={payload:t,type:"value",prevKey:n,key:t.key};return n=t.key,e=[...e,r],!1})}return e;case"child_added":if(s>-1){const i=e[s-1];(i&&i.key||null)!==r&&(e=e.filter(e=>e.payload.key!==n.key)).splice(o,0,t)}else{if(null==r)return[t,...e];(e=e.slice()).splice(o,0,t)}return e;case"child_removed":return e.filter(e=>e.payload.key!==n.key);case"child_changed":return e.map(e=>e.payload.key===i?t:e);case"child_moved":if(s>-1){const t=e.splice(s,1)[0];return(e=e.slice()).splice(o,0,t),e}return e;default:return e}}function ue(e){return(ne(e)||0===e.length)&&(e=["child_added","child_removed","child_changed","child_moved"]),e}function ce(e,t,n){return function(e,t,n){return oe(e,"value","once",n).pipe(Object(A.a)(r=>{const i=[Object(T.a)(r)];return t.forEach(t=>i.push(oe(e,t,"on",n))),Object(I.a)(...i).pipe(Object(R.a)(le,[]))}),Object(P.a)())}(e,t=ue(t),n)}function he(e,t,n){const r=(t=ue(t)).map(t=>oe(e,t,"on",n));return Object(I.a)(...r)}function de(e,t){return function(n,r){return se(n,{stringCase:()=>e.child(n)[t](r),firebaseCase:()=>n[t](r),snapshotCase:()=>n.ref[t](r)})}}function pe(e,t){return function(){return oe(e,"value","on",t)}}const fe=new r.q("angularfire2.realtimeDatabaseURL"),ge=new r.q("angularfire2.database.use-emulator");let me=(()=>{class e{constructor(e,t,n,r,i,s,o){this.schedulers=new V.e(i),this.keepUnstableUntilFirst=Object(V.i)(this.schedulers);const a=s,l=Object(V.h)(e,i,t);!te.a.auth&&o&&Object(V.k)(),this.database=Object(V.g)(`${l.name}.database.${n}`,"AngularFireDatabase",l,()=>{const e=i.runOutsideAngular(()=>l.database(n||void 0));return a&&e.useEmulator(...a),e},[a])}list(e,t){const n=this.schedulers.ngZone.runOutsideAngular(()=>ie(this.database,e));let r=n;return t&&(r=t(n)),function(e,t){const n=t.schedulers.outsideAngular,r=t.schedulers.ngZone.run(()=>e.ref);return{query:e,update:de(r,"update"),set:de(r,"set"),push:e=>r.push(e),remove:(i=r,function(e){return e?se(e,{stringCase:()=>i.child(e).remove(),firebaseCase:()=>e.remove(),snapshotCase:()=>e.ref.remove()}):i.remove()}),snapshotChanges:r=>ce(e,r,n).pipe(t.keepUnstableUntilFirst),stateChanges:r=>he(e,r,n).pipe(t.keepUnstableUntilFirst),auditTrail:r=>function(e,t,n){return function(e,t,n){const r=function(e,t){return oe(e,"value","on",t).pipe(Object(j.a)(e=>{let t;return e.payload.forEach(e=>(t=e.key,!1)),{data:e,lastKeyToLoad:t}}))}(e,n);return r.pipe(Object(N.a)(t),Object(j.a)(([e,t])=>{const n=e.lastKeyToLoad,r=t.map(e=>e.key);return{actions:t,lastKeyToLoad:n,loadedKeys:r}}),(i=e=>-1===e.loadedKeys.indexOf(e.lastKeyToLoad),e=>e.lift(new F(i))),Object(j.a)(e=>e.actions));var i}(e,he(e,t).pipe(Object(R.a)((e,t)=>[...e,t],[])),n)}(e,r,n).pipe(t.keepUnstableUntilFirst),valueChanges:(r,i)=>ce(e,r,n).pipe(Object(j.a)(e=>e.map(e=>i&&i.idField?Object.assign(Object.assign({},e.payload.val()),{[i.idField]:e.key}):e.payload.val())),t.keepUnstableUntilFirst)};var i}(r,this)}object(e){const t=this.schedulers.ngZone.runOutsideAngular(()=>ie(this.database,e));return r=this,{query:n=t,snapshotChanges:()=>pe(n,r.schedulers.outsideAngular)().pipe(r.keepUnstableUntilFirst),update:e=>n.ref.update(e),set:e=>n.ref.set(e),remove:()=>n.ref.remove(),valueChanges:()=>pe(n,r.schedulers.outsideAngular)().pipe(r.keepUnstableUntilFirst,Object(j.a)(e=>e.payload.exists()?e.payload.val():null))};var n,r}createPushId(){return this.schedulers.ngZone.runOutsideAngular(()=>this.database.ref()).push().key}}return e.\u0275prov=r.ac({factory:function(){return new e(r.bc(V.c),r.bc(V.b,8),r.bc(fe,8),r.bc(r.B),r.bc(r.z),r.bc(ge,8),r.bc(K,8))},token:e,providedIn:"any"}),e})();class be{}var ye=n("TfjI"),_e=n("GS7A"),ve=n("NXyV"),we=n("z6cu"),Ce=n("xgIS"),Se=n("GyhO"),Oe=n("5yfJ"),ke=n("oB13"),Ee=n("IzEk"),xe=n("vkgz"),Te=n("3E0/");const Ie="Service workers are disabled or not supported by this browser";class je{constructor(e){if(this.serviceWorker=e,e){const t=Object(Ce.a)(e,"controllerchange").pipe(Object(j.a)(()=>e.controller)),n=Object(ve.a)(()=>Object(T.a)(e.controller)),r=Object(Se.a)(n,t);this.worker=r.pipe(Object(u.a)(e=>!!e)),this.registration=this.worker.pipe(Object(A.a)(()=>e.getRegistration()));const i=Object(Ce.a)(e,"message").pipe(Object(j.a)(e=>e.data)).pipe(Object(u.a)(e=>e&&e.type)).pipe(Object(ke.a)(new U.a));i.connect(),this.events=i}else this.worker=this.events=this.registration=(t=Ie,Object(ve.a)(()=>Object(we.a)(new Error(t))));var t}postMessage(e,t){return this.worker.pipe(Object(Ee.a)(1),Object(xe.a)(n=>{n.postMessage(Object.assign({action:e},t))})).toPromise().then(()=>{})}
1postMessageWithStatus(e,t,n){const r=this.waitForStatus(n),i=this.postMessage(e,t);return Promise.all([r,i]).then(()=>{})}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(e){return this.events.pipe(Object(u.a)(t=>t.type===e))}nextEventOfType(e){return this.eventsOfType(e).pipe(Object(Ee.a)(1))}waitForStatus(e){return this.eventsOfType("STATUS").pipe(Object(u.a)(t=>t.nonce===e),Object(Ee.a)(1),Object(j.a)(e=>{if(!e.status)throw new Error(e.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}class De{constructor(e){if(this.sw=e,this.subscriptionChanges=new U.a,!e.isEnabled)return this.messages=Oe.a,this.notificationClicks=Oe.a,void(this.subscription=Oe.a);this.messages=this.sw.eventsOfType("PUSH").pipe(Object(j.a)(e=>e.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(Object(j.a)(e=>e.data)),this.pushManager=this.sw.registration.pipe(Object(j.a)(e=>e.pushManager));const t=this.pushManager.pipe(Object(A.a)(e=>e.getSubscription()));this.subscription=Object(I.a)(t,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(e){if(!this.sw.isEnabled)return Promise.reject(new Error(Ie));const t={userVisibleOnly:!0};let n=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),r=new Uint8Array(new ArrayBuffer(n.length));for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return t.applicationServerKey=r,this.pushManager.pipe(Object(A.a)(e=>e.subscribe(t)),Object(Ee.a)(1)).toPromise().then(e=>(this.subscriptionChanges.next(e),e))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(Object(Ee.a)(1),Object(A.a)(e=>{if(null===e)throw new Error("Not subscribed to push notifications.");return e.unsubscribe().then(e=>{if(!e)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(Ie))}decodeBase64(e){return atob(e)}}class Ae{constructor(e){if(this.sw=e,!e.isEnabled)return this.available=Oe.a,void(this.activated=Oe.a);this.available=this.sw.eventsOfType("UPDATE_AVAILABLE"),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Ie));const e=this.sw.generateNonce();return this.sw.postMessageWithStatus("CHECK_FOR_UPDATES",{statusNonce:e},e)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Ie));const e=this.sw.generateNonce();return this.sw.postMessageWithStatus("ACTIVATE_UPDATE",{statusNonce:e},e)}}class Re{}const Pe=new r.q("NGSW_REGISTER_SCRIPT");function Ne(e,t,n,i){return()=>{if(!Object(v.C)(i)||!("serviceWorker"in navigator)||!1===n.enabled)return;let s;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof n.registrationStrategy)s=n.registrationStrategy();else{const[t,...r]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(t){case"registerImmediately":s=Object(T.a)(null);break;case"registerWithDelay":s=Me(+r[0]||0);break;case"registerWhenStable":s=r[0]?Object(I.a)(Fe(e),Me(+r[0])):Fe(e);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}e.get(r.z).runOutsideAngular(()=>s.pipe(Object(Ee.a)(1)).subscribe(()=>navigator.serviceWorker.register(t,{scope:n.scope}).catch(e=>console.error("Service worker registration failed with:",e))))}}function Me(e){return Object(T.a)(null).pipe(Object(Te.a)(e))}function Fe(e){return e.get(r.g).isStable.pipe(Object(u.a)(e=>e))}function Le(e,t){return new je(Object(v.C)(t)&&!1!==e.enabled?navigator.serviceWorker:void 0)}class Ve{static register(e,t={}){return{ngModule:Ve,providers:[{provide:Pe,useValue:e},{provide:Re,useValue:t},{provide:je,useFactory:Le,deps:[Re,r.B]},{provide:r.d,useFactory:Ne,deps:[r.r,Pe,Re,r.B],multi:!0}]}}}var Ue=n("ZcxY"),ze=n("8YKC");const $e=()=>Promise.all([n.e(0),n.e(1),n.e(5),n.e(2),n.e(35)]).then(n.bind(null,"V22E")).then(e=>e.ChartsRoutingModuleNgFactory),qe=()=>Promise.all([n.e(0),n.e(1),n.e(38)]).then(n.bind(null,"N5b0")).then(e=>e.FindnewsModuleNgFactory),He=()=>Promise.all([n.e(0),n.e(1),n.e(5),n.e(12),n.e(2),n.e(28)]).then(n.bind(null,"jdQ0")).then(e=>e.DashboardRoutingModuleNgFactory),We=()=>Promise.all([n.e(0),n.e(1),n.e(32)]).then(n.bind(null,"cWEb")).then(e=>e.SettingUserModuleNgFactory),Be=()=>Promise.all([n.e(0),n.e(1),n.e(10),n.e(2),n.e(26)]).then(n.bind(null,"5mY1")).then(e=>e.SettingAdminModuleNgFactory),Ke=()=>Promise.all([n.e(0),n.e(1),n.e(14)]).then(n.bind(null,"tFu9")).then(e=>e.StocksFavouriteModuleNgFactory),Qe=()=>Promise.all([n.e(0),n.e(1),n.e(14)]).then(n.bind(null,"tFu9")).then(e=>e.StocksFavouriteModuleNgFactory),Ze=()=>Promise.all([n.e(0),n.e(1),n.e(2),n.e(40)]).then(n.bind(null,"pXJs")).then(e=>e.InfoModuleNgFactory),Ge=()=>Promise.all([n.e(0),n.e(1),n.e(2),n.e(39)]).then(n.bind(null,"gC2X")).then(e=>e.HuongdanModuleNgFactory),Ye=()=>Promise.all([n.e(0),n.e(1),n.e(2),n.e(42)]).then(n.bind(null,"7a1k")).then(e=>e.NangcaptaikhoanModuleNgFactory),Je=()=>Promise.all([n.e(0),n.e(1),n.e(2),n.e(41)]).then(n.bind(null,"wjgs")).then(e=>e.LienheModuleNgFactory),Xe=()=>
1Promise.all([n.e(0),n.e(1),n.e(2),n.e(43)]).then(n.bind(null,"oWHh")).then(e=>e.PrivacyModuleNgFactory),et=()=>Promise.all([n.e(0),n.e(33)]).then(n.bind(null,"GHar")).then(e=>e.AuthRoutingModuleNgFactory),tt=()=>Promise.all([n.e(0),n.e(18)]).then(n.bind(null,"tGV9")).then(e=>e.ErrorRoutingModuleNgFactory),nt=()=>Promise.all([n.e(0),n.e(1),n.e(12),n.e(34)]).then(n.bind(null,"cUPZ")).then(e=>e.TablesRoutingModuleNgFactory),rt=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(10),n.e(2),n.e(44)]).then(n.bind(null,"iPok")).then(e=>e.StocksignalModuleNgFactory),it=()=>Promise.all([n.e(0),n.e(1),n.e(2),n.e(25)]).then(n.bind(null,"1dxA")).then(e=>e.ListstockcodeModuleNgFactory),st=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(2),n.e(8)]).then(n.bind(null,"Gz1w")).then(e=>e.RecommentModuleNgFactory),ot=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(2),n.e(8)]).then(n.bind(null,"Gz1w")).then(e=>e.RecommentModuleNgFactory),at=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(2),n.e(8)]).then(n.bind(null,"Gz1w")).then(e=>e.RecommentModuleNgFactory),lt=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(2),n.e(8)]).then(n.bind(null,"Gz1w")).then(e=>e.RecommentModuleNgFactory),ut=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(2),n.e(6)]).then(n.bind(null,"ia8C")).then(e=>e.RecomcashflowModuleNgFactory),ct=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(2),n.e(6)]).then(n.bind(null,"ia8C")).then(e=>e.RecomcashflowModuleNgFactory),ht=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(2),n.e(6)]).then(n.bind(null,"ia8C")).then(e=>e.RecomcashflowModuleNgFactory),dt=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(2),n.e(6)]).then(n.bind(null,"ia8C")).then(e=>e.RecomcashflowModuleNgFactory),pt=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(2),n.e(7)]).then(n.bind(null,"MMxw")).then(e=>e.AdminrecommentModuleNgFactory),ft=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(2),n.e(7)]).then(n.bind(null,"MMxw")).then(e=>e.AdminrecommentModuleNgFactory),gt=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(2),n.e(19)]).then(n.bind(null,"b7bE")).then(e=>e.DerivativerModuleNgFactory),mt=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(2),n.e(19)]).then(n.bind(null,"b7bE")).then(e=>e.DerivativerModuleNgFactory),bt=()=>Promise.all([n.e(0),n.e(1),n.e(2),n.e(9)]).then(n.bind(null,"Oj68")).then(e=>e.CommonspecModuleNgFactory),yt=()=>Promise.all([n.e(0),n.e(1),n.e(2),n.e(9)]).then(n.bind(null,"Oj68")).then(e=>e.CommonspecModuleNgFactory),_t=()=>Promise.all([n.e(0),n.e(1),n.e(2),n.e(9)]).then(n.bind(null,"Oj68")).then(e=>e.CommonspecModuleNgFactory),vt=()=>Promise.all([n.e(0),n.e(1),n.e(16)]).then(n.bind(null,"17g5")).then(e=>e.NewsModuleNgFactory),wt=()=>Promise.all([n.e(0),n.e(1),n.e(16)]).then(n.bind(null,"17g5")).then(e=>e.NewsModuleNgFactory),Ct=()=>Promise.all([n.e(0),n.e(1),n.e(31)]).then(n.bind(null,"DUnn")).then(e=>e.NududonewsModuleNgFactory),St=()=>Promise.all([n.e(0),n.e(1),n.e(17)]).then(n.bind(null,"zqU+")).then(e=>e.TradingModuleNgFactory),Ot=()=>Promise.all([n.e(0),n.e(1),n.e(17)]).then(n.bind(null,"zqU+")).then(e=>e.TradingModuleNgFactory),kt=()=>Promise.all([n.e(0),n.e(1),n.e(13)]).then(n.bind(null,"IA83")).then(e=>e.StatisticModuleNgFactory),Et=()=>Promise.all([n.e(0),n.e(1),n.e(13)]).then(n.bind(null,"IA83")).then(e=>e.StatisticModuleNgFactory),xt=()=>Promise.all([n.e(0),n.e(1),n.e(5),n.e(29)]).then(n.bind(null,"KIG9")).then(e=>e.StockvaluationModuleNgFactory),Tt=()=>Promise.all([n.e(0),n.e(1),n.e(11),n.e(24)]).then(n.bind(null,"tx5J")).then(e=>e.CanslimmarkModuleNgFactory),It=()=>Promise.all([n.e(0),n.e(1),n.e(27)]).then(n.bind(null,"OtD7")).then(e=>e.StockratingModuleNgFactory),jt=()=>Promise.all([n.e(0),n.e(1),n.e(5),n.e(2),n.e(30)]).then(n.bind(null,"ddOM")).then(e=>e.StockinfoModuleNgFactory),Dt=()=>Promise.all([n.e(0),n.e(1),n.e(15)]).then(n.bind(null,"cIEZ")).then(e=>e.DocumentModuleNgFactory),At=()=>Promise.all([n.e(0),n.e(1),n.e(15)]).then(n.bind(null,"cIEZ")).then(e=>e.DocumentModuleNgFactory),Rt=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(2),n.e(7)]).then(n.bind(null,"MMxw")).then(e=>e.AdminrecommentModuleNgFactory),Pt=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(2),n.e(7)]).then(n.bind(null,"MMxw")).then(e=>e.AdminrecommentModuleNgFactory),Nt=()=>Promise.all([n.e(0),n.e(1),n.e(3),n.e(10),n.e(11),n.e(2),n.e(37)]).then(n.bind(null,"VAom")).then(e=>e.BuySellSignalModuleNgFactory),Mt=()=>Promise.all([n.e(0),n.e(45)]).then(n.bind(null,"JRf7")).then(e=>e.UtilityRoutingModuleNgFactory),Ft=()=>Promise.all([n.e(0),n.e(18)]).then(n.bind(null,"tGV9")).then(e=>e.ErrorRoutingModuleNgFactory);class Lt{}var Vt=n("Beq4"),Ut=n("pXDD"),zt=n("+l4i"),$t=r.vb(s,[d],function(e){return r.Jb([r.Kb(512,r.j,r.Z,[[8,[p.a,f.a,f.b,f.r,f.s,f.o,f.p,f.q,_]],[3,r.j],r.x]),r.Kb(5120,r.u,r.lb,[[3,r.u]]),r.Kb(4608,v.p,v.o,[r.u]),r.Kb
1(5120,r.ob,r.mb,[r.z]),r.Kb(5120,r.c,r.ib,[]),r.Kb(5120,r.s,r.jb,[]),r.Kb(5120,r.t,r.kb,[]),r.Kb(4608,g.b,g.l,[v.d]),r.Kb(6144,r.H,null,[g.b]),r.Kb(4608,g.e,g.g,[]),r.Kb(5120,g.c,function(e,t,n,r,i,s,o,a){return[new g.j(e,t,n),new g.o(r),new g.n(i,s,o,a)]},[v.d,r.z,r.B,v.d,v.d,g.e,r.ab,[2,g.f]]),r.Kb(4608,g.d,g.d,[g.c,r.z]),r.Kb(135680,g.m,g.m,[v.d]),r.Kb(4608,g.k,g.k,[g.d,g.m,r.c]),r.Kb(5120,w.a,C.e,[]),r.Kb(5120,w.c,C.f,[]),r.Kb(4608,w.b,C.d,[v.d,w.a,w.c]),r.Kb(5120,r.F,C.g,[g.k,w.b,r.z]),r.Kb(6144,g.p,null,[g.m]),r.Kb(4608,r.N,r.N,[r.z]),r.Kb(5120,o.a,o.z,[o.m]),r.Kb(4608,o.f,o.f,[]),r.Kb(6144,o.h,null,[o.f]),r.Kb(135680,o.q,o.q,[o.m,r.w,r.i,r.r,o.h]),r.Kb(4608,o.g,o.g,[]),r.Kb(5120,o.E,o.v,[o.m,v.x,o.i]),r.Kb(5120,o.j,o.C,[o.A]),r.Kb(5120,r.b,function(e){return[e]},[o.j]),r.Kb(4608,S.y,S.y,[]),r.Kb(4608,O.C,O.C,[r.j,r.r,O.Fb,O.D]),r.Kb(4608,c.i,c.o,[v.d,r.B,c.m]),r.Kb(4608,c.p,c.p,[c.i,c.n]),r.Kb(5120,c.a,function(e,t){return[e,new k(t)]},[c.p,l.a]),r.Kb(4608,c.l,c.l,[]),r.Kb(6144,c.j,null,[c.l]),r.Kb(4608,c.h,c.h,[c.j]),r.Kb(6144,c.b,null,[c.h]),r.Kb(4608,c.f,c.k,[c.b,r.r]),r.Kb(4608,c.c,c.c,[c.f]),r.Kb(4608,me,me,[V.c,[2,V.b],[2,fe],r.B,r.z,[2,ge],[2,K]]),r.Kb(4608,X,X,[V.c,[2,V.b],r.B,r.z,[2,K],[2,Q],[2,Z],[2,G],[2,Y],[2,J]]),r.Kb(4608,ye.a,ye.a,[V.c,[2,V.b],r.B,r.z,[2,ye.d],[2,ye.c]]),r.Kb(4608,S.f,S.f,[]),r.Kb(4608,_e.b,C.c,[r.F,v.d]),r.Kb(5120,V.d,V.h,[V.c,r.z,[2,V.b]]),r.Kb(5120,je,Le,[Re,r.B]),r.Kb(4608,De,De,[je]),r.Kb(4608,Ae,Ae,[je]),r.Kb(4608,Ue.c,Ue.c,[r.B,Ue.e,[2,c.c],[2,Ue.d],g.b]),r.Kb(4608,a.a,a.a,[ye.a,ze.a]),r.Kb(135680,v.b,v.b,[r.h]),r.Kb(1073742336,v.c,v.c,[]),r.Kb(1024,r.m,g.q,[]),r.Kb(1024,r.y,function(){return[o.u()]},[]),r.Kb(512,o.A,o.A,[r.r]),r.Kb(256,Pe,"ngsw-worker.js",[]),r.Kb(256,Re,{enabled:!0},[]),r.Kb(1024,r.d,function(e,t,n,r,i,s){return[g.r(e),o.B(t),Ne(n,r,i,s)]},[[2,r.y],o.A,r.r,Pe,Re,r.B]),r.Kb(512,r.e,r.e,[[2,r.d]]),r.Kb(131584,r.g,r.g,[r.z,r.ab,r.r,r.m,r.j,r.e]),r.Kb(1073742336,r.f,r.f,[r.g]),r.Kb(1073742336,g.a,g.a,[[3,g.a]]),r.Kb(1024,o.t,o.x,[[3,o.m]]),r.Kb(512,o.s,o.d,[]),r.Kb(512,o.c,o.c,[]),r.Kb(256,o.i,{useHash:!0,relativeLinkResolution:"legacy"},[]),r.Kb(1024,v.k,o.w,[v.u,[2,v.a],o.i]),r.Kb(512,v.j,v.j,[v.k,v.u]),r.Kb(512,r.i,r.i,[]),r.Kb(512,r.w,r.K,[r.i,[2,r.L]]),r.Kb(1024,o.k,function(){return[[{path:"",pathMatch:"full",redirectTo:"/dashboard"},{path:"charts",loadChildren:$e},{path:"santin",loadChildren:qe},{path:"dashboard",loadChildren:He},{path:"setting-user",loadChildren:We},{path:"setting-admin",loadChildren:Be},{path:"stocks-favourite",loadChildren:Ke},{path:"danhmuctheodoi",loadChildren:Qe},{path:"gioithieu",loadChildren:Ze},{path:"huongdan",loadChildren:Ge},{path:"nangcaptaikhoan",loadChildren:Ye},{path:"lienhe",loadChildren:Je},{path:"privacy",loadChildren:Xe},{path:"auth",loadChildren:et},{path:"error",loadChildren:tt},{path:"tables",loadChildren:nt},{path:"tinhieu",loadChildren:rt},{path:"danhsachma",loadChildren:it},{path:"khuyennghiban/:id/:isclose",loadChildren:st},{path:"khuyennghimua/:id/:isclose",loadChildren:ot},{path:"madongban/:id/:isclose",loadChildren:at},{path:"madongmua/:id/:isclose",loadChildren:lt},{path:"dongtienban/:id/:isclose",loadChildren:ut},{path:"dongtienmua/:id/:isclose",loadChildren:ct},{path:"dongtiendongban/:id/:isclose",loadChildren:ht},{path:"dongtiendongmua/:id/:isclose",loadChildren:dt},{path:"adminkhuyennghiban/:id/:isclose",loadChildren:pt},{path:"adminkhuyennghimua/:id/:isclose",loadChildren:ft},{path:"phaisinh/:isclose",loadChildren:gt},{path:"dongphaisinh/:isclose",loadChildren:mt},{path:"commonspec/:isclose",loadChildren:bt},{path:"khuyennghi/:isclose",loadChildren:yt},{path:"madangdong/:isclose",loadChildren:_t},{path:"news",loadChildren:vt},{path:"baochi",loadChildren:wt},{path:"tintuc",loadChildren:Ct},{path:"trading",loadChildren:St},{path:"bieudokythuat",loadChildren:Ot},{path:"statistic",loadChildren:kt},{path:"thongke",loadChildren:Et},{path:"dinhgiacophieu",loadChildren:xt},{path:"canslimsepa",loadChildren:Tt},{path:"xephangcophieu",loadChildren:It},{path:"phantichcophieu",loadChildren:jt},{path:"document",loadChildren:Dt},{path:"tailieu",loadChildren:At},{path:"admindongban/:id/:isclose",loadChildren:Rt},{path:"admindongmua/:id/:isclose",loadChildren:Pt},{path:"tinhieumuaban",loadChildren:Nt},{path:"version",loadChildren:Mt},{path:"**",pathMatch:"full",loadChildren:Ft}]]},[]),r.Kb(1024,o.m,o.y,[o.s,o.c,v.j,r.r,r.w,r.i,o.k,o.i,[2,o.r],[2,o.l]]),r.Kb(1073742336,o.o,o.o,[[2,o.t],[2,o.m]]),r.Kb(1073742336,Lt,Lt,[]),r.Kb(1073742336,O.c,O.c,[]),r.Kb(1073742336,O.f,O.f,[]),r.Kb(1073742336,O.h,O.h,[]),r.Kb(1073742336,O.l,O.l,[]),r.Kb(1073742336,O.n,O.n,[]),r.Kb(1073742336,S.x,S.x,[]),r.Kb(1073742336,S.j,S.j,[]),r.Kb(1073742336,O.t,O.t,[]),r.Kb(1073742336,O.z,O.z,[]),r.Kb(1073742336,O.E,O.E,[]),r.Kb(1073742336,O.L,O.L,[]),r.Kb(1073742336,O.S,O.S,[]),r.Kb(1073742336,O.X,O.X,[]),r.Kb(1073742336,O.ab,O.ab,[]),r.Kb(1073742336,O.fb,O.fb,[]),r.Kb(1073742336,O.ob,O.ob,[]),r.Kb(1073742336,O.rb,O.rb,[]),r.Kb(1073742336,O.ub,O.ub,[]),r.Kb(1073742336,O.vb,O.vb,[]),r.Kb(1073742336,O.jb,O.jb,[]),r.Kb(1073742336,O.F,O.F,[]),r.Kb(1073742336,Vt.a,Vt.a,[]),r.Kb(1073742336,Ut.a,Ut.a,[]),r.Kb(1073742336,c.e,c.e,[]),r.Kb(1073742336,c.d,c.d,[]),r.Kb(1073742336,be,be,[]),r.Kb(1073742336,ee,ee,[]),r.Kb(1073742336,ye.b,ye.b,[]),r.Kb(1073742336,S.t,S.t,[]),r.Kb(1073742336,zt.b,zt.b,[]),r.Kb(1073742336,C.b,C.b,[]),r.Kb(1073742336,V.a,V.a,[r.B]),r.Kb(1073742336,Ve,Ve,[]),r.Kb(1073742336,Ue.b,Ue.b,[]),r.Kb(1073742336,s,s,[]),r.Kb(256,r.k,r.nb,[]),r.Kb(256,r.cb,"root",[]),r.Kb(256,c.m,"XSRF-TOKEN",[]),r.Kb(256,c.n,"X-XSRF-TOKEN",[]),r.Kb(256,V.c,{apiKey:"AIzaSyAYvs_wQmtPMW3HwIs-AMPbfA3tBvda03c",authDomain:"nodudo-2c723.firebaseapp.com",databaseURL:"https://nodudo-2c723.firebaseio.com",projectId:"nodudo-2c723",storageBucket:"nodudo-2c723.appspot.com",messagingSenderId:"214945855980",appId:"1:214945855980:web:9dd02e29b6f509b15028c9",measurementId:"G-FNH2155ZY9"},[]),r.Kb(256,V.b,void 0,[]),r.Kb(256,C.a,"BrowserAnimations",[]),r.Kb(256,Ue.e,1,[])])});i.a.production&&Object(r.T)(),g.i().bootstrapModuleFactory($t).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"},zp1y:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("l7GE"),i=n("ZUHj");function s(...e){return t=>{let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new o(e,n))}}class o{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new a(e,this.observables,this.project))}}class a extends r.a{constructor(e,t,n){super(e),this.observables=t,this.project=n,this.toRespond=[];const r=t.length;this.values=new Array(r);for(let i=0;i<r;i++)this.toRespond.push(i);for(let s=0;s<r;s++){let e=t[s];this.add(Object(i.a)(this,e,void 0,s))}}notifyNext(e,t,n){this.values[n]=t;const r=this.toRespond;if(r.length>0){const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},zx2A:function(e,t,n){"use strict";n.d(t,"a",function(){return o}
1),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return l});var r=n("7o/Q"),i=n("HDdC"),s=n("SeVD");class o extends r.a{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends r.a{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function l(e,t){if(!t.closed)return e instanceof i.a?e.subscribe(t):Object(s.a)(e)(t)}}},[[0,4]]]);
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.