(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},kiQV:function(e){e.exports=JSON.parse('{"name":"geekblaze-blog-ng","version":"0.1.25","scripts":{"ng":"ng","start":"ng serve","prebuild":"npm --no-git-tag-version version patch","build":"ng build --prod --aot --output-hashing all","test":"ng test","lint":"ng lint","e2e":"ng e2e","updateBuild":"node ./replace.build.js"},"private":true,"dependencies":{"@angular/animations":"~11.0.0","@angular/common":"~11.0.0","@angular/compiler":"~11.0.0","@angular/core":"~11.0.0","@angular/forms":"~11.0.0","@angular/platform-browser":"~11.0.0","@angular/platform-browser-dynamic":"~11.0.0","@angular/router":"~11.0.0","@microsoft/applicationinsights-web":"^2.5.9","angular":"^1.8.2","bootstrap":"^4.5.3","jquery":"^3.5.1","jquery-easing":"0.0.1","popper.js":"~1.16.1","rxjs":"~6.6.0","save":"^2.4.0","tslib":"^2.0.0","zone.js":"~0.10.2"},"devDependencies":{"@angular-devkit/build-angular":"~0.1100.1","@angular/cli":"~11.0.1","@angular/compiler-cli":"~11.0.0","@types/applicationinsights-js":"^1.0.2","@types/jasmine":"~3.6.0","@types/jasminewd2":"~2.0.3","@types/node":"^12.19.4","codelyzer":"^6.0.0","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","karma":"~5.1.1","karma-chrome-launcher":"~3.1.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","protractor":"~7.0.0","replace-in-file":"^6.1.0","ts-node":"~8.3.0","tslint":"~6.1.0","typescript":"~4.0.2"}}')},zUnb:function(e,t,n){"use strict";n.r(t);var r={};function i(e){return"function"==typeof e}n.r(r),n.d(r,"Util",function(){return dg}),n.d(r,"CorrelationIdHelper",function(){return fg}),n.d(r,"UrlHelper",function(){return pg}),n.d(r,"DateTimeUtils",function(){return mg}),n.d(r,"ConnectionStringParser",function(){return xg}),n.d(r,"FieldType",function(){return Qf}),n.d(r,"RequestHeaders",function(){return ag}),n.d(r,"DisabledPropertyName",function(){return vg}),n.d(r,"ProcessLegacy",function(){return wg}),n.d(r,"SampleRate",function(){return yg}),n.d(r,"HttpMethod",function(){return _g}),n.d(r,"DEFAULT_BREEZE_ENDPOINT",function(){return bg}),n.d(r,"AIData",function(){return Sg}),n.d(r,"AIBase",function(){return Cg}),n.d(r,"Envelope",function(){return Tg}),n.d(r,"Event",function(){return kg}),n.d(r,"Exception",function(){return Ag}),n.d(r,"Metric",function(){return Lg}),n.d(r,"PageView",function(){return Mg}),n.d(r,"PageViewData",function(){return Ug}),n.d(r,"RemoteDependencyData",function(){return jg}),n.d(r,"Trace",function(){return Fg}),n.d(r,"PageViewPerformance",function(){return Hg}),n.d(r,"Data",function(){return qg}),n.d(r,"SeverityLevel",function(){return Pg}),n.d(r,"ConfigurationManager",function(){return Vg}),n.d(r,"ContextTagKeys",function(){return zg}),n.d(r,"DataSanitizer",function(){return lg}),n.d(r,"TelemetryItemCreator",function(){return Bg}),n.d(r,"CtxTagKeys",function(){return $g}),n.d(r,"Extensions",function(){return Gg}),n.d(r,"DistributedTracingModes",function(){return Jf}),n.d(r,"PropertiesPluginIdentifier",function(){return Wg}),n.d(r,"BreezeChannelIdentifier",function(){return Kg}),n.d(r,"AnalyticsPluginIdentifier",function(){return Xg});let s=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function a(e){setTimeout(()=>{throw e},0)}const l={closed:!0,next(e){},error(e){if(o.useDeprecatedSynchronousErrorHandling)throw e;a(e)},complete(){}},c=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function u(e){return null!==e&&"object"==typeof e}const h=(()=>{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 d=(()=>{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:r,_unsubscribe:s,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;ee.concat(t instanceof h?t.errors:t),[])}const f=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class g extends d{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!e){this.destination=l;break}if("object"==typeof e){e instanceof g?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[f](){return this}static create(e,t,n){const r=new g(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 m extends g{constructor(e,t,n,r){let s;super(),this._parentSubscriber=e;let o=this;i(t)?s=t:t&&(s=t.next,n=t.error,r=t.complete,t!==l&&(o=Object.create(t),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;o.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}=o;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):a(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;a(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);o.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(),o.useDeprecatedSynchronousErrorHandling)throw n;a(n)}}__tryOrSetError(e,t,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return o.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(a(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const v=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(e){return e}let w=(()=>{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:r}=this,i=function(e,t,n){if(e){if(e instanceof g)return e;if(e[f])return e[f]()}return e||t||n?new g(e,t,n):new g(l)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),o.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(e){try{return this._subscribe(e)}catch(t){o.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof g?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=_(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)}[v](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?y:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=_(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function _(e){if(e||(e=o.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const b=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class x extends d{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class C extends g{constructor(e){super(e),this.destination=e}}let S=(()=>{class e extends w{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new C(this)}lift(e){const t=new T(this,this);return t.operator=e,t}next(e){if(this.closed)throw new b;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;inew T(e,t),e})();class T extends S{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):d.EMPTY}}function I(e){return e&&"function"==typeof e.schedule}function E(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 k(e,t))}}class k{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new A(e,this.project,this.thisArg))}}class A extends g{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const R=e=>t=>{for(let n=0,r=e.length;ne&&"number"==typeof e.length&&"function"!=typeof e;function O(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const L=e=>{if(e&&"function"==typeof e[v])return r=e,e=>{const t=r[v]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(P(e))return R(e);if(O(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,a),e);if(e&&"function"==typeof e[D])return t=e,e=>{const n=t[D]();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};{const t=u(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,r};function U(e,t){return new w(n=>{const r=new d;let i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function M(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[v]}(e))return function(e,t){return new w(n=>{const r=new d;return r.add(t.schedule(()=>{const i=e[v]();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(O(e))return function(e,t){return new w(n=>{const r=new d;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(P(e))return U(e,t);if(function(e){return e&&"function"==typeof e[D]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new w(n=>{const r=new d;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(()=>{i=e[D](),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 w?e:new w(L(e))}class j extends g{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 F extends g{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function H(e,t){if(!t.closed)return e instanceof w?e.subscribe(t):L(e)(t)}function q(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(q((n,r)=>M(e(n,r)).pipe(E((e,i)=>t(n,e,r,i))),n)):("number"==typeof t&&(n=t),t=>t.lift(new V(e,n)))}class V{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new z(e,this.project,this.concurrent))}}class z extends F{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.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function B(e=Number.POSITIVE_INFINITY){return q(y,e)}function G(e,t){return t?U(e,t):new w(R(e))}function $(){return function(e){return e.lift(new W(e))}}class W{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new K(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class K extends g{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()}}class X extends w{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 d,e.add(this.source.subscribe(new Q(this.getSubject(),this))),e.closed&&(this._connection=null,e=d.EMPTY)),e}refCount(){return $()(this)}}const Z=(()=>{const e=X.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 Q extends C{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function J(){return new S}function Y(e){return{toString:e}.toString()}const ee="__annotations__",te="__parameters__",ne="__prop__metadata__";function re(e,t,n){return Y(()=>{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(te)?e[te]:Object.defineProperty(e,te,{value:[]})[te];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})}const ie=re("Inject",e=>({token:e})),se=re("Optional"),oe=re("Self"),ae=re("SkipSelf");var le=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 ce(e){for(let t in e)if(e[t]===ce)return t;throw Error("Could not find renamed property on target object.")}function ue(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function he(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function de(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function pe(e){return fe(e,me)||fe(e,ye)}function fe(e,t){return e.hasOwnProperty(t)?e[t]:null}function ge(e){return e&&(e.hasOwnProperty(ve)||e.hasOwnProperty(we))?e[ve]:null}const me=ce({"\u0275prov":ce}),ve=ce({"\u0275inj":ce}),ye=ce({ngInjectableDef:ce}),we=ce({ngInjectorDef:ce});function _e(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(_e).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function be(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const xe=ce({__forward_ref__:ce});function Ce(e){return e.__forward_ref__=Ce,e.toString=function(){return _e(this())},e}function Se(e){return"function"==typeof(t=e)&&t.hasOwnProperty(xe)&&t.__forward_ref__===Ce?e():e;var t}const Te="undefined"!=typeof globalThis&&globalThis,Ie="undefined"!=typeof window&&window,Ee="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ke="undefined"!=typeof global&&global,Ae=Te||ke||Ie||Ee,Re=ce({"\u0275cmp":ce}),Ne=ce({"\u0275dir":ce}),De=ce({"\u0275pipe":ce}),Pe=ce({"\u0275mod":ce}),Oe=ce({"\u0275loc":ce}),Le=ce({"\u0275fac":ce}),Ue=ce({__NG_ELEMENT_ID__:ce});class Me{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=he({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const je=new Me("INJECTOR",-1),Fe={},He=/\n/gm,qe="__source",Ve=ce({provide:String,useValue:ce});let ze,Be=void 0;function Ge(e){const t=Be;return Be=e,t}function $e(e){const t=ze;return ze=e,t}function We(e,t=le.Default){if(void 0===Be)throw new Error("inject() must be called from an injection context");return null===Be?Xe(e,void 0,t):Be.get(e,t&le.Optional?null:void 0,t)}function Ke(e,t=le.Default){return(ze||We)(Se(e),t)}function Xe(e,t,n){const r=pe(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&le.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${_e(e)}]`)}function Ze(e){const t=[];for(let n=0;nArray.isArray(e)?tt(e,t):t(e))}function nt(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function rt(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function it(e,t){const n=[];for(let r=0;r{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===st.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||lt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ot.Emulated,id:"c",styles:e.styles||lt,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,s=e.pipes;return n.id+=ct++,n.inputs=gt(e.inputs,t),n.outputs=gt(e.outputs),i&&i.forEach(e=>e(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(ht):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(dt):null,n})}function ht(e){return vt(e)||function(e){return e[Ne]||null}(e)}function dt(e){return function(e){return e[De]||null}(e)}const pt={};function ft(e){const t={type:e.type,bootstrap:e.bootstrap||lt,declarations:e.declarations||lt,imports:e.imports||lt,exports:e.exports||lt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Y(()=>{pt[e.id]=e.type}),t}function gt(e,t){if(null==e)return at;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,t&&(t[i]=s)}return n}const mt=ut;function vt(e){return e[Re]||null}function yt(e,t){return e.hasOwnProperty(Le)?e[Le]:null}function wt(e,t){const n=e[Pe]||null;if(!n&&!0===t)throw new Error(`Type ${_e(e)} does not have '\u0275mod' property.`);return n}const _t=20,bt=10;function xt(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ct(e){return Array.isArray(e)&&!0===e[1]}function St(e){return 0!=(8&e.flags)}function Tt(e){return 2==(2&e.flags)}function It(e){return 1==(1&e.flags)}function Et(e){return null!==e.template}function kt(e){return 0!=(512&e[2])}class At extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function Rt(e){return"string"==typeof e?e:null==e?"":""+e}function Nt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Rt(e)}const Dt=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ae))();function Pt(e){return e instanceof Function?e():e}function Ot(e,t){const n=t?" in "+t:"";throw new At("201",`No provider for ${Nt(e)} found${n}`)}class Lt{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ut(){return Mt}function Mt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ft),jt}function jt(){const e=Ht(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===at)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Ft(e,t,n,r){const i=Ht(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:at,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],l=o[a];s[a]=new Lt(l&&l.currentValue,t,o===at),e[r]=t}function Ht(e){return e.__ngSimpleChanges__||null}Ut.ngInherit=!0;let qt=void 0;function Vt(e){return!!e.listen}const zt={createRenderer:(e,t)=>void 0!==qt?qt:"undefined"!=typeof document?document:void 0};function Bt(e){for(;Array.isArray(e);)e=e[0];return e}function Gt(e,t){return Bt(t[e.index])}function $t(e,t){return e.data[t]}function Wt(e,t){const n=t[e];return xt(n)?n:n[0]}function Kt(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Xt(e){return 4==(4&e[2])}function Zt(e){return 128==(128&e[2])}function Qt(e,t){return null==t?null:e[t]}function Jt(e){e[18]=0}function Yt(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const en={lFrame:_n(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function tn(){return en.bindingsEnabled}function nn(){return en.lFrame.lView}function rn(){return en.lFrame.tView}function sn(){let e=on();for(;null!==e&&64===e.type;)e=e.parent;return e}function on(){return en.lFrame.currentTNode}function an(e,t){const n=en.lFrame;n.currentTNode=e,n.isParent=t}function ln(){return en.lFrame.isParent}function cn(){return en.isInCheckNoChangesMode}function un(e){en.isInCheckNoChangesMode=e}function hn(){return en.lFrame.bindingIndex++}function dn(e,t){const n=en.lFrame;n.bindingIndex=n.bindingRootIndex=e,pn(t)}function pn(e){en.lFrame.currentDirectiveIndex=e}function fn(){return en.lFrame.currentQueryIndex}function gn(e){en.lFrame.currentQueryIndex=e}function mn(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function vn(e,t,n){if(n&le.SkipSelf){let r=t,i=e;for(;r=r.parent,!(null!==r||n&le.Host||(r=mn(i),null===r)||(i=i[15],10&r.type)););if(null===r)return!1;t=r,e=i}const r=en.lFrame=wn();return r.currentTNode=t,r.lView=e,!0}function yn(e){const t=wn(),n=e[1];en.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function wn(){const e=en.lFrame,t=null===e?null:e.child;return null===t?_n(e):t}function _n(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function bn(){const e=en.lFrame;return en.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const xn=bn;function Cn(){const e=bn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Sn(){return en.lFrame.selectedIndex}function Tn(e){en.lFrame.selectedIndex=e}function In(){const e=en.lFrame;return $t(e.tView,e.selectedIndex)}function En(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[o]<0&&(e[18]+=65536),(s>11>16&&(3&e[2])===t&&(e[2]+=2048,s.call(o)):s.call(o)}const Pn=-1;class On{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function Ln(e,t,n){const r=Vt(e);let i=0;for(;it){o=s-1;break}}}for(;s>16,r=t;for(;n>0;)r=r[15],n--;return r}let zn=!0;function Bn(e){const t=zn;return zn=e,t}let Gn=0;function $n(e,t){const n=Kn(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Wn(r.data,e),Wn(t,null),Wn(r.blueprint,null));const i=Xn(e,t),s=e.injectorIndex;if(Hn(i)){const e=qn(i),n=Vn(i,t),r=n[1].data;for(let i=0;i<8;i++)t[s+i]=n[e+i]|r[e+i]}return t[s+8]=i,s}function Wn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Kn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Xn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const e=i[1],t=e.type;if(r=2===t?e.declTNode:1===t?i[6]:null,null===r)return Pn;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Pn}function Zn(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ue)&&(r=n[Ue]),null==r&&(r=n[Ue]=Gn++);const i=255&r,s=1<0?255&t:t}(n);if("function"==typeof s){if(!vn(t,e,r))return Jn(t,n,r,i);try{const e=s();if(null!=e||r&le.Optional)return e;Ot(n)}finally{xn()}}else if("number"==typeof s){if(-1===s){if(!vn(t,e,r))return r&le.Host?Qn(i,n,r):Jn(t,n,r,i);try{return new or(sn(),nn())}finally{xn()}}let o=null,a=Kn(e,t),l=Pn,c=r&le.Host?t[16][6]:null;for((-1===a||r&le.SkipSelf)&&(l=-1===a?Xn(e,t):t[a+8],l!==Pn&&sr(r,!1)?(o=t[1],a=qn(l),t=Vn(l,t)):a=-1);-1!==a;){const e=t[1];if(ir(s,a,e.data)){const e=tr(a,t,n,o,r,c);if(e!==er)return e}l=t[a+8],l!==Pn&&sr(r,t[1].data[a+8]===c)&&ir(s,a,t)?(o=e,a=qn(l),t=Vn(l,t)):a=-1}}}return Jn(t,n,r,i)}const er={};function tr(e,t,n,r,i,s){const o=t[1],a=o.data[e+8],l=nr(a,o,n,null==r?Tt(a)&&zn:r!=o&&0!=(3&a.type),i&le.Host&&s===a);return null!==l?rr(t,o,l,a):er}function nr(e,t,n,r,i){const s=e.providerIndexes,o=t.data,a=1048575&s,l=e.directiveStart,c=s>>20,u=i?a+c:e.directiveEnd;for(let h=r?a:a+c;h=l&&e.type===n)return h}if(i){const e=o[l];if(e&&Et(e)&&e.type===n)return l}return null}function rr(e,t,n,r){let i=e[n];const s=t.data;if(i instanceof On){const o=i;o.resolving&&function(e,t){throw new At("200","Circular dependency in DI detected for "+e)}(Nt(s[n]));const a=Bn(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?$e(o.injectImpl):null;vn(e,r,le.Default);try{i=e[n]=o.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const r=Mt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==l&&$e(l),Bn(a),o.resolving=!1,xn()}}return i}function ir(e,t,n){const r=64&e,i=32&e;let s;return s=128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t],!!(s&1<0&&(e[n-1][4]=r[4]);const o=rt(e,bt+t);Fr(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}var i;return r}function Ar(e,t){if(!(256&t[2])){const n=t[11];Vt(n)&&n.destroyNode&&Fr(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Rr(e[1],e);for(;t;){let n=null;if(xt(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)xt(t)&&Rr(t[1],t),t=t[3];null===t&&(t=e),xt(t)&&Rr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Rr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?e[a]():e[-a].unsubscribe(),r+=2}else n[r].call(e[n[r+1]]);t[7]=null}}(e,t),1===t[1].type&&Vt(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&Ct(t[3])){n!==t[3]&&Er(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function Nr(e,t,n,r,i){Vt(e)?e.insertBefore(t,n,r,i):t.insertBefore(n,r,i)}function Dr(e,t,n){Vt(e)?e.appendChild(t,n):t.appendChild(n)}function Pr(e,t,n,r,i){null!==r?Nr(e,t,n,r,i):Dr(e,t,n)}function Or(e,t){return Vt(e)?e.parentNode(t):t.parentNode}function Lr(e,t,n,r){const i=function(e,t,n){return function(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const t=e.data,n=t[t[r.index].directiveStart].encapsulation;if(n===ot.None||n===ot.Emulated)return null}return Gt(r,n)}(e,t.parent,n)}(e,r,t),s=t[11],o=function(e,t,n){return function(e,t,n){return 40&e.type?Gt(e,n):null}(e,0,n)}(r.parent||t[6],0,t);if(null!=i)if(Array.isArray(n))for(let a=0;as?"":i[u+1].toLowerCase();const t=8&r?e:null;if(t&&-1!==zr(t,c,0)||2&r&&c!==e){if(Xr(r))return!1;o=!0}}}}else{if(!o&&!Xr(r)&&!Xr(l))return!1;if(o&&Xr(l))continue;o=!1,r=l|1&r}}return Xr(r)||o}function Xr(e){return 0==(1&e)}function Zr(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let n=!1;for(;i-1)for(n++;n0?'="'+t+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""===i||Xr(o)||(t+=Jr(s,i),i=""),r=o,s=s||!Xr(r);n++}return""!==i&&(t+=Jr(s,i)),t}const ei={};function ti(e){ni(rn(),nn(),Sn()+e,cn())}function ni(e,t,n,r){if(!r)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&kn(t,r,n)}else{const r=e.preOrderHooks;null!==r&&An(t,r,0,n)}Tn(n)}function ri(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r_t&&ni(e,t,_t,cn()),n(r,i)}finally{Tn(s)}}function hi(e,t,n){tn()&&(function(e,t,n,r){const i=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||$n(n,t),wr(r,t);const o=n.initialInputs;for(let a=i;a0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(r,i,o)}}function bi(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function xi(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Ci(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&Ni(n)}}function Ni(e){for(let n=xr(e);null!==n;n=Cr(n))for(let e=bt;e0&&Ni(t)}const t=e[1].components;if(null!==t)for(let n=0;n0&&Ni(r)}}function Di(e,t){const n=Wt(t,e),r=n[1];!function(e,t){for(let n=t.length;nPromise.resolve(null))();function Fi(e){return e[7]||(e[7]=[])}function Hi(e,t){const n=e[9],r=n?n.get(ur,null):null;r&&r.handleError(t)}function qi(e,t,n,r,i){for(let s=0;s-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Ar(this._lView[1],this._lView)}onDestroy(e){gi(this._lView[1],this._lView,null,e)}markForCheck(){Oi(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Li(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){un(!0);try{Li(e,t,n)}finally{un(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,Fr(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class zi extends Vi{constructor(e){super(e),this._view=e}detectChanges(){Ui(this._view)}checkNoChanges(){!function(e){un(!0);try{Ui(e)}finally{un(!1)}}(this._view)}get context(){return null}}function Bi(e,t,n,r,i=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&r.push(Bt(s)),Ct(s))for(let e=bt;e0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-bt}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;if(!i&&null==e.ngModule&&s){const e=s.get(Je,null);e&&(i=e)}const o=e.create(s,r,void 0,i);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ct(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],r=new Wi(t,t[6],t[3]);r.detach(r.indexOf(e))}}const i=this._adjustIndex(t),s=this._lContainer;!function(e,t,n,r){const i=bt+r,s=n.length;r>0&&(n[i-1][4]=t),r{class e{}return e.__NG_ELEMENT_ID__=()=>Ji(),e})();const Ji=function(e=!1){return function(e,t,n){if(!n&&Tt(e)){const n=Wt(e.index,t);return new Vi(n,n)}return 47&e.type?new Vi(t[16],t):null}(sn(),nn(),e)},Yi=Function;function es(e){return"function"==typeof e}const ts=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|[^()]+\(arguments\))\)/,ns=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,rs=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,is=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class ss{constructor(e){this._reflect=e||Ae.Reflect}isReflectionEnabled(){return!0}factory(e){return(...t)=>new e(...t)}_zipTypesAndAnnotations(e,t){let n;n=it(void 0===e?t.length:e.length);for(let r=0;re&&e.type),n=e.map(e=>e&&os(e.decorators));return this._zipTypesAndAnnotations(t,n)}const i=e.hasOwnProperty(te)&&e[te],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return s||i?this._zipTypesAndAnnotations(s,i):it(e.length)}parameters(e){if(!es(e))return[];const t=as(e);let n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]}_ownAnnotations(e,t){if(e.annotations&&e.annotations!==t.annotations){let t=e.annotations;return"function"==typeof t&&t.annotations&&(t=t.annotations),t}return e.decorators&&e.decorators!==t.decorators?os(e.decorators):e.hasOwnProperty(ee)?e[ee]:null}annotations(e){if(!es(e))return[];const t=as(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}_ownPropMetadata(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){let t=e.propMetadata;return"function"==typeof t&&t.propMetadata&&(t=t.propMetadata),t}if(e.propDecorators&&e.propDecorators!==t.propDecorators){const t=e.propDecorators,n={};return Object.keys(t).forEach(e=>{n[e]=os(t[e])}),n}return e.hasOwnProperty(ne)?e[ne]:null}propMetadata(e){if(!es(e))return{};const t=as(e),n={};if(t!==Object){const e=this.propMetadata(t);Object.keys(e).forEach(t=>{n[t]=e[t]})}const r=this._ownPropMetadata(e,t);return r&&Object.keys(r).forEach(e=>{const t=[];n.hasOwnProperty(e)&&t.push(...n[e]),t.push(...r[e]),n[e]=t}),n}ownPropMetadata(e){return es(e)&&this._ownPropMetadata(e,as(e))||{}}hasLifecycleHook(e,t){return e instanceof Yi&&t in e.prototype}guards(e){return{}}getter(e){return new Function("o","return o."+e+";")}setter(e){return new Function("o","v","return o."+e+" = v;")}method(e){return new Function("o","args",`if (!o.${e}) throw new Error('"${e}" is undefined');\n return o.${e}.apply(o, args);`)}importUri(e){return"object"==typeof e&&e.filePath?e.filePath:"./"+_e(e)}resourceUri(e){return"./"+_e(e)}resolveIdentifier(e,t,n,r){return r}resolveEnum(e,t){return e[t]}}function os(e){return e?e.map(e=>new(0,e.type.annotationCls)(...e.args?e.args:[])):[]}function as(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const ls=new Me("Set Injector scope."),cs={},us={},hs=[];let ds=void 0;function ps(){return void 0===ds&&(ds=new Qe),ds}function fs(e,t=null,n=null,r){return new gs(e,n,t||ps(),r)}class gs{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];t&&tt(t,n=>this.processProvider(n,e,t)),tt([e],e=>this.processInjectorType(e,[],i)),this.records.set(je,vs(void 0,this));const s=this.records.get(ls);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof e?null:_e(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Fe,n=le.Default){this.assertNotDestroyed();const r=Ge(this);try{if(!(n&le.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(i=e)||"object"==typeof i&&i instanceof Me)&&pe(e);t=n&&this.injectableDefInScope(n)?vs(ms(e),cs):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&le.Self?ps():this.parent).get(e,t=n&le.Optional&&t===Fe?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(_e(e)),r)throw s;return function(e,t,n,r){const i=e.ngTempTokenPath;throw t[qe]&&i.unshift(t[qe]),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=_e(t);if(Array.isArray(t))i=t.map(_e).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):_e(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(He,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{Ge(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(_e(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=Se(e)))return!1;let r=ge(e);const i=null==r&&e.ngModule||void 0,s=void 0===i?e:i,o=-1!==n.indexOf(s);if(void 0!==i&&(r=ge(i)),null==r)return!1;if(null!=r.imports&&!o){let e;n.push(s);try{tt(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,r||hs))}}this.injectorDefTypes.add(s),this.records.set(s,vs(r.factory,cs));const a=r.providers;if(null!=a&&!o){const t=e;tt(a,e=>this.processProvider(e,t,a))}return void 0!==i&&void 0!==e.providers}processProvider(e,t,n){let r=ws(e=Se(e))?e:Se(e&&e.provide);const i=function(e,t,n){return ys(e)?vs(void 0,e.useValue):vs(function(e,t,n){let r=void 0;if(ws(e)){const t=Se(e);return yt(t)||ms(t)}if(ys(e))r=()=>Se(e.useValue);else if((i=e)&&i.useFactory)r=()=>e.useFactory(...Ze(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>Ke(Se(e.useExisting));else{const t=Se(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return yt(t)||ms(t);r=()=>new t(...Ze(e.deps))}var i;return r}(e),cs)}(e);if(ws(e)||!0!==e.multi)this.records.get(r);else{let t=this.records.get(r);t||(t=vs(void 0,cs,!0),t.factory=()=>Ze(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,i)}hydrate(e,t){var n;return t.value===cs&&(t.value=us,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function ms(e){const t=pe(e),n=null!==t?t.factory:yt(e);if(null!==n)return n;const r=ge(e);if(null!==r)return r.factory;if(e instanceof Me)throw new Error(`Token ${_e(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=it(t,"?");throw new Error(`Can't resolve all parameters for ${_e(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[me]||e[ye]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function vs(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ys(e){return null!==e&&"object"==typeof e&&Ve in e}function ws(e){return"function"==typeof e}const _s=function(e,t,n){return function(e,t=null,n=null,r){const i=fs(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)};let bs=(()=>{class e{static create(e,t){return Array.isArray(e)?_s(e,t,""):_s(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=Fe,e.NULL=new Qe,e.\u0275prov=he({token:e,providedIn:"any",factory:()=>Ke(je)}),e.__NG_ELEMENT_ID__=-1,e})();function xs(e){return e.length>1?" ("+function(e){const t=[];for(let n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(e=>_e(e.token)).join(" -> ")+")":""}function Cs(e,t,n,r){const i=[t],s=n(i),o=r?function(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,r=Error(n);return r.ngOriginalError=t,r}(s,r):Error(s);return o.addKey=Ss,o.keys=i,o.injectors=[e],o.constructResolvingMessage=n,o.ngOriginalError=r,o}function Ss(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Ts(e,t){const n=[];for(let r=0,i=t.length;re,n=[Ns.fromKey(Is.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){const n=t.map(e=>[e]);return t.map(t=>Hs(e,t,n))}return Fs(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=Ds);return new Os(t,n)}function Us(e){return new Ps(Is.get(e.provide),[Ls(e)],e.multi||!1)}function Ms(e){const t=function(e,t){for(let n=0;n{if(e instanceof Yi)t.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)t.push(e);else{if(!Array.isArray(e))throw Error("Invalid provider - only instances of Provider and Type are allowed, got: "+e);js(e,t)}}),t}function Fs(e){const t=Rs.parameters(e);if(!t)return[];if(t.some(e=>null==e))throw Ts(e,t);return t.map(n=>Hs(e,n,t))}function Hs(e,t,n){let r=null,i=!1;if(!Array.isArray(t))return qs(t instanceof ie?t.token:t,i,null);let s=null;for(let o=0;o{class e{constructor(e,t){this._constructionCounter=0,this._providers=e,this.parent=t||null;const n=e.length;this.keyIds=[],this.objs=[];for(let r=0;r=this._providers.length)throw function(e){return Error(`Index ${e} is out-of-bounds.`)}(e);return this._providers[e]}_new(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw Cs(this,e.key,function(e){return"Cannot instantiate cyclic dependency!"+xs(e)});return this._instantiateProvider(e)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(e){if(e.multiProvider){const t=[];for(let n=0;nthis._getByReflectiveDependency(e))}catch(o){throw o.addKey&&o.addKey(this,e.key),o}try{i=n(...r)}catch(o){throw Cs(this,e.key,function(e){const t=_e(e[0].token);return`${s.message}: Error during instantiation of ${t}!${xs(e)}.`},s=o)}var s;return i}_getByReflectiveDependency(e){return this._getByKey(e.key,e.visibility,e.optional?null:Fe)}_getByKey(t,n,r){return t===e.INJECTOR_KEY?this:n instanceof oe?this._getByKeySelf(t,r):this._getByKeyDefault(t,r,n)}_getObjByKeyId(e){for(let t=0;t=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=jn(i.hostAttrs,n=jn(n,i.hostAttrs))}}(r)}function Xs(e){return e===at?{}:e===lt?[]:e}function Zs(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function Qs(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,i)=>{t(e,r,i),n(e,r,i)}:t}function Js(e,t){const n=e.hostBindings;e.hostBindings=n?(e,r)=>{t(e,r),n(e,r)}:t}let Ys=null;function eo(){if(!Ys){const e=Ae.Symbol;if(e&&e.iterator)Ys=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ta(Bt(e[r.index])).target:r.index;if(Vt(n)){let o=null;if(!a&&l&&(o=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let s=0;sn?e[n]:null}"string"==typeof e&&(s+=2)}return null}(e,t,i,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,h=!1;else{s=vo(r,t,s,!1);const e=n.listen(p.name||f,i,s);u.push(s,e),c&&c.push(i,m,g,g+1)}}else s=vo(r,t,s,!0),f.addEventListener(i,s,o),u.push(s),c&&c.push(i,m,g,o)}const d=r.outputs;let p;if(h&&null!==d&&(p=d[i])){const e=p.length;if(e)for(let n=0;n null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(Eo=e.toLowerCase().replace(/_/g,"-"))}class Ao{}class Ro{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${_e(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let No=(()=>{class e{}return e.NULL=new Ro,e})(),Do=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>Po(e),e})();const Po=function(e){return Ki(e,sn(),nn())};class Oo{}var Lo=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let Uo=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Mo(),e})();const Mo=function(){const e=nn(),t=Wt(sn().index,e);return function(e){const t=e[11];if(Vt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(xt(t)?t:e)};let jo=(()=>{class e{}return e.\u0275prov=he({token:e,providedIn:"root",factory:()=>null}),e})();class Fo{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Ho=new Fo("11.0.0");class qo{constructor(){}supports(e){return to(e)}create(e){return new zo(e)}}const Vo=(e,t)=>t;class zo{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||Vo}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{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 Bo(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 $o),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 $o),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 Bo{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 Go{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 $o{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Go,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 Wo(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r{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 Zo(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 Zo{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 Qo=(()=>{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 ae,new se]]}}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=he({token:e,providedIn:"root",factory:()=>new e([new qo])}),e})(),Jo=(()=>{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 ae,new se]]}}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=he({token:e,providedIn:"root",factory:()=>new e([new Ko])}),e})();const Yo=[new Ko],ea=new Qo([new qo]),ta=new Jo(Yo);let na=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>ra(e,Do),e})();const ra=function(e,t){return Xi(e,t,sn(),nn())};let ia=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>sa(e,Do),e})();const sa=function(e,t){return Zi(e,t,sn(),nn())},oa={};class aa extends No{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=vt(e);return new ua(t,this.ngModule)}}function la(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const ca=new Me("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Dt});class ua extends Ao{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Yr).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return la(this.componentDef.inputs)}get outputs(){return la(this.componentDef.outputs)}create(e,t,n,r){const i=(r=r||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const s=e.get(n,oa,i);return s!==oa||r===oa?s:t.get(n,r,i)}}}(e,r.injector):e,s=i.get(Oo,zt),o=i.get(jo,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(Vt(e))return e.selectRootElement(t,n===ot.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Ir(s.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Dt,clean:ji,playerHandler:null,flags:0},d=fi(0,null,null,1,0,null,null,null,null,null),p=ii(null,d,h,u,null,null,s,a,o,i);let f,g;yn(p);try{const e=function(e,t,n,r,i,s){const o=n[1];n[20]=e;const a=si(o,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&($s(a,l,!0),null!==e&&(Ln(i,e,l),null!==a.classes&&Vr(i,e,a.classes),null!==a.styles&&qr(i,e,a.styles)));const c=r.createRenderer(e,t),u=ii(n,pi(t),null,t.onPush?64:16,n[20],a,r,c,null,null);return o.firstCreatePass&&(Zn($n(a,n),o,t.type),xi(o,a),Si(a,n.length,1)),Pi(n,u),n[20]=u}(c,this.componentDef,p,s,a);if(c)if(n)Ln(a,c,["ng-version",Ho.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let r=1,i=2;for(;r0&&Vr(a,c,t.join(" "))}if(g=$t(d,_t),void 0!==t){const e=g.projection=[];for(let n=0;ne(o,t)),t.contentQueries){const e=sn();t.contentQueries(1,o,e.directiveStart)}const a=sn();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Tn(a.index),_i(n[1],a,0,a.directiveStart,a.directiveEnd,t),bi(t,o)),o}(e,this.componentDef,p,h,[Ws]),ai(d,p,null)}finally{Cn()}return new ha(this.componentType,f,Ki(Do,g,p),p,g)}}class ha extends class{}{constructor(e,t,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new zi(r),this.componentType=e}get injector(){return new or(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const da=new Map;class pa extends Je{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new aa(this);const n=wt(e),r=e[Oe]||null;r&&ko(r),this._bootstrapComponents=Pt(n.bootstrap),this._r3Injector=fs(e,t,[{provide:Je,useValue:this},{provide:No,useValue:this.componentFactoryResolver}],_e(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=bs.THROW_IF_NOT_FOUND,n=le.Default){return e===bs||e===Je||e===je?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class fa extends Ye{constructor(e){super(),this.moduleType=e,null!==wt(e)&&function(e){const t=new Set;!function e(n){const r=wt(n,!0),i=r.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${_e(t)} vs ${_e(t.name)}`)}(i,da.get(i),n),da.set(i,n));const s=Pt(r.imports);for(const o of s)t.has(o)||(t.add(o),e(o))}(e)}(e)}create(e){return new pa(this.moduleType,e)}}function ga(e,t,n){const r=function(){const e=en.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}()+e,i=nn();return i[r]===ei?function(e,t,n){return e[t]=n}(i,r,n?t.call(n):t()):function(e,t){return e[t]}(i,r)}const ma=class extends S{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,i=e=>null,s=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(i=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(s=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,i,s);return e instanceof d&&e.add(o),o}};function va(){return this._results[eo()]()}class ya{constructor(){this.dirty=!0,this._results=[],this.changes=new ma,this.length=0;const e=eo(),t=ya.prototype;t[e]||(t[e]=va)}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=et(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()}}class wa{constructor(e){this.queryList=e,this.matches=null}clone(){return new wa(this.queryList)}setDirty(){this.queryList.setDirty()}}class _a{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let e=0;e0)r.push(o[e/2]);else{const i=s[e+1],o=t[-n];for(let e=bt;e{class e{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{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(Ke(Da,8))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const Oa=new Me("AppId"),La={provide:Oa,useFactory:function(){return`${Ua()}${Ua()}${Ua()}`},deps:[]};function Ua(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ma=new Me("Platform Initializer"),ja=new Me("Platform ID"),Fa=new Me("appBootstrapListener");let Ha=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const qa=new Me("LocaleId"),Va=new Me("DefaultCurrencyCode");class za{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Ba=function(e){return new fa(e)},Ga=Ba,$a=function(e){return Promise.resolve(Ba(e))},Wa=function(e){const t=Ba(e),n=Pt(wt(e).declarations).reduce((e,t)=>{const n=vt(t);return n&&e.push(new ua(n)),e},[]);return new za(t,n)},Ka=Wa,Xa=function(e){return Promise.resolve(Wa(e))};let Za=(()=>{class e{constructor(){this.compileModuleSync=Ga,this.compileModuleAsync=$a,this.compileModuleAndAllComponentsSync=Ka,this.compileModuleAndAllComponentsAsync=Xa}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const Qa=(()=>Promise.resolve(0))();function Ja(e){"undefined"==typeof Zone?Qa.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ya{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ma(!1),this.onMicrotaskEmpty=new ma(!1),this.onStable=new ma(!1),this.onError=new ma(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=t,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let e=Ae.requestAnimationFrame,t=Ae.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(Ae,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,rl(e),nl(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),rl(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,r,i,s,o,a)=>{try{return il(e),n.invokeTask(i,s,o,a)}finally{t&&"eventTask"===s.type&&t(),sl(e)}},onInvoke:(t,n,r,i,s,o,a)=>{try{return il(e),t.invoke(r,i,s,o,a)}finally{sl(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,rl(e),nl(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ya.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ya.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,tl,el,el);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 el(){}const tl={};function nl(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 rl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function il(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function sl(e){e._nesting--,nl(e)}class ol{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ma,this.onMicrotaskEmpty=new ma,this.onStable=new ma,this.onError=new ma}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)}}let al=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ya.assertNotInAngularZone(),Ja(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Ja(()=>{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[]}}return e.\u0275fac=function(t){return new(t||e)(Ke(Ya))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),ll=(()=>{class e{constructor(){this._applications=new Map,hl.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 hl.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();class cl{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let ul,hl=new cl;const dl=new Me("AllowMultipleToken");class pl{constructor(e,t){this.name=e,this.token=t}}function fl(e,t,n=[]){const r="Platform: "+t,i=new Me(r);return(t=[])=>{let s=gl();if(!s||s.injector.get(dl,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{const e=n.concat(t).concat({provide:i,useValue:!0},{provide:ls,useValue:"platform"});!function(e){if(ul&&!ul.destroyed&&!ul.injector.get(dl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ul=e.get(ml);const t=e.get(Ma,null);t&&t.forEach(e=>e())}(bs.create({providers:e,name:r}))}return function(e){const t=gl();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 gl(){return ul&&!ul.destroyed?ul:null}let ml=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new ol:("zone.js"===e?void 0:e)||new Ya({enableLongStackTrace:fr(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),r=[{provide:Ya,useValue:n}];return n.run(()=>{const t=bs.create({providers:r,parent:this.injector,name:e.moduleType.name}),i=e.create(t),s=i.injector.get(ur,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>wl(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{s.handleError(e)}})),function(e,t,n){try{const r=n();return fo(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(Pa);return e.runInitializers(),e.donePromise.then(()=>(ko(i.injector.get(qa,Io)||Io),this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,t=[]){const n=vl({},t);return function(e,t,n){const r=new fa(n);return Promise.resolve(r)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(yl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${_e(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(Ke(bs))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();function vl(e,t){return Array.isArray(t)?t.reduce(vl,e):Object.assign(Object.assign({},e),t)}let yl=(()=>{class e{constructor(e,t,n,r,i,s){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=fr(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new w(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new w(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Ya.assertNotInAngularZone(),Ja(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Ya.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return I(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof w?e[0]:B(t)(G(e,n))}(o,a.pipe(e=>{return $()((t=J,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,Z);return r.source=e,r.subjectFactory=n,r})(e));var t}))}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 Ao?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(Je),i=n.create(bs.NULL,[],t||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const s=i.injector.get(al,null);return s&&i.injector.get(ll).registerApplication(i.location.nativeElement,s),this._loadComponent(i),fr()&&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;wl(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Fa,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),wl(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(Ke(Ya),Ke(Ha),Ke(bs),Ke(ur),Ke(No),Ke(Pa))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();function wl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class _l{}class bl{}const xl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Cl=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||xl}load(e){return 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=>Sl(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=>Sl(e,t,r))}}return e.\u0275fac=function(t){return new(t||e)(Ke(Za),Ke(bl,8))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();function Sl(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const Tl=fl(null,"core",[{provide:ja,useValue:"unknown"},{provide:ml,deps:[bs]},{provide:ll,deps:[]},{provide:Ha,deps:[]}]),Il=[{provide:yl,useClass:yl,deps:[Ya,Ha,bs,ur,No,Pa]},{provide:ca,deps:[Ya],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Pa,useClass:Pa,deps:[[new se,Da]]},{provide:Za,useClass:Za,deps:[]},La,{provide:Qo,useFactory:function(){return ea},deps:[]},{provide:Jo,useFactory:function(){return ta},deps:[]},{provide:qa,useFactory:function(e){return ko(e=e||"undefined"!=typeof $localize&&$localize.locale||Io),e},deps:[[new ie(qa),new se,new ae]]},{provide:Va,useValue:"USD"}];let El=(()=>{class e{constructor(e){}}return e.\u0275mod=ft({type:e}),e.\u0275inj=de({factory:function(t){return new(t||e)(Ke(yl))},providers:Il}),e})();const kl={production:!0,apiHost:"https://geekblaze-blog-fa.azurewebsites.net/api/",apiKey:"ZBVeSinhdM16kcMPMi2XpqCSHtLarDPzeURnmb4NNiC5h50q9yx60g==",staticContentHost:"/assets/",applicationVersion:n("kiQV").version,appInsights:{instrumentationKey:"25c4bf02-6723-4f6f-8760-60af185896e3",loggingDisabled:!1}};let Al=null;function Rl(){return Al}const Nl=new Me("DocumentToken");let Dl=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({factory:Pl,token:e,providedIn:"platform"}),e})();function Pl(){return Ke(Ll)}const Ol=new Me("Location Initialized");let Ll=(()=>{class e extends Dl{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=Rl().getLocation(),this._history=Rl().getHistory()}getBaseHrefFromDOM(){return Rl().getBaseHref(this._doc)}onPopState(e){Rl().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){Rl().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){Ul()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){Ul()?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.\u0275fac=function(t){return new(t||e)(Ke(Nl))},e.\u0275prov=he({factory:Ml,token:e,providedIn:"platform"}),e})();function Ul(){return!!window.history.pushState}function Ml(){return new Ll(Ke(Nl))}function jl(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 Fl(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 Hl(e){return e&&"?"!==e[0]?"?"+e:e}let ql=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({factory:Vl,token:e,providedIn:"root"}),e})();function Vl(e){const t=Ke(Nl).location;return new Bl(Ke(Dl),t&&t.origin||"")}const zl=new Me("appBaseHref");let Bl=(()=>{class e extends ql{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 jl(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+Hl(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const i=this.prepareExternalUrl(n+Hl(r));this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){const i=this.prepareExternalUrl(n+Hl(r));this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(Ke(Dl),Ke(zl,8))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),Gl=(()=>{class e extends ql{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=jl(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let i=this.prepareExternalUrl(n+Hl(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){let i=this.prepareExternalUrl(n+Hl(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(Ke(Dl),Ke(zl,8))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),$l=(()=>{class e{constructor(e,t){this._subject=new ma,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=Fl(Kl(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+Hl(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Kl(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+Hl(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Hl(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)}))}_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.\u0275fac=function(t){return new(t||e)(Ke(ql),Ke(Dl))},e.normalizeQueryParams=Hl,e.joinWithSlash=jl,e.stripTrailingSlash=Fl,e.\u0275prov=he({factory:Wl,token:e,providedIn:"root"}),e})();function Wl(){return new $l(Ke(ql),Ke(Dl))}function Kl(e){return e.replace(/\/index.html$/,"")}var Xl=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}({});class Zl{}let Ql=(()=>{class e extends Zl{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=So(t);if(n)return n;const r=t.split("-")[0];if(n=So(r),n)return n;if("en"===r)return xo;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[To.PluralCase]}(t||this.locale)(e)){case Xl.Zero:return"zero";case Xl.One:return"one";case Xl.Two:return"two";case Xl.Few:return"few";case Xl.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(Ke(qa))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();function Jl(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}let Yl=(()=>{class e{}return e.\u0275mod=ft({type:e}),e.\u0275inj=de({factory:function(t){return new(t||e)},providers:[{provide:Zl,useClass:Ql}]}),e})(),ec=(()=>{class e{}return e.\u0275prov=he({token:e,providedIn:"root",factory:()=>new tc(Ke(Nl),window,Ke(ur))}),e})();class tc{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=nc(this.window.history)||nc(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 nc(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class rc extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new rc,Al||(Al=e)}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}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=sc||(sc=document.querySelector("base"),sc)?sc.getAttribute("href"):null;return null==t?null:(n=t,ic||(ic=document.createElement("a")),ic.setAttribute("href",n),"/"===ic.pathname.charAt(0)?ic.pathname:"/"+ic.pathname);var n}resetBaseElement(){sc=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 Jl(document.cookie,e)}}let ic,sc=null;const oc=new Me("TRANSITION_ID"),ac=[{provide:Da,useFactory:function(e,t,n){return()=>{n.get(Pa).donePromise.then(()=>{const n=Rl();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[oc,Nl,bs],multi:!0}];class lc{static init(){var e;e=new lc,hl=e}addToWindow(e){Ae.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ae.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ae.getAllAngularRootElements=()=>e.getAllRootElements(),Ae.frameworkStabilizers||(Ae.frameworkStabilizers=[]),Ae.frameworkStabilizers.push(e=>{const t=Ae.getAllAngularTestabilities();let n=t.length,r=!1;const i=function(t){r=r||t,n--,0==n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?Rl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const cc=new Me("EventManagerPlugins");let uc=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),pc=(()=>{class e extends dc{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=>Rl().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(Ke(Nl))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const fc={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/"},gc=/%COMP%/g;function mc(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let yc=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new wc(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case ot.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new _c(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case ot.ShadowDom:return new bc(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=mc(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(Ke(uc),Ke(pc),Ke(Oa))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();class wc{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(fc[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=fc[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=fc[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&Lo.DashCase?e.style.setProperty(t,n,r&Lo.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Lo.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,vc(n)):this.eventManager.addEventListener(e,t,vc(n))}}class _c extends wc{constructor(e,t,n,r){super(e),this.component=n;const i=mc(r+"-"+n.id,n.styles,[]);t.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(gc,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(gc,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 bc extends wc{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=mc(r.id,r.styles,[]);for(let s=0;s{class e extends hc{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(Ke(Nl))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const Cc=["alt","control","meta","shift"],Sc={"\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"},Tc={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"},Ic={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Ec=(()=>{class e extends hc{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const i=e.parseEventName(n),s=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Rl().onAndCancel(t,i.domEventName,s))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=e._normalizeKey(n.pop());let s="";if(Cc.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),s+=e+".")}),s+=i,0!=n.length||0===i.length)return null;const o={};return o.domEventName=r,o.fullKey=s,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Tc.hasOwnProperty(t)&&(t=Tc[t]))}return Sc[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Cc.forEach(r=>{r!=n&&(0,Ic[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(t,n,r){return i=>{e.getEventFullKey(i)===t&&r.runGuarded(()=>n(i))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(Ke(Nl))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const kc=fl(Tl,"browser",[{provide:ja,useValue:"browser"},{provide:Ma,useValue:function(){rc.makeCurrent(),lc.init()},multi:!0},{provide:Nl,useFactory:function(){return function(e){qt=e}(document),document},deps:[]}]),Ac=[[],{provide:ls,useValue:"root"},{provide:ur,useFactory:function(){return new ur},deps:[]},{provide:cc,useClass:xc,multi:!0,deps:[Nl,Ya,ja]},{provide:cc,useClass:Ec,multi:!0,deps:[Nl]},[],{provide:yc,useClass:yc,deps:[uc,pc,Oa]},{provide:Oo,useExisting:yc},{provide:dc,useExisting:pc},{provide:pc,useClass:pc,deps:[Nl]},{provide:al,useClass:al,deps:[Ya]},{provide:uc,useClass:uc,deps:[cc,Ya]},[]];let Rc=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:Oa,useValue:t.appId},{provide:oc,useExisting:Oa},ac]}}}return e.\u0275mod=ft({type:e}),e.\u0275inj=de({factory:function(t){return new(t||e)(Ke(e,12))},providers:Ac,imports:[Yl,El]}),e})();function Nc(){return new Dc(Ke(Nl))}let Dc=(()=>{class e{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return e.\u0275fac=function(t){return new(t||e)(Ke(Nl))},e.\u0275prov=he({factory:Nc,token:e,providedIn:"root"}),e})();function Pc(...e){let t=e[e.length-1];return I(t)?(e.pop(),U(e,t)):G(e)}"undefined"!=typeof window&&window;class Oc extends S{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 b;return this._value}next(e){super.next(this._value=e)}}class Lc extends g{notifyNext(e,t,n,r,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class Uc extends g{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()}}function Mc(e,t,n,r,i=new Uc(e,n,r)){if(!i.closed)return t instanceof w?t.subscribe(i):L(t)(i)}const jc={};class Fc{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new Hc(e,this.resultSelector))}}class Hc extends Lc{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(jc),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{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})(),Vc=new w(e=>e.complete());function zc(e){return e?function(e){return new w(t=>e.schedule(()=>t.complete()))}(e):Vc}function Bc(e){return new w(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?M(n):zc()).subscribe(t)})}function Gc(){return B(1)}function $c(e,t){return function(n){return n.lift(new Wc(e,t))}}class Wc{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Kc(e,this.predicate,this.thisArg))}}class Kc extends g{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)}}const Xc=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();function Zc(e){return function(t){return 0===e?zc():t.lift(new Qc(e))}}class Qc{constructor(e){if(this.total=e,this.total<0)throw new Xc}call(e,t){return t.subscribe(new Jc(e,this.total))}}class Jc extends g{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.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;it.lift(new eu(e))}class eu{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new tu(e,this.errorFactory))}}class tu extends g{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 nu(){return new qc}function ru(e=null){return t=>t.lift(new iu(e))}class iu{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new su(e,this.defaultValue))}}class su extends g{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()}}function ou(e,t){return"function"==typeof t?n=>n.pipe(ou((n,r)=>M(e(n,r)).pipe(E((e,i)=>t(n,e,r,i))))):t=>t.lift(new au(e))}class au{constructor(e){this.project=e}call(e,t){return t.subscribe(new lu(e,this.project))}}class lu extends F{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 j(this),r=this.destination;r.add(n),this.innerSubscription=H(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)}}function cu(e){return t=>0===e?zc():t.lift(new uu(e))}class uu{constructor(e){if(this.total=e,this.total<0)throw new Xc}call(e,t){return t.subscribe(new hu(e,this.total))}}class hu extends g{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function du(...e){return Gc()(Pc(...e))}class pu{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new fu(e,this.accumulator,this.seed,this.hasSeed))}}class fu extends g{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)}}function gu(e){return function(t){const n=new mu(e),r=t.lift(n);return n.caught=r}}class mu{constructor(e){this.selector=e}call(e,t){return t.subscribe(new vu(e,this.selector,this.caught))}}class vu extends F{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 r=new j(this);this.add(r);const i=H(n,r);i!==r&&this.add(i)}}}function yu(e,t){return q(e,t,1)}function wu(e,t){const n=arguments.length>=2;return r=>r.pipe(e?$c((t,n)=>e(t,n,r)):y,cu(1),n?ru(t):Yc(()=>new qc))}function _u(){}function bu(e,t,n){return function(r){return r.lift(new xu(e,t,n))}}class xu{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new Cu(e,this.nextOrObserver,this.error,this.complete))}}class Cu extends g{constructor(e,t,n,r){super(e),this._tapNext=_u,this._tapError=_u,this._tapComplete=_u,this._tapError=n||_u,this._tapComplete=r||_u,i(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||_u,this._tapError=t.error||_u,this._tapComplete=t.complete||_u)}_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()}}class Su{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Tu(e,this.callback))}}class Tu extends g{constructor(e,t){super(e),this.add(new d(t))}}class Iu{constructor(e,t){this.id=e,this.url=t}}class Eu extends Iu{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 ku extends Iu{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Au extends Iu{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ru extends Iu{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Nu extends Iu{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 Du extends Iu{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 Pu extends Iu{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 Ou extends Iu{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 Lu extends Iu{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 Uu{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Mu{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ju{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fu{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hu{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qu{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vu{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 zu="primary";class Bu{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 Gu(e){return new Bu(e)}function $u(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function Wu(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.lengthr[t]===e)}return e===t}function Zu(e){return Array.prototype.concat.apply([],e)}function Qu(e){return e.length>0?e[e.length-1]:null}function Ju(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Yu(e){return(t=e)&&"function"==typeof t.subscribe?e:fo(e)?M(Promise.resolve(e)):Pc(e);var t}function eh(e,t,n){return n?function(e,t){return Ku(e,t)}(e.queryParams,t.queryParams)&&th(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Xu(e[n],t[n]))}(e.queryParams,t.queryParams)&&nh(e.root,t.root)}function th(e,t){if(!ah(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(!th(e.children[n],t.children[n]))return!1}return!0}function nh(e,t){return rh(e,t,t.segments)}function rh(e,t,n){if(e.segments.length>n.length)return!!ah(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!ah(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!nh(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!!ah(e.segments,r)&&!!e.children.primary&&rh(e.children.primary,t,i)}}class ih{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Gu(this.queryParams)),this._queryParamMap}toString(){return hh.serialize(this)}}class sh{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Ju(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return dh(this)}}class oh{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Gu(this.parameters)),this._parameterMap}toString(){return wh(this)}}function ah(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function lh(e,t){let n=[];return Ju(e.children,(e,r)=>{r===zu&&(n=n.concat(t(e,r)))}),Ju(e.children,(e,r)=>{r!==zu&&(n=n.concat(t(e,r)))}),n}class ch{}class uh{parse(e){const t=new Sh(e);return new ih(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){return`${"/"+ph(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${gh(t)}=${gh(e)}`).join("&"):`${gh(t)}=${gh(n)}`});return t.length?"?"+t.join("&"):""}(e.queryParams)}${"string"==typeof e.fragment?"#"+encodeURI(e.fragment):""}`}}const hh=new uh;function dh(e){return e.segments.map(e=>wh(e)).join("/")}function ph(e,t){if(!e.hasChildren())return dh(e);if(t){const t=e.children.primary?ph(e.children.primary,!1):"",n=[];return Ju(e.children,(e,t)=>{t!==zu&&n.push(`${t}:${ph(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=lh(e,(t,n)=>n===zu?[ph(e.children.primary,!1)]:[`${n}:${ph(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${dh(e)}/${t[0]}`:`${dh(e)}/(${t.join("//")})`}}function fh(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function gh(e){return fh(e).replace(/%3B/gi,";")}function mh(e){return fh(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function vh(e){return decodeURIComponent(e)}function yh(e){return vh(e.replace(/\+/g,"%20"))}function wh(e){return`${mh(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${mh(e)}=${mh(t[e])}`).join("")}`;var t}const _h=/^[^\/()?;=#]+/;function bh(e){const t=e.match(_h);return t?t[0]:""}const xh=/^[^=?&#]+/,Ch=/^[^?&#]+/;class Sh{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new sh([],{}):new sh([],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 sh(e,t)),n}parseSegment(){const e=bh(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new oh(vh(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=bh(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=bh(this.remaining);e&&(n=e,this.capture(n))}e[vh(t)]=vh(n)}parseQueryParam(e){const t=function(e){const t=e.match(xh);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(Ch);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const r=yh(t),i=yh(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=bh(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=zu);const s=this.parseChildren();t[i]=1===Object.keys(s).length?s.primary:new sh([],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 Th{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Ih(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Ih(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Eh(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Eh(e,this._root).map(e=>e.value)}}function Ih(e,t){if(e===t.value)return t;for(const n of t.children){const t=Ih(e,n);if(t)return t}return null}function Eh(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Eh(e,n);if(r.length)return r.unshift(t),r}return[]}class kh{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Ah(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Rh extends Th{constructor(e,t){super(e),this.snapshot=t,Uh(this,e)}toString(){return this.snapshot.toString()}}function Nh(e,t){const n=function(e,t){const n=new Oh([],{},{},"",{},zu,t,null,e.root,-1,{});return new Lh("",new kh(n,[]))}(e,t),r=new Oc([new oh("",{})]),i=new Oc({}),s=new Oc({}),o=new Oc({}),a=new Oc(""),l=new Dh(r,i,o,a,s,zu,t,n.root);return l.snapshot=n.root,new Rh(new kh(l,[]),n)}class Dh{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(E(e=>Gu(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(E(e=>Gu(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ph(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 Oh{constructor(e,t,n,r,i,s,o,a,l,c,u){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=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Gu(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Gu(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Lh extends Th{constructor(e,t){super(t),this.url=e,Uh(this,t)}toString(){return Mh(this._root)}}function Uh(e,t){t.value._routerState=e,t.children.forEach(t=>Uh(e,t))}function Mh(e){const t=e.children.length>0?` { ${e.children.map(Mh).join(", ")} } `:"";return`${e.value}${t}`}function jh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ku(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Ku(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;nKu(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||Fh(e.parent,t.parent))}function Hh(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(t.value,r.value.snapshot))return Hh(e,t,r);return Hh(e,t)})}(e,t,n);return new kh(r,i)}{const n=e.retrieve(t.value);if(n){const e=n.route;return qh(t,e),e}{const n=new Dh(new Oc((r=t.value).url),new Oc(r.params),new Oc(r.queryParams),new Oc(r.fragment),new Oc(r.data),r.outlet,r.component,r),i=t.children.map(t=>Hh(e,t));return new kh(n,i)}}var r}function qh(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{s[t]=Array.isArray(e)?e.map(e=>""+e):""+e}),new ih(n.root===e?t:Gh(n.root,e,t),s,i)}function Gh(e,t,n){const r={};return Ju(e.children,(e,i)=>{r[i]=e===t?n:Gh(e,t,n)}),new sh(e.segments,r)}class $h{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Vh(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(zh);if(r&&r!==Qu(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Wh{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function Kh(e,t,n){if(e||(e=new sh([],{})),0===e.segments.length&&e.hasChildren())return Xh(e,t,n);const r=function(e,t,n){let r=0,i=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return s;const t=e.segments[i],o=n[r];if(zh(o))break;const a=""+o,l=r0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!Yh(a,l,t))return s;r+=2}else{if(!Yh(a,{},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{null!==n&&(i[r]=Kh(e.children[r],t,n))}),Ju(e.children,(e,t)=>{void 0===r[t]&&(i[t]=e)}),new sh(e.segments,i)}}function Zh(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i{null!==e&&(t[n]=Zh(new sh([],{}),0,e))}),t}function Jh(e){const t={};return Ju(e,(e,n)=>t[n]=""+e),t}function Yh(e,t,n){return e==n.path&&Ku(t,n.parameters)}class ed{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),jh(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=Ah(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),Ju(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=Ah(e),i=e.value.component?n.children:t;Ju(r,(e,t)=>this.deactivateRouteAndItsChildren(e,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=Ah(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new qu(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Fu(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(jh(r),r===i)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),td(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),i=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=i,t.outlet&&t.outlet.activateWith(r,i),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function td(e){jh(e.value),e.children.forEach(td)}class nd{constructor(e,t){this.routes=e,this.module=t}}function rd(e){return"function"==typeof e}function id(e){return e instanceof ih}const sd=Symbol("INITIAL_VALUE");function od(){return ou(e=>function(...e){let t=void 0,n=void 0;return I(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&c(e[0])&&(e=e[0]),G(e,n).lift(new Fc(t))}(...e.map(e=>e.pipe(cu(1),function(...e){const t=e[e.length-1];return I(t)?(e.pop(),n=>du(e,n,t)):t=>du(e,t)}(sd)))).pipe(function(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new pu(e,t,n))}}((e,t)=>{let n=!1;return t.reduce((e,r,i)=>{if(e!==sd)return e;if(r===sd&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||id(r))return r}return e},e)},sd),$c(e=>e!==sd),E(e=>id(e)?e:!0===e),cu(1)))}let ad=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ut({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&po(0,"router-outlet")},directives:function(){return[np]},encapsulation:2}),e})();function ld(e,t=""){for(let n=0;nt.error(new pd(e)))}function md(e){return new w(t=>t.error(new fd(e)))}function vd(e){return new w(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class yd{constructor(e,t,n,r,i){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(Je)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,zu).pipe(E(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(gu(e=>{if(e instanceof fd)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof pd)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,zu).pipe(E(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(gu(e=>{if(e instanceof pd)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 sh([],{[zu]:e}):e;return new ih(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(E(e=>new sh([],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 Pc({});const n=[],r=[],i={};return Ju(e,(e,s)=>{const o=t(s,e).pipe(E(e=>i[s]=e));s===zu?n.push(o):r.push(o)}),Pc.apply(null,n.concat(r)).pipe(Gc(),function(e,t){const n=arguments.length>=2;return r=>r.pipe(e?$c((t,n)=>e(t,n,r)):y,Zc(1),n?ru(t):Yc(()=>new qc))}(),E(()=>i))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,i,s){const o=function(e){return e.reduce((e,t)=>{const n=dd(t);return e.has(n)?e.get(n).push(t):e.set(n,[t]),e},new Map)}(n);o.has(i)||o.set(i,[]);const a=n=>M(n).pipe(yu(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,i,s).pipe(gu(e=>{if(e instanceof pd)return Pc(null);throw e}))),wu(e=>null!==e),gu(e=>{if(e instanceof qc||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,i))return Pc(new sh([],{}));throw new pd(t)}throw e}));return M(Array.from(o.entries()).map(([e,t])=>{const n=a(t);return e===i?n:n.pipe(E(()=>null),gu(()=>Pc(null)))})).pipe(e=>e.lift(new Fc(void 0)),wu(),E(e=>e.find(e=>null!==e)))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,i,s,o){return dd(r)!==s&&""!==r.path?gd(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s):gd(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("/")?md(i):this.lineralizeSegments(n,i).pipe(q(n=>{const i=new sh(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:c}=wd(t,r,i);if(!o)return gd(t);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?md(u):this.lineralizeSegments(r,u).pipe(q(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(E(e=>(n._loadedConfig=e,new sh(r,{})))):Pc(new sh(r,{}));const{matched:i,consumedSegments:s,lastChild:o}=wd(t,n,r);if(!i)return gd(t);const a=r.slice(o);return this.getChildConfig(e,n,r).pipe(q(e=>{const n=e.module,r=e.routes,{segmentGroup:i,slicedSegments:o}=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some(n=>bd(e,t,n)&&dd(n)!==zu)}(e,n,r)?{segmentGroup:_d(new sh(t,function(e,t){const n={};n.primary=t;for(const r of e)""===r.path&&dd(r)!==zu&&(n[dd(r)]=new sh([],{}));return n}(r,new sh(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(n=>bd(e,t,n))}(e,n,r)?{segmentGroup:_d(new sh(e.segments,function(e,t,n,r){const i={};for(const s of n)bd(e,t,s)&&!r[dd(s)]&&(i[dd(s)]=new sh([],{}));return Object.assign(Object.assign({},r),i)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,s,a,r);return 0===o.length&&i.hasChildren()?this.expandChildren(n,r,i).pipe(E(e=>new sh(s,e))):0===r.length&&0===o.length?Pc(new sh(s,{})):this.expandSegment(n,i,r,o,zu,!0).pipe(E(e=>new sh(s.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Pc(new nd(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Pc(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(q(n=>n?this.configLoader.load(e.injector,t).pipe(E(e=>(t._loadedConfig=e,e))):function(e){return new w(t=>t.error($u(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Pc(new nd([],e))}runCanLoadGuards(e,t,n){const r=t.canLoad;return r&&0!==r.length?Pc(r.map(r=>{const i=e.get(r);let s;if(function(e){return e&&rd(e.canLoad)}(i))s=i.canLoad(t,n);else{if(!rd(i))throw new Error("Invalid CanLoad guard");s=i(t,n)}return Yu(s)})).pipe(od(),bu(e=>{if(!id(e))return;const t=$u(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),E(e=>!0===e)):Pc(!0)}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Pc(n);if(r.numberOfChildren>1||!r.children.primary)return vd(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 ih(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return Ju(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 Ju(t.children,(t,i)=>{s[i]=this.createSegmentGroup(e,t,n,r)}),new sh(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 wd(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||Wu)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function _d(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new sh(e.segments.concat(t.segments),t.children)}return e}function bd(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}class xd{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Cd{constructor(e,t){this.component=e,this.route=t}}function Sd(e,t,n){const r=e._root;return Id(r,t?t._root:null,n,[r.value])}function Td(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 Id(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=Ah(t);return 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!ah(e.url,t.url);case"pathParamsOrQueryParamsChange":return!ah(e.url,t.url)||!Ku(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fh(e,t)||!Ku(e.queryParams,t.queryParams);case"paramsChange":default:return!Fh(e,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new xd(r)):(s.data=o.data,s._resolvedData=o._resolvedData),Id(e,t,s.component?a?a.children:null:n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Cd(a.outlet.component,o))}else o&&Ed(t,a,i),i.canActivateChecks.push(new xd(r)),Id(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]}),Ju(s,(e,t)=>Ed(e,n.getContext(t),i)),i}function Ed(e,t,n){const r=Ah(e),i=e.value;Ju(r,(e,r)=>{Ed(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Cd(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function kd(e,t){return null!==e&&t&&t(new Hu(e)),Pc(!0)}function Ad(e,t){return null!==e&&t&&t(new ju(e)),Pc(!0)}function Rd(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?Pc(r.map(r=>Bc(()=>{const i=Td(r,t,n);let s;if(function(e){return e&&rd(e.canActivate)}(i))s=Yu(i.canActivate(t,e));else{if(!rd(i))throw new Error("Invalid CanActivate guard");s=Yu(i(t,e))}return s.pipe(wu())}))).pipe(od()):Pc(!0)}function Nd(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=>Bc(()=>Pc(t.guards.map(i=>{const s=Td(i,t.node,n);let o;if(function(e){return e&&rd(e.canActivateChild)}(s))o=Yu(s.canActivateChild(r,e));else{if(!rd(s))throw new Error("Invalid CanActivateChild guard");o=Yu(s(r,e))}return o.pipe(wu())})).pipe(od())));return Pc(i).pipe(od())}class Dd{}class Pd{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=Ud(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,zu),n=new Oh([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},zu,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new kh(n,t),i=new Lh(this.url,r);return this.inheritParamsAndData(i._root),Pc(i)}catch(e){return new w(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=Ph(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=lh(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)=>e.value.outlet===zu?-1:t.value.outlet===zu?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 Dd))throw i}if(this.noLeftoversInUrl(t,n,r))return[];throw new Dd}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new Dd;if((e.outlet||zu)!==r)throw new Dd;let i,s=[],o=[];if("**"===e.path){const s=n.length>0?Qu(n).parameters:{};i=new Oh(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Fd(e),r,e.component,e,Od(t),Ld(t)+n.length,Hd(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Dd;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||Wu)(n,e,t);if(!r)throw new Dd;const i={};Ju(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);s=a.consumedSegments,o=n.slice(a.lastChild),i=new Oh(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Fd(e),r,e.component,e,Od(t),Ld(t)+s.length,Hd(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=Ud(t,s,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const e=this.processChildren(a,l);return[new kh(i,e)]}if(0===a.length&&0===c.length)return[new kh(i,[])];const u=this.processSegment(a,l,c,zu);return[new kh(i,u)]}}function Od(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Ld(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 Ud(e,t,n,r,i){if(n.length>0&&function(e,t,n){return n.some(n=>Md(e,t,n)&&jd(n)!==zu)}(e,n,r)){const i=new sh(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&&jd(s)!==zu){const n=new sh([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,i[jd(s)]=n}return i}(e,t,r,new sh(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=>Md(e,t,n))}(e,n,r)){const s=new sh(e.segments,function(e,t,n,r,i,s){const o={};for(const a of r)if(Md(e,n,a)&&!i[jd(a)]){const n=new sh([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===s?e.segments.length:t.length,o[jd(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 sh(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Md(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function jd(e){return e.outlet||zu}function Fd(e){return e.data||{}}function Hd(e){return e.resolve||{}}function qd(e){return function(t){return t.pipe(ou(t=>{const n=e(t);return n?M(n).pipe(E(()=>t)):M([t])}))}}class Vd extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const zd=new Me("ROUTES");class Bd{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(E(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new nd(Zu(r.injector.get(zd)).map(hd),r)}))}loadModuleFactory(e){return"string"==typeof e?M(this.loader.load(e)):Yu(e()).pipe(q(e=>e instanceof Ye?Pc(e):M(this.compiler.compileModuleAsync(e))))}}class Gd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new $d,this.attachRef=null}}class $d{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 Gd,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class Wd{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function Kd(e){throw e}function Xd(e,t,n){return t.parse("/")}function Zd(e,t){return Pc(null)}let Qd=(()=>{class e{constructor(e,t,n,r,i,s,o,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=Kd,this.malformedUriErrorHandler=Xd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Zd,afterPreactivation:Zd},this.urlHandlingStrategy=new Wd,this.routeReuseStrategy=new Vd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=i.get(Je),this.console=i.get(Ha);const l=i.get(Ya);this.isNgZoneEnabled=l instanceof Ya,this.resetConfig(a),this.currentUrlTree=new ih(new sh([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Bd(s,o,e=>this.triggerEvent(new Uu(e)),e=>this.triggerEvent(new Mu(e))),this.routerState=Nh(this.currentUrlTree,this.rootComponentType),this.transitions=new Oc({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($c(e=>0!==e.id),E(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),ou(e=>{let n=!1,r=!1;return Pc(e).pipe(bu(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}}),ou(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Pc(e).pipe(ou(e=>{const n=this.transitions.getValue();return t.next(new Eu(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?Vc:[e]}),ou(e=>Promise.resolve(e)),(r=this.ngModule.injector,i=this.configLoader,s=this.urlSerializer,o=this.config,function(e){return e.pipe(ou(e=>function(e,t,n,r,i){return new yd(e,t,n,r,i).apply()}(r,i,s,e.extractedUrl,o).pipe(E(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t})))))}),bu(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,i){return function(s){return s.pipe(q(s=>function(e,t,n,r,i="emptyOnly",s="legacy"){return new Pd(e,t,n,r,i,s).recognize()}(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),r,i).pipe(E(e=>Object.assign(Object.assign({},s),{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),bu(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),bu(e=>{const n=new Nu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var r,i,s,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:s,extras:o}=e,a=new Eu(n,this.serializeUrl(r),i,s);t.next(a);const l=Nh(r,this.rootComponentType).snapshot;return Pc(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Vc}),qd(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})}),bu(e=>{const t=new Du(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),E(e=>Object.assign(Object.assign({},e),{guards:Sd(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(q(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?Pc(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return M(e).pipe(q(e=>function(e,t,n,r,i){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?Pc(s.map(s=>{const o=Td(s,t,i);let a;if(function(e){return e&&rd(e.canDeactivate)}(o))a=Yu(o.canDeactivate(e,t,n,r));else{if(!rd(o))throw new Error("Invalid CanDeactivate guard");a=Yu(o(e,t,n,r))}return a.pipe(wu())})).pipe(od()):Pc(!0)}(e.component,e.route,n,t,r)),wu(e=>!0!==e,!0))}(o,r,i,e).pipe(q(n=>n&&"boolean"==typeof n?function(e,t,n,r){return M(t).pipe(yu(t=>M([Ad(t.route.parent,r),kd(t.route,r),Nd(e,t.path,n),Rd(e,t.route,n)]).pipe(Gc(),wu(e=>!0!==e,!0))),wu(e=>!0!==e,!0))}(r,s,e,t):Pc(n)),E(e=>Object.assign(Object.assign({},n),{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),bu(e=>{if(id(e.guardsResult)){const t=$u(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),bu(e=>{const t=new Pu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),$c(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Au(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),qd(e=>{if(e.guards.canActivateChecks.length)return Pc(e).pipe(bu(e=>{const t=new Ou(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),ou(e=>{let n=!1;return Pc(e).pipe((r=this.paramsInheritanceStrategy,i=this.ngModule.injector,function(e){return e.pipe(q(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return Pc(e);let s=0;return M(n).pipe(yu(e=>function(e,t,n,r){return function(e,t,n,r){const i=Object.keys(e);if(0===i.length)return Pc({});const s={};return M(i).pipe(q(i=>function(e,t,n,r){const i=Td(e,t,r);return Yu(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe(bu(e=>{s[i]=e}))),Zc(1),q(()=>Object.keys(s).length===i.length?Pc(s):Vc))}(e._resolve,e,t,r).pipe(E(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Ph(e,n).resolve),null)))}(e.route,t,r,i)),bu(()=>s++),Zc(1),q(t=>s===n.length?Pc(e):Vc))}))}),bu({next:()=>n=!0,complete:()=>{if(!n){const n=new Au(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}),bu(e=>{const t=new Lu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),qd(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})}),E(e=>{const t=function(e,t,n){const r=Hh(e,t._root,n?n._root:void 0);return new Rh(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),bu(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)}),(s=this.rootContexts,o=this.routeReuseStrategy,a=e=>this.triggerEvent(e),E(e=>(new ed(o,e.targetRouterState,e.currentRouterState,a).activate(s),e))),bu({next(){n=!0},complete(){n=!0}}),(i=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new Au(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 Su(i))),gu(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=id(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const i=new Au(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 Ru(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}var i;return Vc}));var i,s,o,a}))}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){ld(e),this.config=e.map(hd),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:i,queryParamsHandling:s,preserveFragment:o}=t,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:i;let c=null;switch(s){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,i){if(0===n.length)return Bh(t.root,t.root,t,r,i);const s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new $h(!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 Ju(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 $h(n,t,r)}(n);if(s.toRoot())return Bh(t.root,new sh([],{}),t,r,i);const o=function(e,t,n){if(e.isAbsolute)return new Wh(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new Wh(e,e===t.root,0)}const r=Vh(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 Wh(r,!1,i-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(s,t,e),a=o.processChildren?Xh(o.segmentGroup,o.index,s.commands):Kh(o.segmentGroup,o.index,s.commands);return Bh(o.segmentGroup,a,t,r,i)}(a,this.currentUrlTree,e,c,l)}navigateByUrl(e,t={skipLocationChange:!1}){const n=id(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{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 ku(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,c,u;i?(l=i.resolve,c=i.reject,u=i.promise):u=new Promise((e,t)=>{l=e,c=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:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.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})}}return e.\u0275fac=function(t){return new(t||e)(Ke(Yi),Ke(ch),Ke($d),Ke($l),Ke(bs),Ke(_l),Ke(Za),Ke(void 0))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),Jd=(()=>{class e{constructor(e,t,n,r,i){this.router=e,this.route=t,this.commands=[],this.onChanges=new S,null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:ep(this.skipLocationChange),replaceUrl:ep(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ep(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(oo(Qd),oo(Dh),ao("tabindex"),oo(Uo),oo(Do))},e.\u0275dir=mt({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&go("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[Ut]}),e})(),Yd=(()=>{class e{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new S,this.subscription=e.events.subscribe(e=>{e instanceof ku&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[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:ep(this.skipLocationChange),replaceUrl:ep(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,queryParamsHandling:this.queryParamsHandling,preserveFragment:ep(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(oo(Qd),oo(Dh),oo(ql))},e.\u0275dir=mt({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&go("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(_o("href",t.href,yr),io("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[Ut]}),e})();function ep(e){return""===e||!!e}let tp=(()=>{class e{constructor(e,t,n,r,i,s){this.router=e,this.element=t,this.renderer=n,this.cdr=r,this.link=i,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=e.events.subscribe(e=>{e instanceof ku&&this.update()})}ngAfterContentInit(){M([this.links.changes,this.linksWithHrefs.changes,Pc(null)]).pipe(B()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const t=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(e=>!!e).map(e=>e.onChanges);this.linkInputChangesSubscription=M(t).pipe(B()).subscribe(e=>{this.isActive!==this.isLinkActive(this.router)(e)&&this.update()})}set routerLinkActive(e){const t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(e=>!!e)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEach(t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)}))})}isLinkActive(e){return t=>e.isActive(t.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}return e.\u0275fac=function(t){return new(t||e)(oo(Qd),oo(Do),oo(Uo),oo(Qi),oo(Jd,8),oo(Yd,8))},e.\u0275dir=mt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,n){if(1&e&&(Aa(n,Jd,!0),Aa(n,Yd,!0)),2&e){let e;ka(e=Ra())&&(t.links=e),ka(e=Ra())&&(t.linksWithHrefs=e)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[Ut]}),e})(),np=(()=>{class e{constructor(e,t,n,r,i){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new ma,this.deactivateEvents=new ma,this.name=r||zu,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 rp(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(oo($d),oo(ia),oo(No),ao("name"),oo(Qi))},e.\u0275dir=mt({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class rp{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Dh?this.route:e===$d?this.childContexts:this.parent.get(e,t)}}class ip{}class sp{preload(e,t){return Pc(null)}}let op=(()=>{class e{constructor(e,t,n,r,i){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=new Bd(t,n,t=>e.triggerEvent(new Uu(t)),t=>e.triggerEvent(new Mu(t)))}setUpPreloading(){this.subscription=this.router.events.pipe($c(e=>e instanceof ku),yu(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Je);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 M(n).pipe(B(),E(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(q(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(Ke(Qd),Ke(_l),Ke(Za),Ke(bs),Ke(ip))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),ap=(()=>{class e{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.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Eu?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ku&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Vu&&(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 Vu(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Ke(Qd),Ke(ec),Ke(void 0))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const lp=new Me("ROUTER_CONFIGURATION"),cp=new Me("ROUTER_FORROOT_GUARD"),up=[$l,{provide:ch,useClass:uh},{provide:Qd,useFactory:function(e,t,n,r,i,s,o,a={},l,c){const u=new Qd(null,e,t,n,r,i,s,Zu(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(a,u),a.enableTracing){const e=Rl();u.events.subscribe(t=>{e.logGroup("Router Event: "+t.constructor.name),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return u},deps:[ch,$d,$l,bs,_l,Za,zd,lp,[class{},new se],[class{},new se]]},$d,{provide:Dh,useFactory:function(e){return e.routerState.root},deps:[Qd]},{provide:_l,useClass:Cl},op,sp,class{preload(e,t){return t().pipe(gu(()=>Pc(null)))}},{provide:lp,useValue:{enableTracing:!1}}];function hp(){return new pl("Router",Qd)}let dp=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[up,mp(t),{provide:cp,useFactory:gp,deps:[[Qd,new se,new ae]]},{provide:lp,useValue:n||{}},{provide:ql,useFactory:fp,deps:[Dl,[new ie(zl),new se],lp]},{provide:ap,useFactory:pp,deps:[Qd,ec,lp]},{provide:ip,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:sp},{provide:pl,multi:!0,useFactory:hp},[vp,{provide:Da,multi:!0,useFactory:yp,deps:[vp]},{provide:_p,useFactory:wp,deps:[vp]},{provide:Fa,multi:!0,useExisting:_p}]]}}static forChild(t){return{ngModule:e,providers:[mp(t)]}}}return e.\u0275mod=ft({type:e}),e.\u0275inj=de({factory:function(t){return new(t||e)(Ke(cp,8),Ke(Qd,8))}}),e})();function pp(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new ap(e,t,n)}function fp(e,t,n={}){return n.useHash?new Gl(e,t):new Bl(e,t)}function gp(e){return"guarded"}function mp(e){return[{provide:Gs,multi:!0,useValue:e},{provide:zd,multi:!0,useValue:e}]}let vp=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(Ol,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(Qd),r=this.injector.get(lp);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Pc(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(lp),n=this.injector.get(op),r=this.injector.get(ap),i=this.injector.get(Qd),s=this.injector.get(yl);e===s.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return e.\u0275fac=function(t){return new(t||e)(Ke(bs))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();function yp(e){return e.appInitializer.bind(e)}function wp(e){return e.bootstrapListener.bind(e)}const _p=new Me("Router Initializer");var bp="function",xp="object",Cp="undefined";function Sp(){return typeof globalThis!==Cp&&globalThis?globalThis:typeof self!==Cp&&self?self:typeof window!==Cp&&window?window:typeof global!==Cp&&global?global:null}function Tp(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if(n!==xp&&n!==bp)throw new TypeError("Object prototype may only be an Object:"+e);function r(){}return r.prototype=e,new r}var Ip,Ep,kp,Ap=function(e,t){return(Ap=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},Rp=Sp()||{};Ep=function(e){for(var t,n=1,r=arguments.length;n=0?i:r-Math.abs(i),0);s=3)r=arguments[2];else{for(;s>>0,r=0,i="";i.length>>=6,5===r&&(n=(e.random32()<<2&4294967295|3&n)>>>0,r=0);return i},e.isIE=function(){if(null===Kp){var e=((qp()||{}).userAgent||"").toLowerCase();Kp=-1!==e.indexOf("msie")||-1!==e.indexOf("trident/")}return Kp},e.randomValue=function(t){return t>0?Math.floor(e.random32()/Wp*(t+1))>>>0:0},e.random32=function(t){var n,r=Up("crypto")||Up("msCrypto");return r&&r.getRandomValues?n=r.getRandomValues(new Uint32Array(1))[0]&Wp:e.isIE()?(Xp||Yp(),n=e.mwcRandom32()&Wp):n=Math.floor($p*Math.random()|0),t||(n>>>=0),n},e.mwcRandomSeed=function(e){e?Jp(e):Yp()},e.mwcRandom32=function(e){var t=((Qp=36969*(65535&Qp)+(Qp>>16)&Wp)<<16)+(65535&(Zp=18e3*(65535&Zp)+(Zp>>16)&Wp))>>>0&Wp|0;return e||(t>>>=0),t},e.generateW3CId=function(){for(var t,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r="",i=0;i<4;i++)r+=n[15&(t=e.random32())]+n[t>>4&15]+n[t>>8&15]+n[t>>12&15]+n[t>>16&15]+n[t>>20&15]+n[t>>24&15]+n[t>>28&15];var s=n[8+(3&e.random32())|0];return r.substr(0,8)+r.substr(9,4)+"4"+r.substr(13,3)+s+r.substr(16,3)+r.substr(19,12)},e.isTypeof=ef,e.isUndefined=tf,e.isNullOrUndefined=nf,e.hasOwnProperty=rf,e.isFunction=of,e.isObject=sf,e.objCreate=Tp,e}(),hf=/[xy]/g,df=function(){function e(){}return e.Attach=af,e.AttachEvent=af,e.Detach=lf,e.DetachEvent=lf,e}();!function(e){e[e.CRITICAL=1]="CRITICAL",e[e.WARNING=2]="WARNING"}(cf||(cf={}));var pf=40,ff="prototype",gf="function",mf="_dynClass",vf="_unknown_",yf=Object.getPrototypeOf,wf=0;function _f(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)}function bf(e){return typeof e===gf}function xf(e){return e&&(e===Object.prototype||e===Array.prototype)}function Cf(e){return xf(e)||e===Function.prototype}function Sf(e){if(e){if(yf)return yf(e);var t=e.__proto__||e.prototype||e.constructor;if(t)return t}return null}function Tf(e,t,n){return"constructor"!==t&&bf(e[t])&&(n||_f(e,t))}function If(e){throw new TypeError("DynamicProto: "+e)}function Ef(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function kf(e,t,n,r){var i=null;if(e&&_f(n,mf)){var s=e._dynInstFuncs||{};if((i=(s[n._dynClass]||{})[t])||If("Missing ["+t+"] "+gf),!i._dynInstChk&&!1!==s._dynInstChk){for(var o=!_f(e,t),a=Sf(e),l=[];o&&a&&!Cf(a)&&!Ef(l,a);){var c=a[t];if(c){o=c===r;break}l.push(a),a=Sf(a)}try{o&&(e[t]=i),i._dynInstChk=1}catch(u){s._dynInstChk=!1}}}return i}function Af(e,t,n){var r=t[e];return r===n&&(r=Sf(t)[e]),bf(r)||If("["+e+"] is not a "+gf),r}function Rf(e,t){return _f(e,ff)?e.name||t||vf:((e||{}).constructor||{}).name||t||vf}function Nf(e,t,n,r){_f(e,ff)||If("theClass is an invalid class definition.");var i=e.prototype;(function(e,t){for(var n=Sf(t);n&&!Cf(n);){if(n===e)return!0;n=Sf(n)}return!1})(i,t)||If("["+Rf(e)+"] is not in class hierarchy of ["+Rf(t)+"]");var s=null;_f(i,mf)?s=i._dynClass:(s="_dynCls$"+Rf(e,"_")+"$"+wf,wf++,i._dynClass=s);var o=Nf._dfOpts,a=!!o.useBaseInst;a&&r&&void 0!==r.useBaseInst&&(a=!!r.useBaseInst);var l=function(e){var t={};for(var n in e)!t[n]&&Tf(e,n,!1)&&(t[n]=e[n]);return t}(t);n(t,function(e,t,n,r){function i(e,t,n){var i=t[o];if(i._isDynProxy&&r){var s=e._dynInstFuncs||{};!1!==s._dynInstChk&&(i=(s[t._dynClass]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var s={};for(var o in n)s[o]=i(t,n,o);for(var a=Sf(e),l=[];a&&!Cf(a)&&!Ef(l,a);){for(var o in a)!s[o]&&Tf(a,o,!yf)&&(s[o]=i(t,a,o));l.push(a),a=Sf(a)}return s}(i,t,l,a));var c=!!yf&&!!o.setInstFuncs;c&&r&&(c=!!r.setInstFuncs),function(e,t,n,r,i){function s(e,t){var n=function(){return(kf(this,t,e,n)||Af(t,e,n)).apply(this,arguments)};return n._isDynProxy=1,n}if(!xf(e)){var o=n._dynInstFuncs=n._dynInstFuncs||{},a=o[t]=o[t]||{};for(var l in!1!==o._dynInstChk&&(o._dynInstChk=!!i),n)Tf(n,l,!1)&&n[l]!==r[l]&&(a[l]=n[l],delete n[l],(!_f(e,l)||e[l]&&!e[l]._isDynProxy)&&(e[l]=s(e,l)))}}(i,s,t,l,!1!==c)}Nf._dfOpts={setInstFuncs:!0,useBaseInst:!0};var Df=Nf;function Pf(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var Of=function(){function e(e,t,n,r){void 0===n&&(n=!1);var i=this;i.messageId=e,i.message=(n?"AI: ":"AI (Internal): ")+e;var s="";Bp()&&(s=Gp().stringify(r));var o=(t?" message:"+Pf(t):"")+(r?" props:"+Pf(s):"");i.message+=o}return e.dataType="MessageData",e}(),Lf=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,r={};Df(e,this,function(e){var i=uf.isNullOrUndefined,s=uf.isUndefined,o=uf.isFunction;function a(e,n){var r=t[e];return i(r)?n:r}i(t)&&(t={}),e.consoleLoggingLevel=function(){return a("loggingLevelConsole",0)},e.telemetryLoggingLevel=function(){return a("loggingLevelTelemetry",1)},e.maxInternalMessageLimit=function(){return a("maxMessageLimit",25)},e.enableDebugExceptions=function(){return a("enableDebugExceptions",!1)},e.throwInternal=function(t,n,i,o,a){void 0===a&&(a=!1);var l=new Of(n,i,a,o);if(e.enableDebugExceptions())throw l;if(!s(l)&&l&&!s(l.message)){if(a){var c=+l.messageId;!r[c]&&e.consoleLoggingLevel()>=cf.WARNING&&(e.warnToConsole(l.message),r[c]=!0)}else e.consoleLoggingLevel()>=cf.WARNING&&e.warnToConsole(l.message);e.logInternalMessage(t,l)}},e.warnToConsole=function(e){var t=typeof console!==Np?console:Up("console");if(t){var n="log";t.warn&&(n="warn"),o(t[n])&&t[n](e)}},e.resetInternalMessageCount=function(){n=0,r={}},e.logInternalMessage=function(t,i){if(!(n>=e.maxInternalMessageLimit())){var s=!0,o="AITR_"+i.messageId;if(r[o]?s=!1:r[o]=!0,s&&(t<=e.telemetryLoggingLevel()&&(e.queue.push(i),n++),n===e.maxInternalMessageLimit())){var a="Internal events throttle limit per PageView reached for this app.",l=new Of(23,a,!1);e.queue.push(l),e.warnToConsole(a)}}}})}return e.prototype.enableDebugExceptions=function(){return!1},e.prototype.consoleLoggingLevel=function(){return 0},e.prototype.telemetryLoggingLevel=function(){return 1},e.prototype.maxInternalMessageLimit=function(){return 25},e.prototype.throwInternal=function(e,t,n,r,i){void 0===i&&(i=!1)},e.prototype.warnToConsole=function(e){},e.prototype.resetInternalMessageCount=function(){},e.prototype.logInternalMessage=function(e,t){},e}(),Uf=function(){function e(t,n,r){var i,s=this,o=!1;s.start=uf.dateNow(),s.name=t,s.isAsync=r,s.isChildEvt=function(){return!1},uf.isFunction(n)&&(o=uf.objDefineAccessors(s,"payload",function(){return!i&&uf.isFunction(n)&&(i=n(),n=null),i})),s.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?s[t]:(s.ctx||{})[t]:null},s.setCtx=function(t,n){t&&(t===e.ParentContextKey?(s[t]||(s.isChildEvt=function(){return!0}),s[t]=n):t===e.ChildrenContextKey?s[t]=n:(s.ctx=s.ctx||{})[t]=n)},s.complete=function(){var t=0,r=s.getCtx(e.ChildrenContextKey);if(uf.isArray(r))for(var i=0;i0)for(var r=null,i=0;i0?n[0]:null}var Bf=function e(t,n,r,i){var s=this,o=null;null!==i&&(t&&uf.isFunction(t.getPlugin)?o=function(e,t,n){var r=[],i=!n;if(e)for(;e;){var s=e.getPlugin();(i||s===n)&&(i=!0,r.push(s)),e=e.getNext()}return i||r.push(n),zf(r,t)}(t,s,i||t.getPlugin()):i?o=function(e,t,n){var r=e,i=!1;return n&&e&&(r=[],uf.arrForEach(e,function(e){(i||e===n)&&(i=!0,r.push(e))})),n&&!i&&(r||(r=[]),r.push(n)),zf(r,t)}(t,s,i):uf.isUndefined(i)&&(o=zf(t,s))),s.core=function(){return r},s.diagLog=function(){var e=(r||{}).logger;return e||(e=new Lf(n||{})),e},s.getCfg=function(){return n},s.getExtCfg=function(e,t){var r;if(void 0===t&&(t={}),n){var i=n.extensionConfig;i&&e&&(r=i[e])}return r||t},s.getConfig=function(e,t,r){var i;void 0===r&&(r=!1);var o=s.getExtCfg(e,null);return o&&!Vf(o[t])?i=o[t]:n&&!Vf(n[t])&&(i=n[t]),Vf(i)?r:i},s.hasNext=function(){return null!=o},s.getNext=function(){return o},s.setNext=function(e){o=e},s.processNext=function(e){var t=o;t&&(o=t.getNext(),t.processTelemetry(e,s))},s.createNew=function(t,i){return void 0===t&&(t=null),new e(t||o,n,r,i)}},Gf=uf.isFunction,$f=function(){function e(){var e=this,t=!1,n=null,r=null;e.core=null,e.diagLog=function(t){return e._getTelCtx(t).diagLog()},e.isInitialized=function(){return t},e.setInitialized=function(e){t=e},e.setNextPlugin=function(e){r=e},e.processNext=function(e,t){t?t.processNext(e):r&&Gf(r.processTelemetry)&&r.processTelemetry(e,null)},e._getTelCtx=function(t){void 0===t&&(t=null);var i=t;return i||(i=(n||new Bf(null,{},e.core)).createNew(null,r&&r.getPlugin?r.getPlugin:r)),i},e._baseTelInit=function(i,s,o,a){i&&(i.extensionConfig=i.extensionConfig||[]),!a&&s&&(a=s.getProcessTelContext().getNext());var l=r;r&&r.getPlugin&&(l=r.getPlugin()),e.core=s,n=new Bf(a,i,s,l),t=!0}}return e.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},e}(),Wf=uf.isFunction;function Kf(e,t){for(var n=[],r=null,i=e.getNext();i;){var s=i.getPlugin();s&&(r&&Wf(r.setNextPlugin)&&Wf(s.processTelemetry)&&r.setNextPlugin(s),Wf(s.isInitialized)&&s.isInitialized()||n.push(s),r=s,i=i.getNext())}uf.arrForEach(n,function(n){n.initialize(e.getCfg(),e.core(),t,e.getNext())})}function Xf(e){return e.sort(function(e,t){var n=0,r=Wf(t.processTelemetry);return Wf(e.processTelemetry)?n=r?e.priority-t.priority:1:r&&(n=-1),n})}var Zf,Qf,Jf,Yf=uf.objDefineAccessors,eg=function(e){function t(){var n=e.call(this)||this;n.identifier="ChannelControllerPlugin",n.priority=500;var r,i=uf.arrForEach;function s(e){e&&e.length>0&&(function(e){i(e,function(e){if(e.priority<500)throw Error("Channel has invalid priority"+e.identifier)})}(e=e.sort(function(e,t){return e.priority-t.priority})),r.push(e))}return Df(t,n,function(e,t){e.setNextPlugin=function(e){},e.processTelemetry=function(e,t){r&&i(r,function(r){r.length>0&&n._getTelCtx(t).createNew(r).processNext(e)})},e.getChannelControls=function(){return r},e.initialize=function(n,o,a){e.isInitialized()||(t.initialize(n,o,a),n.isCookieUseDisabled&&uf.disableCookies(),function(e,t){if(r=[],e&&i(e,function(e){return s(e)}),t){var n=[];i(t,function(e){e.priority>500&&n.push(e)}),s(n)}}((n||{}).channels,a),i(r,function(e){return Kf(new Bf(e,n,o),a)}))}}),n}return __extends(t,e),t.prototype.processTelemetry=function(e,t){},t.prototype.getChannelControls=function(){return null},t.prototype.initialize=function(e,t,n){},t._staticInit=(Yf(t.prototype,"ChannelControls",t.prototype.getChannelControls),void Yf(t.prototype,"channelQueue",t.prototype.getChannelControls)),t}($f),tg=uf.arrForEach,ng=uf.isNullOrUndefined,rg=function(){function e(){var t,n,r,i,s=!1;Df(e,this,function(e){e._extensions=new Array,n=new eg,t=[],e.isInitialized=function(){return s},e.initialize=function(t,i,o,a){if(e.isInitialized())throw Error("Core should not be initialized more than once");if(!t||ng(t.instrumentationKey))throw Error("Please provide instrumentation key");r=a,e._notificationManager=a,e.config=t||{},t.extensions=ng(t.extensions)?[]:t.extensions,(t.extensionConfig=ng(t.extensionConfig)?{}:t.extensionConfig).NotificationManager=a,o||(o=uf.objCreate({throwInternal:function(e,t,n,r,i){void 0===i&&(i=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}})),e.logger=o;var l=[];l.push.apply(l,i.concat(t.extensions)),l=Xf(l);var c=[],u=[],h={};if(tg(l,function(e){if(ng(e)||ng(e.initialize))throw Error("Extensions must provide callback to initialize");var t=e.priority,r=e.identifier;e&&t&&(ng(h[t])?h[t]=r:o.warnToConsole("Two extensions have same priority #"+t+" - "+h[t]+", "+r)),!t||t0&&(tg(t,function(t){e.getProcessTelContext().processNext(t)}),t=[])}})}return e.prototype.initialize=function(e,t,n,r){},e.prototype.getTransmissionControls=function(){return null},e.prototype.track=function(e){},e.prototype.getProcessTelContext=function(){return null},e.prototype.getNotifyMgr=function(){return null},e.prototype.getPerfMgr=function(){return null},e.prototype.setPerfMgr=function(e){},e.prototype.eventCnt=function(){return 0},e.prototype.releaseQueue=function(){},e}(),ig=function(){function e(t){this.listeners=[];var n=uf.arrForEach,r=!!(t||{}).perfEvtsSendAll;Df(e,this,function(e){e.addNotificationListener=function(t){e.listeners.push(t)},e.removeNotificationListener=function(t){for(var n=uf.arrIndexOf(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=uf.arrIndexOf(e.listeners,t)},e.eventsSent=function(t){n(e.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(t)},0)})},e.eventsDiscarded=function(t,r){n(e.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(t,r)},0)})},e.eventsSendRequest=function(t,r){n(e.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},e.perfEvent=function(t){t&&(!r&&t.isChildEvt()||n(e.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})}return e.prototype.addNotificationListener=function(e){},e.prototype.removeNotificationListener=function(e){},e.prototype.eventsSent=function(e){},e.prototype.eventsDiscarded=function(e,t){},e.prototype.eventsSendRequest=function(e,t){},e}(),sg=function(e){function t(){var n=e.call(this)||this;return Df(t,n,function(e,t){function n(t){var n=e.getNotifyMgr();n&&n.eventsDiscarded([t],2)}e.initialize=function(e,n,r,i){t.initialize(e,n,r||new Lf(e),i||new ig(e))},e.track=function(r){Ff(e.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===r)throw n(r),Error("Invalid telemetry item");!function(e){if(uf.isNullOrUndefined(e.name))throw n(e),Error("telemetry name required")}(r),t.track(r)},function(){return{item:r}},!r.sync)},e.addNotificationListener=function(t){var n=e.getNotifyMgr();n&&n.addNotificationListener(t)},e.removeNotificationListener=function(t){var n=e.getNotifyMgr();n&&n.removeNotificationListener(t)},e.pollInternalLogs=function(t){var n=e.config.diagnosticLogInterval;return n&&n>0||(n=1e4),setInterval(function(){var n=e.logger?e.logger.queue:[];uf.arrForEach(n,function(n){var r={name:t||"InternalMessageId: "+n.messageId,iKey:e.config.instrumentationKey,time:uf.toISOString(new Date),baseType:Of.dataType,baseData:{message:n.message}};e.track(r)}),n.length=0},n)}}),n}return __extends(t,e),t.prototype.initialize=function(e,t,n,r){},t.prototype.track=function(e){},t.prototype.addNotificationListener=function(e){},t.prototype.removeNotificationListener=function(e){},t.prototype.pollInternalLogs=function(e){return 0},t}(rg);!function(e){e[e.LocalStorage=0]="LocalStorage",e[e.SessionStorage=1]="SessionStorage"}(Zf||(Zf={})),function(e){e[e.Default=0]="Default",e[e.Required=1]="Required",e[e.Array=2]="Array",e[e.Hidden=4]="Hidden"}(Qf||(Qf={})),function(e){e[e.AI=0]="AI",e[e.AI_AND_W3C=1]="AI_AND_W3C",e[e.W3C=2]="W3C"}(Jf||(Jf={}));var og,ag=function(){function e(){}return e.requestContextHeader="Request-Context",e.requestContextTargetKey="appId",e.requestContextAppIdFormat="appId=cid-v1:",e.requestIdHeader="Request-Id",e.traceParentHeader="traceparent",e.sdkContextHeader="Sdk-Context",e.sdkContextHeaderAppIdRequest="appId",e.requestContextHeaderLowerCase="request-context",e}(),lg=function(){function e(){}return e.sanitizeKeyAndAddUniqueness=function(t,n,r){var i=n.length,s=e.sanitizeKey(t,n);if(s.length!==i){for(var o=0,a=s;void 0!==r[a];)o++,a=s.substring(0,e.MAX_NAME_LENGTH-3)+e.padNumber(o);s=a}return s},e.sanitizeKey=function(t,n){var r;return n&&(n=e.trim(n.toString())).length>e.MAX_NAME_LENGTH&&(r=n.substring(0,e.MAX_NAME_LENGTH),t.throwInternal(cf.WARNING,57,"name is too long. It has been truncated to "+e.MAX_NAME_LENGTH+" characters.",{name:n},!0)),r||n},e.sanitizeString=function(t,n,r){var i;return void 0===r&&(r=e.MAX_STRING_LENGTH),n&&(r=r||e.MAX_STRING_LENGTH,(n=e.trim(n)).toString().length>r&&(i=n.toString().substring(0,r),t.throwInternal(cf.WARNING,61,"string value is too long. It has been truncated to "+r+" characters.",{value:n},!0))),i||n},e.sanitizeUrl=function(t,n){return e.sanitizeInput(t,n,e.MAX_URL_LENGTH,66)},e.sanitizeMessage=function(t,n){var r;return n&&n.length>e.MAX_MESSAGE_LENGTH&&(r=n.substring(0,e.MAX_MESSAGE_LENGTH),t.throwInternal(cf.WARNING,56,"message is too long, it has been truncated to "+e.MAX_MESSAGE_LENGTH+" characters.",{message:n},!0)),r||n},e.sanitizeException=function(t,n){var r;return n&&n.length>e.MAX_EXCEPTION_LENGTH&&(r=n.substring(0,e.MAX_EXCEPTION_LENGTH),t.throwInternal(cf.WARNING,52,"exception is too long, it has been truncated to "+e.MAX_EXCEPTION_LENGTH+" characters.",{exception:n},!0)),r||n},e.sanitizeProperties=function(t,n){if(n){var r={};for(var i in n){var s=n[i];if(uf.isObject(s)&&Bp())try{s=Gp().stringify(s)}catch(o){t.throwInternal(cf.WARNING,49,"custom property is not valid",{exception:o},!0)}s=e.sanitizeString(t,s,e.MAX_PROPERTY_LENGTH),r[i=e.sanitizeKeyAndAddUniqueness(t,i,r)]=s}n=r}return n},e.sanitizeMeasurements=function(t,n){if(n){var r={};for(var i in n){var s=n[i];r[i=e.sanitizeKeyAndAddUniqueness(t,i,r)]=s}n=r}return n},e.sanitizeId=function(t,n){return n?e.sanitizeInput(t,n,e.MAX_ID_LENGTH,69).toString():n},e.sanitizeInput=function(t,n,r,i){var s;return n&&(n=e.trim(n)).length>r&&(s=n.substring(0,r),t.throwInternal(cf.WARNING,i,"input is too long, it has been truncated to "+r+" characters.",{data:n},!0)),s||n},e.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},e.trim=function(e){return uf.isString(e)?e.replace(/^\s+|\s+$/g,""):e},e.MAX_NAME_LENGTH=150,e.MAX_ID_LENGTH=128,e.MAX_PROPERTY_LENGTH=8192,e.MAX_STRING_LENGTH=1024,e.MAX_URL_LENGTH=2048,e.MAX_MESSAGE_LENGTH=32768,e.MAX_EXCEPTION_LENGTH=32768,e}(),cg=qp(),ug=uf.isString,hg=null,dg=function(){function e(){}return e.createDomEvent=function(e){var t=null;if(uf.isFunction(Event))t=new Event(e);else{var n=Hp();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t},e.disableStorage=function(){e._canUseLocalStorage=!1,e._canUseSessionStorage=!1},e._getLocalStorageObject=function(){return e.canUseLocalStorage()?e._getVerifiedStorageObject(Zf.LocalStorage):null},e._getVerifiedStorageObject=function(e){var t,n,r=null;try{if(uf.isNullOrUndefined(Lp()))return null;n=new Date,(r=Up(e===Zf.LocalStorage?"localStorage":"sessionStorage")).setItem(n.toString(),n.toString()),t=r.getItem(n.toString())!==n.toString(),r.removeItem(n.toString()),t&&(r=null)}catch(i){r=null}return r},e.isInternalApplicationInsightsEndpoint=function(t){return-1!==e._internalEndpoints.indexOf(t.toLowerCase())},e.canUseLocalStorage=function(){return void 0===e._canUseLocalStorage&&(e._canUseLocalStorage=!!e._getVerifiedStorageObject(Zf.LocalStorage)),e._canUseLocalStorage},e.getStorage=function(t,n){var r=e._getLocalStorageObject();if(null!==r)try{return r.getItem(n)}catch(i){e._canUseLocalStorage=!1,t.throwInternal(cf.WARNING,1,"Browser failed read of local storage. "+e.getExceptionName(i),{exception:e.dump(i)})}return null},e.setStorage=function(t,n,r){var i=e._getLocalStorageObject();if(null!==i)try{return i.setItem(n,r),!0}catch(s){e._canUseLocalStorage=!1,t.throwInternal(cf.WARNING,3,"Browser failed write to local storage. "+e.getExceptionName(s),{exception:e.dump(s)})}return!1},e.removeStorage=function(t,n){var r=e._getLocalStorageObject();if(null!==r)try{return r.removeItem(n),!0}catch(i){e._canUseLocalStorage=!1,t.throwInternal(cf.WARNING,5,"Browser failed removal of local storage item. "+e.getExceptionName(i),{exception:e.dump(i)})}return!1},e._getSessionStorageObject=function(){return e.canUseSessionStorage()?e._getVerifiedStorageObject(Zf.SessionStorage):null},e.canUseSessionStorage=function(){return void 0===e._canUseSessionStorage&&(e._canUseSessionStorage=!!e._getVerifiedStorageObject(Zf.SessionStorage)),e._canUseSessionStorage},e.getSessionStorageKeys=function(){var t=[];if(e.canUseSessionStorage())for(var n in Up("sessionStorage"))t.push(n);return t},e.getSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(null!==r)try{return r.getItem(n)}catch(i){e._canUseSessionStorage=!1,t.throwInternal(cf.WARNING,2,"Browser failed read of session storage. "+e.getExceptionName(i),{exception:e.dump(i)})}return null},e.setSessionStorage=function(t,n,r){var i=e._getSessionStorageObject();if(null!==i)try{return i.setItem(n,r),!0}catch(s){e._canUseSessionStorage=!1,t.throwInternal(cf.WARNING,4,"Browser failed write to session storage. "+e.getExceptionName(s),{exception:e.dump(s)})}return!1},e.removeSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(null!==r)try{return r.removeItem(n),!0}catch(i){e._canUseSessionStorage=!1,t.throwInternal(cf.WARNING,6,"Browser failed removal of session storage item. "+e.getExceptionName(i),{exception:e.dump(i)})}return!1},e.disableCookies=function(){uf.disableCookies()},e.canUseCookies=function(t){if(void 0===uf._canUseCookies){uf._canUseCookies=!1;try{uf._canUseCookies=void 0!==e.document.cookie}catch(n){t.throwInternal(cf.WARNING,68,"Cannot access document.cookie - "+e.getExceptionName(n),{exception:e.dump(n)})}}return uf._canUseCookies},e.disallowsSameSiteNone=function(e){return!!ug(e)&&(-1!==e.indexOf("CPU iPhone OS 12")||-1!==e.indexOf("iPad; CPU OS 12")||-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&-1!==e.indexOf("Version/")&&-1!==e.indexOf("Safari")||-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&"AppleWebKit/605.1.15 (KHTML, like Gecko)"===(t=e).substring((r=(n=t.length)-"AppleWebKit/605.1.15 (KHTML, like Gecko)".length)>=0?r:0,n)||-1!==e.indexOf("Chrome/5")||-1!==e.indexOf("Chrome/6")||-1!==e.indexOf("UnrealEngine")&&-1===e.indexOf("Chrome")||-1!==e.indexOf("UCBrowser/12")||-1!==e.indexOf("UCBrowser/11"));var t,n,r},e.setCookie=function(t,n,r,i){if(e.canUseCookies(t)){var s="",o="";i&&(s=";domain="+i);var a=Vp();a&&"https:"===a.protocol&&(o=";secure",null===hg&&(hg=e.disallowsSameSiteNone((qp()||{}).userAgent)),hg||(r+=";SameSite=None")),e.document.cookie=n+"="+r+s+";path=/"+o}},e.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString().toLowerCase()},e.getCookie=function(t,n){if(e.canUseCookies(t)){var r="";if(n&&n.length)for(var i=n+"=",s=e.document.cookie.split(";"),o=0;o0?s+".":"")+(i=i.length<2?"0"+i:i)+":"+(r=r.length<2?"0"+r:r)+":"+(n=n.length<2?"0"+n:n)+"."+(1===t.length?"00"+t:2===t.length?"0"+t:t)},e.isCrossOriginError=function(e,t,n,r,i){return("Script error."===e||"Script error"===e)&&!i},e.dump=function(e){var t=Object.prototype.toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Bp()&&(n=Gp().stringify(e)),t+n},e.getExceptionName=function(e){return"[object Error]"===Object.prototype.toString.call(e)?e.name:""},e.addEventHandler=function(e,t){return df.Attach(jp(),e,t)},e.IsBeaconApiSupported=function(){return"sendBeacon"in cg&&cg.sendBeacon},e.getExtension=function(e,t){for(var n=null,r=0;!n&&r=r.length&&(n=0),e._htmlAnchorIdx=n,i},e.getAbsoluteUrl=function(t){var n,r=e.parseUrl(t);return r&&(n=r.href),n},e.getPathName=function(t){var n,r=e.parseUrl(t);return r&&(n=r.pathname),n},e.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},e.parseHost=function(t,n){var r=e.parseFullHost(t,n);if(r){var i=r.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=i&&i.length>3&&ug(i[2])&&i[2].length>0)return i[2]+(i[3]||"")}return r},e.parseFullHost=function(e,t){var n=null;if(e){var r=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i);if(null!=r&&r.length>2&&ug(r[2])&&r[2].length>0&&(n=r[2]||"",t&&r.length>2)){var i=(r[1]||"").toLowerCase(),s=r[3]||"";("http"===i&&":80"===s||"https"===i&&":443"===s)&&(s=""),n+=s}}return n},e.document=Hp()||{},e._htmlAnchorIdx=0,e._htmlAnchorElement=[null,null,null,null,null],e}(),fg=function(){function e(){}return e.canIncludeCorrelationHeader=function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var r=0;r0},e.getCorrelationContext=function(t){if(t){var n=e.getCorrelationContextValue(t,ag.requestContextTargetKey);if(n&&n!==e.correlationIdPrefix)return n}},e.getCorrelationContextValue=function(e,t){if(e)for(var n=e.split(","),r=0;r0){var a=pg.parseUrl(t);if(i=a.host,!s)if(null!=a.pathname){var l=0===a.pathname.length?"/":a.pathname;"/"!==l.charAt(0)&&(l="/"+l),o=a.pathname,s=lg.sanitizeString(e,n?n+" "+l:l)}else s=lg.sanitizeString(e,t)}else i=r,s=r;return{target:i,name:s,data:o}},e}(),mg=function(){function e(){}return e.Now=function(){var e=zp();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return(new Date).getTime()},e.GetDuration=function(e,t){var n=null;return 0===e||0===t||uf.isNullOrUndefined(e)||uf.isNullOrUndefined(t)||(n=t-e),n},e}(),vg="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",yg="sampleRate",wg="ProcessLegacy",_g="http.method",bg="https://dc.services.visualstudio.com",xg=function(){function e(){}return e.parse=function(t){if(!t)return{};var n=t.split(e._FIELDS_SEPARATOR),r=uf.arrReduce(n,function(t,n){var r=n.split(e._FIELD_KEY_VALUE_SEPARATOR);return 2===r.length&&(t[r[0].toLowerCase()]=r[1]),t},{});return uf.objKeys(r).length>0&&(r.endpointsuffix&&(r.ingestionendpoint=r.ingestionendpoint||"https://"+(r.location?r.location+".":"")+"dc."+r.endpointsuffix),r.ingestionendpoint=r.ingestionendpoint||bg),r},e._FIELDS_SEPARATOR=";",e._FIELD_KEY_VALUE_SEPARATOR="=",e}(),Cg=function(){},Sg=function(e){function t(){return e.call(this)||this}return __extends(t,e),t}(Cg),Tg=function(e){function t(t,n,r){var i=e.call(this)||this;return i.name=lg.sanitizeString(t,r)||dg.NotSpecified,i.data=n,i.time=uf.toISOString(new Date),i.aiDataContract={time:Qf.Required,iKey:Qf.Required,name:Qf.Required,sampleRate:function(){return 100===i.sampleRate?Qf.Hidden:Qf.Required},tags:Qf.Required,data:Qf.Required},i}return __extends(t,e),t}(function(){this.ver=1,this.sampleRate=100,this.tags={}}),Ig=function(){},Eg=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(Ig),kg=function(e){function t(t,n,r,i){var s=e.call(this)||this;return s.aiDataContract={ver:Qf.Required,name:Qf.Required,properties:Qf.Default,measurements:Qf.Default},s.name=lg.sanitizeString(t,n)||dg.NotSpecified,s.properties=lg.sanitizeProperties(t,r),s.measurements=lg.sanitizeMeasurements(t,i),s}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Event",t.dataType="EventData",t}(Eg),Ag=function(e){function t(t,n,r,i,s,o){var a,l=e.call(this)||this;return l.aiDataContract={ver:Qf.Required,exceptions:Qf.Required,severityLevel:Qf.Default,properties:Qf.Default,measurements:Qf.Default},"ver"in(a=n)&&"exceptions"in a&&"properties"in a?(l.exceptions=n.exceptions,l.properties=n.properties,l.measurements=n.measurements,n.severityLevel&&(l.severityLevel=n.severityLevel),n.id&&(l.id=n.id),n.problemGroup&&(l.problemGroup=n.problemGroup),l.ver=2,uf.isNullOrUndefined(n.isManual)||(l.isManual=n.isManual)):(l.exceptions=[new Rg(t,n)],l.properties=lg.sanitizeProperties(t,r)||{},l.measurements=lg.sanitizeMeasurements(t,i),s&&(l.severityLevel=s),o&&(l.id=o)),l}return __extends(t,e),t.CreateFromInterface=function(e,n,r,i){var s=n.exceptions&&uf.arrMap(n.exceptions,function(t){return Rg.CreateFromInterface(e,t)});return new t(e,__assign({},n,{exceptions:s}),r,i)},t.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,r=e.measurements,i=e.severityLevel,s=e.problemGroup,o=e.id,a=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&uf.arrMap(t,function(e){return e.toInterface()})||void 0,severityLevel:i,properties:n,measurements:r,problemGroup:s,id:o,isManual:a}},t.CreateSimpleException=function(e,t,n,r,i,s){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:t}]}},t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",t.dataType="ExceptionData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.exceptions=[],t.properties={},t.measurements={},t}return __extends(t,e),t}(Ig)),Rg=function(e){function t(n,r){var i,s=e.call(this)||this;if(s.aiDataContract={id:Qf.Default,outerId:Qf.Default,typeName:Qf.Required,message:Qf.Required,hasFullStack:Qf.Default,stack:Qf.Default,parsedStack:Qf.Array},"hasFullStack"in(i=r)&&"typeName"in i)s.typeName=r.typeName,s.message=r.message,s.stack=r.stack,s.parsedStack=r.parsedStack,s.hasFullStack=r.hasFullStack;else{var o=r;dg.isError(o)||(o=o.error||o.evt||o),s.typeName=lg.sanitizeString(n,function(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,})\(/.exec(e.constructor.toString());t=n&&n.length>1?n[1]:""}catch(r){}return t}(o))||dg.NotSpecified,s.message=lg.sanitizeMessage(n,r.message)||dg.NotSpecified;var a=r.stack;s.parsedStack=t.parseStack(a),s.stack=lg.sanitizeException(n,a),s.hasFullStack=dg.isArray(s.parsedStack)&&s.parsedStack.length>0}return s}return __extends(t,e),t.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&uf.arrMap(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||void 0}},t.CreateFromInterface=function(e,n){var r=n.parsedStack instanceof Array&&uf.arrMap(n.parsedStack,function(e){return Ng.CreateFromInterface(e)})||n.parsedStack;return new t(e,__assign({},n,{parsedStack:r}))},t.parseStack=function(e){var t;if(uf.isString(e)){var n=e.split("\n");t=[];for(var r=0,i=0,s=0;s<=n.length;s++)if(Ng.regex.test(n[s])){var o=new Ng(n[s],r++);i+=o.sizeInBytes,t.push(o)}if(i>32768)for(var a=0,l=t.length-1,c=0,u=a,h=l;a32768){t.splice(u,h-u+1);break}u=a,h=l,a++,l--}}return t},t}(function(){this.hasFullStack=!0,this.parsedStack=[]}),Ng=function(e){function t(n,r){var i=e.call(this)||this;if(i.sizeInBytes=0,i.aiDataContract={level:Qf.Required,method:Qf.Required,assembly:Qf.Default,fileName:Qf.Default,line:Qf.Default},"string"==typeof n){var s=n;i.level=r,i.method="",i.assembly=dg.trim(s),i.fileName="",i.line=0;var o=s.match(t.regex);o&&o.length>=5&&(i.method=dg.trim(o[2])||i.method,i.fileName=dg.trim(o[4]),i.line=parseInt(o[5])||0)}else i.level=n.level,i.method=n.method,i.assembly=n.assembly,i.fileName=n.fileName,i.line=n.line,i.sizeInBytes=0;return i.sizeInBytes+=i.method.length,i.sizeInBytes+=i.fileName.length,i.sizeInBytes+=i.assembly.length,i.sizeInBytes+=t.baseSize,i.sizeInBytes+=i.level.toString().length,i.sizeInBytes+=i.line.toString().length,i}return __extends(t,e),t.CreateFromInterface=function(e){return new t(e,null)},t.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},t.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,t.baseSize=58,t}(function(){}),Dg=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.metrics=[],t.properties={},t.measurements={},t}return __extends(t,e),t}(Ig);!function(e){e[e.Measurement=0]="Measurement",e[e.Aggregation=1]="Aggregation"}(og||(og={}));var Pg,Og=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.aiDataContract={name:Qf.Required,kind:Qf.Default,value:Qf.Required,count:Qf.Default,min:Qf.Default,max:Qf.Default,stdDev:Qf.Default},t}return __extends(t,e),t}(function(){this.kind=og.Measurement}),Lg=function(e){function t(t,n,r,i,s,o,a,l){var c=e.call(this)||this;c.aiDataContract={ver:Qf.Required,metrics:Qf.Required,properties:Qf.Default};var u=new Og;return u.count=i>0?i:void 0,u.max=isNaN(o)||null===o?void 0:o,u.min=isNaN(s)||null===s?void 0:s,u.name=lg.sanitizeString(t,n)||dg.NotSpecified,u.value=r,c.metrics=[u],c.properties=lg.sanitizeProperties(t,a),c.measurements=lg.sanitizeMeasurements(t,l),c}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",t.dataType="MetricData",t}(Dg),Ug=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(Eg),Mg=function(e){function t(t,n,r,i,s,o,a){var l=e.call(this)||this;return l.aiDataContract={ver:Qf.Required,name:Qf.Default,url:Qf.Default,duration:Qf.Default,properties:Qf.Default,measurements:Qf.Default,id:Qf.Default},l.id=lg.sanitizeId(t,a),l.url=lg.sanitizeUrl(t,r),l.name=lg.sanitizeString(t,n)||dg.NotSpecified,isNaN(i)||(l.duration=dg.msToTimeSpan(i)),l.properties=lg.sanitizeProperties(t,s),l.measurements=lg.sanitizeMeasurements(t,o),l}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",t.dataType="PageviewData",t}(Ug),jg=function(e){function t(t,n,r,i,s,o,a,l,c,u,h,d){void 0===c&&(c="Ajax");var p=e.call(this)||this;p.aiDataContract={id:Qf.Required,ver:Qf.Required,name:Qf.Default,resultCode:Qf.Default,duration:Qf.Default,success:Qf.Default,data:Qf.Default,target:Qf.Default,type:Qf.Default,properties:Qf.Default,measurements:Qf.Default,kind:Qf.Default,value:Qf.Default,count:Qf.Default,min:Qf.Default,max:Qf.Default,stdDev:Qf.Default,dependencyKind:Qf.Default,dependencySource:Qf.Default,commandName:Qf.Default,dependencyTypeName:Qf.Default},p.id=n,p.duration=dg.msToTimeSpan(s),p.success=o,p.resultCode=a+"",p.type=lg.sanitizeString(t,c);var f=gg.ParseDependencyPath(t,r,l,i);return p.data=lg.sanitizeUrl(t,i)||f.data,p.target=lg.sanitizeString(t,f.target),u&&(p.target=p.target+" | "+u),p.name=lg.sanitizeString(t,f.name),p.properties=lg.sanitizeProperties(t,h),p.measurements=lg.sanitizeMeasurements(t,d),p}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",t.dataType="RemoteDependencyData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.success=!0,t.properties={},t.measurements={},t}return __extends(t,e),t}(Ig)),Fg=function(e){function t(t,n,r,i,s){var o=e.call(this)||this;return o.aiDataContract={ver:Qf.Required,message:Qf.Required,severityLevel:Qf.Default,properties:Qf.Default},o.message=lg.sanitizeMessage(t,n=n||dg.NotSpecified),o.properties=lg.sanitizeProperties(t,i),o.measurements=lg.sanitizeMeasurements(t,s),r&&(o.severityLevel=r),o}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Message",t.dataType="MessageData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(Ig)),Hg=function(e){function t(t,n,r,i,s,o,a){var l=e.call(this)||this;return l.aiDataContract={ver:Qf.Required,name:Qf.Default,url:Qf.Default,duration:Qf.Default,perfTotal:Qf.Default,networkConnect:Qf.Default,sentRequest:Qf.Default,receivedResponse:Qf.Default,domProcessing:Qf.Default,properties:Qf.Default,measurements:Qf.Default},l.url=lg.sanitizeUrl(t,r),l.name=lg.sanitizeString(t,n)||dg.NotSpecified,l.properties=lg.sanitizeProperties(t,s),l.measurements=lg.sanitizeMeasurements(t,o),a&&(l.domProcessing=a.domProcessing,l.duration=a.duration,l.networkConnect=a.networkConnect,l.perfTotal=a.perfTotal,l.receivedResponse=a.receivedResponse,l.sentRequest=a.sentRequest),l}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",t.dataType="PageviewPerformanceData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(Ug)),qg=function(e){function t(t,n){var r=e.call(this)||this;return r.aiDataContract={baseType:Qf.Required,baseData:Qf.Required},r.baseType=t,r.baseData=n,r}return __extends(t,e),t}(Sg);!function(e){e[e.Verbose=0]="Verbose",e[e.Information=1]="Information",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Critical=4]="Critical"}(Pg||(Pg={}));var Vg=function(){function e(){}return e.getConfig=function(e,t,n,r){var i;return void 0===r&&(r=!1),i=n&&e.extensionConfig&&e.extensionConfig[n]&&!uf.isNullOrUndefined(e.extensionConfig[n][t])?e.extensionConfig[n][t]:e[t],uf.isNullOrUndefined(i)?r:i},e}(),zg=function(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion",this.internalSnippet="ai.internal.snippet",this.internalSdkSrc="ai.internal.sdkSrc"},Bg=function(){function e(){}return e.create=function(e,t,n,r,i,s){if(n=lg.sanitizeString(r,n)||dg.NotSpecified,uf.isNullOrUndefined(e)||uf.isNullOrUndefined(t)||uf.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var o={name:n,time:uf.toISOString(new Date),iKey:"",ext:s||{},tags:[],data:{},baseType:t,baseData:e};if(!uf.isNullOrUndefined(i))for(var a in i)i.hasOwnProperty(a)&&(o.data[a]=i[a]);return o},e}(),Gg=function(){function e(){}return e.UserExt="user",e.DeviceExt="device",e.TraceExt="trace",e.WebExt="web",e.AppExt="app",e.OSExt="os",e.SessionExt="ses",e.SDKExt="sdk",e}(),$g=new zg,Wg="AppInsightsPropertiesPlugin",Kg="AppInsightsChannelPlugin",Xg="ApplicationInsightsAnalytics",Zg=function e(t,n,r,i){Df(e,this,function(e){var s,o=uf.arrForEach,a=uf.isNullOrUndefined,l=null,c=[],u=!1;function h(){r&&o(r.getTransmissionControls(),function(e){o(e,function(e){return e.flush(!0)})})}r&&(s=r.logger),e.trackPageView=function(e,r){var d=e.name;if(a(d)||"string"!=typeof d){var p=Hp();d=e.name=p&&p.title||""}var f=e.uri;if(a(f)||"string"!=typeof f){var g=Vp();f=e.uri=g&&g.href||""}if(!i.isPerformanceTimingSupported())return t.sendPageViewInternal(e,r),h(),void s.throwInternal(cf.WARNING,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var m,v,y=!1,w=i.getPerformanceTiming().navigationStart;w>0&&(m=mg.GetDuration(w,+new Date),i.shouldCollectDuration(m)||(m=void 0)),a(r)||a(r.duration)||(v=r.duration),!n&&isNaN(v)||(isNaN(v)&&(r||(r={}),r.duration=m),t.sendPageViewInternal(e,r),h(),y=!0),r||(r={}),c.push(function(){var n=!1;try{if(i.isPerformanceTimingDataReady()){n=!0;var o={name:d,uri:f};i.populatePageViewPerformanceEvent(o),o.isValid||y?(y||(r.duration=o.durationMs,t.sendPageViewInternal(e,r)),u||(t.sendPageViewPerformanceInternal(o,r),u=!0)):(r.duration=m,t.sendPageViewInternal(e,r))}else w>0&&mg.GetDuration(w,+new Date)>6e4&&(n=!0,y||(r.duration=6e4,t.sendPageViewInternal(e,r)))}catch(a){s.throwInternal(cf.CRITICAL,38,"trackPageView failed on page load calculation: "+dg.getExceptionName(a),{exception:dg.dump(a)})}return n}),l||(l=setInterval(function(){var e=c.slice(0),t=!1;c=[],o(e,function(e){e()?t=!0:c.push(e)}),0===c.length&&(clearInterval(l),l=null),t&&h()},100))}})},Qg=function(){function e(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}return e.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(r){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+dg.dump(r))}},e.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(r){return this._logger.warnToConsole("Call to restart failed: "+dg.dump(r)),null}},e.prototype.startPageVisitTimer=function(e,t){try{if(dg.canUseSessionStorage()){if(null!=dg.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw new Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new Jg(e,t),r=Gp().stringify(n);dg.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,r)}}catch(i){this._logger.warnToConsole("Call to start failed: "+dg.dump(i))}},e.prototype.stopPageVisitTimer=function(){try{if(dg.canUseSessionStorage()){var e=uf.dateNow(),t=dg.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);if(t&&Bp()){var n=Gp().parse(t);return n.pageVisitTime=e-n.pageVisitStartTime,dg.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(r){return this._logger.warnToConsole("Stop page visit timer failed: "+dg.dump(r)),null}},e}(),Jg=function(e,t){this.pageVisitStartTime=uf.dateNow(),this.pageName=e,this.pageUrl=t},Yg=function(){function e(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}return e.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming();if(t||n){if(t)var r=t.duration,i=mg.GetDuration(t.startTime,t.connectEnd),s=mg.GetDuration(t.requestStart,t.responseStart),o=mg.GetDuration(t.responseStart,t.responseEnd),a=mg.GetDuration(t.responseEnd,t.loadEventEnd);else r=mg.GetDuration(n.navigationStart,n.loadEventEnd),i=mg.GetDuration(n.navigationStart,n.connectEnd),s=mg.GetDuration(n.requestStart,n.responseStart),o=mg.GetDuration(n.responseStart,n.responseEnd),a=mg.GetDuration(n.responseEnd,n.loadEventEnd);0===r?this._logger.throwInternal(cf.WARNING,10,"error calculating page view performance.",{total:r,network:i,request:s,response:o,dom:a}):this.shouldCollectDuration(r,i,s,o,a)?r0},e.prototype.isPerformanceTimingSupported=function(){var e=zp();return e&&e.timing},e.prototype.isPerformanceTimingDataReady=function(){var e=zp(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t.navigationStart>0&&t.responseStart>0&&t.requestStart>0&&t.loadEventEnd>0&&t.responseEnd>0&&t.connectEnd>0&&t.domLoading>0},e.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t=this.MAX_DURATION_ALLOWED)return!1;return!0},e}();function em(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var tm=function(e){function t(){var t=e.call(this)||this;t.identifier=Xg,t.priority=180,t.autoRoutePVDelay=500,t._trackAjaxAttempts=0;var n=Vp();return t._prevUri=n&&n.href||"",t}return __extends(t,e),t.getDefaultConfig=function(e){return e||(e={}),e.sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=dg.stringToBoolOrDefault(e.disableExceptionTracking),e.autoTrackPageVisitTime=dg.stringToBoolOrDefault(e.autoTrackPageVisitTime),e.overridePageViewDuration=dg.stringToBoolOrDefault(e.overridePageViewDuration),e.enableUnhandledPromiseRejectionTracking=dg.stringToBoolOrDefault(e.enableUnhandledPromiseRejectionTracking),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||e.samplingPercentage>=100)&&(e.samplingPercentage=100),e.isCookieUseDisabled=dg.stringToBoolOrDefault(e.isCookieUseDisabled),e.isStorageUseDisabled=dg.stringToBoolOrDefault(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=dg.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=dg.stringToBoolOrDefault(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e},t.prototype.processTelemetry=function(e,t){var n=this;Ff(this.core,function(){return n.identifier+":processTelemetry"},function(){var r=!1,i=n._telemetryInitializers.length;t=n._getTelCtx(t);for(var s=0;s=0)return!1}return!0})}},t.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},t.prototype._sendCORSException=function(e){var t=Bg.create({message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:void 0},Ag.dataType,Ag.envelopeType,this.diagLog(),{url:e});this.core.track(t)},t.Version="2.5.9",t}($f),nm=function(){function e(e,t){this._name=t,this._events={},this._logger=e}return e.prototype.start=function(e){void 0!==this._events[e]&&this._logger.throwInternal(cf.WARNING,62,"start was called more than once for this event without calling stop.",{name:this._name,key:e},!0),this._events[e]=+new Date},e.prototype.stop=function(e,t,n,r){var i=this._events[e];if(isNaN(i))this._logger.throwInternal(cf.WARNING,63,"stop was called without a corresponding start.",{name:this._name,key:e},!0);else{var s=+new Date,o=mg.GetDuration(i,s);this.action(e,t,o,n,r)}delete this._events[e],this._events[e]=void 0},e}(),rm=function e(t){var n=[];Df(e,this,function(e){e.enqueue=function(e){n.push(e)},e.count=function(){return n.length},e.clear=function(){n.length=0},e.getItems=function(){return n.slice(0)},e.batchPayloads=function(e){return e&&e.length>0?t.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null},e.markAsSent=function(t){e.clear()},e.clearSent=function(e){}})},im=function(){function e(t,n){var r,i=!1;Df(e,this,function(s){var o=c(e.BUFFER_KEY),a=c(e.SENT_BUFFER_KEY);function l(e,t){var n=[];return uf.arrForEach(t,function(t){uf.isFunction(t)||-1!==uf.arrIndexOf(e,t)||n.push(t)}),n}function c(e){var r=e;try{r=n.namePrefix&&n.namePrefix()?n.namePrefix()+"_"+r:r;var i=dg.getSessionStorage(t,r);if(i){var s=Gp().parse(i);if(uf.isString(s)&&(s=Gp().parse(s)),s&&dg.isArray(s))return s}}catch(o){t.throwInternal(cf.CRITICAL,42," storage key: "+r+", "+dg.getExceptionName(o),{exception:dg.dump(o)})}return[]}function u(e,r){var i=e;try{i=n.namePrefix&&n.namePrefix()?n.namePrefix()+"_"+i:i;var s=JSON.stringify(r);dg.setSessionStorage(t,i,s)}catch(o){dg.setSessionStorage(t,i,JSON.stringify([])),t.throwInternal(cf.WARNING,41," storage key: "+i+", "+dg.getExceptionName(o)+". Buffer cleared",{exception:dg.dump(o)})}}(r=o.concat(a)).length>e.MAX_BUFFER_SIZE&&(r.length=e.MAX_BUFFER_SIZE),u(e.SENT_BUFFER_KEY,[]),u(e.BUFFER_KEY,r),s.enqueue=function(n){r.length>=e.MAX_BUFFER_SIZE?i||(t.throwInternal(cf.WARNING,67,"Maximum buffer size reached: "+r.length,!0),i=!0):(r.push(n),u(e.BUFFER_KEY,r))},s.count=function(){return r.length},s.clear=function(){r=[],u(e.BUFFER_KEY,[]),u(e.SENT_BUFFER_KEY,[]),i=!1},s.getItems=function(){return r.slice(0)},s.batchPayloads=function(e){return e&&e.length>0?n.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null},s.markAsSent=function(n){r=l(n,r),u(e.BUFFER_KEY,r);var i=c(e.SENT_BUFFER_KEY);i instanceof Array&&n instanceof Array&&((i=i.concat(n)).length>e.MAX_BUFFER_SIZE&&(t.throwInternal(cf.CRITICAL,67,"Sent buffer reached its maximum size: "+i.length,!0),i.length=e.MAX_BUFFER_SIZE),u(e.SENT_BUFFER_KEY,i))},s.clearSent=function(t){var n=c(e.SENT_BUFFER_KEY);n=l(t,n),u(e.SENT_BUFFER_KEY,n)}})}return e.BUFFER_KEY="AI_buffer",e.SENT_BUFFER_KEY="AI_sentBuffer",e.MAX_BUFFER_SIZE=2e3,e}(),sm="true",om=uf.arrForEach,am=uf.objKeys,lm=uf.isNullOrUndefined;function cm(e,t,n){return e&&n?(e[t]=n,e[t]):null}var um=function(){function e(){}return e.extractPropsAndMeasurements=function(e,t,n){lm(e)||om(am(e),function(r){var i=e[r];uf.isNumber(i)?n[r]=i:uf.isString(i)?t[r]=i:Bp()&&(t[r]=Gp().stringify(i))})},e.createEnvelope=function(t,n,r,i){var s=new Tg(t,i,n);cm(s,"sampleRate",r[yg]),(r.baseData||{}).startTime&&(s.time=uf.toISOString(r.baseData.startTime)),s.iKey=r.iKey;var o=r.iKey.replace(/-/g,"");return s.name=s.name.replace("{0}",o),e.extractPartAExtensions(r,s),r.tags=r.tags||[],s},e.extractPartAExtensions=function(t,n){var r=n.tags=n.tags||{},i=t.ext=t.ext||{},s=t.tags=t.tags||[],o=i.user;o&&(cm(r,$g.userAuthUserId,o.authId),cm(r,$g.userId,o.id||o.localId));var a=i.app;a&&cm(r,$g.sessionId,a.sesId);var l=i.device;l&&(cm(r,$g.deviceId,l.id||l.localId),cm(r,$g.deviceType,l.deviceClass),cm(r,$g.deviceIp,l.ip),cm(r,$g.deviceModel,l.model),cm(r,$g.deviceType,l.deviceType));var c=t.ext.web;if(c){cm(r,$g.deviceLanguage,c.browserLang),cm(r,$g.deviceBrowserVersion,c.browserVer),cm(r,$g.deviceBrowser,c.browser);var u=n.data=n.data||{},h=u.baseData=u.baseData||{},d=h.properties=h.properties||{};cm(d,"domain",c.domain),cm(d,"isManual",c.isManual?sm:null),cm(d,"screenRes",c.screenRes),cm(d,"userConsent",c.userConsent?sm:null)}var p=i.os;p&&cm(r,$g.deviceOS,p.name);var f=i.trace;f&&(cm(r,$g.operationParentId,f.parentID),cm(r,$g.operationName,f.name),cm(r,$g.operationId,f.traceID));for(var g={},m=function(e){var t=s[e];om(am(t),function(e){g[e]=t[e]}),s.splice(e,1)},v=s.length-1;v>=0;v--)m(v);om(am(s),function(e){g[e]=s[e]}),n.tags=__assign({},r,g),n.tags[$g.internalSdkVersion]||(n.tags[$g.internalSdkVersion]="javascript:"+e.Version)},e.prototype.Init=function(e,t){this._logger=e,lm(t.baseData)&&this._logger.throwInternal(cf.CRITICAL,46,"telemetryItem.baseData cannot be null.")},e.Version="2.5.9",e}(),hm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n.baseData.measurements||{},i=n.baseData.properties||{};um.extractPropsAndMeasurements(n.data,i,r);var s=n.baseData;if(lm(s))return t.warnToConsole("Invalid input for dependency data"),null;var o=new jg(t,s.id,s.target,s.name,s.duration,s.success,s.responseCode,s.properties&&s.properties[_g]?s.properties[_g]:"GET",s.type,s.correlationContext,i,r),a=new qg(jg.dataType,o);return um.createEnvelope(t,jg.envelopeType,n,a)},t.DependencyEnvelopeCreator=new t,t}(um),dm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r={},i={};n.baseType!==kg.dataType&&(r.baseTypeSource=n.baseType),n.baseType===kg.dataType?(r=n.baseData.properties||{},i=n.baseData.measurements||{}):n.baseData&&um.extractPropsAndMeasurements(n.baseData,r,i),um.extractPropsAndMeasurements(n.data,r,i);var s=new kg(t,n.baseData.name,r,i),o=new qg(kg.dataType,s);return um.createEnvelope(t,kg.envelopeType,n,o)},t.EventEnvelopeCreator=new t,t}(um),pm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n.baseData.measurements||{},i=n.baseData.properties||{};um.extractPropsAndMeasurements(n.data,i,r);var s=Ag.CreateFromInterface(t,n.baseData,i,r),o=new qg(Ag.dataType,s);return um.createEnvelope(t,Ag.envelopeType,n,o)},t.ExceptionEnvelopeCreator=new t,t}(um),fm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n.baseData,i=r.properties||{},s=r.measurements||{};um.extractPropsAndMeasurements(n.data,i,s);var o=new Lg(t,r.name,r.average,r.sampleCount,r.min,r.max,i,s),a=new qg(Lg.dataType,o);return um.createEnvelope(t,Lg.envelopeType,n,a)},t.MetricEnvelopeCreator=new t,t}(um),gm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r,i=n.baseData;lm(i)||lm(i.properties)||lm(i.properties.duration)?lm(n.data)||lm(n.data.duration)||(r=n.data.duration,delete n.data.duration):(r=i.properties.duration,delete i.properties.duration);var s,o=n.baseData;((n.ext||{}).trace||{}).traceID&&(s=n.ext.trace.traceID);var a=o.id||s,l=o.name,c=o.uri,u=o.properties||{},h=o.measurements||{};if(lm(o.refUri)||(u.refUri=o.refUri),lm(o.pageType)||(u.pageType=o.pageType),lm(o.isLoggedIn)||(u.isLoggedIn=o.isLoggedIn.toString()),!lm(o.properties)){var d=o.properties;om(am(d),function(e){u[e]=d[e]})}um.extractPropsAndMeasurements(n.data,u,h);var p=new Mg(t,l,c,r,u,h,a),f=new qg(Mg.dataType,p);return um.createEnvelope(t,Mg.envelopeType,n,f)},t.PageViewEnvelopeCreator=new t,t}(um),mm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n.baseData,i=r.name,s=r.uri||r.url,o=r.properties||{},a=r.measurements||{};um.extractPropsAndMeasurements(n.data,o,a);var l=new Hg(t,i,s,void 0,o,a,r),c=new qg(Hg.dataType,l);return um.createEnvelope(t,Hg.envelopeType,n,c)},t.PageViewPerformanceEnvelopeCreator=new t,t}(um),vm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n.baseData.message,i=n.baseData.severityLevel,s=n.baseData.properties||{},o=n.baseData.measurements||{};um.extractPropsAndMeasurements(n.data,s,o);var a=new Fg(t,r,i,s,o),l=new qg(Fg.dataType,a);return um.createEnvelope(t,Fg.envelopeType,n,l)},t.TraceEnvelopeCreator=new t,t}(um),ym=function e(t){Df(e,this,function(e){function n(e,s){var o={};if(!e)return t.throwInternal(cf.CRITICAL,48,"cannot serialize object because it is null or undefined",{name:s},!0),o;if(e.__aiCircularRefCheck)return t.throwInternal(cf.WARNING,50,"Circular reference detected while serializing object",{name:s},!0),o;if(!e.aiDataContract){if("measurements"===s)o=i(e,"number",s);else if("properties"===s)o=i(e,"string",s);else if("tags"===s)o=i(e,"string",s);else if(dg.isArray(e))o=r(e,s);else{t.throwInternal(cf.WARNING,49,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{Gp().stringify(e),o=e}catch(g){t.throwInternal(cf.CRITICAL,48,g&&uf.isFunction(g.toString)?g.toString():"Error serializing object",null,!0)}}return o}for(var a in e.__aiCircularRefCheck=!0,e.aiDataContract){var l=e.aiDataContract[a],c=uf.isFunction(l)?l()&Qf.Required:l&Qf.Required,u=uf.isFunction(l)?l()&Qf.Hidden:l&Qf.Hidden,h=l&Qf.Array,d=void 0!==e[a],p=uf.isObject(e[a])&&null!==e[a];if(!c||d||h){if(!u){var f;void 0!==(f=p?h?r(e[a],a):n(e[a],a):e[a])&&(o[a]=f)}}else t.throwInternal(cf.CRITICAL,24,"Missing required field specification. The field is required but not present on source",{field:a,name:s})}return delete e.__aiCircularRefCheck,o}function r(e,r){var i;if(e)if(dg.isArray(e)){i=[];for(var s=0;s100||e<0)&&(this._logger.throwInternal(cf.WARNING,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),this.sampleRate=100),this.sampleRate=e,this.samplingScoreGenerator=new bm}return e.prototype.isSampledIn=function(e){var t=this.sampleRate;return null==t||t>=100||e.baseType===Lg.dataType||this.samplingScoreGenerator.getSamplingScore(e)=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length)return n}}catch(r){e.diagLog().throwInternal(cf.CRITICAL,43,"Cannot parse the response. "+dg.getExceptionName(r),{response:t})}return null}function d(t,i){if(void 0===i&&(i=1),t&&0!==t.length){e._buffer.clearSent(t),n++;for(var s=0,o=t;se._senderConfig.maxBatchSizeInBytes()&&e.triggerSend(!0,null,10),e._buffer.enqueue(a),p()}catch(u){r.diagLog().throwInternal(cf.WARNING,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+dg.getExceptionName(u),{exception:dg.dump(u)})}e.processNext(n,r)},e._xhrReadyStateChange=function(t,r,i){if(4===t.readyState){var s=null;e._appId||(s=h(Cm(t)||t.response))&&s.appId&&(e._appId=s.appId),(t.status<200||t.status>=300)&&0!==t.status?!e._senderConfig.isRetryDisabled()&&f(t.status)?(d(r),e.diagLog().throwInternal(cf.WARNING,pf,". Response code "+t.status+". Will retry to send "+r.length+" items.")):e._onError(r,g(t)):wm.isOffline()?e._senderConfig.isRetryDisabled()||(d(r,10),e.diagLog().throwInternal(cf.WARNING,pf,". Offline - Response Code: "+t.status+". Offline status: "+wm.isOffline()+". Will retry to send "+r.length+" items.")):206===t.status?(s||(s=h(Cm(t)||t.response)),s&&!e._senderConfig.isRetryDisabled()?e._onPartialSuccess(r,s):e._onError(r,g(t))):(n=0,e._onSuccess(r,i))}},e.triggerSend=function(t,n,s){void 0===t&&(t=!0);try{if(e._senderConfig.disableTelemetry())e._buffer.clear();else{if(e._buffer.count()>0){var a=e._buffer.getItems();!function(t,n){var r=e.core["getNotifyMgr"]?e.core.getNotifyMgr():e.core._notificationManager;if(r&&r.eventsSendRequest)try{r.eventsSendRequest(t,n)}catch(i){e.diagLog().throwInternal(cf.CRITICAL,74,"send request notification failed: "+dg.getExceptionName(i),{exception:dg.dump(i)})}}(s||0,t),n?n.call(o,a,t):e._sender(a,t)}new Date}clearTimeout(i),i=null,r=null}catch(c){var l=dg.getIEVersion();(!l||l>9)&&e.diagLog().throwInternal(cf.CRITICAL,pf,"Telemetry transmission failed, some telemetry will be lost: "+dg.getExceptionName(c),{exception:dg.dump(c)})}},e._onError=function(t,n,r){e.diagLog().throwInternal(cf.WARNING,26,"Failed to send telemetry.",{message:n}),e._buffer.clearSent(t)},e._onPartialSuccess=function(t,n){for(var r=[],i=[],s=0,o=n.errors.reverse();s0&&e._onSuccess(t,n.itemsAccepted),r.length>0&&e._onError(r,g(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" "))),i.length>0&&(d(i),e.diagLog().throwInternal(cf.WARNING,pf,"Partial success. Delivered: "+t.length+", Failed: "+r.length+". Will retry to send "+i.length+" our of "+n.itemsReceived+" items"))},e._onSuccess=function(t,n){e._buffer.clearSent(t)},e._xdrOnLoad=function(t,r){var i=Cm(t);if(!t||i+""!="200"&&""!==i){var s=h(i);s&&s.itemsReceived&&s.itemsReceived>s.itemsAccepted&&!e._senderConfig.isRetryDisabled()?e._onPartialSuccess(r,s):e._onError(r,v(t))}else n=0,e._onSuccess(r,0)}}),o}return __extends(t,e),t.constructEnvelope=function(e,t,n){var r;switch((r=t===e.iKey||uf.isNullOrUndefined(t)?e:__assign({},e,{iKey:t})).baseType){case kg.dataType:return dm.EventEnvelopeCreator.Create(n,r);case Fg.dataType:return vm.TraceEnvelopeCreator.Create(n,r);case Mg.dataType:return gm.PageViewEnvelopeCreator.Create(n,r);case Hg.dataType:return mm.PageViewPerformanceEnvelopeCreator.Create(n,r);case Ag.dataType:return pm.ExceptionEnvelopeCreator.Create(n,r);case Lg.dataType:return fm.MetricEnvelopeCreator.Create(n,r);case jg.dataType:return hm.DependencyEnvelopeCreator.Create(n,r);default:return dm.EventEnvelopeCreator.Create(n,r)}},t._getDefaultAppInsightsChannelConfig=function(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return!1},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return!1},enableSessionStorageBuffer:function(){return!0},isRetryDisabled:function(){return!1},isBeaconApiDisabled:function(){return!0},onunloadDisableBeacon:function(){return!1},instrumentationKey:function(){},namePrefix:function(){},samplingPercentage:function(){return 100}}},t._getEmptyAppInsightsChannelConfig=function(){return{endpointUrl:void 0,emitLineDelimitedJson:void 0,maxBatchInterval:void 0,maxBatchSizeInBytes:void 0,disableTelemetry:void 0,enableSessionStorageBuffer:void 0,isRetryDisabled:void 0,isBeaconApiDisabled:void 0,onunloadDisableBeacon:void 0,instrumentationKey:void 0,namePrefix:void 0,samplingPercentage:void 0}},t}($f),Tm=function(){},Im=function(){function e(t,n){var r=this;this._logger=uf.isNullOrUndefined(n)?new Lf:n,t||(t={}),"function"!=typeof t.sessionExpirationMs&&(t.sessionExpirationMs=function(){return e.acquisitionSpan}),"function"!=typeof t.sessionRenewalMs&&(t.sessionRenewalMs=function(){return e.renewalSpan}),this.config=t,this._storageNamePrefix=function(){return r.config.namePrefix&&r.config.namePrefix()?e.cookieNameConst+r.config.namePrefix():e.cookieNameConst},this.automaticSession=new Tm}return e.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var t=(new Date).getTime(),n=0!==this.config.sessionExpirationMs()&&t-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs(),r=0!==this.config.sessionExpirationMs()&&t-this.automaticSession.renewalDate>this.config.sessionRenewalMs();n||r?this.renew():(!this.cookieUpdatedTimestamp||t-this.cookieUpdatedTimestamp>e.cookieUpdateInterval)&&(this.automaticSession.renewalDate=t,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},e.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},e.prototype.initializeAutomaticSession=function(){var e=dg.getCookie(this._logger,this._storageNamePrefix());if(e&&"function"==typeof e.split)this.initializeAutomaticSessionWithData(e);else{var t=dg.getStorage(this._logger,this._storageNamePrefix());t&&this.initializeAutomaticSessionWithData(t)}this.automaticSession.id||this.renew()},e.prototype.initializeAutomaticSessionWithData=function(e){var t=e.split("|");t.length>0&&(this.automaticSession.id=t[0]);try{t.length>1&&(this.automaticSession.acquisitionDate=+new Date(+t[1]),this.automaticSession.acquisitionDate=this.automaticSession.acquisitionDate>0?this.automaticSession.acquisitionDate:0),t.length>2&&(this.automaticSession.renewalDate=+new Date(+t[2]),this.automaticSession.renewalDate=this.automaticSession.renewalDate>0?this.automaticSession.renewalDate:0)}catch(n){this._logger.throwInternal(cf.CRITICAL,9,"Error parsing ai_session cookie, session will be reset: "+dg.getExceptionName(n),{exception:dg.dump(n)})}0===this.automaticSession.renewalDate&&this._logger.throwInternal(cf.WARNING,27,"AI session renewal date is 0, session will be reset.")},e.prototype.renew=function(){var e=(new Date).getTime();this.automaticSession.id=dg.newId(this.config&&this.config.idLength?this.config.idLength():22),this.automaticSession.acquisitionDate=e,this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),dg.canUseLocalStorage()||this._logger.throwInternal(cf.WARNING,0,"Browser does not support local storage. Session durations will be inaccurate.")},e.prototype.setCookie=function(e,t,n){var r=t+this.config.sessionExpirationMs(),i=n+this.config.sessionRenewalMs(),s=new Date,o=[e,t,n];s.setTime(r0&&(this.id=i[0])}if(this.config=t,!this.id){this.id=uf.newId(t&&t.idLength?t.idLength():22);var s=new Date,o=uf.toISOString(s);this.accountAcquisitionDate=o,this.isNewUser=!0,s.setTime(s.getTime()+31536e6);var a=[this.id,o],l=this.config.cookieDomain?this.config.cookieDomain():void 0;dg.setCookie(this._logger,e.userCookieName,a.join(e.cookieSeparator)+";expires="+s.toUTCString(),l);var c=t.namePrefix&&t.namePrefix()?t.namePrefix()+"ai_session":"ai_session";dg.removeStorage(this._logger,c)}this.accountId=t.accountId?t.accountId():void 0;var u=dg.getCookie(this._logger,e.authUserCookieName);if(u){var h=(u=decodeURI(u)).split(e.cookieSeparator);h[0]&&(this.authenticatedId=h[0]),h.length>1&&h[1]&&(this.accountId=h[1])}}return e.prototype.setAuthenticatedUserContext=function(t,n,r){if(void 0===r&&(r=!1),!this.validateUserInput(t)||n&&!this.validateUserInput(n))this._logger.throwInternal(cf.WARNING,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{this.authenticatedId=t;var i=this.authenticatedId;n&&(this.accountId=n,i=[this.authenticatedId,this.accountId].join(e.cookieSeparator)),r&&dg.setCookie(this._logger,e.authUserCookieName,encodeURI(i),this.config.cookieDomain())}},e.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,dg.deleteCookie(this._logger,e.authUserCookieName)},e.prototype.validateUserInput=function(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))},e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),Nm=function(){},Dm=function(e,t,n,r){this.traceID=e||dg.generateW3CId(),this.parentID=t,this.name=n;var i=Vp();!n&&i&&i.pathname&&(this.name=i.pathname),this.name=lg.sanitizeString(r,this.name)},Pm=function(){function e(e,t){var n=this;n.application=new Em,n.internal=new Am(t),Mp()&&(n.sessionManager=new Im(t,e),n.device=new km,n.location=new Nm,n.user=new Rm(t,e),n.telemetryTrace=new Dm(void 0,void 0,void 0,e),n.session=new Tm),n.appId=function(){return null}}return e.prototype.applySessionContext=function(e,t){var n=this.session,r=this.sessionManager,i=n||r&&r.automaticSession;i&&uf.isString(i.id)&&(e.ext.app.sesId=i.id),n&&(e.ext.app.sesId=uf.isString(n.id)?n.id:r.automaticSession.id)},e.prototype.applyOperatingSystemContxt=function(e,t){var n=this.os;n&&n.name&&(e.ext.os=n)},e.prototype.applyApplicationContext=function(e,t){var n=this.application;n&&(uf.isString(n.ver)&&(e.tags[$g.applicationVersion]=n.ver),uf.isString(n.build)&&(e.tags[$g.applicationBuild]=n.build))},e.prototype.applyDeviceContext=function(e,t){var n=this.device;n&&(uf.isString(n.id)&&(e.ext.device.localId=n.id),uf.isString(n.ip)&&(e.ext.device.ip=n.ip),uf.isString(n.model)&&(e.ext.device.model=n.model),uf.isString(n.deviceClass)&&(e.ext.device.deviceClass=n.deviceClass))},e.prototype.applyInternalContext=function(e,t){var n=this.internal;n&&(uf.isString(n.agentVersion)&&(e.tags[$g.internalAgentVersion]=n.agentVersion),uf.isString(n.sdkVersion)&&(e.tags[$g.internalSdkVersion]=n.sdkVersion),e.baseType!==Of.dataType&&e.baseType!==Mg.dataType||(uf.isString(n.snippetVer)&&(e.tags[$g.internalSnippet]=n.snippetVer),uf.isString(n.sdkSrc)&&(e.tags[$g.internalSdkSrc]=n.sdkSrc)))},e.prototype.applyLocationContext=function(e,t){var n=this.location;n&&uf.isString(n.ip)&&(e.tags[$g.locationIp]=n.ip)},e.prototype.applyOperationContext=function(e,t){var n=this.telemetryTrace;if(n){var r=e.ext.trace||{traceID:void 0,parentID:void 0};uf.isString(n.traceID)&&(r.traceID=n.traceID),uf.isString(n.name)&&(r.name=n.name),uf.isString(n.parentID)&&(r.parentID=n.parentID),e.ext.trace=r}},e.prototype.applyWebContext=function(e,t){var n=this.web;n&&(e.ext.web=e.ext.web||{},e.ext.web=n)},e.prototype.applyUserContext=function(e,t){var n=this.user;n&&(e.tags||(e.tags=[]),uf.isString(n.accountId)&&(e.tags[$g.userAccountId]=n.accountId),uf.isString(n.id)&&(e.ext.user.id=n.id),uf.isString(n.authenticatedId)&&(e.ext.user.authId=n.authenticatedId))},e.prototype.cleanUp=function(e,t){e.ext[Gg.DeviceExt]&&0===uf.objKeys(e.ext[Gg.DeviceExt]).length&&delete e.ext[Gg.DeviceExt],e.ext[Gg.UserExt]&&0===uf.objKeys(e.ext[Gg.UserExt]).length&&delete e.ext[Gg.UserExt],e.ext[Gg.WebExt]&&0===uf.objKeys(e.ext[Gg.WebExt]).length&&delete e.ext[Gg.WebExt],e.ext[Gg.OSExt]&&0===uf.objKeys(e.ext[Gg.OSExt]).length&&delete e.ext[Gg.OSExt],e.ext[Gg.AppExt]&&0===uf.objKeys(e.ext[Gg.AppExt]).length&&delete e.ext[Gg.AppExt],e.ext[Gg.TraceExt]&&0===uf.objKeys(e.ext[Gg.TraceExt]).length&&delete e.ext[Gg.TraceExt]},e}(),Om=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.priority=110,t.identifier=Wg,t}return __extends(t,e),t.getDefaultConfig=function(){return{instrumentationKey:function(){},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},namePrefix:function(){},idLength:function(){return 22}}},t.prototype.initialize=function(n,r,i,s){var o=this;e.prototype.initialize.call(this,n,r,i,s);var a=this._getTelCtx(),l=this.identifier,c=t.getDefaultConfig();this._extensionConfig=this._extensionConfig||t.getDefaultConfig();var u=function(e){h._extensionConfig[e]=function(){return a.getConfig(l,e,c[e]())}},h=this;for(var d in c)u(d);this.context=new Pm(r.logger,this._extensionConfig),this._breezeChannel=dg.getExtension(i,Kg),this.context.appId=function(){return o._breezeChannel?o._breezeChannel._appId:null}},t.prototype.processTelemetry=function(e,t){if(uf.isNullOrUndefined(e));else{if(t=this._getTelCtx(t),e.name===Mg.envelopeType&&t.diagLog().resetInternalMessageCount(),this.context.session&&"string"!=typeof this.context.session.id&&this.context.sessionManager.update(),this._processTelemetryInternal(e,t),this.context&&this.context.user&&this.context.user.isNewUser){this.context.user.isNewUser=!1;var n=new Of(72,(qp()||{}).userAgent||"");t.diagLog().logInternalMessage(cf.CRITICAL,n)}this.processNext(e,t)}},t.prototype._processTelemetryInternal=function(e,t){e.tags||(e.tags=[]),e.ext||(e.ext={});var n=e.ext;n[Gg.DeviceExt]=n[Gg.DeviceExt]||{},n[Gg.WebExt]=n[Gg.WebExt]||{},n[Gg.UserExt]=n[Gg.UserExt]||{},n[Gg.OSExt]=n[Gg.OSExt]||{},n[Gg.AppExt]=n[Gg.AppExt]||{},n[Gg.TraceExt]=n[Gg.TraceExt]||{};var r=this.context;r.applySessionContext(e,t),r.applyApplicationContext(e,t),r.applyDeviceContext(e,t),r.applyOperationContext(e,t),r.applyUserContext(e,t),r.applyOperatingSystemContxt(e,t),r.applyWebContext(e,t),r.applyLocationContext(e,t),r.applyInternalContext(e,t),r.cleanUp(e,t)},t}($f),Lm=["req","rsp","hkErr","fnErr"];function Um(e,t){if(e)for(var n=0;n=0&&i<=2&&Um(e,function(e,s){var o=e.cbks,a=o[Lm[i]];if(a){t.ctx=function(){return r[s]=r[s]||{}};try{a.apply(t.inst,n)}catch(u){var l=t.err;try{var c=o[Lm[2]];c&&(t.err=u,c.apply(t.inst,n))}catch(h){}finally{t.err=l}}}})}var jm=Object.getPrototypeOf;function Fm(e,t,n){var r=null;return e&&(uf.hasOwnProperty(e,t)?r=e:n&&(r=Fm(function(e){if(e){if(jm)return jm(e);var t=e.__proto__||e.prototype||e.constructor;if(t)return t}return null}(e),t,!1))),r}function Hm(e,t,n,r){if(void 0===r&&(r=!0),e&&t&&n){var i=Fm(e,t,r);if(i){var s=i[t];if("function"==typeof s){var o=s._aiHooks;if(!o){var a=(c=o={i:0,n:t,f:s,h:[]},function(){var e=this,t=arguments,n=c.h,r={name:c.n,inst:e,ctx:null,set:a},i=[],s=o([r],t);function o(e,t){return Um(t,function(t){e.push(t)}),e}function a(e,n){(t=o([],t))[e]=n,s=o([r],t)}Mm(n,r,s,i,0);var l=c.f;try{r.rslt=l.apply(e,t)}catch(u){throw r.err=u,Mm(n,r,s,i,3),u}return Mm(n,r,s,i,1),r.rslt});a._aiHooks=o,i[t]=a}var l={id:o.i,cbks:n,rm:function(){var e=this.id;Um(o.h,function(t,n){if(t.id===e)return o.h.splice(n,1),1})}};return o.i++,o.h.push(l),l}}}var c;return null}var qm=uf.objKeys,Vm=uf.arrForEach;function zm(e,t,n){var r=0,i=e[t],s=e[n];return i&&s&&(r=mg.GetDuration(i,s)),r}function Bm(e,t,n,r,i){var s=0,o=zm(n,r,i);return o&&(s=Gm(e,t,dg.msToTimeSpan(o))),s}function Gm(e,t,n){var r=0;return e&&t&&n&&((e.ajaxPerf=e.ajaxPerf||{})[t]=n,r=1),r}var $m=function(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e.stateChangeAttached=!1},Wm=function e(t,n,r){var i=this,s=r;i.perfMark=null,i.completed=!1,i.requestHeadersSize=null,i.requestHeaders=null,i.responseReceivingDuration=null,i.callbackDuration=null,i.ajaxTotalDuration=null,i.aborted=0,i.pageUrl=null,i.requestUrl=null,i.requestSize=0,i.method=null,i.status=null,i.requestSentTime=null,i.responseStartedTime=null,i.responseFinishedTime=null,i.callbackFinishedTime=null,i.endTime=null,i.xhrMonitoringState=new $m,i.clientFailure=0,i.traceID=t,i.spanID=n,Df(e,i,function(e){e.getAbsoluteUrl=function(){return e.requestUrl?pg.getAbsoluteUrl(e.requestUrl):null},e.getPathName=function(){return e.requestUrl?lg.sanitizeUrl(s,pg.getCompleteUrl(e.method,e.requestUrl)):null},e.CreateTrackItem=function(t,n,r){if(e.ajaxTotalDuration=Math.round(1e3*mg.GetDuration(e.requestSentTime,e.responseFinishedTime))/1e3,e.ajaxTotalDuration<0)return null;var i,s=((i={id:"|"+e.traceID+"."+e.spanID,target:e.getAbsoluteUrl(),name:e.getPathName(),type:t,duration:e.ajaxTotalDuration,success:+e.status>=200&&+e.status<400,responseCode:+e.status,method:e.method}).properties={HttpMethod:e.method},i);if(function(e,t){var n=e.perfTiming,r=t.properties||{},i=0,s=uf.isString,o="redirect",a="startTime",l="connectEnd",c="requestStart",u="responseEnd",h=o+"Start",d=o="End";if(n){i|=Bm(r,o,n,h,d),i|=Bm(r,"domainLookup",n,"domainLookupStart","domainLookupEnd"),i|=Bm(r,"connect",n,"connectStart",l),i|=Bm(r,"request",n,c,"requestEnd"),i|=Bm(r,"response",n,"responseStart",u),i|=Bm(r,"networkConnect",n,a,l),i|=Bm(r,"sentRequest",n,c,u);var p=n.duration;p||(p=zm(n,a,u)||0),i|=Gm(r,"duration",p),i|=Gm(r,"perfTotal",p);var f=n.serverTiming;if(f){var g={};Vm(f,function(e,t){var n=function(e){var t=e,n=/([^\w\d_$])/g;return n.test(e)&&(t=e.replace(n,"_")),t}(e.name||""+t),r=g[n]||{};Vm(qm(e),function(t){var n=e[t];("name"!==t&&s(n)||uf.isNumber(n))&&(r[t]&&(n=r[t]+";"+n),!n&&s(n)||(r[t]=n))}),g[n]=r}),i|=Gm(r,"serverTiming",g)}i|=Gm(r,"transferSize",n.transferSize),i|=Gm(r,"encodedBodySize",n.encodedBodySize),i|=Gm(r,"decodedBodySize",n.decodedBodySize)}else e.perfMark&&(i|=Gm(r,"missing",e.perfAttempts));i&&(t.properties=r)}(e,s),n&&qm(e.requestHeaders).length>0&&(s.properties=s.properties||{},s.properties.requestHeaders=e.requestHeaders),r){var o=r();if(o){var a=o.correlationContext;if(a&&(s.correlationContext=a),o.headerMap&&qm(o.headerMap).length>0&&(s.properties=s.properties||{},s.properties.responseHeaders=o.headerMap),e.status>=400){var l=o.type;s.properties=s.properties||{},""!==l&&"text"!==l||(s.properties.responseText=o.responseText?o.statusText+" - "+o.responseText:o.statusText),"json"===l&&(s.properties.responseText=o.response?o.statusText+" - "+JSON.stringify(o.response):o.statusText)}}}return s}})},Km=function(){function e(t,n){var r=this;r.traceFlag=e.DEFAULT_TRACE_FLAG,r.version=e.DEFAULT_VERSION,r.traceId=t&&e.isValidTraceId(t)?t:dg.generateW3CId(),r.spanId=n&&e.isValidSpanId(n)?n:dg.generateW3CId().substr(0,16)}return e.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},e.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},e.prototype.toString=function(){var e=this;return e.version+"-"+e.traceId+"-"+e.spanId+"-"+e.traceFlag},e.DEFAULT_TRACE_FLAG="01",e.DEFAULT_VERSION="00",e}(),Xm="ai.ajxmn.",Zm="fetch",Qm=uf.isNullOrUndefined,Jm=uf.arrForEach,Ym=uf.objKeys,ev=0;function tv(e){var t="";try{Qm(e)||Qm(e.ajaxData)||Qm(e.ajaxData.requestUrl)||(t+="(url: '"+e.ajaxData.requestUrl+"')")}catch(n){}return t}function nv(e,t,n,r,i){e.diagLog().throwInternal(cf.CRITICAL,t,n,r,i)}function rv(e,t,n,r,i){e.diagLog().throwInternal(cf.WARNING,t,n,r,i)}function iv(e,t,n){return function(r){nv(e,t,n,{ajaxDiagnosticsMessage:tv(r.inst),exception:dg.dump(r.err)})}}function sv(e,t){return e&&t?e.indexOf(t):-1}var ov,av=function(e){function t(){var n=e.call(this)||this;n.identifier=t.identifier,n.priority=120;var r,i,s,o,a=Vp(),l=!1,c=!1,u=a&&a.host&&a.host.toLowerCase(),h=t.getEmptyConfig(),d=!1,p=0,f=!1,g=0,m=!1,v=[],y={};return Df(t,n,function(e,n){function a(e,t,n){v.push(function(e,t,n){return e?Hm(e.prototype,t,n,!1):null}(e,t,n))}function w(e,t,n){var r=!1,i=((uf.isString(t)?t:(t||{}).url||"")||"").toLowerCase(),s=sv(i,"?"),o=sv(i,"#");return(-1===s||-1!==o&&o=0;p--){var f=d[p];if(f){if("resource"===f.entryType)f.initiatorType!==e||-1===sv(f.name,l)&&-1===sv(l,f.name)||(h=f);else if("mark"===f.entryType&&f.name===i.name){t.perfTiming=h;break}if(f.startTime=o||!1===t.async?(i&&uf.isFunction(s.clearMarks)&&s.clearMarks(i.name),t.perfAttempts=c,n()):setTimeout(u,a)}catch(g){r(g)}}()}function T(t){var n="";try{Qm(t)||(n+="string"==typeof t?"(url: '"+t+"')":"(url: '"+t.url+"')")}catch(r){nv(e,15,"Failed to grab failed fetch diagnostics message",{exception:dg.dump(r)})}return n}function I(t,n,r,i,s,o){function a(t,n,i){var s=i||{};s.fetchDiagnosticsMessage=T(r),n&&(s.exception=dg.dump(n)),rv(e,t,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",s)}i&&(i.responseFinishedTime=mg.Now(),i.status=n,S("fetch",i,function(){var t=i.CreateTrackItem("Fetch",d,s);t?e.trackDependencyDataInternal(t):a(14,null,{requestSentTime:i.requestSentTime,responseFinishedTime:i.responseFinishedTime})},function(e){a(18,e,null)}))}function E(t){if(t&&t.headers)try{var n=t.headers.get(ag.requestContextHeader);return fg.getCorrelationContext(n)}catch(r){rv(e,18,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:T(t),exception:dg.dump(r)})}}e.initialize=function(u,p,y,T){if(!e.isInitialized()){n.initialize(u,p,y,T);var k=e._getTelCtx(),A=t.getDefaultConfig();Jm(Ym(A),function(e){h[e]=k.getConfig(t.identifier,e,A[e])});var R=h.distributedTracingMode;if(d=h.enableRequestHeaderTracking,g=h.maxAjaxCallsPerView,m=h.enableResponseHeaderTracking,s=R===Jf.AI||R===Jf.AI_AND_W3C,i=R===Jf.AI_AND_W3C||R===Jf.W3C,f=h.enableAjaxPerfTracking){var N=u.instrumentationKey||"unkwn";o=N.length>5?Xm+N.substring(N.length-5)+".":Xm+N+"."}if(!1===h.disableAjaxTracking&&function(e){var t=!1;if(typeof XMLHttpRequest!==Np&&!Qm(XMLHttpRequest)){var n=XMLHttpRequest.prototype;t=!(Qm(n)||Qm(n.open)||Qm(n.send)||Qm(n.abort))}var r=dg.getIEVersion();if(r&&r<9&&(t=!1),t)try{(new XMLHttpRequest).ajaxData={};var i=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=i}catch(s){t=!1,nv(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:dg.dump(s)})}return t}(e)&&!c&&(a(XMLHttpRequest,"open",{req:function(t,n,i,s){var o=t.inst,a=o.ajaxData;w(o,i)||!_(o,!0)||a&&a.xhrMonitoringState.openDone||function(t,n,i,s){var o=r&&r.telemetryTrace&&r.telemetryTrace.traceID||dg.generateW3CId(),a=dg.generateW3CId().substr(0,16),l=new Wm(o,a,e.diagLog());l.method=n,l.requestUrl=i,l.xhrMonitoringState.openDone=!0,l.requestHeaders={},l.async=s,t.ajaxData=l,function(t){t.ajaxData.xhrMonitoringState.stateChangeAttached=df.Attach(t,"readystatechange",function(){try{t&&4===t.readyState&&_(t)&&function(t){var n=t.ajaxData;function r(n,r){var i=r||{};i.ajaxDiagnosticsMessage=tv(t),n&&(i.exception=dg.dump(n)),rv(e,14,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",i)}n.responseFinishedTime=mg.Now(),n.status=t.status,S("xmlhttprequest",n,function(){try{var i=n.CreateTrackItem("Ajax",d,function(){var e={statusText:t.statusText,headerMap:null,correlationContext:x(t),type:t.responseType,responseText:b(t),response:t.response};if(m){var n=t.getAllResponseHeaders();if(n){var r=uf.strTrim(n).split(/[\r\n]+/),i={};Jm(r,function(e){var t=e.split(": "),n=t.shift(),r=t.join(": ");i[n]=r}),e.headerMap=i}}return e});i?e.trackDependencyDataInternal(i):r(null,{requestSentTime:n.requestSentTime,responseFinishedTime:n.responseFinishedTime})}finally{try{t.ajaxData=null}catch(s){}}},function(e){r(e,null)})}(t)}catch(r){var n=dg.dump(r);n&&-1!==sv(n.toLowerCase(),"c00c023f")||nv(e,16,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:tv(t),exception:n})}})}(t)}(o,n,i,s)},hkErr:iv(e,15,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),a(XMLHttpRequest,"send",{req:function(t,n){var r=t.inst,i=r.ajaxData;_(r)&&!i.xhrMonitoringState.sendDone&&(C("xhr",i),i.requestSentTime=mg.Now(),r=e.includeCorrelationHeaders(i,void 0,void 0,r),i.xhrMonitoringState.sendDone=!0)},hkErr:iv(e,17,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),a(XMLHttpRequest,"abort",{req:function(e){var t=e.inst,n=t.ajaxData;_(t)&&!n.xhrMonitoringState.abortDone&&(n.aborted=1,n.xhrMonitoringState.abortDone=!0)},hkErr:iv(e,13,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),d&&a(XMLHttpRequest,"setRequestHeader",{req:function(e,t,n){var r=e.inst;_(r)&&(r.ajaxData.requestHeaders[t]=n)},hkErr:iv(e,71,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),c=!0),function(){var t,n=!(t=Lp())||Qm(t.Request)||Qm(t.Request.prototype)||Qm(t.fetch)?null:t.fetch;if(n){var i=Lp(),s=n.polyfill;!1===h.disableFetchTracking?(v.push(Hm(i,Zm,{req:function(t,n,i){var o;if(l&&!w(null,n,i)&&(!s||!c)){var a=t.ctx();o=function(t,n){var i=r&&r.telemetryTrace&&r.telemetryTrace.traceID||dg.generateW3CId(),s=dg.generateW3CId().substr(0,16),o=new Wm(i,s,e.diagLog());o.requestSentTime=mg.Now(),o.requestUrl=t instanceof Request?t?t.url:"":t;var a="GET";n&&n.method?a=n.method:t&&t instanceof Request&&(a=t.method),o.method=a;var l={};return d&&new Headers((n?n.headers:0)||t instanceof Request&&t.headers||{}).forEach(function(e,t){l[t]=e}),o.requestHeaders=l,C("fetch",o),o}(n,i);var u=e.includeCorrelationHeaders(o,n,i);u!==i&&t.set(1,u),a.data=o}},rsp:function(e,t){var n=e.ctx().data;n&&(e.rslt=e.rslt.then(function(e){return I(0,(e||{}).status,e,n,function(){var t={statusText:e.statusText,headerMap:null,correlationContext:E(e)};if(m){var n={};e.headers.forEach(function(e,t){n[t]=e}),t.headerMap=n}return t}),e}).catch(function(e){throw I(0,0,t,n,null),e}))},hkErr:iv(e,15,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),l=!0):s&&v.push(Hm(i,Zm,{req:function(e,t,n){w(null,t,n)}})),s&&(i.fetch.polyfill=s)}}(),y.length>0&&y){for(var D=void 0,P=0;!D&&P0)throw new Error("Extensions not allowed in legacy mode");return Ff(i.core,function(){return"AISKU.loadAppInsights"},function(){var s=[],o=new Sm;s.push(o),s.push(i.properties),s.push(i.dependencies),s.push(i.appInsights),i.core.initialize(i.config,s,t,n),i.context=i.properties.context,ov&&i.context&&(i.context.internal.sdkSrc=ov),function(t){if(t){var n="";for(var r in uf.isNullOrUndefined(i._snippetVersion)||(n+=i._snippetVersion),e&&(n+=".lg"),i.context&&i.context.internal&&(i.context.internal.snippetVer=n||"-"),i)uf.isString(r)&&!uf.isFunction(i[r])&&"_"!==r.substring(0,1)&&(t[r]=i[r])}}(i.snippet),i.emptyQueue(),i.pollInternalLogs(),i.addHousekeepingBeforeUnload(r)}),i},e.prototype.updateSnippetDefinitions=function(e){for(var t in this)uf.isString(t)&&(e[t]=this[t])},e.prototype.emptyQueue=function(){var e=this;try{if(dg.isArray(e.snippet.queue)){for(var t=e.snippet.queue.length,n=0;n0?e.config.diagnosticLogInterval:1e4},e}();!function(){var e=null,t=["://az416426.vo.msecnd.net/"];try{var n=(document||{}).currentScript;n&&(e=n.src)}catch(o){}if(e)try{var r=e.toLowerCase();if(r)for(var i="",s=0;s{class e{constructor(){this.appInsights=new lv({config:{instrumentationKey:kl.appInsights.instrumentationKey,enableAutoRouteTracking:!0}}),this.appInsights.loadAppInsights()}logPageView(e,t){kl.appInsights.loggingDisabled||this.appInsights.trackPageView({name:e,uri:t})}logEvent(e,t){kl.appInsights.loggingDisabled||this.appInsights.trackEvent({name:e},t)}logMetric(e,t,n){kl.appInsights.loggingDisabled||this.appInsights.trackMetric({name:e,average:t},n)}logException(e,t){kl.appInsights.loggingDisabled||this.appInsights.trackException({exception:e,severityLevel:t})}logTrace(e,t){kl.appInsights.loggingDisabled||this.appInsights.trackTrace({message:e},t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),uv=(()=>{class e{constructor(){const e=zs.resolveAndCreate([cv]);this.loggingService=e.get(cv),this.logNavigation()}logNavigation(){this.loggingService.logPageView()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ut({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})();class hv{}class dv{}class pv{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 pv?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 pv;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof pv?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()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class fv{encodeKey(e){return gv(e)}encodeValue(e){return gv(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function gv(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 mv{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new fv,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 mv({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 vv(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function yv(e){return"undefined"!=typeof Blob&&e instanceof Blob}function wv(e){return"undefined"!=typeof FormData&&e instanceof FormData}class _v{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 pv),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":nt.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new _v(t,n,i,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:s})}}var bv=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 xv{constructor(e,t=200,n="OK"){this.headers=e.headers||new pv,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 Cv extends xv{constructor(e={}){super(e),this.type=bv.ResponseHeader}clone(e={}){return new Cv({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 Sv extends xv{constructor(e={}){super(e),this.type=bv.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Sv({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 Tv extends xv{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 Iv(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Ev=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof _v)r=e;else{let i=void 0;i=n.headers instanceof pv?n.headers:new pv(n.headers);let s=void 0;n.params&&(s=n.params instanceof mv?n.params:new mv({fromObject:n.params})),r=new _v(e,t,void 0!==n.body?n.body:null,{headers:i,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Pc(r).pipe(yu(e=>this.handler.handle(e)));if(e instanceof _v||"events"===n.observe)return i;const s=i.pipe($c(e=>e instanceof Sv));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(E(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return s.pipe(E(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return s.pipe(E(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return s.pipe(E(e=>e.body))}case"response":return s;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 mv).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,Iv(n,t))}post(e,t,n={}){return this.request("POST",e,Iv(n,t))}put(e,t,n={}){return this.request("PUT",e,Iv(n,t))}}return e.\u0275fac=function(t){return new(t||e)(Ke(hv))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();class kv{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const Av=new Me("HTTP_INTERCEPTORS");let Rv=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const Nv=/^\)\]\}',?\n/;class Dv{}let Pv=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),Ov=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new w(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=()=>{if(null!==i)return i;const t=1223===n.status?204:n.status,r=n.statusText||"OK",s=new pv(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 Cv({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 c=i>=200&&i<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(Nv,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=e,c&&(c=!1,l={error:u,text:l})}}c?(t.next(new Sv({body:l,headers:r,status:i,statusText:o,url:a||void 0})),t.complete()):t.error(new Tv({error:l,headers:r,status:i,statusText:o,url:a||void 0}))},a=e=>{const{url:r}=s(),i=new Tv({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(i)};let l=!1;const c=r=>{l||(t.next(s()),l=!0);let i={type:bv.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===e.responseType&&n.responseText&&(i.partialText=n.responseText),t.next(i)},u=e=>{let n={type:bv.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",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),t.next({type:bv.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),e.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(Ke(Dv))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const Lv=new Me("XSRF_COOKIE_NAME"),Uv=new Me("XSRF_HEADER_NAME");class Mv{}let jv=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Jl(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(Ke(Nl),Ke(ja),Ke(Lv))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),Fv=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const 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)}}return e.\u0275fac=function(t){return new(t||e)(Ke(Mv),Ke(Uv))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),Hv=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(Av,[]);this.chain=e.reduceRight((e,t)=>new kv(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(Ke(dv),Ke(bs))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),qv=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:Fv,useClass:Rv}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:Lv,useValue:t.cookieName}:[],t.headerName?{provide:Uv,useValue:t.headerName}:[]]}}}return e.\u0275mod=ft({type:e}),e.\u0275inj=de({factory:function(t){return new(t||e)},providers:[Fv,{provide:Av,useExisting:Fv,multi:!0},{provide:Mv,useClass:jv},{provide:Lv,useValue:"XSRF-TOKEN"},{provide:Uv,useValue:"X-XSRF-TOKEN"}]}),e})(),Vv=(()=>{class e{}return e.\u0275mod=ft({type:e}),e.\u0275inj=de({factory:function(t){return new(t||e)},providers:[Ev,{provide:hv,useClass:Hv},Ov,{provide:dv,useExisting:Ov},Pv,{provide:Dv,useExisting:Pv}],imports:[[qv.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();var zv=function(e){return e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.PUT=2]="PUT",e[e.DELETE=3]="DELETE",e}({});let Bv=(()=>{class e{constructor(e){this.httpClient=e}get(e,t=null,n="json",r="api"){return this.httpRequest(e,zv.GET,t,n,r)}post(e,t=null){return this.httpRequest(e,zv.POST,t)}put(e,t=null){return this.httpRequest(e,zv.PUT,t)}delete(e,t=null){return this.httpRequest(e,zv.DELETE,t)}httpRequest(e,t,n=null,r="json",i="api"){const s="api"==i?kl.apiHost+e+"?code="+kl.apiKey:kl.staticContentHost+e;switch(t){case zv.GET:return Object(this.httpClient.get(s,{responseType:r}));case zv.POST:return Object(this.httpClient.post(s,n,{responseType:r}));case zv.PUT:return Object(this.httpClient.put(s,n));case zv.DELETE:return Object(this.httpClient.delete(s))}}}return e.\u0275fac=function(t){return new(t||e)(Ke(Ev))},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Gv=(()=>{class e{constructor(e,t,n,r){this.renderer=e,this.templateRef=t,this.viewContainer=n,this.apiClient=r}ngOnInit(){this.insertStaticView()}ngOnChanges(e){this.appStaticHtml&&this.insertStaticView()}insertStaticView(){this.apiClient.get(this.appStaticHtml,null,"text","static").subscribe(e=>{this.replaceHtml(String(e))})}replaceHtml(e){this.viewContainer.remove();const t=this.viewContainer.createEmbeddedView(this.templateRef);this.renderer.setProperty(t.rootNodes[0],"innerHTML",e)}}return e.\u0275fac=function(t){return new(t||e)(oo(Uo),oo(na),oo(ia),oo(Bv))},e.\u0275dir=mt({type:e,selectors:[["","appStaticHtml",""]],inputs:{appStaticHtml:"appStaticHtml",appStaticHtmlTrusted:"appStaticHtmlTrusted"},features:[Ut]}),e})();function $v(e,t){1&e&&po(0,"section",29)}let Wv=(()=>{class e extends uv{constructor(){super(),this.trustSource=!1,this.welcomeHtml="articles/welcome.html",this.tocHtml="articles/toc.html"}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ut({type:e,selectors:[["app-home"]],features:[Ks],decls:75,vars:2,consts:[["id","hero",1,"d-flex","align-items-center"],[1,"container"],[1,"row"],[1,"col-lg-6","pt-5","pt-lg-0","order-2","order-lg-1"],["routerLink","/articles/Lesson-One-It-all-starts-in-The-Backlog",1,"btn","btn-get-started"],[1,"col-lg-6","order-1","order-lg-2","hero-img"],["src","assets/img/hero-img.svg","alt","",1,"img-fluid","animated"],["id","about","class","about",4,"appStaticHtml","appStaticHtmlTrusted"],["id","toc",1,"toc","section-bg"],["data-aos","fade-up",1,"section-title"],[1,"toc-list"],["data-aos","fade-up","data-aos-delay","100"],["data-toggle","collapse","href","#toc1","aria-expanded","false","aria-controls","toc1"],[1,"icofont-simple-up"],["id","toc1","data-parent",".toc-list",1,"collapse"],["routerLink","/articles/Lesson-One-It-all-starts-in-The-Backlog",1,"read-more"],["data-aos","fade-up","data-aos-delay","200"],["data-toggle","collapse","href","#toc2","aria-expanded","false","aria-controls","toc2"],["id","toc2","data-parent",".toc-list",1,"collapse"],["href","#",1,"read-more"],["data-aos","fade-up","data-aos-delay","300"],["data-toggle","collapse","href","#toc3","aria-expanded","false","aria-controls","toc3"],["id","toc3","data-parent",".toc-list",1,"collapse"],["data-aos","fade-up","data-aos-delay","400"],["data-toggle","collapse","href","#toc4","aria-expanded","true","aria-controls","toc4"],["id","toc4","data-parent",".toc-list",1,"collapse","show"],["data-aos","fade-up","data-aos-delay","500"],[1,"icofont-simple-down"],["data-aos","fade-up","data-aos-delay","600"],["id","about",1,"about"]],template:function(e,t){1&e&&(uo(0,"section",0),uo(1,"div",1),uo(2,"div",2),uo(3,"div",3),uo(4,"h1"),yo(5,"Helping developers build Azure cloud solutions"),ho(),uo(6,"h2"),yo(7,"Web Applications, APIs, Storage, Security, Identity, Data Analytics, Machine Learning, and more"),ho(),uo(8,"a",4),yo(9,"Get Started"),ho(),ho(),uo(10,"div",5),po(11,"img",6),ho(),ho(),ho(),ho(),so(12,$v,1,0,"section",7),uo(13,"section",8),uo(14,"div",1),uo(15,"div",9),uo(16,"h2"),yo(17,"Table of Contents"),ho(),uo(18,"p"),yo(19,"Start at the beginning, and when you get to the end - stop."),ho(),ho(),uo(20,"ul",10),uo(21,"li",11),uo(22,"a",12),yo(23,"Lesson One - It all starts in The Backlog"),po(24,"i",13),ho(),uo(25,"div",14),uo(26,"p"),yo(27,' For most software developers these days, we live in "the backlog". The backlog has a beginning, but - generally speaking - it never has an end. However, when managed correctly, the backlog can be your greatest ally.\xa0'),uo(28,"a",15),yo(29,"read more"),ho(),ho(),ho(),ho(),uo(30,"li",16),uo(31,"a",17),yo(32,"Lesson Two - Start Simple: Create an extremely low-cost Azure hosted website"),po(33,"i",13),ho(),uo(34,"div",18),uo(35,"p"),yo(36," The first month of this website cost me a grand total of $0.85 in Azure billing. Seriously. And this is not some insane secret that will soon be discovered and shut-down by Microsoft. Quite the contrary; they want you to do it!\xa0"),uo(37,"a",19),yo(38,"read more"),ho(),ho(),ho(),ho(),uo(39,"li",20),uo(40,"a",21),yo(41,"Lesson Three - Implement Azure CDN for maximum distribution to a global audiance"),po(42,"i",13),ho(),uo(43,"div",22),uo(44,"p"),yo(45," Now that we have our gorgeous little website being hosted at rate that any budget can afford, let's kick things up a notch and bring some surprisingly low cost performance and scalability to it with Azure's content delivery network.\xa0"),uo(46,"a",19),yo(47,"read more"),ho(),ho(),ho(),ho(),uo(48,"li",23),uo(49,"a",24),yo(50,"Lesson Four - Our First Upgrade: It's time for Angular"),po(51,"i",13),ho(),uo(52,"div",25),uo(53,"p"),yo(54," Sometimes, a single HTML page is all you need. But when your content is expected to grow you'll definitely need a way to effectively manage your growing content. Angular is the perfect upgrade if one of our goals is to continue hosting our site from a simple file share.\xa0"),uo(55,"a",19),yo(56,"read more"),ho(),ho(),ho(),ho(),uo(57,"li",26),yo(58," Lesson Five - Add a serverless API with Azure Functions"),po(59,"i",27),ho(),uo(60,"li",28),yo(61," Lesson Six - NoSQL, no problem. Cosmos database is what we need"),po(62,"i",27),ho(),uo(63,"li",28),yo(64," Lesson Seven - Change management: The Code Repository and Git"),po(65,"i",27),ho(),uo(66,"li",28),yo(67," Lesson Eight - Infrastructure as Code (IaC) with ARM templates"),po(68,"i",27),ho(),uo(69,"li",28),yo(70," Lesson Nine - Automate building, testing, and releasing with an automated CI/CD pipeline"),po(71,"i",27),ho(),uo(72,"li",28),yo(73," Lesson Ten - Monitoring and Notifications - Know what's going on"),po(74,"i",27),ho(),ho(),ho(),ho()),2&e&&(ti(12),lo("appStaticHtml",t.welcomeHtml)("appStaticHtmlTrusted",t.trustSource))},directives:[Yd,Gv],styles:[""]}),e})();function Kv(e,t){1&e&&po(0,"section",3)}const Xv=[{path:"",component:Wv},{path:"glossary",component:(()=>{class e extends uv{constructor(){super()}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ut({type:e,selectors:[["app-glossary"]],features:[Ks],decls:28,vars:0,consts:[[1,"row","justify-content-center","pt-4"],[1,"col-sm-10","col-md-8"],["id","article",1,"article","p-3"],["href","https://www.agilealliance.org/agile101/the-agile-manifesto/"],["href","https://www.agilealliance.org/agile101/12-principles-behind-the-agile-manifesto/"]],template:function(e,t){1&e&&(uo(0,"div",0),uo(1,"div",1),uo(2,"section",2),uo(3,"h1"),yo(4,"Geek Glossary"),ho(),uo(5,"dl"),uo(6,"dt"),yo(7,"Agile"),ho(),uo(8,"dd"),yo(9,"Agile software development is an umbrella term for a set of frameworks and practices based on the values and principles expressed in the "),uo(10,"a",3),yo(11,"Manifesto for Agile Software Development"),ho(),yo(12," and the "),uo(13,"a",4),yo(14,"12 Principles"),ho(),yo(15," behind it."),ho(),uo(16,"dt"),yo(17,"Backlog"),ho(),uo(18,"dd"),yo(19,"A product backlog is a list of the new features, changes to existing features, bug fixes, infrastructure changes or other activities that a team may deliver in order to achieve a specific outcome. The product backlog is the single authoritative source for things that a team works on."),ho(),uo(20,"dt"),yo(21,"Incremental Development"),ho(),uo(22,"dd"),yo(23,"Nearly all Agile teams favor an incremental development strategy; in an Agile context, this means that each successive version of the product is usable, and each builds upon the previous version by adding user-visible functionality."),ho(),uo(24,"dt"),yo(25,"Refactoring"),ho(),uo(26,"dd"),yo(27,"Refactoring consists of improving the internal structure of an existing program\u2019s source code, while preserving its external behavior."),ho(),ho(),ho(),ho(),ho())},styles:[""]}),e})()},{path:"toc",component:(()=>{class e extends uv{constructor(){super()}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ut({type:e,selectors:[["app-toc"]],features:[Ks],decls:64,vars:0,consts:[[1,"row","justify-content-center","pt-4"],[1,"col-sm-10","col-md-8"],["id","toc",1,"toc","section-bg"],[1,"container"],["data-aos","fade-up",1,"section-title"],[1,"toc-list"],["data-aos","fade-up","data-aos-delay","100"],["data-toggle","collapse","href","#toc1","aria-expanded","false","aria-controls","toc1"],[1,"icofont-simple-up"],["id","toc1","data-parent",".toc-list",1,"collapse"],["routerLink","/articles/Lesson-One-It-all-starts-in-The-Backlog",1,"read-more"],["data-aos","fade-up","data-aos-delay","200"],["data-toggle","collapse","href","#toc2","aria-expanded","false","aria-controls","toc2"],["id","toc2","data-parent",".toc-list",1,"collapse"],["href","#",1,"read-more"],["data-aos","fade-up","data-aos-delay","300"],["data-toggle","collapse","href","#toc3","aria-expanded","false","aria-controls","toc3"],["id","toc3","data-parent",".toc-list",1,"collapse"],["data-aos","fade-up","data-aos-delay","400"],["data-toggle","collapse","href","#toc4","aria-expanded","true","aria-controls","toc4"],["id","toc4","data-parent",".toc-list",1,"collapse","show"],["data-aos","fade-up","data-aos-delay","500"],[1,"icofont-simple-down"],["data-aos","fade-up","data-aos-delay","600"]],template:function(e,t){1&e&&(uo(0,"div",0),uo(1,"div",1),uo(2,"section",2),uo(3,"div",3),uo(4,"div",4),uo(5,"h2"),yo(6,"Table of Contents"),ho(),uo(7,"p"),yo(8,"Start at the beginning, and when you get to the end - stop."),ho(),ho(),uo(9,"ul",5),uo(10,"li",6),uo(11,"a",7),yo(12,"Lesson One - It all starts in The Backlog"),po(13,"i",8),ho(),uo(14,"div",9),uo(15,"p"),yo(16,' For most software developers these days, we live in "the backlog". The backlog has a beginning, but - generally speaking - it never has an end. However, when managed correctly, the backlog can be your greatest ally.\xa0'),uo(17,"a",10),yo(18,"read more"),ho(),ho(),ho(),ho(),uo(19,"li",11),uo(20,"a",12),yo(21,"Lesson Two - Start Simple: Create an extremely low-cost Azure hosted website"),po(22,"i",8),ho(),uo(23,"div",13),uo(24,"p"),yo(25," The first month of this website cost me a grand total of $0.85 in Azure billing. Seriously. And this is not some insane secret that will soon be discovered and shut-down by Microsoft. Quite the contrary; they want you to do it!\xa0"),uo(26,"a",14),yo(27,"read more"),ho(),ho(),ho(),ho(),uo(28,"li",15),uo(29,"a",16),yo(30,"Lesson Three - Implement Azure CDN for maximum distribution to a global audiance"),po(31,"i",8),ho(),uo(32,"div",17),uo(33,"p"),yo(34," Now that we have our gorgeous little website being hosted at rate that any budget can afford, let's kick things up a notch and bring some surprisingly low cost performance and scalability to it with Azure's content delivery network.\xa0"),uo(35,"a",14),yo(36,"read more"),ho(),ho(),ho(),ho(),uo(37,"li",18),uo(38,"a",19),yo(39,"Lesson Four - Our First Upgrade: It's time for Angular"),po(40,"i",8),ho(),uo(41,"div",20),uo(42,"p"),yo(43," Sometimes, a single HTML page is all you need. But when your content is expected to grow you'll definitely need a way to effectively manage your growing content. Angular is the perfect upgrade if one of our goals is to continue hosting our site from a simple file share.\xa0"),uo(44,"a",14),yo(45,"read more"),ho(),ho(),ho(),ho(),uo(46,"li",21),yo(47," Lesson Five - Add a serverless API with Azure Functions"),po(48,"i",22),ho(),uo(49,"li",23),yo(50," Lesson Six - NoSQL, no problem. Cosmos database is what we need"),po(51,"i",22),ho(),uo(52,"li",23),yo(53," Lesson Seven - Change management: The Code Repository and Git"),po(54,"i",22),ho(),uo(55,"li",23),yo(56," Lesson Eight - Infrastructure as Code (IaC) with ARM templates"),po(57,"i",22),ho(),uo(58,"li",23),yo(59," Lesson Nine - Automate building, testing, and releasing with an automated CI/CD pipeline"),po(60,"i",22),ho(),uo(61,"li",23),yo(62," Lesson Ten - Monitoring and Notifications - Know what's going on"),po(63,"i",22),ho(),ho(),ho(),ho(),ho(),ho())},directives:[Yd],styles:[""]}),e})()},{path:"articles/:title",component:(()=>{class e extends uv{constructor(e){super(),this.route=e,this.trustSource=!1}ngOnInit(){let e=this.route.snapshot.paramMap.get("title");this.articleSource="articles/"+e+".html"}}return e.\u0275fac=function(t){return new(t||e)(oo(Dh))},e.\u0275cmp=ut({type:e,selectors:[["app-articles"]],features:[Ks],decls:3,vars:2,consts:[[1,"row","justify-content-center","pt-4"],[1,"col-sm-10","col-md-8"],["id","article","class","article p-3",4,"appStaticHtml","appStaticHtmlTrusted"],["id","article",1,"article","p-3"]],template:function(e,t){1&e&&(uo(0,"div",0),uo(1,"div",1),so(2,Kv,1,0,"section",2),ho(),ho()),2&e&&(ti(2),lo("appStaticHtml",t.articleSource)("appStaticHtmlTrusted",t.trustSource))},directives:[Gv],styles:[""]}),e})()},{path:"**",pathMatch:"full",component:Wv}];let Zv=(()=>{class e{}return e.\u0275mod=ft({type:e}),e.\u0275inj=de({factory:function(t){return new(t||e)},imports:[[dp.forRoot(Xv,{relativeLinkResolution:"legacy"})],dp]}),e})();const Qv=function(){return{exact:!0}};let Jv=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ut({type:e,selectors:[["app-header"]],decls:21,vars:2,consts:[["id","header",1,"fixed-top"],[1,"container-fluid","d-flex"],[1,"logo","mr-auto"],[1,"text-light"],["href","/"],[1,"nav-menu","d-none","d-lg-block"],["routerLink","/","routerLinkActive","active",3,"routerLinkActiveOptions"],["routerLink","/toc","routerLinkActive","active"],["routerLink","/glossary","routerLinkActive","active"],[1,"get-started"],["href","/articles/Lesson-One-It-all-starts-in-The-Backlog",1,"btn"]],template:function(e,t){1&e&&(uo(0,"header",0),uo(1,"div",1),uo(2,"div",2),uo(3,"h1",3),uo(4,"a",4),uo(5,"span"),yo(6,"Geekblaze"),ho(),ho(),ho(),ho(),uo(7,"nav",5),uo(8,"ul"),uo(9,"li"),uo(10,"a",6),yo(11,"Home"),ho(),ho(),uo(12,"li"),uo(13,"a",7),yo(14,"Table of Contents"),ho(),ho(),uo(15,"li"),uo(16,"a",8),yo(17,"Glossary"),ho(),ho(),uo(18,"li",9),uo(19,"a",10),yo(20,"Get Started"),ho(),ho(),ho(),ho(),ho(),ho()),2&e&&(ti(10),lo("routerLinkActiveOptions",ga(1,Qv)))},directives:[Yd,tp],styles:[""]}),e})();const Yv=function(){return{exact:!0}};let ey=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ut({type:e,selectors:[["app-site-nav"]],decls:13,vars:2,consts:[["routerLink","/","routerLinkActive","active",3,"routerLinkActiveOptions"],["routerLink","/toc","routerLinkActive","active"],["routerLink","/glossary","routerLinkActive","active"],[1,"get-started"],["href","/articles/Lesson-One-It-all-starts-in-The-Backlog",1,"btn"]],template:function(e,t){1&e&&(uo(0,"ul"),uo(1,"li"),uo(2,"a",0),yo(3,"Home"),ho(),ho(),uo(4,"li"),uo(5,"a",1),yo(6,"Table of Contents"),ho(),ho(),uo(7,"li"),uo(8,"a",2),yo(9,"Glossary"),ho(),ho(),uo(10,"li",3),uo(11,"a",4),yo(12,"Get Started"),ho(),ho(),ho()),2&e&&(ti(2),lo("routerLinkActiveOptions",ga(1,Yv)))},directives:[Yd,tp],styles:[""]}),e})(),ty=(()=>{class e{constructor(e){this.applicationVersion=kl.applicationVersion,this.apiClient=e}ngOnInit(){let e=document.querySelector("#subscriber-form");e.onsubmit=()=>{let t=document.querySelector('#subscriber-form input[type="submit"]');t.disabled=!0;let n=t.style.backgroundColor;t.style.backgroundColor="#666666",t.value="Submitting...";const r=new FormData(e).get("email");return 0==/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(r)?(alert("Invalid email address"),t.style.backgroundColor=n,t.value="Subscribe",t.disabled=!1):this.apiClient.post("subscribers",JSON.stringify({EmailAddress:r})).subscribe(t=>{e.innerHTML=200.1==t.statusCode||200.2==t.statusCode?`
${t.responseObject}
`:'
An error has occurred. 😢
'}),!1}}}return e.\u0275fac=function(t){return new(t||e)(oo(Bv))},e.\u0275cmp=ut({type:e,selectors:[["app-footer"]],decls:78,vars:1,consts:[["id","footer"],["data-aos","fade-up",1,"footer-newsletter"],[1,"container"],[1,"row","justify-content-center"],[1,"col-lg-6"],["id","subscriber-form"],["type","email","name","email"],["type","submit","value","Subscribe"],[1,"footer-top"],[1,"row"],["data-aos","fade-up","data-aos-delay","100",1,"col-lg-3","col-md-6","footer-contact"],["data-aos","fade-up","data-aos-delay","200",1,"col-lg-3","col-md-6","footer-links"],[1,"bx","bx-chevron-right"],["href","https://code.visualstudio.com/download"],["href","https://visualstudio.microsoft.com/downloads/"],["href","https://nodejs.org/en/download/"],["href","https://git-scm.com/downloads"],["href","https://docs.microsoft.com/en-us/azure/cosmos-db/local-emulator?tabs=cli%2Cssl-netstd21"],["data-aos","fade-up","data-aos-delay","400",1,"col-lg-3","col-md-6","footer-links"],["href","https://docs.microsoft.com/en-us/learn/azure/"],["href","https://docs.microsoft.com/en-us/azure/devops/get-started/?view=azure-devops"],["href","https://docs.microsoft.com/en-us/dotnet/csharp/"],["href","https://angular.io/docs"],["data-aos","fade-up","data-aos-delay","300",1,"col-lg-3","col-md-6","footer-links"],[1,"container","py-4"],[1,"copyright"],[1,"credits"],[1,"mobile-nav","d-lg-none"],[1,"mobile-nav-overly"],["href","#",1,"back-to-top"],[1,"icofont-simple-up"]],template:function(e,t){1&e&&(uo(0,"footer",0),uo(1,"div",1),uo(2,"div",2),uo(3,"div",3),uo(4,"div",4),uo(5,"h4"),yo(6,"Never Miss an Update"),ho(),uo(7,"p"),yo(8,"Add your email address and you'll be notified when new posts go live."),po(9,"br"),uo(10,"small"),uo(11,"b"),yo(12,"Privacy Policy: No selling, no spamming. Promise!"),ho(),ho(),ho(),uo(13,"form",5),po(14,"input",6),po(15,"input",7),ho(),ho(),ho(),ho(),ho(),uo(16,"div",8),uo(17,"div",2),uo(18,"div",9),po(19,"div",10),uo(20,"div",11),uo(21,"h4"),yo(22,"Useful Links"),ho(),uo(23,"ul"),uo(24,"li"),po(25,"i",12),uo(26,"a",13),yo(27,"Download Visual Studio Code (free)"),ho(),ho(),uo(28,"li"),po(29,"i",12),uo(30,"a",14),yo(31,"Download Visual Studio for (free)"),ho(),ho(),uo(32,"li"),po(33,"i",12),uo(34,"a",15),yo(35,"Download Node.js"),ho(),ho(),uo(36,"li"),po(37,"i",12),uo(38,"a",16),yo(39,"Download Git"),ho(),ho(),uo(40,"li"),po(41,"i",12),uo(42,"a",17),yo(43,"Download Cosmos DB Emulator"),ho(),ho(),ho(),ho(),uo(44,"div",18),uo(45,"h4"),yo(46,"\xa0"),ho(),uo(47,"ul"),uo(48,"li"),po(49,"i",12),uo(50,"a",19),yo(51,"Free Azure training"),ho(),ho(),uo(52,"li"),po(53,"i",12),uo(54,"a",20),yo(55,"Free Azure DevOps training"),ho(),ho(),uo(56,"li"),po(57,"i",12),uo(58,"a",21),yo(59,"C# Language Reference"),ho(),ho(),uo(60,"li"),po(61,"i",12),uo(62,"a",22),yo(63,"Angular reference materials"),ho(),ho(),ho(),ho(),po(64,"div",23),ho(),ho(),ho(),uo(65,"div",24),uo(66,"div",25),yo(67," \xa9 Copyright "),uo(68,"strong"),yo(69,"Geekblaze"),ho(),yo(70,". All Rights Reserved "),ho(),uo(71,"div",26),yo(72),ho(),ho(),ho(),uo(73,"nav",27),po(74,"app-site-nav"),ho(),po(75,"div",28),uo(76,"a",29),po(77,"i",30),ho()),2&e&&(ti(72),wo(" Application Version: ",t.applicationVersion," "))},directives:[ey],styles:[""]}),e})(),ny=(()=>{class e{constructor(e,t){this.loggingService=e,this.titleService=t,this.titleService.setTitle("Geekblaze - Helping developers build Azure cloud solutions")}setTitle(e){this.titleService.setTitle(e)}}return e.\u0275fac=function(t){return new(t||e)(oo(cv),oo(Dc))},e.\u0275cmp=ut({type:e,selectors:[["app-root"]],decls:4,vars:0,consts:[["id","main"]],template:function(e,t){1&e&&(po(0,"app-header"),uo(1,"main",0),po(2,"router-outlet"),ho(),po(3,"app-footer"))},directives:[Jv,np,ty],styles:[""]}),e})(),ry=(()=>{class e extends ur{constructor(e){super(),this.loggingService=e}handleError(e){this.loggingService.logException(e)}}return e.\u0275fac=function(t){return new(t||e)(Ke(cv))},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),iy=(()=>{class e{}return e.\u0275mod=ft({type:e,bootstrap:[ny,ey,Jv,ty]}),e.\u0275inj=de({factory:function(t){return new(t||e)},providers:[Dc,{provide:Window,useValue:window},{provide:ur,useClass:ry}],imports:[[Rc,Zv,Vv,dp]]}),e})();kl.production&&function(){if(pr)throw new Error("Cannot enable prod mode after platform setup.");dr=!1}(),kc().bootstrapModule(iy).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"}},[[0,0]]]);