UNPKG

@angular/core

Version:

Angular - the core framework

360 lines (358 loc) 305 kB
/** * @license Angular v10.0.3 * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@angular/core",["exports","rxjs","rxjs/operators"],t):t(((e=e||self).ng=e.ng||{},e.ng.core={}),e.rxjs,e.rxjs.operators)}(this,(function(e,t,n){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function e(t){for(var n,r=1,o=arguments.length;r<o;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)};function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function s(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function l(e){return{toString:e}.toString()} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var c="__annotations__",f="__parameters__",d="__prop__metadata__";function p(e,t,n,r,o){return l((function(){var i=h(t);function a(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this instanceof a)return i.call.apply(i,s([this],t)),this;var u=new((e=a).bind.apply(e,s([void 0],t)));return function e(n){return o&&o.apply(void 0,s([n],t)),(n.hasOwnProperty(c)?n[c]:Object.defineProperty(n,c,{value:[]})[c]).push(u),r&&r(n),n}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a}))}function h(e){return function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(e){var o=e.apply(void 0,s(n));for(var i in o)this[i]=o[i]}}}function v(e,t,n){return l((function(){var r=h(t);function o(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this instanceof o)return r.apply(this,t),this;var i=new((e=o).bind.apply(e,s([void 0],t)));return a.annotation=i,a;function a(e,t,n){for(var r=e.hasOwnProperty(f)?e[f]:Object.defineProperty(e,f,{value:[]})[f];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(i),e}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o}))}function y(e,t,n,r){return l((function(){var o=h(t);function i(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this instanceof i)return o.apply(this,t),this;var a=new((e=i).bind.apply(e,s([void 0],t)));function u(e,n){var o=e.constructor,i=o.hasOwnProperty(d)?o[d]:Object.defineProperty(o,d,{value:{}})[d];i[n]=i.hasOwnProperty(n)&&i[n]||[],i[n].unshift(a),r&&r.apply(void 0,s([e,n],t))}return u}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var g,m=function(e){return{token:e}},_=v("Inject",m),w=v("Optional"),b=v("Self"),C=v("SkipSelf"),I=v("Host"),x=function(e){return{attributeName:e}},E=v("Attribute",x); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function k(e){for(var t in e)if(e[t]===k)return t;throw Error("Could not find renamed property on target object.")}function O(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function P(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}( /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ g=e.InjectFlags||(e.InjectFlags={}))[g.Default=0]="Default",g[g.Host=1]="Host",g[g.Self=2]="Self",g[g.SkipSelf=4]="SkipSelf",g[g.Optional=8]="Optional";var N=P;function T(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function j(e){return D(e,e[S])||D(e,e[F])}function D(e,t){return t&&t.token===e?t:null}function A(e){return e&&(e.hasOwnProperty(R)||e.hasOwnProperty(M))?e[R]:null}var S=k({"ɵprov":k}),R=k({"ɵinj":k}),V=k({"ɵprovFallback":k}),F=k({ngInjectableDef:k}),M=k({ngInjectorDef:k}); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function H(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(H).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function L(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var B=k({__forward_ref__:k});function U(e){return e.__forward_ref__=U,e.toString=function(){return H(this())},e}function Q(e){return z(e)?e():e}function z(e){return"function"==typeof e&&e.hasOwnProperty(B)&&e.__forward_ref__===U} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var q,W,Z,K="undefined"!=typeof globalThis&&globalThis,G="undefined"!=typeof window&&window,J="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Y="undefined"!=typeof global&&global,$=K||Y||G||J; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function X(){var e=$.ng;if(!e||!e.ɵcompilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.ɵcompilerFacade} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */!function(e){e[e.Token=0]="Token",e[e.Attribute=1]="Attribute",e[e.ChangeDetectorRef=2]="ChangeDetectorRef",e[e.Invalid=3]="Invalid"}(q||(q={})),function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"}(W||(W={})),function(e){e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Z||(Z={}));var ee,te=k({"ɵcmp":k}),ne=k({"ɵdir":k}),re=k({"ɵpipe":k}),oe=k({"ɵmod":k}),ie=k({"ɵloc":k}),ae=k({"ɵfac":k}),ue=k({__NG_ELEMENT_ID__:k}),se=function(){function e(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ɵprov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ɵprov=P({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),le=new se("INJECTOR",-1),ce={},fe=/\n/gm,de=k({provide:String,useValue:k}),pe=void 0;function he(e){var t=pe;return pe=e,t}function ve(e){var t=ee;return ee=e,t}function ye(t,n){if(void 0===n&&(n=e.InjectFlags.Default),void 0===pe)throw new Error("inject() must be called from an injection context");return null===pe?we(t,void 0,n):pe.get(t,n&e.InjectFlags.Optional?null:void 0,n)}function ge(t,n){return void 0===n&&(n=e.InjectFlags.Default),(ee||ye)(Q(t),n)}function me(e){throw new Error("invalid")}var _e=ge;function we(t,n,r){var o=j(t);if(o&&"root"==o.providedIn)return void 0===o.value?o.value=o.factory():o.value;if(r&e.InjectFlags.Optional)return null;if(void 0!==n)return n;throw new Error("Injector: NOT_FOUND ["+H(t)+"]")}function be(t){for(var n=[],r=0;r<t.length;r++){var o=Q(t[r]);if(Array.isArray(o)){if(0===o.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,a=e.InjectFlags.Default,u=0;u<o.length;u++){var s=o[u];s instanceof w||"Optional"===s.ngMetadataName||s===w?a|=e.InjectFlags.Optional:s instanceof C||"SkipSelf"===s.ngMetadataName||s===C?a|=e.InjectFlags.SkipSelf:s instanceof b||"Self"===s.ngMetadataName||s===b?a|=e.InjectFlags.Self:i=s instanceof _||s===_?s.token:s}n.push(ge(i,a))}else n.push(ge(o))}return n}var Ce=function(){function e(){}return e.prototype.get=function(e,t){if(void 0===t&&(t=ce),t===ce){var n=new Error("NullInjectorError: No provider for "+H(e)+"!");throw n.name="NullInjectorError",n}return t},e}();function Ie(e,t,n,r){var o=e.ngTempTokenPath;throw t.__source&&o.unshift(t.__source),e.message=xe("\n"+e.message,o,n,r),e.ngTokenPath=o,e.ngTempTokenPath=null,e}function xe(e,t,n,r){void 0===r&&(r=null),e=e&&"\n"===e.charAt(0)&&"ɵ"==e.charAt(1)?e.substr(2):e;var o=H(t);if(Array.isArray(t))o=t.map(H).join(" -> ");else if("object"==typeof t){var i=[];for(var a in t)if(t.hasOwnProperty(a)){var u=t[a];i.push(a+":"+("string"==typeof u?JSON.stringify(u):H(u)))}o="{"+i.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+o+"]: "+e.replace(fe,"\n ")} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Ee,ke,Oe={"ɵɵdefineInjectable":P,"ɵɵdefineInjector":T,"ɵɵinject":ge,"ɵɵgetFactoryOf":function e(t){var n=t;if(z(t))return function(){var t=e(Q(n));return t?t():null};var r=j(n)||A(n);return r&&void 0!==r.factory?r.factory:null} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */,"ɵɵinvalidFactoryDep":me},Pe=function Pe(){},Ne=function Ne(){};function Te(e,t){null==e&&function n(e,t,r,o){throw new Error("ASSERTION ERROR: "+e+(null==o?"":" [Expected=> "+r+" "+o+" "+t+" <=Actual]"))}(t,e,null,"!=")} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function je(e,t){for(var n=0;n<e.length;n++)t.push(e[n])}function De(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),De(r,t)):t!==e&&t.push(r)}return t}function Ae(e,t){e.forEach((function(e){return Array.isArray(e)?Ae(e,t):t(e)}))}function Se(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Re(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ve(e,t){for(var n=[],r=0;r<e;r++)n.push(t);return n}function Fe(e,t,n){var r=He(e,t);return r>=0?e[1|r]=n:function o(e,t,n,r){var o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function Me(e,t){var n=He(e,t);if(n>=0)return e[1|n]}function He(e,t){return function n(e,t,r){for(var o=0,i=e.length>>r;i!==o;){var a=o+(i-o>>1),u=e[a<<r];if(t===u)return a<<r;u>t?i=a:o=a+1}return~(i<<r)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e,t,1)}(Ee=e.ChangeDetectionStrategy||(e.ChangeDetectionStrategy={}))[Ee.OnPush=0]="OnPush",Ee[Ee.Default=1]="Default",(ke=e.ɵChangeDetectorStatus||(e.ɵChangeDetectorStatus={}))[ke.CheckOnce=0]="CheckOnce",ke[ke.Checked=1]="Checked",ke[ke.CheckAlways=2]="CheckAlways",ke[ke.Detached=3]="Detached",ke[ke.Errored=4]="Errored",ke[ke.Destroyed=5]="Destroyed", /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function(e){e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(e.ViewEncapsulation||(e.ViewEncapsulation={})); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var Le={},Be=[],Ue=0;function Qe(t){return l((function(){var n=t.type,r=n.prototype,o={},i={type:n,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:o,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:r.ngOnInit||null,doCheck:r.ngDoCheck||null,afterContentInit:r.ngAfterContentInit||null,afterContentChecked:r.ngAfterContentChecked||null,afterViewInit:r.ngAfterViewInit||null,afterViewChecked:r.ngAfterViewChecked||null,onDestroy:r.ngOnDestroy||null,onPush:t.changeDetection===e.ChangeDetectionStrategy.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Be,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||e.ViewEncapsulation.Emulated,id:"c",styles:t.styles||Be,_:null,setInput:null,schemas:t.schemas||null,tView:null},a=t.directives,u=t.features,s=t.pipes;return i.id+=Ue++,i.inputs=Je(t.inputs,o),i.outputs=Je(t.outputs),u&&u.forEach((function(e){return e(i)})),i.directiveDefs=a?function(){return("function"==typeof a?a():a).map(qe)}:null,i.pipeDefs=s?function(){return("function"==typeof s?s():s).map(We)}:null,i}))}function ze(e,t,n){var r=e.ɵcmp;r.directiveDefs=function(){return t.map(qe)},r.pipeDefs=function(){return n.map(We)}}function qe(e){return Xe(e)||et(e)}function We(e){return tt(e)}var Ze={};function Ke(e){var t={type:e.type,bootstrap:e.bootstrap||Be,declarations:e.declarations||Be,imports:e.imports||Be,exports:e.exports||Be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&l((function(){Ze[e.id]=e.type})),t}function Ge(e,t){return l((function(){var n=rt(e,!0);n.declarations=t.declarations||Be,n.imports=t.imports||Be,n.exports=t.exports||Be}))}function Je(e,t){if(null==e)return Le;var n={};for(var r in e)if(e.hasOwnProperty(r)){var o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}var Ye=Qe;function $e(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Xe(e){return e[te]||null}function et(e){return e[ne]||null}function tt(e){return e[re]||null}function nt(e,t){return e.hasOwnProperty(ae)?e[ae]:null}function rt(e,t){var n=e[oe]||null;if(!n&&!0===t)throw new Error("Type "+H(e)+" does not have 'ɵmod' property.");return n} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function ot(e){return Array.isArray(e)&&"object"==typeof e[1]}function it(e){return Array.isArray(e)&&!0===e[1]}function at(e){return 0!=(8&e.flags)}function ut(e){return 2==(2&e.flags)}function st(e){return 1==(1&e.flags)}function lt(e){return null!==e.template}function ct(e){return 0!=(512&e[2])} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var ft,dt=void 0;function pt(){return void 0!==dt?dt:"undefined"!=typeof document?document:void 0} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function ht(e){return!!e.listen}!function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"}(ft||(ft={}));var vt={createRenderer:function(e,t){return pt()}}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function yt(e){for(;Array.isArray(e);)e=e[0];return e}function gt(e,t){return yt(t[e+20])}function mt(e,t){return yt(t[e.index])}function _t(e,t){var n=e.index;return-1!==n?yt(t[n]):null}function wt(e,t){return e.data[t+20]}function bt(e,t){return e[t+20]}function Ct(e,t){var n=t[e];return ot(n)?n:n[0]}function It(e){return e.__ngContext__||null}function xt(e){var t=It(e);return t?Array.isArray(t)?t:t.lView:null}function Et(e){return 4==(4&e[2])}function kt(e){return 128==(128&e[2])}function Ot(e,t){return null===e||null==t?null:e[t]}function Pt(e){e[18]=0}function Nt(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Tt={lFrame:nn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function jt(){return Tt.bindingsEnabled}function Dt(){Tt.bindingsEnabled=!0}function At(){Tt.bindingsEnabled=!1}function St(){return Tt.lFrame.lView}function Rt(){return Tt.lFrame.tView}function Vt(e){Tt.lFrame.contextLView=e}function Ft(){return Tt.lFrame.previousOrParentTNode}function Mt(e,t){Tt.lFrame.previousOrParentTNode=e,Tt.lFrame.isParent=t}function Ht(){return Tt.lFrame.isParent}function Lt(){Tt.lFrame.isParent=!1}function Bt(){return Tt.checkNoChangesMode}function Ut(e){Tt.checkNoChangesMode=e}function Qt(){var e=Tt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function zt(){return Tt.lFrame.bindingIndex}function qt(e){return Tt.lFrame.bindingIndex=e}function Wt(){return Tt.lFrame.bindingIndex++}function Zt(e){var t=Tt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Kt(e,t){var n=Tt.lFrame;n.bindingIndex=n.bindingRootIndex=e,Gt(t)}function Gt(e){Tt.lFrame.currentDirectiveIndex=e}function Jt(e){var t=Tt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Yt(){return Tt.lFrame.currentQueryIndex}function $t(e){Tt.lFrame.currentQueryIndex=e}function Xt(e,t){var n=tn();Tt.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function en(e,t){var n=tn(),r=e[1];Tt.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function tn(){var e=Tt.lFrame,t=null===e?null:e.child;return null===t?nn(e):t}function nn(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function rn(){var e=Tt.lFrame;return Tt.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var on=rn;function an(){var e=rn();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function un(e){return(Tt.lFrame.contextLView=function t(e,n){for(;e>0;)n=n[15],e--;return n}(e,Tt.lFrame.contextLView))[8]}function sn(){return Tt.lFrame.selectedIndex}function ln(e){Tt.lFrame.selectedIndex=e}function cn(){var e=Tt.lFrame;return wt(e.tView,e.selectedIndex)}function fn(){Tt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function dn(){Tt.lFrame.currentNamespace="http://www.w3.org/1998/MathML/"}function pn(){!function e(){Tt.lFrame.currentNamespace=null}()}function hn(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n<r;n++){var o=e.data[n];o.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(-n,o.afterContentInit),o.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,o.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,o.afterContentChecked)),o.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(-n,o.afterViewInit),o.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,o.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,o.afterViewChecked)),null!=o.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,o.onDestroy)}}function vn(e,t,n){mn(e,t,3,n)}function yn(e,t,n,r){(3&e[2])===n&&mn(e,t,n,r)}function gn(e,t){var n=e[2];(3&n)===t&&(n&=2047,e[2]=n+=1)}function mn(e,t,n,r){for(var o=null!=r?r:-1,i=0,a=void 0!==r?65535&e[18]:0;a<t.length;a++)if("number"==typeof t[a+1]){if(i=t[a],null!=r&&i>=r)break}else t[a]<0&&(e[18]+=65536),(i<o||-1==o)&&(_n(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function _n(e,t,n,r){var o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];o?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,i.call(a)):i.call(a)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var wn=function wn(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n};function bn(e,t,n){for(var r=ht(e),o=0;o<n.length;){var i=n[o];if("number"==typeof i){if(0!==i)break;o++;var a=n[o++],u=n[o++],s=n[o++];r?e.setAttribute(t,u,s,a):t.setAttributeNS(a,u,s)}else s=n[++o],In(u=i)?r&&e.setProperty(t,u,s):r?e.setAttribute(t,u,s):t.setAttribute(u,s),o++}return o}function Cn(e){return 3===e||4===e||6===e}function In(e){return 64===e.charCodeAt(0)}function xn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,r=0;r<t.length;r++){var o=t[r];"number"==typeof o?n=o:0===n||En(e,n,o,null,-1===n||2===n?t[++r]:null)}return e}function En(e,t,n,r,o){var i=0,a=e.length;if(-1===t)a=-1;else for(;i<e.length;){var u=e[i++];if("number"==typeof u){if(u===t){a=-1;break}if(u>t){a=i-1;break}}}for(;i<e.length;){var s=e[i];if("number"==typeof s)break;if(s===n){if(null===r)return void(null!==o&&(e[i+1]=o));if(r===e[i+1])return void(e[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==a&&(e.splice(a,0,t),i=a+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==o&&e.splice(i++,0,o)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function kn(e){return-1!==e}function On(e){return 32767&e}function Pn(e){return e>>16}function Nn(e,t){for(var n=Pn(e),r=t;n>0;)r=r[15],n--;return r} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Tn(e){return"string"==typeof e?e:null==e?"":""+e}function jn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Tn(e)}var Dn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind($);function An(e){return{name:"window",target:e.ownerDocument.defaultView}}function Sn(e){return{name:"document",target:e.ownerDocument}}function Rn(e){return{name:"body",target:e.ownerDocument.body}}function Vn(e){return e instanceof Function?e():e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Fn=!0;function Mn(e){var t=Fn;return Fn=e,t}var Hn=0;function Ln(e,t){var n=Un(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Bn(r.data,e),Bn(t,null),Bn(r.blueprint,null));var o=Qn(e,t),i=e.injectorIndex;if(kn(o))for(var a=On(o),u=Nn(o,t),s=u[1].data,l=0;l<8;l++)t[i+l]=u[a+l]|s[a+l];return t[i+8]=o,i}function Bn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Un(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Qn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],r=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function zn(e,t,n){!function r(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ue)&&(r=n[ue]),null==r&&(r=n[ue]=Hn++);var o=255&r,i=1<<o,a=64&o,u=32&o,s=t.data;128&o?a?u?s[e+7]|=i:s[e+6]|=i:u?s[e+5]|=i:s[e+4]|=i:a?u?s[e+3]|=i:s[e+2]|=i:u?s[e+1]|=i:s[e]|=i}(e,t,n)}function qn(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var r=n.length,o=0;o<r;){var i=n[o];if(Cn(i))break;if(0===i)o+=2;else if("number"==typeof i)for(o++;o<r&&"string"==typeof n[o];)o++;else{if(i===t)return n[o+1];o+=2}}return null}function Wn(t,n,r,o,i){if(void 0===o&&(o=e.InjectFlags.Default),null!==t){var a=function u(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(ue)?e[ue]:void 0;return"number"==typeof t&&t>0?255&t:t}(r);if("function"==typeof a){Xt(n,t);try{var s=a();if(null!=s||o&e.InjectFlags.Optional)return s;throw new Error("No provider for "+jn(r)+"!")}finally{on()}}else if("number"==typeof a){if(-1===a)return new Xn(t,n);var l=null,c=Un(t,n),f=-1,d=o&e.InjectFlags.Host?n[16][6]:null;for((-1===c||o&e.InjectFlags.SkipSelf)&&(f=-1===c?Qn(t,n):n[c+8],$n(o,!1)?(l=n[1],c=On(f),n=Nn(f,n)):c=-1);-1!==c;){f=n[c+8];var p=n[1];if(Yn(a,c,p.data)){var h=Kn(c,n,r,l,o,d);if(h!==Zn)return h}$n(o,n[1].data[c+8]===d)&&Yn(a,c,n)?(l=p,c=On(f),n=Nn(f,n)):c=-1}}}if(o&e.InjectFlags.Optional&&void 0===i&&(i=null),0==(o&(e.InjectFlags.Self|e.InjectFlags.Host))){var v=n[9],y=ve(void 0);try{return v?v.get(r,i,o&e.InjectFlags.Optional):we(r,i,o&e.InjectFlags.Optional)}finally{ve(y)}}if(o&e.InjectFlags.Optional)return i;throw new Error("NodeInjector: NOT_FOUND ["+jn(r)+"]")}var Zn={};function Kn(t,n,r,o,i,a){var u=n[1],s=u.data[t+8],l=Gn(s,u,r,null==o?ut(s)&&Fn:o!=u&&3===s.type,i&e.InjectFlags.Host&&a===s);return null!==l?Jn(n,u,l,s):Zn}function Gn(e,t,n,r,o){for(var i=e.providerIndexes,a=t.data,u=65535&i,s=e.directiveStart,l=i>>16,c=o?u+l:e.directiveEnd,f=r?u:u+l;f<c;f++){var d=a[f];if(f<s&&n===d||f>=s&&d.type===n)return f}if(o){var p=a[s];if(p&&lt(p)&&p.type===n)return s}return null}function Jn(e,t,n,r){var o=e[n],i=t.data;if(function a(e){return e instanceof wn}(o)){var u=o;if(u.resolving)throw new Error("Circular dep for "+jn(i[n]));var s=Mn(u.canSeeViewProviders);u.resolving=!0;var l=void 0;u.injectImpl&&(l=ve(u.injectImpl)),Xt(e,r);try{o=e[n]=u.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&& /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function c(e,t,n){var r=t.onChanges,o=t.onInit,i=t.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{u.injectImpl&&ve(l),Mn(s),u.resolving=!1,on()}}return o}function Yn(e,t,n){var r=64&e,o=32&e;return!!((128&e?r?o?n[t+7]:n[t+6]:o?n[t+5]:n[t+4]:r?o?n[t+3]:n[t+2]:o?n[t+1]:n[t])&1<<e)}function $n(t,n){return!(t&e.InjectFlags.Self||t&e.InjectFlags.Host&&n)}var Xn=function(){function e(e,t){this._tNode=e,this._lView=t}return e.prototype.get=function(e,t){return Wn(this._tNode,this._lView,e,void 0,t)},e}();function er(e){var t=e;if(z(e))return function(){var e=er(Q(t));return e?e():null};var n=nt(t);if(null===n){var r=A(t);n=r&&r.factory}return n||null}function tr(e){return l((function(){for(var t=e.prototype.constructor,n=t[ae]||er(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;o&&o!==r;){var i=o[ae]||er(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return function(e){return new e}}))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function nr(e){return e.ngDebugContext}function rr(e){return e.ngOriginalError}function or(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.error.apply(e,s(t))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var ir=function(){function e(){this._console=console}return e.prototype.handleError=function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function o(e){return e.ngErrorLogger||or}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)},e.prototype._findContext=function(e){return e?nr(e)?nr(e):this._findContext(rr(e)):null},e.prototype._findOriginalError=function(e){for(var t=rr(e);t&&rr(t);)t=rr(t);return t},e}(),ar=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),ur=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(ar),sr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getTypeName=function(){return"Style"},t}(ar),lr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getTypeName=function(){return"Script"},t}(ar),cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getTypeName=function(){return"URL"},t}(ar),fr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(ar); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function dr(e){return e instanceof ar?e.changingThisBreaksApplicationSecurity:e}function pr(e,t){var n=hr(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe "+t+", got a "+n+" (see http://g.co/ng/security#xss)")}return n===t}function hr(e){return e instanceof ar&&e.getTypeName()||null} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var vr=!0,yr=!1;function gr(){return yr=!0,vr} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function mr(e){return function t(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(e){return!1}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */()?new _r:new wr(e)}var _r=function(){function e(){}return e.prototype.getInertBodyElement=function(e){e="<body><remove></remove>"+e+"</body>";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(e){return null}},e}(),wr=function(){function e(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var n=this.inertDocument.createElement("body");t.appendChild(n)}}return e.prototype.getInertBodyElement=function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;var n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var r=t.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.removeAttribute(r)}for(var o=e.firstChild;o;)o.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(o),o=o.nextSibling},e}(),br=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Cr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ir(e){return(e=String(e)).match(br)||e.match(Cr)?e:(gr()&&console.warn("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}function xr(e){return(e=String(e)).split(",").map((function(e){return Ir(e.trim())})).join(", ")} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Er(e){var t,n,r={};try{for(var o=a(e.split(",")),i=o.next();!i.done;i=o.next())r[i.value]=!0}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function kr(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o={};try{for(var i=a(n),u=i.next();!u.done;u=i.next()){var s=u.value;for(var l in s)s.hasOwnProperty(l)&&(o[l]=!0)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return o}var Or,Pr,Nr=Er("area,br,col,hr,img,wbr"),Tr=Er("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),jr=Er("rp,rt"),Dr=kr(jr,Tr),Ar=kr(Tr,Er("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Sr=kr(jr,Er("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Rr=kr(Nr,Ar,Sr,Dr),Vr=Er("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fr=Er("srcset"),Mr=Er("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Hr=Er("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Lr=kr(Vr,Fr,Mr,Hr),Br=Er("script,style,template"),Ur=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")},e.prototype.startElement=function(e){var t=e.nodeName.toLowerCase();if(!Rr.hasOwnProperty(t))return this.sanitizedSomething=!0,!Br.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);for(var n=e.attributes,r=0;r<n.length;r++){var o=n.item(r),i=o.name,a=i.toLowerCase();if(Lr.hasOwnProperty(a)){var u=o.value;Vr[a]&&(u=Ir(u)),Fr[a]&&(u=xr(u)),this.buf.push(" ",i,'="',qr(u),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();Rr.hasOwnProperty(t)&&!Nr.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))},e.prototype.chars=function(e){this.buf.push(qr(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),Qr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zr=/([^\#-~ |!])/g;function qr(e){return e.replace(/&/g,"&amp;").replace(Qr,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(zr,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Wr(e,t){var n=null;try{Or=Or||mr(e);var r=t?String(t):"";n=Or.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Or.getInertBodyElement(r)}while(r!==i);var a=new Ur,u=a.sanitizeChildren(Zr(n)||n);return gr()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),u}finally{if(n)for(var s=Zr(n)||n;s.firstChild;)s.removeChild(s.firstChild)}}function Zr(e){return"content"in e&&function t(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e)?e.content:null} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function Kr(t){var n=to();return n?n.sanitize(e.SecurityContext.HTML,t)||"":pr(t,"HTML")?dr(t):Wr(pt(),Tn(t))}function Gr(t){var n=to();return n?n.sanitize(e.SecurityContext.STYLE,t)||"":pr(t,"Style")?dr(t):Tn(t)}function Jr(t){var n=to();return n?n.sanitize(e.SecurityContext.URL,t)||"":pr(t,"URL")?dr(t):Ir(Tn(t))}function Yr(t){var n=to();if(n)return n.sanitize(e.SecurityContext.RESOURCE_URL,t)||"";if(pr(t,"ResourceURL"))return dr(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function $r(t){var n=to();if(n)return n.sanitize(e.SecurityContext.SCRIPT,t)||"";if(pr(t,"Script"))return dr(t);throw new Error("unsafe value used in a script context")}function Xr(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Yr:Jr}function eo(e,t,n){return Xr(t,n)(e)}function to(){var e=St();return e&&e[12]} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(Pr=e.SecurityContext||(e.SecurityContext={}))[Pr.NONE=0]="NONE",Pr[Pr.HTML=1]="HTML",Pr[Pr.STYLE=2]="STYLE",Pr[Pr.SCRIPT=3]="SCRIPT",Pr[Pr.URL=4]="URL",Pr[Pr.RESOURCE_URL=5]="RESOURCE_URL";var no=/([A-Z])/g;function ro(e){try{return null!=e?e.toString().slice(0,30):e}catch(e){return"[ERROR] Exception while trying to serialize the value"}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function oo(e){var t=It(e);if(t){if(Array.isArray(t)){var n=t,r=void 0,o=void 0,i=void 0;if(function a(e){return e&&e.constructor&&e.constructor.ɵcmp}(e)){if(-1==(r=co(n,e)))throw new Error("The provided component was not found in the application");o=e}else if(function u(e){return e&&e.constructor&&e.constructor.ɵdir}(e)){if(-1==(r=function s(e,t){for(var n=e[1].firstChild;n;){for(var r=n.directiveEnd,o=n.directiveStart;o<r;o++)if(e[o]===t)return n.index;n=lo(n)}return-1}(n,e)))throw new Error("The provided directive was not found in the application");i=fo(r,n,!1)}else if(-1==(r=so(n,e)))return null;var l=It(y=yt(n[r])),c=l&&!Array.isArray(l)?l:io(n,r,y);if(o&&void 0===c.component&&(c.component=o,uo(c.component,c)),i&&void 0===c.directives){c.directives=i;for(var f=0;f<i.length;f++)uo(i[f],c)}uo(c.native,c),t=c}}else for(var d=e,p=d;p=p.parentNode;){var h=It(p);if(h){if(n=void 0,!(n=Array.isArray(h)?h:h.lView))return null;var v=so(n,d);if(v>=0){var y;uo(y=yt(n[v]),c=io(n,v,y)),t=c;break}}}return t||null}function io(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function ao(e){var t,n=It(e);if(Array.isArray(n)){var r=co(n,e);(o=io(n,r,(t=Ct(r,n))[0])).component=e,uo(e,o),uo(o.native,o)}else{var o;t=Ct((o=n).nodeIndex,o.lView)}return t}function uo(e,t){e.__ngContext__=t}function so(e,t){for(var n=e[1].firstChild;n;){if(_t(n,e)===t)return n.index;n=lo(n)}return-1}function lo(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function co(e,t){var n=e[1].components;if(n)for(var r=0;r<n.length;r++){var o=n[r];if(Ct(o,e)[8]===t)return o}else if(Ct(20,e)[8]===t)return 20;return-1}function fo(e,t,n){var r=t[1].data[e],o=r.directiveStart;return 0==o?Be:(!n&&2&r.flags&&o++,t.slice(o,r.directiveEnd))}function po(e){throw new Error("Multiple components match node with tagname "+e.tagName)}function ho(){throw new Error("Cannot mix multi providers and regular providers")} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function vo(e,t,n){for(var r=e.length;;){var o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){var i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function yo(e,t,n){for(var r=0;r<e.length;){var o=e[r++];if(n&&"class"===o){if(-1!==vo((o=e[r]).toLowerCase(),t,0))return!0}else if(1===o){for(;r<e.length&&"string"==typeof(o=e[r++]);)if(o.toLowerCase()===t)return!0;return!1}}return!1}function go(e){return 0===e.type&&"ng-template"!==e.tagName}function mo(e,t,n){return t===(0!==e.type||n?e.tagName:"ng-template")}function _o(e,t,n){for(var r=4,o=e.attrs||[],i=function a(e){for(var t=0;t<e.length;t++)if(Cn(e[t]))return t;return e.length}(o),u=!1,s=0;s<t.length;s++){var l=t[s];if("number"!=typeof l){if(!u)if(4&r){if(r=2|1&r,""!==l&&!mo(e,l,n)||""===l&&1===t.length){if(wo(r))return!1;u=!0}}else{var c=8&r?l:t[++s];if(8&r&&null!==e.attrs){if(!yo(e.attrs,c,n)){if(wo(r))return!1;u=!0}continue}var f=bo(8&r?"class":l,o,go(e),n);if(-1===f){if(wo(r))return!1;u=!0;continue}if(""!==c){var d;d=f>i?"":o[f+1].toLowerCase();var p=8&r?d:null;if(p&&-1!==vo(p,c,0)||2&r&&c!==d){if(wo(r))return!1;u=!0}}}}else{if(!u&&!wo(r)&&!wo(l))return!1;if(u&&wo(l))continue;u=!1,r=l|1&r}}return wo(r)||u}function wo(e){return 0==(1&e)}function bo(e,t,n,r){if(null===t)return-1;var o=0;if(r||!n){for(var i=!1;o<t.length;){var a=t[o];if(a===e)return o;if(3===a||6===a)i=!0;else{if(1===a||2===a){for(var u=t[++o];"string"==typeof u;)u=t[++o];continue}if(4===a)break;if(0===a){o+=4;continue}}o+=i?1:2}return-1}return function s(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Co(e,t,n){void 0===n&&(n=!1);for(var r=0;r<t.length;r++)if(_o(e,t[r],n))return!0;return!1}function Io(e,t){e:for(var n=0;n<t.length;n++){var r=t[n];if(e.length===r.length){for(var o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function xo(e,t){return e?":not("+t.trim()+")":t}function Eo(e){for(var t=e[0],n=1,r=2,o="",i=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&r){var u=e[++n];o+="["+a+(u.length>0?'="'+u+'"':"")+"]"}else 8&r?o+="."+a:4&r&&(o+=" "+a);else""===o||wo(a)||(t+=xo(i,o),o=""),r=a,i=i||!wo(r);n++}return""!==o&&(t+=xo(i,o)),t} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var ko={}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Oo(e){var t=e[3];return it(t)?t[3]:t}function Po(e){return function t(e){for(var t=ot(e)?e:xt(e);t&&!(512&t[2]);)t=Oo(t);return t}(e)[8]}function No(e){return jo(e[13])}function To(e){return jo(e[4])}function jo(e){for(;null!==e&&!it(e);)e=e[4];return e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Do(e){So(Rt(),St(),sn()+e,Bt())}function Ao(e){So(Rt(),St(),e,Bt())}function So(e,t,n,r){if(!r)if(3==(3&t[2])){var o=e.preOrderCheckHooks;null!==o&&vn(t,o,n)}else{var i=e.preOrderHooks;null!==i&&yn(t,i,0,n)}ln(n)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Ro={marker:"element"},Vo={marker:"comment"}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function Fo(e,t){return e<<17|t<<2}function Mo(e){return e>>17&32767}function Ho(e){return 2==(2&e)}func