(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{"+Sv0":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){}},"+tJ4":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return function(e){for(var n=0,r=t.length;n0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var a=e[i];o.push(i+":"+("string"==typeof a?JSON.stringify(a):Q(a)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(_t,"\n ")}function Ot(t,e){return new Error(Et(t,e))}var Tt=void 0;function jt(t){var e=Tt;return Tt=t,e}function xt(t,e){if(void 0===e&&(e=0),void 0===Tt)throw new Error("inject() must be called from an injection context");if(null===Tt){var n=t.ngInjectableDef;if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&e)return null;throw new Error("Injector: NOT_FOUND ["+Q(t)+"]")}return Tt.get(t,8&e?null:void 0,e)}function Pt(t){for(var e=[],n=0;n1?" ("+function(t){for(var e=[],n=0;n-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(function(t){return Q(t.token)}).join(" -> ")+")":""}function Wt(t,e,n,r){var o=[e],i=n(o),a=r?function(t,e){var n=i+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[Bt]=e,r}(0,r):Error(i);return a.addKey=Yt,a.keys=o,a.injectors=[t],a.constructResolvingMessage=n,a[Bt]=r,a}function Yt(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function $t(t,e){for(var n=[],r=0,o=e.length;r=this._providers.length)throw function(t){return Error("Index "+t+" is out-of-bounds.")}(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw Wt(this,t.key,function(t){return"Cannot instantiate cyclic dependency!"+Zt(t)});return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),Cn=function(){function t(){this._applications=new Map,On.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),On.findTestabilityInTree(this,t,e)},t.ctorParameters=function(){return[]},t}();function Sn(t){On=t}var En,On=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Tn=!0,jn=!1,xn=new f("AllowMultipleToken");function Pn(){if(jn)throw new Error("Cannot enable prod mode after platform setup.");Tn=!1}function kn(){return jn=!0,Tn}var Dn=function(t,e){this.name=t,this.token=e};function In(t){if(En&&!En.destroyed&&!En.injector.get(xn,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");En=t.get(Ln);var e=t.get(Ne,null);return e&&e.forEach(function(t){return t()}),En}function Nn(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new f(r);return function(e){void 0===e&&(e=[]);var i=Mn();if(!i||i.injector.get(xn,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var a=n.concat(e).concat({provide:o,useValue:!0});In(pt.create({providers:a,name:r}))}return An(o)}}function An(t){var e=Mn();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function Rn(){En&&!En.destroyed&&En.destroy()}function Mn(){return En&&!En.destroyed?En:null}var Ln=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new _n:("zone.js"===n?void 0:n)||new hn({enableLongStackTrace:kn()}),i=[{provide:hn,useValue:o}];return o.run(function(){var e=pt.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),a=n.injector.get(Qt,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Un(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,o){try{var i=((a=n.injector.get(xe)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return Oe(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}var a}(a,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(Be),o=Fn({},e);return r.createCompiler([o]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,o)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Vn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Q(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Fn(t,e){return Array.isArray(e)?e.reduce(Fn,t):Object(r.__assign)({},t,e)}var Vn=function(){function t(t,e,n,r,o,i){var c=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=kn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}});var l=new a.a(function(t){c._stable=c._zone.isStable&&!c._zone.hasPendingMacrotasks&&!c._zone.hasPendingMicrotasks,c._zone.runOutsideAngular(function(){t.next(c._stable),t.complete()})}),f=new a.a(function(t){var e;c._zone.runOutsideAngular(function(){e=c._zone.onStable.subscribe(function(){hn.assertNotInAngularZone(),q(function(){c._stable||c._zone.hasPendingMacrotasks||c._zone.hasPendingMicrotasks||(c._stable=!0,t.next(!0))})})});var n=c._zone.onUnstable.subscribe(function(){hn.assertInAngularZone(),c._stable&&(c._stable=!1,c._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(s.a)(l,f.pipe(Object(u.a)()))}return t.prototype.bootstrap=function(t,e){var n,r=this;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.");n=t instanceof Ge?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof Je?null:this._injector.get(Xe),i=n.create(pt.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var a=i.injector.get(wn,null);return a&&i.injector.get(Cn).registerApplication(i.location.nativeElement,a),this._loadComponent(i),kn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,ln(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Un(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Re,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Un(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=cn("ApplicationRef#tick()"),t}();function Un(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Hn=function(t,e,n,r,o,i){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=o,this.animations=i},Bn=function(){},zn=function(){},Gn=function(){},qn=function(){},Kn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),Qn=function(){},Zn=function(t){this.nativeElement=t},Wn=function(){},Yn=new Map;function $n(t,e){var n=Yn.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);Yn.set(t,e)}function Jn(t){var e=Yn.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}var Xn=function(){function t(){this.dirty=!0,this._results=[],this.changes=new dn,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[G()]=function(){return this._results[G()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),tr=function(){},er={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},nr=function(){function t(t,e){this._compiler=t,this._config=e||er}return t.prototype.load=function(t){return this._compiler instanceof Ue?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,o=Object(r.__read)(t.split("#"),2),i=o[0],a=o[1];return void 0===a&&(a="default"),n("crnd")(i).then(function(t){return t[a]}).then(function(t){return rr(t,i,a)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=Object(r.__read)(t.split("#"),2),o=e[0],i=e[1],a="NgFactory";return void 0===i&&(i="default",a=""),n("crnd")(this._config.factoryPathPrefix+o+this._config.factoryPathSuffix).then(function(t){return t[i+a]}).then(function(t){return rr(t,o,i)})},t}();function rr(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var or=function(){},ir=function(){},ar=function(){},sr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(ar),ur=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(sr),cr=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof lr?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),lr=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return Object(r.__extends)(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,o=this,i=this.childNodes.indexOf(t);-1!==i&&((n=this.childNodes).splice.apply(n,Object(r.__spread)([i+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=o}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return pr(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return dr(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(cr);function fr(t){return t.map(function(t){return t.nativeElement})}function pr(t,e,n){t.childNodes.forEach(function(t){t instanceof lr&&(e(t)&&n.push(t),pr(t,e,n))})}function dr(t,e,n){t instanceof lr&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof lr&&dr(t,e,n)})}var hr=new Map;function vr(t){return hr.get(t)||null}function yr(t){hr.set(t.nativeNode,t)}function gr(t,e){var n=_r(t),r=_r(e);return n&&r?function(t,e,n){for(var r=t[G()](),o=e[G()]();;){var i=r.next(),a=o.next();if(i.done&&a.done)return!0;if(i.done||a.done)return!1;if(!n(i.value,a.value))return!1}}(t,e,gr):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||K(t,e)}var mr=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),br=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function _r(t){return!!wr(t)&&(Array.isArray(t)||!(t instanceof Map)&&G()in t)}function wr(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Cr=function(){function t(){}return t.prototype.supports=function(t){return _r(t)},t.prototype.create=function(t){return new Er(t)},t}(),Sr=function(t,e){return e},Er=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Sr}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();so.hasOwnProperty(e)&&!ro.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(vo(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),po=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ho=/([^\#-~ |!])/g;function vo(t){return t.replace(/&/g,"&").replace(po,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ho,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function yo(t,e){var n=null;try{no=no||new Yr(t);var r=e?String(e):"";n=no.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=no.getInertBodyElement(r)}while(r!==i);var a=new fo,s=a.sanitizeChildren(go(n)||n);return kn()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),s}finally{if(n)for(var u=go(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function go(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var mo=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),bo=/^url\(([^)]+)\)$/;function _o(t){if(!(t=String(t).trim()))return"";var e=t.match(bo);return e&&Xr(e[1])===e[1]||t.match(mo)&&function(t){for(var e=!0,n=!0,r=0;r-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var c=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:c,token:e.token},t._providers[c]=ji,t._providers[c]=Ai(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{jt(i)}}function Ai(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var o=n.length;switch(o){case 0:return new e;case 1:return new e(Ni(t,n[0]));case 2:return new e(Ni(t,n[0]),Ni(t,n[1]));case 3:return new e(Ni(t,n[0]),Ni(t,n[1]),Ni(t,n[2]));default:for(var i=new Array(o),a=0;a=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Vi(n,e),Do.dirtyParentQueries(r),Li(r),r}function Mi(t,e,n){var r=e?Jo(e,e.def.lastRenderRootNode):t.renderElement;ui(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Li(t){ui(t,3,null,null,void 0)}function Fi(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Vi(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Ui=new Object;function Hi(t,e,n,r,o,i){return new zi(t,e,n,r,o,i)}function Bi(t){return t.viewDefFactory}var zi=function(t){function e(e,n,r,o,i,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=o,s._outputs=i,s.ngContentSelectors=a,s.viewDefFactory=r,s}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=si(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,a=Do.createRootView(t,e||[],n,o,r,Ui),s=jo(a,i).instance;return n&&a.renderer.setAttribute(To(a,0).renderElement,"ng-version",Ut.full),new Gi(a,new Zi(a),s)},e}(Ge),Gi=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Zn(To(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Ji(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(ze);function qi(t,e,n){return new Ki(t,e,n)}var Ki=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new Zn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Ji(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=$o(t),t=t.parent;return t?new Ji(t,e):new Ji(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Ri(this._data,t);Do.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Zi(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof Je||(o=i.get(Xe));var a=t.create(i,r,void 0,o);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,a=t;return o=a._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,Fi(i,r,o),function(t,e){var n=Yo(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),Do.dirtyParentQueries(o),Mi(n,r>0?i[r-1]:null,o),a.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,a,s=this._embeddedViews.indexOf(t._view);return o=e,a=(i=(n=this._data).viewContainer._embeddedViews)[r=s],Vi(i,r),null==o&&(o=i.length),Fi(i,o,a),Do.dirtyParentQueries(a),Li(a),Mi(n,o>0?i[o-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Ri(this._data,t);e&&Do.destroyView(e)},t.prototype.detach=function(t){var e=Ri(this._data,t);return e?new Zi(e):null},t}();function Qi(t){return new Zi(t)}var Zi=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return ui(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Qo(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Do.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Do.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Do.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Li(this._view),Do.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Wi(t,e){return new Yi(t,e)}var Yi=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(r.__extends)(e,t),e.prototype.createEmbeddedView=function(t){return new Zi(Do.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Zn(To(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(or);function $i(t,e){return new Ji(t,e)}var Ji=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=pt.THROW_IF_NOT_FOUND),Do.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Lo(t)},e)},t}();function Xi(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=To(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Oo(t,n.nodeIndex).renderText;if(20240&n.flags)return jo(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function ta(t){return new ea(t.renderer)}var ea=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Object(r.__read)(hi(e),2),o=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,o),o},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,o=e.provider;switch(201347067&e.flags){case 512:return wa(t,e.parent,n,o.value,o.deps);case 1024:return function(t,e,n,o,i){var a=i.length;switch(a){case 0:return o();case 1:return o(Sa(t,e,n,i[0]));case 2:return o(Sa(t,e,n,i[0]),Sa(t,e,n,i[1]));case 3:return o(Sa(t,e,n,i[0]),Sa(t,e,n,i[1]),Sa(t,e,n,i[2]));default:for(var s=Array(a),u=0;u0)c=v,Ga(v)||(l=v);else for(;c&&h===c.nodeIndex+c.childCount;){var m=c.parent;m&&(m.childFlags|=c.childFlags,m.childMatchedQueries|=c.childMatchedQueries),l=(c=m)&&Ga(c)?c.renderParent:c}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||Ro,updateRenderer:r||Ro,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:d}}function Ga(t){return 0!=(1&t.flags)&&null===t.element.name}function qa(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Ka(t,e,n,r){var o=Wa(t.root,t.renderer,t,e,n);return Ya(o,t.component,r),$a(o),o}function Qa(t,e,n){var r=Wa(t,t.renderer,null,null,e);return Ya(r,n,n),$a(r),r}function Za(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,Wa(t.root,o,t,e.element.componentProvider,n)}function Wa(t,e,n,r,o){var i=new Array(o.nodes.length),a=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:a,initIndex:-1}}function Ya(t,e,n){t.component=e,t.context=n}function $a(t){var e;ti(t)&&(e=To(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&Ti(t,e,0,n)&&(d=!0),p>1&&Ti(t,e,1,r)&&(d=!0),p>2&&Ti(t,e,2,o)&&(d=!0),p>3&&Ti(t,e,3,i)&&(d=!0),p>4&&Ti(t,e,4,a)&&(d=!0),p>5&&Ti(t,e,5,s)&&(d=!0),p>6&&Ti(t,e,6,u)&&(d=!0),p>7&&Ti(t,e,7,c)&&(d=!0),p>8&&Ti(t,e,8,l)&&(d=!0),p>9&&Ti(t,e,9,f)&&(d=!0),d}(t,e,n,r,o,i,a,s,u,c,l,f);case 2:return function(t,e,n,r,o,i,a,s,u,c,l,f){var p=!1,d=e.bindings,h=d.length;if(h>0&&qo(t,e,0,n)&&(p=!0),h>1&&qo(t,e,1,r)&&(p=!0),h>2&&qo(t,e,2,o)&&(p=!0),h>3&&qo(t,e,3,i)&&(p=!0),h>4&&qo(t,e,4,a)&&(p=!0),h>5&&qo(t,e,5,s)&&(p=!0),h>6&&qo(t,e,6,u)&&(p=!0),h>7&&qo(t,e,7,c)&&(p=!0),h>8&&qo(t,e,8,l)&&(p=!0),h>9&&qo(t,e,9,f)&&(p=!0),p){var v=e.text.prefix;h>0&&(v+=Ba(n,d[0])),h>1&&(v+=Ba(r,d[1])),h>2&&(v+=Ba(o,d[2])),h>3&&(v+=Ba(i,d[3])),h>4&&(v+=Ba(a,d[4])),h>5&&(v+=Ba(s,d[5])),h>6&&(v+=Ba(u,d[6])),h>7&&(v+=Ba(c,d[7])),h>8&&(v+=Ba(l,d[8])),h>9&&(v+=Ba(f,d[9]));var y=Oo(t,e.nodeIndex).renderText;t.renderer.setValue(y,v)}return p}(t,e,n,r,o,i,a,s,u,c,l,f);case 16384:return function(t,e,n,r,o,i,a,s,u,c,l,f){var p=jo(t,e.nodeIndex),d=p.instance,h=!1,v=void 0,y=e.bindings.length;return y>0&&Go(t,e,0,n)&&(h=!0,v=Oa(t,p,e,0,n,v)),y>1&&Go(t,e,1,r)&&(h=!0,v=Oa(t,p,e,1,r,v)),y>2&&Go(t,e,2,o)&&(h=!0,v=Oa(t,p,e,2,o,v)),y>3&&Go(t,e,3,i)&&(h=!0,v=Oa(t,p,e,3,i,v)),y>4&&Go(t,e,4,a)&&(h=!0,v=Oa(t,p,e,4,a,v)),y>5&&Go(t,e,5,s)&&(h=!0,v=Oa(t,p,e,5,s,v)),y>6&&Go(t,e,6,u)&&(h=!0,v=Oa(t,p,e,6,u,v)),y>7&&Go(t,e,7,c)&&(h=!0,v=Oa(t,p,e,7,c,v)),y>8&&Go(t,e,8,l)&&(h=!0,v=Oa(t,p,e,8,l,v)),y>9&&Go(t,e,9,f)&&(h=!0,v=Oa(t,p,e,9,f,v)),v&&d.ngOnChanges(v),65536&e.flags&&Eo(t,256,e.nodeIndex)&&d.ngOnInit(),262144&e.flags&&d.ngDoCheck(),h}(t,e,n,r,o,i,a,s,u,c,l,f);case 32:case 64:case 128:return function(t,e,n,r,o,i,a,s,u,c,l,f){var p=e.bindings,d=!1,h=p.length;if(h>0&&qo(t,e,0,n)&&(d=!0),h>1&&qo(t,e,1,r)&&(d=!0),h>2&&qo(t,e,2,o)&&(d=!0),h>3&&qo(t,e,3,i)&&(d=!0),h>4&&qo(t,e,4,a)&&(d=!0),h>5&&qo(t,e,5,s)&&(d=!0),h>6&&qo(t,e,6,u)&&(d=!0),h>7&&qo(t,e,7,c)&&(d=!0),h>8&&qo(t,e,8,l)&&(d=!0),h>9&&qo(t,e,9,f)&&(d=!0),d){var v=xo(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(p.length),h>0&&(y[0]=n),h>1&&(y[1]=r),h>2&&(y[2]=o),h>3&&(y[3]=i),h>4&&(y[4]=a),h>5&&(y[5]=s),h>6&&(y[6]=u),h>7&&(y[7]=c),h>8&&(y[8]=l),h>9&&(y[9]=f);break;case 64:y={},h>0&&(y[p[0].name]=n),h>1&&(y[p[1].name]=r),h>2&&(y[p[2].name]=o),h>3&&(y[p[3].name]=i),h>4&&(y[p[4].name]=a),h>5&&(y[p[5].name]=s),h>6&&(y[p[6].name]=u),h>7&&(y[p[7].name]=c),h>8&&(y[p[8].name]=l),h>9&&(y[p[9].name]=f);break;case 128:var g=n;switch(h){case 1:y=g.transform(n);break;case 2:y=g.transform(r);break;case 3:y=g.transform(r,o);break;case 4:y=g.transform(r,o,i);break;case 5:y=g.transform(r,o,i,a);break;case 6:y=g.transform(r,o,i,a,s);break;case 7:y=g.transform(r,o,i,a,s,u);break;case 8:y=g.transform(r,o,i,a,s,u,c);break;case 9:y=g.transform(r,o,i,a,s,u,c,l);break;case 10:y=g.transform(r,o,i,a,s,u,c,l,f)}}v.value=y}return d}(t,e,n,r,o,i,a,s,u,c,l,f);default:throw"unreachable"}}(t,e,o,i,a,s,u,c,l,f,p,d):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&Ko(t,e,0,n),p>1&&Ko(t,e,1,r),p>2&&Ko(t,e,2,o),p>3&&Ko(t,e,3,i),p>4&&Ko(t,e,4,a),p>5&&Ko(t,e,5,s),p>6&&Ko(t,e,6,u),p>7&&Ko(t,e,7,c),p>8&&Ko(t,e,8,l),p>9&&Ko(t,e,9,f)}(t,e,r,o,i,a,s,u,c,l,f,p):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);_s.forEach(function(e,r){if(i.has(r.ngInjectableDef.providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:oi(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[Lo(r)]=o}})}}(t=t.factory(function(){return Ro})),t):t}(r))}var bs=new Map,_s=new Map,ws=new Map;function Cs(t){bs.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&_s.set(t.token,t)}function Ss(t,e){var n=si(si(Bi(e)).nodes[0].element.componentView);ws.set(t,n)}function Es(){bs.clear(),_s.clear(),ws.clear()}function Os(t){if(0===bs.size)return t;var e=function(t){for(var e=[],n=null,r=0;r=e&&su(n)}function iu(t,e){null==t&&su(e)}function au(t,e){void 0===e&&(e="Type passed in is not ComponentType, it does not have 'ngComponentDef' property."),t.ngComponentDef||su(e)}function su(t){throw new Error("ASSERTION ERROR: "+t)}var uu=16,cu=0,lu=1,fu=2,pu=3,du=4,hu=5,vu=6,yu=7,gu=8,mu=9,bu=10,_u=11,wu=12,Cu=13,Su=14,Eu=15;function Ou(t,e,n,r){ngDevMode&&nu(r.firstTemplatePass,!0,"Should only be called on first template pass"),e&&(r.initHooks||(r.initHooks=[])).push(t,e),n&&((r.initHooks||(r.initHooks=[])).push(t,n),(r.checkHooks||(r.checkHooks=[])).push(t,n))}function Tu(t,e){if(e.firstTemplatePass)for(var n=t>>14,r=n+(4095&t),o=n;o"}function Gu(t){return"function"==typeof t?t.name||t:"string"==typeof t?t:null==t?"":""+t}function qu(t,e){return ngDevMode&&Ku(t+uu,e),e[t+uu]}function Ku(t,e){ou(t,e?e.length:0,"index expected to be a valid data index")}function Qu(t){return Array.isArray(t)?t[0]:t}function Zu(t){if(2===t.tNode.type){var e=t.data;return e[fu]?e[fu][hu]:null}return t.tNode.next?t.view[t.tNode.next.index]:null}function Wu(t){return t.tNode.child?Qu((2===t.tNode.type?t.data:t.view)[t.tNode.child.index]):null}function Yu(t){if(-1===t.tNode.index&&2===t.tNode.type){var e=t.data[Su];return-1===e?null:t.view[e].dynamicLContainerNode}var n=t.tNode.parent;return Qu(n?t.view[n.index]:t.view[hu])}var $u=[];function Ju(t,e,n,r,o,i){for(var a=t,s=-1;a;){var u=null,c=o?o.native:null,l=a.tNode.type;if(3===l)tc(n,r,c,a.native,i),a.dynamicLContainerNode&&tc(n,r,c,a.dynamicLContainerNode.native,i);else if(0===l){tc(n,r,c,a.native,i);var f=a,p=f.dynamicLContainerNode?f.dynamicLContainerNode.data:f.data;o&&(p[Mu]=o),(u=p[Ru].length?Wu(p[Ru][0]):null)&&(i=f.dynamicLContainerNode?f.dynamicLContainerNode.native:f.native)}else if(1===l){var d=Xu(a.view),h=d.tNode.projection[a.tNode.projection];$u[++s]=a,u=h?d.data[lu][h.index]:null}else u=Wu(a);if(null===u)for(null===(u=Zu(a))&&8192&a.tNode.flags&&(u=Zu($u[s--]));a&&!u;){if(null===(a=Yu(a))||a===e)return null;a.tNode.next||0!==l||(i=a.native),u=Zu(a)}a=u}}function Xu(t){for(var e=t[hu];2===e.tNode.type;)ngDevMode&&iu(t[lu],"lViewData.parent"),e=(t=t[lu])[hu];return ngDevMode&&Hu(e,3),ngDevMode&&iu(e.data,"node.data"),e}function tc(t,e,n,r,o){0===t?Vu(e)?e.insertBefore(n,r,o):n.insertBefore(r,o,!0):1===t?Vu(e)?e.removeChild(n,r):n.removeChild(r):2===t&&(ngDevMode&&ngDevMode.rendererDestroyNode++,e.destroyNode(r))}function ec(t,e){return Vu(e)?e.createText(Gu(t)):e.createTextNode(Gu(t))}function nc(t,e,n,r){ngDevMode&&Hu(t,0),ngDevMode&&Hu(e,2);var o=t.data[Mu];o&&o.native&&Ju(Wu(e),e,n?0:1,t.view[_u],o,r)}function rc(t,e,n){var r=t.data[Ru],o=e.data;return n>0&&(r[n-1].data[fu]=o),n0&&(n[e-1].data[fu]=r.data[fu]),n.splice(e,1),t.tNode.detached||nc(t,r,!1);var o=r.data;return o[pu]&&o[pu].removeView(),o[Su]=-1,r.view=null,r.data[du]&=-9,r}function ic(t,e){var n=t.data[Ru][e];return oc(t,e),sc(n.data),n}function ac(t){if(-1===t[cu].childIndex)return null;var e=t[t[cu].childIndex];return e.data?e.data:e.dynamicLContainerNode.data}function sc(t){var e=t[_u];Vu(e)&&e.destroyNode&&Ju(t[hu],t[hu],2,e),function(t){if(-1===t[cu].childIndex)return cc(t);for(var e=ac(t);e;){var n=null;if(e.length>=uu?e[cu].childIndex>-1&&(n=ac(e)):e[Ru].length&&(n=e[Ru][0].data),null==n){for(;e&&!e[fu]&&e!==t;)cc(e),e=uc(e,t);cc(e||t),n=e&&e[fu]}e=n}}(t),t[du]|=32}function uc(t,e){var n;return(n=t[hu])&&2===n.tNode.type?Yu(n).data:t[lu]===e?null:t[lu]}function cc(t){if(t[cu]){var e=t;!function(t){var e=t[cu].cleanup;if(null!=e){for(var n=0;n-1&&d>c?v="":(ngDevMode&&ru(u[d],0,"We do not match directives on namespaced attributes"),v=u[d+1]),8&s&&(o=(n=v).length,a=(i=n.indexOf(r=h))+r.length,-1===i||i>0&&" "!==n[i-1]||a=6?e+0:e;n?t[r]|=1:t[r]&=-2}function Oc(t,e){return 1==(1&t[e>=6?e+0:e])}function Tc(t,e){return 2==(2&t[e>=6?e+0:e])}function jc(t,e){return 4==(4&t[e>=6?e+0:e])}function xc(t,e,n){return 7&t|e<<3|n<<17}function Pc(t,e){var n=kc(e);return t[2][n]}function kc(t){return t>>3&16383}function Dc(t){var e=t>>17&16383;return e>=6?e:-1}function Ic(t){return Dc(t[3])}function Nc(t){return t[1]}function Ac(t,e,n){t[e+1]=n}function Rc(t,e,n){t[e+2]=n}function Mc(t,e,n){t[3===e?e:e+0]=n}function Lc(t,e){return t[3===e?e:e+0]}function Fc(t,e){return t[e+2]}function Vc(t,e){return t[e+1]}function Uc(t,e){Ec(t,3,e)}function Hc(t,e,n){for(var r=(n||0)+1;r=0&&Mc(t,u,xc(c=Lc(t,u),kc(c),n));var c,l=Dc(s);l>=0&&Mc(t,l,xc(c=Lc(t,l),kc(c),e)),Rc(t,e,Fc(t,n)),Ac(t,e,Vc(t,n)),Mc(t,e,Lc(t,n)),Rc(t,n,r),Ac(t,n,o),Mc(t,n,i)}function zc(t,e,n,r,o,i){var a=e0){var i=kc(Lc(t,o));Mc(t,o,xc((Oc(t,o)?1:0)|(Tc(t,o)?2:0)|(jc(t,o)?4:0),i,r))}}}(t)}function Gc(t,e){return e?!!t:null!==t}function qc(t,e,n){return e?2:n&&n(t)?4:0}function Kc(t,e,n){return!(2&t)&&e&&n&&4&t?e.toString()!==n.toString():e!==n}var Qc,Zc,Wc,Yc,$c,Jc,Xc,tl,el,nl="__ngHostLNode__",rl=Promise.resolve(null),ol=[0,0],il=new Array(uu).fill(null),al="__CIRCULAR__",sl=null;function ul(){return Qc}function cl(){return tl&&tl[wu]}function ll(){return tl}function fl(){return Wc}function pl(t){return t[gu]||(t[gu]=[])}function dl(t){return t[cu].cleanup||(t[cu].cleanup=[])}var hl=!1,vl=!0;function yl(t,e){var n=tl;return el=t&&t[yu],$c=t&&t[cu],Xc=t&&1==(1&t[du]),vl=t&&$c.firstTemplatePass,Qc=t&&t[_u],null!=e&&(Wc=e,Yc=!0),tl=t,Jc=t&&t[pu],n}function gl(t,e){e||(hl||Du(el,$c.viewHooks,$c.viewCheckHooks,Xc),tl[du]&=-6),tl[du]|=16,tl[vu]=-1,yl(t,null)}function ml(){hl||ku(tl,$c,Xc),function(t){for(var e=ac(tl);null!==e;e=e[fu])if(e.length=p.length){var d=p[f]=Jl(e,f,r,o,s,null);if(!Yc&&Wc){var h=Wc.tNode;h.next=d,h.dynamicContainerNode&&(h.dynamicContainerNode.next=d)}}l.tNode=p[f],Yc&&(Jc=null,(null==Wc.tNode.child&&Wc.view===tl||2===Wc.tNode.type)&&(Wc.tNode.child=l.tNode))}if(2==(2&e)&&c){var v=i;ngDevMode&&null!=v[hu]&&su("lViewData[HOST_NODE] should not have been initialized"),v[hu]=l,vl&&(v[cu].node=l.tNode)}return Wc=l,Yc=!0,l}function El(){Yc=!1,Wc=null}function Ol(t,e,n,r){var o,i=Yc,a=Wc;if(null==t.data[lu]&&t.data[mu]&&!e.template)Ef(t.data[mu]);else try{Yc=!0,Wc=null,o=yl(t.data,t),Dl(),e.template(r,n),2&r?ml():t.data[cu].firstTemplatePass=vl=!1}finally{gl(o,1==(1&r)),Yc=i,Wc=a}return t}function Tl(t,e,n,r){var o=yl(e,t);try{Zc.begin&&Zc.begin(),r?(Dl(),r(jl(e),n),ml()):(_l(),bl(ol),gf(0,uu))}finally{Zc.end&&Zc.end(),gl(o)}}function jl(t){return 1&t[du]?3:2}var xl=null;function Pl(){xl="http://www.w3.org/2000/svg/"}function kl(){xl="http://www.w3.org/1998/MathML/"}function Dl(){xl=null}function Il(t,e,n,r){Nl(t,e,n,r),Wl()}function Nl(t,e,n,r){ngDevMode&&nu(tl[vu],-1,"elements should be created before any bindings"),ngDevMode&&ngDevMode.rendererCreateElement++;var o=Al(e);ngDevMode&&op(t-1);var i=Sl(t,3,o,e,n||null,null);return sl=i,n&&zl(o,n),fc(Yu(i),o,tl),Rl(r),o}function Al(t,e){var n=e||Qc;return Vu(n)?n.createElement(t,xl):null===xl?n.createElement(t):n.createElementNS(xl,t)}function Rl(t){var e=Wc;vl?(ngDevMode&&ngDevMode.firstTemplatePass++,function(t,e,n){var r=n?{"":-1}:null,o=e.currentMatches=Ml(t);if(o)for(var i=0;i0)for(var n=t.flags>>14,r=n+e,o=$c.directives,i=n;i0)for(var o=t>>14,i=o+n,a=0===e,s=$c.directives,u=o;u=y,w=(l=_?v[c-y]:h[c],_?a[l]:i[l]),C=r[w],S=3*c+b,E=3*c+6,O=qc(l,_,n||null);Mc(o,E,xc(O,w,S)),Ac(o,E,l),Rc(o,E,null),Mc(o,S,xc(O|(null!==C?1:0),w,E)),Ac(o,S,l),Rc(o,S,null)}return Mc(o,3,xc(0,0,b)),Uc(o,r.length>1),o}(t,e,n)),(e&&e.length||t&&t.length)&&rf(r.index-uu)}function nf(t){var e=Qf(t);if(!Array.isArray(e)){var n=e,r=n.tNode;ngDevMode&&iu(r.stylingTemplate,"getStylingContext() called before elementStyling()"),e=tl[t+uu]=function(t,e){var n=r.stylingTemplate.slice();return n[0]=t,n}(n)}return e}function rf(t){!function(t,e,n,r){if(function(t){return Oc(t,3)}(t)){for(var o=t[0].native,i=Ic(t),a=Nc(t),s=6;s=u;if(!i||!d){var h=d?f-u:f,v=d?r[h]:s[h],y=d?!!o||e[v]:n[v];if((O=Vc(t,l))===v){var g=Fc(t,l);Kc(T=Lc(t,l),g,y)&&(Rc(t,l,y),(w=Pc(t,T))!==y&&(Ec(t,l,!0),c=!0))}else{var m=Hc(t,v,l);if(m>0){var b=Fc(t,m),_=Lc(t,m);if(Bc(t,l,m),b!==y){var w=Pc(t,_);Rc(t,l,y),w!==y&&(Ec(t,l,!0),c=!0)}}else zc(t,l,d,v,qc(v,d,Nc(t)),y),c=!0}}l+=3,f++}for(;l=u;if(i&&E)break;h=E?f-u:f;var O=E?r[h]:s[h],T=(g=E?!!o||e[O]:n[O],1|qc(O,E,S));t.push(T,O,g),f++,c=!0}c&&Uc(t,!0)}(nf(t),e,n)}function sf(t,e){ngDevMode&&nu(tl[vu],-1,"text nodes should be created before bindings"),ngDevMode&&ngDevMode.rendererCreateTextNode++;var n=ec(e,Qc),r=Sl(t,3,n,null,null);Yc=!1,fc(Yu(r),n,tl)}function uf(t,e){if(e!==Pf){ngDevMode&&op(t+uu);var n=Zf(t);ngDevMode&&iu(n,"LNode should exist"),ngDevMode&&iu(n.native,"native element should exist"),ngDevMode&&ngDevMode.rendererSetText++,Vu(Qc)?Qc.setValue(n.native,Gu(e)):n.native.textContent=Gu(e)}}function cf(t,e,n){var r=lf(t,e,n);ngDevMode&&iu(Wc.tNode,"previousOrParentNode.tNode");var o,i=Wc.tNode;return n.template&&function(t,e,n){var r=Hl(n.template,n.directiveDefs,n.pipeDefs,n.viewQuery),o=Cf(tl,Wc.tNode.index,wl(Zc.createRenderer(Wc.native,n.rendererType),r,null,n.onPush?4:2,cl()));Wc.data=o,o[hu]=Wc,Vl(Wc.nodeInjector,e,o),vl&&Fl(t)}(t,e,n),vl&&(Ou(t,n.onInit,n.doCheck,$c),n.hostBindings&&(o=t,ngDevMode&&nu(vl,!0,"Should only be called in first template pass."),($c.hostBindings||($c.hostBindings=[])).push(o,tl.length-1-uu))),i&&i.attrs&&function(t,e,r,o){var i=o.initialInputs;(void 0===i||t>=i.length)&&(i=function(t,e,n){var r=n.initialInputs||(n.initialInputs=[]);r[t]=null;for(var o=n.attrs,i=0;i=n.length||null==n[t])&&(n[t]=Bl(t,null,$c.directiveRegistry,$c.pipeRegistry,null)),n[t]}(t,e),null,2,cl());n[pu]&&(o[pu]=n[pu].createView()),yl(o,r=Sl(t,2,null,null,null,o))}return e&&(Xc&&rc(e,r,n[Au]),n[Au]++),jl(r.data)}function yf(){ml(),Yc=!1,Wc=tl[hu],gl(tl[lu]),ngDevMode&&nu(Yc,!1,"isParent"),ngDevMode&&Hu(Wc,2)}function gf(t,e){ngDevMode&&op(e);var n=tl[e];ngDevMode&&Hu(n,3),ngDevMode&&iu(n.data,"Component's host node should have an LViewData attached.");var r=n.data;mf(r)&&6&r[du]&&(ngDevMode&&op(t,el),jf(r,n,el[t]))}function mf(t){return 8==(8&t[du])}function bf(t,e){var n=Xu(tl);if(!n.tNode.projection)for(var r=n.tNode.projection=new Array(t?t.length+1:1).fill(null),o=r.slice(),i=n.tNode.child;null!==i;){var a=t?mc(i,t,e):0,s=i.next;o[a]?o[a].next=i:(r[a]=i,i.next=null),o[a]=i,i=s}}var _f=[];function wf(t,e,n){void 0===e&&(e=0);var r=Sl(t,1,null,null,n||null,null);null===r.tNode.projection&&(r.tNode.projection=e),Yc=!1;var o=Yu(r);if(lc(o,tl))for(var i=Xu(tl),a=i.tNode.projection[e],s=i.view,u=-1,c=void 0,l=2===o.tNode.type?(c=Yu(o))&&c.data[Mu]:o;a;){if(1===a.type){var f=Xu(s),p=f.tNode.projection[a.projection];if(p){_f[++u]=s[a.index],a=p,s=f.view;continue}}else(d=s[a.index]).tNode.flags|=8192,dc(d,o,tl,l);var d;null===a.next&&s!==i.view&&(a=(d=_f[u--]).tNode,s=d.view),a=a.next}}function Cf(t,e,n){return t[Cu]?t[Cu][fu]=n:vl&&($c.childIndex=e),t[Cu]=n,n}function Sf(t){for(var e=t;null!=e[lu];)e[du]|=4,e=e[lu];var n,r;e[du]|=4,ngDevMode&&iu(e[mu],"rootContext"),(n=e[mu]).clean==rl&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){Ef(n),r(null),n.clean=rl}))}function Ef(t){for(var e=0;e=$c.data.length&&($c.data[n]=null),tl[n]=e}function qf(t){return ngDevMode&&iu(el,"Directives array should be defined if reading a dir."),ngDevMode&&op(t,el),el[t]}function Kf(t){return ngDevMode&&iu(tl[Eu],"Content QueryList array should be defined if reading a query."),ngDevMode&&op(t,tl[Eu]),tl[Eu][t]}function Qf(t){return qu(t,tl)}function Zf(t){return function(t,e){return Qu(qu(t,tl))}(t)}function Wf(){return ngDevMode&&op(tl[vu]),ngDevMode&&ru(tl[tl[vu]],Pf,"Stored value should never be NO_CHANGE."),tl[tl[vu]++]}function Yf(t){ngDevMode&&ru(t,Pf,"Incoming value should never be NO_CHANGE."),-1===tl[vu]&&kf();var e,n,r=tl[vu];if(r>=tl.length)tl[tl[vu]++]=t;else{if(n=t,(e=tl[r])!=e&&n!=n||e===n)return tl[vu]++,!1;!function(e,n,o,i){if(n){var a="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+tl[r]+"'. Current value: '"+t+"'.";throw e&&(a+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),new Error(a)}}(Xc,hl),tl[tl[vu]++]=t}return!0}function $f(t){return Yf(t),t}function Jf(t,e){var n=Yf(t);return Yf(e)||n}function Xf(t,e,n,r){var o=Jf(t,e);return Jf(n,r)||o}function tp(){return $c}function ep(t){var e=(tl[Eu]||(tl[Eu]=[])).push(t);if(vl){var n=el.length-1,r=$c.contentQueries||($c.contentQueries=[]);n!==($c.contentQueries.length?$c.contentQueries[$c.contentQueries.length-2]:-1)&&r.push(n,e-1)}}function np(){nu(Yc,!0,"previousOrParentNode should be a parent")}function rp(){iu(Yu(Wc),"previousOrParentNode should have a parent")}function op(t,e){null==e&&(e=tl),Ku(t,e||tl)}function ip(t,e){null==e&&(e=tl),nu(e.length,t,"index "+t+" expected to be at the end of arr (length "+e.length+")")}function ap(t,e){if(vl)for(var n=$c.bindingStartIndex-t,r=0;r>14])}(n.view[hu]):null}function Kp(t,e,n){void 0===n&&(n=0);var r,o="number"==typeof(r=e[Np])?r%Ap:null;if(null===o){var i=jt(fl().view[bu]);try{return xt(e,n)}finally{jt(i)}}else for(var a=t;a&&(a=Zp(a,o,n));){var s=a.node,u=s.tNode.flags,c=4095&u;if(0!==c)for(var l=u>>14,f=l+c,p=s.view[cu].directives,d=l;d0&&0==--f)break;if(void 0!==y&&y>p&&(p=y),s){var m=s.indexOf(v)+1;0!==m&&m!==e&&(n=t(m,n,r,o,i,a,s,u))}}else v&&c.push(536870912,v)}if(i){var b=i[e];if(b)for(var _=Object.keys(b),w=0;w<_.length;w++)-1===l.indexOf(S=_[w])&&(c.push(-536870912|(E=b[S])),E>p&&(p=E))}if(a){var C=a[e];if(C)for(_=Object.keys(C),w=0;w<_.length;w++){var S;if(-1===l.indexOf(S=_[w])){var E=C[S];ngDevMode&&ou(E.toString(2).length,28,"Index "+E+" is too big and will overflow"),c.push(-536870912|E),E>p&&(p=E)}}}if(0===e&&"number"==typeof u)for(w=p+1;w<=u;w++)ngDevMode&&ou(w.toString(2).length,28,"Index "+w+" is too big and will overflow"),c.push(-1610612736|w);return n}(0,0,i,a,e,n,r,o),a}function ad(t,e,n){ngDevMode&&ngDevMode.rendererMoveNode++;var r=ll();fc(e,t.native||null,r);var o=t.view[cu].firstTemplatePass;return o&&(n===e&&t.tNode!==e.tNode.child?(t.tNode.next=e.tNode.child,e.tNode.child=t.tNode):n!==e&&t.tNode!==n.tNode.next?(t.tNode.next=n.tNode.next,n.tNode.next=t.tNode):t.tNode.next=null,e.view===t.view&&(t.tNode.parent=e.tNode)),0===t.tNode.type&&t.dynamicLContainerNode?(fc(e,t.dynamicLContainerNode.native||null,r),o&&(t.tNode.dynamicContainerNode=t.dynamicLContainerNode.tNode,t.dynamicLContainerNode.tNode.parent=t.tNode),t.dynamicLContainerNode):t}function sd(t,e){var n=ll();if(ngDevMode&&nu(n[vu],-1,"i18nApply should be called before any binding"),e){var r=ul(),o=Yu(Qf(t))||fl(),i=o;El();for(var a=0;a>14,i=o+(4095&r),a=o;a0?(t=r.concat(t.slice(n+1)),n=0):n++:(e.push(r),n++)}return e}(t),this.dirty=!1},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}();function Kd(t,e,n,r){ngDevMode&&np();var o,i=new qd;return(o=Fd,Jc||(Jc=Wc.queries&&Wc.queries.clone()||new o)).track(i,e,n,r),Ql(null,i,i.destroy),null!=t&&Gf(t,i),i}function Qd(t){return!!t.dirty&&(t.reset(t._valuesTree),t.notifyOnChanges(),!0)}var Zd="__SANITIZER_TRUSTED_BRAND__";function Wd(t,e){return t instanceof String&&t[Zd]===e}function Yd(t){return eh(t,"Html")}function $d(t){return eh(t,"Style")}function Jd(t){return eh(t,"Script")}function Xd(t){return eh(t,"Url")}function th(t){return eh(t,"ResourceUrl")}function eh(t,e){var n=new String(t);return n[Zd]=e,n}function nh(t){var e=cl();return e?e.sanitize(wo.HTML,t)||"":Wd(t,"Html")?t.toString():yo(document,Gu(t))}function rh(t){var e=cl();return e?e.sanitize(wo.STYLE,t)||"":Wd(t,"Style")?t.toString():_o(Gu(t))}function oh(t){var e=cl();return e?e.sanitize(wo.URL,t)||"":Wd(t,"Url")?t.toString():Xr(Gu(t))}function ih(t){var e=cl();if(e)return e.sanitize(wo.RESOURCE_URL,t)||"";if(Wd(t,"ResourceUrl"))return t.toString();throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}},DKTb:function(t,e,n){"use strict";function r(t){setTimeout(function(){throw t})}n.d(e,"a",function(){return r})},"En8+":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},"F/XL":function(t,e,n){"use strict";var r=n("nkY7"),o=n("IUTb"),i=n("G5J1"),a=n("6blF");function s(){for(var t=[],e=0;e0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=c.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(s),p=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return Object(o.__extends)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return c.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+c.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(s),d=void 0,h=["en",[["a","p"],["AM","PM"],d],[["AM","PM"],d,d],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],d,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],d,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",d,"{1} 'at' {0}",d],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],v={},y={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,0],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",0],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",0],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",0],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",0],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",0],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",0],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,0],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UZS:[void 0,void 0,0],VEF:[void 0,"Bs"],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},g=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),m=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),b=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),_=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),w=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),C=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function S(t,e,n){var r=A(t);return I(I([r[3],r[4]],e),n)}function E(t,e,n){var r=A(t);return I(I([r[5],r[6]],e),n)}function O(t,e){return I(A(t)[10],e)}function T(t,e){return I(A(t)[11],e)}function j(t,e){return I(A(t)[12],e)}function x(t,e){var n=A(t),r=n[13][e];if(void 0===r){if(e===C.CurrencyDecimal)return n[13][C.Decimal];if(e===C.CurrencyGroup)return n[13][C.Group]}return r}function P(t,e){return A(t)[14][e]}function k(t){return A(t)[16]||null}function D(t){if(!t[19])throw new Error('Missing extra locale data for the locale "'+t[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function I(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function N(t){var e=Object(o.__read)(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}function A(t){var e=t.toLowerCase().replace(/_/g,"-"),n=v[e];if(n)return n;var r=e.split("-")[0];if(n=v[r])return n;if("en"===r)return h;throw new Error('Missing locale data for the locale "'+t+'".')}var R=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,M={},L=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,F=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),V=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),U=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function H(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function B(t,e,n,r,o){void 0===n&&(n="-");var i="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,i=n));for(var a=String(t);a.length0||u>-n)&&(u+=n),t===V.Hours)0===u&&-12===n&&(u=12);else if(t===V.FractionalSeconds)return s=e,B(u,3).substr(0,s);var c=x(a,C.MinusSign);return B(u,e,c,r,o)}}function G(t,e,n,r){return void 0===n&&(n=b.Format),void 0===r&&(r=!1),function(o,i){return function(t,e,n,r,o,i){switch(n){case U.Months:return E(e,o,r)[t.getMonth()];case U.Days:return S(e,o,r)[t.getDay()];case U.DayPeriods:var a=t.getHours(),s=t.getMinutes();if(i){var u,c=function(t){var e=A(t);return D(e),(e[19][2]||[]).map(function(t){return"string"==typeof t?N(t):[N(t[0]),N(t[1])]})}(e),l=function(t,e,n){var r=A(t);return D(r),I(I([r[19][0],r[19][1]],e)||[],n)||[]}(e,o,r);if(c.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=t[1],o=r.hours;a>=n.hours&&s>=n.minutes&&(a0?Math.floor(o/60):Math.ceil(o/60);switch(t){case F.Short:return(o>=0?"+":"")+B(a,2,i)+B(Math.abs(o%60),2,i);case F.ShortGMT:return"GMT"+(o>=0?"+":"")+B(a,1,i);case F.Long:return"GMT"+(o>=0?"+":"")+B(a,2,i)+":"+B(Math.abs(o%60),2,i);case F.Extended:return 0===r?"Z":(o>=0?"+":"")+B(a,2,i)+":"+B(Math.abs(o%60),2,i);default:throw new Error('Unknown zone width "'+t+'"')}}}var K=0,Q=4;function Z(t,e){return void 0===e&&(e=!1),function(n,r){var o,i,a,s;if(e){var u=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,c=n.getDate();o=1+Math.floor((c+u)/7)}else{var l=(a=n.getFullYear(),s=new Date(a,K,1).getDay(),new Date(a,0,1+(s<=Q?Q:Q+7)-s)),f=(i=n,new Date(i.getFullYear(),i.getMonth(),i.getDate()+(Q-i.getDay()))).getTime()-l.getTime();o=1+Math.round(f/6048e5)}return B(o,t,x(r,C.MinusSign))}}var W={};function Y(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function $(t){return t instanceof Date&&!isNaN(t.valueOf())}var J=/^(\d+)?\.((\d+)(-(\d+))?)?$/,X=22,tt=".",et="0",nt=";",rt=",",ot="#";function it(t,e,n,r,o,i,a){void 0===a&&(a=!1);var s="",u=!1;if(isFinite(t)){var c=function(e){var n,r,o,i,a,s=Math.abs(t)+"",u=0;for((r=s.indexOf(tt))>-1&&(s=s.replace(tt,"")),(o=s.search(/e/i))>0?(r<0&&(r=o),r+=+s.slice(o+1),s=s.substring(0,o)):r<0&&(r=s.length),o=0;s.charAt(o)===et;o++);if(o===(a=s.length))n=[0],r=1;else{for(a--;s.charAt(a)===et;)a--;for(r-=o,n=[],i=0;o<=a;o++,i++)n[i]=Number(s.charAt(o))}return r>X&&(n=n.splice(0,X-1),u=r-1,r=1),{digits:n,exponent:u,integerLen:r}}();a&&(c=function(t){if(0===t.digits[0])return t;var e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));var l=e.minInt,f=e.minFrac,p=e.maxFrac;if(i){var d=i.match(J);if(null===d)throw new Error(i+" is not a valid digit info");var h=d[1],v=d[3],y=d[5];null!=h&&(l=st(h)),null!=v&&(f=st(v)),null!=y?p=st(y):null!=v&&f>p&&(p=f)}!function(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction ("+e+") is higher than the maximum ("+n+").");var r=t.digits,o=r.length-t.integerLen,i=Math.min(Math.max(e,o),n),a=i+t.integerLen,s=r[a];if(a>0){r.splice(Math.max(t.integerLen,a));for(var u=a;u=5)if(a-1<0){for(var l=0;l>a;l--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[a-1]++;for(;o=p?r.pop():f=!1),e>=10?1:0},0);d&&(r.unshift(d),t.integerLen++)}(c,f,p);var g=c.digits,m=c.integerLen,b=c.exponent,_=[];for(u=g.every(function(t){return!t});m0?_=g.splice(m,g.length):(_=g,g=[0]);var w=[];for(g.length>=e.lgSize&&w.unshift(g.splice(-e.lgSize,g.length).join(""));g.length>e.gSize;)w.unshift(g.splice(-e.gSize,g.length).join(""));g.length&&w.unshift(g.join("")),s=w.join(x(n,r)),_.length&&(s+=x(n,o)+_.join("")),b&&(s+=x(n,C.Exponential)+"+"+b)}else s=x(n,C.Infinity);return t<0&&!u?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf}function at(t,e){void 0===e&&(e="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(nt),o=r[0],i=r[1],a=-1!==o.indexOf(tt)?o.split(tt):[o.substring(0,o.lastIndexOf(et)+1),o.substring(o.lastIndexOf(et)+1)],s=a[0],u=a[1]||"";n.posPre=s.substr(0,s.indexOf(ot));for(var c=0;c=2&&(n=!0),function(r){return r.lift(new a(t,e,n))}}var a=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return r.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(o.a),u=n("AxiF"),c=n("HJBe"),l=n("y3By");function f(t,e){return arguments.length>=2?function(n){return Object(l.a)(i(t,e),Object(u.a)(1),Object(c.a)(e))(n)}:function(e){return Object(l.a)(i(function(e,n,r){return t(e,n,r+1)}),Object(u.a)(1))(e)}}n.d(e,"a",function(){return f})},S1nX:function(t,e,n){"use strict";var r=n("mrSG"),o=n("K9Ia"),i=n("6blF"),a=n("FFOo"),s=n("pugT");function u(){return function(t){return t.lift(new c(t))}}var c=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new l(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(a.a),f=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new d(this.getSubject(),this))),t.closed?(this._connection=null,t=s.a.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return u()(this)},e}(i.a).prototype,p={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:f._subscribe},_isComplete:{value:f._isComplete,writable:!0},getSubject:{value:f.getSubject},connect:{value:f.connect},refCount:{value:f.refCount}},d=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.b);function h(){return new o.a}function v(){return function(t){return u()((e=h,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,p);return r.source=t,r.subjectFactory=n,r})(t));var e}}n.d(e,"a",function(){return v})},S5XQ:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("DKTb"),o=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,r.a),e}}},TwVa:function(t,e,n){"use strict";var r=n("j11M"),o=function(){function t(){this.PayPalTokenSBX="",this.PayPalTokenProd="",this.PayPalTokenSBXJDO="",this.PayPalTokenSBXSLHS="",this.PayPalTokenSBXBHE="",this.PayPalTokenProdJDO="",this.PayPalTokenProdBHE="",this.LogoImage="assets/images/BHE.png",this.HomePageTitle="TBD HomePageTitle",this.HomePageMessage1="TBD HomePageMessage1",this.HomePageMessage2="TBD HomePageMessage2",this.HomePageMessage3="TBD HomePageMessage3",this.HeaderTitle="TBD HeaderTitle",this.CheckoutNote1="TBD CheckoutNote1",this.CheckoutNote2="TBD CheckoutNote2",this.PayPalDescription="TBD PayPalDescription",this.PayPalNote="Contact us for any questions on your order. (bhespiritwear@gmail.com)",this.PayPalID="TBDPayPalID",this.ProductList1="List.001a",this.ProductList2="TBD ProductList2",this.ProductList3="TBD ProductList3",this.ProductList4="TBD ProductList4",this.version="1.2.28",this.apiVersion="1.1.28"}return t.prototype.ngOnInit=function(){},t}(),i=function(){},a=function(){function t(){}return t.prototype.test=function(){console.log("Test 00")},t.prototype.AddItem=function(t,e){e.price=this.price,e.quantity=1,t.ChartItems.push(e)},t.prototype.AddItemQuantity=function(t){this.quantity+=t},t}(),s=function(){},u=function(){function t(){}return t.prototype.test=function(){console.log("Test 02")},t.prototype.AddItem=function(t,e){e.size=this.size,e.price=this.price,e.quantity=1,t.ChartItems.push(e),console.log(t)},t}(),c=function(){},l=function(){},f=n("MCeb"),p=function(){function t(){}return t.prototype.AddItem=function(t){this.ChartItems.push(t)},t}(),d=function(){},h=function(){function t(){}return t.prototype.AddItem=function(t){this.ChartItems.push(t)},t.prototype.CreatePayPalTransaction=function(t){var e=new f.e;e.intent="sale",e.payer=new f.f("paypal");var n=new f.h,r=new f.a;r.total="12.34",r.currency="USD",n.amount=r,n.description="BHE Store 2018-19",n.payment_options=new f.g("INSTANT_FUNDING_SOURCE"),n.item_list=new f.c,t.ChartItems.forEach(function(t){var e=new f.d;e.name=t.name,e.description=t.description,e.quantity="1",e.price=t.price.toString(),e.sku=t.sku,e.currency="USD",n.item_list.items.push(e),console.log("ItemZ "+n.item_list.items)}),e.transactions.push(n),e.note_to_payer="Contact us for any questions on your order. (BHE)"},t}(),v=function(){function t(){}return t.prototype.initStudent=function(){var e=new t;return e.StudentId=-1,e.ClassId=-1,e.SchoolId=-1,e.UserId=-1,e.StudentFirstName="",e.StudentLastName="",e.StudentCode="",e.EmailAddress="",e.Donation=0,e.Donations=0,e.UserDonation=0,e.UserPayment=0,e},t}(),y=function(){this.ChartModelList=[]},g=function(){function t(){}return t.prototype.initUser=function(){var e;return(e=new t).UserId=-1,e.UserName="",e.EmailAddress="",e.Address1="",e.Address2="",e.City="",e.State="",e.ZipCode="",e.Country="",e.Token="",e.TokenExpire="",e.Donations=0,e},t}();n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return o}),n.d(e,!1,function(){return i}),n.d(e,!1,function(){return a}),n.d(e,!1,function(){return s}),n.d(e,!1,function(){return u}),n.d(e,"c",function(){return c}),n.d(e,!1,function(){return l}),n.d(e,!1,function(){return f.e}),n.d(e,!1,function(){return f.f}),n.d(e,!1,function(){return f.h}),n.d(e,!1,function(){return f.a}),n.d(e,!1,function(){return f.b}),n.d(e,!1,function(){return f.g}),n.d(e,!1,function(){return f.c}),n.d(e,!1,function(){return f.d}),n.d(e,!1,function(){}),n.d(e,!1,function(){}),n.d(e,!1,function(){return p}),n.d(e,!1,function(){return d}),n.d(e,"d",function(){return h}),n.d(e,!1,function(){return v}),n.d(e,!1,function(){return y}),n.d(e,"e",function(){return g})},Txjg:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("Zn8D");function o(){return Object(r.a)(1)}},"VnD/":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("mrSG"),o=n("FFOo");function i(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(o.a)},XlPw:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("6blF");function o(t,e){return new r.a(e?function(n){return e.schedule(i,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function i(t){t.subscriber.error(t.error)}},"ZF+8":function(t,e,n){"use strict";var r=n("kLIY"),o=n("BbT4"),i=n("NuUg"),a=n("t/Na"),s=n("XlPw"),u=n("67Y/"),c=n("9Z1F"),l=n("TwVa"),f=n("CcnG"),p=n("j11M"),d=function(){function t(t,e){this.httpClient=t,this.config=e,this.appConfig=new l.a("OrderService"),this.appSettings=new l.b,console.log("StudentsService constructor")}return t.prototype.ngOnInit=function(){console.log("StudentsService ngOnInit")},t.prototype.getStudent=function(t){return this.httpClient.get(l.a.baseURL+"Student").pipe(Object(u.a)(function(t){return t}),Object(c.a)(function(t){return Object(s.a)("getStudents : Something went wrong")}))},t.prototype.getSummary=function(){var t=(new a.g).set("ClientID",this.appConfig.ClientID).set("Environment",this.appConfig.environment);return this.httpClient.get(l.a.baseURL+"Summary",{headers:t}).pipe(Object(u.a)(function(t){return t}),Object(c.a)(function(t){return Object(s.a)("getSummary : Something went wrong")}))},t.prototype.getSummary2=function(){return(new a.g).set("ClientID",this.appConfig.ClientID).set("Environment",this.appConfig.environment),this.httpClient.get("./assets/SummaryInfo.json").pipe(Object(u.a)(function(t){return t}),Object(c.a)(function(t){return Object(s.a)("getSummary2 : Something went wrong")}))},t.prototype.updateDonation=function(t){console.log("updateStudent: "+JSON.stringify(t)),localStorage.setItem("currentStudentCode",t.StudentCode);var e=(new a.g).set("ClientID",this.appConfig.ClientID).set("Environment",this.appConfig.environment);return this.httpClient.post(l.a.baseURL+"Student",t,{headers:e}).pipe(Object(u.a)(function(t){return console.log(t),t}),Object(c.a)(function(t){return Object(s.a)("updateDonation : Something went wrong")}))},t.prototype.getStudents=function(){var t=(new a.g).set("ClientID",this.appConfig.ClientID).set("Environment",this.appConfig.environment);return this.httpClient.post(l.a.baseURL+"Student",{headers:t}).pipe(Object(u.a)(function(t){return t}),Object(c.a)(function(t){return Object(s.a)("getStudents : Something went wrong")}))},t.prototype.addStudent=function(t){var e=JSON.parse(localStorage.getItem("currentUser"));t.EmailAddress=e.EmailAddress,console.log("Log addStudent: "+JSON.stringify(t));var n=(new a.g).set("ClientID",this.appConfig.ClientID).set("Environment",this.appConfig.environment);return this.httpClient.put(l.a.baseURL+"Student",t,{headers:n}).pipe(Object(u.a)(function(t){return console.log(t),t}),Object(c.a)(function(t){return Object(s.a)("addStudent : Something went wrong")}))},t.prototype.getAppName=function(){return this.httpClient.get("https://udemy-ng-http.firebaseio.com/appName.json").pipe(Object(u.a)(function(t){return t}),Object(c.a)(function(t){return Object(s.a)("getAppName : Something went wrong")}))},t.prototype.onExecute=function(t){return console.log("onExecute"),this.httpClient.put(l.a.baseURL+"Student/1",t).pipe(Object(u.a)(function(t){return console.log(t),t}),Object(c.a)(function(t){return Object(s.a)("onExecute : Something went wrong")}))},t.ngInjectableDef=f.defineInjectable({factory:function(){return new t(f.inject(a.c),f.inject(p.a))},token:t,providedIn:"root"}),t}(),h=n("mSOc"),v=n("ZYCi"),y=function(){function t(t,e,n){this.httpClient=t,this.config=e,this.router=n,this.appConfig=new l.a("OrderService"),this.appSettings=new l.b}return t.prototype.getUserToken=function(t,e){var n=this,r={EmailAddress:t,UserHash:e};return console.log(r),this.httpClient.post(l.a.baseURL+"User",r).pipe(Object(u.a)(function(t){return t&&t.Token&&t.UserId&&t.UserId>0?(console.log("getUserToken: "+t.Token),t.UserName="Guest",localStorage.setItem("currentUser",JSON.stringify(t)),JSON.parse(localStorage.getItem("currentUser")),n.router.navigate(["/dashboard"])):(console.log("getUserToken - Fail"),n.user=new l.e,n.user=n.user.initUser(),n.user.UserId=-1,n.user.UserName="No Name",n.user.EmailAddress="No Email",n.user.Token="No Token",n.router.navigate(["/login"])),t}),Object(c.a)(function(t){return Object(s.a)("getUserToken : Something went wrong 2")}))},t.prototype.validateUserToken=function(t){var e=this;return this.httpClient.delete(l.a.baseURL+"User/"+t).pipe(Object(u.a)(function(t){return t&&t.Token&&t.UserId&&t.UserId>0?(localStorage.setItem("currentUser",JSON.stringify(t)),JSON.parse(localStorage.getItem("currentUser"))):(console.log("Validate UserToken - Fail"),e.user=new l.e,e.user=e.user.initUser(),e.user.UserId=-1,e.user.UserName="No Name",e.user.EmailAddress="No Email",e.user.Token="No Token",e.logout(),e.router.navigate(["/login"])),t}),Object(c.a)(function(t){return Object(s.a)("validateUserToken : Something went wrong")}))},t.prototype.addUser=function(t){return delete t.UserId,delete t.Donations,delete t.Token,delete t.TokenExpire,console.log(t),console.log(JSON.stringify(t)),this.httpClient.put(l.a.baseURL+"User",t).pipe(Object(u.a)(function(t){console.log("data: "+t),t&&t.Token&&t.UserId&&t.UserId>0?localStorage.setItem("currentUser",JSON.stringify(t)):console.log("getUserToken - Fail")}),Object(c.a)(function(t){return Object(s.a)("addUser : Something went wrong")}))},t.prototype.logout=function(){localStorage.removeItem("currentUser")},t.prototype.getAppName=function(){return this.httpClient.get("https://udemy-ng-http.firebaseio.com/appName.json").pipe(Object(u.a)(function(t){return t}),Object(c.a)(function(t){return Object(s.a)("getAppName : Something went wrong")}))},t.ngInjectableDef=f.defineInjectable({factory:function(){return new t(f.inject(a.c),f.inject(p.a),f.inject(v.l))},token:t,providedIn:"root"}),t}();n.d(e,!1,function(){return r.a}),n.d(e,!1,function(){return o.a}),n.d(e,"a",function(){return i.a}),n.d(e,!1,function(){return d}),n.d(e,!1,function(){return h.a}),n.d(e,!1,function(){return y})},ZYCi:function(t,e,n){"use strict";var r=n("mrSG"),o=n("CcnG"),i=n("F/XL"),a=n("K9Ia"),s=n("26FU"),u=n("0/uQ"),c=n("6blF");function l(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}l.prototype=Object.create(Error.prototype);var f=l,p=n("67Y/"),d=n("Phjn"),h=n("psW0"),v=n("Qgas"),y=n("VnD/"),g=n("AxiF"),m=n("xMyE"),b=function(t){return void 0===t&&(t=_),Object(m.a)({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw t()}})};function _(){return new f}var w=n("HJBe"),C=n("mChF");function S(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(y.a)(function(e,n){return t(e,n,r)}):C.a,Object(g.a)(1),n?Object(w.a)(e):b(function(){return new f}))}}var E=n("t9fZ");function O(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(y.a)(function(e,n){return t(e,n,r)}):C.a,Object(E.a)(1),n?Object(w.a)(e):b(function(){return new f}))}}var T=n("9Z1F"),j=n("Txjg"),x=n("FFOo");function P(t,e){return function(n){return n.lift(new k(t,e,n))}}var k=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new D(t,this.predicate,this.thisArg,this.source))},t}(),D=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return r.__extends(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(x.a),I=n("Zn8D"),N=n("Ip0R"),A=n("ZYjt");n.d(e,"u",function(){return tn}),n.d(e,"B",function(){return fn}),n.d(e,"w",function(){return on}),n.d(e,"C",function(){return pn}),n.d(e,"D",function(){return dn}),n.d(e,"y",function(){return sn}),n.d(e,"x",function(){return an}),n.d(e,"A",function(){return ln}),n.d(e,"v",function(){return nn}),n.d(e,"z",function(){return cn}),n.d(e,"E",function(){return Je}),n.d(e,"n",function(){return He}),n.d(e,"m",function(){return ze}),n.d(e,"p",function(){return Ke}),n.d(e,"d",function(){return L}),n.d(e,"k",function(){return Pe}),n.d(e,"l",function(){return Fe}),n.d(e,"j",function(){return De}),n.d(e,"h",function(){return Xe}),n.d(e,"i",function(){return hn}),n.d(e,"o",function(){return rn}),n.d(e,"b",function(){return qe}),n.d(e,"e",function(){return Ye}),n.d(e,"f",function(){return We}),n.d(e,"g",function(){return Ze}),n.d(e,"q",function(){return $e}),n.d(e,"a",function(){return Jt}),n.d(e,"r",function(){return Ne}),n.d(e,"c",function(){return wt}),n.d(e,"s",function(){return _t}),n.d(e,"t",function(){return J});var R=function(t,e){this.id=t,this.url=e},M=function(t){function e(e,n,r,o){void 0===r&&(r="imperative"),void 0===o&&(o=null);var i=t.call(this,e,n)||this;return i.navigationTrigger=r,i.restoredState=o,i}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(R),L=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(R),F=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.reason=r,o}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(R),V=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.error=r,o}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(R),U=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(R),H=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(R),B=function(t){function e(e,n,r,o,i){var a=t.call(this,e,n)||this;return a.urlAfterRedirects=r,a.state=o,a.shouldActivate=i,a}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(R),z=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(R),G=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(R),q=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),K=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),Q=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Z=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),W=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Y=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),$=function(){function t(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),J=function(){},X="primary",tt=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function et(t){return new tt(t)}function nt(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function ft(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function pt(t){return t.pipe(Object(I.a)(),P(function(t){return!0===t}))}function dt(t){return Object(o["\u0275isObservable"])(t)?t:Object(o["\u0275isPromise"])(t)?Object(u.a)(Promise.resolve(t)):Object(i.a)(t)}function ht(t,e,n){return n?function(t,e){return ut(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!mt(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!mt(a=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!mt(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var a=o.slice(0,n.segments.length),s=o.slice(n.segments.length);return!!mt(n.segments,a)&&!!n.children[X]&&e(n.children[X],r,s)}(e,n,n.segments)}(t.root,e.root)}var vt=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=et(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ct.serialize(this)},t}(),yt=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,ft(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return St(this)},t}(),gt=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=et(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Pt(this)},t}();function mt(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function bt(t,e){var n=[];return ft(t.children,function(t,r){r===X&&(n=n.concat(e(t,r)))}),ft(t.children,function(t,r){r!==X&&(n=n.concat(e(t,r)))}),n}var _t=function(){},wt=function(){function t(){}return t.prototype.parse=function(t){var e=new At(t);return new vt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return St(e);if(n){var r=e.children[X]?t(e.children[X],!1):"",o=[];return ft(e.children,function(e,n){n!==X&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=bt(e,function(n,r){return r===X?[t(e.children[X],!1)]:[r+":"+t(n,!1)]});return St(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Ot(t)+"="+Ot(e)}).join("&"):Ot(t)+"="+Ot(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Ct=new wt;function St(t){return t.segments.map(function(t){return Pt(t)}).join("/")}function Et(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ot(t){return Et(t).replace(/%3B/gi,";")}function Tt(t){return Et(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function jt(t){return decodeURIComponent(t)}function xt(t){return jt(t.replace(/\+/g,"%20"))}function Pt(t){return""+Tt(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Tt(t)+"="+Tt(e[t])}).join(""));var e}var kt=/^[^\/()?;=#]+/;function Dt(t){var e=t.match(kt);return e?e[0]:""}var It=/^[^=?&#]+/,Nt=/^[^?&#]+/,At=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new yt([],{}):new yt([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[X]=new yt(t,e)),n},t.prototype.parseSegment=function(){var t=Dt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new gt(jt(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Dt(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Dt(this.remaining);r&&this.capture(n=r)}t[jt(e)]=jt(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(It))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(Nt);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=xt(n),a=xt(r);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(t[i]=s=[s]),s.push(a)}else t[i]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Dt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=X);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[X]:new yt([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Rt=function(t){this.segmentGroup=t||null},Mt=function(t){this.urlTree=t};function Lt(t){return new c.a(function(e){return e.error(new Rt(t))})}function Ft(t){return new c.a(function(e){return e.error(new Mt(t))})}function Vt(t){return new c.a(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var Ut=function(){function t(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(o.NgModuleRef)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,X).pipe(Object(p.a)(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(Object(T.a)(function(e){if(e instanceof Mt)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Rt)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,X).pipe(Object(p.a)(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(Object(T.a)(function(t){if(t instanceof Rt)throw e.noMatchError(t);throw t}))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,o=t.segments.length>0?new yt([],((r={})[X]=t,r)):t;return new vt(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(p.a)(function(t){return new yt([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Object(i.a)({});var a=[],s=[],u={};return ft(n,function(n,o){var i,c,l=(i=o,c=n,r.expandSegmentGroup(t,e,c,i)).pipe(Object(p.a)(function(t){return u[o]=t}));o===X?a.push(l):s.push(l)}),i.a.apply(null,a.concat(s)).pipe(Object(j.a)(),S(),Object(p.a)(function(){return u}))}(n.children)},t.prototype.expandSegment=function(t,e,n,o,a,s){var u=this;return i.a.apply(void 0,Object(r.__spread)(n)).pipe(Object(p.a)(function(r){return u.expandSegmentAgainstRoute(t,e,n,r,o,a,s).pipe(Object(T.a)(function(t){if(t instanceof Rt)return Object(i.a)(null);throw t}))}),Object(j.a)(),O(function(t){return!!t}),Object(T.a)(function(t,n){if(t instanceof f||"EmptyError"===t.name){if(u.noLeftoversInUrl(e,o,a))return Object(i.a)(new yt([],{}));throw new Rt(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,a){return Gt(r)!==i?Lt(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):Lt(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ft(i):this.lineralizeSegments(n,i).pipe(Object(h.a)(function(n){var i=new yt(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var a=this,s=Ht(e,r,o),u=s.consumedSegments,c=s.lastChild,l=s.positionalParamSegments;if(!s.matched)return Lt(e);var f=this.applyRedirectCommands(u,r.redirectTo,l);return r.redirectTo.startsWith("/")?Ft(f):this.lineralizeSegments(r,f).pipe(Object(h.a)(function(r){return a.expandSegment(t,e,n,r.concat(o.slice(c)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,o){var a=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(p.a)(function(t){return n._loadedConfig=t,new yt(o,{})})):Object(i.a)(new yt(o,{}));var s=Ht(e,n,o),u=s.consumedSegments,c=s.lastChild;if(!s.matched)return Lt(e);var l=o.slice(c);return this.getChildConfig(t,n).pipe(Object(h.a)(function(t){var n=t.module,o=t.routes,s=function(t,e,n,o){return n.length>0&&function(t,e,n){return o.some(function(n){return zt(t,e,n)&&Gt(n)!==X})}(t,n)?{segmentGroup:Bt(new yt(e,function(t,e){var n,o,i={};i[X]=e;try{for(var a=Object(r.__values)(t),s=a.next();!s.done;s=a.next()){var u=s.value;""===u.path&&Gt(u)!==X&&(i[Gt(u)]=new yt([],{}))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i}(o,new yt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return o.some(function(n){return zt(t,e,n)})}(t,n)?{segmentGroup:Bt(new yt(t.segments,function(t,e,n,o){var i,a,s={};try{for(var u=Object(r.__values)(n),c=u.next();!c.done;c=u.next()){var l=c.value;zt(t,e,l)&&!o[Gt(l)]&&(s[Gt(l)]=new yt([],{}))}}catch(t){i={error:t}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return Object(r.__assign)({},o,s)}(t,n,o,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,u,l,o),c=s.segmentGroup,f=s.slicedSegments;return 0===f.length&&c.hasChildren()?a.expandChildren(n,o,c).pipe(Object(p.a)(function(t){return new yt(u,t)})):0===o.length&&0===f.length?Object(i.a)(new yt(u,{})):a.expandSegment(n,c,o,f,X,!0).pipe(Object(p.a)(function(t){return new yt(u.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?Object(i.a)(new rt(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(i.a)(e._loadedConfig):function(t,e){var n=e.canLoad;return n&&0!==n.length?pt(Object(u.a)(n).pipe(Object(p.a)(function(n){var r=t.get(n);return dt(r.canLoad?r.canLoad(e):r(e))}))):Object(i.a)(!0)}(t.injector,e).pipe(Object(h.a)(function(r){return r?n.configLoader.load(t.injector,e).pipe(Object(p.a)(function(t){return e._loadedConfig=t,t})):function(t){return new c.a(function(e){return e.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(e)})):Object(i.a)(new rt([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(i.a)(n);if(r.numberOfChildren>1||!r.children[X])return Vt(t.redirectTo);r=r.children[X]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new vt(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return ft(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),a={};return ft(e.children,function(e,i){a[i]=o.createSegmentGroup(t,e,n,r)}),new yt(i,a)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,o,i=0;try{for(var a=Object(r.__values)(e),s=a.next();!s.done;s=a.next()){var u=s.value;if(u.path===t.path)return e.splice(i),u;i++}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return t},t}();function Ht(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||nt)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Bt(t){if(1===t.numberOfChildren&&t.children[X]){var e=t.children[X];return new yt(t.segments.concat(e.segments),e.children)}return t}function zt(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Gt(t){return t.outlet||X}var qt=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=Kt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=Kt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Qt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return Qt(t,this._root).map(function(t){return t.value})},t}();function Kt(t,e){var n,o;if(t===e.value)return e;try{for(var i=Object(r.__values)(e.children),a=i.next();!a.done;a=i.next()){var s=Kt(t,a.value);if(s)return s}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return null}function Qt(t,e){var n,o;if(t===e.value)return[e];try{for(var i=Object(r.__values)(e.children),a=i.next();!a.done;a=i.next()){var s=Qt(t,a.value);if(s.length)return s.unshift(e),s}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return[]}var Zt=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Wt(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Yt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,ne(r,e),r}return Object(r.__extends)(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(qt);function $t(t,e){var n=function(t,e){var n=new te([],{},{},"",{},X,e,null,t.root,-1,{});return new ee("",new Zt(n,[]))}(t,e),r=new s.a([new gt("",{})]),o=new s.a({}),i=new s.a({}),a=new s.a({}),u=new s.a(""),c=new Jt(r,o,a,u,i,X,e,n.root);return c.snapshot=n.root,new Yt(new Zt(c,[]),n)}var Jt=function(){function t(t,e,n,r,o,i,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this._futureSnapshot=s}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(p.a)(function(t){return et(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(p.a)(function(t){return et(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Xt(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,o=0;if("always"!==e)for(o=n.length-1;o>=1;){var i=n[o],a=n[o-1];if(i.routeConfig&&""===i.routeConfig.path)o--;else{if(a.component)break;o--}}return function(t){return t.reduce(function(t,e){return{params:Object(r.__assign)({},t.params,e.params),data:Object(r.__assign)({},t.data,e.data),resolve:Object(r.__assign)({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(o))}var te=function(){function t(t,e,n,r,o,i,a,s,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this.routeConfig=s,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=et(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=et(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),ee=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,ne(r,n),r}return Object(r.__extends)(e,t),e.prototype.toString=function(){return re(this._root)},e}(qt);function ne(t,e){e.value._routerState=t,e.children.forEach(function(e){return ne(t,e)})}function re(t){var e=t.children.length>0?" { "+t.children.map(re).join(", ")+" } ":"";return""+t.value+e}function oe(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,ut(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),ut(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&ae(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==lt(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),ce=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function le(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[X]:""+t}function fe(t,e,n){if(t||(t=new yt([],{})),0===t.segments.length&&t.hasChildren())return pe(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var a=t.segments[o],s=le(n[r]),u=r0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!ye(s,u,a))return i;r+=2}else{if(!ye(s,{},a))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?lt(n).parameters:{};i=new te(n,u,Object.freeze(Object(r.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,je(t),o,t.component,t,Ce(e),Se(e)+n.length,xe(t))}else{var c=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new _e;return{consumedSegments:[],lastChild:0,parameters:{}}}var o=(e.matcher||nt)(n,t,e);if(!o)throw new _e;var i={};ft(o.posParams,function(t,e){i[e]=t.path});var a=o.consumed.length>0?Object(r.__assign)({},i,o.consumed[o.consumed.length-1].parameters):i;return{consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:a}}(e,t,n);a=c.consumedSegments,s=n.slice(c.lastChild),i=new te(a,c.parameters,Object.freeze(Object(r.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,je(t),o,t.component,t,Ce(e),Se(e)+a.length,xe(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),f=Ee(e,a,s,l,this.relativeLinkResolution),p=f.segmentGroup,d=f.slicedSegments;if(0===d.length&&p.hasChildren()){var h=this.processChildren(l,p);return[new Zt(i,h)]}if(0===l.length&&0===d.length)return[new Zt(i,[])];var v=this.processSegment(l,p,d,X);return[new Zt(i,v)]},t}();function Ce(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Se(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Ee(t,e,n,o,i){if(n.length>0&&function(t,e,n){return o.some(function(n){return Oe(t,e,n)&&Te(n)!==X})}(t,n)){var a=new yt(e,function(t,e,n,o){var i,a,s={};s[X]=o,o._sourceSegment=t,o._segmentIndexShift=e.length;try{for(var u=Object(r.__values)(n),c=u.next();!c.done;c=u.next()){var l=c.value;if(""===l.path&&Te(l)!==X){var f=new yt([],{});f._sourceSegment=t,f._segmentIndexShift=e.length,s[Te(l)]=f}}}catch(t){i={error:t}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return s}(t,e,o,new yt(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return o.some(function(n){return Oe(t,e,n)})}(t,n)){var s=new yt(t.segments,function(t,e,n,o,i,a){var s,u,c={};try{for(var l=Object(r.__values)(o),f=l.next();!f.done;f=l.next()){var p=f.value;if(Oe(t,n,p)&&!i[Te(p)]){var d=new yt([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===a?t.segments.length:e.length,c[Te(p)]=d}}}catch(t){s={error:t}}finally{try{f&&!f.done&&(u=l.return)&&u.call(l)}finally{if(s)throw s.error}}return Object(r.__assign)({},i,c)}(t,e,n,o,t.children,i));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var u=new yt(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function Oe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Te(t){return t.outlet||X}function je(t){return t.data||{}}function xe(t){return t.resolve||{}}var Pe=function(){},ke=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),De=new o.InjectionToken("ROUTES"),Ie=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(p.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new rt(ct(o.injector.get(De)).map(st),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Object(u.a)(this.loader.load(t)):dt(t()).pipe(Object(h.a)(function(t){return t instanceof o.NgModuleFactory?Object(i.a)(t):Object(u.a)(e.compiler.compileModuleAsync(t))}))},t}(),Ne=function(){},Ae=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function Re(t){throw t}function Me(t,e,n){return e.parse("/")}function Le(t,e){return Object(i.a)(null)}var Fe=function(){function t(t,e,n,r,i,u,c,l){var f=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=l,this.navigations=new s.a(null),this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new a.a,this.errorHandler=Re,this.malformedUriErrorHandler=Me,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Le,afterPreactivation:Le},this.urlHandlingStrategy=new Ae,this.routeReuseStrategy=new ke,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(o.NgModuleRef),this.console=i.get(o["\u0275Console"]);var p=i.get(o.NgZone);this.isNgZoneEnabled=p instanceof o.NgZone,this.resetConfig(l),this.currentUrlTree=new vt(new yt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Ie(u,c,function(t){return f.triggerEvent(new q(t))},function(t){return f.triggerEvent(new K(t))}),this.routerState=$t(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.parseUrl(e.url),r="popstate"===e.type?"popstate":"hashchange",o=e.state&&e.state.navigationId?{navigationId:e.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(n,r,o,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){ot(t),this.config=t.map(st),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,i=e.queryParams,a=e.fragment,s=e.preserveQueryParams,u=e.queryParamsHandling,c=e.preserveFragment;Object(o.isDevMode)()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,f=c?this.currentUrlTree.fragment:a,p=null;if(u)switch(u){case"merge":p=Object(r.__assign)({},this.currentUrlTree.queryParams,i);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=i||null}else p=s?this.currentUrlTree.queryParams:i||null;return null!==p&&(p=this.removeEmptyProps(p)),function(t,e,n,o,i){if(0===n.length)return se(e.root,e.root,e,o,i);var a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ue(!0,0,t);var e=0,n=!1,o=t.reduce(function(t,o,i){if("object"==typeof o&&null!=o){if(o.outlets){var a={};return ft(o.outlets,function(t,e){a[e]="string"==typeof t?t.split("/"):t}),Object(r.__spread)(t,[{outlets:a}])}if(o.segmentPath)return Object(r.__spread)(t,[o.segmentPath])}return"string"!=typeof o?Object(r.__spread)(t,[o]):0===i?(o.split("/").forEach(function(r,o){0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):Object(r.__spread)(t,[o])},[]);return new ue(n,e,o)}(n);if(a.toRoot())return se(e.root,new yt([],{}),e,o,i);var s=function(t,n,r){if(t.isAbsolute)return new ce(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new ce(r.snapshot._urlSegment,!0,0);var o=ae(t.commands[0])?0:1;return function(e,n,i){for(var a=r.snapshot._urlSegment,s=r.snapshot._lastPathIndex+o,u=t.numberOfDoubleDots;u>s;){if(u-=s,!(a=a.parent))throw new Error("Invalid number of '../'");s=a.segments.length}return new ce(a,!1,s-u)}()}(a,0,t),u=s.processChildren?pe(s.segmentGroup,s.index,a.commands):fe(s.segmentGroup,s.index,a.commands);return se(s.segmentGroup,u,e,o,i)}(l,this.currentUrlTree,t,p,f)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),Object(o.isDevMode)()&&this.isNgZoneEnabled&&!o.NgZone.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=t instanceof vt?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;s||(s=t[a]=[]);var c=Y(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:c,handler:o});else{for(var l=!1,f=0;f-1},e}(P),ot=["alt","control","meta","shift"],it={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},at=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var o=e.parseEventName(n),i=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=e._normalizeKey(n.pop()),i="";if(ot.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;var a={};return a.domEventName=r,a.fullKey=i,a},e.getEventFullKey=function(t){var e="",n=s().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ot.forEach(function(r){r!=n&&(0,it[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(o){e.getEventFullKey(o)===t&&r.runGuarded(function(){return n(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(P),st=function(){},ut=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(r.__extends)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case i.SecurityContext.NONE:return e;case i.SecurityContext.HTML:return e instanceof lt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),Object(i["\u0275_sanitizeHtml"])(this._doc,String(e)));case i.SecurityContext.STYLE:return e instanceof ft?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),Object(i["\u0275_sanitizeStyle"])(e));case i.SecurityContext.SCRIPT:if(e instanceof pt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case i.SecurityContext.URL:return e instanceof ht||e instanceof dt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),Object(i["\u0275_sanitizeUrl"])(String(e)));case i.SecurityContext.RESOURCE_URL:if(e instanceof ht)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof ct)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new lt(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new ft(t)},e.prototype.bypassSecurityTrustScript=function(t){return new pt(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new dt(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new ht(t)},e}(st),ct=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(ct),ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getTypeName=function(){return"Style"},e}(ct),pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getTypeName=function(){return"Script"},e}(ct),dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getTypeName=function(){return"URL"},e}(ct),ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(ct),vt=[{provide:i.PLATFORM_ID,useValue:o.B},{provide:i.PLATFORM_INITIALIZER,useValue:function(){d.makeCurrent(),_.init()},multi:!0},{provide:o.u,useClass:g,deps:[v]},{provide:v,useFactory:function(){return document},deps:[]}],yt=Object(i.createPlatformFactory)(i.platformCore,"browser",vt);function gt(){return new i.ErrorHandler}var mt=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:i.APP_ID,useValue:e.appId},{provide:m,useExisting:i.APP_ID},b]}},t}();function bt(){return new _t(Object(i.inject)(v))}var _t=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return s().getTitle(this._doc)},t.prototype.setTitle=function(t){s().setTitle(this._doc,t)},t.ngInjectableDef=Object(i.defineInjectable)({factory:bt,token:t,providedIn:"root"}),t}();"undefined"!=typeof window&&window},Zn8D:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("psW0"),o=n("mChF");function i(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(o.a,t)}},b7mW:function(t,e,n){"use strict";function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}n.d(e,"a",function(){return o}),r.prototype=Object.create(Error.prototype);var o=r},crnd:function(t,e,n){var r={"./access-denied/access-denied.module.ngfactory":["iUTe",21],"./blank-page/blank-page.module.ngfactory":["LcBl",7],"./bs-component/bs-component.module.ngfactory":["oW3c",1,2,0,8],"./bs-element/bs-element.module.ngfactory":["WgX5",0,10],"./charts/charts.module.ngfactory":["rYty",3,0,13],"./checkout/checkout.module.ngfactory":["kN1t",1,2,0,17],"./dashboard/dashboard.module.ngfactory":["UE8e",3,0,14],"./form/form.module.ngfactory":["aEOV",0,11],"./grid/grid.module.ngfactory":["6OTL",0,9],"./home/home.module.ngfactory":["L6id",23],"./layout/layout.module.ngfactory":["/cdV",1,0,24],"./not-found/not-found.module.ngfactory":["Ec8W",20],"./order-list/order-list.module.ngfactory":["+CLj",1,2,0,16],"./orderdetails/orderdetails.module.ngfactory":["9l/8",1,2,0,15],"./product-list/product-list.module.ngfactory":["Envh",1,2,0,19],"./product2-list/product2-list.module.ngfactory":["LH0/",1,2,0,6],"./product3-list/product3-list.module.ngfactory":["TQFg",1,2,0,5],"./revieworder/revieworder.module.ngfactory":["YnYF",1,2,0,18],"./server-error/server-error.module.ngfactory":["+g98",22],"./spiritwear/spiritwear-list.module.ngfactory":["bToH",1,2,0,4],"./tables/tables.module.ngfactory":["TP0X",0,12]};function o(t){var e=r[t];return e?Promise.all(e.slice(1).map(n.e)).then(function(){return n(e[0])}):Promise.resolve().then(function(){var e=new Error('Cannot find module "'+t+'".');throw e.code="MODULE_NOT_FOUND",e})}o.keys=function(){return Object.keys(r)},o.id="crnd",t.exports=o},gIcY:function(t,e,n){"use strict";var r=n("mrSG"),o=n("CcnG"),i=n("0/uQ"),a=n("6blF"),s=n("isby"),u=n("G5J1"),c=n("zotm"),l=n("MGBS"),f=n("67Y/"),p=function(t){function e(e,n){var r=t.call(this,e)||this;r.sources=n,r.completed=0,r.haveValues=0;var o=n.length;r.values=new Array(o);for(var i=0;it?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return y(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return y(t.value)?null:m.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(y(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(y(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(_);return 0==e.length?null:function(t){return C(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(_);return 0==e.length?null:function(t){return function t(){for(var e,n=[],r=0;r=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),N=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(D),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}(),A=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),R='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',M='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',L='\n
\n
\n \n
\n
',F=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+R)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+M+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+L)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+R)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+M)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}();function V(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var U=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=o["\u0275looseIdentical"]}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=V(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var o=Object(r.__values)(Array.from(this._optionMap.keys())),i=o.next();!i.done;i=o.next()){var a=i.value;if(this._compareWith(this._optionMap.get(a),t))return a}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),H=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(V(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();function B(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var z=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=o["\u0275looseIdentical"]}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function $(t){return null!=t?b.compose(t.map(j)):null}function J(t){return null!=t?b.composeAsync(t.map(x)):null}function X(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(o["\u0275looseIdentical"])(e,n.currentValue)}var tt=[E,A,P,U,z,N];function et(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function nt(t,e){if(!e)return null;Array.isArray(e)||Y(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){var i;e.constructor===T?n=e:(i=e,tt.some(function(t){return i.constructor===t})?(r&&Y(t,"More than one built-in value accessor matches form control with"),r=e):(o&&Y(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(Y(t,"No valid value accessor for form control with"),null)}function rt(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return q(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return $(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return J(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(v),it=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),at=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e}(it),st=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e}(it);function ut(t){var e=lt(t)?t.validators:t;return Array.isArray(e)?$(e):e||null}function ct(t,e){var n=lt(e)?e.asyncValidators:t;return Array.isArray(n)?J(n):n||null}function lt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var ft=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=ut(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=ct(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(Object(r.__assign)({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status="VALID",this._forEachChild(function(e){e.enable(Object(r.__assign)({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=w(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof dt?t.controls.hasOwnProperty(e)?t.controls[e]:null:t instanceof ht&&t.at(e)||null},t))}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new o.EventEmitter,this.statusChanges=new o.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){lt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),pt=function(t){function e(e,n,r){void 0===e&&(e=null);var o=t.call(this,ut(n),ct(r,n))||this;return o._onChange=[],o._applyFormState(e),o._setUpdateStrategy(n),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return Object(r.__extends)(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(ft),dt=function(t){function e(e,n,r){var o=t.call(this,ut(n),ct(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(r.__extends)(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof pt?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,o){n=n||e.contains(o)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=Object(r.__values)(Object.keys(this.controls)),o=n.next();!o.done;o=n.next())if(this.controls[o.value].enabled)return!1}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(ft),ht=function(t){function e(e,n,r){var o=t.call(this,ut(n),ct(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(r.__extends)(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof pt?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=Object(r.__values)(this.controls),o=n.next();!o.done;o=n.next())if(o.value.enabled)return!1}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(ft),vt=Promise.resolve(null),yt=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new o.EventEmitter,r.form=new dt({},$(e),J(n)),r}return Object(r.__extends)(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;vt.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),K(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;vt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),rt(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;vt.then(function(){var n=e._findContainer(t.path),r=new dt({});Z(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;vt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;vt.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,et(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(v),gt=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+R+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+M+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+L)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+M+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+L)},t}(),mt=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return Object(r.__extends)(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof yt||gt.modelGroupParentException()},e}(ot),bt=Promise.resolve(null),_t=function(t){function e(e,n,r,i){var a=t.call(this)||this;return a.control=new pt,a._registered=!1,a.update=new o.EventEmitter,a._parent=e,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=nt(a,i),a}return Object(r.__extends)(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),X(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?q(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return $(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){K(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof mt)&&this._parent instanceof ot?gt.formGroupNameException():this._parent instanceof mt||this._parent instanceof yt||gt.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||gt.missingNameException()},e.prototype._updateValue=function(t){var e=this;bt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;bt.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(D),wt=new o.InjectionToken("NgModelWithFormControlWarning"),Ct=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new o.EventEmitter,r}return Object(r.__extends)(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return K(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){rt(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);Z(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);Z(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,et(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange(function(){return W(e)}),e.valueAccessor.registerOnTouched(function(){return W(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&K(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=$(this._validators);this.form.validator=b.compose([this.form.validator,t]);var e=J(this._asyncValidators);this.form.asyncValidator=b.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||F.missingFormException()},e}(v),St=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return Object(r.__extends)(e,t),e.prototype._checkParentType=function(){Ot(this._parent)&&F.groupParentException()},e}(ot),Et=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return Object(r.__extends)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return q(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return $(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return J(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){Ot(this._parent)&&F.arrayParentException()},e}(v);function Ot(t){return!(t instanceof St||t instanceof Ct||t instanceof Et)}var Tt=function(t){function e(e,n,r,i,a){var s=t.call(this)||this;return s._ngModelWarningConfig=a,s._added=!1,s.update=new o.EventEmitter,s._ngModelWarningSent=!1,s._parent=e,s._rawValidators=n||[],s._rawAsyncValidators=r||[],s.valueAccessor=nt(s,i),s}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){F.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){var n,r,i,a;this._added||this._setUpControl(),X(t,this.viewModel)&&(n="formControlName",r=e,i=this,a=this._ngModelWarningConfig,Object(o.isDevMode)()&&"never"!==a&&((null!==a&&"once"!==a||r._ngModelWarningSentOnce)&&("always"!==a||i._ngModelWarningSent)||(F.ngModelWarning(n),r._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return q(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return $(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof St)&&this._parent instanceof ot?F.ngModelGroupException():this._parent instanceof St||this._parent instanceof Ct||this._parent instanceof Et||F.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e._ngModelWarningSentOnce=!1,e}(D),jt=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t);return new dt(n,null!=e?e.validator:null,null!=e?e.asyncValidator:null)},t.prototype.control=function(t,e,n){return new pt(t,e,n)},t.prototype.array=function(t,e,n){var r=this,o=t.map(function(t){return r._createControl(t)});return new ht(o,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){return t instanceof pt||t instanceof dt||t instanceof ht?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t}(),xt=function(){},Pt=function(){},kt=function(){},Dt=function(){function t(){}return t.withConfig=function(e){return{ngModule:t,providers:[{provide:wt,useValue:e.warnOnNgModelWithFormControl}]}},t}()},iLxQ:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},isby:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},j11M:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(e){this.funcName=e,this.environment="PROD",this.ClientID="BHEFundraiser",this.apiUrl="https://api.myschoolstore.net/api/",this.apiUrlProd="https://api.myschoolstore.net/api/",this.apiUrlDev="https://api.myschoolstore.net/api/",this.apiUrlDevTestzzzzz="http://localhost:5000/api/",this.apiUrlS3="https://api.myschoolstore.net/api/s3Proxy/",this.version="1.0.31",t.SettingsLoaded?console.log(e+" Startup *************"):(t.baseURL=this.getApiUrl(),console.log(e+" Startup ............. "+t.baseURL))}return t.prototype.getApiUrl=function(){return"DEV"==this.environment?this.apiUrlDev:this.apiUrl},t.prototype.getPayPalEnvironment=function(){return"DEV"==this.environment?"sandbox":"production"},t.prototype.getPayPalToken=function(e){return"sandbox"==e?t.appSetting.PayPalTokenSBXJDO:t.appSetting.PayPalTokenProdBHE},t.SettingsLoaded=!1,t}()},kLIY:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("CcnG"),o=function(){function t(){}return t.prototype.confirm=function(t,e){alertify.confirm(t,function(t){t&&e()})},t.prototype.success=function(t){alertify.success(t)},t.prototype.error=function(t){alertify.error(t)},t.prototype.warning=function(t){alertify.warning(t)},t.prototype.message=function(t){alertify.message(t)},t.ngInjectableDef=r.defineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}()},mChF:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",function(){return r})},mSOc:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("XlPw"),o=n("67Y/"),i=n("9Z1F"),a=n("TwVa"),s=n("CcnG"),u=n("t/Na"),c=function(){function t(t){this.httpClient=t,this.appConfig=new a.a("SummaryService")}return t.prototype.getSummary=function(){return this.httpClient.get("./assets/SummaryInfo.json").pipe(Object(o.a)(function(t){return t}),Object(i.a)(function(t){return Object(r.a)("getSummary : Something went wrong")}))},t.prototype.getSummary2=function(){return this.httpClient.get("./assets/SummaryInfo.json").pipe(Object(o.a)(function(t){return t}),Object(i.a)(function(t){return console.log(t),Object(r.a)("getSummary : Something went wrong")}))},t.prototype.getAlerts=function(){return this.httpClient.get("./assets/Alerts.json").pipe(Object(o.a)(function(t){return t}),Object(i.a)(function(t){return console.log(t),Object(r.a)("getAlerts : Something went wrong")}))},t.prototype.getProductList=function(){return console.log("getProductList 01"),this.httpClient.get("./assets/ProductList.001.json").pipe(Object(o.a)(function(t){return console.log(t),t}),Object(i.a)(function(t){return console.log(t),Object(r.a)("getProductList : Something went wrong")}))},t.prototype.getProductNameList=function(t){return this.httpClient.get("./assets/"+t+".json").pipe(Object(o.a)(function(t){return t}),Object(i.a)(function(t){return console.log(t),Object(r.a)("getProductNameList : Something went wrong")}))},t.prototype.getShoppingCart=function(){return this.httpClient.get("./assets/ShoppingChart.json").pipe(Object(o.a)(function(t){return t}),Object(i.a)(function(t){return console.log(t),Object(r.a)("getShoppingCart : Something went wrong "+t)}))},t.prototype.getPayPalTransaction=function(t){return this.httpClient.get("./assets/"+t).pipe(Object(o.a)(function(t){return t}),Object(i.a)(function(t){return console.log(t),Object(r.a)("getPayPalTransaction : Something went wrong")}))},t.ngInjectableDef=s.defineInjectable({factory:function(){return new t(s.inject(u.c))},token:t,providedIn:"root"}),t}()},mrSG:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",function(){return o}),n.d(e,"__assign",function(){return i}),n.d(e,"__rest",function(){return a}),n.d(e,"__decorate",function(){return s}),n.d(e,"__param",function(){return u}),n.d(e,"__metadata",function(){return c}),n.d(e,"__awaiter",function(){return l}),n.d(e,"__generator",function(){return f}),n.d(e,"__exportStar",function(){return p}),n.d(e,"__values",function(){return d}),n.d(e,"__read",function(){return h}),n.d(e,"__spread",function(){return v}),n.d(e,"__await",function(){return y}),n.d(e,"__asyncGenerator",function(){return g}),n.d(e,"__asyncDelegator",function(){return m}),n.d(e,"__asyncValues",function(){return b}),n.d(e,"__makeTemplateObject",function(){return _}),n.d(e,"__importStar",function(){return w}),n.d(e,"__importDefault",function(){return C});var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(a,s)}u((r=r.apply(t,e||[])).next())})}function f(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=r[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function h(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function v(){for(var t=[],e=0;e1||s(t,e)})})}function s(t,e){try{(n=o[t](e)).value instanceof y?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(t){l(i[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function l(t,e){t(e),i.shift(),i.length&&s(i[0][0],i[0][1])}}function m(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:o?o(e):e}:o}}function b(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=d(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,o){!function(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}(r,o,(e=t[n](e)).done,e.value)})}}}function _(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function w(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}},nkY7:function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",function(){return r})},p0ib:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("6blF"),o=n("nkY7"),i=n("Zn8D"),a=n("IUTb");function s(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(i.a)(n)(Object(a.a)(t,s))}},pMnS:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("CcnG"),o=n("ZYCi"),i=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function a(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r["\u0275did"](1,212992,null,0,o.p,[o.b,r.ViewContainerRef,r.ComponentFactoryResolver,[8,null],r.ChangeDetectorRef],null,null)],function(t,e){t(e,1,0)},null)}var s=r["\u0275ccf"]("ng-component",o.t,function(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"ng-component",[],null,null,null,a,i)),r["\u0275did"](1,49152,null,0,o.t,[],null,null)],null,null)},{},{},[])},psW0:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("mrSG"),o=n("zotm"),i=n("MGBS"),a=n("rPjj"),s=n("67Y/"),u=n("0/uQ");function c(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(c(function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)(function(t,o){return e(n,t,r,o)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new l(t,n))})}var l=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project,this.concurrent))},t}(),f=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.__extends(e,t),e.prototype._next=function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.a)},pugT:function(t,e,n){"use strict";var r,o=n("isby"),i=n("McSo"),a=n("2Bdj"),s={e:{}};function u(){try{return r.apply(this,arguments)}catch(t){return s.e=t,s}}function c(t){return r=t,u}function l(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}l.prototype=Object.create(Error.prototype);var f=l;n.d(e,"a",function(){return p});var p=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,u=this._unsubscribe,l=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var p=-1,h=r?r.length:0;n;)n.remove(this),n=++p0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var o=("a"===t.op?this.headers.get(e):void 0)||[];o.push.apply(o,Object(r.__spread)(n)),this.headers.set(e,o);break;case"d":var i=t.value;if(i){var a=this.headers.get(e);if(!a)return;0===(a=a.filter(function(t){return-1===i.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),h=function(){function t(){}return t.prototype.encodeKey=function(t){return v(t)},t.prototype.encodeValue=function(t){return v(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function v(t){return encodeURIComponent(t).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,"/")}var y=function(){function t(t){void 0===t&&(t={});var e,n,o,i=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new h,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,o=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),i=Object(r.__read)(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),a=i[0],s=i[1],u=o.get(a)||[];u.push(s),o.set(a,u)}),o)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];i.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function g(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function m(t){return"undefined"!=typeof Blob&&t instanceof Blob}function b(t){return"undefined"!=typeof FormData&&t instanceof FormData}var _=function(){function t(t,e,n,r){var o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new d),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a=200&&this.status<300}}(),S=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=w.ResponseHeader,n}return Object(r.__extends)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(C),E=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=w.Response,n.body=void 0!==e.body?e.body:null,n}return Object(r.__extends)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(C),O=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return Object(r.__extends)(e,t),e}(C);function T(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var j=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;if(void 0===n&&(n={}),t instanceof _)r=t;else{var a;a=n.headers instanceof d?n.headers:new d(n.headers);var l=void 0;n.params&&(l=n.params instanceof y?n.params:new y({fromObject:n.params})),r=new _(t,e,void 0!==n.body?n.body:null,{headers:a,params:l,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var f=Object(i.a)(r).pipe(Object(s.a)(function(t){return o.handler.handle(t)}));if(t instanceof _||"events"===n.observe)return f;var p=f.pipe(Object(u.a)(function(t){return t instanceof E}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return p.pipe(Object(c.a)(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return p.pipe(Object(c.a)(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return p.pipe(Object(c.a)(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return p.pipe(Object(c.a)(function(t){return t.body}))}case"response":return p;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new y).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,T(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,T(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,T(n,e))},t}(),x=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),P=new o.InjectionToken("HTTP_INTERCEPTORS"),k=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),D=/^\)\]\}',?\n/,I=function(){},N=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),A=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new a.a(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new d(r.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new S({headers:o,status:e,statusText:n,url:i})},c=function(){var e=u(),o=e.headers,i=e.status,a=e.statusText,s=e.url,c=null;204!==i&&(c=void 0===r.response?r.responseText:r.response),0===i&&(i=c?200:0);var l=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof c){var f=c;c=c.replace(D,"");try{c=""!==c?JSON.parse(c):null}catch(t){c=f,l&&(l=!1,c={error:t,text:c})}}l?(n.next(new E({body:c,headers:o,status:i,statusText:a,url:s||void 0})),n.complete()):n.error(new O({error:c,headers:o,status:i,statusText:a,url:s||void 0}))},l=function(t){var e=new O({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},f=!1,p=function(e){f||(n.next(u()),f=!0);var o={type:w.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},h=function(t){var e={type:w.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",c),r.addEventListener("error",l),t.reportProgress&&(r.addEventListener("progress",p),null!==a&&r.upload&&r.upload.addEventListener("progress",h)),r.send(a),n.next({type:w.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("load",c),t.reportProgress&&(r.removeEventListener("progress",p),null!==a&&r.upload&&r.upload.removeEventListener("progress",h)),r.abort()}})},t}(),R=new o.InjectionToken("XSRF_COOKIE_NAME"),M=new o.InjectionToken("XSRF_HEADER_NAME"),L=function(){},F=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(l.D)(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),V=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),U=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(P,[]);this.chain=e.reduceRight(function(t,e){return new x(t,e)},this.backend)}return this.chain.handle(t)},t}(),H=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:V,useClass:k}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:R,useValue:e.cookieName}:[],e.headerName?{provide:M,useValue:e.headerName}:[]]}},t}(),B=function(){}},t9fZ:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("mrSG"),o=n("FFOo"),i=n("b7mW"),a=n("G5J1");function s(t){return function(e){return 0===t?Object(a.b)():e.lift(new u(t))}}var u=function(){function t(t){if(this.total=t,this.total<0)throw new i.a}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.a)},u67D:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("En8+"),o=function(t){return function(e){for(var n=t[r.a]();;){var o=n.next();if(o.done){e.complete();break}if(e.next(o.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}}},xMyE:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("mrSG"),o=n("FFOo"),i=n("+umK"),a=n("2Bdj");function s(t,e,n){return function(r){return r.lift(new u(t,e,n))}}var u=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))},t}(),c=function(t){function e(e,n,r,o){var s=t.call(this,e)||this;return s._tapNext=i.a,s._tapError=i.a,s._tapComplete=i.a,s._tapError=r||i.a,s._tapComplete=o||i.a,Object(a.a)(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||i.a,s._tapError=n.error||i.a,s._tapComplete=n.complete||i.a),s}return r.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(o.a)},xTla:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},y3By:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});var r=n("+umK");function o(){for(var t=[],e=0;e0){var t=0;this.route.snapshot.children[0].url.forEach(function(e){console.log("ngOnInit AppComponent route: ["+t.toString()+"] "+e),t++}),"home"==this.route.snapshot.children[0].url[0].path&&this.route.snapshot.children[0].url[0].path&&console.log("*** Route to Home ***")}this.onAppSettings()},t.prototype.onAppSettings=function(){var t=this;console.log("ngOnInit onAppSettings"),this.appService.getAppSettings().subscribe(function(e){t.appSettings=e,console.log(t.appSettings),t.setTitle(t.appSettings.HomePageTitle),s.a.SettingsLoaded||(s.a.SettingsLoaded=!0,console.log("AppSettings loaded - Reroute to Home"))},function(t){return console.log(t)})},t.prototype.setTitle=function(t){this.titleService.setTitle(this.appSettings.HomePageTitle)},t}()),c=n("mrSG"),l=n("Ip0R"),f=n("t/Na");function p(t){if(!t)throw new Error("Invalid format for currency. Expected a non empty string");var e={currencyCode:void 0,display:"symbol",digitsInfo:void 0,locale:void 0},n=["currencyCode","display","digitsInfo","locale"],r=t.split(":");if(r.length>4)throw new Error("Invalid format for currency. Expected a value in the form "+n.join(":")+" and got "+t);return r.forEach(function(t,r){var o=t;"auto"===o&&(o=1===r?"symbol":void 0),e[n[r]]=o}),e}var d=function(){function t(){this.localeFormat=p("auto"),this.format="auto",this.onChange=new r.EventEmitter,this.onItemAdded=new r.EventEmitter,this.onItemRemoved=new r.EventEmitter,this.onItemsChanged=new r.EventEmitter,this.onTaxChange=new r.EventEmitter,this.onShippingChange=new r.EventEmitter}return t.prototype.getTax=function(){return this.cost()*(this.getTaxRate()/100)},t.prototype.totalCost=function(){return this.cost()+this.getTax()+this.getShipping()},t.prototype.setLocaleFormat=function(t){this.localeFormat=p(t),this.format=t,this.onChange.emit({change:"format",value:this.format})},t.prototype.getLocaleFormat=function(t){return void 0===t&&(t=!1),t?this.localeFormat:this.format},t.prototype.toObject=function(){return{taxRate:this.getTaxRate(),shipping:this.getShipping(),items:this.getItems()}},t}(),h=function(){function t(){}return t.prototype.total=function(){return this.getPrice()*this.getQuantity()},t}(),v=function(){},y=new r.InjectionToken("CartItemClass"),g=new r.InjectionToken("CartServiceConfiguration"),m=new r.InjectionToken("CartServiceType"),b=function(t){function e(){var e=t.apply(this,Object(c.__spread)(arguments))||this;return e._items=[],e._taxRate=0,e._shipping=0,e}return Object(c.__extends)(e,t),e.prototype._addItem=function(t){var e=this._items.findIndex(function(e){return e.getId()===t.getId()});-1===e?this._items.push(t):this._items[e]=t,this.onItemAdded.emit(t),this.onItemsChanged.emit(this._items.length),this.onChange.emit({change:"items",value:this.getItems()})},e.prototype._removeItem=function(t){var e=this._items.findIndex(function(e){return e.getId()===t});if(-1!==e){var n=this._items.splice(e,1);this.onItemRemoved.emit(n[0]),this.onItemsChanged.emit(this._items.length),this.onChange.emit({change:"items",value:this.getItems()})}},e.prototype.getItem=function(t){return this._items.find(function(e){return e.getId()===t})},e.prototype.getItems=function(){return this._items.slice()},e.prototype.itemCount=function(){return this._items.length},e.prototype.entries=function(){return this._items.reduce(function(t,e){return t+e.getQuantity()},0)},e.prototype.addItem=function(t){this._addItem(t)},e.prototype.removeItem=function(t){this._removeItem(t)},e.prototype.cost=function(){return this._items.reduce(function(t,e){return t+e.getPrice()*e.getQuantity()},0)},e.prototype.clear=function(){this._items=[],this.onItemsChanged.emit(this._items.length),this.onChange.emit({change:"items",value:this.getItems()})},e.prototype.getShipping=function(){return this._shipping},e.prototype.setShipping=function(t){this._shipping=t,this.onShippingChange.emit(this._shipping),this.onChange.emit({change:"shipping",value:this._shipping})},e.prototype.getTaxRate=function(){return this._taxRate},e.prototype.setTaxRate=function(t){this._taxRate=t,this.onTaxChange.emit(this._taxRate),this.onChange.emit({change:"taxRate",value:this._taxRate})},e.prototype.isEmpty=function(){return 0===this._items.length},e}(d),_=function(t){function e(e,n){var r=t.call(this)||this;return r.storageKey=n&&n.storageKey?n.storageKey:"NgShoppingCart",r.clearOnError=!n||void 0===n.clearOnError||n.clearOnError,r.itemClass=e,r}return Object(c.__extends)(e,t),e.prototype.resetStorage=function(t){if(!this.clearOnError&&t){if("string"==typeof t)throw new Error(t);throw t}this.setTaxRate(0),this.setShipping(0),this.clear(),this.save()},e.prototype.save=function(){this.storage.setItem(this.storageKey,JSON.stringify(this.toObject()))},e.prototype.restore=function(){var t=this;if(this.storage.getItem(this.storageKey))try{var e=JSON.parse(this.storage.getItem(this.storageKey));if(!(e.hasOwnProperty("items")&&Array.isArray(e.items)&&e.hasOwnProperty("taxRate")&&e.hasOwnProperty("shipping")))return void this.resetStorage("The object found under the key "+this.storageKey+" is not a valid cart object");this._items=e.items.map(function(e){return t.itemClass.fromJSON?t.itemClass.fromJSON(e):new t.itemClass(e)}),this.setTaxRate(parseFloat(e.taxRate)),this.setShipping(parseFloat(e.shipping))}catch(t){this.resetStorage(t)}else this.resetStorage(!1)},e.prototype.addItem=function(e){t.prototype.addItem.call(this,e),this.save()},e.prototype.removeItem=function(e){t.prototype.removeItem.call(this,e),this.save()},e.prototype.clear=function(){t.prototype.clear.call(this),this.save()},e.prototype.setShipping=function(e){t.prototype.setShipping.call(this,e),this.save()},e.prototype.setTaxRate=function(e){t.prototype.setTaxRate.call(this,e),this.save()},e}(b),w=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.storage=window.localStorage,r.restore(),r}return Object(c.__extends)(e,t),e}(_),C=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.storage=window.sessionStorage,r.restore(),r}return Object(c.__extends)(e,t),e}(_),S=function(t){function e(e){void 0===e&&(e={});var n=t.call(this)||this;return n.id=e.id||0,n.name=e.name||"",n.price=e.price||0,n.image=e.image||"",n.quantity=e.quantity||1,n.data=e.data||{},n}return Object(c.__extends)(e,t),e.prototype.getId=function(){return this.id},e.prototype.setId=function(t){this.id=t},e.prototype.getName=function(){return this.name},e.prototype.setName=function(t){this.name=t},e.prototype.getPrice=function(){return this.price},e.prototype.setPrice=function(t){this.price=t},e.prototype.getQuantity=function(){return this.quantity},e.prototype.setQuantity=function(t){this.quantity=t},e.prototype.getImage=function(){return this.image},e.prototype.setImage=function(t){this.image=t},e.prototype.getData=function(){return this.data},e.prototype.setData=function(t){this.data=t},e}(h);function E(t,e,n){switch(t){case"localStorage":return new w(e,n);case"sessionStorage":return new C(e,n);default:return new b}}var O=function(){function t(t){this._locale=t,this.currencyFormatter=new l.c(this._locale)}return t.prototype.transform=function(t,e){if(void 0===e&&(e="auto"),!t&&0!==t)return null;var n=p(e);return this.currencyFormatter.transform(t,n.currencyCode,n.display,n.digitsInfo,n.locale)},t}(),T=function(){function t(){}return t.forRoot=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[(r=e.itemType,{provide:y,useValue:r||S}),(n=e.serviceType,{provide:m,useValue:n||"localStorage"}),{provide:g,useValue:"memory"!==e.serviceType?e.serviceOptions||{storageKey:"NgShoppingCart",clearOnError:!0}:null},{provide:d,useFactory:E,deps:[m,y,g]}]};var n,r},t.forChild=function(){return{ngModule:t}},t}(),j=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function x(t){return r["\u0275vid"](0,[r["\u0275pid"](0,O,[r.LOCALE_ID]),(t()(),r["\u0275eld"](1,0,null,null,8,"div",[["class","showcase-item default-sc-item"]],null,null,null,null,null)),r["\u0275did"](2,278528,null,0,l.q,[r.KeyValueDiffers,r.ElementRef,r.Renderer2],{ngStyle:[0,"ngStyle"]},null),r["\u0275pod"](3,{"background-image":0}),(t()(),r["\u0275eld"](4,0,null,null,5,"div",[["class","default-sc-description"]],null,null,null,null,null)),(t()(),r["\u0275eld"](5,0,null,null,1,"div",[["class","default-sc-name"]],null,null,null,null,null)),(t()(),r["\u0275ted"](6,null,[" "," "])),(t()(),r["\u0275eld"](7,0,null,null,2,"div",[["class","default-sc-price"]],null,null,null,null,null)),(t()(),r["\u0275ted"](8,null,[" "," "])),r["\u0275ppd"](9,2)],function(t,e){t(e,2,0,t(e,3,0,"url("+e.component.item.getImage()+")"))},function(t,e){var n=e.component;t(e,6,0,n.item.getName()),t(e,8,0,r["\u0275unv"](e,8,0,t(e,9,0,r["\u0275nov"](e,0),n.item.getPrice(),n.format)))})}var P=r["\u0275ccf"]("cart-showcase-item",v,function(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"cart-showcase-item",[],null,null,null,x,j)),r["\u0275did"](1,49152,null,0,v,[],null,null)],null,null)},{},{},[]),k=n("pMnS"),D=n("ZYCi"),I=n("ZYjt"),N=n("BbT4"),A=r["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}});function R(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r["\u0275did"](1,212992,null,0,D.p,[D.b,r.ViewContainerRef,r.ComponentFactoryResolver,[8,null],r.ChangeDetectorRef],null,null)],function(t,e){t(e,1,0)},null)}var M=r["\u0275ccf"]("app-root",u,function(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"app-root",[],null,null,null,R,A)),r["\u0275did"](1,114688,null,0,u,[D.l,D.a,I.i,N.a],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),L=function(){},F="*";function V(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function U(t){return{type:6,styles:t,offset:null}}function H(t){Promise.resolve(null).then(t)}var B=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;H(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),z=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,r=0,o=0,i=this.players.length;0==i?H(function(){return e._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==i&&e._onFinish()}),t.onDestroy(function(){++r==i&&e._onDestroy()}),t.onStart(function(){++o==i&&e._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this.players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this.players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this.players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),G="!";function q(){return"undefined"!=typeof process}function K(t){switch(t.length){case 0:return new B;case 1:return t[0];default:return new z(t)}}function Q(t,e,n,r,o,i){void 0===o&&(o={}),void 0===i&&(i={});var a=[],s=[],u=-1,c=null;if(r.forEach(function(t){var n=t.offset,r=n==u,l=r&&c||{};Object.keys(t).forEach(function(n){var r=n,s=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),s){case G:s=o[n];break;case F:s=i[n];break;default:s=e.normalizeStyleValue(n,r,s,a)}l[r]=s}),r||s.push(l),c=l,u=n}),a.length)throw new Error("Unable to animate due to the following errors:\n - "+a.join("\n - "));return s}function Z(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&W(n,"start",t))});break;case"done":t.onDone(function(){return r(n&&W(n,"done",t))});break;case"destroy":t.onDestroy(function(){return r(n&&W(n,"destroy",t))})}}function W(t,e,n){var r=n.totalTime,o=Y(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,void 0==r?t.totalTime:r,!!n.disabled),i=t._data;return null!=i&&(o._data=i),o}function Y(t,e,n,r,o,i,a){return void 0===o&&(o=""),void 0===i&&(i=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!a}}function $(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function J(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var X=function(t,e){return!1},tt=function(t,e){return!1},et=function(t,e,n){return[]},nt=q();if(nt||"undefined"!=typeof Element){if(X=function(t,e){return t.contains(e)},nt||Element.prototype.matches)tt=function(t,e){return t.matches(e)};else{var rt=Element.prototype,ot=rt.matchesSelector||rt.mozMatchesSelector||rt.msMatchesSelector||rt.oMatchesSelector||rt.webkitMatchesSelector;ot&&(tt=function(t,e){return ot.apply(t,[e])})}et=function(t,e,n){var r=[];if(n)r.push.apply(r,Object(c.__spread)(t.querySelectorAll(e)));else{var o=t.querySelector(e);o&&r.push(o)}return r}}var it=null,at=!1;function st(t){it||(it=("undefined"!=typeof document?document.body:null)||{},at=!!it.style&&"WebkitAppearance"in it.style);var e=!0;return it.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in it.style)&&at&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in it.style),e}var ut=tt,ct=X,lt=et;function ft(t){var e={};return Object.keys(t).forEach(function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}var pt=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return st(t)},t.prototype.matchesElement=function(t,e){return ut(t,e)},t.prototype.containsElement=function(t,e){return ct(t,e)},t.prototype.query=function(t,e,n){return lt(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,o,i,a){return void 0===i&&(i=[]),new B(n,r)},t}(),dt=function(){function t(){}return t.NOOP=new pt,t}(),ht=1e3;function vt(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:yt(parseFloat(e[1]),e[2])}function yt(t,e){switch(e){case"s":return t*ht;default:return t}}function gt(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,o=0,i="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=yt(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(o=yt(Math.floor(parseFloat(s)),a[4]));var u=a[5];u&&(i=u)}else r=t;if(!n){var c=!1,l=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),c=!0),o<0&&(e.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&e.splice(l,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:o,easing:i}}(t,e,n)}function mt(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function bt(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else mt(t,n);return n}function _t(t,e,n){return n?e+":"+n+";":""}function wt(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var o=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var i=o[1],a=o[2],s=o[3];e.push(Ft(i,s)),"<"!=a[0]||i==Rt&&s==Rt||e.push(Ft(s,i))}(t,o,r)}):o.push(n),o),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Gt(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return Nt(n,t,e)}),options:Gt(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,o=0,i=t.steps.map(function(t){e.currentTime=r;var i=Nt(n,t,e);return o=Math.max(o,e.currentTime),i});return e.currentTime=o,{type:3,steps:i,options:Gt(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return qt(gt(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var o=qt(0,0,"");return o.dynamic=!0,o.strValue=r,o}return qt((n=n||gt(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var o=t.styles?t.styles:U({});if(5==o.type)n=this.visitKeyframes(o,e);else{var i=t.styles,a=!1;if(!i){a=!0;var s={};r.easing&&(s.easing=r.easing),i=U(s)}e.currentTime+=r.duration+r.delay;var u=this.visitStyle(i,e);u.isEmptyStep=a,n=u}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==F?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,o=null;return n.forEach(function(t){if(zt(t)){var e=t,n=e.easing;if(n&&(o=n,delete e.easing),!r)for(var i in e)if(e[i].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,o=e.currentTime,i=e.currentTime;r&&i>0&&(i-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a,s,u,c=e.collectedStyles[e.currentQuerySelector],l=c[r],f=!0;l&&(i!=o&&i>=l.startTime&&o<=l.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+l.startTime+'ms" and "'+l.endTime+'ms" is also being animated in a parallel animation between the times of "'+i+'ms" and "'+o+'ms"'),f=!1),i=l.startTime),f&&(c[r]={startTime:i,endTime:o}),e.options&&(a=e.errors,s=e.options.params||{},(u=Tt(t[r])).length&&u.forEach(function(t){s.hasOwnProperty(t)||a.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var o=0,i=[],a=!1,s=!1,u=0,c=t.steps.map(function(t){var r=n._makeStyleAst(t,e),c=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(zt(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(zt(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),l=0;return null!=c&&(o++,l=r.offset=c),s=s||l<0||l>1,a=a||l0&&o0?o==p?1:f*o:i[o],s=a*v;e.currentTime=d+h.delay+s,h.duration=s,n._validateStyleAst(t,e),t.offset=a,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:Nt(this,Et(t.animation),e),options:Gt(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:Gt(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Gt(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var o=Object(c.__read)(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(Vt,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),i=o[0],a=o[1];e.currentQuerySelector=n.length?n+" "+i:i,$(e.collectedStyles,e.currentQuerySelector,{});var s=Nt(this,Et(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:Gt(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:gt(t.timings,e.errors,!0);return{type:12,animation:Nt(this,Et(t.animation),e),timings:n,options:null}},t}(),Bt=function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function zt(t){return!Array.isArray(t)&&"object"==typeof t}function Gt(t){var e;return t?(t=mt(t)).params&&(t.params=(e=t.params)?mt(e):null):t={},t}function qt(t,e,n){return{duration:t,delay:e,easing:n}}function Kt(t,e,n,r,o,i,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:a,subTimeline:s}}var Qt=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,Object(c.__spread)(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),Zt=new RegExp(":enter","g"),Wt=new RegExp(":leave","g");function Yt(t,e,n,r,o,i,a,s,u,c){return void 0===i&&(i={}),void 0===a&&(a={}),void 0===c&&(c=[]),(new $t).buildKeyframes(t,e,n,r,o,i,a,s,u,c)}var $t=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,o,i,a,s,u,c){void 0===c&&(c=[]),u=u||new Qt;var l=new Xt(t,e,u,r,o,c,[]);l.options=s,l.currentTimeline.setStyles([i],null,l.errors,s),Nt(this,n,l);var f=l.timelines.filter(function(t){return t.containsAnimation()});if(f.length&&Object.keys(a).length){var p=f[f.length-1];p.allowOnlyTimelineStyles()||p.setStyles([a],null,l.errors,s)}return f.length?f.map(function(t){return t.buildKeyframes()}):[Kt(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);o!=i&&e.transformIntoNewTimeline(i)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,o=null!=n.duration?vt(n.duration):null,i=null!=n.delay?vt(n.delay):null;return 0!==o&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,o,i);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),Nt(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,o=e,i=t.options;if(i&&(i.params||i.delay)&&((o=e.createSubContext(i)).transformIntoNewTimeline(),null!=i.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Jt);var a=vt(i.delay);o.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return Nt(n,t,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],o=e.currentTimeline.currentTime,i=t.options&&t.options.delay?vt(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);i&&s.delayNextStep(i),Nt(n,a,s),o=Math.max(o,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(o),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return gt(e.params?jt(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,i=e.createSubContext().currentTimeline;i.easing=n.easing,t.styles.forEach(function(t){i.forwardTime((t.offset||0)*o),i.setStyles(t.styles,t.easing,e.errors,e.options),i.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(i),e.transformIntoNewTimeline(r+o),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,o=t.options||{},i=o.delay?vt(o.delay):0;i&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Jt);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;var u=null;s.forEach(function(r,o){e.currentQueryIndex=o;var s=e.createSubContext(t.options,r);i&&s.delayNextStep(i),r===e.element&&(u=s.currentTimeline),Nt(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,o=t.timings,i=Math.abs(o.duration),a=i*(e.currentQueryTotal-1),s=i*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var c=u.currentTime;Nt(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)},t}(),Jt={},Xt=function(){function t(t,e,n,r,o,i,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=i,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Jt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new te(this._driver,e,0),a.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,o=this.options;null!=r.duration&&(o.duration=vt(r.duration)),null!=r.delay&&(o.delay=vt(r.delay));var i=r.params;if(i){var a=o.params;a||(a=this.options.params={}),Object.keys(i).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=jt(i[t],a,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var o=n||this.element,i=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=Jt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},o=new ee(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,o,i){var a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(Zt,"."+this._enterClassName)).replace(Wt,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,Object(c.__spread)(s))}return o||0!=a.length||i.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),a},t}(),te=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||F,e._currentKeyframe[t]=F}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var o=this;e&&(this._previousKeyframe.easing=e);var i=r&&r.params||{},a=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=F}):bt(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=jt(a[t],i,n);o._pendingStyles[t]=e,o._localTimelineStyles.hasOwnProperty(t)||(o._backFill[t]=o._globalTimelineStyles.hasOwnProperty(t)?o._globalTimelineStyles[t]:F),o._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],o=t._styleSummary[n];(!r||o.time>r.time)&&e._updateStyle(n,o.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(i,a){var s=bt(i,!0);Object.keys(s).forEach(function(t){var r=s[t];r==G?e.add(t):r==F&&n.add(t)}),r||(s.offset=a/t.duration),o.push(s)});var i=e.size?xt(e.values()):[],a=n.size?xt(n.values()):[];if(r){var s=o[0],u=mt(s);s.offset=0,u.offset=1,o=[s,u]}return Kt(this.element,o,i,a,this.duration,this.startTime,this.easing,!1)},t}(),ee=function(t){function e(e,n,r,o,i,a,s){void 0===s&&(s=!1);var u=t.call(this,e,n,a.delay)||this;return u.element=n,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=i,u._stretchStartingKeyframe=s,u.timings={duration:a.duration,delay:a.delay,easing:a.easing},u}return Object(c.__extends)(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,o=e.easing;if(this._stretchStartingKeyframe&&n){var i=[],a=r+n,s=n/a,u=bt(t[0],!1);u.offset=0,i.push(u);var c=bt(t[0],!1);c.offset=ne(s),i.push(c);for(var l=t.length-1,f=1;f<=l;f++){var p=bt(t[f],!1);p.offset=ne((n+p.offset*r)/a),i.push(p)}r=a,n=0,o="",t=i}return Kt(this.element,t,this.preStyleProps,this.postStyleProps,r,n,o,!0)},e}(te);function ne(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var re=function(){},oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.__extends)(e,t),e.prototype.normalizePropertyName=function(t,e){return kt(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var o="",i=n.toString().trim();if(ie[e]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return i+o},e}(re),ie=function(t){var e={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(t){return e[t]=!0}),e}();function ae(t,e,n,r,o,i,a,s,u,c,l,f,p){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:a,timelines:s,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:f,errors:p}}var se={},ue=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,r){return function(t,e,n,r,o){return t.some(function(t){return t(e,n,r,o)})}(this.ast.matchers,t,e,n,r)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],o=this._stateStyles[t],i=r?r.buildStyles(e,n):{};return o?o.buildStyles(e,n):i},t.prototype.build=function(t,e,n,r,o,i,a,s,u,l){var f=[],p=this.ast.options&&this.ast.options.params||se,d=this.buildStyles(n,a&&a.params||se,f),h=s&&s.params||se,v=this.buildStyles(r,h,f),y=new Set,g=new Map,m=new Map,b="void"===r,_={params:Object(c.__assign)({},p,h)},w=l?[]:Yt(t,e,this.ast.animation,o,i,d,v,_,u,f),C=0;if(w.forEach(function(t){C=Math.max(t.duration+t.delay,C)}),f.length)return ae(e,this._triggerName,n,r,b,d,v,[],[],g,m,C,f);w.forEach(function(t){var n=t.element,r=$(g,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var o=$(m,n,{});t.postStyleProps.forEach(function(t){return o[t]=!0}),n!==e&&y.add(n)});var S=xt(y.values());return ae(e,this._triggerName,n,r,b,d,v,w,S,g,m,C)},t}(),ce=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=mt(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var o=t;Object.keys(o).forEach(function(t){var i=o[t];i.length>1&&(i=jt(i,r,e)),n[t]=i})}}),n},t}(),le=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new ce(t.style,t.options&&t.options.params||{})}),fe(this.states,"true","1"),fe(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new ue(t,e,n.states))}),this.fallbackTransition=new ue(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,r){return this.transitionFactories.find(function(o){return o.match(t,e,n,r)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function fe(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var pe=new Qt,de=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=Ut(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,o=Q(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var o,i=[],a=this._animations[t],s=new Map;if(a?(o=Yt(this._driver,e,a,"ng-enter","ng-leave",{},{},n,pe,i)).forEach(function(t){var e=$(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,F)})});var u=K(o.map(function(t){var e=s.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(function(){return r.destroy(t)}),this.players.push(u),u},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var o=Y(e,"","","");return Z(this._getPlayer(t),n,o,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),he=[],ve={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ye={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ge="__ng_removed",me=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var r=mt(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),be=new me("void"),_e=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,xe(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var o,i=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=$(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var u=$(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(xe(t,"ng-trigger"),xe(t,"ng-trigger-"+e),u[e]=be),function(){i._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),i._triggers[e]||delete u[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var o=this;void 0===r&&(r=!0);var i=this._getTrigger(e),a=new Ce(this.id,e,t),s=this._engine.statesByElement.get(t);s||(xe(t,"ng-trigger"),xe(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],c=new me(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),s[e]=c,u||(u=be),"void"===c.value||u.value!==c.value){var l=$(this._engine.playersByElement,t,[]);l.forEach(function(t){t.namespaceId==o.id&&t.triggerName==e&&t.queued&&t.destroy()});var f=i.matchTransition(u.value,c.value,t,c.params),p=!1;if(!f){if(!r)return;f=i.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:u,toState:c,player:a,isFallbackTransition:p}),p||(xe(t,"ng-animate-queued"),a.onStart(function(){Pe(t,"ng-animate-queued")})),a.onDone(function(){var e=o.players.indexOf(a);e>=0&&o.players.splice(e,1);var n=o._engine.playersByElement.get(t);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),l.push(a),a}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var o=0;o=0){for(var r=!1,o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,e)){this._namespaceList.splice(o+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),o=0;o=0&&this.collectedLeaveElements.splice(i,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),xe(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Pe(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n){if(Se(e)){var r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[ge]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,o){return Se(e)?this._fetchNamespace(t).listen(e,n,r,o):function(){}},t.prototype._buildInstruction=function(t,e,n,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,o)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return K(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[ge];if(n&&n.setForRemoval){if(t[ge]=ve,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;O--)this._namespaceList[O].drainQueuedTransitions(e).forEach(function(t){var e=t.player,i=t.element;if(S.push(e),n.collectedEnterElements.length){var c=i[ge];if(c&&c.setForMove)return void e.destroy()}var f=!p||!n.driver.containsElement(p,i),d=w.get(i),h=v.get(i),y=n._buildInstruction(t,r,h,d,f);if(y.errors&&y.errors.length)E.push(y);else{if(f)return e.onStart(function(){return St(i,y.fromStyles)}),e.onDestroy(function(){return Ct(i,y.toStyles)}),void o.push(e);if(t.isFallbackTransition)return e.onStart(function(){return St(i,y.fromStyles)}),e.onDestroy(function(){return Ct(i,y.toStyles)}),void o.push(e);y.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(i,y.timelines),a.push({instruction:y,player:e,element:i}),y.queriedElements.forEach(function(t){return $(s,t,[]).push(e)}),y.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=u.get(e);r||u.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),y.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=l.get(e);r||l.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}});if(E.length){var T=[];E.forEach(function(t){T.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return T.push("- "+t+"\n")})}),S.forEach(function(t){return t.destroy()}),this.reportError(T)}var j=new Map,x=new Map;a.forEach(function(t){var e=t.element;r.has(e)&&(x.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,j))}),o.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){$(j,e,[]).push(t),t.destroy()})});var P=g.filter(function(t){return De(t,u,l)}),k=new Map;Oe(k,this.driver,b,l,F).forEach(function(t){De(t,u,l)&&P.push(t)});var D=new Map;h.forEach(function(t,e){Oe(D,n.driver,new Set(t),u,G)}),P.forEach(function(t){var e=k.get(t),n=D.get(t);k.set(t,Object(c.__assign)({},e,n))});var I=[],N=[],A={};a.forEach(function(t){var e=t.element,a=t.player,s=t.instruction;if(r.has(e)){if(f.has(e))return a.onDestroy(function(){return Ct(e,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void o.push(a);var u=A;if(x.size>1){for(var c=e,l=[];c=c.parentNode;){var p=x.get(c);if(p){u=p;break}l.push(c)}l.forEach(function(t){return x.set(t,u)})}var d=n._buildAnimation(a.namespaceId,s,j,i,D,k);if(a.setRealPlayer(d),u===A)I.push(a);else{var h=n.playersByElement.get(u);h&&h.length&&(a.parentPlayer=K(h)),o.push(a)}}else St(e,s.fromStyles),a.onDestroy(function(){return Ct(e,s.toStyles)}),N.push(a),f.has(e)&&o.push(a)}),N.forEach(function(t){var e=i.get(t.element);if(e&&e.length){var n=K(e);t.setRealPlayer(n)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var R=0;R0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new B(t.duration,t.delay)},t}(),Ce=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new B,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return Z(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){$(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function Se(t){return t&&1===t.nodeType}function Ee(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Oe(t,e,n,r,o){var i=[];n.forEach(function(t){return i.push(Ee(t))});var a=[];r.forEach(function(n,r){var i={};n.forEach(function(t){var n=i[t]=e.computeStyle(r,t,o);n&&0!=n.length||(r[ge]=ye,a.push(r))}),t.set(r,i)});var s=0;return n.forEach(function(t){return Ee(t,i[s++])}),a}function Te(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),o=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var i=o.get(e);if(i)return i;var a=e.parentNode;return i=n.has(a)?a:r.has(a)?1:t(a),o.set(e,i),i}(t);1!==e&&n.get(e).push(t)}),n}var je="$$classes";function xe(t,e){if(t.classList)t.classList.add(e);else{var n=t[je];n||(n=t[je]={}),n[e]=!0}}function Pe(t,e){if(t.classList)t.classList.remove(e);else{var n=t[je];n&&delete n[e]}}function ke(t,e,n){K(n).onDone(function(){return t.processLeaveNode(e)})}function De(t,e,n){var r=n.get(t);if(!r)return!1;var o=e.get(t);return o?r.forEach(function(t){return o.add(t)}):e.set(t,r),n.delete(t),!0}var Ie=function(){function t(t,e,n){var r=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new we(t,e,n),this._timelineEngine=new de(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,o){var i=t+"-"+r,a=this._triggerCache[i];if(!a){var s=[],u=Ut(this._driver,o,s);if(s.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(t,e){return new le(t,e)}(r,u),this._triggerCache[i]=a}this._transitionEngine.registerTrigger(e,r,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var o=Object(c.__read)(J(n),2);this._timelineEngine.command(o[0],e,o[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,o){if("@"==n.charAt(0)){var i=Object(c.__read)(J(n),2);return this._timelineEngine.listen(i[0],e,i[1],o)}return this._transitionEngine.listen(t,e,n,r,o)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),Ne="animation",Ae="animationend",Re=function(){function t(t,e,n,r,o,i,a){var s=this;this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=o,this._fillMode=i,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return s._handleCallback(t)}}return t.prototype.apply=function(){var t,e,n;e=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=He(t=this._element,"").trim()).length&&(function(t,e){for(var n=0;n=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),Ve(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(r=Fe(n=He(t=this._element,"").split(","),e))>=0&&(n.splice(r,1),Ue(t,"",n.join(","))))},t}();function Me(t,e,n){Ue(t,"PlayState",n,Le(t,e))}function Le(t,e){var n=He(t,"");return n.indexOf(",")>0?Fe(n.split(","),e):Fe([n],e)}function Fe(t,e){for(var n=0;n=0)return n;return-1}function Ve(t,e,n){n?t.removeEventListener(Ae,e):t.addEventListener(Ae,e)}function Ue(t,e,n,r){var o=Ne+e;if(null!=r){var i=t.style[o];if(i.length){var a=i.split(",");a[r]=n,n=a.join(",")}}t.style[o]=n}function He(t,e){return t.style[Ne+e]}var Be="linear",ze=function(){function t(t,e,n,r,o,i,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=o,this._finalStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||Be,this.totalTime=r+o,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new Re(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:At(t.element,r))})}this.currentSnapshot=e},t}(),Ge=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r._startingStyles={},r.__initialized=!1,r._styles=ft(n),r}return Object(c.__extends)(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,t.prototype.destroy.call(this))},e}(B),qe=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return st(t)},t.prototype.matchesElement=function(t,e){return ut(t,e)},t.prototype.containsElement=function(t,e){return ct(t,e)},t.prototype.query=function(t,e,n){return lt(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){var r="@keyframes "+e+" {\n",o="";(n=n.map(function(t){return ft(t)})).forEach(function(t){o=" ";var e=parseFloat(t.offset);r+=""+o+100*e+"% {\n",o+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=o+"animation-timing-function: "+n+";\n"));default:return void(r+=""+o+e+": "+n+";\n")}}),r+=o+"}\n"}),r+="}\n";var i=document.createElement("style");return i.innerHTML=r,i},t.prototype.animate=function(t,e,n,r,o,i,a){void 0===i&&(i=[]),a&&this._notifyFaultyScrubber();var s=i.filter(function(t){return t instanceof ze}),u={};Dt(n,r)&&s.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})});var c=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=It(t,e,u));if(0==n)return new Ge(t,c);var l="gen_css_kf_"+this._count++,f=this.buildKeyframeElement(t,l,e);document.querySelector("head").appendChild(f);var p=new ze(t,e,l,n,r,o,c);return p.onDestroy(function(){var t;(t=f).parentNode.removeChild(t)}),p},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),Ke=function(){function t(t,e,n){this.element=t,this.keyframes=e,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:At(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),Qe=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Ze().toString()),this._cssKeyframesDriver=new qe}return t.prototype.validateStyleProperty=function(t){return st(t)},t.prototype.matchesElement=function(t,e){return ut(t,e)},t.prototype.containsElement=function(t,e){return ct(t,e)},t.prototype.query=function(t,e,n){return lt(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,r,o,i,a){if(void 0===i&&(i=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,o,i);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(s.easing=o);var u={},c=i.filter(function(t){return t instanceof Ke});return Dt(n,r)&&c.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})}),e=It(t,e=e.map(function(t){return bt(t,!1)}),u),new Ke(t,e,s)},t}();function Ze(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var We=function(t){function e(e,n){var o=t.call(this)||this;return o._nextAnimationId=0,o._renderer=e.createRenderer(n.body,{id:"0",encapsulation:r.ViewEncapsulation.None,styles:[],data:{animation:[]}}),o}return Object(c.__extends)(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?V(t):t;return Je(this._renderer,null,e,"register",[n]),new Ye(e,this._renderer)},e}(L),Ye=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return Object(c.__extends)(e,t),e.prototype.create=function(t,e){return new $e(this._id,t,e||{},this._renderer)},e}(function(){}),$e=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t