/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/angular-stormpath@0.2.0/dist/umd/stormpath-sdk-angular.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define(["@angular/core","@angular/common"],e):"object"==typeof exports?exports.Stormpath=e(require("@angular/core"),require("@angular/common")):t.Stormpath=e(t.ng.core,t.ng.common)}(this,(function(t,e){return function(t){var e=this.webpackHotUpdateStormpath;this.webpackHotUpdateStormpath=function(t,n){!function(t,e){if(!w[t]||!_[t])return;for(var n in _[t]=!1,e)Object.prototype.hasOwnProperty.call(e,n)&&(y[n]=e[n]);0==--g&&0===v&&C()}(t,n),e&&e(t,n)};var n,r=!0,o="ab21cd6f71ea0bb8350a",i=1e4,s={},a=[],u=[];function c(t){var e=T[t];if(!e)return j;var r=function(r){return e.hot.active?(T[r]?T[r].parents.indexOf(t)<0&&T[r].parents.push(t):(a=[t],n=r),e.children.indexOf(r)<0&&e.children.push(r)):(console.warn("[HMR] unexpected require("+r+") from disposed module "+t),a=[]),j(r)},o=function(t){return{configurable:!0,enumerable:!0,get:function(){return j[t]},set:function(e){j[t]=e}}};for(var i in j)Object.prototype.hasOwnProperty.call(j,i)&&"e"!==i&&Object.defineProperty(r,i,o(i));return r.e=function(t){return"ready"===f&&h("prepare"),v++,j.e(t).then(e,(function(t){throw e(),t}));function e(){v--,"prepare"===f&&(b[t]||E(t),0===v&&0===g&&C())}},r}function l(t){var e={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],_main:n!==t,active:!0,accept:function(t,n){if(void 0===t)e._selfAccepted=!0;else if("function"==typeof t)e._selfAccepted=t;else if("object"==typeof t)for(var r=0;r<t.length;r++)e._acceptedDependencies[t[r]]=n||function(){};else e._acceptedDependencies[t]=n||function(){}},decline:function(t){if(void 0===t)e._selfDeclined=!0;else if("object"==typeof t)for(var n=0;n<t.length;n++)e._declinedDependencies[t[n]]=!0;else e._declinedDependencies[t]=!0},dispose:function(t){e._disposeHandlers.push(t)},addDisposeHandler:function(t){e._disposeHandlers.push(t)},removeDisposeHandler:function(t){var n=e._disposeHandlers.indexOf(t);n>=0&&e._disposeHandlers.splice(n,1)},check:S,apply:P,status:function(t){if(!t)return f;p.push(t)},addStatusHandler:function(t){p.push(t)},removeStatusHandler:function(t){var e=p.indexOf(t);e>=0&&p.splice(e,1)},data:s[t]};return n=void 0,e}var p=[],f="idle";function h(t){f=t;for(var e=0;e<p.length;e++)p[e].call(null,t)}var d,y,m,g=0,v=0,b={},_={},w={};function O(t){return+t+""===t?+t:t}function S(t){if("idle"!==f)throw new Error("check() is only allowed in idle status");return r=t,h("check"),(e=i,e=e||1e4,new Promise((function(t,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var r=new XMLHttpRequest,i=j.p+""+o+".hot-update.json";r.open("GET",i,!0),r.timeout=e,r.send(null)}catch(t){return n(t)}r.onreadystatechange=function(){if(4===r.readyState)if(0===r.status)n(new Error("Manifest request to "+i+" timed out."));else if(404===r.status)t();else if(200!==r.status&&304!==r.status)n(new Error("Manifest request to "+i+" failed."));else{try{var e=JSON.parse(r.responseText)}catch(t){return void n(t)}t(e)}}}))).then((function(t){if(!t)return h("idle"),null;_={},b={},w=t.c,m=t.h,h("prepare");var e=new Promise((function(t,e){d={resolve:t,reject:e}}));y={};return E(0),"prepare"===f&&0===v&&0===g&&C(),e}));var e}function E(t){w[t]?(_[t]=!0,g++,function(t){var e=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.src=j.p+""+t+"."+o+".hot-update.js",e.appendChild(n)}(t)):b[t]=!0}function C(){h("ready");var t=d;if(d=null,t)if(r)Promise.resolve().then((function(){return P(r)})).then((function(e){t.resolve(e)}),(function(e){t.reject(e)}));else{var e=[];for(var n in y)Object.prototype.hasOwnProperty.call(y,n)&&e.push(O(n));t.resolve(e)}}function P(e){if("ready"!==f)throw new Error("apply() is only allowed in ready status");var n,r,i,u,c;function l(t){for(var e=[t],n={},r=e.slice().map((function(t){return{chain:[t],id:t}}));r.length>0;){var o=r.pop(),i=o.id,s=o.chain;if((u=T[i])&&!u.hot._selfAccepted){if(u.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:i};if(u.hot._main)return{type:"unaccepted",chain:s,moduleId:i};for(var a=0;a<u.parents.length;a++){var c=u.parents[a],l=T[c];if(l){if(l.hot._declinedDependencies[i])return{type:"declined",chain:s.concat([c]),moduleId:i,parentId:c};e.indexOf(c)>=0||(l.hot._acceptedDependencies[i]?(n[c]||(n[c]=[]),p(n[c],[i])):(delete n[c],e.push(c),r.push({chain:s.concat([c]),id:c})))}}}}return{type:"accepted",moduleId:t,outdatedModules:e,outdatedDependencies:n}}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];t.indexOf(r)<0&&t.push(r)}}e=e||{};var d={},g=[],v={},b=function(){console.warn("[HMR] unexpected require("+S.moduleId+") to disposed module")};for(var _ in y)if(Object.prototype.hasOwnProperty.call(y,_)){var S;c=O(_);var E=!1,C=!1,P=!1,A="";switch((S=y[_]?l(c):{type:"disposed",moduleId:_}).chain&&(A="\nUpdate propagation: "+S.chain.join(" -> ")),S.type){case"self-declined":e.onDeclined&&e.onDeclined(S),e.ignoreDeclined||(E=new Error("Aborted because of self decline: "+S.moduleId+A));break;case"declined":e.onDeclined&&e.onDeclined(S),e.ignoreDeclined||(E=new Error("Aborted because of declined dependency: "+S.moduleId+" in "+S.parentId+A));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(S),e.ignoreUnaccepted||(E=new Error("Aborted because "+c+" is not accepted"+A));break;case"accepted":e.onAccepted&&e.onAccepted(S),C=!0;break;case"disposed":e.onDisposed&&e.onDisposed(S),P=!0;break;default:throw new Error("Unexception type "+S.type)}if(E)return h("abort"),Promise.reject(E);if(C)for(c in v[c]=y[c],p(g,S.outdatedModules),S.outdatedDependencies)Object.prototype.hasOwnProperty.call(S.outdatedDependencies,c)&&(d[c]||(d[c]=[]),p(d[c],S.outdatedDependencies[c]));P&&(p(g,[S.moduleId]),v[c]=b)}var R,x=[];for(r=0;r<g.length;r++)c=g[r],T[c]&&T[c].hot._selfAccepted&&x.push({module:c,errorHandler:T[c].hot._selfAccepted});h("dispose"),Object.keys(w).forEach((function(t){!1===w[t]&&function(t){delete installedChunks[t]}(t)}));for(var N,k,I=g.slice();I.length>0;)if(c=I.pop(),u=T[c]){var M={},V=u.hot._disposeHandlers;for(i=0;i<V.length;i++)(n=V[i])(M);for(s[c]=M,u.hot.active=!1,delete T[c],delete d[c],i=0;i<u.children.length;i++){var D=T[u.children[i]];D&&((R=D.parents.indexOf(c))>=0&&D.parents.splice(R,1))}}for(c in d)if(Object.prototype.hasOwnProperty.call(d,c)&&(u=T[c]))for(k=d[c],i=0;i<k.length;i++)N=k[i],(R=u.children.indexOf(N))>=0&&u.children.splice(R,1);for(c in h("apply"),o=m,v)Object.prototype.hasOwnProperty.call(v,c)&&(t[c]=v[c]);var F=null;for(c in d)if(Object.prototype.hasOwnProperty.call(d,c)&&(u=T[c])){k=d[c];var U=[];for(r=0;r<k.length;r++)if(N=k[r],n=u.hot._acceptedDependencies[N]){if(U.indexOf(n)>=0)continue;U.push(n)}for(r=0;r<U.length;r++){n=U[r];try{n(k)}catch(t){e.onErrored&&e.onErrored({type:"accept-errored",moduleId:c,dependencyId:k[r],error:t}),e.ignoreErrored||F||(F=t)}}}for(r=0;r<x.length;r++){var L=x[r];c=L.module,a=[c];try{j(c)}catch(t){if("function"==typeof L.errorHandler)try{L.errorHandler(t)}catch(n){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:c,error:n,orginalError:t,originalError:t}),e.ignoreErrored||F||(F=n),F||(F=t)}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:c,error:t}),e.ignoreErrored||F||(F=t)}}return F?(h("fail"),Promise.reject(F)):(h("idle"),new Promise((function(t){t(g)})))}var T={};function j(e){if(T[e])return T[e].exports;var n=T[e]={i:e,l:!1,exports:{},hot:l(e),parents:(u=a,a=[],u),children:[]};return t[e].call(n.exports,n,n.exports,c(e)),n.l=!0,n.exports}return j.m=t,j.c=T,j.d=function(t,e,n){j.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},j.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return j.d(e,"a",e),e},j.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},j.p="",j.h=function(){return o},c(46)(j.s=46)}([function(e,n){e.exports=t},function(t,e,n){"use strict";var r,o=this&&this.__extends||(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(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=this&&this.__param||function(t,e){return function(n,r){e(n,r,t)}};Object.defineProperty(e,"__esModule",{value:!0});var u=n(0),c=n(8),l=n(68),p=n(2),f=n(30),h=n(9),d=n(14),y=n(10),m="application/json",g=function(t){function e(){return t.call(this,{headers:new c.Headers({Accept:m}),withCredentials:!0})||this}return o(e,t),e}(c.RequestOptions);e.JsonGetOptions=g;var v=function(t){function e(){var e=t.call(this)||this;return e.headers.append("Content-Type",m),e}return o(e,t),e}(g);e.JsonPostOptions=v,e.defaultSpTokenResolver=function(t){var e=t.path().match(/sptoken=([^&]+)/);return e&&2===e.length?e[1]:""};var b=function(){function t(){this.forgot=!1,this.login=!0,this.register=!1}return t.prototype.forgotPassword=function(){this.forgot=!0,this.login=!1},t}();e.LoginService=b;var _=function(){function t(t,e,n){var r=this;this.http=t,this.config=e,this.tokenStore=n,this.userSource=new l.ReplaySubject(1),this.user$=this.userSource.asObservable(),this.getAccount().subscribe((function(t){return r.userSource.next(t)})),this.currentDomain=new d.CurrentDomain,this.oauthHeaders=h.StormpathConstants.OAUTH_HEADERS}return t.prototype.getAccount=function(){return this.http.get(this.config.meUri,new g).map(this.jsonParser).map(this.accountTransformer).catch((function(t){return t.status&&401===t.status?p.Observable.of(!1):t.status&&404===t.status?p.Observable.throw(new Error("/me endpoint not found, please check server configuration.")):p.Observable.throw(t)}))},t.prototype.getToken=function(){return this.tokenStore.get(this.config.oauthTokenName)},t.prototype.getRegistrationViewModel=function(){return this.http.get(this.config.registerUri,new g).map(this.jsonParser).catch(this.errorTranslator)},t.prototype.register=function(t){return this.http.post(this.config.registerUri,JSON.stringify(t),new v).map(this.jsonParser).map(this.accountTransformer).catch(this.errorTranslator).share()},t.prototype.login=function(t){var e,n=this;if(this.currentDomain.equals(this.config.loginUri))return(e=this.http.post(this.config.loginUri,JSON.stringify(t),new v).map(this.jsonParser).map(this.accountTransformer).catch(this.errorTranslator).share()).subscribe((function(t){return n.userSource.next(t)}),(function(){})),e;var r="username="+encodeURIComponent(t.login)+"&password="+encodeURIComponent(t.password)+"&grant_type=password";return(e=this.http.post(this.config.oauthLoginUri,r,{headers:this.oauthHeaders}).map(this.jsonParser).map((function(t){var e=n.tokenStore.setToken(n.config.oauthTokenName,t);return p.Observable.of(e)})).flatMap((function(){return n.getAccount()})).catch(this.errorTranslator).share()).subscribe((function(t){return n.userSource.next(t)}),(function(){})),e},t.prototype.logout=function(){var t=this;if(this.currentDomain.equals(this.config.loginUri))this.http.post(this.config.logoutUri,null,new g).catch(this.errorThrower).subscribe((function(){return t.userSource.next(!1)}));else{var e=this.getToken();if(e){var n=e.refreshToken||e.accessToken,r=e.refreshToken?"refresh_token":"access_token",o="token="+encodeURIComponent(n)+"&token_type_hint="+encodeURIComponent(r);this.http.post(this.config.oauthLogoutUri,o,{headers:this.oauthHeaders}).map((function(e){t.tokenStore.remove(t.config.oauthTokenName)})).catch(this.errorThrower).subscribe((function(){return t.userSource.next(!1)}))}else this.tokenStore.remove(this.config.oauthTokenName),this.userSource.next(!1)}},t.prototype.resendVerificationEmail=function(t){return this.http.post(this.config.verifyUri,JSON.stringify(t),new v).map(this.jsonParser).catch(this.errorTranslator)},t.prototype.sendPasswordResetEmail=function(t){return this.http.post(this.config.forgotUri,JSON.stringify(t),new v).map(this.jsonParser).catch(this.errorTranslator)},t.prototype.resetPassword=function(t){return this.http.post(this.config.changeUri,JSON.stringify(t),new v).map(this.jsonParser).catch(this.errorTranslator)},t.prototype.verifyEmailVerificationToken=function(t){return this.http.get(this.config.verifyUri+"?sptoken="+t,new g).map(this.jsonParser).catch(this.errorTranslator)},t.prototype.verifyPasswordResetToken=function(t){return this.http.get(this.config.changeUri+"?sptoken="+t,new g).map(this.jsonParser).catch(this.errorTranslator)},t.prototype.errorTranslator=function(t){var e;try{e=t.json()}catch(e){console.error(t)}return e&&e.message||(e={message:"Server Error",status:0}),p.Observable.throw(e)},t.prototype.errorThrower=function(t){return p.Observable.throw(t)},t.prototype.accountTransformer=function(t){if(t&&t.account)return new f.Account(t.account);p.Observable.throw(new Error("expected an account response"))},t.prototype.jsonParser=function(t){if(""===t.text())return null;try{return t.json()}catch(t){throw new Error("Response was not JSON, check your server configuration")}},t=i([u.Injectable(),a(2,u.Inject("tokenStore")),s("design:paramtypes",[c.Http,h.StormpathConfiguration,y.TokenStoreManager])],t)}();e.Stormpath=_},function(t,e,n){"use strict";var r=n(3),o=n(52),i=n(25),s=n(55),a=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=o.toSubscriber(t,e,n);if(r?r.call(i,this.source):i.add(this.source?this._subscribe(i):this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e((function(e,r){var o;o=n.subscribe((function(e){if(o)try{t(e)}catch(t){r(t),o.unsubscribe()}else t(e)}),r,e)}))},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 0===t.length?this:s.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;if(t||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?t=r.root.Rx.config.Promise:r.root.Promise&&(t=r.root.Promise)),!t)throw new Error("no Promise impl found");return new t((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();e.Observable=a},function(t,e,n){"use strict";(function(t){var n="undefined"!=typeof window&&window,r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o=n||void 0!==t&&t||r;e.root=o,function(){if(!o)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(e,n(51))},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.local=0]="local",t[t.session=1]="session"}(r||(r={}))},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=n(20),i=n(7),s=n(24),a=n(13),u=function(t){function e(n,r,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,o)}}return r(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(i.Subscription);e.Subscriber=u;var c=function(t){function e(e,n,r,i){var a;t.call(this),this._parentSubscriber=e;var u=this;o.isFunction(n)?a=n:n&&(a=n.next,r=n.error,i=n.complete,n!==s.empty&&(u=Object.create(n),o.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=r,this._complete=i}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},function(t,n){t.exports=e},function(t,e,n){"use strict";var r=n(21),o=n(22),i=n(20),s=n(53),a=n(23),u=n(54),c=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,c=n._parent,p=n._parents,f=n._unsubscribe,h=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,y=p?p.length:0;c;)c.remove(this),c=++d<y&&p[d]||null;if(i.isFunction(f))s.tryCatch(f).call(this)===a.errorObject&&(e=!0,t=t||(a.errorObject.e instanceof u.UnsubscriptionError?l(a.errorObject.e.errors):[a.errorObject.e]));if(r.isArray(h))for(d=-1,y=h.length;++d<y;){var m=h[d];if(o.isObject(m))if(s.tryCatch(m.unsubscribe).call(m)===a.errorObject){e=!0,t=t||[];var g=a.errorObject.e;g instanceof u.UnsubscriptionError?t=t.concat(l(g.errors)):t.push(g)}}if(e)throw new u.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function l(t){return t.reduce((function(t,e){return t.concat(e instanceof u.UnsubscriptionError?e.errors:e)}),[])}e.Subscription=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"BrowserXhr",(function(){return a})),n.d(e,"JSONPBackend",(function(){return x})),n.d(e,"JSONPConnection",(function(){return R})),n.d(e,"CookieXSRFStrategy",(function(){return I})),n.d(e,"XHRBackend",(function(){return M})),n.d(e,"XHRConnection",(function(){return k})),n.d(e,"BaseRequestOptions",(function(){return D})),n.d(e,"RequestOptions",(function(){return V})),n.d(e,"BaseResponseOptions",(function(){return y})),n.d(e,"ResponseOptions",(function(){return d})),n.d(e,"ReadyState",(function(){return c})),n.d(e,"RequestMethod",(function(){return u})),n.d(e,"ResponseContentType",(function(){return f})),n.d(e,"ResponseType",(function(){return l})),n.d(e,"Headers",(function(){return h})),n.d(e,"Http",(function(){return J})),n.d(e,"Jsonp",(function(){return W})),n.d(e,"HttpModule",(function(){return Y})),n.d(e,"JsonpModule",(function(){return X})),n.d(e,"Connection",(function(){return g})),n.d(e,"ConnectionBackend",(function(){return m})),n.d(e,"XSRFStrategy",(function(){return v})),n.d(e,"Request",(function(){return F})),n.d(e,"Response",(function(){return E})),n.d(e,"QueryEncoder",(function(){return _})),n.d(e,"URLSearchParams",(function(){return O})),n.d(e,"VERSION",(function(){return Q})),n.d(e,"ɵe",(function(){return A})),n.d(e,"ɵf",(function(){return S})),n.d(e,"ɵa",(function(){return K})),n.d(e,"ɵb",(function(){return $})),n.d(e,"ɵc",(function(){return Z}));var r=n(0),o=(n.n(r),n(12)),i=n(2),s=(n.n(i),n(26)),a=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t.decorators=[{type:r.Injectable}],t.ctorParameters=function(){return[]},t}(),u={Get:0,Post:1,Put:2,Delete:3,Options:4,Head:5,Patch:6};u[u.Get]="Get",u[u.Post]="Post",u[u.Put]="Put",u[u.Delete]="Delete",u[u.Options]="Options",u[u.Head]="Head",u[u.Patch]="Patch";var c={Unsent:0,Open:1,HeadersReceived:2,Loading:3,Done:4,Cancelled:5};c[c.Unsent]="Unsent",c[c.Open]="Open",c[c.HeadersReceived]="HeadersReceived",c[c.Loading]="Loading",c[c.Done]="Done",c[c.Cancelled]="Cancelled";var l={Basic:0,Cors:1,Default:2,Error:3,Opaque:4};l[l.Basic]="Basic",l[l.Cors]="Cors",l[l.Default]="Default",l[l.Error]="Error",l[l.Opaque]="Opaque";var p={NONE:0,JSON:1,FORM:2,FORM_DATA:3,TEXT:4,BLOB:5,ARRAY_BUFFER:6};p[p.NONE]="NONE",p[p.JSON]="JSON",p[p.FORM]="FORM",p[p.FORM_DATA]="FORM_DATA",p[p.TEXT]="TEXT",p[p.BLOB]="BLOB",p[p.ARRAY_BUFFER]="ARRAY_BUFFER";var f={Text:0,Json:1,ArrayBuffer:2,Blob:3};f[f.Text]="Text",f[f.Json]="Json",f[f.ArrayBuffer]="ArrayBuffer",f[f.Blob]="Blob";var h=function(){function t(e){var n=this;this._headers=new Map,this._normalizedNames=new Map,e&&(e instanceof t?e.forEach((function(t,e){t.forEach((function(t){return n.append(e,t)}))})):Object.keys(e).forEach((function(t){var r=Array.isArray(e[t])?e[t]:[e[t]];n.delete(t),r.forEach((function(e){return n.append(t,e)}))})))}return t.fromResponseHeaderString=function(e){var n=new t;return e.split("\n").forEach((function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),o=t.slice(e+1).trim();n.set(r,o)}})),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach((function(n,r){return t(n,e._normalizedNames.get(r),e._headers)}))},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach((function(n,r){var o=[];n.forEach((function(t){return o.push.apply(o,t.split(","))})),e[t._normalizedNames.get(r)]=o})),e},t.prototype.getAll=function(t){return this.has(t)&&this._headers.get(t.toLowerCase())||null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),d=function(){function t(t){void 0===t&&(t={});var e=t.body,n=t.status,r=t.headers,o=t.statusText,i=t.type,s=t.url;this.body=null!=e?e:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=o?o:null,this.type=null!=i?i:null,this.url=null!=s?s:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),y=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:l.Default,headers:new h})||this}return Object(o.b)(e,t),e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[]},e}(d),m=function(){},g=function(){},v=function(){};
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
function b(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return u.Get;case"POST":return u.Post;case"PUT":return u.Put;case"DELETE":return u.Delete;case"OPTIONS":return u.Options;case"HEAD":return u.Head;case"PATCH":return u.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}var _=function(){function t(){}return t.prototype.encodeKey=function(t){return w(t)},t.prototype.encodeValue=function(t){return w(t)},t}();function w(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 O=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new _),this.rawParams=t,this.queryEncoder=e,this.paramsMap=function(t){void 0===t&&(t="");var e=new Map;return t.length>0&&t.split("&").forEach((function(t){var n=t.indexOf("="),r=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],o=r[0],i=r[1],s=e.get(o)||[];s.push(i),e.set(o,s)})),e}(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(null!=e){var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)}else this.delete(t)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach((function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)}))},t.prototype.append=function(t,e){if(null!=e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach((function(t,n){for(var r=e.paramsMap.get(n)||[],o=0;o<t.length;++o)r.push(t[o]);e.paramsMap.set(n,r)}))},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach((function(t,n){var r=e.paramsMap.get(n)||[];r.length=0;for(var o=0;o<t.length;++o)r.push(t[o]);e.paramsMap.set(n,r)}))},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach((function(n,r){n.forEach((function(n){return e.push(t.queryEncoder.encodeKey(r)+"="+t.queryEncoder.encodeValue(n))}))})),e.join("&")},t.prototype.delete=function(t){this.paramsMap.delete(t)},t}(),S=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(t){if(void 0===t&&(t="legacy"),this._body instanceof O)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(t){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: "+t)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:function(t){for(var e=new Uint16Array(t.length),n=0,r=t.length;n<r;n++)e[n]=t.charCodeAt(n);return e.buffer}(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}(),E=function(t){function e(e){var n=t.call(this)||this;return n._body=e.body,n.status=e.status,n.ok=n.status>=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return Object(o.b)(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(S),C=0,P="__ng_jsonp__",T=null;
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function j(){var t="object"==typeof window?window:{};return null===T&&(T=t[P]={}),T}var A=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+C++},t.prototype.requestCallback=function(t){return P+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){j()[t]=e},t.prototype.removeConnection=function(t){j()[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t.decorators=[{type:r.Injectable}],t.ctorParameters=function(){return[]},t}(),R=function(){function t(t,e,n){var r=this;if(this._dom=e,this.baseResponseOptions=n,this._finished=!1,t.method!==u.Get)throw new TypeError("JSONP requests must use GET request method.");this.request=t,this.response=new i.Observable((function(o){r.readyState=c.Loading;var i=r._id=e.nextRequestID();e.exposeConnection(i,r);var s=e.requestCallback(r._id),a=t.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-15&&(a=a.substring(0,a.length-15)+"="+s);var u=r._script=e.build(a),p=function(t){if(r.readyState!==c.Cancelled){if(r.readyState=c.Done,e.cleanup(u),!r._finished){var i=new d({body:"JSONP injected script did not invoke callback.",type:l.Error,url:a});return n&&(i=n.merge(i)),void o.error(new E(i))}var s=new d({body:r._responseData,url:a});r.baseResponseOptions&&(s=r.baseResponseOptions.merge(s)),o.next(new E(s)),o.complete()}},f=function(t){if(r.readyState!==c.Cancelled){r.readyState=c.Done,e.cleanup(u);var i=new d({body:t.message,type:l.Error});n&&(i=n.merge(i)),o.error(new E(i))}};return u.addEventListener("load",p),u.addEventListener("error",f),e.send(u),function(){r.readyState=c.Cancelled,u.removeEventListener("load",p),u.removeEventListener("error",f),r._dom.cleanup(u)}}))}return t.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==c.Cancelled&&(this._responseData=t)},t}(),x=function(t){function e(e,n){var r=t.call(this)||this;return r._browserJSONP=e,r._baseResponseOptions=n,r}return Object(o.b)(e,t),e.prototype.createConnection=function(t){return new R(t,this._browserJSONP,this._baseResponseOptions)},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[{type:A},{type:d}]},e}(m),N=/^\)\]\}',?\n/,k=function(){function t(t,e,n){var r=this;this.request=t,this.response=new i.Observable((function(o){var i=e.build();i.open(u[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(i.withCredentials=t.withCredentials);var s=function(){var e=1223===i.status?204:i.status,r=null;204!==e&&"string"==typeof(r=void 0===i.response?i.responseText:i.response)&&(r=r.replace(N,"")),0===e&&(e=r?200:0);var s,a=h.fromResponseHeaderString(i.getAllResponseHeaders()),u=("responseURL"in(s=i)?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):null)||t.url,c=i.statusText||"OK",l=new d({body:r,status:e,headers:a,statusText:c,url:u});null!=n&&(l=n.merge(l));var p=new E(l);if(p.ok=function(t){return t>=200&&t<300}(e),p.ok)return o.next(p),void o.complete();o.error(p)},a=function(t){var e=new d({body:t,type:l.Error,status:i.status,statusText:i.statusText});null!=n&&(e=n.merge(e)),o.error(new E(e))};if(r.setDetectedContentType(t,i),null==t.headers&&(t.headers=new h),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach((function(t,e){return i.setRequestHeader(e,t.join(","))})),null!=t.responseType&&null!=i.responseType)switch(t.responseType){case f.ArrayBuffer:i.responseType="arraybuffer";break;case f.Json:i.responseType="json";break;case f.Text:i.responseType="text";break;case f.Blob:i.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return i.addEventListener("load",s),i.addEventListener("error",a),i.send(r.request.getBody()),function(){i.removeEventListener("load",s),i.removeEventListener("error",a),i.abort()}}))}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case p.NONE:break;case p.JSON:e.setRequestHeader("content-type","application/json");break;case p.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case p.TEXT:e.setRequestHeader("content-type","text/plain");break;case p.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),I=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=Object(s.a)().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),M=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new k(t,this._browserXHR,this._baseResponseOptions)},t.decorators=[{type:r.Injectable}],t.ctorParameters=function(){return[{type:a},{type:d},{type:v}]},t}(),V=function(){function t(t){void 0===t&&(t={});var e=t.method,n=t.headers,r=t.body,o=t.url,i=t.search,s=t.params,a=t.withCredentials,u=t.responseType;this.method=null!=e?b(e):null,this.headers=null!=n?n:null,this.body=null!=r?r:null,this.url=null!=o?o:null,this.params=this._mergeSearchParams(s||i),this.withCredentials=null!=a?a:null,this.responseType=null!=u?u:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new h(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof O?t.clone():"string"==typeof t?new O(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new O;return Object.keys(t).forEach((function(r){var o=t[r];Array.isArray(o)?o.forEach((function(t){return e._appendParam(r,t,n)})):e._appendParam(r,o,n)})),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),D=function(t){function e(){return t.call(this,{method:u.Get,headers:new h})||this}return Object(o.b)(e,t),e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[]},e}(V),F=function(t){function e(e){var n=t.call(this)||this,r=e.url;n.url=e.url;var o=e.params||e.search;if(o){var i=void 0;if((i="object"!=typeof o||o instanceof O?o.toString():function(t){var e=new O;return Object.keys(t).forEach((function(n){var r=t[n];r&&Array.isArray(r)?r.forEach((function(t){return e.append(n,t.toString())})):e.append(n,r.toString())})),e}(o).toString()).length>0){var s="?";-1!=n.url.indexOf("?")&&(s="&"==n.url[n.url.length-1]?"":"&"),n.url=r+s+i}}return n._body=e.body,n.method=b(e.method),n.headers=new h(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return Object(o.b)(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return p.JSON;case"application/x-www-form-urlencoded":return p.FORM;case"multipart/form-data":return p.FORM_DATA;case"text/plain":case"text/html":return p.TEXT;case"application/octet-stream":return this._body instanceof q?p.ARRAY_BUFFER:p.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?p.NONE:this._body instanceof O?p.FORM:this._body instanceof H?p.FORM_DATA:this._body instanceof G?p.BLOB:this._body instanceof q?p.ARRAY_BUFFER:this._body&&"object"==typeof this._body?p.JSON:p.TEXT},e.prototype.getBody=function(){switch(this.contentType){case p.JSON:case p.FORM:return this.text();case p.FORM_DATA:return this._body;case p.TEXT:return this.text();case p.BLOB:return this.blob();case p.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(S);
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */var U=function(){},L="object"==typeof window?window:U,H=L.FormData||U,G=L.Blob||U,q=L.ArrayBuffer||U;
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
function B(t,e){return t.createConnection(e).response}function z(t,e,n,r){var o=t;return e?o.merge(new V({method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType})):o.merge(new V({method:n,url:r}))}var J=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=B(this._backend,new F(z(this._defaultOptions,e,u.Get,t)));else{if(!(t instanceof F))throw new Error("First argument must be a url string or Request instance.");n=B(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new F(z(this._defaultOptions,e,u.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new F(z(this._defaultOptions.merge(new V({body:e})),n,u.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new F(z(this._defaultOptions.merge(new V({body:e})),n,u.Put,t)))},t.prototype.delete=function(t,e){return this.request(new F(z(this._defaultOptions,e,u.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new F(z(this._defaultOptions.merge(new V({body:e})),n,u.Patch,t)))},t.prototype.head=function(t,e){return this.request(new F(z(this._defaultOptions,e,u.Head,t)))},t.prototype.options=function(t,e){return this.request(new F(z(this._defaultOptions,e,u.Options,t)))},t.decorators=[{type:r.Injectable}],t.ctorParameters=function(){return[{type:m},{type:V}]},t}(),W=function(t){function e(e,n){return t.call(this,e,n)||this}return Object(o.b)(e,t),e.prototype.request=function(t,e){if("string"==typeof t&&(t=new F(z(this._defaultOptions,e,u.Get,t))),!(t instanceof F))throw new Error("First argument must be a url string or Request instance.");if(t.method!==u.Get)throw new Error("JSONP requests must use GET request method.");return B(this._backend,t)},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[{type:m},{type:V}]},e}(J);
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
function K(){return new I}function $(t,e){return new J(t,e)}function Z(t,e){return new W(t,e)}var Y=function(){function t(){}return t.decorators=[{type:r.NgModule,args:[{providers:[{provide:J,useFactory:$,deps:[M,V]},a,{provide:V,useClass:D},{provide:d,useClass:y},M,{provide:v,useFactory:K}]}]}],t.ctorParameters=function(){return[]},t}(),X=function(){function t(){}return t.decorators=[{type:r.NgModule,args:[{providers:[{provide:W,useFactory:Z,deps:[x,V]},A,{provide:V,useClass:D},{provide:d,useClass:y},x]}]}],t.ctorParameters=function(){return[]},t}(),Q=new r.Version("5.0.2")},function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),s=n(8),a=function(){function t(){}return t.VERSION="0.2.0",t.AUTHENTICATION_ENDPOINT="/login",t.OAUTH_AUTHENTICATION_ENDPOINT="/oauth/token",t.OAUTH_TOKEN_STORAGE_NAME="stormpath:token",t.OAUTH_HEADERS=new s.Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"}),t.CURRENT_USER_URI="/me",t.DESTROY_SESSION_ENDPOINT="/logout",t.OAUTH_REVOKE_ENDPOINT="/oauth/revoke",t.EMAIL_VERIFICATION_ENDPOINT="/verify",t.FORGOT_PASSWORD_ENDPOINT="/forgot",t.CHANGE_PASSWORD_ENDPOINT="/change",t.REGISTER_URI="/register",t.ENDPOINT_PREFIX="",t}();e.StormpathConstants=a;var u=function(){function t(){this._autoAuthorizedUris=[],this._changeUri=a.CHANGE_PASSWORD_ENDPOINT,this._forgotUri=a.FORGOT_PASSWORD_ENDPOINT,this._loginUri=a.AUTHENTICATION_ENDPOINT,this._logoutUri=a.DESTROY_SESSION_ENDPOINT,this._oauthLoginUri=a.OAUTH_AUTHENTICATION_ENDPOINT,this._oauthLogoutUri=a.OAUTH_REVOKE_ENDPOINT,this._oauthTokenName=a.OAUTH_TOKEN_STORAGE_NAME,this._meUri=a.CURRENT_USER_URI,this._registerUri=a.REGISTER_URI,this._verifyUri=a.EMAIL_VERIFICATION_ENDPOINT,this._endpointPrefix=a.ENDPOINT_PREFIX,this._version=a.VERSION}return Object.defineProperty(t.prototype,"endpointUris",{get:function(){return[this.changeUri,this.forgotUri,this.loginUri,this.logoutUri,this.meUri,this.registerUri,this.verifyUri]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoAuthorizedUris",{get:function(){return 0===this._autoAuthorizedUris.length&&(this._autoAuthorizedUris=[new RegExp(this.meUri)]),this._autoAuthorizedUris},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeUri",{get:function(){return this._endpointPrefix+this._changeUri},set:function(t){this._changeUri=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"forgotUri",{get:function(){return this._endpointPrefix+this._forgotUri},set:function(t){this._forgotUri=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loginUri",{get:function(){return this._endpointPrefix+this._loginUri},set:function(t){this._loginUri=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logoutUri",{get:function(){return this._endpointPrefix+this._logoutUri},set:function(t){this._logoutUri=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oauthLoginUri",{get:function(){return this._endpointPrefix+this._oauthLoginUri},set:function(t){this._oauthLoginUri=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oauthLogoutUri",{get:function(){return this._endpointPrefix+this._oauthLogoutUri},set:function(t){this._oauthLogoutUri=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oauthTokenName",{get:function(){return this._oauthTokenName},set:function(t){this._oauthTokenName=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"meUri",{get:function(){return this._endpointPrefix+this._meUri},set:function(t){this._meUri=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"registerUri",{get:function(){return this._endpointPrefix+this._registerUri},set:function(t){this._registerUri=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"verifyUri",{get:function(){return this._endpointPrefix+this._verifyUri},set:function(t){this._verifyUri=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endpointPrefix",{get:function(){return this._endpointPrefix},set:function(t){this._endpointPrefix=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),t=r([i.Injectable(),o("design:paramtypes",[])],t)}();e.StormpathConfiguration=u},function(t,e,n){"use strict";var r,o=this&&this.__extends||(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(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(31),u=n(36),c=n(0),l=n(19),p=function(){function t(){}return t.prototype.setToken=function(t,e){var n=new Date((new Date).setMilliseconds(0)+1e3*(e.expires_in-1)),r=new l.AuthToken(e.access_token,e.refresh_token,e.token_type,e.expires_in,e.expires_in,n);return this.put(t,r),r},t}();e.TokenStoreManager=p;var f=function(t){function e(e){var n=t.call(this)||this;return n.localStorage=e,n}return o(e,t),e.prototype.get=function(t){return this.localStorage.retrieve(t)},e.prototype.put=function(t,e){this.localStorage.store(t,e)},e.prototype.remove=function(t){this.localStorage.clear(t)},e=i([c.Injectable(),s("design:paramtypes",[a.LocalStorageService])],e)}(p);e.LocalStorageTokenStoreManager=f;var h=function(t){function e(e){var n=t.call(this)||this;return n.cookieService=e,n}return o(e,t),e.prototype.get=function(t){var e=this.cookieService.getObject(t);return e?new l.AuthToken(e.accessToken,e.refreshToken,e.tokenType,e.expiresIn,e.expiresAt,e.exp):null},e.prototype.put=function(t,e){this.cookieService.putObject(t,e)},e.prototype.remove=function(t){this.cookieService.remove(t)},e=i([c.Injectable(),s("design:paramtypes",[u.CookieService])],e)}(p);e.CookieTokenStoreManager=h},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),o=(n.n(r),function(){function t(){}return t.observe=function(t,e){var n=this.genObserverKey(t,e);return n in this.observers?this.observers[n]:this.observers[n]=new r.EventEmitter},t.emit=function(t,e,n){var r=this.genObserverKey(t,e);r in this.observers&&this.observers[r].emit(n)},t.genObserverKey=function(t,e){return t+"|"+e},t.initStorage=function(){t.storageInitStream.emit(!0)},t.observers={},t.storageInitStream=new r.EventEmitter,t.storageInit$=t.storageInitStream.asObservable(),t}())},function(t,e,n){"use strict";e.b=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n.d(e,"a",(function(){return o}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
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])};var o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}},function(t,e,n){"use strict";var r=n(3).root.Symbol;e.rxSubscriber="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber},function(t,e,n){"use strict";var r,o=this&&this.__extends||(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(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=this&&this.__param||function(t,e){return function(n,r){e(n,r,t)}};Object.defineProperty(e,"__esModule",{value:!0});var u=n(0),c=n(8),l=n(2),p=n(1),f=n(10),h=n(9),d=n(19);e.httpFactory=function(t,e,n,r){return new y(t,e,n,r)};var y=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.backend=e,i.defaultOptions=n,i.config=r,i.tokenStore=o,i.currentDomain=new m,i}return o(e,t),e.prototype.request=function(e,n){var r=this;return this.addHeaders(e,n),t.prototype.request.call(this,e,n).catch((function(o){if(o&&401===o.status){var i=r.tokenStore.get(r.config.oauthTokenName);if(!d.AuthToken.isValid(i)&&i&&i.refreshToken){var s="grant_type=refresh_token&refresh_token="+i.refreshToken;return t.prototype.post.call(r,r.config.oauthLoginUri,s,{headers:h.StormpathConstants.OAUTH_HEADERS}).map((function(t){return t.json()})).mergeMap((function(t){return r.tokenStore.setToken(r.config.oauthTokenName,t),r.request(e,n)}))}return l.Observable.throw(o)}return l.Observable.throw(o)}))},e.prototype.addHeaders=function(t,e){var n=t instanceof c.Request?t.url:t,r=this.config.autoAuthorizedUris.some((function(t){return t.test(n)}));null==(e=null==e&&r?new p.JsonGetOptions:new c.RequestOptions).headers&&(e.headers=new c.Headers);var o=u.VERSION?u.VERSION.full:"2.x";if(this.config.endpointUris.indexOf(n)>-1&&(e.headers.set("X-Stormpath-Agent","stormpath-sdk-angular/"+this.config.version+" angular/"+o),t instanceof c.Request&&t.headers.set("X-Stormpath-Agent","stormpath-sdk-angular/"+this.config.version+" angular/"+o)),!this.currentDomain.equals(n)&&r){var i=this.tokenStore.get(this.config.oauthTokenName);d.AuthToken.isValid(i)&&(e.headers.set("Authorization","Bearer "+i.accessToken),t instanceof c.Request&&t.headers.set("Authorization","Bearer "+i.accessToken))}},e=i([u.Injectable(),a(3,u.Inject("tokenStore")),s("design:paramtypes",[c.ConnectionBackend,c.RequestOptions,h.StormpathConfiguration,f.TokenStoreManager])],e)}(c.Http);e.StormpathHttp=y;var m=function(){function t(){this.window=window}return t.prototype.equals=function(t){var e=this.window.document.createElement("a");return e.href=t,this.window.location.host===e.host},t=i([u.Injectable()],t)}();e.CurrentDomain=m},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(33),o=function(){function t(t){void 0===t&&(t=null),this.sType=t,this.sType=t}return t.prototype.store=function(t,e){var n=r.a.genKey(t);r.c.store(this.sType,n,e)},t.prototype.retrieve=function(t){var e=r.a.genKey(t);return r.c.retrieve(this.sType,e)},t.prototype.clear=function(t){t?r.c.clear(this.sType,r.a.genKey(t)):r.c.clearAll(this.sType)},t.prototype.observe=function(t){var e=r.a.genKey(t);return r.b.observe(this.sType,e)},t.prototype.isStorageAvailable=function(){return r.c.isStorageAvailable(this.sType)},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(17),o=r.a,i=r.c,s=r.b;function a(t){return 0===t.indexOf(o+i)}var u=function(){function t(){}return t.isManagedKey=function(t){return 0===t.indexOf(o+i)},t.retrieveKeysFromStorage=function(t){return Object.keys(t).filter(a)},t.genKey=function(t){if("string"!=typeof t)throw Error("attempt to generate a storage key with a non string value");return""+o+i+this.formatKey(t)},t.formatKey=function(t){var e=t.toString();return s?e:e.toLowerCase()},t.setStorageKeyPrefix=function(t){void 0===t&&(t=r.a),o=t},t.setCaseSensitivity=function(t){void 0===t&&(t=r.b),s=t},t.setStorageKeySeparator=function(t){void 0===t&&(t=r.c),i=t},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return u}));var r,o=n(4),i="ng2-webstorage",s="|",a=!1,u=((r={})[o.a.local]="local",r[o.a.session]="session",r)},function(t,e,n){"use strict";e.a=function(t,e,n){void 0===n&&(n=null);return function(r,o){i(t,e,r,o,n)}},e.b=i;var r=n(33),o=n(11);function i(t,e,n,i,s){var a=t||i;if(Object.defineProperty(n,i,{get:function(){var t=r.a.genKey(a);return r.c.retrieve(e,t)},set:function(t){var n=r.a.genKey(a);this[n]=t,r.c.store(e,n,t)}}),null===n[i]&&void 0!==s)var u=o.a.storageInit$.subscribe((function(){n[i]=s,u.unsubscribe()}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e,n,r,o,i){this.accessToken=t,this.refreshToken=e,this.tokenType=n,this.expiresIn=r,this.expiresAt=o,this.exp=i}return t.isValid=function(t){return t&&new Date<=new Date(t.exp)},t}();e.AuthToken=r},function(t,e,n){"use strict";e.isFunction=function(t){return"function"==typeof t}},function(t,e,n){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},function(t,e,n){"use strict";e.isObject=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";e.errorObject={e:{}}},function(t,e,n){"use strict";e.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},function(t,e,n){"use strict";var r=n(3);function o(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}e.getSymbolObservable=o,e.observable=o(r.root),e.$$observable=e.observable},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(6),o=(n.n(r),n(0)),i=(n.n(o),n(12)),s=null;function a(){return s}var u,c=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o<r.length;o++)if(null!=e.getStyle(n,r[o]+"AnimationName")){e._animationPrefix="-"+r[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach((function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=i[t])}))}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return Object(i.b)(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}()),l={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},p={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},f={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"};
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */o["ɵglobal"].Node&&(u=o["ɵglobal"].Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var h,d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,s||(s=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,n)},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return l},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return u.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},e.prototype.insertAllBefore=function(t,e,n){n.forEach((function(n){return t.insertBefore(n,e)}))},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return this.getDefaultDocument().createComment(t)},e.prototype.createTemplate=function(t){var e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},e.prototype.createElementNS=function(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){var n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var o=n.item(r);e.set(o.name,o.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getDefaultDocument=function(){return document},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return t.title},e.prototype.setTitle=function(t,e){t.title=e||""},e.prototype.elementMatches=function(t,e){return!!this.isElementNode(t)&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return this.isElementNode(t)&&"TEMPLATE"===t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.getAttribute("href")},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&f.hasOwnProperty(e)&&(e=f[e]))}return p[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e=function(){if(!y&&!(y=document.querySelector("base")))return null;return y.getAttribute("href")}();return null==e?null:function(t){h||(h=document.createElement("a"));return h.setAttribute("href",t),"/"===h.pathname.charAt(0)?h.pathname:"/"+h.pathname}
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */(e)},e.prototype.resetBaseElement=function(){y=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return Object(r["ɵparseCookieValue"])(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(c),y=null;var m=r.DOCUMENT;function g(){return!!window.history.pushState}
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */var v=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return Object(i.b)(e,t),e.prototype._init=function(){this.location=a().getLocation(),this._history=a().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return a().getBaseHref(this._doc)},e.prototype.onPopState=function(t){a().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){a().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){g()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){g()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.decorators=[{type:o.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[m]}]}]},e}(r.PlatformLocation),b=function(){function t(t){this._doc=t,this._dom=a()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce((function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t}),[]):[]},t.prototype.getTag=function(t){return t&&this._dom.querySelector(this._doc,"meta["+t+"]")||null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var o=this._dom.createElement("meta");this._setMetaElementAttributes(t,o);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,o),o},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach((function(r){return n._dom.setAttribute(e,r,t[r])})),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every((function(r){return n._dom.getAttribute(e,r)===t[r]}))},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[m]}]}]},t}(),_=new o.InjectionToken("TRANSITION_ID");
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */var w=[{provide:o.APP_INITIALIZER,useFactory:function(t,e,n){return function(){n.get(o.ApplicationInitStatus).donePromise.then((function(){var n=a();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter((function(e){return n.getAttribute(e,"ng-transition")===t})).forEach((function(t){return n.remove(t)}))}))}},deps:[_,m,o.Injector],multi:!0}],O=function(){function t(){}return t.init=function(){Object(o.setTestabilityGetter)(new t)},t.prototype.addToWindow=function(t){o["ɵglobal"].getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},o["ɵglobal"].getAllAngularTestabilities=function(){return t.getAllTestabilities()},o["ɵglobal"].getAllAngularRootElements=function(){return t.getAllRootElements()};o["ɵglobal"].frameworkStabilizers||(o["ɵglobal"].frameworkStabilizers=[]),o["ɵglobal"].frameworkStabilizers.push((function(t){var e=o["ɵglobal"].getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach((function(t){t.whenStable(i)}))}))},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?a().isShadowRoot(e)?this.findTestabilityInTree(t,a().getHost(e),!0):this.findTestabilityInTree(t,a().parentElement(e),!0):null},t}(),S=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return a().getTitle(this._doc)},t.prototype.setTitle=function(t){a().setTitle(this._doc,t)},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[m]}]}]},t}();
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
function E(t,e){"undefined"!=typeof COMPILED&&COMPILED||((o["ɵglobal"].ng=o["ɵglobal"].ng||{})[t]=e)}
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */var C={ApplicationRef:o.ApplicationRef,NgZone:o.NgZone};function P(t){return Object(o.getDebugNode)(t)}var T=[{provide:o.APP_INITIALIZER,useFactory:function(t){return E("probe",P),E("coreTokens",Object(i.a)({},C,(t||[]).reduce((function(t,e){return t[e.name]=e.token,t}),{}))),function(){return P}},deps:[[o.NgProbeToken,new o.Optional]],multi:!0}],j=new o.InjectionToken("EventManagerPlugins"),A=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach((function(t){return t.manager=n})),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error("No event manager plugin found for event "+t)},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:o.Inject,args:[j]}]},{type:o.NgZone}]},t}(),R=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var r=a().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),x=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach((function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))})),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[]},t}(),N=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return Object(i.b)(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach((function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))}))},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach((function(n){return e._addStylesToHost(t,n)}))},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach((function(t){return a().remove(t)}))},e.decorators=[{type:o.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[m]}]}]},e}(x),k={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},I=/%COMP%/g,M="%COMP%",V="_nghost-"+M,D="_ngcontent-"+M;
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function F(t,e,n){for(var r=0;r<e.length;r++){var o=e[r];Array.isArray(o)?F(t,o,n):(o=o.replace(I,t),n.push(o))}return n}function U(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var L=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new H(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case o.ViewEncapsulation.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new z(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case o.ViewEncapsulation.Native:return new J(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=F(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:A},{type:N}]},t}(),H=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(k[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var o=k[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=k[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,r){r&o.RendererStyleFlags2.DashCase?t.style.setProperty(e,n,r&o.RendererStyleFlags2.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&o.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){q(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return q(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,U(n)):this.eventManager.addEventListener(t,e,U(n))},t}(),G="@".charCodeAt(0);function q(t,e){if(t.charCodeAt(0)===G)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var B,z=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.component=r;var i,s=F(r.id,r.styles,[]);return n.addStyles(s),o.contentAttr=(i=r.id,D.replace(I,i)),o.hostAttr=function(t){return V.replace(I,t)}(r.id),o}return Object(i.b)(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(H),J=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;i.sharedStylesHost=n,i.hostEl=r,i.component=o,i.shadowRoot=r.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var s=F(o.id,o.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],i.shadowRoot.appendChild(u)}return i}return Object(i.b)(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(H),W="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},K=W("addEventListener"),$=W("removeEventListener"),Z={},Y="removeEventListener",X="undefined"!=typeof Zone&&Zone[W("BLACK_LISTED_EVENTS")];X&&(B={},X.forEach((function(t){B[t]=t})));var Q=function(t){return!!B&&B.hasOwnProperty(t)},tt=function(t){var e=Z[t.type];if(e){var n=this[e];if(n){var r=[t];if(1===n.length)return(s=n[0]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r);for(var o=n.slice(),i=0;i<o.length;i++){var s;(s=o[i]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r)}}}},et=function(t){function e(e,n){var r=t.call(this,e)||this;return r.ngZone=n,r}return Object(i.b)(e,t),e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){var r=this,i=t[K],s=n;if(!i||o.NgZone.isInAngularZone()&&!Q(e))t.addEventListener(e,s,!1);else{var a=Z[e];a||(a=Z[e]=W("ANGULAR"+e+"FALSE"));var u=t[a],c=u&&u.length>0;u||(u=t[a]=[]);var l=Q(e)?Zone.root:Zone.current;if(0===u.length)u.push({zone:l,handler:s});else{for(var p=!1,f=0;f<u.length;f++)if(u[f].handler===s){p=!0;break}p||u.push({zone:l,handler:s})}c||t[K](e,tt,!1)}return function(){return r.removeEventListener(t,e,s)}},e.prototype.removeEventListener=function(t,e,n){var r=t[$];if(!r)return t[Y].apply(t,[e,n,!1]);var o=Z[e],i=o&&t[o];if(!i)return t[Y].apply(t,[e,n,!1]);for(var s=0;s<i.length;s++)if(i[s].handler===n){i.splice(s,1);break}0===i.length&&r.apply(t,[e,tt,!1])},e.decorators=[{type:o.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[m]}]},{type:o.NgZone}]},e}(R),nt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},rt=new o.InjectionToken("HammerGestureConfig"),ot=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);for(var n in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(n).set(this.overrides[n]);return e},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[]},t}(),it=function(t){function e(e,n){var r=t.call(this,e)||this;return r._config=n,r}return Object(i.b)(e,t),e.prototype.supports=function(t){if(!nt.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,n){var r=this,o=this.manager.getZone();return e=e.toLowerCase(),o.runOutsideAngular((function(){var i=r._config.buildHammer(t),s=function(t){o.runGuarded((function(){n(t)}))};return i.on(e,s),function(){return i.off(e,s)}}))},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e.decorators=[{type:o.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[m]}]},{type:ot,decorators:[{type:o.Inject,args:[rt]}]}]},e}(R),st=["alt","control","meta","shift"],at={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},ut=function(t){function e(e){return t.call(this,e)||this}return Object(i.b)(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 a().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(st.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 s={};return s.domEventName=r,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",n=a().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),st.forEach((function(r){r!=n&&((0,at[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){return"esc"===t?"escape":t},e.decorators=[{type:o.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[m]}]}]},e}(R),ct=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,lt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function pt(t){return(t=String(t)).match(ct)||t.match(lt)?t:(Object(o.isDevMode)()&&a().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
var ft=null,ht=null;function dt(t){for(var e={},n=0,r=t.split(",");n<r.length;n++){e[r[n]]=!0}return e}function yt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,o=t;r<o.length;r++){var i=o[r];for(var s in i)i.hasOwnProperty(s)&&(n[s]=!0)}return n}var mt=dt("area,br,col,hr,img,wbr"),gt=dt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),vt=dt("rp,rt"),bt=yt(vt,gt),_t=yt(gt,dt("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),wt=yt(vt,dt("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ot=yt(mt,_t,wt,bt),St=dt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Et=dt("srcset"),Ct=dt("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Pt=yt(St,Et,Ct),Tt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(ht.isElementNode(e)?this.startElement(e):ht.isTextNode(e)?this.chars(ht.nodeValue(e)):this.sanitizedSomething=!0,ht.firstChild(e))e=ht.firstChild(e);else for(;e;){ht.isElementNode(e)&&this.endElement(e);var n=jt(e,ht.nextSibling(e));if(n){e=n;break}e=jt(e,ht.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=ht.nodeName(t).toLowerCase();Ot.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),ht.attributeMap(t).forEach((function(t,n){var r,o=n.toLowerCase();Pt.hasOwnProperty(o)?(St[o]&&(t=pt(t)),Et[o]&&(r=t,t=(r=String(r)).split(",").map((function(t){return pt(t.trim())})).join(", ")),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(xt(t)),e.buf.push('"')):e.sanitizedSomething=!0})),this.buf.push(">")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=ht.nodeName(t).toLowerCase();Ot.hasOwnProperty(e)&&!mt.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(xt(t))},t}();function jt(t,e){if(e&&ht.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+ht.getOuterHTML(t));return e}var At=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Rt=/([^\#-~ |!])/g;function xt(t){return t.replace(/&/g,"&amp;").replace(At,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Rt,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Nt(t){ht.attributeMap(t).forEach((function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||ht.removeAttribute(t,n)}));for(var e=0,n=ht.childNodesAsList(t);e<n.length;e++){var r=n[e];ht.isElementNode(r)&&Nt(r)}}function kt(t,e){try{var n=function(){if(ft)return ft;var t=(ht=a()).createElement("template");if("content"in t)return t;var e=ht.createHtmlDocument();if(null==(ft=ht.querySelector(e,"body"))){var n=ht.createElement("html",e);ft=ht.createElement("body",e),ht.appendChild(n,ft),ht.appendChild(e,n)}return ft}(),r=e?String(e):"",i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,ht.setInnerHTML(n,r),t.documentMode&&Nt(n),s=ht.getInnerHTML(n)}while(r!==s);for(var u=new Tt,c=u.sanitizeChildren(ht.getTemplateContent(n)||n),l=ht.getTemplateContent(n)||n,p=0,f=ht.childNodesAsList(l);p<f.length;p++){var h=f[p];ht.removeChild(l,h)}return Object(o.isDevMode)()&&u.sanitizedSomething&&ht.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),c}catch(t){throw ft=null,t}}
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */var It=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"),Mt=/^url\(([^)]+)\)$/;
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
var Vt=function(){},Dt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(i.b)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case o.SecurityContext.NONE:return e;case o.SecurityContext.HTML:return e instanceof Ut?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),kt(this._doc,String(e)));case o.SecurityContext.STYLE:return e instanceof Lt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Mt);return e&&pt(e[1])===e[1]||t.match(It)&&function(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var o=t.charAt(r);"'"===o&&n?e=!e:'"'===o&&e&&(n=!n)}return e&&n}(t)?t:(Object(o.isDevMode)()&&a().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}(e));case o.SecurityContext.SCRIPT:if(e instanceof Ht)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case o.SecurityContext.URL:return e instanceof qt||e instanceof Gt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),pt(String(e)));case o.SecurityContext.RESOURCE_URL:if(e instanceof qt)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 Ft)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 Ut(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Lt(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Ht(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new Gt(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new qt(t)},e.decorators=[{type:o.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[m]}]}]},e}(Vt),Ft=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}(),Ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Ft),Lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Ft),Ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Ft),Gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Ft),qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Ft),Bt=[{provide:o.PLATFORM_ID,useValue:r["ɵPLATFORM_BROWSER_ID"]},{provide:o.PLATFORM_INITIALIZER,useValue:function(){d.makeCurrent(),O.init()},multi:!0},{provide:r.PlatformLocation,useClass:v,deps:[m]},{provide:m,useFactory:function(){return document},deps:[]}],zt=[{provide:o.Sanitizer,useExisting:Vt},{provide:Vt,useClass:Dt,deps:[m]}];Object(o.createPlatformFactory)(o.platformCore,"browser",Bt);function Jt(){return new o.ErrorHandler}!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.")}t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:o.APP_ID,useValue:e.appId},{provide:_,useExisting:o.APP_ID},w]}},t.decorators=[{type:o.NgModule,args:[{providers:[zt,{provide:o.ErrorHandler,useFactory:Jt,deps:[]},{provide:j,useClass:et,multi:!0},{provide:j,useClass:ut,multi:!0},{provide:j,useClass:it,multi:!0},{provide:rt,useClass:ot},L,{provide:o.RendererFactory2,useExisting:L},{provide:x,useExisting:N},N,o.Testability,A,T,b,S],exports:[r.CommonModule,o.ApplicationModule]}]}],t.ctorParameters=function(){return[{type:t,decorators:[{type:o.Optional},{type:o.SkipSelf}]}]}}();
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */var Wt="undefined"!=typeof window&&window||{},Kt=function(t,e){this.msPerTick=t,this.numTicks=e};!function(){function t(t){this.appRef=t.injector.get(o.ApplicationRef)}t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n="Change Detection",r=null!=Wt.console.profile;e&&r&&Wt.console.profile(n);for(var o=a().performanceNow(),i=0;i<5||a().performanceNow()-o<500;)this.appRef.tick(),i++;var s=a().performanceNow();e&&r&&Wt.console.profileEnd(n);var u=(s-o)/i;return Wt.console.log("ran "+i+" change detection cycles"),Wt.console.log(u.toFixed(2)+" ms per check"),new Kt(u,i)}}();var $t=function(){function t(){this.store={},this.onSerializeCallbacks={}}return t.init=function(e){var n=new t;return n.store=e,n},t.prototype.get=function(t,e){return this.store[t]||e},t.prototype.set=function(t,e){this.store[t]=e},t.prototype.remove=function(t){delete this.store[t]},t.prototype.hasKey=function(t){return this.store.hasOwnProperty(t)},t.prototype.onSerialize=function(t,e){this.onSerializeCallbacks[t]=e},t.prototype.toJson=function(){for(var t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[]},t}();function Zt(t,e){var n,r,o=t.getElementById(e+"-state"),i={};if(o&&o.textContent)try{i=JSON.parse((n=o.textContent,r={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"},n.replace(/&[^;]+;/g,(function(t){return r[t]}))))}catch(t){console.warn("Exception while restoring TransferState for app "+e,t)}return $t.init(i)}(function(){function t(){}t.decorators=[{type:o.NgModule,args:[{providers:[{provide:$t,useFactory:Zt,deps:[m,o.APP_ID]}]}]}],t.ctorParameters=function(){return[]}})(),function(){function t(){}t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&a().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}}}(),new o.Version("5.0.2")},function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),s=n(0),a=n(1),u=function(){function t(t,e){this.stormpath=t,this.loginService=e,this.user$=this.stormpath.user$,this.loggedIn$=this.user$.map((function(t){return!!t}))}return t.prototype.ngOnInit=function(){this.loginService.login=!0,this.loginService.register=!1,this.forgot=this.loginService.forgot,this.user$=this.stormpath.user$,this.loggedIn$=this.user$.map((function(t){return!!t}))},t.prototype.showLogin=function(){this.loginService.login=!(this.loginService.forgot=this.loginService.register=!1)},t.prototype.showRegister=function(){this.loginService.forgot=this.loginService.login=!1,this.loginService.register=!0},t.prototype.forgotPassword=function(){this.loginService.login=!1,this.forgot=!0},t.prototype.logout=function(){this.stormpath.logout()},r([i.Input(),o("design:type",i.TemplateRef)],t.prototype,"customTemplate",void 0),t=r([i.Component({selector:"sp-authport",template:'<ng-template #defaultTemplate>\n  <div class="container">\n    <div class="row" *ngIf="(user$ | async) === false">\n      <div class="col-xs-12 col-sm-offset-3 col-sm-6">\n        <div class="panel panel-default">\n          <div class="panel-heading">\n            <h4>\n              <ul class="nav nav-pills">\n                <li role="presentation" [ngClass]="{active:loginService.login || loginService.forgot}" id="login">\n                  <a href="" (click)="showLogin(); false">Sign In</a>\n                </li>\n                <li role="presentation" [ngClass]="{active:loginService.register}" id="register" class="pull-right">\n                  <a href="" (click)="showRegister(); false">Register</a>\n                </li>\n              </ul>\n            </h4>\n          </div>\n          <div class="panel-body text-center">\n            <div class="row" *ngIf="loginService.forgot">\n              <forgot-password-form></forgot-password-form>\n            </div>\n            <div class="row" *ngIf="loginService.login">\n              <div class="col-xs-12">\n                <login-form></login-form>\n              </div>\n            </div>\n            <div class="row" *ngIf="loginService.register">\n              <div class="col-xs-12">\n                <register-form autoLogin=true></register-form>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</ng-template>\n<ng-template\n  [ngTemplateOutlet]="customTemplate || defaultTemplate">\n</ng-template>',providers:[a.LoginService]}),s.Injectable(),o("design:paramtypes",[a.Stormpath,a.LoginService])],t)}();e.AuthPortComponent=u},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.ObjectUnsubscribedError=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n(7).Subscription);e.SubjectSubscription=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){for(var e in t)this[e]=t[e]};e.Account=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"WEBSTORAGE_CONFIG",(function(){return f})),n.d(e,"Ng2Webstorage",(function(){return h})),e.provideConfig=d;var r=n(0),o=(n.n(r),n(4)),i=n(32),s=n(34),a=n(35),u=n(16),c=n(11),l=n(82);n.d(e,"WebstorageConfig",(function(){return l.a}));var p=n(83);n.d(e,"LocalStorage",(function(){return p.a})),n.d(e,"SessionStorage",(function(){return p.b})),n.d(e,"WebStorage",(function(){return p.c})),n.d(e,"WebStorageDecorator",(function(){return p.d})),n.d(e,"WebStorageService",(function(){return i.c})),n.d(e,"LocalStorageService",(function(){return i.a})),n.d(e,"SessionStorageService",(function(){return i.b}));var f=new r.InjectionToken("WEBSTORAGE_CONFIG"),h=function(){function t(t,e){this.ngZone=t,e&&(u.a.setStorageKeyPrefix(e.prefix),u.a.setStorageKeySeparator(e.separator),u.a.setCaseSensitivity(e.caseSensitive)),this.initStorageListener(),c.a.initStorage()}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:f,useValue:e},{provide:a.a,useFactory:d,deps:[f]}]}},t.prototype.initStorageListener=function(){var t=this;"undefined"!=typeof window&&window.addEventListener("storage",(function(e){return t.ngZone.run((function(){var t=window.sessionStorage===e.storageArea?o.a.session:o.a.local;s.a.refresh(t,e.key)}))}))},t.decorators=[{type:r.NgModule,args:[{declarations:[],providers:[i.b,i.a],imports:[]}]}],t.ctorParameters=function(){return[{type:r.NgZone},{type:a.a,decorators:[{type:r.Optional},{type:r.Inject,args:[a.a]}]}]},t}();function d(t){return new a.a(t)}},function(t,e,n){"use strict";var r=n(15);n.d(e,"c",(function(){return r.a}));var o=n(80);n.d(e,"a",(function(){return o.a}));var i=n(81);n.d(e,"b",(function(){return i.a}))},function(t,e,n){"use strict";var r=n(16);n.d(e,"a",(function(){return r.a}));var o=n(11);n.d(e,"b",(function(){return o.a}));var i=n(34);n.d(e,"c",(function(){return i.a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r,o,i=n(4),s=n(11),a=n(16),u=n(79),c=n(17),l=((r={})[i.a.local]={},r[i.a.session]={},r),p=((o={})[i.a.local]=null,o[i.a.session]=null,o),f=function(){function t(){}return t.store=function(t,e,n){this.getStorage(t).setItem(e,JSON.stringify(n)),l[t][e]=n,s.a.emit(t,e,n)},t.retrieve=function(e,n){return l[e][n]?l[e][n]:l[e][n]=t.retrieveFromStorage(e,n)},t.retrieveFromStorage=function(t,e){var n=null;try{n=JSON.parse(this.getStorage(t).getItem(e))}catch(t){console.warn("invalid value for "+e)}return n},t.refresh=function(e,n){if(a.a.isManagedKey(n)){var r=t.retrieveFromStorage(e,n);null===r?(delete l[e][n],s.a.emit(e,n,null)):r!==l[e][n]&&(l[e][n]=r,s.a.emit(e,n,r))}},t.clearAll=function(t){var e=this.getStorage(t);a.a.retrieveKeysFromStorage(e).forEach((function(n){e.removeItem(n),delete l[t][n],s.a.emit(t,n,null)}))},t.clear=function(t,e){this.getStorage(t).removeItem(e),delete l[t][e],s.a.emit(t,e,null)},t.getStorage=function(t){return this.isStorageAvailable(t)?this.getWStorage(t):u.a.getStorage(t)},t.getWStorage=function(t){var e;switch(t){case i.a.local:e=localStorage;break;case i.a.session:e=sessionStorage;break;default:throw Error("invalid storage type")}return e},t.isStorageAvailable=function(t){if("boolean"==typeof p[t])return p[t];var e,n=!0;try{"object"==typeof(e=this.getWStorage(t))?(e.setItem("test-storage","foobar"),e.removeItem("test-storage")):n=!1}catch(t){n=!1}return n||console.warn(c.d[t]+" storage unavailable, Ng2Webstorage will use a fallback strategy instead"),p[t]=n},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(17),o=function(t){this.prefix=r.a,this.separator=r.c,this.caseSensitive=r.b,t&&void 0!==t.prefix&&(this.prefix=t.prefix),t&&void 0!==t.separator&&(this.separator=t.separator),t&&void 0!==t.caseSensitive&&(this.caseSensitive=t.caseSensitive)}},function(t,e,n){"use strict";
/**
 * angular2-cookie - Implementation of Angular 1.x $cookies service to Angular 2
 * @version v1.2.6
 * @link https://github.com/salemdar/angular2-cookie#readme
 * @license MIT
 */var r=n(37);function o(t){return new r.CookieService(t)}!function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(37)),e.ANGULAR2_COOKIE_PROVIDERS=[{provide:r.CookieOptions,useClass:r.BaseCookieOptions},{provide:r.CookieService,useFactory:o,deps:[r.CookieOptions]}],e.cookieServiceFactory=o},function(t,e,n){"use strict";
/**
 * angular2-cookie - Implementation of Angular 1.x $cookies service to Angular 2
 * @version v1.2.6
 * @link https://github.com/salemdar/angular2-cookie#readme
 * @license MIT
 */var r=n(38);e.BaseCookieOptions=r.BaseCookieOptions,e.CookieOptions=r.CookieOptions;var o=n(86);e.CookieService=o.CookieService},function(t,e,n){"use strict";
/**
 * angular2-cookie - Implementation of Angular 1.x $cookies service to Angular 2
 * @version v1.2.6
 * @link https://github.com/salemdar/angular2-cookie#readme
 * @license MIT
 */var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,r){e(n,r,t)}},a=n(6),u=n(0),c=function(){function t(t){var e=void 0===t?{}:t,n=e.path,r=e.domain,o=e.expires,i=e.secure;this.path=this.isPresent(n)?n:null,this.domain=this.isPresent(r)?r:null,this.expires=this.isPresent(o)?o:null,this.secure=!!this.isPresent(i)&&i}return t.prototype.merge=function(e){return new t({path:this.isPresent(e)&&this.isPresent(e.path)?e.path:this.path,domain:this.isPresent(e)&&this.isPresent(e.domain)?e.domain:this.domain,expires:this.isPresent(e)&&this.isPresent(e.expires)?e.expires:this.expires,secure:this.isPresent(e)&&this.isPresent(e.secure)?e.secure:this.secure})},t.prototype.isPresent=function(t){return null!=t},t}();e.CookieOptions=c;var l=function(t){function e(e){t.call(this,{path:e||"/"}),this.baseHref=e}return r(e,t),e=o([u.Injectable(),s(0,u.Optional()),s(0,u.Inject(a.APP_BASE_HREF)),i("design:paramtypes",[String])],e)}(c);e.BaseCookieOptions=l},function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),s=n(0),a=n(1),u=function(){function t(t){this.stormpath=t,this.sent=!1}return t.prototype.ngOnInit=function(){this.forgotPasswordFormModel={email:""}},t.prototype.send=function(){var t=this;this.error=null,this.stormpath.sendPasswordResetEmail(this.forgotPasswordFormModel).subscribe((function(){return t.sent=!0}),(function(e){return t.error=e.message}))},t.prototype.onSubmit=function(t){this.send()},r([i.Input(),o("design:type",i.TemplateRef)],t.prototype,"customTemplate",void 0),t=r([i.Component({selector:"forgot-password-form",template:'<ng-template #defaultTemplate>\n  <div class="row">\n    <div class="col-xs-12">\n      <p *ngIf="sent" class="alert alert-success">\n        We have sent a password reset link to the email address of the account that you specified.\n        Please check your email for this message, then click on the link.\n      </p>\n    </div>\n  </div>\n  <div class="row">\n    <div class="col-xs-12">\n      <form class="form-horizontal" *ngIf="!sent" #form="ngForm" (ngSubmit)="onSubmit(form.value)" autocomplete="off">\n        <div class="form-group">\n          <label for="spEmail" class="col-sm-3 control-label">Email</label>\n          <div class="col-sm-9">\n            <input class="form-control" name="email" type="email" id="spEmail" [(ngModel)]="forgotPasswordFormModel.email"\n                   placeholder="Your Email Address" [disabled]="posting" required>\n          </div>\n        </div>\n        <div class="form-group">\n          <div class="col-sm-offset-3">\n            <p class="text-danger" *ngIf="error">{{error}}</p>\n            <button type="submit" class="btn btn-primary" [disabled]="posting">Request Password Reset</button>\n          </div>\n        </div>\n      </form>\n    </div>\n  </div>\n</ng-template>\n<ng-template\n  [ngTemplateOutlet]="customTemplate || defaultTemplate">\n</ng-template>'}),s.Injectable(),o("design:paramtypes",[a.Stormpath])],t)}();e.ForgotPasswordComponent=u},function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),s=n(0),a=n(1),u=function(){function t(t,e){this.stormpath=t,this.loginService=e}return t.prototype.ngOnInit=function(){this.user$=this.stormpath.user$,this.loggedIn$=this.user$.map((function(t){return!!t})),this.loginFormModel={login:"",password:""}},t.prototype.login=function(t){var e=this;this.error=null,this.stormpath.login(this.loginFormModel).subscribe(null,(function(t){e.error=t.message}))},t.prototype.forgot=function(){this.loginService.forgotPassword()},r([i.Input(),o("design:type",i.TemplateRef)],t.prototype,"customTemplate",void 0),t=r([i.Component({selector:"login-form",template:'<ng-template #defaultTemplate>\n<form class="form-horizontal" #form="ngForm" (ngSubmit)="login(form.value)" autocomplete="off">\n  <div class="form-group">\n    <label for="loginField" class="col-sm-3 control-label">Email</label>\n    <div class="col-sm-9">\n      <input class="form-control" name="login" id="loginField" type="text" required [(ngModel)]="loginFormModel.login">\n    </div>\n  </div>\n  <div class="form-group">\n    <label for="passwordField" class="col-sm-3 control-label">Password</label>\n    <div class="col-sm-9">\n      <input class="form-control" name="password" id="passwordField" type="password" required [(ngModel)]="loginFormModel.password">\n    </div>\n  </div>\n\n  <div class="form-group">\n    <div class="col-xs-10 col-xs-offset-3 text-left">\n      <a href="#" (click)="forgot(); false">&nbsp;Forgot Password?</a>\n    </div>\n  </div>\n\n  <div *ngIf="error" class="alert alert-danger">{{error}}</div>\n  <button id="loginBtn" type="submit" class="btn btn-primary pull-right">Login</button>\n</form>\n</ng-template>\n<ng-template\n  [ngTemplateOutlet]="customTemplate || defaultTemplate">\n</ng-template>'}),s.Injectable(),o("design:paramtypes",[a.Stormpath,a.LoginService])],t)}();e.LoginComponent=u},function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),s=n(0),a=n(1),u=function(){function t(t){this.stormpath=t,this.unverified=!1,this.canLogin=!1,this.formModel={email:"",surname:"",givenName:"",password:""}}return t.prototype.ngOnInit=function(){var t=this;this.stormpath.getRegistrationViewModel().subscribe((function(e){t.model=e}),(function(e){return t.error=e.message}))},t.prototype.register=function(){var t=this;this.stormpath.register(this.formModel).subscribe((function(e){if(t.registered=!0,t.unverified="UNVERIFIED"===e.status,t.canLogin="ENABLED"===e.status,t.canLogin&&t.autoLogin){var n={login:t.formModel.email,password:t.formModel.password};t.stormpath.login(n)}}),(function(e){return t.error=e.message}))},t.prototype.onSubmit=function(){this.register()},r([i.Input(),o("design:type",i.TemplateRef)],t.prototype,"customTemplate",void 0),r([i.Input(),o("design:type",Boolean)],t.prototype,"autoLogin",void 0),t=r([i.Component({selector:"register-form",template:'<ng-template #defaultTemplate>\n  <form *ngIf="!registered" (ngSubmit)="onSubmit()" class="form-horizontal" autocomplete="off">\n    <div class="form-group" *ngFor="let field of model?.form?.fields">\n      <label [attr.for]="field.name" class="col-sm-4 control-label">{{field.label}}</label>\n      <div class="col-sm-8">\n        <input class="form-control" [name]="field.name" [id]="field.name" [type]="field.type"\n               [(ngModel)]="formModel[field.name]" [placeholder]="field.placeholder" [disabled]="creating" [required]="field.required">\n      </div>\n    </div>\n    <div *ngIf="error" class="alert alert-danger">{{error}}</div>\n    <button type="submit" class="btn btn-primary">Register</button>\n  </form>\n  <p *ngIf="unverified" class="alert alert-success">\n    Your account has been created and requires verification.\n    Please check your email for a verification link.\n  </p>\n  <p class="alert alert-success" *ngIf="canLogin">\n    Your account has been created, you may now log in.\n  </p>\n</ng-template>\n<ng-template\n  [ngTemplateOutlet]="customTemplate || defaultTemplate">\n</ng-template>'}),s.Injectable(),o("design:paramtypes",[a.Stormpath])],t)}();e.RegisterComponent=u},function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),s=n(0),a=n(6),u=n(1),c=function(){function t(t,e){this.stormpath=t,this.location=e}return t.prototype.ngOnInit=function(){this.verifying=!1,this.verified=!1,this.verificationFailed=!1,this.sptoken=this.spTokenResolver(),this.sptoken&&this.verify()},t.prototype.spTokenResolver=function(){return u.defaultSpTokenResolver(this.location)},t.prototype.verify=function(){var t=this;this.verifying=!0,this.stormpath.verifyEmailVerificationToken(this.sptoken).subscribe((function(){t.verifying=!1,t.verified=!0}),(function(e){t.verifying=!1,e.status&&404===e.status?t.verificationFailed=!0:t.error=e.message}))},r([i.Input(),o("design:type",i.TemplateRef)],t.prototype,"customTemplate",void 0),t=r([i.Component({selector:"email-verification",template:'<ng-template #defaultTemplate>\n<div class="row">\n  <div class="col-sm-offset-4 col-xs-12 col-sm-4">\n    <p *ngIf="verifying" class="alert alert-warning">We are verifying your account</p>\n    <p *ngIf="verified" class="alert alert-success">\n      Your account has has been verified!  You may now login.\n    </p>\n    <div *ngIf="verificationFailed" class="alert alert-danger">\n      This email verification link is not valid.  Please request a new email verification link.\n    </div>\n    <p class="text-danger" *ngIf="error">{{error}}</p>\n  </div>\n</div>\n</ng-template>\n<ng-template\n  [ngTemplateOutlet]="customTemplate || defaultTemplate">\n</ng-template>'}),s.Injectable(),o("design:paramtypes",[u.Stormpath,a.Location])],t)}();e.EmailVerificationComponent=c},function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),s=n(6),a=n(1),u=function(){function t(t,e){this.stormpath=t,this.location=e}return t.prototype.ngOnInit=function(){this.verifying=!1,this.verified=!1,this.verificationFailed=!1,this.formModel={sptoken:this.spTokenResolver(),password:""},this.formModel.sptoken&&this.verify()},t.prototype.spTokenResolver=function(){return a.defaultSpTokenResolver(this.location)},t.prototype.verify=function(){var t=this;this.verifying=!0,this.stormpath.verifyPasswordResetToken(this.formModel.sptoken).subscribe((function(){t.verifying=!1,t.verified=!0}),(function(e){t.verifying=!1,e.status&&404===e.status?t.verificationFailed=!0:t.error=e.message}))},t.prototype.send=function(){var t=this;this.stormpath.resetPassword(this.formModel).subscribe((function(){t.posting=!1,t.reset=!0}),(function(e){t.posting=!1,t.error=e.message}))},t.prototype.onSubmit=function(){this.send()},r([i.Input(),o("design:type",i.TemplateRef)],t.prototype,"customTemplate",void 0),t=r([i.Component({selector:"reset-password",template:'<ng-template #defaultTemplate>\n<div class="row">\n  <div class="col-sm-offset-4 col-xs-12 col-sm-4">\n    <p *ngIf="verifying" class="alert alert-warning text-center">We are verifying your password reset link</p>\n    <p class="alert alert-success" *ngIf="reset">Your new password has been set, you may now login.</p>\n    <div *ngIf="verificationFailed" class="alert alert-danger">\n      This password reset link is not valid, please request a new reset link.\n    </div>\n  </div>\n</div>\n<div class="row">\n  <div class="col-xs-12">\n    <form class="form-horizontal" *ngIf="verified && !reset" (ngSubmit)="onSubmit()" autocomplete="off">\n      <div class="form-group">\n        <label for="spUsername" class="col-xs-12 col-sm-4 control-label">New Password</label>\n        <div class="col-xs-12 col-sm-4">\n          <input class="form-control" id="spUsername" [(ngModel)]="formModel.password"\n                 placeholder="New Password" type="password" [disabled]="posting">\n        </div>\n      </div>\n      <div class="form-group">\n        <label for="spPassword" class="col-xs-12 col-sm-4 control-label">Confirm New Password</label>\n        <div class="col-xs-12 col-sm-4">\n          <input class="form-control" id="spPassword" [(ngModel)]="formModel.confirmPassword"\n                 placeholder="Confirm New Password" type="password" [disabled]="posting">\n        </div>\n      </div>\n      <div class="form-group">\n        <div class="col-sm-offset-4 col-sm-4">\n          <p class="alert alert-danger" *ngIf="error">{{error}}</p>\n          <button type="submit" class="btn btn-primary" [disabled]="posting">Set New Password</button>\n        </div>\n      </div>\n    </form>\n  </div>\n</div>\n</ng-template>\n<ng-template\n  [ngTemplateOutlet]="customTemplate || defaultTemplate">\n</ng-template>'}),i.Injectable(),o("design:paramtypes",[a.Stormpath,s.Location])],t)}();e.ResetPasswordComponent=u},function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),s=n(1),a=function(){function t(t){this.stormpath=t}return t.prototype.ngOnInit=function(){this.posting=!1,this.sent=!1,this.formModel={login:""}},t.prototype.send=function(){var t=this;this.posting=!0,this.stormpath.resendVerificationEmail(this.formModel).subscribe((function(){t.posting=!1,t.sent=!0}),(function(e){t.posting=!1,t.error=e.message}))},t.prototype.onSubmit=function(){this.send()},r([i.Input(),o("design:type",i.TemplateRef)],t.prototype,"customTemplate",void 0),t=r([i.Component({selector:"resend-email-verification",template:'<ng-template #defaultTemplate>\n<div class="row">\n  <div class="col-sm-offset-4 col-xs-12 col-sm-4">\n\n    <p *ngIf="sent" class="alert alert-success">\n      We have sent a new verification message to your email address, please check your email for this message.\n    </p>\n\n    <p class="text-danger" *ngIf="error">{{error}}</p>\n  </div>\n</div>\n\n<div class="row">\n  <div class="col-xs-12">\n    <form class="form-horizontal" *ngIf="!sent" (ngSubmit)="onSubmit()" autocomplete="off">\n\n      <div class="form-group">\n        <label for="spUsername" class="col-xs-12 col-sm-4 control-label">Email address</label>\n        <div class="col-xs-12 col-sm-4">\n          <input class="form-control" id="spUsername" [(ngModel)]="formModel.login" [disabled]="posting">\n        </div>\n      </div>\n      <div class="form-group">\n        <div class="col-sm-offset-4 col-xs-12">\n          <p class="text-danger" *ngIf="error">{{error}}</p>\n          <button type="submit" class="btn btn-primary" [disabled]="posting">Re-Send Verification</button>\n        </div>\n      </div>\n    </form>\n  </div>\n</div>\n</ng-template>\n<ng-template\n  [ngTemplateOutlet]="customTemplate || defaultTemplate">\n</ng-template>'}),i.Injectable(),o("design:paramtypes",[s.Stormpath])],t)}();e.ResendEmailVerificationComponent=a},function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),s=n(2),a=function(){function t(){var t=this;this.observable=s.Observable.create((function(e){t.observer=e})).share()}return t.prototype.broadcast=function(t){this.observer.next(t)},t.prototype.subscribe=function(t,e){return this.observable.filter((function(e){return e.name===t})).subscribe(e)},t.prototype.destroy=function(t){t.unsubscribe()},t=r([i.Injectable(),o("design:paramtypes",[])],t)}();e.EventManager=a},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(47)),r(n(87)),r(n(88)),r(n(89)),r(n(90)),r(n(91)),r(n(92)),r(n(93)),r(n(94)),r(n(95))},function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(6),s=n(48),a=n(27),u=n(39),c=n(40),l=n(41),p=n(8),f=n(1),h=n(9),d=n(14),y=n(42),m=n(43),g=n(44),v=n(45),b=n(10),_=n(1),w=n(31),O=n(36),S=function(){function t(){}return t=r([o.NgModule({declarations:[a.AuthPortComponent,u.ForgotPasswordComponent,c.LoginComponent,l.RegisterComponent,y.EmailVerificationComponent,m.ResetPasswordComponent,g.ResendEmailVerificationComponent],imports:[i.CommonModule,s.FormsModule,p.HttpModule,w.Ng2Webstorage],exports:[a.AuthPortComponent,u.ForgotPasswordComponent,c.LoginComponent,l.RegisterComponent,y.EmailVerificationComponent,m.ResetPasswordComponent,g.ResendEmailVerificationComponent],providers:[v.EventManager,b.LocalStorageTokenStoreManager,b.CookieTokenStoreManager,O.CookieService,_.Stormpath,h.StormpathConfiguration,f.LoginService,{provide:"tokenStore",useClass:b.LocalStorageTokenStoreManager},{provide:p.Http,useFactory:d.httpFactory,deps:[p.XHRBackend,p.RequestOptions,h.StormpathConfiguration,"tokenStore"]}]})],t)}();e.StormpathModule=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"AbstractControlDirective",(function(){return c})),n.d(e,"AbstractFormGroupDirective",(function(){return rt})),n.d(e,"CheckboxControlValueAccessor",(function(){return w})),n.d(e,"ControlContainer",(function(){return l})),n.d(e,"NG_VALUE_ACCESSOR",(function(){return b})),n.d(e,"COMPOSITION_BUFFER_MODE",(function(){return S})),n.d(e,"DefaultValueAccessor",(function(){return E})),n.d(e,"NgControl",(function(){return R})),n.d(e,"NgControlStatus",(function(){return st})),n.d(e,"NgControlStatusGroup",(function(){return at})),n.d(e,"NgForm",(function(){return wt})),n.d(e,"NgModel",(function(){return Nt})),n.d(e,"NgModelGroup",(function(){return At})),n.d(e,"RadioControlValueAccessor",(function(){return k})),n.d(e,"FormControlDirective",(function(){return Mt})),n.d(e,"FormControlName",(function(){return Bt})),n.d(e,"FormGroupDirective",(function(){return Dt})),n.d(e,"FormArrayName",(function(){return Ht})),n.d(e,"FormGroupName",(function(){return Ut})),n.d(e,"NgSelectOption",(function(){return U})),n.d(e,"SelectControlValueAccessor",(function(){return F})),n.d(e,"SelectMultipleControlValueAccessor",(function(){return G})),n.d(e,"CheckboxRequiredValidator",(function(){return Kt})),n.d(e,"EmailValidator",(function(){return Zt})),n.d(e,"MaxLengthValidator",(function(){return te})),n.d(e,"MinLengthValidator",(function(){return Xt})),n.d(e,"PatternValidator",(function(){return ne})),n.d(e,"RequiredValidator",(function(){return Wt})),n.d(e,"FormBuilder",(function(){return re})),n.d(e,"AbstractControl",(function(){return yt})),n.d(e,"FormArray",(function(){return vt})),n.d(e,"FormControl",(function(){return mt})),n.d(e,"FormGroup",(function(){return gt})),n.d(e,"NG_ASYNC_VALIDATORS",(function(){return h})),n.d(e,"NG_VALIDATORS",(function(){return f})),n.d(e,"Validators",(function(){return y})),n.d(e,"VERSION",(function(){return oe})),n.d(e,"FormsModule",(function(){return le})),n.d(e,"ReactiveFormsModule",(function(){return pe})),n.d(e,"ɵba",(function(){return ce})),n.d(e,"ɵz",(function(){return ue})),n.d(e,"ɵx",(function(){return se})),n.d(e,"ɵy",(function(){return ae})),n.d(e,"ɵa",(function(){return _})),n.d(e,"ɵb",(function(){return O})),n.d(e,"ɵc",(function(){return ot})),n.d(e,"ɵd",(function(){return it})),n.d(e,"ɵe",(function(){return bt})),n.d(e,"ɵf",(function(){return Rt})),n.d(e,"ɵg",(function(){return jt})),n.d(e,"ɵbf",(function(){return ie})),n.d(e,"ɵbb",(function(){return T})),n.d(e,"ɵbc",(function(){return j})),n.d(e,"ɵh",(function(){return x})),n.d(e,"ɵi",(function(){return N})),n.d(e,"ɵbd",(function(){return I})),n.d(e,"ɵbe",(function(){return M})),n.d(e,"ɵj",(function(){return It})),n.d(e,"ɵk",(function(){return qt})),n.d(e,"ɵl",(function(){return Vt})),n.d(e,"ɵn",(function(){return Lt})),n.d(e,"ɵm",(function(){return Ft})),n.d(e,"ɵo",(function(){return V})),n.d(e,"ɵq",(function(){return q})),n.d(e,"ɵp",(function(){return L})),n.d(e,"ɵs",(function(){return Jt})),n.d(e,"ɵt",(function(){return $t})),n.d(e,"ɵv",(function(){return Qt})),n.d(e,"ɵu",(function(){return Yt})),n.d(e,"ɵw",(function(){return ee})),n.d(e,"ɵr",(function(){return zt}));var r=n(12),o=n(0),i=(n.n(o),n(49)),s=(n.n(i),n(64)),a=(n.n(s),n(66)),u=(n.n(a),n(26)),c=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(c);
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
function p(t){return null==t||0===t.length}var f=new o.InjectionToken("NgValidators"),h=new o.InjectionToken("NgAsyncValidators"),d=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,y=function(){function t(){}return t.min=function(t){return function(e){if(p(e.value)||p(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}},t.max=function(t){return function(e){if(p(e.value)||p(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return p(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return d.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(p(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="^"+e+"$",n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(p(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(m);return 0==e.length?null:function(t){return v(function(t,e){return e.map((function(e){return e(t)}))}(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(m);return 0==e.length?null:function(t){var n=function(t,e){return e.map((function(e){return e(t)}))}(t,e).map(g);return a.map.call(Object(i.forkJoin)(n),v)}},t}();function m(t){return null!=t}function g(t){var e=Object(o["ɵisPromise"])(t)?Object(s.fromPromise)(t):t;if(!Object(o["ɵisObservable"])(e))throw new Error("Expected validator to return Promise or Observable.");return e}function v(t){var e=t.reduce((function(t,e){return null!=e?Object(r.a)({},t,e):t}),{});return 0===Object.keys(e).length?null:e}
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */var b=new o.InjectionToken("NgValueAccessor"),_={provide:b,useExisting:Object(o.forwardRef)((function(){return w})),multi:!0},w=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,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.decorators=[{type:o.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[_]}]}],t.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef}]},t}(),O={provide:b,useExisting:Object(o.forwardRef)((function(){return E})),multi:!0};
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */var S=new o.InjectionToken("CompositionEventMode"),E=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Object(u.a)()?Object(u.a)().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t.decorators=[{type:o.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[O]}]}],t.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[S]}]}]},t}();function C(t){return t.validate?function(e){return t.validate(e)}:t}function P(t){return t.validate?function(e){return t.validate(e)}:t}
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */var T={provide:b,useExisting:Object(o.forwardRef)((function(){return j})),multi:!0},j=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},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.decorators=[{type:o.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[T]}]}],t.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef}]},t}();
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
function A(){throw new Error("unimplemented")}var R=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return A()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return A()},enumerable:!0,configurable:!0}),e}(c),x={provide:b,useExisting:Object(o.forwardRef)((function(){return k})),multi:!0},N=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=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.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[]},t}(),k=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(R),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: <input type="radio" formControlName="food" name="food">\n    ')},t.decorators=[{type:o.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[x]}]}],t.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef},{type:N},{type:o.Injector}]},t.propDecorators={name:[{type:o.Input}],formControlName:[{type:o.Input}],value:[{type:o.Input}]},t}(),I={provide:b,useExisting:Object(o.forwardRef)((function(){return M})),multi:!0},M=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.decorators=[{type:o.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[I]}]}],t.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef}]},t}(),V={provide:b,useExisting:Object(o.forwardRef)((function(){return F})),multi:!0};
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function D(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var F=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["ɵlooseIdentical"]}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=D(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){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r),t))return r}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.decorators=[{type:o.Directive,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[V]}]}],t.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef}]},t.propDecorators={compareWith:[{type:o.Input}]},t}(),U=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(D(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.decorators=[{type:o.Directive,args:[{selector:"option"}]}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:F,decorators:[{type:o.Optional},{type:o.Host}]}]},t.propDecorators={ngValue:[{type:o.Input,args:["ngValue"]}],value:[{type:o.Input,args:["value"]}]},t}(),L={provide:b,useExisting:Object(o.forwardRef)((function(){return G})),multi:!0};function H(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var G=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["ɵlooseIdentical"]}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;i<o.length;i++){var s=o.item(i),a=e._getOptionValue(s.value);r.push(a)}else for(o=n.options,i=0;i<o.length;i++){if((s=o.item(i)).selected){a=e._getOptionValue(s.value);r.push(a)}}e.value=r,t(r)}},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(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r)._value,t))return r}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)._value:t},t.decorators=[{type:o.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[L]}]}],t.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef}]},t.propDecorators={compareWith:[{type:o.Input}]},t}(),q=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(H(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(H(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t.decorators=[{type:o.Directive,args:[{selector:"option"}]}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:G,decorators:[{type:o.Optional},{type:o.Host}]}]},t.propDecorators={ngValue:[{type:o.Input,args:["ngValue"]}],value:[{type:o.Input,args:["value"]}]},t}();
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
function B(t,e){return e.path.concat([t])}function z(t,e){t||$(e,"Cannot find control with"),e.valueAccessor||$(e,"No value accessor for form control with"),t.validator=y.compose([t.validator,e.validator]),t.asyncValidator=y.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange((function(n){t._pendingValue=n,t._pendingDirty=!0,"change"===t.updateOn&&J(t,e)}))}(t,e),function(t,e){t.registerOnChange((function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}))}(t,e),function(t,e){e.valueAccessor.registerOnTouched((function(){t._pendingTouched=!0,"blur"===t.updateOn&&J(t,e),"submit"!==t.updateOn&&t.markAsTouched()}))}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange((function(t){e.valueAccessor.setDisabledState(t)})),e._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange((function(){return t.updateValueAndValidity()}))})),e._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange((function(){return t.updateValueAndValidity()}))}))}function J(t,e){e.viewToModelUpdate(t._pendingValue),t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1})}function W(t,e){null==t&&$(e,"Cannot find control with"),t.validator=y.compose([t.validator,e.validator]),t.asyncValidator=y.composeAsync([t.asyncValidator,e.asyncValidator])}function K(t){return $(t,"There is no FormControl instance attached to form control element with")}function $(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function Z(t){return null!=t?y.compose(t.map(C)):null}function Y(t){return null!=t?y.composeAsync(t.map(P)):null}function X(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(o["ɵlooseIdentical"])(e,n.currentValue)}var Q=[w,M,j,F,G,k];function tt(t,e){t._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&t.viewToModelUpdate(e._pendingValue)}))}function et(t,e){if(!e)return null;var n=void 0,r=void 0,o=void 0;return e.forEach((function(e){var i;e.constructor===E?n=e:(i=e,Q.some((function(t){return i.constructor===t}))?(r&&$(t,"More than one built-in value accessor matches form control with"),r=e):(o&&$(t,"More than one custom value accessor matches form control with"),o=e))})),o||(r||(n||($(t,"No valid value accessor for form control with"),null)))}function nt(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(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 B(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 Z(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Y(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(l),ot=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}(),it={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},st=function(t){function e(e){return t.call(this,e)||this}return Object(r.b)(e,t),e.decorators=[{type:o.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:it}]}],e.ctorParameters=function(){return[{type:R,decorators:[{type:o.Self}]}]},e}(ot),at=function(t){function e(e){return t.call(this,e)||this}return Object(r.b)(e,t),e.decorators=[{type:o.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:it}]}],e.ctorParameters=function(){return[{type:l,decorators:[{type:o.Self}]}]},e}(ot),ut="VALID",ct="INVALID",lt="PENDING",pt="DISABLED";
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */function ft(t){var e=dt(t)?t.validators:t;return Array.isArray(e)?Z(e):e||null}function ht(t,e){var n=dt(e)?e.asyncValidators:t;return Array.isArray(n)?Y(n):n||null}function dt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var yt=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 this.status===ut},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.status===ct},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.status==lt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.status===pt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.status!==pt},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=ft(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=ht(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=lt,this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status=pt,this.errors=null,this._forEachChild((function(t){t.disable({onlySelf:!0})})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(!!t.onlySelf),this._onDisabledChange.forEach((function(t){return t(!0)}))},t.prototype.enable=function(t){void 0===t&&(t={}),this.status=ut,this._forEachChild((function(t){t.enable({onlySelf:!0})})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(!!t.onlySelf),this._onDisabledChange.forEach((function(t){return t(!1)}))},t.prototype._updateAncestors=function(t){this._parent&&!t&&(this._parent.updateValueAndValidity(),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(),this.status!==ut&&this.status!==lt||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()?pt:ut},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status=lt;var n=g(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(n)),e instanceof Array&&0===e.length?null:e.reduce((function(t,e){return t instanceof gt?t.controls[e]||null:t instanceof vt&&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()?pt:this.errors?ct:this._anyControlsHaveStatus(lt)?lt:this._anyControlsHaveStatus(ct)?ct:ut},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){dt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),mt=function(t){function e(e,n,r){void 0===e&&(e=null);var o=t.call(this,ft(n),ht(r,n))||this;return o._onChange=[],o._applyFormState(e),o._setUpdateStrategy(n),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return Object(r.b)(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)},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.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!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}(yt),gt=function(t){function e(e,n,r){var o=t.call(this,ft(n),ht(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(r.b)(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 mt?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(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var n=e[t];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},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}(yt),vt=function(t){function e(e,n,r){var o=t.call(this,ft(n),ht(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(r.b)(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(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},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 mt?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(){for(var t=0,e=this.controls;t<e.length;t++){if(e[t].enabled)return!1}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(yt),bt={provide:l,useExisting:Object(o.forwardRef)((function(){return wt}))},_t=Promise.resolve(null),wt=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 gt({},Z(e),Y(n)),r}return Object(r.b)(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;_t.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),z(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;_t.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),nt(e._directives,t)}))},e.prototype.addFormGroup=function(t){var e=this;_t.then((function(){var n=e._findContainer(t.path),r=new gt({});W(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})}))},e.prototype.removeFormGroup=function(t){var e=this;_t.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;_t.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,tt(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.decorators=[{type:o.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[bt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]}]},e.propDecorators={options:[{type:o.Input,args:["ngFormOptions"]}]},e}(l),Ot='\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',St='\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',Et='\n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });',Ct='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',Pt='\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  ',Tt=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      '+Ot+"\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      "+Pt)},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      "+St+"\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      "+Ct)},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: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},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      "+St+"\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      "+Ct)},t}(),jt={provide:l,useExisting:Object(o.forwardRef)((function(){return At}))},At=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.b)(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof wt||Tt.modelGroupParentException()},e.decorators=[{type:o.Directive,args:[{selector:"[ngModelGroup]",providers:[jt],exportAs:"ngModelGroup"}]}],e.ctorParameters=function(){return[{type:l,decorators:[{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]}]},e.propDecorators={name:[{type:o.Input,args:["ngModelGroup"]}]},e}(rt),Rt={provide:R,useExisting:Object(o.forwardRef)((function(){return Nt}))},xt=Promise.resolve(null),Nt=function(t){function e(e,n,r,i){var s=t.call(this)||this;return s.control=new mt,s._registered=!1,s.update=new o.EventEmitter,s._parent=e,s._rawValidators=n||[],s._rawAsyncValidators=r||[],s.valueAccessor=et(s,i),s}return Object(r.b)(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?B(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 Z(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Y(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(){z(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 At)&&this._parent instanceof rt?Tt.formGroupNameException():this._parent instanceof At||this._parent instanceof wt||Tt.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Tt.missingNameException()},e.prototype._updateValue=function(t){var e=this;xt.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;xt.then((function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()}))},e.decorators=[{type:o.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Rt],exportAs:"ngModel"}]}],e.ctorParameters=function(){return[{type:l,decorators:[{type:o.Optional},{type:o.Host}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[b]}]}]},e.propDecorators={name:[{type:o.Input}],isDisabled:[{type:o.Input,args:["disabled"]}],model:[{type:o.Input,args:["ngModel"]}],options:[{type:o.Input,args:["ngModelOptions"]}],update:[{type:o.Output,args:["ngModelChange"]}]},e}(R),kt=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      "+Ot)},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        '+St+"\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        "+Ct)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+Ot)},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      "+St)},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        "+Et)},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}(),It={provide:R,useExisting:Object(o.forwardRef)((function(){return Mt}))},Mt=function(t){function e(e,n,r){var i=t.call(this)||this;return i.update=new o.EventEmitter,i._rawValidators=e||[],i._rawAsyncValidators=n||[],i.valueAccessor=et(i,r),i}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){kt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(z(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),X(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Z(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Y(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e.decorators=[{type:o.Directive,args:[{selector:"[formControl]",providers:[It],exportAs:"ngForm"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[b]}]}]},e.propDecorators={form:[{type:o.Input,args:["formControl"]}],model:[{type:o.Input,args:["ngModel"]}],update:[{type:o.Output,args:["ngModelChange"]}],isDisabled:[{type:o.Input,args:["disabled"]}]},e}(R),Vt={provide:l,useExisting:Object(o.forwardRef)((function(){return Dt}))},Dt=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.b)(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 z(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){nt(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);W(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);W(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,tt(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 K(e)})),e.valueAccessor.registerOnTouched((function(){return K(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&&z(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=Z(this._validators);this.form.validator=y.compose([this.form.validator,t]);var e=Y(this._asyncValidators);this.form.asyncValidator=y.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||kt.missingFormException()},e.decorators=[{type:o.Directive,args:[{selector:"[formGroup]",providers:[Vt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]}]},e.propDecorators={form:[{type:o.Input,args:["formGroup"]}],ngSubmit:[{type:o.Output}]},e}(l),Ft={provide:l,useExisting:Object(o.forwardRef)((function(){return Ut}))},Ut=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.b)(e,t),e.prototype._checkParentType=function(){Gt(this._parent)&&kt.groupParentException()},e.decorators=[{type:o.Directive,args:[{selector:"[formGroupName]",providers:[Ft]}]}],e.ctorParameters=function(){return[{type:l,decorators:[{type:o.Optional},{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]}]},e.propDecorators={name:[{type:o.Input,args:["formGroupName"]}]},e}(rt),Lt={provide:l,useExisting:Object(o.forwardRef)((function(){return Ht}))},Ht=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.b)(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 B(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Z(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Y(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){Gt(this._parent)&&kt.arrayParentException()},e.decorators=[{type:o.Directive,args:[{selector:"[formArrayName]",providers:[Lt]}]}],e.ctorParameters=function(){return[{type:l,decorators:[{type:o.Optional},{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]}]},e.propDecorators={name:[{type:o.Input,args:["formArrayName"]}]},e}(l);function Gt(t){return!(t instanceof Ut||t instanceof Dt||t instanceof Ht)}
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */var qt={provide:R,useExisting:Object(o.forwardRef)((function(){return Bt}))},Bt=function(t){function e(e,n,r,i){var s=t.call(this)||this;return s._added=!1,s.update=new o.EventEmitter,s._parent=e,s._rawValidators=n||[],s._rawAsyncValidators=r||[],s.valueAccessor=et(s,i),s}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){kt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),X(t,this.viewModel)&&(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 B(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 Z(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Y(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof Ut)&&this._parent instanceof rt?kt.ngModelGroupException():this._parent instanceof Ut||this._parent instanceof Dt||this._parent instanceof Ht||kt.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.decorators=[{type:o.Directive,args:[{selector:"[formControlName]",providers:[qt]}]}],e.ctorParameters=function(){return[{type:l,decorators:[{type:o.Optional},{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[b]}]}]},e.propDecorators={name:[{type:o.Input,args:["formControlName"]}],model:[{type:o.Input,args:["ngModel"]}],update:[{type:o.Output,args:["ngModelChange"]}],isDisabled:[{type:o.Input,args:["disabled"]}]},e}(R),zt={provide:f,useExisting:Object(o.forwardRef)((function(){return Wt})),multi:!0},Jt={provide:f,useExisting:Object(o.forwardRef)((function(){return Kt})),multi:!0},Wt=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?y.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.decorators=[{type:o.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[zt],host:{"[attr.required]":'required ? "" : null'}}]}],t.ctorParameters=function(){return[]},t.propDecorators={required:[{type:o.Input}]},t}(),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.validate=function(t){return this.required?y.requiredTrue(t):null},e.decorators=[{type:o.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Jt],host:{"[attr.required]":'required ? "" : null'}}]}],e.ctorParameters=function(){return[]},e}(Wt),$t={provide:f,useExisting:Object(o.forwardRef)((function(){return Zt})),multi:!0},Zt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?y.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.decorators=[{type:o.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[$t]}]}],t.ctorParameters=function(){return[]},t.propDecorators={email:[{type:o.Input}]},t}(),Yt={provide:f,useExisting:Object(o.forwardRef)((function(){return Xt})),multi:!0},Xt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=y.minLength(parseInt(this.minlength,10))},t.decorators=[{type:o.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Yt],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={minlength:[{type:o.Input}]},t}(),Qt={provide:f,useExisting:Object(o.forwardRef)((function(){return te})),multi:!0},te=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=y.maxLength(parseInt(this.maxlength,10))},t.decorators=[{type:o.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Qt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={maxlength:[{type:o.Input}]},t}(),ee={provide:f,useExisting:Object(o.forwardRef)((function(){return ne})),multi:!0},ne=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=y.pattern(this.pattern)},t.decorators=[{type:o.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[ee],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={pattern:[{type:o.Input}]},t}(),re=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null!=e?e.validator:null,o=null!=e?e.asyncValidator:null;return new gt(n,r,o)},t.prototype.control=function(t,e,n){return new mt(t,e,n)},t.prototype.array=function(t,e,n){var r=this,o=t.map((function(t){return r._createControl(t)}));return new vt(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){if(t instanceof mt||t instanceof gt||t instanceof vt)return t;if(Array.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[]},t}(),oe=new o.Version("5.0.2"),ie=function(){function t(){}return t.decorators=[{type:o.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],t.ctorParameters=function(){return[]},t}(),se=[ie,U,q,E,j,M,w,F,G,k,st,at,Wt,Xt,te,ne,Kt,Zt],ae=[Nt,At,wt],ue=[Mt,Dt,Bt,Ut,Ht],ce=function(){function t(){}return t.decorators=[{type:o.NgModule,args:[{declarations:se,exports:se}]}],t.ctorParameters=function(){return[]},t}(),le=function(){function t(){}return t.decorators=[{type:o.NgModule,args:[{declarations:ae,providers:[N],exports:[ce,ae]}]}],t.ctorParameters=function(){return[]},t}(),pe=function(){function t(){}return t.decorators=[{type:o.NgModule,args:[{declarations:[ue],providers:[re,N],exports:[ce,ue]}]}],t.ctorParameters=function(){return[]},t}()},function(t,e,n){"use strict";var r=n(50);e.forkJoin=r.ForkJoinObservable.create},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=n(2),i=n(57),s=n(21),a=n(58),u=n(63),c=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return r(e,t),e.create=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];if(null===t||0===arguments.length)return new i.EmptyObservable;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new i.EmptyObservable:new e(t,r)},e.prototype._subscribe=function(t){return new l(t,this.sources,this.resultSelector)},e}(o.Observable);e.ForkJoinObservable=c;var l=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var o=n.length;this.total=o,this.values=new Array(o);for(var i=0;i<o;i++){var s=n[i],u=a.subscribeToResult(this,s,null,i);u&&(u.outerIndex=i,this.add(u))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e,o._hasValue||(o._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this,r=n.haveValues,o=n.resultSelector,i=n.values,s=i.length;if(t._hasValue){if(this.completed++,this.completed===s){if(r===s){var a=o?o.apply(this,i):i;e.next(a)}e.complete()}}else e.complete()},e}(u.OuterSubscriber)},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=n(5),o=n(13),i=n(24);e.toSubscriber=function(t,e,n){if(t){if(t instanceof r.Subscriber)return t;if(t[o.rxSubscriber])return t[o.rxSubscriber]()}return t||e||n?new r.Subscriber(t,e,n):new r.Subscriber(i.empty)}},function(t,e,n){"use strict";var r,o=n(23);function i(){try{return r.apply(this,arguments)}catch(t){return o.errorObject.e=t,o.errorObject}}e.tryCatch=function(t){return r=t,i}},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n  "+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n  "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);e.UnsubscriptionError=o},function(t,e,n){"use strict";var r=n(56);function o(t){return t?1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}:r.noop}e.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return o(t)},e.pipeFromArray=o},function(t,e,n){"use strict";e.noop=function(){}},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(n(2).Observable);e.EmptyObservable=o},function(t,e,n){"use strict";var r=n(3),o=n(59),i=n(60),s=n(22),a=n(2),u=n(61),c=n(62),l=n(25);e.subscribeToResult=function(t,e,n,p){var f=new c.InnerSubscriber(t,n,p);if(f.closed)return null;if(e instanceof a.Observable)return e._isScalar?(f.next(e.value),f.complete(),null):(f.syncErrorThrowable=!0,e.subscribe(f));if(o.isArrayLike(e)){for(var h=0,d=e.length;h<d&&!f.closed;h++)f.next(e[h]);f.closed||f.complete()}else{if(i.isPromise(e))return e.then((function(t){f.closed||(f.next(t),f.complete())}),(function(t){return f.error(t)})).then(null,(function(t){r.root.setTimeout((function(){throw t}))})),f;if(e&&"function"==typeof e[u.iterator])for(var y=e[u.iterator]();;){var m=y.next();if(m.done){f.complete();break}if(f.next(m.value),f.closed)break}else if(e&&"function"==typeof e[l.observable]){var g=e[l.observable]();if("function"==typeof g.subscribe)return g.subscribe(new c.InnerSubscriber(t,n,p));f.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var v="You provided "+(s.isObject(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";f.error(new TypeError(v))}}return null}},function(t,e,n){"use strict";e.isArrayLike=function(t){return t&&"number"==typeof t.length}},function(t,e,n){"use strict";e.isPromise=function(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},function(t,e,n){"use strict";var r=n(3);function o(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i<o.length;++i){var s=o[i];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}e.symbolIteratorPonyfill=o,e.iterator=o(r.root),e.$$iterator=e.iterator},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(5).Subscriber);e.InnerSubscriber=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(5).Subscriber);e.OuterSubscriber=o},function(t,e,n){"use strict";var r=n(65);e.fromPromise=r.PromiseObservable.create},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=n(3),i=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,r=this.scheduler;if(null==r)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then((function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())}),(function(e){t.closed||t.error(e)})).then(null,(function(t){o.root.setTimeout((function(){throw t}))}));else if(this._isScalar){if(!t.closed)return r.schedule(s,0,{value:this.value,subscriber:t})}else n.then((function(n){e.value=n,e._isScalar=!0,t.closed||t.add(r.schedule(s,0,{value:n,subscriber:t}))}),(function(e){t.closed||t.add(r.schedule(a,0,{err:e,subscriber:t}))})).then(null,(function(t){o.root.setTimeout((function(){throw t}))}))},e}(n(2).Observable);function s(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function a(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}e.PromiseObservable=i},function(t,e,n){"use strict";var r=n(67);e.map=function(t,e){return r.map(t,e)(this)}},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=n(5);e.map=function(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new i(t,e))}};var i=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}();e.MapOperator=i;var s=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return r(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.Subscriber)},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=n(69),i=n(70),s=n(7),a=n(77),u=n(28),c=n(29),l=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),t.call(this),this.scheduler=r,this._events=[],this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n}return r(e,t),e.prototype.next=function(e){var n=this._getNow();this._events.push(new p(n,e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._trimBufferThenGetEvents(),r=this.scheduler;if(this.closed)throw new u.ObjectUnsubscribedError;this.hasError||this.isStopped?e=s.Subscription.EMPTY:(this.observers.push(t),e=new c.SubjectSubscription(this,t)),r&&t.add(t=new a.ObserveOnSubscriber(t,r));for(var o=n.length,i=0;i<o&&!t.closed;i++)t.next(n[i].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||i.queue).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,o=r.length,i=0;i<o&&!(t-r[i].time<n);)i++;return o>e&&(i=Math.max(i,o-e)),i>0&&r.splice(0,i),r},e}(o.Subject);e.ReplaySubject=l;var p=function(t,e){this.time=t,this.value=e}},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=n(2),i=n(5),s=n(7),a=n(28),u=n(29),c=n(13),l=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(i.Subscriber);e.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new f(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new o.Observable;return t.source=this,t},e.create=function(t,e){return new f(t,e)},e}(o.Observable);e.Subject=p;var f=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(p);e.AnonymousSubject=f},function(t,e,n){"use strict";var r=n(71),o=n(74);e.queue=new o.QueueScheduler(r.QueueAction)},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return r(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n(72).AsyncAction);e.QueueAction=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=n(3),i=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n,this.pending=!1}return r(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),o.root.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;o.root.clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(n(73).Action);e.AsyncAction=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(e,n){t.call(this)}return r(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(7).Subscription);e.Action=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e}(n(75).AsyncScheduler);e.QueueScheduler=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return r(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(n(76).Scheduler);e.AsyncScheduler=o},function(t,e,n){"use strict";var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();e.Scheduler=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=n(5),i=n(78);e.observeOn=function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new s(t,e))}};var s=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))},t}();e.ObserveOnOperator=s;var a=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return r(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new u(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(i.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(i.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(i.Notification.createComplete())},e}(o.Subscriber);e.ObserveOnSubscriber=a;var u=function(t,e){this.notification=t,this.destination=e};e.ObserveOnMessage=u},function(t,e,n){"use strict";var r=n(2),o=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return r.Observable.of(this.value);case"E":return r.Observable.throw(this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();e.Notification=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){}return t.isSecuredField=function(e){return!!~t.securedFields.indexOf(e)},t.getStorage=function(e){return this.mockStorages[e]||(this.mockStorages[e]=t.generateStorage()),this.mockStorages[e]},t.generateStorage=function(){var e={};return Object.defineProperties(e,{setItem:{writable:!1,enumerable:!1,configurable:!1,value:function(e,n){t.isSecuredField(e)||(this[e]=n)}},getItem:{writable:!1,enumerable:!1,configurable:!1,value:function(e){return t.isSecuredField(e)?null:this[e]||null}},removeItem:{writable:!1,enumerable:!1,configurable:!1,value:function(e){t.isSecuredField(e)||delete this[e]}},length:{enumerable:!1,configurable:!1,get:function(){return Object.keys(this).length}}}),e},t.securedFields=["setItem","getItem","removeItem","length"],t.mockStorages={},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r,o=n(0),i=(n.n(o),n(4)),s=n(15),a=this&&this.__extends||(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(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(){return t.call(this,i.a.local)||this}return a(e,t),e.decorators=[{type:o.Injectable}],e.ctorParameters=function(){return[]},e}(s.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r,o=n(0),i=(n.n(o),n(4)),s=n(15),a=this&&this.__extends||(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(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(){return t.call(this,i.a.session)||this}return a(e,t),e.decorators=[{type:o.Injectable}],e.ctorParameters=function(){return[]},e}(s.a)},function(t,e,n){"use strict";var r=n(35);n.d(e,"a",(function(){return r.a}))},function(t,e,n){"use strict";var r=n(84);n.d(e,"a",(function(){return r.a}));var o=n(85);n.d(e,"b",(function(){return o.a}));var i=n(18);n.d(e,"c",(function(){return i.a})),n.d(e,"d",(function(){return i.b}))},function(t,e,n){"use strict";e.a=function(t,e){return function(n,i){Object(r.b)(t,o.a.local,n,i,e)}};var r=n(18),o=n(4)},function(t,e,n){"use strict";e.a=function(t,e){return function(n,i){Object(r.b)(t,o.a.session,n,i,e)}};var r=n(18),o=n(4)},function(t,e,n){"use strict";
/**
 * angular2-cookie - Implementation of Angular 1.x $cookies service to Angular 2
 * @version v1.2.6
 * @link https://github.com/salemdar/angular2-cookie#readme
 * @license MIT
 */var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=this&&this.__param||function(t,e){return function(n,r){e(n,r,t)}},s=n(0),a=n(38),u=function(){function t(t){this._defaultOptions=t}return Object.defineProperty(t.prototype,"cookieString",{get:function(){return document.cookie||""},set:function(t){document.cookie=t},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return this._cookieReader()[t]},t.prototype.getObject=function(t){var e=this.get(t);return e?JSON.parse(e):e},t.prototype.getAll=function(){return this._cookieReader()},t.prototype.put=function(t,e,n){this._cookieWriter()(t,e,n)},t.prototype.putObject=function(t,e,n){this.put(t,JSON.stringify(e),n)},t.prototype.remove=function(t,e){this._cookieWriter()(t,void 0,e)},t.prototype.removeAll=function(){var t=this,e=this.getAll();Object.keys(e).forEach((function(e){t.remove(e)}))},t.prototype._cookieReader=function(){var t,e,n,r,o,i={},s="",a=this.cookieString;if(a!==s)for(t=(s=a).split("; "),i={},n=0;n<t.length;n++)(r=(e=t[n]).indexOf("="))>0&&(o=this._safeDecodeURIComponent(e.substring(0,r)),this.isBlank(i[o])&&(i[o]=this._safeDecodeURIComponent(e.substring(r+1))));return i},t.prototype._cookieWriter=function(){var t=this;return function(e,n,r){t.cookieString=t._buildCookieString(e,n,r)}},t.prototype._safeDecodeURIComponent=function(t){try{return decodeURIComponent(t)}catch(e){return t}},t.prototype._buildCookieString=function(t,e,n){var r,o=this._defaultOptions||new a.CookieOptions({path:"/"}),i=this._mergeOptions(o,n);r=i.expires,this.isBlank(e)&&(r="Thu, 01 Jan 1970 00:00:00 GMT",e=""),this.isString(r)&&(r=new Date(r));var s=encodeURIComponent(t)+"="+encodeURIComponent(e);s+=i.path?";path="+i.path:"",s+=i.domain?";domain="+i.domain:"",s+=r?";expires="+r.toUTCString():"";var u=(s+=i.secure?";secure":"").length+1;return u>4096&&console.log("Cookie '"+t+"' possibly not set or overflowed because it was too \n      large ("+u+" > 4096 bytes)!"),s},t.prototype._mergeOptions=function(t,e){var n=t;return this.isPresent(e)?n.merge(new a.CookieOptions(e)):n},t.prototype.isBlank=function(t){return null==t},t.prototype.isPresent=function(t){return null!=t},t.prototype.isString=function(t){return"string"==typeof t},t=r([s.Injectable(),i(0,s.Optional()),o("design:paramtypes",[a.CookieOptions])],t)}();e.CookieService=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(27))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(42))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(39))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(40))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(41))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(44))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(43))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(30))},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(19)),r(n(45)),r(n(9)),r(n(14)),r(n(1)),r(n(10))}])}));
//# sourceMappingURL=/sm/4d2e42ba31363273e7585b9dad635ea266a4168905f8ba799babef863d271392.map