From b6e99beb3e30eb353e59f4bef531f9dcd53e6bd6 Mon Sep 17 00:00:00 2001 From: InBrewJ Date: Wed, 13 Mar 2024 17:17:24 +0000 Subject: [PATCH] Adds a build of the tablet_ui with a reboot button and an associated REST-ish endpoint in Server.py --- flask/Server.py | 16 ++++++++++++++++ flask/static/index.html | 2 +- flask/static/main.9fba95fc9e4a04143879.js | 1 + flask/static/main.bb9f6d348b5fea0437e7.js | 1 - 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 flask/static/main.9fba95fc9e4a04143879.js delete mode 100644 flask/static/main.bb9f6d348b5fea0437e7.js diff --git a/flask/Server.py b/flask/Server.py index 65fac2e..c707955 100755 --- a/flask/Server.py +++ b/flask/Server.py @@ -505,6 +505,18 @@ def get(self): return jsonify({'response': 500, 'description': 'not ok!'}) +class Reboot(Resource): + def get(self): + logging.warning( + "Reboot has been called! There will be no response from this call!" + ) + try: + os.system("echo b > /sysrq") + except Exception as e: + return jsonify( + {"response": 500, "error": "Something went wrong with reboot"} + ) + # URLs / routes defined here api.add_resource(GetTrackList, '/get-track-list') @@ -527,6 +539,10 @@ def get(self): api.add_resource(ScentRoomTrigger, '/scentroom-trigger') # POST api.add_resource(ScentRoomIdle, '/scentroom-idle') # GET +# Admin endpoint + +api.add_resource(Reboot, '/reboot') # GET + def appFactory(): """ diff --git a/flask/static/index.html b/flask/static/index.html index eab5125..bd783ca 100644 --- a/flask/static/index.html +++ b/flask/static/index.html @@ -11,5 +11,5 @@ - + diff --git a/flask/static/main.9fba95fc9e4a04143879.js b/flask/static/main.9fba95fc9e4a04143879.js new file mode 100644 index 0000000..0b956be --- /dev/null +++ b/flask/static/main.9fba95fc9e4a04143879.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{2:function(t,e,n){t.exports=n("zUnb")},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error('Cannot find module "'+t+'".');throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},zUnb:function(t,e,n){"use strict";n.r(e);var r=function(t,e){return(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])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=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}function a(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function p(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}($);function st(t){return t}function at(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),rt(st,t)}function ut(){return function(t){return t.lift(new lt(t))}}var lt=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new ct(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),ct=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(T),pt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new _).add(this.source.subscribe(new ft(this.getSubject(),this))),t.closed?(this._connection=null,t=_.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return ut()(this)},e}(R).prototype,ht={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:pt._subscribe},_isComplete:{value:pt._isComplete,writable:!0},getSubject:{value:pt.getSubject},connect:{value:pt.connect},refCount:{value:pt.refCount}},ft=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(F);function dt(){return new L}function mt(){return function(t){return ut()((e=dt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,ht);return r.source=t,r.subjectFactory=n,r})(t));var e}}function yt(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}var gt=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?yt({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),vt="__parameters__",bt="__prop__metadata__";function _t(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var s=e[i];o.push(i+":"+("string"==typeof s?JSON.stringify(s):Mt(s)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(ne,"\n ")}function ae(t,e){return new Error(se(t,e))}var ue=void 0;function le(t){var e=ue;return ue=t,e}function ce(t,e){if(void 0===e&&(e=0),void 0===ue)throw new Error("inject() must be called from an injection context");if(null===ue){var n=t.ngInjectableDef;if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&e)return null;throw new Error("Injector: NOT_FOUND ["+Mt(t)+"]")}return ue.get(t,8&e?null:void 0,e)}function pe(t){for(var e=[],n=0;n0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),bn=function(){function t(){this._applications=new Map,_n.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),_n.findTestabilityInTree(this,t,e)},s([u("design:paramtypes",[])],t)}(),_n=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),wn=!0,Sn=!1,Cn=new gt("AllowMultipleToken");function En(){return Sn=!0,wn}var kn=function(t,e){this.name=t,this.token=e};function xn(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new gt(r);return function(e){void 0===e&&(e=[]);var i=Tn();if(!i||i.injector.get(Cn,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var s=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(yn&&!yn.destroyed&&!yn.injector.get(Cn,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");yn=t.get(In);var e=t.get(Ue,null);e&&e.forEach(function(t){return t()})}(Gt.create({providers:s,name:r}))}return function(t){var e=Tn();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function Tn(){return yn&&!yn.destroyed?yn:null}var In=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new gn:("zone.js"===n?void 0:n)||new cn({enableLongStackTrace:En()}),i=[{provide:cn,useValue:o}];return o.run(function(){var e=Gt.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),s=n.injector.get(_e,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Nn(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){s.handleError(t)}})}),function(t,e,o){try{var i=((s=n.injector.get(Me)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return Oe(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}var s}(s,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(Qe),o=Pn({},e);return r.createCompiler([o]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,o)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(An);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Mt(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Pn(t,e){return Array.isArray(e)?e.reduce(Pn,t):i({},t,e)}var An=function(){function t(t,e,n,r,o,i){var s=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=En(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new R(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),u=new R(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){cn.assertNotInAngularZone(),Rt(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){cn.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof R?t[0]:at(n)(et(t,r))}(a,u.pipe(mt()))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof We?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof en?null:this._injector.get(nn),i=n.create(Gt.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var s=i.injector.get(vn,null);return s&&i.injector.get(bn).registerApplication(i.location.nativeElement,s),this._loadComponent(i),En()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,un(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Nn(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(He,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Nn(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=an("ApplicationRef#tick()"),t}();function Nn(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var On=function(){},Rn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),Dn=function(){},Mn=function(t){this.nativeElement=t},jn=function(){},Fn=function(){function t(){this.dirty=!0,this._results=[],this.changes=new ln,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[Ot()]=function(){return this._results[Ot()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),Ln=function(){},Un={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Vn=function(){function t(t,e){this._compiler=t,this._config=e||Un}return t.prototype.load=function(t){return this._compiler instanceof qe?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=c(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("crnd")(o).then(function(t){return t[i]}).then(function(t){return Hn(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=c(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return Hn(t,r,o)})},s([a(1,Ut())],t)}();function Hn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var zn=function(){},Bn=function(){},qn=function(){},Qn=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Kn?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Kn=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,p([o+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof Kn&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof Kn&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof Kn&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Qn),Wn=new Map;function Gn(t){return Wn.get(t)||null}function Zn(t){Wn.set(t.nativeNode,t)}function Xn(t,e){var n=Yn(t),r=Yn(e);return n&&r?function(t,e,n){for(var r=t[Ot()](),o=e[Ot()]();;){var i=r.next(),s=o.next();if(i.done&&s.done)return!0;if(i.done||s.done)return!1;if(!n(i.value,s.value))return!1}}(t,e,Xn):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||Dt(t,e)}var $n=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),Jn=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function Yn(t){return!!tr(t)&&(Array.isArray(t)||!(t instanceof Map)&&Ot()in t)}function tr(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var er=function(){function t(){}return t.prototype.supports=function(t){return Yn(t)},t.prototype.create=function(t){return new rr(t)},t}(),nr=function(t,e){return e},rr=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||nr}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Rr.hasOwnProperty(e)&&!Pr.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(Vr(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),Lr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ur=/([^\#-~ |!])/g;function Vr(t){return t.replace(/&/g,"&").replace(Lr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ur,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function Hr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var zr=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"),Br=/^url\(([^)]+)\)$/,qr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),Qr=function(){};function Kr(t,e,n){var r=t.state,o=1792&r;return o===e?(t.state=-1793&r|n,t.initIndex=-1,!0):o===n}function Wr(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Gr(t,e){return t.nodes[e]}function Zr(t,e){return t.nodes[e]}function Xr(t,e){return t.nodes[e]}function $r(t,e){return t.nodes[e]}function Jr(t,e){return t.nodes[e]}var Yr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function to(t,e,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){var n=new Error(t);return eo(n,e),n}(o,t)}function eo(t,e){t[de]=e,t[ye]=e.logError.bind(e)}function no(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var ro=function(){},oo=new Map;function io(t){var e=oo.get(t);return e||(e=Mt(t)+"_"+oo.size,oo.set(t,e)),e}function so(t,e,n,r){if($n.isWrapped(r)){r=$n.unwrap(r);var o=t.def.nodes[e].bindingIndex+n,i=$n.unwrap(t.oldValues[o]);t.oldValues[o]=new $n(i)}return r}var ao="$$undefined",uo="$$empty";function lo(t){return{id:ao,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var co=0;function po(t,e,n,r){return!(!(2&t.state)&&Dt(t.oldValues[e.bindingIndex+n],r))}function ho(t,e,n,r){return!!po(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function fo(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!Xn(o,r)){var i=e.bindings[n].name;throw to(Yr.createDebugContext(t,e.nodeIndex),i+": "+o,i+": "+r,0!=(1&t.state))}}function mo(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function yo(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function go(t,e,n,r){try{return mo(33554432&t.def.nodes[e].flags?Zr(t,e).componentView:t),Yr.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function vo(t){return t.parent?Zr(t.parent,t.parentNodeDef.nodeIndex):null}function bo(t){return t.parent?t.parentNodeDef.parent:null}function _o(t,e){switch(201347067&e.flags){case 1:return Zr(t,e.nodeIndex).renderElement;case 2:return Gr(t,e.nodeIndex).renderText}}function wo(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function So(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function Co(t){return 1<-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var l=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:l,token:e.token},t._providers[l]=Bo,t._providers[l]=Zo(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{le(i)}}function Zo(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Go(t,n[0]));case 2:return new e(Go(t,n[0]),Go(t,n[1]));case 3:return new e(Go(t,n[0]),Go(t,n[1]),Go(t,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,ti(n,e),Yr.dirtyParentQueries(r),Jo(r),r}function $o(t,e,n){var r=e?_o(e,e.def.lastRenderRootNode):t.renderElement;Po(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Jo(t){Po(t,3,null,null,void 0)}function Yo(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ti(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var ei=new Object;function ni(t,e,n,r,o,i){return new ri(t,e,n,r,o,i)}var ri=function(t){function e(e,n,r,o,i,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=r,a}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=Io(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,s=Yr.createRootView(t,e||[],n,o,r,ei),a=Xr(s,i).instance;return n&&s.renderer.setAttribute(Zr(s,0).renderElement,"ng-version",fe.full),new oi(s,new ui(s),a)},e}(We),oi=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Mn(Zr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new hi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Ke);function ii(t,e,n){return new si(t,e,n)}var si=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new Mn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new hi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=bo(t),t=t.parent;return t?new hi(t,e):new hi(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Xo(this._data,t);Yr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new ui(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof en||(o=i.get(nn));var s=t.create(i,r,void 0,o);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,s=t;return o=s._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,Yo(i,r,o),function(t,e){var n=vo(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),Yr.dirtyParentQueries(o),$o(n,r>0?i[r-1]:null,o),s.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,s,a=this._embeddedViews.indexOf(t._view);return o=e,s=(i=(n=this._data).viewContainer._embeddedViews)[r=a],ti(i,r),null==o&&(o=i.length),Yo(i,o,s),Yr.dirtyParentQueries(s),Jo(s),$o(n,o>0?i[o-1]:null,s),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Xo(this._data,t);e&&Yr.destroyView(e)},t.prototype.detach=function(t){var e=Xo(this._data,t);return e?new ui(e):null},t}();function ai(t){return new ui(t)}var ui=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return Po(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){mo(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Yr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Yr.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Yr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Jo(this._view),Yr.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function li(t,e){return new ci(t,e)}var ci=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new ui(Yr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Mn(Zr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(zn);function pi(t,e){return new hi(t,e)}var hi=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Gt.THROW_IF_NOT_FOUND),Yr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:io(t)},e)},t}();function fi(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Zr(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Gr(t,n.nodeIndex).renderText;if(20240&n.flags)return Xr(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function di(t){return new mi(t.renderer)}var mi=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=c(Mo(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return Di(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(ji(t,e,n,o[0]));case 2:return r(ji(t,e,n,o[0]),ji(t,e,n,o[1]));case 3:return r(ji(t,e,n,o[0]),ji(t,e,n,o[1]),ji(t,e,n,o[2]));default:for(var s=Array(i),a=0;a0)l=m,ns(m)||(c=m);else for(;l&&d===l.nodeIndex+l.childCount;){var v=l.parent;v&&(v.childFlags|=l.childFlags,v.childMatchedQueries|=l.childMatchedQueries),c=(l=v)&&ns(l)?l.renderParent:l}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||ro,updateRenderer:r||ro,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:f}}function ns(t){return 0!=(1&t.flags)&&null===t.element.name}function rs(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function os(t,e,n,r){var o=as(t.root,t.renderer,t,e,n);return us(o,t.component,r),ls(o),o}function is(t,e,n){var r=as(t,t.renderer,null,null,e);return us(r,n,n),ls(r),r}function ss(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,as(t.root,o,t,e.element.componentProvider,n)}function as(t,e,n,r,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:s,initIndex:-1}}function us(t,e,n){t.component=e,t.context=n}function ls(t){var e;wo(t)&&(e=Zr(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&zo(t,e,0,n)&&(f=!0),h>1&&zo(t,e,1,r)&&(f=!0),h>2&&zo(t,e,2,o)&&(f=!0),h>3&&zo(t,e,3,i)&&(f=!0),h>4&&zo(t,e,4,s)&&(f=!0),h>5&&zo(t,e,5,a)&&(f=!0),h>6&&zo(t,e,6,u)&&(f=!0),h>7&&zo(t,e,7,l)&&(f=!0),h>8&&zo(t,e,8,c)&&(f=!0),h>9&&zo(t,e,9,p)&&(f=!0),f}(t,e,n,r,o,i,s,a,u,l,c,p);case 2:return function(t,e,n,r,o,i,s,a,u,l,c,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&ho(t,e,0,n)&&(h=!0),d>1&&ho(t,e,1,r)&&(h=!0),d>2&&ho(t,e,2,o)&&(h=!0),d>3&&ho(t,e,3,i)&&(h=!0),d>4&&ho(t,e,4,s)&&(h=!0),d>5&&ho(t,e,5,a)&&(h=!0),d>6&&ho(t,e,6,u)&&(h=!0),d>7&&ho(t,e,7,l)&&(h=!0),d>8&&ho(t,e,8,c)&&(h=!0),d>9&&ho(t,e,9,p)&&(h=!0),h){var m=e.text.prefix;d>0&&(m+=ts(n,f[0])),d>1&&(m+=ts(r,f[1])),d>2&&(m+=ts(o,f[2])),d>3&&(m+=ts(i,f[3])),d>4&&(m+=ts(s,f[4])),d>5&&(m+=ts(a,f[5])),d>6&&(m+=ts(u,f[6])),d>7&&(m+=ts(l,f[7])),d>8&&(m+=ts(c,f[8])),d>9&&(m+=ts(p,f[9]));var y=Gr(t,e.nodeIndex).renderText;t.renderer.setValue(y,m)}return h}(t,e,n,r,o,i,s,a,u,l,c,p);case 16384:return function(t,e,n,r,o,i,s,a,u,l,c,p){var h=Xr(t,e.nodeIndex),f=h.instance,d=!1,m=void 0,y=e.bindings.length;return y>0&&po(t,e,0,n)&&(d=!0,m=Li(t,h,e,0,n,m)),y>1&&po(t,e,1,r)&&(d=!0,m=Li(t,h,e,1,r,m)),y>2&&po(t,e,2,o)&&(d=!0,m=Li(t,h,e,2,o,m)),y>3&&po(t,e,3,i)&&(d=!0,m=Li(t,h,e,3,i,m)),y>4&&po(t,e,4,s)&&(d=!0,m=Li(t,h,e,4,s,m)),y>5&&po(t,e,5,a)&&(d=!0,m=Li(t,h,e,5,a,m)),y>6&&po(t,e,6,u)&&(d=!0,m=Li(t,h,e,6,u,m)),y>7&&po(t,e,7,l)&&(d=!0,m=Li(t,h,e,7,l,m)),y>8&&po(t,e,8,c)&&(d=!0,m=Li(t,h,e,8,c,m)),y>9&&po(t,e,9,p)&&(d=!0,m=Li(t,h,e,9,p,m)),m&&f.ngOnChanges(m),65536&e.flags&&Wr(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,o,i,s,a,u,l,c,p);case 32:case 64:case 128:return function(t,e,n,r,o,i,s,a,u,l,c,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&ho(t,e,0,n)&&(f=!0),d>1&&ho(t,e,1,r)&&(f=!0),d>2&&ho(t,e,2,o)&&(f=!0),d>3&&ho(t,e,3,i)&&(f=!0),d>4&&ho(t,e,4,s)&&(f=!0),d>5&&ho(t,e,5,a)&&(f=!0),d>6&&ho(t,e,6,u)&&(f=!0),d>7&&ho(t,e,7,l)&&(f=!0),d>8&&ho(t,e,8,c)&&(f=!0),d>9&&ho(t,e,9,p)&&(f=!0),f){var m=$r(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.length),d>0&&(y[0]=n),d>1&&(y[1]=r),d>2&&(y[2]=o),d>3&&(y[3]=i),d>4&&(y[4]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=l),d>8&&(y[8]=c),d>9&&(y[9]=p);break;case 64:y={},d>0&&(y[h[0].name]=n),d>1&&(y[h[1].name]=r),d>2&&(y[h[2].name]=o),d>3&&(y[h[3].name]=i),d>4&&(y[h[4].name]=s),d>5&&(y[h[5].name]=a),d>6&&(y[h[6].name]=u),d>7&&(y[h[7].name]=l),d>8&&(y[h[8].name]=c),d>9&&(y[h[9].name]=p);break;case 128:var g=n;switch(d){case 1:y=g.transform(n);break;case 2:y=g.transform(r);break;case 3:y=g.transform(r,o);break;case 4:y=g.transform(r,o,i);break;case 5:y=g.transform(r,o,i,s);break;case 6:y=g.transform(r,o,i,s,a);break;case 7:y=g.transform(r,o,i,s,a,u);break;case 8:y=g.transform(r,o,i,s,a,u,l);break;case 9:y=g.transform(r,o,i,s,a,u,l,c);break;case 10:y=g.transform(r,o,i,s,a,u,l,c,p)}}m.value=y}return f}(t,e,n,r,o,i,s,a,u,l,c,p);default:throw"unreachable"}}(t,e,r,o,i,s,a,u,l,c,h,f):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&fo(t,e,0,n),h>1&&fo(t,e,1,r),h>2&&fo(t,e,2,o),h>3&&fo(t,e,3,i),h>4&&fo(t,e,4,s),h>5&&fo(t,e,5,a),h>6&&fo(t,e,6,u),h>7&&fo(t,e,7,l),h>8&&fo(t,e,8,c),h>9&&fo(t,e,9,p)}(t,e,r,o,i,s,a,u,l,c,p,h):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);Ns.forEach(function(e,r){if(i.has(r.ngInjectableDef.providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:ko(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[io(r)]=o}})}}(t=t.factory(function(){return ro})),t):t}(r))}var As=new Map,Ns=new Map,Os=new Map;function Rs(t){As.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&Ns.set(t.token,t)}function Ds(t,e){var n=Io(Io(e.viewDefFactory).nodes[0].element.componentView);Os.set(t,n)}function Ms(){As.clear(),Ns.clear(),Os.clear()}function js(t){if(0===As.size)return t;var e=function(t){for(var e=[],n=null,r=0;r"}(e))}function La(t){return Array.isArray(t)?t[0]:t}function Ua(t){if(2===t.tNode.type){var e=t.data;return e[ma]?e[ma][va]:null}return t.tNode.next?t.view[t.tNode.next.index]:null}function Va(t){return t.tNode.child?La((2===t.tNode.type?t.data:t.view)[t.tNode.child.index]):null}function Ha(t){if(-1===t.tNode.index&&2===t.tNode.type){var e=t.data[ka];return-1===e?null:t.view[e].dynamicLContainerNode}var n=t.tNode.parent;return La(n?t.view[n.index]:t.view[va])}var za=[];function Ba(t){for(var e=t[va];2===e.tNode.type;)ngDevMode&&ca(t[da],"lViewData.parent"),e=(t=t[da])[va];return ngDevMode&&Fa(e,3),ngDevMode&&ca(e.data,"node.data"),e}function qa(t,e,n,r,o){0===t?Ma(e)?e.insertBefore(n,r,o):n.insertBefore(r,o,!0):1===t?Ma(e)?e.removeChild(n,r):n.removeChild(r):2===t&&(ngDevMode&&ngDevMode.rendererDestroyNode++,e.destroyNode(r))}function Qa(t){if(-1===t[fa].childIndex)return null;var e=t[t[fa].childIndex];return e.data?e.data:e.dynamicLContainerNode.data}function Ka(t,e){var n;return(n=t[va])&&2===n.tNode.type?Ha(n).data:t[da]===e?null:t[da]}function Wa(t){if(t[fa]){var e=t;!function(t){var e=t[fa].cleanup;if(null!=e){for(var n=0;n=h.length){var f=h[p]=Su(e,p,r,o,a,null);if(!$a&&Xa){var d=Xa.tNode;d.next=f,d.dynamicContainerNode&&(d.dynamicContainerNode.next=f)}}c.tNode=h[p],$a&&(Ya=null,(null==Xa.tNode.child&&Xa.view===eu||2===Xa.tNode.type)&&(Xa.tNode.child=c.tNode))}if(2==(2&e)&&l){var m=i;ngDevMode&&null!=m[va]&&pa("lViewData[HOST_NODE] should not have been initialized"),m[va]=c,uu&&(m[fa].node=c.tNode)}return Xa=c,$a=!0,c}function mu(t,e,n,r){var o,i=$a,s=Xa;if(null==t.data[da]&&t.data[Sa]&&!e.template)ku(t.data[Sa]);else try{$a=!0,Xa=null,o=lu(t.data,t),bu(),e.template(r,n),2&r?pu():t.data[fa].firstTemplatePass=uu=!1}finally{cu(o,1==(1&r)),$a=i,Xa=s}return t}function yu(t,e,n,r){var o=lu(e,t);try{Za.begin&&Za.begin(),r?(bu(),r(gu(e),n),pu()):(au||(Pa(eu,Ja,tu),Aa(nu,Ja.contentHooks,Ja.contentCheckHooks,tu)),hu(iu),Cu(0,ha))}finally{Za.end&&Za.end(),cu(o)}}function gu(t){return 1&t[ga]?3:2}var vu=null;function bu(){vu=null}function _u(t,e,n,r,o){return ngDevMode&&ngDevMode.tView++,{id:t,template:e,viewQuery:o,node:null,data:su.slice(),childIndex:-1,bindingStartIndex:-1,directives:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,hostBindings:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof n?n():n,pipeRegistry:"function"==typeof r?r():r,currentMatches:null}}function wu(t,e){ngDevMode&&Pu(-1),Za=t;var n,r=t.createRenderer(null,null),o="string"==typeof e?Ma(r)?r.selectRootElement(e):r.querySelector(e):e;if(ngDevMode&&!o)throw new Error("Renderer: "+("string"==typeof e?"Host node with selector not found:":"Host node is required:")+" ["+("function"==typeof(n=e)?n.name||n:"string"==typeof n?n:null==n?"":""+n)+"]");return o}function Su(t,e,n,r,o,i){return ngDevMode&&ngDevMode.tNode++,{type:t,index:e,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:i,next:null,child:null,parent:o,dynamicContainerNode:null,detached:null,stylingTemplate:null,projection:null}}function Cu(t,e){ngDevMode&&Pu(e);var n=eu[e];ngDevMode&&Fa(n,3),ngDevMode&&ca(n.data,"Component's host node should have an LViewData attached.");var r=n.data;Eu(r)&&6&r[ga]&&(ngDevMode&&Pu(t,nu),Iu(r,n,nu[t]))}function Eu(t){return 8==(8&t[ga])}function ku(t){for(var e=0;e=(e?e.length:0)&&pa("index expected to be a valid data index")}(t,e||eu)}function Au(t,e){null==e&&(e=eu),la(e.length,t,"index "+t+" expected to be at the end of arr (length "+e.length+")")}function Nu(t){ngDevMode&&ca(t,"expecting component got null");var e=t[ru];return ngDevMode&&ca(t,"object is not a component"),e}var Ou=ou;function Ru(t){return{components:[],scheduler:t,clean:Ou}}var Du=function(){function t(t,e){this._view=t,this._appRef=null,this._viewContainerRef=null,this._lViewNode=null,this.context=e}return t.prototype._setComponentContext=function(t,e){this._view=t,this.context=e},Object.defineProperty(t.prototype,"destroyed",{get:function(){return 32==(32&this._view[ga])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t,e;this._viewContainerRef&&Eu(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),Ma(e=(t=this._view)[Ea])&&e.destroyNode&&function(e,n,r,o,i,s){for(var a=t[va],u=-1;a;){var l=null,c=a.tNode.type;if(3===c)qa(2,o,null,a.native,s),a.dynamicLContainerNode&&qa(2,o,null,a.dynamicLContainerNode.native,s);else if(0===c){qa(2,o,null,a.native,s);var p=a,h=p.dynamicLContainerNode?p.dynamicLContainerNode.data:p.data;(l=h[Ra].length?Va(h[Ra][0]):null)&&(s=p.dynamicLContainerNode?p.dynamicLContainerNode.native:p.native)}else if(1===c){var f=Ba(a.view),d=f.tNode.projection[a.tNode.projection];za[++u]=a,l=d?f.data[da][d.index]:null}else l=Va(a);if(null===l)for(null===(l=Ua(a))&&8192&a.tNode.flags&&(l=Ua(za[u--]));a&&!l;){if(null===(a=Ha(a))||a===n)return null;a.tNode.next||0!==c||(s=a.native),l=Ua(a)}a=l}}(0,t[va],0,e),function(t){if(-1===t[fa].childIndex)return Wa(t);for(var e=Qa(t);e;){var n=null;if(e.length>=ha?e[fa].childIndex>-1&&(n=Qa(e)):e[Ra].length&&(n=e[Ra][0].data),null==n){for(;e&&!e[ma]&&e!==t;)Wa(e),e=Ka(e,t);Wa(e||t),n=e&&e[ma]}e=n}}(t),t[ga]|=32},t.prototype.onDestroy=function(t){var e,n;n=t,function(t){return t[wa]||(t[wa]=[])}(e=this._view).push(n),e[fa].firstTemplatePass&&function(t){return t[fa].cleanup||(t[fa].cleanup=[])}(e).push(e[wa].length-1,null)},t.prototype.markForCheck=function(){!function(t){for(var e=t;null!=e[da];)e[ga]|=4,e=e[da];var n,r;e[ga]|=4,ngDevMode&&ca(e[Sa],"rootContext"),(n=e[Sa]).clean==ou&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){ku(n),r(null),n.clean=ou}))}(this._view)},t.prototype.detach=function(){this._view[ga]&=-9},t.prototype.reattach=function(){this._view[ga]|=8},t.prototype.detectChanges=function(){Tu(this.context)},t.prototype.checkNoChanges=function(){!function(t){au=!0;try{Tu(t)}finally{au=!1}}(this.context)},t.prototype.attachToViewContainerRef=function(t){this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){this._appRef=null},t.prototype.attachToAppRef=function(t){this._appRef=t},t}(),Mu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.resolveComponentFactory=function(t){return ngDevMode&&(void 0===e&&(e="Type passed in is not ComponentType, it does not have 'ngComponentDef' property."),t.ngComponentDef||pa(e)),new Uu(t.ngComponentDef);var e},e}(Ye);function ju(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var Fu=new gt("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return Ru(ce(Lu))}}),Lu=new gt("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return requestAnimationFrame.bind(window)}}),Uu=function(t){function e(e){var n=t.call(this)||this;return n.componentDef=e,n.componentType=e.type,n.selector=e.selectors[0][0],n.ngContentSelectors=[],n}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return ju(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return ju(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var o,i,s=void 0===n,a=r?r.injector.get(On):ja,u=s?(o=this.selector,Ma(i=a.createRenderer(null,this.componentDef.rendererType)||Ga)?i.createElement(o,vu):null===vu?i.createElement(o):i.createElementNS(vu,o)):wu(a,n),l=r&&!s?r.injector.get(Fu):Ru(requestAnimationFrame.bind(window)),c=fu(a.createRenderer(u,this.componentDef.rendererType),_u(-1,null,null,null,null),l,this.componentDef.onPush?4:2);c[Ca]=r&&r.injector||null;var p,h,f=lu(c,null);try{if(a.begin&&a.begin(),h=function(t,e,n,r){$a=!1,Xa=null;var o,i=du(0,3,e,null,null,fu(Ga,(o=n.template).ngPrivateData||(o.ngPrivateData=_u(-1,o,n.directiveDefs,n.pipeDefs,n.viewQuery)),null,n.onPush?4:2,r));return uu&&(i.tNode.flags=4096,n.diPublic&&n.diPublic(n),Ja.directives=[n]),i}(0,u,this.componentDef),l.components.push(p=function(t,e,n){if(ngDevMode&&la(eu[ba],-1,"directives should be created before any bindings"),ngDevMode&&la($a,!0,"previousOrParentNode should be a parent"),Object.defineProperty(e,ru,{enumerable:!1,value:Xa}),null==nu&&(eu[_a]=nu=[]),ngDevMode&&Au(t,nu),nu[t]=e,uu){var r=Xa.tNode.flags;0==(4095&r)?Xa.tNode.flags=t<<14|4096&r|1:(ngDevMode&&4095==(4095&r)&&pa("Reached the max number of directives"),Xa.tNode.flags++)}else{var o=n.diPublic;o&&o(n)}return null!=n.attributes&&3==Xa.tNode.type&&function(t,e){for(var n=Ma(Ga),r=0;r>14,r=n+(4095&t),o=n;o0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=nl.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+nl.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+nl.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},s([a(1,Ut()),a(1,Lt(el))],e)}(tl),il=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return nl.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+nl.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+nl.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+nl.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},s([a(1,Ut()),a(1,Lt(el))],e)}(tl),sl=void 0,al=["en",[["a","p"],["AM","PM"],sl],[["AM","PM"],sl,sl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],sl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],sl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",sl,"{1} 'at' {0}",sl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],ul={},ll=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),cl=new gt("UseV4Plurals"),pl=function(){},hl=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return o(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=ul[e];if(n)return n;var r=e.split("-")[0];if(n=ul[r])return n;if("en"===r)return al;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case ll.Zero:return"zero";case ll.One:return"one";case ll.Two:return"two";case ll.Few:return"few";case ll.Many:return"many";default:return"other"}},s([a(0,Lt(gr)),a(1,Ut()),a(1,Lt(cl))],e)}(pl);function fl(t,e){var n,r;e=encodeURIComponent(e);try{for(var o=l(t.split(";")),i=o.next();!i.done;i=o.next()){var s=i.value,a=s.indexOf("="),u=c(-1==a?[s,""]:[s.slice(0,a),s.slice(a+1)],2),p=u[1];if(u[0].trim()===e)return decodeURIComponent(p)}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}var dl=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),ml=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){En()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new dl(null,e._ngForOf,-1,-1),o),s=new yl(t,i);n.push(s)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),s=new yl(t,i),n.push(s))});for(var r=0;r0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,p(n)),this.headers.set(e,r);break;case"d":var o=t.value;if(o){var i=this.headers.get(e);if(!i)return;0===(i=i.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),Fl=function(){function t(){}return t.prototype.encodeKey=function(t){return Ll(t)},t.prototype.encodeValue=function(t){return Ll(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function Ll(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 Ul=function(){function t(t){void 0===t&&(t={});var e,n,r,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Fl,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=c(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),i=o[0],s=o[1],a=r.get(i)||[];a.push(s),r.set(i,a)}),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function Vl(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Hl(t){return"undefined"!=typeof Blob&&t instanceof Blob}function zl(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Bl=function(){function t(t,e,n,r){var o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new jl),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":s=200&&this.status<300}}(),Kl=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=ql.ResponseHeader,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Ql),Wl=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=ql.Response,n.body=void 0!==e.body?e.body:null,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Ql),Gl=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return o(e,t),e}(Ql);function Zl(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Xl=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;if(void 0===n&&(n={}),t instanceof Bl)r=t;else{var i;i=n.headers instanceof jl?n.headers:new jl(n.headers);var s=void 0;n.params&&(s=n.params instanceof Ul?n.params:new Ul({fromObject:n.params})),r=new Bl(t,e,void 0!==n.body?n.body:null,{headers:i,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var a=Wu(r).pipe(Gu(function(t){return o.handler.handle(t)}));if(t instanceof Bl||"events"===n.observe)return a;var u=a.pipe(Zu(function(t){return t instanceof Wl}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return u.pipe(J(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return u.pipe(J(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return u.pipe(J(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return u.pipe(J(function(t){return t.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new Ul).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,Zl(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,Zl(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,Zl(n,e))},t}(),$l=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),Jl=new gt("HTTP_INTERCEPTORS"),Yl=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),tc=/^\)\]\}',?\n/,ec=function(){},nc=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),rc=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new R(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var s=t.serializeBody(),a=null,u=function(){if(null!==a)return a;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new jl(r.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return a=new Kl({headers:o,status:e,statusText:n,url:i})},l=function(){var e=u(),o=e.headers,i=e.status,s=e.statusText,a=e.url,l=null;204!==i&&(l=void 0===r.response?r.responseText:r.response),0===i&&(i=l?200:0);var c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof l){var p=l;l=l.replace(tc,"");try{l=""!==l?JSON.parse(l):null}catch(t){l=p,c&&(c=!1,l={error:t,text:l})}}c?(n.next(new Wl({body:l,headers:o,status:i,statusText:s,url:a||void 0})),n.complete()):n.error(new Gl({error:l,headers:o,status:i,statusText:s,url:a||void 0}))},c=function(t){var e=new Gl({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},p=!1,h=function(e){p||(n.next(u()),p=!0);var o={type:ql.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},f=function(t){var e={type:ql.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",h),null!==s&&r.upload&&r.upload.addEventListener("progress",f)),r.send(s),n.next({type:ql.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",l),t.reportProgress&&(r.removeEventListener("progress",h),null!==s&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}})},t}(),oc=new gt("XSRF_COOKIE_NAME"),ic=new gt("XSRF_HEADER_NAME"),sc=function(){},ac=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=fl(t,this.cookieName),this.lastCookieString=t),this.lastToken},s([a(0,Lt(Pl)),a(1,Lt(Ve)),a(2,Lt(oc))],t)}(),uc=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},s([a(1,Lt(ic))],t)}(),lc=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(Jl,[]);this.chain=e.reduceRight(function(t,e){return new $l(t,e)},this.backend)}return this.chain.handle(t)},t}(),cc=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:uc,useClass:Yl}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:oc,useValue:t.cookieName}:[],t.headerName?{provide:ic,useValue:t.headerName}:[]]}},t}(),pc=function(){},hc=function(){function t(t){this.httpClient=t,this.hostname=Bu.hostname,this.settings=null}return t.prototype.getSettings=function(){return this.httpClient.get("http://"+this.hostname+"/settings")},t.prototype.setRoomName=function(t){console.log("New name: ",t)},t.prototype.setBrightness=function(t){console.log("New brightness: ",t)},t.ngInjectableDef=yt({factory:function(){return new t(ce(Xl))},token:t,providedIn:"root"}),t}(),fc=function(){function t(t){this.httpClient=t,this.hostname=Bu.hostname,this.testnum=0,this.playlist=null,this.status=null}return t.prototype.incT=function(){console.log(this.testnum),this.testnum++},t.prototype.setPlaylist=function(t){this.playlist=t},t.prototype.getPlaylist=function(){return this.playlist},t.prototype.setStatus=function(t){this.status=t},t.prototype.getInternalStatus=function(){return this.status},t.prototype.getStatus=function(){return this.httpClient.get("http://"+this.hostname+"/status")},t.prototype.getTracks=function(t){var e="";return t&&(e="?id="+t),this.httpClient.get("http://"+this.hostname+"/get-track-list"+e)},t.prototype.tapToSeek=function(t){return this.httpClient.get("http://"+this.hostname+"/seek?position="+t)},t.prototype.getSingleTrack=function(t){return this.httpClient.get("http://"+this.hostname+"/get-single-track?id="+t)},t.prototype.playSingleTrack=function(t){return this.httpClient.get("http://"+this.hostname+"/play-single-track?id="+t)},t.prototype.playPause=function(){return this.httpClient.get("http://"+this.hostname+"/play-pause")},t.prototype.crossfade=function(t,e){return this.httpClient.get("http://"+this.hostname+"/crossfade?id="+t+"&interval="+e)},t.prototype.pauseSingleTrack=function(t){return this.httpClient.get("http://"+this.hostname+"/pause-track?id="+t)},t.prototype.stopMusic=function(){return this.httpClient.get("http://"+this.hostname+"/stop")},t.ngInjectableDef=yt({factory:function(){return new t(ce(Xl))},token:t,providedIn:"root"}),t}();function dc(){for(var t,e=[],n=0;n0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(t?Zu(function(e,n){return t(e,n,r)}):st,Cc(1),n?Nc(e):Pc(function(){return new bc}))}}function Mc(t,e){return function(n){return n.lift(new jc(t,e,n))}}var jc=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new Fc(t,this.predicate,this.thisArg,this.source))},t}(),Fc=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(T);function Lc(t){return function(e){var n=new Uc(t),r=e.lift(n);return n.caught=r}}var Uc=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Vc(t,this.selector,this.caught))},t}(),Vc=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(X(this,n))}},e}($);function Hc(t){return function(e){return 0===t?Ku():e.lift(new zc(t))}}var zc=function(){function t(t){if(this.total=t,this.total<0)throw new Sc}return t.prototype.call=function(t,e){return e.subscribe(new Bc(t,this.total))},t}(),Bc=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return o(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(T);function qc(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Zu(function(e,n){return t(e,n,r)}):st,Hc(1),n?Nc(e):Pc(function(){return new bc}))}}function Qc(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Kc(t,e,n))}}var Kc=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Wc(t,this.accumulator,this.seed,this.hasSeed))},t}(),Wc=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return o(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(T),Gc=null;function Zc(){return Gc}var Xc,$c={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Jc={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Yc={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};Pt.Node&&(Xc=Pt.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var tp,ep=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,Gc||(Gc=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,p(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 $c},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return Xc.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;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;s||(s=t[i]=[]);var u=Mp(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:o});else{for(var l=!1,c=0;c-1},s([a(0,Lt(rp)),a(1,Lt(Up)),a(3,Ut()),a(3,Lt(Vp))],e)}(dp),Bp=["alt","control","meta","shift"],qp={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Qp=function(t){function e(e){return t.call(this,e)||this}var n;return o(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var o=n.parseEventName(e),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Zc().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(e.pop()),i="";if(Bp.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),i+=t+".")}),i+=o,0!=e.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",n=Zc().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Bp.forEach(function(r){r!=n&&(0,qp[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(o){n.getEventFullKey(o)===t&&r.runGuarded(function(){return e(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},n=s([a(0,Lt(rp))],e)}(dp),Kp=function(){},Wp=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case qr.NONE:return e;case qr.HTML:return e instanceof Zp?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{Ir=Ir||new Sr(t);var r=e?String(e):"";n=Ir.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Ir.getInertBodyElement(r)}while(r!==i);var s=new Fr,a=s.sanitizeChildren(Hr(n)||n);return En()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}finally{if(n)for(var u=Hr(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(e)));case qr.STYLE:return e instanceof Xp?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Br);return e&&kr(e[1])===e[1]||t.match(zr)&&function(t){for(var e=!0,n=!0,r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Rh(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Dh(t){return t.pipe(at(),Mc(function(t){return!0===t}))}function Mh(t){return Re(t)?t:Oe(t)?nt(Promise.resolve(t)):Wu(t)}function jh(t,e,n){return n?function(t,e){return Ah(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Vh(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!Vh(s=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Vh(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var s=o.slice(0,n.segments.length),a=o.slice(n.segments.length);return!!Vh(n.segments,s)&&!!n.children[wh]&&e(n.children[wh],r,a)}(e,n,n.segments)}(t.root,e.root)}var Fh=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Ch(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return qh.serialize(this)},t}(),Lh=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Rh(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Qh(this)},t}(),Uh=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Ch(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return $h(this)},t}();function Vh(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Hh(t,e){var n=[];return Rh(t.children,function(t,r){r===wh&&(n=n.concat(e(t,r)))}),Rh(t.children,function(t,r){r!==wh&&(n=n.concat(e(t,r)))}),n}var zh=function(){},Bh=function(){function t(){}return t.prototype.parse=function(t){var e=new nf(t);return new Fh(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Qh(e);if(n){var r=e.children[wh]?t(e.children[wh],!1):"",o=[];return Rh(e.children,function(e,n){n!==wh&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=Hh(e,function(n,r){return r===wh?[t(e.children[wh],!1)]:[r+":"+t(n,!1)]});return Qh(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Wh(t)+"="+Wh(e)}).join("&"):Wh(t)+"="+Wh(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),qh=new Bh;function Qh(t){return t.segments.map(function(t){return $h(t)}).join("/")}function Kh(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Wh(t){return Kh(t).replace(/%3B/gi,";")}function Gh(t){return Kh(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zh(t){return decodeURIComponent(t)}function Xh(t){return Zh(t.replace(/\+/g,"%20"))}function $h(t){return""+Gh(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Gh(t)+"="+Gh(e[t])}).join(""));var e}var Jh=/^[^\/()?;=#]+/;function Yh(t){var e=t.match(Jh);return e?e[0]:""}var tf=/^[^=?&#]+/,ef=/^[^?&#]+/,nf=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Lh([],{}):new Lh([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[wh]=new Lh(t,e)),n},t.prototype.parseSegment=function(){var t=Yh(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Uh(Zh(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Yh(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Yh(this.remaining);r&&this.capture(n=r)}t[Zh(e)]=Zh(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(tf))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(ef);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Xh(n),s=Xh(r);if(t.hasOwnProperty(i)){var a=t[i];Array.isArray(a)||(t[i]=a=[a]),a.push(s)}else t[i]=s}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Yh(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=wh);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[wh]:new Lh([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),rf=function(t){this.segmentGroup=t||null},of=function(t){this.urlTree=t};function sf(t){return new R(function(e){return e.error(new rf(t))})}function af(t){return new R(function(e){return e.error(new of(t))})}function uf(t){return new R(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var lf=function(){function t(t,e,n,r,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(nn)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,wh).pipe(J(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(Lc(function(e){if(e instanceof of)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof rf)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,wh).pipe(J(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(Lc(function(t){if(t instanceof rf)throw e.noMatchError(t);throw t}))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,o=t.segments.length>0?new Lh([],((r={})[wh]=t,r)):t;return new Fh(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(J(function(t){return new Lh([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Wu({});var i=[],s=[],a={};return Rh(n,function(n,o){var u,l,c=(u=o,l=n,r.expandSegmentGroup(t,e,l,u)).pipe(J(function(t){return a[o]=t}));o===wh?i.push(c):s.push(c)}),Wu.apply(null,i.concat(s)).pipe(wc(),Dc(),J(function(){return a}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var s=this;return Wu.apply(void 0,p(n)).pipe(J(function(a){return s.expandSegmentAgainstRoute(t,e,n,a,r,o,i).pipe(Lc(function(t){if(t instanceof rf)return Wu(null);throw t}))}),wc(),qc(function(t){return!!t}),Lc(function(t,n){if(t instanceof bc||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,r,o))return Wu(new Lh([],{}));throw new rf(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,s){return ff(r)!==i?sf(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):sf(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?af(i):this.lineralizeSegments(n,i).pipe(rt(function(n){var i=new Lh(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var s=this,a=cf(e,r,o),u=a.consumedSegments,l=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return sf(e);var p=this.applyRedirectCommands(u,r.redirectTo,c);return r.redirectTo.startsWith("/")?af(p):this.lineralizeSegments(r,p).pipe(rt(function(r){return s.expandSegment(t,e,n,r.concat(o.slice(l)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(J(function(t){return n._loadedConfig=t,new Lh(r,{})})):Wu(new Lh(r,{}));var s=cf(e,n,r),a=s.consumedSegments,u=s.lastChild;if(!s.matched)return sf(e);var c=r.slice(u);return this.getChildConfig(t,n).pipe(rt(function(t){var n=t.module,r=t.routes,s=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return hf(t,e,n)&&ff(n)!==wh})}(t,n)?{segmentGroup:pf(new Lh(e,function(t,e){var n,r,o={};o[wh]=e;try{for(var i=l(t),s=i.next();!s.done;s=i.next()){var a=s.value;""===a.path&&ff(a)!==wh&&(o[ff(a)]=new Lh([],{}))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new Lh(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return hf(t,e,n)})}(t,n)?{segmentGroup:pf(new Lh(t.segments,function(t,e,n,r){var o,s,a={};try{for(var u=l(n),c=u.next();!c.done;c=u.next()){var p=c.value;hf(t,e,p)&&!r[ff(p)]&&(a[ff(p)]=new Lh([],{}))}}catch(t){o={error:t}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}return i({},r,a)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,a,c,r),u=s.segmentGroup,p=s.slicedSegments;return 0===p.length&&u.hasChildren()?o.expandChildren(n,r,u).pipe(J(function(t){return new Lh(a,t)})):0===r.length&&0===p.length?Wu(new Lh(a,{})):o.expandSegment(n,u,r,p,wh,!0).pipe(J(function(t){return new Lh(a.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?Wu(new kh(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Wu(e._loadedConfig):function(t,e){var n=e.canLoad;return n&&0!==n.length?Dh(nt(n).pipe(J(function(n){var r=t.get(n);return Mh(r.canLoad?r.canLoad(e):r(e))}))):Wu(!0)}(t.injector,e).pipe(rt(function(r){return r?n.configLoader.load(t.injector,e).pipe(J(function(t){return e._loadedConfig=t,t})):function(t){return new R(function(e){return e.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(e)})):Wu(new kh([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Wu(n);if(r.numberOfChildren>1||!r.children[wh])return uf(t.redirectTo);r=r.children[wh]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new Fh(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Rh(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),s={};return Rh(e.children,function(e,i){s[i]=o.createSegmentGroup(t,e,n,r)}),new Lh(i,s)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,o=0;try{for(var i=l(e),s=i.next();!s.done;s=i.next()){var a=s.value;if(a.path===t.path)return e.splice(o),a;o++}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function cf(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Eh)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function pf(t){if(1===t.numberOfChildren&&t.children[wh]){var e=t.children[wh];return new Lh(t.segments.concat(e.segments),e.children)}return t}function hf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function ff(t){return t.outlet||wh}var df=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=mf(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=mf(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=yf(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return yf(t,this._root).map(function(t){return t.value})},t}();function mf(t,e){var n,r;if(t===e.value)return e;try{for(var o=l(e.children),i=o.next();!i.done;i=o.next()){var s=mf(t,i.value);if(s)return s}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function yf(t,e){var n,r;if(t===e.value)return[e];try{for(var o=l(e.children),i=o.next();!i.done;i=o.next()){var s=yf(t,i.value);if(s.length)return s.unshift(e),s}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return[]}var gf=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function vf(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var bf=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,kf(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(df);function _f(t,e){var n=function(t,e){var n=new Cf([],{},{},"",{},wh,e,null,t.root,-1,{});return new Ef("",new gf(n,[]))}(t,e),r=new _c([new Uh("",{})]),o=new _c({}),i=new _c({}),s=new _c({}),a=new _c(""),u=new wf(r,o,s,a,i,wh,e,n.root);return u.snapshot=n.root,new bf(new gf(u,[]),n)}var wf=function(){function t(t,e,n,r,o,i,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(J(function(t){return Ch(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(J(function(t){return Ch(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Sf(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],s=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(s.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:i({},t.params,e.params),data:i({},t.data,e.data),resolve:i({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Cf=function(){function t(t,e,n,r,o,i,s,a,u,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this.routeConfig=a,this._urlSegment=u,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Ch(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Ch(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Ef=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,kf(r,n),r}return o(e,t),e.prototype.toString=function(){return xf(this._root)},e}(df);function kf(t,e){e.value._routerState=t,e.children.forEach(function(e){return kf(t,e)})}function xf(t){var e=t.children.length>0?" { "+t.children.map(xf).join(", ")+" } ":"";return""+t.value+e}function Tf(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Ah(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Ah(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&Pf(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==Oh(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),Of=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function Rf(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[wh]:""+t}function Df(t,e,n){if(t||(t=new Lh([],{})),0===t.segments.length&&t.hasChildren())return Mf(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var s=t.segments[o],a=Rf(n[r]),u=r0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Uf(a,u,s))return i;r+=2}else{if(!Uf(a,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2?function(n){return N(Qc(t,e),Cc(1),Nc(e))(n)}:function(e){return N(Qc(function(e,n,r){return t(e,n,r+1)}),Cc(1))(e)}}(function(t,e){return t})):Wu(null)},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var o=this,i=vf(e);t.children.forEach(function(t){o.setupRouteGuards(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),Rh(i,function(t,e){return o.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var o=t.value,i=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(i&&o.routeConfig===i.routeConfig){var a=this.shouldRunGuardsAndResolvers(i,o,o.routeConfig.runGuardsAndResolvers);a?this.canActivateChecks.push(new Vf(r)):(o.data=i.data,o._resolvedData=i._resolvedData),this.setupChildRouteGuards(t,e,o.component?s?s.children:null:n,r),a&&this.canDeactivateChecks.push(new Hf(s.outlet.component,i))}else i&&this.deactivateRouteAndItsChildren(e,s),this.canActivateChecks.push(new Vf(r)),this.setupChildRouteGuards(t,null,o.component?s?s.children:null:n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!If(t,e)||!Ah(t.queryParams,e.queryParams);case"paramsChange":default:return!If(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=vf(t),o=t.value;Rh(r,function(t,r){n.deactivateRouteAndItsChildren(t,o.component?e?e.children.getContext(r):null:e)}),this.canDeactivateChecks.push(new Hf(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this;return nt(this.canDeactivateChecks).pipe(rt(function(e){return t.runCanDeactivate(e.component,e.route)}),Mc(function(t){return!0===t}))},t.prototype.runCanActivateChecks=function(){var t=this;return nt(this.canActivateChecks).pipe(Gu(function(e){return Dh(nt([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))}),Mc(function(t){return!0===t}))},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new gh(t)),Wu(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new mh(t)),Wu(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?Dh(nt(n).pipe(J(function(n){var r=e.getToken(n,t);return Mh(r.canActivate?r.canActivate(t,e.future):r(t,e.future)).pipe(qc())}))):Wu(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1];return Dh(nt(t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t})).pipe(J(function(t){return Dh(nt(t.guards).pipe(J(function(r){var o=e.getToken(r,t.node);return Mh(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)).pipe(qc())})))})))},t.prototype.extractCanActivateChild=function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?nt(r).pipe(rt(function(r){var o=n.getToken(r,e);return Mh(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)).pipe(qc())})).pipe(Mc(function(t){return!0===t})):Wu(!0)},t.prototype.runResolve=function(t,e){return this.resolveNode(t._resolve,t).pipe(J(function(n){return t._resolvedData=n,t.data=i({},t.data,Sf(t,e).resolve),null}))},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Wu({});if(1===r.length){var o=r[0];return this.getResolver(t[o],e).pipe(J(function(t){var e;return(e={})[o]=t,e}))}var i={};return nt(r).pipe(rt(function(r){return n.getResolver(t[r],e).pipe(J(function(t){return i[r]=t,t}))})).pipe(Dc(),J(function(){return i}))},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return Mh(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),Bf=function(){},qf=function(){function t(t,e,n,r,o,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return t.prototype.recognize=function(){try{var t=Wf(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,wh),n=new Cf([],Object.freeze({}),Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,{},wh,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new gf(n,e),o=new Ef(this.url,r);return this.inheritParamsAndData(o._root),Wu(o)}catch(t){return new R(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Sf(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,o=Hh(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===wh?-1:e.value.outlet===wh?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,r){var o,i;try{for(var s=l(t),a=s.next();!a.done;a=s.next()){var u=a.value;try{return this.processSegmentAgainstRoute(u,e,n,r)}catch(t){if(!(t instanceof Bf))throw t}}}catch(t){o={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new Bf},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new Bf;if((t.outlet||wh)!==r)throw new Bf;var o,s=[],a=[];if("**"===t.path){var u=n.length>0?Oh(n).parameters:{};o=new Cf(n,u,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,Xf(t),r,t.component,t,Qf(e),Kf(e)+n.length,$f(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Bf;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||Eh)(n,t,e);if(!r)throw new Bf;var o={};Rh(r.posParams,function(t,e){o[e]=t.path});var s=r.consumed.length>0?i({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(e,t,n);s=l.consumedSegments,a=n.slice(l.lastChild),o=new Cf(s,l.parameters,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,Xf(t),r,t.component,t,Qf(e),Kf(e)+s.length,$f(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),p=Wf(e,s,a,c,this.relativeLinkResolution),h=p.segmentGroup,f=p.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(c,h);return[new gf(o,d)]}if(0===c.length&&0===f.length)return[new gf(o,[])];var m=this.processSegment(c,h,f,wh);return[new gf(o,m)]},t}();function Qf(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Kf(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Wf(t,e,n,r,o){if(n.length>0&&function(t,e,n){return r.some(function(n){return Gf(t,e,n)&&Zf(n)!==wh})}(t,n)){var s=new Lh(e,function(t,e,n,r){var o,i,s={};s[wh]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var a=l(n),u=a.next();!u.done;u=a.next()){var c=u.value;if(""===c.path&&Zf(c)!==wh){var p=new Lh([],{});p._sourceSegment=t,p._segmentIndexShift=e.length,s[Zf(c)]=p}}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return s}(t,e,r,new Lh(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return Gf(t,e,n)})}(t,n)){var a=new Lh(t.segments,function(t,e,n,r,o,s){var a,u,c={};try{for(var p=l(r),h=p.next();!h.done;h=p.next()){var f=h.value;if(Gf(t,n,f)&&!o[Zf(f)]){var d=new Lh([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===s?t.segments.length:e.length,c[Zf(f)]=d}}}catch(t){a={error:t}}finally{try{h&&!h.done&&(u=p.return)&&u.call(p)}finally{if(a)throw a.error}}return i({},o,c)}(t,e,n,r,t.children,o));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var u=new Lh(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function Gf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Zf(t){return t.outlet||wh}function Xf(t){return t.data||{}}function $f(t){return t.resolve||{}}var Jf=function(){},Yf=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),td=new gt("ROUTES"),ed=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(J(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new kh(Nh(o.injector.get(td)).map(Ph),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?nt(this.loader.load(t)):Mh(t()).pipe(rt(function(t){return t instanceof rn?Wu(t):nt(e.compiler.compileModuleAsync(t))}))},t}(),nd=function(){},rd=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function od(t){throw t}function id(t,e,n){return e.parse("/")}function sd(t,e){return Wu(null)}var ad=function(){function t(t,e,n,r,o,i,s,a){var u=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.navigations=new _c(null),this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new L,this.errorHandler=od,this.malformedUriErrorHandler=id,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:sd,afterPreactivation:sd},this.urlHandlingStrategy=new rd,this.routeReuseStrategy=new Yf,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(nn),this.console=o.get(ze);var l=o.get(cn);this.isNgZoneEnabled=l instanceof cn,this.resetConfig(a),this.currentUrlTree=new Fh(new Lh([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new ed(i,s,function(t){return u.triggerEvent(new fh(t))},function(t){return u.triggerEvent(new dh(t))}),this.routerState=_f(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.parseUrl(e.url),r="popstate"===e.type?"popstate":"hashchange",o=e.state&&e.state.navigationId?{navigationId:e.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(n,r,o,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){xh(t),this.config=t.map(Ph),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,r=e.queryParams,o=e.fragment,s=e.preserveQueryParams,a=e.queryParamsHandling,u=e.preserveFragment;En()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,c=u?this.currentUrlTree.fragment:o,h=null;if(a)switch(a){case"merge":h=i({},this.currentUrlTree.queryParams,r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=s?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,o){if(0===n.length)return Af(e.root,e.root,e,r,o);var i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Nf(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var i={};return Rh(r.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),p(t,[{outlets:i}])}if(r.segmentPath)return p(t,[r.segmentPath])}return"string"!=typeof r?p(t,[r]):0===o?(r.split("/").forEach(function(r,o){0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):p(t,[r])},[]);return new Nf(n,e,r)}(n);if(i.toRoot())return Af(e.root,new Lh([],{}),e,r,o);var s=function(t,n,r){if(t.isAbsolute)return new Of(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new Of(r.snapshot._urlSegment,!0,0);var o=Pf(t.commands[0])?0:1;return function(e,n,i){for(var s=r.snapshot._urlSegment,a=r.snapshot._lastPathIndex+o,u=t.numberOfDoubleDots;u>a;){if(u-=a,!(s=s.parent))throw new Error("Invalid number of '../'");a=s.segments.length}return new Of(s,!1,a-u)}()}(i,0,t),a=s.processChildren?Mf(s.segmentGroup,s.index,i.commands):Df(s.segmentGroup,s.index,i.commands);return Af(s.segmentGroup,a,e,r,o)}(l,this.currentUrlTree,t,h,c)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),En()&&this.isNgZoneEnabled&&!cn.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=t instanceof Fh?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e [_ngcontent-%COMP%]:nth-child(1n){width:80vw;text-align:center;border:.2rem solid #fff;padding-top:.5em;padding-bottom:.5em;margin-top:.4em}#mainBox[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{padding-top:4rem;-webkit-transform:scale(2);transform:scale(2)}"]],data:{}});function zd(t){return es(0,[(t()(),Lo(0,0,null,null,12,"div",[["id","mainBox"]],null,null,null,null,null)),xi(1,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(2,0,null,null,0,"img",[["class","image"],["src","./../../../assets/img/logo.PNG"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.changeStyles()&&r),r},null,null)),(t()(),Lo(3,0,null,null,9,"div",[["class","flexBox"]],null,null,null,null,null)),(t()(),Lo(4,0,null,null,4,"nav",[],null,null,null,null,null)),(t()(),Lo(5,0,null,null,3,"a",[["routerLink","/tracks"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==fi(t,6).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),xi(6,671744,null,0,cd,[ad,wf,tl],{routerLink:[0,"routerLink"]},null),(t()(),Lo(7,0,null,null,1,"div",[["class","treatments"]],null,null,null,null,null)),(t()(),Ji(-1,null,["spa treatments"])),(t()(),Lo(9,0,null,null,1,"div",[["class","howTo"]],null,null,null,null,null)),(t()(),Ji(-1,null,["how to use"])),(t()(),Lo(11,0,null,null,1,"div",[["class","report"]],null,null,null,null,null)),(t()(),Ji(-1,null,["report a problem"]))],function(t,e){t(e,1,0,e.component.styleObject()),t(e,6,0,"/tracks")},function(t,e){t(e,5,0,fi(e,6).target,fi(e,6).href)})}var Bd=ni("app-splash-screen",Vd,function(t){return es(0,[(t()(),Lo(0,0,null,null,1,"app-splash-screen",[],null,null,null,zd,Hd)),xi(1,114688,null,0,Vd,[fc,Ud],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]);function qd(t){return null!=t&&""+t!="false"}function Qd(t,e){return void 0===e&&(e=0),function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}var Kd,Wd="undefined"!=typeof Intl&&Intl.v8BreakIterator,Gd=function(){function t(t){this._platformId=t,this.isBrowser=this._platformId?this._platformId===Al:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Wd)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return t.ngInjectableDef=yt({factory:function(){return new t(ce(Ve,8))},token:t,providedIn:"root"}),t}();function Zd(){if(null==Kd&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Kd=!0}}))}finally{Kd=Kd||!1}return Kd}var Xd=function(){},$d=function(){function t(t,e){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._unregisterGlobalListeners=function(){},this._monitoredElementCount=0}return t.prototype.monitor=function(t,e){var n=this;if(void 0===e&&(e=!1),!this._platform.isBrowser)return Wu(null);if(this._elementInfo.has(t)){var r=this._elementInfo.get(t);return r.checkChildren=e,r.subject.asObservable()}var o={unlisten:function(){},checkChildren:e,subject:new L};this._elementInfo.set(t,o),this._incrementMonitoredElementCount();var i=function(e){return n._onFocus(e,t)},s=function(e){return n._onBlur(e,t)};return this._ngZone.runOutsideAngular(function(){t.addEventListener("focus",i,!0),t.addEventListener("blur",s,!0)}),o.unlisten=function(){t.removeEventListener("focus",i,!0),t.removeEventListener("blur",s,!0)},o.subject.asObservable()},t.prototype.stopMonitoring=function(t){var e=this._elementInfo.get(t);e&&(e.unlisten(),e.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())},t.prototype.focusVia=function(t,e,n){this._setOriginForCurrentEventQueue(e),"function"==typeof t.focus&&t.focus(n)},t.prototype.ngOnDestroy=function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})},t.prototype._registerGlobalListeners=function(){var t=this;if(this._platform.isBrowser){var e=function(){t._lastTouchTarget=null,t._setOriginForCurrentEventQueue("keyboard")},n=function(){t._lastTouchTarget||t._setOriginForCurrentEventQueue("mouse")},r=function(e){null!=t._touchTimeoutId&&clearTimeout(t._touchTimeoutId),t._lastTouchTarget=e.target,t._touchTimeoutId=setTimeout(function(){return t._lastTouchTarget=null},650)},o=function(){t._windowFocused=!0,t._windowFocusTimeoutId=setTimeout(function(){return t._windowFocused=!1})};this._ngZone.runOutsideAngular(function(){document.addEventListener("keydown",e,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("touchstart",r,!Zd()||{passive:!0,capture:!0}),window.addEventListener("focus",o)}),this._unregisterGlobalListeners=function(){document.removeEventListener("keydown",e,!0),document.removeEventListener("mousedown",n,!0),document.removeEventListener("touchstart",r,!Zd()||{passive:!0,capture:!0}),window.removeEventListener("focus",o),clearTimeout(t._windowFocusTimeoutId),clearTimeout(t._touchTimeoutId),clearTimeout(t._originTimeoutId)}}},t.prototype._toggleClass=function(t,e,n){n?t.classList.add(e):t.classList.remove(e)},t.prototype._setClasses=function(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))},t.prototype._setOriginForCurrentEventQueue=function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,e._originTimeoutId=setTimeout(function(){return e._origin=null},1)})},t.prototype._wasCausedByTouch=function(t){var e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))},t.prototype._onFocus=function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===t.target)){var r=this._origin;r||(r=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}},t.prototype._onBlur=function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))},t.prototype._emitOrigin=function(t,e){this._ngZone.run(function(){return t.next(e)})},t.prototype._incrementMonitoredElementCount=function(){1==++this._monitoredElementCount&&this._registerGlobalListeners()},t.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(this._unregisterGlobalListeners(),this._unregisterGlobalListeners=function(){})},t.ngInjectableDef=yt({factory:function(){return new t(ce(cn),ce(Gd))},token:t,providedIn:"root"}),t}(),Jd=new gt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Yd=function(){function t(t){this._sanityChecksEnabled=t,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._hasDoneGlobalChecks=!0)}return t.prototype._areChecksEnabled=function(){return this._sanityChecksEnabled&&En()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){return this._window&&(this._window.__karma__||this._window.jasmine)},t.prototype._checkDoctypeIsDefined=function(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkThemeIsPresent=function(){if(this._document&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}},t.prototype._checkHammerIsAvailable=function(){!this._hasCheckedHammer&&this._window&&(this._areChecksEnabled()&&!this._window.Hammer&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)},t}();function tm(t,e){return function(t){function n(){for(var n=[],r=0;r *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var o=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var i=o[1],s=o[2],a=o[3];e.push(yy(i,a)),"<"!=s[0]||i==fy&&a==fy||e.push(yy(a,i))}(t,o,r)}):o.push(n),o),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Sy(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return py(n,t,e)}),options:Sy(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,o=0,i=t.steps.map(function(t){e.currentTime=r;var i=py(n,t,e);return o=Math.max(o,e.currentTime),i});return e.currentTime=o,{type:3,steps:i,options:Sy(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Cy(Zm(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var o=Cy(0,0,"");return o.dynamic=!0,o.strValue=r,o}return Cy((n=n||Zm(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var o=t.styles?t.styles:vm({});if(5==o.type)n=this.visitKeyframes(o,e);else{var i=t.styles,s=!1;if(!i){s=!0;var a={};r.easing&&(a.easing=r.easing),i=vm(a)}e.currentTime+=r.duration+r.delay;var u=this.visitStyle(i,e);u.isEmptyStep=s,n=u}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==ym?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,o=null;return n.forEach(function(t){if(wy(t)){var e=t,n=e.easing;if(n&&(o=n,delete e.easing),!r)for(var i in e)if(e[i].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,o=e.currentTime,i=e.currentTime;r&&i>0&&(i-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s,a,u,l=e.collectedStyles[e.currentQuerySelector],c=l[r],p=!0;c&&(i!=o&&i>=c.startTime&&o<=c.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+i+'ms" and "'+o+'ms"'),p=!1),i=c.startTime),p&&(l[r]={startTime:i,endTime:o}),e.options&&(s=e.errors,a=e.options.params||{},(u=oy(t[r])).length&&u.forEach(function(t){a.hasOwnProperty(t)||s.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var o=0,i=[],s=!1,a=!1,u=0,l=t.steps.map(function(t){var r=n._makeStyleAst(t,e),l=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(wy(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(wy(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=l&&(o++,c=r.offset=l),a=a||c<0||c>1,s=s||c0&&o0?o==h?1:p*o:i[o],a=s*m;e.currentTime=f+d.delay+a,d.duration=a,n._validateStyleAst(t,e),t.offset=s,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:py(this,ny(t.animation),e),options:Sy(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:Sy(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Sy(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var o=c(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(gy,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),i=o[0],s=o[1];e.currentQuerySelector=n.length?n+" "+i:i,Pm(e.collectedStyles,e.currentQuerySelector,{});var a=py(this,ny(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Sy(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Zm(t.timings,e.errors,!0);return{type:12,animation:py(this,ny(t.animation),e),timings:n,options:null}},t}(),_y=function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function wy(t){return!Array.isArray(t)&&"object"==typeof t}function Sy(t){var e;return t?(t=Xm(t)).params&&(t.params=(e=t.params)?Xm(e):null):t={},t}function Cy(t,e,n){return{duration:t,delay:e,easing:n}}function Ey(t,e,n,r,o,i,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:s,subTimeline:a}}var ky=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,p(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),xy=new RegExp(":enter","g"),Ty=new RegExp(":leave","g");function Iy(t,e,n,r,o,i,s,a,u,l){return void 0===i&&(i={}),void 0===s&&(s={}),void 0===l&&(l=[]),(new Py).buildKeyframes(t,e,n,r,o,i,s,a,u,l)}var Py=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,o,i,s,a,u,l){void 0===l&&(l=[]),u=u||new ky;var c=new Ny(t,e,u,r,o,l,[]);c.options=a,c.currentTimeline.setStyles([i],null,c.errors,a),py(this,n,c);var p=c.timelines.filter(function(t){return t.containsAnimation()});if(p.length&&Object.keys(s).length){var h=p[p.length-1];h.allowOnlyTimelineStyles()||h.setStyles([s],null,c.errors,a)}return p.length?p.map(function(t){return t.buildKeyframes()}):[Ey(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);o!=i&&e.transformIntoNewTimeline(i)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,o=null!=n.duration?Wm(n.duration):null,i=null!=n.delay?Wm(n.delay):null;return 0!==o&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,o,i);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),py(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,o=e,i=t.options;if(i&&(i.params||i.delay)&&((o=e.createSubContext(i)).transformIntoNewTimeline(),null!=i.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ay);var s=Wm(i.delay);o.delayNextStep(s)}t.steps.length&&(t.steps.forEach(function(t){return py(n,t,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],o=e.currentTimeline.currentTime,i=t.options&&t.options.delay?Wm(t.options.delay):0;t.steps.forEach(function(s){var a=e.createSubContext(t.options);i&&a.delayNextStep(i),py(n,s,a),o=Math.max(o,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(o),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return Zm(e.params?iy(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,i=e.createSubContext().currentTimeline;i.easing=n.easing,t.styles.forEach(function(t){i.forwardTime((t.offset||0)*o),i.setStyles(t.styles,t.easing,e.errors,e.options),i.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(i),e.transformIntoNewTimeline(r+o),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,o=t.options||{},i=o.delay?Wm(o.delay):0;i&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ay);var s=r,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;var u=null;a.forEach(function(r,o){e.currentQueryIndex=o;var a=e.createSubContext(t.options,r);i&&a.delayNextStep(i),r===e.element&&(u=a.currentTimeline),py(n,t.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,o=t.timings,i=Math.abs(o.duration),s=i*(e.currentQueryTotal-1),a=i*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=e.currentTimeline;a&&u.delayNextStep(a);var l=u.currentTime;py(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)},t}(),Ay={},Ny=function(){function t(t,e,n,r,o,i,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=i,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ay,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Oy(this._driver,e,0),s.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,o=this.options;null!=r.duration&&(o.duration=Wm(r.duration)),null!=r.delay&&(o.delay=Wm(r.delay));var i=r.params;if(i){var s=o.params;s||(s=this.options.params={}),Object.keys(i).forEach(function(t){e&&s.hasOwnProperty(t)||(s[t]=iy(i[t],s,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var o=n||this.element,i=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=Ay,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},o=new Ry(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,o,i){var s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(xy,"."+this._enterClassName)).replace(Ty,"."+this._leaveClassName);var a=this._driver.query(this.element,t,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,p(a))}return o||0!=s.length||i.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),Oy=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||ym,e._currentKeyframe[t]=ym}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var o=this;e&&(this._previousKeyframe.easing=e);var i=r&&r.params||{},s=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=ym}):$m(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(s).forEach(function(t){var e=iy(s[t],i,n);o._pendingStyles[t]=e,o._localTimelineStyles.hasOwnProperty(t)||(o._backFill[t]=o._globalTimelineStyles.hasOwnProperty(t)?o._globalTimelineStyles[t]:ym),o._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],o=t._styleSummary[n];(!r||o.time>r.time)&&e._updateStyle(n,o.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(i,s){var a=$m(i,!0);Object.keys(a).forEach(function(t){var r=a[t];r==Sm?e.add(t):r==ym&&n.add(t)}),r||(a.offset=s/t.duration),o.push(a)});var i=e.size?sy(e.values()):[],s=n.size?sy(n.values()):[];if(r){var a=o[0],u=Xm(a);a.offset=0,u.offset=1,o=[a,u]}return Ey(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)},t}(),Ry=function(t){function e(e,n,r,o,i,s,a){void 0===a&&(a=!1);var u=t.call(this,e,n,s.delay)||this;return u.element=n,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=i,u._stretchStartingKeyframe=a,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return o(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,o=e.easing;if(this._stretchStartingKeyframe&&n){var i=[],s=r+n,a=n/s,u=$m(t[0],!1);u.offset=0,i.push(u);var l=$m(t[0],!1);l.offset=Dy(a),i.push(l);for(var c=t.length-1,p=1;p<=c;p++){var h=$m(t[p],!1);h.offset=Dy((n+h.offset*r)/s),i.push(h)}r=s,n=0,o="",t=i}return Ey(this.element,t,this.preStyleProps,this.postStyleProps,r,n,o,!0)},e}(Oy);function Dy(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var My=function(){},jy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.normalizePropertyName=function(t,e){return uy(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var o="",i=n.toString().trim();if(Fy[e]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return i+o},e}(My),Fy=function(t){var e={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(t){return e[t]=!0}),e}();function Ly(t,e,n,r,o,i,s,a,u,l,c,p,h){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:p,errors:h}}var Uy={},Vy=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,r){return function(t,e,n,r,o){return t.some(function(t){return t(e,n,r,o)})}(this.ast.matchers,t,e,n,r)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],o=this._stateStyles[t],i=r?r.buildStyles(e,n):{};return o?o.buildStyles(e,n):i},t.prototype.build=function(t,e,n,r,o,s,a,u,l,c){var p=[],h=this.ast.options&&this.ast.options.params||Uy,f=this.buildStyles(n,a&&a.params||Uy,p),d=u&&u.params||Uy,m=this.buildStyles(r,d,p),y=new Set,g=new Map,v=new Map,b="void"===r,_={params:i({},h,d)},w=c?[]:Iy(t,e,this.ast.animation,o,s,f,m,_,l,p),S=0;if(w.forEach(function(t){S=Math.max(t.duration+t.delay,S)}),p.length)return Ly(e,this._triggerName,n,r,b,f,m,[],[],g,v,S,p);w.forEach(function(t){var n=t.element,r=Pm(g,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var o=Pm(v,n,{});t.postStyleProps.forEach(function(t){return o[t]=!0}),n!==e&&y.add(n)});var C=sy(y.values());return Ly(e,this._triggerName,n,r,b,f,m,w,C,g,v,S)},t}(),Hy=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=Xm(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var o=t;Object.keys(o).forEach(function(t){var i=o[t];i.length>1&&(i=iy(i,r,e)),n[t]=i})}}),n},t}(),zy=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new Hy(t.style,t.options&&t.options.params||{})}),By(this.states,"true","1"),By(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new Vy(t,e,n.states))}),this.fallbackTransition=new Vy(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,r){return this.transitionFactories.find(function(o){return o.match(t,e,n,r)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function By(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var qy=new ky,Qy=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=vy(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,o=km(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var o,i=[],s=this._animations[t],a=new Map;if(s?(o=Iy(this._driver,e,s,"ng-enter","ng-leave",{},{},n,qy,i)).forEach(function(t){var e=Pm(a,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));a.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,ym)})});var u=Em(o.map(function(t){var e=a.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(function(){return r.destroy(t)}),this.players.push(u),u},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var o=Im(e,"","","");return xm(this._getPlayer(t),n,o,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),Ky=[],Wy={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Gy={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zy="__ng_removed",Xy=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var r=Xm(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),$y=new Xy("void"),Jy=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,sg(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var o,i=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var s=Pm(this._elementListeners,t,[]),a={name:e,phase:n,callback:r};s.push(a);var u=Pm(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(sg(t,"ng-trigger"),sg(t,"ng-trigger-"+e),u[e]=$y),function(){i._engine.afterFlush(function(){var t=s.indexOf(a);t>=0&&s.splice(t,1),i._triggers[e]||delete u[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var o=this;void 0===r&&(r=!0);var i=this._getTrigger(e),s=new tg(this.id,e,t),a=this._engine.statesByElement.get(t);a||(sg(t,"ng-trigger"),sg(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));var u=a[e],l=new Xy(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a[e]=l,u||(u=$y),"void"===l.value||u.value!==l.value){var c=Pm(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==o.id&&t.triggerName==e&&t.queued&&t.destroy()});var p=i.matchTransition(u.value,l.value,t,l.params),h=!1;if(!p){if(!r)return;p=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:u,toState:l,player:s,isFallbackTransition:h}),h||(sg(t,"ng-animate-queued"),s.onStart(function(){ag(t,"ng-animate-queued")})),s.onDone(function(){var e=o.players.indexOf(s);e>=0&&o.players.splice(e,1);var n=o._engine.playersByElement.get(t);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),c.push(s),s}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var o=0;o=0){for(var r=!1,o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,e)){this._namespaceList.splice(o+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),o=0;o=0&&this.collectedLeaveElements.splice(i,1)}if(t){var s=this._fetchNamespace(t);s&&s.insertNode(e,n)}r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),sg(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),ag(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n){if(eg(e)){var r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[Zy]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,o){return eg(e)?this._fetchNamespace(t).listen(e,n,r,o):function(){}},t.prototype._buildInstruction=function(t,e,n,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,o)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return Em(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[Zy];if(n&&n.setForRemoval){if(t[Zy]=Wy,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;x--)this._namespaceList[x].drainQueuedTransitions(e).forEach(function(t){var e=t.player,i=t.element;if(E.push(e),n.collectedEnterElements.length){var s=i[Zy];if(s&&s.setForMove)return void e.destroy()}var p=!f||!n.driver.containsElement(f,i),h=S.get(i),d=y.get(i),m=n._buildInstruction(t,r,d,h,p);if(m.errors&&m.errors.length)k.push(m);else{if(p)return e.onStart(function(){return ey(i,m.fromStyles)}),e.onDestroy(function(){return ty(i,m.toStyles)}),void o.push(e);if(t.isFallbackTransition)return e.onStart(function(){return ey(i,m.fromStyles)}),e.onDestroy(function(){return ty(i,m.toStyles)}),void o.push(e);m.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(i,m.timelines),a.push({instruction:m,player:e,element:i}),m.queriedElements.forEach(function(t){return Pm(u,t,[]).push(e)}),m.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=l.get(e);r||l.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),m.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=c.get(e);r||c.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}});if(k.length){var T=[];k.forEach(function(t){T.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return T.push("- "+t+"\n")})}),E.forEach(function(t){return t.destroy()}),this.reportError(T)}var I=new Map,P=new Map;a.forEach(function(t){var e=t.element;r.has(e)&&(P.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,I))}),o.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){Pm(I,e,[]).push(t),t.destroy()})});var A=v.filter(function(t){return lg(t,l,c)}),N=new Map;rg(N,this.driver,_,c,ym).forEach(function(t){lg(t,l,c)&&A.push(t)});var O=new Map;m.forEach(function(t,e){rg(O,n.driver,new Set(t),l,Sm)}),A.forEach(function(t){var e=N.get(t),n=O.get(t);N.set(t,i({},e,n))});var R=[],D=[],M={};a.forEach(function(t){var e=t.element,i=t.player,a=t.instruction;if(r.has(e)){if(h.has(e))return i.onDestroy(function(){return ty(e,a.toStyles)}),i.disabled=!0,i.overrideTotalTime(a.totalTime),void o.push(i);var u=M;if(P.size>1){for(var l=e,c=[];l=l.parentNode;){var p=P.get(l);if(p){u=p;break}c.push(l)}c.forEach(function(t){return P.set(t,u)})}var f=n._buildAnimation(i.namespaceId,a,I,s,O,N);if(i.setRealPlayer(f),u===M)R.push(i);else{var d=n.playersByElement.get(u);d&&d.length&&(i.parentPlayer=Em(d)),o.push(i)}}else ey(e,a.fromStyles),i.onDestroy(function(){return ty(e,a.toStyles)}),D.push(i),h.has(e)&&o.push(i)}),D.forEach(function(t){var e=s.get(t.element);if(e&&e.length){var n=Em(e);t.setRealPlayer(n)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var j=0;j0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new _m(t.duration,t.delay)},t}(),tg=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new _m,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return xm(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){Pm(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function eg(t){return t&&1===t.nodeType}function ng(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function rg(t,e,n,r,o){var i=[];n.forEach(function(t){return i.push(ng(t))});var s=[];r.forEach(function(n,r){var i={};n.forEach(function(t){var n=i[t]=e.computeStyle(r,t,o);n&&0!=n.length||(r[Zy]=Gy,s.push(r))}),t.set(r,i)});var a=0;return n.forEach(function(t){return ng(t,i[a++])}),s}function og(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),o=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var i=o.get(e);if(i)return i;var s=e.parentNode;return i=n.has(s)?s:r.has(s)?1:t(s),o.set(e,i),i}(t);1!==e&&n.get(e).push(t)}),n}var ig="$$classes";function sg(t,e){if(t.classList)t.classList.add(e);else{var n=t[ig];n||(n=t[ig]={}),n[e]=!0}}function ag(t,e){if(t.classList)t.classList.remove(e);else{var n=t[ig];n&&delete n[e]}}function ug(t,e,n){Em(n).onDone(function(){return t.processLeaveNode(e)})}function lg(t,e,n){var r=n.get(t);if(!r)return!1;var o=e.get(t);return o?r.forEach(function(t){return o.add(t)}):e.set(t,r),n.delete(t),!0}var cg=function(){function t(t,e,n){var r=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Yy(t,e,n),this._timelineEngine=new Qy(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,o){var i=t+"-"+r,s=this._triggerCache[i];if(!s){var a=[],u=vy(this._driver,o,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(t,e){return new zy(t,e)}(r,u),this._triggerCache[i]=s}this._transitionEngine.registerTrigger(e,r,s)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var o=c(Am(n),2);this._timelineEngine.command(o[0],e,o[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,o){if("@"==n.charAt(0)){var i=c(Am(n),2);return this._timelineEngine.listen(i[0],e,i[1],o)}return this._transitionEngine.listen(t,e,n,r,o)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),pg="animation",hg="animationend",fg=function(){function t(t,e,n,r,o,i,s){var a=this;this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=o,this._fillMode=i,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return a._handleCallback(t)}}return t.prototype.apply=function(){var t,e,n;e=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=bg(t=this._element,"").trim()).length&&(function(t,e){for(var n=0;n=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),gg(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(r=yg(n=bg(t=this._element,"").split(","),e))>=0&&(n.splice(r,1),vg(t,"",n.join(","))))},t}();function dg(t,e,n){vg(t,"PlayState",n,mg(t,e))}function mg(t,e){var n=bg(t,"");return n.indexOf(",")>0?yg(n.split(","),e):yg([n],e)}function yg(t,e){for(var n=0;n=0)return n;return-1}function gg(t,e,n){n?t.removeEventListener(hg,e):t.addEventListener(hg,e)}function vg(t,e,n,r){var o=pg+e;if(null!=r){var i=t.style[o];if(i.length){var s=i.split(",");s[r]=n,n=s.join(",")}}t.style[o]=n}function bg(t,e){return t.style[pg+e]}var _g="linear",wg=function(){function t(t,e,n,r,o,i,s){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=o,this._finalStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||_g,this.totalTime=r+o,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new fg(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:hy(t.element,r))})}this.currentSnapshot=e},t}(),Sg=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r._startingStyles={},r.__initialized=!1,r._styles=Bm(n),r}return o(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,t.prototype.destroy.call(this))},e}(_m),Cg=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return Um(t)},t.prototype.matchesElement=function(t,e){return Vm(t,e)},t.prototype.containsElement=function(t,e){return Hm(t,e)},t.prototype.query=function(t,e,n){return zm(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){var r="@keyframes "+e+" {\n",o="";(n=n.map(function(t){return Bm(t)})).forEach(function(t){o=" ";var e=parseFloat(t.offset);r+=""+o+100*e+"% {\n",o+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=o+"animation-timing-function: "+n+";\n"));default:return void(r+=""+o+e+": "+n+";\n")}}),r+=o+"}\n"}),r+="}\n";var i=document.createElement("style");return i.innerHTML=r,i},t.prototype.animate=function(t,e,n,r,o,i,s){void 0===i&&(i=[]),s&&this._notifyFaultyScrubber();var a=i.filter(function(t){return t instanceof wg}),u={};ly(n,r)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})});var l=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=cy(t,e,u));if(0==n)return new Sg(t,l);var c="gen_css_kf_"+this._count++,p=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(p);var h=new wg(t,e,c,n,r,o,l);return h.onDestroy(function(){var t;(t=p).parentNode.removeChild(t)}),h},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),Eg=function(){function t(t,e,n){this.element=t,this.keyframes=e,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:hy(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),kg=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(xg().toString()),this._cssKeyframesDriver=new Cg}return t.prototype.validateStyleProperty=function(t){return Um(t)},t.prototype.matchesElement=function(t,e){return Vm(t,e)},t.prototype.containsElement=function(t,e){return Hm(t,e)},t.prototype.query=function(t,e,n){return zm(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,r,o,i,s){if(void 0===i&&(i=[]),!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,o,i);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(a.easing=o);var u={},l=i.filter(function(t){return t instanceof Eg});return ly(n,r)&&l.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})}),e=cy(t,e=e.map(function(t){return $m(t,!1)}),u),new Eg(t,e,a)},t}();function xg(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Tg=function(t){function e(e,n){var r=t.call(this)||this;return r._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:he.None,styles:[],data:{animation:[]}}),r}return o(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?gm(t):t;return Ag(this._renderer,null,e,"register",[n]),new Ig(e,this._renderer)},s([a(1,Lt(rp))],e)}(mm),Ig=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return o(e,t),e.prototype.create=function(t,e){return new Pg(this._id,t,e||{},this._renderer)},e}(function(){}),Pg=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t=0;n--){var r=e[n];if(r.svgElement){var o=this._extractSvgIconFromSet(r.svgElement,t);if(o)return o}}return null},t.prototype._loadSvgIconFromConfig=function(t){var e=this;return this._fetchUrl(t.url).pipe(J(function(t){return e._createSvgElementForSingleIcon(t)}))},t.prototype._loadSvgIconSetFromConfig=function(t){var e=this;return t.svgElement?Wu(t.svgElement):this._fetchUrl(t.url).pipe(J(function(n){return t.svgElement||(t.svgElement=e._svgElementFromString(n)),t.svgElement}))},t.prototype._createSvgElementForSingleIcon=function(t){var e=this._svgElementFromString(t);return this._setSvgAttributes(e),e},t.prototype._extractSvgIconFromSet=function(t,e){var n=t.querySelector("#"+e);if(!n)return null;var r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r));var o=this._svgElementFromString("");return o.appendChild(r),this._setSvgAttributes(o)},t.prototype._svgElementFromString=function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n},t.prototype._toSvgElement=function(t){for(var e=this._svgElementFromString(""),n=0;n controls are locked!",Wu(t)):!1===t.canControl?(console.log("Player is not yet playing, calling get-track-list..."),o.getTracksService.getTracks(o.folderId)):(o.getTracksService.setPlaylist(t.playlist),o.getTracksService.setStatus(t),o.router.navigate(["/player"],{relativeTo:o.route,skipLocationChange:!0}),Wu(t))};var i="";n.queryParams.subscribe(function(t){var e=t.id;console.log("id param changed to :: "+e+" from "+i),e!==i&&(o.folderId=e,console.log("Attempting to pass to player..."),o.getTracksService.getStatus().pipe(function t(e,n){return"function"==typeof n?function(r){return r.pipe(t(function(t,r){return nt(e(t,r)).pipe(J(function(e,o){return n(t,e,r,o)}))}))}:function(t){return t.lift(new ov(e))}}(o.isPlayerReady)).subscribe(o.processPlaylist,o.handleErrors)),i=e})}return t.prototype.styleObject=function(){if(!this.getStylesService.getStyles())return{border:"none",paddingTop:"1.6rem"}},t.prototype.itemStyleObject=function(){if(!this.getStylesService.getStyles())return{background:"black",marginTop:"0.4em",marginBottom:"0.4em"}},t.prototype.ngOnInit=function(){this.folderId=this.route.snapshot.queryParamMap.get("id"),this.loading=!0},t.prototype.navigateToPlaylist=function(t){console.log("Hack navigation to :: ",t),this.router.navigate(["/tracks"],{relativeTo:this.route,queryParams:{id:t},queryParamsHandling:"merge"})},t}(),av=lo({encapsulation:0,styles:[[".error[_ngcontent-%COMP%]{width:100%;text-align:center;margin-top:45vh;font-size:2em}.selector-heading[_ngcontent-%COMP%]{font-size:1.7em;padding-bottom:.5em}#mainBox[_ngcontent-%COMP%]{padding-top:2rem;padding-bottom:2em;border:.9em solid #ed028c}#mainBox[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-pack:center;justify-content:center;width:80vw;text-align:center;font-size:2.5em;padding-top:.3em;padding-bottom:.3em}.item[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{text-decoration:none}"]],data:{}});function uv(t){return es(0,[(t()(),Lo(0,0,null,null,5,"div",[["id","mainBox"]],null,null,null,null,null)),xi(1,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(2,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Ji(-1,null,["Please wait..."])),(t()(),Lo(4,0,null,null,1,"mat-spinner",[["class","white mat-spinner mat-progress-spinner"],["mode","indeterminate"],["role","progressbar"]],[[2,"_mat-animation-noopable",null],[4,"width","px"],[4,"height","px"]],null,null,Bg,Vg)),xi(5,49152,null,0,hm,[Mn,Gd,[2,Pl],[2,Lg],pm],null,null)],function(t,e){t(e,1,0,e.component.styleObject())},function(t,e){t(e,4,0,fi(e,5)._noopAnimations,fi(e,5).diameter,fi(e,5).diameter)})}function lv(t){return es(0,[(t()(),Lo(0,0,null,null,6,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==fi(t,1).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),xi(1,671744,null,0,cd,[ad,wf,tl],{routerLink:[0,"routerLink"]},null),Zi(2,2),(t()(),Lo(3,0,null,null,3,"div",[["class","item"]],null,null,null,null,null)),(t()(),Lo(4,0,null,null,2,"div",[["class","text"]],null,null,null,null,null)),(t()(),Ji(5,null,["",""])),Gi(6,1)],function(t,e){t(e,1,0,t(e,2,0,"/player",e.parent.context.$implicit.ID))},function(t,e){t(e,0,0,fi(e,1).target,fi(e,1).href),t(e,5,0,so(e,5,0,t(e,6,0,fi(e.parent.parent.parent,0),e.parent.context.$implicit.Name)))})}function cv(t){return es(0,[(t()(),Lo(0,0,null,null,10,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==fi(t,1).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),xi(1,671744,null,0,cd,[ad,wf,tl],{queryParams:[0,"queryParams"],routerLink:[1,"routerLink"]},null),Xi(2,{id:0}),Zi(3,1),(t()(),Lo(4,0,null,null,6,"div",[["class","item"]],null,null,null,null,null)),(t()(),Lo(5,0,null,null,5,"div",[["class","text"]],null,null,null,null,null)),(t()(),Ji(6,null,[" "," "])),Gi(7,1),(t()(),Lo(8,0,null,null,2,"mat-icon",[["class","mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,nv,ev)),xi(9,638976,null,0,Yg,[Mn,Xg,[8,null]],null,null),(t()(),Ji(-1,0,["arrow_right_alt"]))],function(t,e){t(e,1,0,t(e,2,0,e.parent.context.$implicit.ID),t(e,3,0,"/tracks")),t(e,9,0)},function(t,e){t(e,0,0,fi(e,1).target,fi(e,1).href),t(e,6,0,so(e,6,0,t(e,7,0,fi(e.parent.parent.parent,0),e.parent.context.$implicit.Name))),t(e,8,0,fi(e,9).inline)})}function pv(t){return es(0,[(t()(),Lo(0,0,null,null,4,"div",[],null,null,null,null,null)),xi(1,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Fo(16777216,null,null,1,null,lv)),xi(3,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Fo(0,[["folderLink",2]],null,0,null,cv))],function(t,e){t(e,1,0,e.component.itemStyleObject()),t(e,3,0,!e.context.$implicit.IsDir,fi(e,4))},null)}function hv(t){return es(0,[(t()(),Lo(0,0,null,null,7,"div",[],null,null,null,null,null)),(t()(),Lo(1,0,null,null,6,"div",[["id","mainBox"]],null,null,null,null,null)),xi(2,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(3,0,null,null,1,"div",[["class","selector-heading"]],null,null,null,null,null)),(t()(),Ji(-1,null,["Select treatment:"])),(t()(),Fo(16777216,null,null,2,null,pv)),xi(6,278528,null,0,ml,[Bn,zn,pr],{ngForOf:[0,"ngForOf"]},null),Ti(131072,Tl,[qn])],function(t,e){var n=e.component;t(e,2,0,n.styleObject()),t(e,6,0,so(e,6,0,fi(e,7).transform(n.serverData)))},null)}function fv(t){return es(0,[(t()(),Lo(0,0,null,null,1,"div",[["class","error"]],null,null,null,null,null)),(t()(),Ji(1,null,["",""]))],null,function(t,e){t(e,1,0,e.component.errorResponse.message)})}function dv(t){return es(0,[Ti(0,rv,[]),(t()(),Fo(16777216,null,null,1,null,uv)),xi(2,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"]},null),(t()(),Fo(16777216,null,null,1,null,hv)),xi(4,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Fo(0,[["error",2]],null,0,null,fv))],function(t,e){var n=e.component;t(e,2,0,n.loading),t(e,4,0,null!=n.serverData,fi(e,5))},null)}var mv=ni("app-track-selector",sv,function(t){return es(0,[(t()(),Lo(0,0,null,null,1,"app-track-selector",[],null,null,null,dv,av)),xi(1,114688,null,0,sv,[fc,Ud,wf,ad],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),yv=function(){function t(t,e,n,r){this.route=t,this.getTracksService=e,this.getStylesService=n,this.router=r,this.errorResponse="",this.started=!1,this.playing=!1,this.skipped=!1,this.loading=!1,this.crossfading=!1,this.duration="XX:XX:XX",this.now="00:00:00",this.totalTicks=0,this.ticks=0,this.i_progress=0,this.playlist=null,this.numTracks=0,this.currentTrack=null,this.hrId=0}return t.prototype.pad=function(t){return("0"+t).slice(-2)},t.prototype.hhmmss=function(t){t=Math.floor(t);var e=Math.floor(t/60);t%=60;var n=Math.floor(e/60);return e%=60,this.pad(n)+":"+this.pad(e)+":"+this.pad(t)},t.prototype.isPlaying=function(){return this.playing&&this.ticks0&&this.skipped},t.prototype.styleObject=function(){if(!this.getStylesService.getStyles())return{background:"black"}},t.prototype.styleObjectBorder=function(){if(!this.getStylesService.getStyles())return{border:"none"}},t.prototype.ngOnInit=function(){var t=this;this.playlist=this.getTracksService.getPlaylist(),this.numTracks=this.playlist.length,this.currentTrack=this.playlist[0];var e=this.getTracksService.getInternalStatus();if(console.log("internal status: ",e),e.playerState){var n=this.getTracksService.getInternalStatus();this.totalTicks=n.trackDuration,this.started=!0,this.duration=this.hhmmss(n.trackDuration),this.ticks=n.position,this.playing=!0,this.playing="Playing"===n.playerState,console.log("pl from internal status: ",this.playlist);for(var r=0;r=+t.totalTicks&&0!=t.ticks&&t.playing&&(t.resetProgressBar(),t.next(void 0)),t.i_progress=Math.floor(t.ticks/t.totalTicks*100)},1e3),this.sub=this.route.params.subscribe(function(e){t.id=e.id})},t.prototype.endOfPlaylist=function(){return this.hrId+1===this.playlist.length},t.prototype.resetProgressBar=function(){this.now="00:00:00",this.ticks=0,this.playing=!1,this.skipped=!1,this.duration="XX:XX:XX"},t.prototype.play=function(){var t=this;this.loading=!0,this.started?this.getTracksService.playPause().subscribe(function(e){t.loading=!1,t.playing=!0,t.duration=t.hhmmss(e),console.log(e)}):this.getTracksService.playSingleTrack(this.currentTrack.ID).subscribe(function(e){t.loading=!1,t.duration=t.hhmmss(e),t.started=!0,t.playing=!0,t.totalTicks=Math.floor(+e),console.log(e)})},t.prototype.pause=function(){var t=this;this.playing=!1,this.loading=!0,this.getTracksService.playPause().subscribe(function(e){t.duration=t.hhmmss(e),console.log(e),t.loading=!1})},t.prototype.next=function(t){this.loading||(this.hrId=++this.hrId%this.numTracks,0===this.hrId&&(this.started=!1),this.fadeToTrack(this.hrId,this.playing?t:0))},t.prototype.previous=function(t){this.loading||this.hrId>0&&(this.hrId=--this.hrId%this.numTracks,this.currentTrack=this.playlist[this.hrId],this.fadeToTrack(this.hrId,this.playing?t:0))},t.prototype.fadeToTrack=function(t,e){var n=this;this.playing||this.started||0===e&&"XX:XX:XX"===this.duration&&this.started?(this.crossfading=!0,this.loading=!0,this.skipped=!0,this.playing=!1,this.getTracksService.crossfade(this.playlist[t].ID,e).subscribe(function(e){e>0?(n.loading=!1,n.playing=!0,n.ticks=0,n.duration=n.hhmmss(e),n.currentTrack=n.playlist[t],n.totalTicks=Math.floor(+e),n.skipped=!1,n.crossfading=!1,console.log(e)):console.log("ERROR ON CROSSFADE!")})):this.currentTrack=this.playlist[t]},t.prototype.trackIsMp4=function(){var t=this.currentTrack.Name;return"mp4"===t.substring(t.lastIndexOf(".")+1,t.length)},t.prototype.getClickedProgressBarPercentage=function(t,e,n){return Math.floor((t+e)/n*100)},t.prototype.tapToSeek=function(t,e){var n=this;if(this.started&&this.trackIsMp4()){this.loading=!0;var r=document.getElementById("progress-bar").offsetWidth,o=t.srcElement.offsetWidth,i=o*(t.offsetX/t.srcElement.offsetWidth),s=50;"f"===e?s=this.getClickedProgressBarPercentage(r-o,i,r):"b"===e&&(s=this.getClickedProgressBarPercentage(i,0,r)),100===s&&(s=98),this.getTracksService.tapToSeek(s).subscribe(function(t){n.now=n.hhmmss(t),n.ticks=+t,n.loading=!1})}},t.prototype.stop=function(){var t=this;this.loading=!0,console.log("STOP called!"),this.getTracksService.stopMusic().subscribe(function(e){0===e?(console.log("Stop success!"),t.getTracksService.setStatus({})):console.log("Stop failed... check the logs!"),t.router.navigate(["/tracks"],{relativeTo:t.route,queryParams:{id:null},queryParamsHandling:"merge"})}),this.playing=!1},t}(),gv=lo({encapsulation:0,styles:[['.container[_ngcontent-%COMP%]{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-align:center;align-items:center;width:100%;height:100vh;color:#fff;background:#000;box-sizing:border-box;font-family:"Trebuchet MS",Helvetica,sans-serif;font-weight:700}.container[_ngcontent-%COMP%] .trackNameBox[_ngcontent-%COMP%]{margin-top:2rem;width:80vw;text-align:center;font-size:2.9em;background:#570033}.trackNameBox[_ngcontent-%COMP%] .trackNameText[_ngcontent-%COMP%]{padding:.3em}.container[_ngcontent-%COMP%] .back-button-wrapper[_ngcontent-%COMP%]{margin-top:4em;margin-bottom:2em;width:80%}.container[_ngcontent-%COMP%] .treatment[_ngcontent-%COMP%]{margin-top:3em;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-pack:center;justify-content:center;height:5em;width:80vw;font-size:2.5em;background:#5d0037}.container[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{text-align:center}.text.track-counter[_ngcontent-%COMP%]{font-size:80%}.track-counter[_ngcontent-%COMP%]{margin-bottom:1em}.treatment[_ngcontent-%COMP%] .playback[_ngcontent-%COMP%]{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row}.player-controls[_ngcontent-%COMP%]{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center}.player-controls[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .player-controls[_ngcontent-%COMP%] .mat-spinner.mat-progress-spinner[_ngcontent-%COMP%]{display:block}.player-controls[_ngcontent-%COMP%] .player-control-icon.play-pause[_ngcontent-%COMP%]{background-color:#fff;color:#222;border-radius:100%}.player-control-icon[_ngcontent-%COMP%]{display:block;font-size:1em;width:1em;height:1em;padding:.7em}.mat-icon[_ngcontent-%COMP%]:hover{cursor:pointer}.playback[_ngcontent-%COMP%]{z-index:1000}.playback[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]{margin-top:3em;margin-bottom:1em;height:.3em;width:20vw;background-color:#fff}.playback[_ngcontent-%COMP%] .remaining[_ngcontent-%COMP%]{margin-top:3em;margin-bottom:1em;height:.3em;width:80vw;background-color:#424242}.playback[_ngcontent-%COMP%] .position-slider[_ngcontent-%COMP%]{margin-top:3em;margin-bottom:1em;height:.6em;width:9px;background-color:#fff}.timer[_ngcontent-%COMP%]{display:block;padding-top:3em}']],data:{animation:[{type:7,name:"simpleFadeAnimation",definitions:[{type:0,name:"in",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:0,name:"out",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:1,expr:"out => in",animation:[{type:4,styles:null,timings:"0.4s"}],options:null},{type:1,expr:"in => out",animation:[{type:4,styles:null,timings:"4s"}],options:null}],options:{}}]}});function vv(t){return es(0,[(t()(),Lo(0,0,null,null,2,"div",[["class","player-control-icon play-pause loading"]],null,null,null,null,null)),(t()(),Lo(1,0,null,null,1,"mat-spinner",[["class","mat-spinner mat-progress-spinner"],["mode","indeterminate"],["role","progressbar"]],[[2,"_mat-animation-noopable",null],[4,"width","px"],[4,"height","px"]],null,null,Bg,Vg)),xi(2,49152,null,0,hm,[Mn,Gd,[2,Pl],[2,Lg],pm],null,null)],null,function(t,e){t(e,1,0,fi(e,2)._noopAnimations,fi(e,2).diameter,fi(e,2).diameter)})}function bv(t){return es(0,[(t()(),Lo(0,0,null,null,2,"mat-icon",[["class","player-control-icon play-pause mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.pause()&&r),r},nv,ev)),xi(1,638976,null,0,Yg,[Mn,Xg,[8,null]],null,null),(t()(),Ji(-1,0,["pause"]))],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,fi(e,1).inline)})}function _v(t){return es(0,[(t()(),Lo(0,0,null,null,2,"mat-icon",[["class","player-control-icon play-pause mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.play()&&r),r},nv,ev)),xi(1,638976,null,0,Yg,[Mn,Xg,[8,null]],null,null),(t()(),Ji(-1,0,["play_arrow "]))],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,fi(e,1).inline)})}function wv(t){return es(0,[(t()(),Fo(16777216,null,null,1,null,bv)),xi(1,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Fo(0,[["notPlaying",2]],null,0,null,_v))],function(t,e){t(e,1,0,e.component.isPlaying(),fi(e,2))},null)}function Sv(t){return es(0,[(t()(),Lo(0,0,null,null,36,"div",[],null,null,null,null,null)),(t()(),Lo(1,0,null,null,35,"div",[["class","container"]],null,null,null,null,null)),xi(2,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(3,0,null,null,4,"div",[["class","back-button-wrapper"]],null,null,null,null,null)),(t()(),Lo(4,0,null,null,3,"a",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.stop()&&r),r},null,null)),(t()(),Lo(5,0,null,null,2,"mat-icon",[["class","back mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,nv,ev)),xi(6,638976,null,0,Yg,[Mn,Xg,[8,null]],null,null),(t()(),Ji(-1,0,["arrow_back"])),(t()(),Lo(8,0,null,null,4,"div",[["class","trackNameBox"]],null,null,null,null,null)),xi(9,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(10,0,null,null,2,"div",[["class","trackNameText"]],[[24,"@simpleFadeAnimation",0]],null,null,null,null)),(t()(),Ji(11,null,[" "," "])),Gi(12,1),(t()(),Lo(13,0,null,null,21,"div",[["class","treatment"]],null,null,null,null,null)),xi(14,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(15,0,null,null,1,"div",[["class","text track-counter"]],null,null,null,null,null)),(t()(),Ji(16,null,["Track "," / ",""])),(t()(),Lo(17,0,null,null,9,"div",[["class","player-controls"]],null,null,null,null,null)),(t()(),Lo(18,0,null,null,2,"mat-icon",[["class","player-control-icon prev mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.previous(4)&&r),r},nv,ev)),xi(19,638976,null,0,Yg,[Mn,Xg,[8,null]],null,null),(t()(),Ji(-1,0,["skip_previous"])),(t()(),Fo(16777216,null,null,1,null,vv)),xi(22,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Fo(0,[["notloading",2]],null,0,null,wv)),(t()(),Lo(24,0,null,null,2,"mat-icon",[["class","player-control-icon next mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.next(4)&&r),r},nv,ev)),xi(25,638976,null,0,Yg,[Mn,Xg,[8,null]],null,null),(t()(),Ji(-1,0,["skip_next"])),(t()(),Lo(27,0,null,null,7,"div",[["class","playback"],["id","progress-bar"]],null,null,null,null,null)),(t()(),Lo(28,0,null,null,2,"div",[["class","progress"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.tapToSeek(n,"b")&&r),r},null,null)),xi(29,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),Xi(30,{width:0}),(t()(),Lo(31,0,null,null,0,"div",[["class","position-slider"]],null,null,null,null,null)),(t()(),Lo(32,0,null,null,2,"div",[["class","remaining"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.tapToSeek(n,"f")&&r),r},null,null)),xi(33,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),Xi(34,{width:0}),(t()(),Lo(35,0,null,null,1,"div",[["class","timer"]],null,null,null,null,null)),(t()(),Ji(36,null,[""," / ",""]))],function(t,e){var n=e.component;t(e,2,0,n.styleObjectBorder()),t(e,6,0),t(e,9,0,n.styleObject()),t(e,14,0,n.styleObject()),t(e,19,0),t(e,22,0,n.loading,fi(e,23)),t(e,25,0),t(e,29,0,t(e,30,0,n.i_progress-0+"vw")),t(e,33,0,t(e,34,0,100-n.i_progress-0+"vw"))},function(t,e){var n=e.component;t(e,5,0,fi(e,6).inline),t(e,10,0,n.crossfading?"out":"in"),t(e,11,0,so(e,11,0,t(e,12,0,fi(e.parent,0),n.currentTrack.Name))),t(e,16,0,n.hrId+1,n.numTracks),t(e,18,0,fi(e,19).inline),t(e,24,0,fi(e,25).inline),t(e,36,0,n.now,n.duration)})}function Cv(t){return es(0,[(t()(),Lo(0,0,null,null,10,"div",[["class","container"]],null,null,null,null,null)),xi(1,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(2,0,null,null,4,"div",[["class","back-button-wrapper"]],null,null,null,null,null)),(t()(),Lo(3,0,null,null,3,"a",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.stop()&&r),r},null,null)),(t()(),Lo(4,0,null,null,2,"mat-icon",[["class","back mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,nv,ev)),xi(5,638976,null,0,Yg,[Mn,Xg,[8,null]],null,null),(t()(),Ji(-1,0,["arrow_back"])),(t()(),Lo(7,0,null,null,3,"div",[["class","trackNameBox"]],null,null,null,null,null)),xi(8,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(9,0,null,null,1,"div",[["class","trackNameText"]],null,null,null,null,null)),(t()(),Ji(-1,null,["No tracks found..."]))],function(t,e){var n=e.component;t(e,1,0,n.styleObjectBorder()),t(e,5,0),t(e,8,0,n.styleObject())},function(t,e){t(e,4,0,fi(e,5).inline)})}function Ev(t){return es(0,[Ti(0,rv,[]),(t()(),Fo(16777216,null,null,1,null,Sv)),xi(2,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Fo(0,[["noTracks",2]],null,0,null,Cv))],function(t,e){t(e,2,0,e.component.numTracks>0,fi(e,3))},null)}var kv=ni("app-track-control",yv,function(t){return es(0,[(t()(),Lo(0,0,null,null,1,"app-track-control",[],null,null,null,Ev,gv)),xi(1,114688,null,0,yv,[wf,fc,Ud,ad],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),xv="accent",Tv="primary",Iv=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Pv=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;i._platform=n,i._focusMonitor=r,i._animationMode=o,i.isRoundButton=i._hasHostAttributes("mat-fab","mat-mini-fab"),i.isIconButton=i._hasHostAttributes("mat-icon-button");for(var s=0,a=Iv;s*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],data:{}});function Ov(t){return es(2,[function(t,e,n){var r=[];for(var o in n)r.push({propName:o,bindingType:n[o]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:402653184,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:1,filterId:Co(1),bindings:r},ngContent:null}}(0,0,{ripple:0}),(t()(),Lo(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),Ki(null,0),(t()(),Lo(3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),xi(4,212992,[[1,4]],0,am,[Mn,cn,Gd,[2,sm],[2,Lg]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(t()(),Lo(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())},function(t,e){var n=e.component;t(e,3,0,n.isRoundButton||n.isIconButton,fi(e,4).unbounded)})}var Rv=lo({encapsulation:0,styles:[['html[_ngcontent-%COMP%]{background-color:#000}.settings-room-name[_ngcontent-%COMP%]{padding:.6em 0 .6em 10vw;background-color:#000;color:#fff;font-family:"Trebuchet MS",Helvetica,sans-serif;font-size:140%}.home-button[_ngcontent-%COMP%]:hover, .pair-button[_ngcontent-%COMP%]:hover{cursor:pointer}p.slave-prompt[_ngcontent-%COMP%]{padding:.6em 0 .6em 10vw}.pair-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:.3em;font-size:110%}.home-button[_ngcontent-%COMP%]{float:right;padding-right:1em}.reboot-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{float:right;margin-right:1.3em;font-size:110%}']],data:{}});function Dv(t){return es(0,[(t()(),Lo(0,0,null,null,3,"span",[["class","pair-button"]],null,[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==(!o.pairingInProgress&&o.pair())&&r),r},null,null)),(t()(),Lo(1,0,null,null,2,"button",[["class","btn"],["mat-stroked-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,Ov,Nv)),xi(2,180224,null,0,Pv,[Mn,Gd,$d,[2,Lg]],null,null),(t()(),Ji(-1,0,["pair"]))],null,function(t,e){t(e,1,0,fi(e,2).disabled||null,"NoopAnimations"===fi(e,2)._animationMode)})}function Mv(t){return es(0,[(t()(),Lo(0,0,null,null,1,"span",[["class","pair-button"]],null,null,null,null,null)),(t()(),Ji(-1,null,[" [ Rebooting, please wait 5 minutes then refresh... ] "]))],null,null)}function jv(t){return es(0,[(t()(),Lo(0,0,null,null,2,"button",[["class","btn"],["mat-stroked-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,Ov,Nv)),xi(1,180224,null,0,Pv,[Mn,Gd,$d,[2,Lg]],null,null),(t()(),Ji(-1,0,[" unpair "]))],null,function(t,e){t(e,0,0,fi(e,1).disabled||null,"NoopAnimations"===fi(e,1)._animationMode)})}function Fv(t){return es(0,[(t()(),Lo(0,0,null,null,1,"span",[["class","pair-button"]],null,null,null,null,null)),(t()(),Ji(-1,null,[" Pairing, please wait... "]))],null,null)}function Lv(t){return es(0,[(t()(),Lo(0,0,null,null,1,"span",[["class","pair-button"]],null,null,null,null,null)),(t()(),Ji(-1,null,[" Cancelling pairing, please wait... "]))],null,null)}function Uv(t){return es(0,[(t()(),Lo(0,0,null,null,1,"span",[["class","pair-button"]],null,null,null,null,null)),(t()(),Ji(-1,null,[" Pairing failed "]))],null,null)}function Vv(t){return es(0,[(t()(),Lo(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),xi(1,212992,null,0,dd,[fd,Bn,Ye,[8,null],qn],null,null),(t()(),Fo(0,null,null,0))],function(t,e){t(e,1,0)},null)}function Hv(t){return es(0,[(t()(),Lo(0,0,null,null,1,"p",[["class","slave-prompt"]],null,null,null,null,null)),(t()(),Ji(-1,null,[" Sorry, I'm being controlled by another LushRooms Pi "])),(t()(),Lo(2,0,null,null,2,"p",[["class","slave-prompt"]],null,null,null,null,null)),(t()(),Lo(3,0,null,null,1,"i",[],null,null,null,null,null)),(t()(),Ji(4,null,["(its IP address is ",")"]))],null,function(t,e){t(e,4,0,e.component.masterIp)})}function zv(t){return es(0,[(t()(),Lo(0,0,null,null,18,"div",[["class","settings-room-name"]],null,null,null,null,null)),(t()(),Ji(1,null,[" "," "])),(t()(),Fo(16777216,null,null,1,null,Dv)),xi(3,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"]},null),(t()(),Lo(4,0,null,null,3,"span",[["class","reboot-button"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.reboot()&&r),r},null,null)),(t()(),Lo(5,0,null,null,2,"button",[["class","btn"],["mat-stroked-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,Ov,Nv)),xi(6,180224,null,0,Pv,[Mn,Gd,$d,[2,Lg]],null,null),(t()(),Ji(-1,0,["\u26a0 reboot \u26a0"])),(t()(),Fo(16777216,null,null,1,null,Mv)),xi(9,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"]},null),(t()(),Lo(10,0,null,null,2,"span",[["class","pair-button"]],null,[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==(!o.unPairingInProgress&&o.unpair())&&r),r},null,null)),(t()(),Fo(16777216,null,null,1,null,jv)),xi(12,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"]},null),(t()(),Fo(16777216,null,null,1,null,Fv)),xi(14,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"]},null),(t()(),Fo(16777216,null,null,1,null,Lv)),xi(16,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"]},null),(t()(),Fo(16777216,null,null,1,null,Uv)),xi(18,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"]},null),(t()(),Fo(16777216,null,null,1,null,Vv)),xi(20,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Fo(0,[["slavedPrompt",2]],null,0,null,Hv))],function(t,e){var n=e.component;t(e,3,0,n.slaveIp&&!n.partyModeActive),t(e,9,0,n.rebootInProgress),t(e,12,0,n.partyModeActive),t(e,14,0,n.pairingInProgress),t(e,16,0,n.unPairingInProgress),t(e,18,0,n.pairingError),t(e,20,0,!n.slaved,fi(e,21))},function(t,e){t(e,1,0,e.component.roomName),t(e,5,0,fi(e,6).disabled||null,"NoopAnimations"===fi(e,6)._animationMode)})}var Bv=ni("app-root",vc,function(t){return es(0,[(t()(),Lo(0,0,null,null,1,"app-root",[],null,null,null,zv,Rv)),xi(1,114688,null,0,vc,[hc,fc,yc,gc],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),qv=function(){},Qv=function(t,e,n){return new ua(qu,[vc],function(t){return function(t){for(var e={},n=[],r=!1,o=0;o=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}function a(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function p(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}($);function st(t){return t}function at(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),rt(st,t)}function ut(){return function(t){return t.lift(new lt(t))}}var lt=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new ct(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),ct=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(T),pt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new _).add(this.source.subscribe(new ft(this.getSubject(),this))),t.closed?(this._connection=null,t=_.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return ut()(this)},e}(R).prototype,ht={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:pt._subscribe},_isComplete:{value:pt._isComplete,writable:!0},getSubject:{value:pt.getSubject},connect:{value:pt.connect},refCount:{value:pt.refCount}},ft=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(F);function dt(){return new L}function yt(){return function(t){return ut()((e=dt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,ht);return r.source=t,r.subjectFactory=n,r})(t));var e}}function mt(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}var gt=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?mt({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),vt="__parameters__",bt="__prop__metadata__";function _t(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var s=e[i];o.push(i+":"+("string"==typeof s?JSON.stringify(s):Mt(s)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(ne,"\n ")}function ae(t,e){return new Error(se(t,e))}var ue=void 0;function le(t){var e=ue;return ue=t,e}function ce(t,e){if(void 0===e&&(e=0),void 0===ue)throw new Error("inject() must be called from an injection context");if(null===ue){var n=t.ngInjectableDef;if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&e)return null;throw new Error("Injector: NOT_FOUND ["+Mt(t)+"]")}return ue.get(t,8&e?null:void 0,e)}function pe(t){for(var e=[],n=0;n0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),bn=function(){function t(){this._applications=new Map,_n.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),_n.findTestabilityInTree(this,t,e)},s([u("design:paramtypes",[])],t)}(),_n=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),wn=!0,Sn=!1,Cn=new gt("AllowMultipleToken");function En(){return Sn=!0,wn}var kn=function(t,e){this.name=t,this.token=e};function xn(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new gt(r);return function(e){void 0===e&&(e=[]);var i=Tn();if(!i||i.injector.get(Cn,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var s=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(mn&&!mn.destroyed&&!mn.injector.get(Cn,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");mn=t.get(In);var e=t.get(Ue,null);e&&e.forEach(function(t){return t()})}(Gt.create({providers:s,name:r}))}return function(t){var e=Tn();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function Tn(){return mn&&!mn.destroyed?mn:null}var In=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new gn:("zone.js"===n?void 0:n)||new cn({enableLongStackTrace:En()}),i=[{provide:cn,useValue:o}];return o.run(function(){var e=Gt.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),s=n.injector.get(_e,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Nn(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){s.handleError(t)}})}),function(t,e,o){try{var i=((s=n.injector.get(Me)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return Oe(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}var s}(s,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(Qe),o=Pn({},e);return r.createCompiler([o]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,o)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(An);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Mt(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Pn(t,e){return Array.isArray(e)?e.reduce(Pn,t):i({},t,e)}var An=function(){function t(t,e,n,r,o,i){var s=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=En(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new R(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),u=new R(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){cn.assertNotInAngularZone(),Rt(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){cn.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof R?t[0]:at(n)(et(t,r))}(a,u.pipe(yt()))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof We?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof en?null:this._injector.get(nn),i=n.create(Gt.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var s=i.injector.get(vn,null);return s&&i.injector.get(bn).registerApplication(i.location.nativeElement,s),this._loadComponent(i),En()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,un(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Nn(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(He,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Nn(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=an("ApplicationRef#tick()"),t}();function Nn(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var On=function(){},Rn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),Dn=function(){},Mn=function(t){this.nativeElement=t},jn=function(){},Fn=function(){function t(){this.dirty=!0,this._results=[],this.changes=new ln,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[Ot()]=function(){return this._results[Ot()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),Ln=function(){},Un={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Vn=function(){function t(t,e){this._compiler=t,this._config=e||Un}return t.prototype.load=function(t){return this._compiler instanceof qe?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=c(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("crnd")(o).then(function(t){return t[i]}).then(function(t){return Hn(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=c(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return Hn(t,r,o)})},s([a(1,Ut())],t)}();function Hn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var zn=function(){},Bn=function(){},qn=function(){},Qn=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Kn?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Kn=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,p([o+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof Kn&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof Kn&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof Kn&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Qn),Wn=new Map;function Gn(t){return Wn.get(t)||null}function Zn(t){Wn.set(t.nativeNode,t)}function Xn(t,e){var n=Yn(t),r=Yn(e);return n&&r?function(t,e,n){for(var r=t[Ot()](),o=e[Ot()]();;){var i=r.next(),s=o.next();if(i.done&&s.done)return!0;if(i.done||s.done)return!1;if(!n(i.value,s.value))return!1}}(t,e,Xn):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||Dt(t,e)}var $n=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),Jn=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function Yn(t){return!!tr(t)&&(Array.isArray(t)||!(t instanceof Map)&&Ot()in t)}function tr(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var er=function(){function t(){}return t.prototype.supports=function(t){return Yn(t)},t.prototype.create=function(t){return new rr(t)},t}(),nr=function(t,e){return e},rr=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||nr}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Rr.hasOwnProperty(e)&&!Pr.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(Vr(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),Lr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ur=/([^\#-~ |!])/g;function Vr(t){return t.replace(/&/g,"&").replace(Lr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ur,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function Hr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var zr=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"),Br=/^url\(([^)]+)\)$/,qr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),Qr=function(){};function Kr(t,e,n){var r=t.state,o=1792&r;return o===e?(t.state=-1793&r|n,t.initIndex=-1,!0):o===n}function Wr(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Gr(t,e){return t.nodes[e]}function Zr(t,e){return t.nodes[e]}function Xr(t,e){return t.nodes[e]}function $r(t,e){return t.nodes[e]}function Jr(t,e){return t.nodes[e]}var Yr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function to(t,e,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){var n=new Error(t);return eo(n,e),n}(o,t)}function eo(t,e){t[de]=e,t[me]=e.logError.bind(e)}function no(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var ro=function(){},oo=new Map;function io(t){var e=oo.get(t);return e||(e=Mt(t)+"_"+oo.size,oo.set(t,e)),e}function so(t,e,n,r){if($n.isWrapped(r)){r=$n.unwrap(r);var o=t.def.nodes[e].bindingIndex+n,i=$n.unwrap(t.oldValues[o]);t.oldValues[o]=new $n(i)}return r}var ao="$$undefined",uo="$$empty";function lo(t){return{id:ao,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var co=0;function po(t,e,n,r){return!(!(2&t.state)&&Dt(t.oldValues[e.bindingIndex+n],r))}function ho(t,e,n,r){return!!po(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function fo(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!Xn(o,r)){var i=e.bindings[n].name;throw to(Yr.createDebugContext(t,e.nodeIndex),i+": "+o,i+": "+r,0!=(1&t.state))}}function yo(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function mo(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function go(t,e,n,r){try{return yo(33554432&t.def.nodes[e].flags?Zr(t,e).componentView:t),Yr.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function vo(t){return t.parent?Zr(t.parent,t.parentNodeDef.nodeIndex):null}function bo(t){return t.parent?t.parentNodeDef.parent:null}function _o(t,e){switch(201347067&e.flags){case 1:return Zr(t,e.nodeIndex).renderElement;case 2:return Gr(t,e.nodeIndex).renderText}}function wo(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function So(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function Co(t){return 1<-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var l=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:l,token:e.token},t._providers[l]=Bo,t._providers[l]=Zo(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{le(i)}}function Zo(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Go(t,n[0]));case 2:return new e(Go(t,n[0]),Go(t,n[1]));case 3:return new e(Go(t,n[0]),Go(t,n[1]),Go(t,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,ti(n,e),Yr.dirtyParentQueries(r),Jo(r),r}function $o(t,e,n){var r=e?_o(e,e.def.lastRenderRootNode):t.renderElement;Po(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Jo(t){Po(t,3,null,null,void 0)}function Yo(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ti(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var ei=new Object;function ni(t,e,n,r,o,i){return new ri(t,e,n,r,o,i)}var ri=function(t){function e(e,n,r,o,i,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=r,a}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=Io(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,s=Yr.createRootView(t,e||[],n,o,r,ei),a=Xr(s,i).instance;return n&&s.renderer.setAttribute(Zr(s,0).renderElement,"ng-version",fe.full),new oi(s,new ui(s),a)},e}(We),oi=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Mn(Zr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new hi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Ke);function ii(t,e,n){return new si(t,e,n)}var si=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new Mn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new hi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=bo(t),t=t.parent;return t?new hi(t,e):new hi(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Xo(this._data,t);Yr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new ui(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof en||(o=i.get(nn));var s=t.create(i,r,void 0,o);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,s=t;return o=s._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,Yo(i,r,o),function(t,e){var n=vo(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),Yr.dirtyParentQueries(o),$o(n,r>0?i[r-1]:null,o),s.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,s,a=this._embeddedViews.indexOf(t._view);return o=e,s=(i=(n=this._data).viewContainer._embeddedViews)[r=a],ti(i,r),null==o&&(o=i.length),Yo(i,o,s),Yr.dirtyParentQueries(s),Jo(s),$o(n,o>0?i[o-1]:null,s),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Xo(this._data,t);e&&Yr.destroyView(e)},t.prototype.detach=function(t){var e=Xo(this._data,t);return e?new ui(e):null},t}();function ai(t){return new ui(t)}var ui=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return Po(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){yo(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Yr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Yr.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Yr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Jo(this._view),Yr.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function li(t,e){return new ci(t,e)}var ci=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new ui(Yr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Mn(Zr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(zn);function pi(t,e){return new hi(t,e)}var hi=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Gt.THROW_IF_NOT_FOUND),Yr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:io(t)},e)},t}();function fi(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Zr(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Gr(t,n.nodeIndex).renderText;if(20240&n.flags)return Xr(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function di(t){return new yi(t.renderer)}var yi=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=c(Mo(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return Di(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(ji(t,e,n,o[0]));case 2:return r(ji(t,e,n,o[0]),ji(t,e,n,o[1]));case 3:return r(ji(t,e,n,o[0]),ji(t,e,n,o[1]),ji(t,e,n,o[2]));default:for(var s=Array(i),a=0;a0)l=y,ns(y)||(c=y);else for(;l&&d===l.nodeIndex+l.childCount;){var v=l.parent;v&&(v.childFlags|=l.childFlags,v.childMatchedQueries|=l.childMatchedQueries),c=(l=v)&&ns(l)?l.renderParent:l}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||ro,updateRenderer:r||ro,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:f}}function ns(t){return 0!=(1&t.flags)&&null===t.element.name}function rs(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function os(t,e,n,r){var o=as(t.root,t.renderer,t,e,n);return us(o,t.component,r),ls(o),o}function is(t,e,n){var r=as(t,t.renderer,null,null,e);return us(r,n,n),ls(r),r}function ss(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,as(t.root,o,t,e.element.componentProvider,n)}function as(t,e,n,r,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:s,initIndex:-1}}function us(t,e,n){t.component=e,t.context=n}function ls(t){var e;wo(t)&&(e=Zr(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&zo(t,e,0,n)&&(f=!0),h>1&&zo(t,e,1,r)&&(f=!0),h>2&&zo(t,e,2,o)&&(f=!0),h>3&&zo(t,e,3,i)&&(f=!0),h>4&&zo(t,e,4,s)&&(f=!0),h>5&&zo(t,e,5,a)&&(f=!0),h>6&&zo(t,e,6,u)&&(f=!0),h>7&&zo(t,e,7,l)&&(f=!0),h>8&&zo(t,e,8,c)&&(f=!0),h>9&&zo(t,e,9,p)&&(f=!0),f}(t,e,n,r,o,i,s,a,u,l,c,p);case 2:return function(t,e,n,r,o,i,s,a,u,l,c,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&ho(t,e,0,n)&&(h=!0),d>1&&ho(t,e,1,r)&&(h=!0),d>2&&ho(t,e,2,o)&&(h=!0),d>3&&ho(t,e,3,i)&&(h=!0),d>4&&ho(t,e,4,s)&&(h=!0),d>5&&ho(t,e,5,a)&&(h=!0),d>6&&ho(t,e,6,u)&&(h=!0),d>7&&ho(t,e,7,l)&&(h=!0),d>8&&ho(t,e,8,c)&&(h=!0),d>9&&ho(t,e,9,p)&&(h=!0),h){var y=e.text.prefix;d>0&&(y+=ts(n,f[0])),d>1&&(y+=ts(r,f[1])),d>2&&(y+=ts(o,f[2])),d>3&&(y+=ts(i,f[3])),d>4&&(y+=ts(s,f[4])),d>5&&(y+=ts(a,f[5])),d>6&&(y+=ts(u,f[6])),d>7&&(y+=ts(l,f[7])),d>8&&(y+=ts(c,f[8])),d>9&&(y+=ts(p,f[9]));var m=Gr(t,e.nodeIndex).renderText;t.renderer.setValue(m,y)}return h}(t,e,n,r,o,i,s,a,u,l,c,p);case 16384:return function(t,e,n,r,o,i,s,a,u,l,c,p){var h=Xr(t,e.nodeIndex),f=h.instance,d=!1,y=void 0,m=e.bindings.length;return m>0&&po(t,e,0,n)&&(d=!0,y=Li(t,h,e,0,n,y)),m>1&&po(t,e,1,r)&&(d=!0,y=Li(t,h,e,1,r,y)),m>2&&po(t,e,2,o)&&(d=!0,y=Li(t,h,e,2,o,y)),m>3&&po(t,e,3,i)&&(d=!0,y=Li(t,h,e,3,i,y)),m>4&&po(t,e,4,s)&&(d=!0,y=Li(t,h,e,4,s,y)),m>5&&po(t,e,5,a)&&(d=!0,y=Li(t,h,e,5,a,y)),m>6&&po(t,e,6,u)&&(d=!0,y=Li(t,h,e,6,u,y)),m>7&&po(t,e,7,l)&&(d=!0,y=Li(t,h,e,7,l,y)),m>8&&po(t,e,8,c)&&(d=!0,y=Li(t,h,e,8,c,y)),m>9&&po(t,e,9,p)&&(d=!0,y=Li(t,h,e,9,p,y)),y&&f.ngOnChanges(y),65536&e.flags&&Wr(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,o,i,s,a,u,l,c,p);case 32:case 64:case 128:return function(t,e,n,r,o,i,s,a,u,l,c,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&ho(t,e,0,n)&&(f=!0),d>1&&ho(t,e,1,r)&&(f=!0),d>2&&ho(t,e,2,o)&&(f=!0),d>3&&ho(t,e,3,i)&&(f=!0),d>4&&ho(t,e,4,s)&&(f=!0),d>5&&ho(t,e,5,a)&&(f=!0),d>6&&ho(t,e,6,u)&&(f=!0),d>7&&ho(t,e,7,l)&&(f=!0),d>8&&ho(t,e,8,c)&&(f=!0),d>9&&ho(t,e,9,p)&&(f=!0),f){var y=$r(t,e.nodeIndex),m=void 0;switch(201347067&e.flags){case 32:m=new Array(h.length),d>0&&(m[0]=n),d>1&&(m[1]=r),d>2&&(m[2]=o),d>3&&(m[3]=i),d>4&&(m[4]=s),d>5&&(m[5]=a),d>6&&(m[6]=u),d>7&&(m[7]=l),d>8&&(m[8]=c),d>9&&(m[9]=p);break;case 64:m={},d>0&&(m[h[0].name]=n),d>1&&(m[h[1].name]=r),d>2&&(m[h[2].name]=o),d>3&&(m[h[3].name]=i),d>4&&(m[h[4].name]=s),d>5&&(m[h[5].name]=a),d>6&&(m[h[6].name]=u),d>7&&(m[h[7].name]=l),d>8&&(m[h[8].name]=c),d>9&&(m[h[9].name]=p);break;case 128:var g=n;switch(d){case 1:m=g.transform(n);break;case 2:m=g.transform(r);break;case 3:m=g.transform(r,o);break;case 4:m=g.transform(r,o,i);break;case 5:m=g.transform(r,o,i,s);break;case 6:m=g.transform(r,o,i,s,a);break;case 7:m=g.transform(r,o,i,s,a,u);break;case 8:m=g.transform(r,o,i,s,a,u,l);break;case 9:m=g.transform(r,o,i,s,a,u,l,c);break;case 10:m=g.transform(r,o,i,s,a,u,l,c,p)}}y.value=m}return f}(t,e,n,r,o,i,s,a,u,l,c,p);default:throw"unreachable"}}(t,e,r,o,i,s,a,u,l,c,h,f):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&fo(t,e,0,n),h>1&&fo(t,e,1,r),h>2&&fo(t,e,2,o),h>3&&fo(t,e,3,i),h>4&&fo(t,e,4,s),h>5&&fo(t,e,5,a),h>6&&fo(t,e,6,u),h>7&&fo(t,e,7,l),h>8&&fo(t,e,8,c),h>9&&fo(t,e,9,p)}(t,e,r,o,i,s,a,u,l,c,p,h):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);Ns.forEach(function(e,r){if(i.has(r.ngInjectableDef.providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:ko(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[io(r)]=o}})}}(t=t.factory(function(){return ro})),t):t}(r))}var As=new Map,Ns=new Map,Os=new Map;function Rs(t){As.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&Ns.set(t.token,t)}function Ds(t,e){var n=Io(Io(e.viewDefFactory).nodes[0].element.componentView);Os.set(t,n)}function Ms(){As.clear(),Ns.clear(),Os.clear()}function js(t){if(0===As.size)return t;var e=function(t){for(var e=[],n=null,r=0;r"}(e))}function La(t){return Array.isArray(t)?t[0]:t}function Ua(t){if(2===t.tNode.type){var e=t.data;return e[ya]?e[ya][va]:null}return t.tNode.next?t.view[t.tNode.next.index]:null}function Va(t){return t.tNode.child?La((2===t.tNode.type?t.data:t.view)[t.tNode.child.index]):null}function Ha(t){if(-1===t.tNode.index&&2===t.tNode.type){var e=t.data[ka];return-1===e?null:t.view[e].dynamicLContainerNode}var n=t.tNode.parent;return La(n?t.view[n.index]:t.view[va])}var za=[];function Ba(t){for(var e=t[va];2===e.tNode.type;)ngDevMode&&ca(t[da],"lViewData.parent"),e=(t=t[da])[va];return ngDevMode&&Fa(e,3),ngDevMode&&ca(e.data,"node.data"),e}function qa(t,e,n,r,o){0===t?Ma(e)?e.insertBefore(n,r,o):n.insertBefore(r,o,!0):1===t?Ma(e)?e.removeChild(n,r):n.removeChild(r):2===t&&(ngDevMode&&ngDevMode.rendererDestroyNode++,e.destroyNode(r))}function Qa(t){if(-1===t[fa].childIndex)return null;var e=t[t[fa].childIndex];return e.data?e.data:e.dynamicLContainerNode.data}function Ka(t,e){var n;return(n=t[va])&&2===n.tNode.type?Ha(n).data:t[da]===e?null:t[da]}function Wa(t){if(t[fa]){var e=t;!function(t){var e=t[fa].cleanup;if(null!=e){for(var n=0;n=h.length){var f=h[p]=Su(e,p,r,o,a,null);if(!$a&&Xa){var d=Xa.tNode;d.next=f,d.dynamicContainerNode&&(d.dynamicContainerNode.next=f)}}c.tNode=h[p],$a&&(Ya=null,(null==Xa.tNode.child&&Xa.view===eu||2===Xa.tNode.type)&&(Xa.tNode.child=c.tNode))}if(2==(2&e)&&l){var y=i;ngDevMode&&null!=y[va]&&pa("lViewData[HOST_NODE] should not have been initialized"),y[va]=c,uu&&(y[fa].node=c.tNode)}return Xa=c,$a=!0,c}function yu(t,e,n,r){var o,i=$a,s=Xa;if(null==t.data[da]&&t.data[Sa]&&!e.template)ku(t.data[Sa]);else try{$a=!0,Xa=null,o=lu(t.data,t),bu(),e.template(r,n),2&r?pu():t.data[fa].firstTemplatePass=uu=!1}finally{cu(o,1==(1&r)),$a=i,Xa=s}return t}function mu(t,e,n,r){var o=lu(e,t);try{Za.begin&&Za.begin(),r?(bu(),r(gu(e),n),pu()):(au||(Pa(eu,Ja,tu),Aa(nu,Ja.contentHooks,Ja.contentCheckHooks,tu)),hu(iu),Cu(0,ha))}finally{Za.end&&Za.end(),cu(o)}}function gu(t){return 1&t[ga]?3:2}var vu=null;function bu(){vu=null}function _u(t,e,n,r,o){return ngDevMode&&ngDevMode.tView++,{id:t,template:e,viewQuery:o,node:null,data:su.slice(),childIndex:-1,bindingStartIndex:-1,directives:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,hostBindings:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof n?n():n,pipeRegistry:"function"==typeof r?r():r,currentMatches:null}}function wu(t,e){ngDevMode&&Pu(-1),Za=t;var n,r=t.createRenderer(null,null),o="string"==typeof e?Ma(r)?r.selectRootElement(e):r.querySelector(e):e;if(ngDevMode&&!o)throw new Error("Renderer: "+("string"==typeof e?"Host node with selector not found:":"Host node is required:")+" ["+("function"==typeof(n=e)?n.name||n:"string"==typeof n?n:null==n?"":""+n)+"]");return o}function Su(t,e,n,r,o,i){return ngDevMode&&ngDevMode.tNode++,{type:t,index:e,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:i,next:null,child:null,parent:o,dynamicContainerNode:null,detached:null,stylingTemplate:null,projection:null}}function Cu(t,e){ngDevMode&&Pu(e);var n=eu[e];ngDevMode&&Fa(n,3),ngDevMode&&ca(n.data,"Component's host node should have an LViewData attached.");var r=n.data;Eu(r)&&6&r[ga]&&(ngDevMode&&Pu(t,nu),Iu(r,n,nu[t]))}function Eu(t){return 8==(8&t[ga])}function ku(t){for(var e=0;e=(e?e.length:0)&&pa("index expected to be a valid data index")}(t,e||eu)}function Au(t,e){null==e&&(e=eu),la(e.length,t,"index "+t+" expected to be at the end of arr (length "+e.length+")")}function Nu(t){ngDevMode&&ca(t,"expecting component got null");var e=t[ru];return ngDevMode&&ca(t,"object is not a component"),e}var Ou=ou;function Ru(t){return{components:[],scheduler:t,clean:Ou}}var Du=function(){function t(t,e){this._view=t,this._appRef=null,this._viewContainerRef=null,this._lViewNode=null,this.context=e}return t.prototype._setComponentContext=function(t,e){this._view=t,this.context=e},Object.defineProperty(t.prototype,"destroyed",{get:function(){return 32==(32&this._view[ga])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t,e;this._viewContainerRef&&Eu(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),Ma(e=(t=this._view)[Ea])&&e.destroyNode&&function(e,n,r,o,i,s){for(var a=t[va],u=-1;a;){var l=null,c=a.tNode.type;if(3===c)qa(2,o,null,a.native,s),a.dynamicLContainerNode&&qa(2,o,null,a.dynamicLContainerNode.native,s);else if(0===c){qa(2,o,null,a.native,s);var p=a,h=p.dynamicLContainerNode?p.dynamicLContainerNode.data:p.data;(l=h[Ra].length?Va(h[Ra][0]):null)&&(s=p.dynamicLContainerNode?p.dynamicLContainerNode.native:p.native)}else if(1===c){var f=Ba(a.view),d=f.tNode.projection[a.tNode.projection];za[++u]=a,l=d?f.data[da][d.index]:null}else l=Va(a);if(null===l)for(null===(l=Ua(a))&&8192&a.tNode.flags&&(l=Ua(za[u--]));a&&!l;){if(null===(a=Ha(a))||a===n)return null;a.tNode.next||0!==c||(s=a.native),l=Ua(a)}a=l}}(0,t[va],0,e),function(t){if(-1===t[fa].childIndex)return Wa(t);for(var e=Qa(t);e;){var n=null;if(e.length>=ha?e[fa].childIndex>-1&&(n=Qa(e)):e[Ra].length&&(n=e[Ra][0].data),null==n){for(;e&&!e[ya]&&e!==t;)Wa(e),e=Ka(e,t);Wa(e||t),n=e&&e[ya]}e=n}}(t),t[ga]|=32},t.prototype.onDestroy=function(t){var e,n;n=t,function(t){return t[wa]||(t[wa]=[])}(e=this._view).push(n),e[fa].firstTemplatePass&&function(t){return t[fa].cleanup||(t[fa].cleanup=[])}(e).push(e[wa].length-1,null)},t.prototype.markForCheck=function(){!function(t){for(var e=t;null!=e[da];)e[ga]|=4,e=e[da];var n,r;e[ga]|=4,ngDevMode&&ca(e[Sa],"rootContext"),(n=e[Sa]).clean==ou&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){ku(n),r(null),n.clean=ou}))}(this._view)},t.prototype.detach=function(){this._view[ga]&=-9},t.prototype.reattach=function(){this._view[ga]|=8},t.prototype.detectChanges=function(){Tu(this.context)},t.prototype.checkNoChanges=function(){!function(t){au=!0;try{Tu(t)}finally{au=!1}}(this.context)},t.prototype.attachToViewContainerRef=function(t){this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){this._appRef=null},t.prototype.attachToAppRef=function(t){this._appRef=t},t}(),Mu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.resolveComponentFactory=function(t){return ngDevMode&&(void 0===e&&(e="Type passed in is not ComponentType, it does not have 'ngComponentDef' property."),t.ngComponentDef||pa(e)),new Uu(t.ngComponentDef);var e},e}(Ye);function ju(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var Fu=new gt("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return Ru(ce(Lu))}}),Lu=new gt("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return requestAnimationFrame.bind(window)}}),Uu=function(t){function e(e){var n=t.call(this)||this;return n.componentDef=e,n.componentType=e.type,n.selector=e.selectors[0][0],n.ngContentSelectors=[],n}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return ju(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return ju(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var o,i,s=void 0===n,a=r?r.injector.get(On):ja,u=s?(o=this.selector,Ma(i=a.createRenderer(null,this.componentDef.rendererType)||Ga)?i.createElement(o,vu):null===vu?i.createElement(o):i.createElementNS(vu,o)):wu(a,n),l=r&&!s?r.injector.get(Fu):Ru(requestAnimationFrame.bind(window)),c=fu(a.createRenderer(u,this.componentDef.rendererType),_u(-1,null,null,null,null),l,this.componentDef.onPush?4:2);c[Ca]=r&&r.injector||null;var p,h,f=lu(c,null);try{if(a.begin&&a.begin(),h=function(t,e,n,r){$a=!1,Xa=null;var o,i=du(0,3,e,null,null,fu(Ga,(o=n.template).ngPrivateData||(o.ngPrivateData=_u(-1,o,n.directiveDefs,n.pipeDefs,n.viewQuery)),null,n.onPush?4:2,r));return uu&&(i.tNode.flags=4096,n.diPublic&&n.diPublic(n),Ja.directives=[n]),i}(0,u,this.componentDef),l.components.push(p=function(t,e,n){if(ngDevMode&&la(eu[ba],-1,"directives should be created before any bindings"),ngDevMode&&la($a,!0,"previousOrParentNode should be a parent"),Object.defineProperty(e,ru,{enumerable:!1,value:Xa}),null==nu&&(eu[_a]=nu=[]),ngDevMode&&Au(t,nu),nu[t]=e,uu){var r=Xa.tNode.flags;0==(4095&r)?Xa.tNode.flags=t<<14|4096&r|1:(ngDevMode&&4095==(4095&r)&&pa("Reached the max number of directives"),Xa.tNode.flags++)}else{var o=n.diPublic;o&&o(n)}return null!=n.attributes&&3==Xa.tNode.type&&function(t,e){for(var n=Ma(Ga),r=0;r>14,r=n+(4095&t),o=n;o0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=nl.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+nl.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+nl.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},s([a(1,Ut()),a(1,Lt(el))],e)}(tl),il=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return nl.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+nl.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+nl.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+nl.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},s([a(1,Ut()),a(1,Lt(el))],e)}(tl),sl=void 0,al=["en",[["a","p"],["AM","PM"],sl],[["AM","PM"],sl,sl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],sl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],sl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",sl,"{1} 'at' {0}",sl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],ul={},ll=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),cl=new gt("UseV4Plurals"),pl=function(){},hl=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return o(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=ul[e];if(n)return n;var r=e.split("-")[0];if(n=ul[r])return n;if("en"===r)return al;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case ll.Zero:return"zero";case ll.One:return"one";case ll.Two:return"two";case ll.Few:return"few";case ll.Many:return"many";default:return"other"}},s([a(0,Lt(gr)),a(1,Ut()),a(1,Lt(cl))],e)}(pl);function fl(t,e){var n,r;e=encodeURIComponent(e);try{for(var o=l(t.split(";")),i=o.next();!i.done;i=o.next()){var s=i.value,a=s.indexOf("="),u=c(-1==a?[s,""]:[s.slice(0,a),s.slice(a+1)],2),p=u[1];if(u[0].trim()===e)return decodeURIComponent(p)}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}var dl=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),yl=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){En()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new dl(null,e._ngForOf,-1,-1),o),s=new ml(t,i);n.push(s)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),s=new ml(t,i),n.push(s))});for(var r=0;r0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,p(n)),this.headers.set(e,r);break;case"d":var o=t.value;if(o){var i=this.headers.get(e);if(!i)return;0===(i=i.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),Fl=function(){function t(){}return t.prototype.encodeKey=function(t){return Ll(t)},t.prototype.encodeValue=function(t){return Ll(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function Ll(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 Ul=function(){function t(t){void 0===t&&(t={});var e,n,r,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Fl,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=c(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),i=o[0],s=o[1],a=r.get(i)||[];a.push(s),r.set(i,a)}),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function Vl(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Hl(t){return"undefined"!=typeof Blob&&t instanceof Blob}function zl(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Bl=function(){function t(t,e,n,r){var o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new jl),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":s=200&&this.status<300}}(),Kl=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=ql.ResponseHeader,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Ql),Wl=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=ql.Response,n.body=void 0!==e.body?e.body:null,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Ql),Gl=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return o(e,t),e}(Ql);function Zl(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Xl=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;if(void 0===n&&(n={}),t instanceof Bl)r=t;else{var i;i=n.headers instanceof jl?n.headers:new jl(n.headers);var s=void 0;n.params&&(s=n.params instanceof Ul?n.params:new Ul({fromObject:n.params})),r=new Bl(t,e,void 0!==n.body?n.body:null,{headers:i,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var a=Wu(r).pipe(Gu(function(t){return o.handler.handle(t)}));if(t instanceof Bl||"events"===n.observe)return a;var u=a.pipe(Zu(function(t){return t instanceof Wl}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return u.pipe(J(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return u.pipe(J(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return u.pipe(J(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return u.pipe(J(function(t){return t.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new Ul).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,Zl(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,Zl(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,Zl(n,e))},t}(),$l=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),Jl=new gt("HTTP_INTERCEPTORS"),Yl=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),tc=/^\)\]\}',?\n/,ec=function(){},nc=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),rc=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new R(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var s=t.serializeBody(),a=null,u=function(){if(null!==a)return a;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new jl(r.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return a=new Kl({headers:o,status:e,statusText:n,url:i})},l=function(){var e=u(),o=e.headers,i=e.status,s=e.statusText,a=e.url,l=null;204!==i&&(l=void 0===r.response?r.responseText:r.response),0===i&&(i=l?200:0);var c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof l){var p=l;l=l.replace(tc,"");try{l=""!==l?JSON.parse(l):null}catch(t){l=p,c&&(c=!1,l={error:t,text:l})}}c?(n.next(new Wl({body:l,headers:o,status:i,statusText:s,url:a||void 0})),n.complete()):n.error(new Gl({error:l,headers:o,status:i,statusText:s,url:a||void 0}))},c=function(t){var e=new Gl({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},p=!1,h=function(e){p||(n.next(u()),p=!0);var o={type:ql.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},f=function(t){var e={type:ql.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",h),null!==s&&r.upload&&r.upload.addEventListener("progress",f)),r.send(s),n.next({type:ql.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",l),t.reportProgress&&(r.removeEventListener("progress",h),null!==s&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}})},t}(),oc=new gt("XSRF_COOKIE_NAME"),ic=new gt("XSRF_HEADER_NAME"),sc=function(){},ac=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=fl(t,this.cookieName),this.lastCookieString=t),this.lastToken},s([a(0,Lt(Pl)),a(1,Lt(Ve)),a(2,Lt(oc))],t)}(),uc=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},s([a(1,Lt(ic))],t)}(),lc=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(Jl,[]);this.chain=e.reduceRight(function(t,e){return new $l(t,e)},this.backend)}return this.chain.handle(t)},t}(),cc=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:uc,useClass:Yl}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:oc,useValue:t.cookieName}:[],t.headerName?{provide:ic,useValue:t.headerName}:[]]}},t}(),pc=function(){},hc=function(){function t(t){this.httpClient=t,this.hostname=Bu.hostname,this.settings=null}return t.prototype.getSettings=function(){return this.httpClient.get("http://"+this.hostname+"/settings")},t.prototype.setRoomName=function(t){console.log("New name: ",t)},t.prototype.setBrightness=function(t){console.log("New brightness: ",t)},t.ngInjectableDef=mt({factory:function(){return new t(ce(Xl))},token:t,providedIn:"root"}),t}(),fc=function(){function t(t){this.httpClient=t,this.hostname=Bu.hostname,this.testnum=0,this.playlist=null,this.status=null}return t.prototype.incT=function(){console.log(this.testnum),this.testnum++},t.prototype.setPlaylist=function(t){this.playlist=t},t.prototype.getPlaylist=function(){return this.playlist},t.prototype.setStatus=function(t){this.status=t},t.prototype.getInternalStatus=function(){return this.status},t.prototype.getStatus=function(){return this.httpClient.get("http://"+this.hostname+"/status")},t.prototype.getTracks=function(t){var e="";return t&&(e="?id="+t),this.httpClient.get("http://"+this.hostname+"/get-track-list"+e)},t.prototype.tapToSeek=function(t){return this.httpClient.get("http://"+this.hostname+"/seek?position="+t)},t.prototype.getSingleTrack=function(t){return this.httpClient.get("http://"+this.hostname+"/get-single-track?id="+t)},t.prototype.playSingleTrack=function(t){return this.httpClient.get("http://"+this.hostname+"/play-single-track?id="+t)},t.prototype.playPause=function(){return this.httpClient.get("http://"+this.hostname+"/play-pause")},t.prototype.crossfade=function(t,e){return this.httpClient.get("http://"+this.hostname+"/crossfade?id="+t+"&interval="+e)},t.prototype.pauseSingleTrack=function(t){return this.httpClient.get("http://"+this.hostname+"/pause-track?id="+t)},t.prototype.stopMusic=function(){return this.httpClient.get("http://"+this.hostname+"/stop")},t.ngInjectableDef=mt({factory:function(){return new t(ce(Xl))},token:t,providedIn:"root"}),t}();function dc(){for(var t,e=[],n=0;n0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(t?Zu(function(e,n){return t(e,n,r)}):st,Sc(1),n?Ac(e):Ic(function(){return new vc}))}}function Dc(t,e){return function(n){return n.lift(new Mc(t,e,n))}}var Mc=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new jc(t,this.predicate,this.thisArg,this.source))},t}(),jc=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(T);function Fc(t){return function(e){var n=new Lc(t),r=e.lift(n);return n.caught=r}}var Lc=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Uc(t,this.selector,this.caught))},t}(),Uc=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(X(this,n))}},e}($);function Vc(t){return function(e){return 0===t?Ku():e.lift(new Hc(t))}}var Hc=function(){function t(t){if(this.total=t,this.total<0)throw new wc}return t.prototype.call=function(t,e){return e.subscribe(new zc(t,this.total))},t}(),zc=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return o(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(T);function Bc(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Zu(function(e,n){return t(e,n,r)}):st,Vc(1),n?Ac(e):Ic(function(){return new vc}))}}function qc(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Qc(t,e,n))}}var Qc=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Kc(t,this.accumulator,this.seed,this.hasSeed))},t}(),Kc=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return o(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(T),Wc=null;function Gc(){return Wc}var Zc,Xc={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},$c={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Jc={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};Pt.Node&&(Zc=Pt.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var Yc,tp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,Wc||(Wc=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,p(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 Xc},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return Zc.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;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;s||(s=t[i]=[]);var u=Dp(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:o});else{for(var l=!1,c=0;c-1},s([a(0,Lt(np)),a(1,Lt(Lp)),a(3,Ut()),a(3,Lt(Up))],e)}(fp),zp=["alt","control","meta","shift"],Bp={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},qp=function(t){function e(e){return t.call(this,e)||this}var n;return o(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var o=n.parseEventName(e),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Gc().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(e.pop()),i="";if(zp.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),i+=t+".")}),i+=o,0!=e.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",n=Gc().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),zp.forEach(function(r){r!=n&&(0,Bp[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(o){n.getEventFullKey(o)===t&&r.runGuarded(function(){return e(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},n=s([a(0,Lt(np))],e)}(fp),Qp=function(){},Kp=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case qr.NONE:return e;case qr.HTML:return e instanceof Gp?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{Ir=Ir||new Sr(t);var r=e?String(e):"";n=Ir.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Ir.getInertBodyElement(r)}while(r!==i);var s=new Fr,a=s.sanitizeChildren(Hr(n)||n);return En()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}finally{if(n)for(var u=Hr(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(e)));case qr.STYLE:return e instanceof Zp?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Br);return e&&kr(e[1])===e[1]||t.match(zr)&&function(t){for(var e=!0,n=!0,r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Oh(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Rh(t){return t.pipe(at(),Dc(function(t){return!0===t}))}function Dh(t){return Re(t)?t:Oe(t)?nt(Promise.resolve(t)):Wu(t)}function Mh(t,e,n){return n?function(t,e){return Ph(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Uh(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!Uh(s=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Uh(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var s=o.slice(0,n.segments.length),a=o.slice(n.segments.length);return!!Uh(n.segments,s)&&!!n.children[_h]&&e(n.children[_h],r,a)}(e,n,n.segments)}(t.root,e.root)}var jh=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Sh(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Bh.serialize(this)},t}(),Fh=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Oh(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return qh(this)},t}(),Lh=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Sh(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Xh(this)},t}();function Uh(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Vh(t,e){var n=[];return Oh(t.children,function(t,r){r===_h&&(n=n.concat(e(t,r)))}),Oh(t.children,function(t,r){r!==_h&&(n=n.concat(e(t,r)))}),n}var Hh=function(){},zh=function(){function t(){}return t.prototype.parse=function(t){var e=new ef(t);return new jh(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return qh(e);if(n){var r=e.children[_h]?t(e.children[_h],!1):"",o=[];return Oh(e.children,function(e,n){n!==_h&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=Vh(e,function(n,r){return r===_h?[t(e.children[_h],!1)]:[r+":"+t(n,!1)]});return qh(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Kh(t)+"="+Kh(e)}).join("&"):Kh(t)+"="+Kh(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Bh=new zh;function qh(t){return t.segments.map(function(t){return Xh(t)}).join("/")}function Qh(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Kh(t){return Qh(t).replace(/%3B/gi,";")}function Wh(t){return Qh(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Gh(t){return decodeURIComponent(t)}function Zh(t){return Gh(t.replace(/\+/g,"%20"))}function Xh(t){return""+Wh(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Wh(t)+"="+Wh(e[t])}).join(""));var e}var $h=/^[^\/()?;=#]+/;function Jh(t){var e=t.match($h);return e?e[0]:""}var Yh=/^[^=?&#]+/,tf=/^[^?&#]+/,ef=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Fh([],{}):new Fh([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[_h]=new Fh(t,e)),n},t.prototype.parseSegment=function(){var t=Jh(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Lh(Gh(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Jh(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Jh(this.remaining);r&&this.capture(n=r)}t[Gh(e)]=Gh(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Yh))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(tf);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Zh(n),s=Zh(r);if(t.hasOwnProperty(i)){var a=t[i];Array.isArray(a)||(t[i]=a=[a]),a.push(s)}else t[i]=s}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Jh(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=_h);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[_h]:new Fh([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),nf=function(t){this.segmentGroup=t||null},rf=function(t){this.urlTree=t};function of(t){return new R(function(e){return e.error(new nf(t))})}function sf(t){return new R(function(e){return e.error(new rf(t))})}function af(t){return new R(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var uf=function(){function t(t,e,n,r,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(nn)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,_h).pipe(J(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(Fc(function(e){if(e instanceof rf)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof nf)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,_h).pipe(J(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(Fc(function(t){if(t instanceof nf)throw e.noMatchError(t);throw t}))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,o=t.segments.length>0?new Fh([],((r={})[_h]=t,r)):t;return new jh(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(J(function(t){return new Fh([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Wu({});var i=[],s=[],a={};return Oh(n,function(n,o){var u,l,c=(u=o,l=n,r.expandSegmentGroup(t,e,l,u)).pipe(J(function(t){return a[o]=t}));o===_h?i.push(c):s.push(c)}),Wu.apply(null,i.concat(s)).pipe(_c(),Rc(),J(function(){return a}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var s=this;return Wu.apply(void 0,p(n)).pipe(J(function(a){return s.expandSegmentAgainstRoute(t,e,n,a,r,o,i).pipe(Fc(function(t){if(t instanceof nf)return Wu(null);throw t}))}),_c(),Bc(function(t){return!!t}),Fc(function(t,n){if(t instanceof vc||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,r,o))return Wu(new Fh([],{}));throw new nf(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,s){return hf(r)!==i?of(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):of(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?sf(i):this.lineralizeSegments(n,i).pipe(rt(function(n){var i=new Fh(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var s=this,a=lf(e,r,o),u=a.consumedSegments,l=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return of(e);var p=this.applyRedirectCommands(u,r.redirectTo,c);return r.redirectTo.startsWith("/")?sf(p):this.lineralizeSegments(r,p).pipe(rt(function(r){return s.expandSegment(t,e,n,r.concat(o.slice(l)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(J(function(t){return n._loadedConfig=t,new Fh(r,{})})):Wu(new Fh(r,{}));var s=lf(e,n,r),a=s.consumedSegments,u=s.lastChild;if(!s.matched)return of(e);var c=r.slice(u);return this.getChildConfig(t,n).pipe(rt(function(t){var n=t.module,r=t.routes,s=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return pf(t,e,n)&&hf(n)!==_h})}(t,n)?{segmentGroup:cf(new Fh(e,function(t,e){var n,r,o={};o[_h]=e;try{for(var i=l(t),s=i.next();!s.done;s=i.next()){var a=s.value;""===a.path&&hf(a)!==_h&&(o[hf(a)]=new Fh([],{}))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new Fh(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return pf(t,e,n)})}(t,n)?{segmentGroup:cf(new Fh(t.segments,function(t,e,n,r){var o,s,a={};try{for(var u=l(n),c=u.next();!c.done;c=u.next()){var p=c.value;pf(t,e,p)&&!r[hf(p)]&&(a[hf(p)]=new Fh([],{}))}}catch(t){o={error:t}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}return i({},r,a)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,a,c,r),u=s.segmentGroup,p=s.slicedSegments;return 0===p.length&&u.hasChildren()?o.expandChildren(n,r,u).pipe(J(function(t){return new Fh(a,t)})):0===r.length&&0===p.length?Wu(new Fh(a,{})):o.expandSegment(n,u,r,p,_h,!0).pipe(J(function(t){return new Fh(a.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?Wu(new Eh(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Wu(e._loadedConfig):function(t,e){var n=e.canLoad;return n&&0!==n.length?Rh(nt(n).pipe(J(function(n){var r=t.get(n);return Dh(r.canLoad?r.canLoad(e):r(e))}))):Wu(!0)}(t.injector,e).pipe(rt(function(r){return r?n.configLoader.load(t.injector,e).pipe(J(function(t){return e._loadedConfig=t,t})):function(t){return new R(function(e){return e.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(e)})):Wu(new Eh([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Wu(n);if(r.numberOfChildren>1||!r.children[_h])return af(t.redirectTo);r=r.children[_h]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new jh(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Oh(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),s={};return Oh(e.children,function(e,i){s[i]=o.createSegmentGroup(t,e,n,r)}),new Fh(i,s)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,o=0;try{for(var i=l(e),s=i.next();!s.done;s=i.next()){var a=s.value;if(a.path===t.path)return e.splice(o),a;o++}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function lf(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Ch)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function cf(t){if(1===t.numberOfChildren&&t.children[_h]){var e=t.children[_h];return new Fh(t.segments.concat(e.segments),e.children)}return t}function pf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function hf(t){return t.outlet||_h}var ff=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=df(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=df(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=yf(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return yf(t,this._root).map(function(t){return t.value})},t}();function df(t,e){var n,r;if(t===e.value)return e;try{for(var o=l(e.children),i=o.next();!i.done;i=o.next()){var s=df(t,i.value);if(s)return s}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function yf(t,e){var n,r;if(t===e.value)return[e];try{for(var o=l(e.children),i=o.next();!i.done;i=o.next()){var s=yf(t,i.value);if(s.length)return s.unshift(e),s}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return[]}var mf=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function gf(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var vf=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,Ef(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(ff);function bf(t,e){var n=function(t,e){var n=new Sf([],{},{},"",{},_h,e,null,t.root,-1,{});return new Cf("",new mf(n,[]))}(t,e),r=new bc([new Lh("",{})]),o=new bc({}),i=new bc({}),s=new bc({}),a=new bc(""),u=new _f(r,o,s,a,i,_h,e,n.root);return u.snapshot=n.root,new vf(new mf(u,[]),n)}var _f=function(){function t(t,e,n,r,o,i,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(J(function(t){return Sh(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(J(function(t){return Sh(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function wf(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],s=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(s.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:i({},t.params,e.params),data:i({},t.data,e.data),resolve:i({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Sf=function(){function t(t,e,n,r,o,i,s,a,u,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this.routeConfig=a,this._urlSegment=u,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Sh(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Sh(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Cf=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Ef(r,n),r}return o(e,t),e.prototype.toString=function(){return kf(this._root)},e}(ff);function Ef(t,e){e.value._routerState=t,e.children.forEach(function(e){return Ef(t,e)})}function kf(t){var e=t.children.length>0?" { "+t.children.map(kf).join(", ")+" } ":"";return""+t.value+e}function xf(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Ph(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Ph(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&If(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==Nh(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),Nf=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function Of(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[_h]:""+t}function Rf(t,e,n){if(t||(t=new Fh([],{})),0===t.segments.length&&t.hasChildren())return Df(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var s=t.segments[o],a=Of(n[r]),u=r0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Lf(a,u,s))return i;r+=2}else{if(!Lf(a,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2?function(n){return N(qc(t,e),Sc(1),Ac(e))(n)}:function(e){return N(qc(function(e,n,r){return t(e,n,r+1)}),Sc(1))(e)}}(function(t,e){return t})):Wu(null)},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var o=this,i=gf(e);t.children.forEach(function(t){o.setupRouteGuards(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),Oh(i,function(t,e){return o.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var o=t.value,i=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(i&&o.routeConfig===i.routeConfig){var a=this.shouldRunGuardsAndResolvers(i,o,o.routeConfig.runGuardsAndResolvers);a?this.canActivateChecks.push(new Uf(r)):(o.data=i.data,o._resolvedData=i._resolvedData),this.setupChildRouteGuards(t,e,o.component?s?s.children:null:n,r),a&&this.canDeactivateChecks.push(new Vf(s.outlet.component,i))}else i&&this.deactivateRouteAndItsChildren(e,s),this.canActivateChecks.push(new Uf(r)),this.setupChildRouteGuards(t,null,o.component?s?s.children:null:n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Tf(t,e)||!Ph(t.queryParams,e.queryParams);case"paramsChange":default:return!Tf(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=gf(t),o=t.value;Oh(r,function(t,r){n.deactivateRouteAndItsChildren(t,o.component?e?e.children.getContext(r):null:e)}),this.canDeactivateChecks.push(new Vf(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this;return nt(this.canDeactivateChecks).pipe(rt(function(e){return t.runCanDeactivate(e.component,e.route)}),Dc(function(t){return!0===t}))},t.prototype.runCanActivateChecks=function(){var t=this;return nt(this.canActivateChecks).pipe(Gu(function(e){return Rh(nt([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))}),Dc(function(t){return!0===t}))},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new mh(t)),Wu(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new dh(t)),Wu(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?Rh(nt(n).pipe(J(function(n){var r=e.getToken(n,t);return Dh(r.canActivate?r.canActivate(t,e.future):r(t,e.future)).pipe(Bc())}))):Wu(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1];return Rh(nt(t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t})).pipe(J(function(t){return Rh(nt(t.guards).pipe(J(function(r){var o=e.getToken(r,t.node);return Dh(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)).pipe(Bc())})))})))},t.prototype.extractCanActivateChild=function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?nt(r).pipe(rt(function(r){var o=n.getToken(r,e);return Dh(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)).pipe(Bc())})).pipe(Dc(function(t){return!0===t})):Wu(!0)},t.prototype.runResolve=function(t,e){return this.resolveNode(t._resolve,t).pipe(J(function(n){return t._resolvedData=n,t.data=i({},t.data,wf(t,e).resolve),null}))},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Wu({});if(1===r.length){var o=r[0];return this.getResolver(t[o],e).pipe(J(function(t){var e;return(e={})[o]=t,e}))}var i={};return nt(r).pipe(rt(function(r){return n.getResolver(t[r],e).pipe(J(function(t){return i[r]=t,t}))})).pipe(Rc(),J(function(){return i}))},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return Dh(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),zf=function(){},Bf=function(){function t(t,e,n,r,o,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return t.prototype.recognize=function(){try{var t=Kf(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,_h),n=new Sf([],Object.freeze({}),Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,{},_h,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new mf(n,e),o=new Cf(this.url,r);return this.inheritParamsAndData(o._root),Wu(o)}catch(t){return new R(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=wf(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,o=Vh(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===_h?-1:e.value.outlet===_h?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,r){var o,i;try{for(var s=l(t),a=s.next();!a.done;a=s.next()){var u=a.value;try{return this.processSegmentAgainstRoute(u,e,n,r)}catch(t){if(!(t instanceof zf))throw t}}}catch(t){o={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new zf},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new zf;if((t.outlet||_h)!==r)throw new zf;var o,s=[],a=[];if("**"===t.path){var u=n.length>0?Nh(n).parameters:{};o=new Sf(n,u,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,Zf(t),r,t.component,t,qf(e),Qf(e)+n.length,Xf(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new zf;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||Ch)(n,t,e);if(!r)throw new zf;var o={};Oh(r.posParams,function(t,e){o[e]=t.path});var s=r.consumed.length>0?i({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(e,t,n);s=l.consumedSegments,a=n.slice(l.lastChild),o=new Sf(s,l.parameters,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,Zf(t),r,t.component,t,qf(e),Qf(e)+s.length,Xf(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),p=Kf(e,s,a,c,this.relativeLinkResolution),h=p.segmentGroup,f=p.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(c,h);return[new mf(o,d)]}if(0===c.length&&0===f.length)return[new mf(o,[])];var y=this.processSegment(c,h,f,_h);return[new mf(o,y)]},t}();function qf(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Qf(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Kf(t,e,n,r,o){if(n.length>0&&function(t,e,n){return r.some(function(n){return Wf(t,e,n)&&Gf(n)!==_h})}(t,n)){var s=new Fh(e,function(t,e,n,r){var o,i,s={};s[_h]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var a=l(n),u=a.next();!u.done;u=a.next()){var c=u.value;if(""===c.path&&Gf(c)!==_h){var p=new Fh([],{});p._sourceSegment=t,p._segmentIndexShift=e.length,s[Gf(c)]=p}}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return s}(t,e,r,new Fh(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return Wf(t,e,n)})}(t,n)){var a=new Fh(t.segments,function(t,e,n,r,o,s){var a,u,c={};try{for(var p=l(r),h=p.next();!h.done;h=p.next()){var f=h.value;if(Wf(t,n,f)&&!o[Gf(f)]){var d=new Fh([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===s?t.segments.length:e.length,c[Gf(f)]=d}}}catch(t){a={error:t}}finally{try{h&&!h.done&&(u=p.return)&&u.call(p)}finally{if(a)throw a.error}}return i({},o,c)}(t,e,n,r,t.children,o));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var u=new Fh(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function Wf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Gf(t){return t.outlet||_h}function Zf(t){return t.data||{}}function Xf(t){return t.resolve||{}}var $f=function(){},Jf=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),Yf=new gt("ROUTES"),td=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(J(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new Eh(Ah(o.injector.get(Yf)).map(Ih),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?nt(this.loader.load(t)):Dh(t()).pipe(rt(function(t){return t instanceof rn?Wu(t):nt(e.compiler.compileModuleAsync(t))}))},t}(),ed=function(){},nd=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function rd(t){throw t}function od(t,e,n){return e.parse("/")}function id(t,e){return Wu(null)}var sd=function(){function t(t,e,n,r,o,i,s,a){var u=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.navigations=new bc(null),this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new L,this.errorHandler=rd,this.malformedUriErrorHandler=od,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:id,afterPreactivation:id},this.urlHandlingStrategy=new nd,this.routeReuseStrategy=new Jf,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(nn),this.console=o.get(ze);var l=o.get(cn);this.isNgZoneEnabled=l instanceof cn,this.resetConfig(a),this.currentUrlTree=new jh(new Fh([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new td(i,s,function(t){return u.triggerEvent(new hh(t))},function(t){return u.triggerEvent(new fh(t))}),this.routerState=bf(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.parseUrl(e.url),r="popstate"===e.type?"popstate":"hashchange",o=e.state&&e.state.navigationId?{navigationId:e.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(n,r,o,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){kh(t),this.config=t.map(Ih),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,r=e.queryParams,o=e.fragment,s=e.preserveQueryParams,a=e.queryParamsHandling,u=e.preserveFragment;En()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,c=u?this.currentUrlTree.fragment:o,h=null;if(a)switch(a){case"merge":h=i({},this.currentUrlTree.queryParams,r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=s?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,o){if(0===n.length)return Pf(e.root,e.root,e,r,o);var i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Af(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var i={};return Oh(r.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),p(t,[{outlets:i}])}if(r.segmentPath)return p(t,[r.segmentPath])}return"string"!=typeof r?p(t,[r]):0===o?(r.split("/").forEach(function(r,o){0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):p(t,[r])},[]);return new Af(n,e,r)}(n);if(i.toRoot())return Pf(e.root,new Fh([],{}),e,r,o);var s=function(t,n,r){if(t.isAbsolute)return new Nf(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new Nf(r.snapshot._urlSegment,!0,0);var o=If(t.commands[0])?0:1;return function(e,n,i){for(var s=r.snapshot._urlSegment,a=r.snapshot._lastPathIndex+o,u=t.numberOfDoubleDots;u>a;){if(u-=a,!(s=s.parent))throw new Error("Invalid number of '../'");a=s.segments.length}return new Nf(s,!1,a-u)}()}(i,0,t),a=s.processChildren?Df(s.segmentGroup,s.index,i.commands):Rf(s.segmentGroup,s.index,i.commands);return Pf(s.segmentGroup,a,e,r,o)}(l,this.currentUrlTree,t,h,c)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),En()&&this.isNgZoneEnabled&&!cn.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=t instanceof jh?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e [_ngcontent-%COMP%]:nth-child(1n){width:80vw;text-align:center;border:.2rem solid #fff;padding-top:.5em;padding-bottom:.5em;margin-top:.4em}#mainBox[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{padding-top:4rem;-webkit-transform:scale(2);transform:scale(2)}"]],data:{}});function Hd(t){return es(0,[(t()(),Lo(0,0,null,null,12,"div",[["id","mainBox"]],null,null,null,null,null)),xi(1,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(2,0,null,null,0,"img",[["class","image"],["src","./../../../assets/img/logo.PNG"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.changeStyles()&&r),r},null,null)),(t()(),Lo(3,0,null,null,9,"div",[["class","flexBox"]],null,null,null,null,null)),(t()(),Lo(4,0,null,null,4,"nav",[],null,null,null,null,null)),(t()(),Lo(5,0,null,null,3,"a",[["routerLink","/tracks"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==fi(t,6).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),xi(6,671744,null,0,ld,[sd,_f,tl],{routerLink:[0,"routerLink"]},null),(t()(),Lo(7,0,null,null,1,"div",[["class","treatments"]],null,null,null,null,null)),(t()(),Ji(-1,null,["spa treatments"])),(t()(),Lo(9,0,null,null,1,"div",[["class","howTo"]],null,null,null,null,null)),(t()(),Ji(-1,null,["how to use"])),(t()(),Lo(11,0,null,null,1,"div",[["class","report"]],null,null,null,null,null)),(t()(),Ji(-1,null,["report a problem"]))],function(t,e){t(e,1,0,e.component.styleObject()),t(e,6,0,"/tracks")},function(t,e){t(e,5,0,fi(e,6).target,fi(e,6).href)})}var zd=ni("app-splash-screen",Ud,function(t){return es(0,[(t()(),Lo(0,0,null,null,1,"app-splash-screen",[],null,null,null,Hd,Vd)),xi(1,114688,null,0,Ud,[fc,Ld],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]);function Bd(t){return null!=t&&""+t!="false"}function qd(t,e){return void 0===e&&(e=0),function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}var Qd,Kd="undefined"!=typeof Intl&&Intl.v8BreakIterator,Wd=function(){function t(t){this._platformId=t,this.isBrowser=this._platformId?this._platformId===Al:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Kd)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return t.ngInjectableDef=mt({factory:function(){return new t(ce(Ve,8))},token:t,providedIn:"root"}),t}();function Gd(){if(null==Qd&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Qd=!0}}))}finally{Qd=Qd||!1}return Qd}var Zd=function(){},Xd=function(){function t(t,e){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._unregisterGlobalListeners=function(){},this._monitoredElementCount=0}return t.prototype.monitor=function(t,e){var n=this;if(void 0===e&&(e=!1),!this._platform.isBrowser)return Wu(null);if(this._elementInfo.has(t)){var r=this._elementInfo.get(t);return r.checkChildren=e,r.subject.asObservable()}var o={unlisten:function(){},checkChildren:e,subject:new L};this._elementInfo.set(t,o),this._incrementMonitoredElementCount();var i=function(e){return n._onFocus(e,t)},s=function(e){return n._onBlur(e,t)};return this._ngZone.runOutsideAngular(function(){t.addEventListener("focus",i,!0),t.addEventListener("blur",s,!0)}),o.unlisten=function(){t.removeEventListener("focus",i,!0),t.removeEventListener("blur",s,!0)},o.subject.asObservable()},t.prototype.stopMonitoring=function(t){var e=this._elementInfo.get(t);e&&(e.unlisten(),e.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())},t.prototype.focusVia=function(t,e,n){this._setOriginForCurrentEventQueue(e),"function"==typeof t.focus&&t.focus(n)},t.prototype.ngOnDestroy=function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})},t.prototype._registerGlobalListeners=function(){var t=this;if(this._platform.isBrowser){var e=function(){t._lastTouchTarget=null,t._setOriginForCurrentEventQueue("keyboard")},n=function(){t._lastTouchTarget||t._setOriginForCurrentEventQueue("mouse")},r=function(e){null!=t._touchTimeoutId&&clearTimeout(t._touchTimeoutId),t._lastTouchTarget=e.target,t._touchTimeoutId=setTimeout(function(){return t._lastTouchTarget=null},650)},o=function(){t._windowFocused=!0,t._windowFocusTimeoutId=setTimeout(function(){return t._windowFocused=!1})};this._ngZone.runOutsideAngular(function(){document.addEventListener("keydown",e,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("touchstart",r,!Gd()||{passive:!0,capture:!0}),window.addEventListener("focus",o)}),this._unregisterGlobalListeners=function(){document.removeEventListener("keydown",e,!0),document.removeEventListener("mousedown",n,!0),document.removeEventListener("touchstart",r,!Gd()||{passive:!0,capture:!0}),window.removeEventListener("focus",o),clearTimeout(t._windowFocusTimeoutId),clearTimeout(t._touchTimeoutId),clearTimeout(t._originTimeoutId)}}},t.prototype._toggleClass=function(t,e,n){n?t.classList.add(e):t.classList.remove(e)},t.prototype._setClasses=function(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))},t.prototype._setOriginForCurrentEventQueue=function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,e._originTimeoutId=setTimeout(function(){return e._origin=null},1)})},t.prototype._wasCausedByTouch=function(t){var e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))},t.prototype._onFocus=function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===t.target)){var r=this._origin;r||(r=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}},t.prototype._onBlur=function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))},t.prototype._emitOrigin=function(t,e){this._ngZone.run(function(){return t.next(e)})},t.prototype._incrementMonitoredElementCount=function(){1==++this._monitoredElementCount&&this._registerGlobalListeners()},t.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(this._unregisterGlobalListeners(),this._unregisterGlobalListeners=function(){})},t.ngInjectableDef=mt({factory:function(){return new t(ce(cn),ce(Wd))},token:t,providedIn:"root"}),t}(),$d=new gt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Jd=function(){function t(t){this._sanityChecksEnabled=t,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._hasDoneGlobalChecks=!0)}return t.prototype._areChecksEnabled=function(){return this._sanityChecksEnabled&&En()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){return this._window&&(this._window.__karma__||this._window.jasmine)},t.prototype._checkDoctypeIsDefined=function(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkThemeIsPresent=function(){if(this._document&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}},t.prototype._checkHammerIsAvailable=function(){!this._hasCheckedHammer&&this._window&&(this._areChecksEnabled()&&!this._window.Hammer&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)},t}();function Yd(t,e){return function(t){function n(){for(var n=[],r=0;r *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var o=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var i=o[1],s=o[2],a=o[3];e.push(ym(i,a)),"<"!=s[0]||i==hm&&a==hm||e.push(ym(a,i))}(t,o,r)}):o.push(n),o),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:wm(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return cm(n,t,e)}),options:wm(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,o=0,i=t.steps.map(function(t){e.currentTime=r;var i=cm(n,t,e);return o=Math.max(o,e.currentTime),i});return e.currentTime=o,{type:3,steps:i,options:wm(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Sm(Gy(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var o=Sm(0,0,"");return o.dynamic=!0,o.strValue=r,o}return Sm((n=n||Gy(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var o=t.styles?t.styles:gy({});if(5==o.type)n=this.visitKeyframes(o,e);else{var i=t.styles,s=!1;if(!i){s=!0;var a={};r.easing&&(a.easing=r.easing),i=gy(a)}e.currentTime+=r.duration+r.delay;var u=this.visitStyle(i,e);u.isEmptyStep=s,n=u}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==yy?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,o=null;return n.forEach(function(t){if(_m(t)){var e=t,n=e.easing;if(n&&(o=n,delete e.easing),!r)for(var i in e)if(e[i].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,o=e.currentTime,i=e.currentTime;r&&i>0&&(i-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s,a,u,l=e.collectedStyles[e.currentQuerySelector],c=l[r],p=!0;c&&(i!=o&&i>=c.startTime&&o<=c.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+i+'ms" and "'+o+'ms"'),p=!1),i=c.startTime),p&&(l[r]={startTime:i,endTime:o}),e.options&&(s=e.errors,a=e.options.params||{},(u=rm(t[r])).length&&u.forEach(function(t){a.hasOwnProperty(t)||s.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var o=0,i=[],s=!1,a=!1,u=0,l=t.steps.map(function(t){var r=n._makeStyleAst(t,e),l=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(_m(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(_m(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=l&&(o++,c=r.offset=l),a=a||c<0||c>1,s=s||c0&&o0?o==h?1:p*o:i[o],a=s*y;e.currentTime=f+d.delay+a,d.duration=a,n._validateStyleAst(t,e),t.offset=s,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:cm(this,em(t.animation),e),options:wm(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:wm(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:wm(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var o=c(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(mm,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),i=o[0],s=o[1];e.currentQuerySelector=n.length?n+" "+i:i,Iy(e.collectedStyles,e.currentQuerySelector,{});var a=cm(this,em(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:wm(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Gy(t.timings,e.errors,!0);return{type:12,animation:cm(this,em(t.animation),e),timings:n,options:null}},t}(),bm=function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function _m(t){return!Array.isArray(t)&&"object"==typeof t}function wm(t){var e;return t?(t=Zy(t)).params&&(t.params=(e=t.params)?Zy(e):null):t={},t}function Sm(t,e,n){return{duration:t,delay:e,easing:n}}function Cm(t,e,n,r,o,i,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:s,subTimeline:a}}var Em=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,p(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),km=new RegExp(":enter","g"),xm=new RegExp(":leave","g");function Tm(t,e,n,r,o,i,s,a,u,l){return void 0===i&&(i={}),void 0===s&&(s={}),void 0===l&&(l=[]),(new Im).buildKeyframes(t,e,n,r,o,i,s,a,u,l)}var Im=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,o,i,s,a,u,l){void 0===l&&(l=[]),u=u||new Em;var c=new Am(t,e,u,r,o,l,[]);c.options=a,c.currentTimeline.setStyles([i],null,c.errors,a),cm(this,n,c);var p=c.timelines.filter(function(t){return t.containsAnimation()});if(p.length&&Object.keys(s).length){var h=p[p.length-1];h.allowOnlyTimelineStyles()||h.setStyles([s],null,c.errors,a)}return p.length?p.map(function(t){return t.buildKeyframes()}):[Cm(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);o!=i&&e.transformIntoNewTimeline(i)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,o=null!=n.duration?Ky(n.duration):null,i=null!=n.delay?Ky(n.delay):null;return 0!==o&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,o,i);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),cm(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,o=e,i=t.options;if(i&&(i.params||i.delay)&&((o=e.createSubContext(i)).transformIntoNewTimeline(),null!=i.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Pm);var s=Ky(i.delay);o.delayNextStep(s)}t.steps.length&&(t.steps.forEach(function(t){return cm(n,t,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],o=e.currentTimeline.currentTime,i=t.options&&t.options.delay?Ky(t.options.delay):0;t.steps.forEach(function(s){var a=e.createSubContext(t.options);i&&a.delayNextStep(i),cm(n,s,a),o=Math.max(o,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(o),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return Gy(e.params?om(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,i=e.createSubContext().currentTimeline;i.easing=n.easing,t.styles.forEach(function(t){i.forwardTime((t.offset||0)*o),i.setStyles(t.styles,t.easing,e.errors,e.options),i.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(i),e.transformIntoNewTimeline(r+o),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,o=t.options||{},i=o.delay?Ky(o.delay):0;i&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Pm);var s=r,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;var u=null;a.forEach(function(r,o){e.currentQueryIndex=o;var a=e.createSubContext(t.options,r);i&&a.delayNextStep(i),r===e.element&&(u=a.currentTimeline),cm(n,t.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,o=t.timings,i=Math.abs(o.duration),s=i*(e.currentQueryTotal-1),a=i*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=e.currentTimeline;a&&u.delayNextStep(a);var l=u.currentTime;cm(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)},t}(),Pm={},Am=function(){function t(t,e,n,r,o,i,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=i,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Pm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Nm(this._driver,e,0),s.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,o=this.options;null!=r.duration&&(o.duration=Ky(r.duration)),null!=r.delay&&(o.delay=Ky(r.delay));var i=r.params;if(i){var s=o.params;s||(s=this.options.params={}),Object.keys(i).forEach(function(t){e&&s.hasOwnProperty(t)||(s[t]=om(i[t],s,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var o=n||this.element,i=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=Pm,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},o=new Om(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,o,i){var s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(km,"."+this._enterClassName)).replace(xm,"."+this._leaveClassName);var a=this._driver.query(this.element,t,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,p(a))}return o||0!=s.length||i.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),Nm=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||yy,e._currentKeyframe[t]=yy}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var o=this;e&&(this._previousKeyframe.easing=e);var i=r&&r.params||{},s=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=yy}):Xy(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(s).forEach(function(t){var e=om(s[t],i,n);o._pendingStyles[t]=e,o._localTimelineStyles.hasOwnProperty(t)||(o._backFill[t]=o._globalTimelineStyles.hasOwnProperty(t)?o._globalTimelineStyles[t]:yy),o._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],o=t._styleSummary[n];(!r||o.time>r.time)&&e._updateStyle(n,o.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(i,s){var a=Xy(i,!0);Object.keys(a).forEach(function(t){var r=a[t];r==wy?e.add(t):r==yy&&n.add(t)}),r||(a.offset=s/t.duration),o.push(a)});var i=e.size?im(e.values()):[],s=n.size?im(n.values()):[];if(r){var a=o[0],u=Zy(a);a.offset=0,u.offset=1,o=[a,u]}return Cm(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)},t}(),Om=function(t){function e(e,n,r,o,i,s,a){void 0===a&&(a=!1);var u=t.call(this,e,n,s.delay)||this;return u.element=n,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=i,u._stretchStartingKeyframe=a,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return o(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,o=e.easing;if(this._stretchStartingKeyframe&&n){var i=[],s=r+n,a=n/s,u=Xy(t[0],!1);u.offset=0,i.push(u);var l=Xy(t[0],!1);l.offset=Rm(a),i.push(l);for(var c=t.length-1,p=1;p<=c;p++){var h=Xy(t[p],!1);h.offset=Rm((n+h.offset*r)/s),i.push(h)}r=s,n=0,o="",t=i}return Cm(this.element,t,this.preStyleProps,this.postStyleProps,r,n,o,!0)},e}(Nm);function Rm(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var Dm=function(){},Mm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.normalizePropertyName=function(t,e){return am(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var o="",i=n.toString().trim();if(jm[e]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return i+o},e}(Dm),jm=function(t){var e={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(t){return e[t]=!0}),e}();function Fm(t,e,n,r,o,i,s,a,u,l,c,p,h){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:p,errors:h}}var Lm={},Um=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,r){return function(t,e,n,r,o){return t.some(function(t){return t(e,n,r,o)})}(this.ast.matchers,t,e,n,r)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],o=this._stateStyles[t],i=r?r.buildStyles(e,n):{};return o?o.buildStyles(e,n):i},t.prototype.build=function(t,e,n,r,o,s,a,u,l,c){var p=[],h=this.ast.options&&this.ast.options.params||Lm,f=this.buildStyles(n,a&&a.params||Lm,p),d=u&&u.params||Lm,y=this.buildStyles(r,d,p),m=new Set,g=new Map,v=new Map,b="void"===r,_={params:i({},h,d)},w=c?[]:Tm(t,e,this.ast.animation,o,s,f,y,_,l,p),S=0;if(w.forEach(function(t){S=Math.max(t.duration+t.delay,S)}),p.length)return Fm(e,this._triggerName,n,r,b,f,y,[],[],g,v,S,p);w.forEach(function(t){var n=t.element,r=Iy(g,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var o=Iy(v,n,{});t.postStyleProps.forEach(function(t){return o[t]=!0}),n!==e&&m.add(n)});var C=im(m.values());return Fm(e,this._triggerName,n,r,b,f,y,w,C,g,v,S)},t}(),Vm=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=Zy(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var o=t;Object.keys(o).forEach(function(t){var i=o[t];i.length>1&&(i=om(i,r,e)),n[t]=i})}}),n},t}(),Hm=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new Vm(t.style,t.options&&t.options.params||{})}),zm(this.states,"true","1"),zm(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new Um(t,e,n.states))}),this.fallbackTransition=new Um(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,r){return this.transitionFactories.find(function(o){return o.match(t,e,n,r)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function zm(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Bm=new Em,qm=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=gm(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,o=Ey(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var o,i=[],s=this._animations[t],a=new Map;if(s?(o=Tm(this._driver,e,s,"ng-enter","ng-leave",{},{},n,Bm,i)).forEach(function(t){var e=Iy(a,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));a.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,yy)})});var u=Cy(o.map(function(t){var e=a.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(function(){return r.destroy(t)}),this.players.push(u),u},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var o=Ty(e,"","","");return ky(this._getPlayer(t),n,o,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),Qm=[],Km={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Wm={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Gm="__ng_removed",Zm=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var r=Zy(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),Xm=new Zm("void"),$m=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,ig(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var o,i=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var s=Iy(this._elementListeners,t,[]),a={name:e,phase:n,callback:r};s.push(a);var u=Iy(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(ig(t,"ng-trigger"),ig(t,"ng-trigger-"+e),u[e]=Xm),function(){i._engine.afterFlush(function(){var t=s.indexOf(a);t>=0&&s.splice(t,1),i._triggers[e]||delete u[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var o=this;void 0===r&&(r=!0);var i=this._getTrigger(e),s=new Ym(this.id,e,t),a=this._engine.statesByElement.get(t);a||(ig(t,"ng-trigger"),ig(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));var u=a[e],l=new Zm(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a[e]=l,u||(u=Xm),"void"===l.value||u.value!==l.value){var c=Iy(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==o.id&&t.triggerName==e&&t.queued&&t.destroy()});var p=i.matchTransition(u.value,l.value,t,l.params),h=!1;if(!p){if(!r)return;p=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:u,toState:l,player:s,isFallbackTransition:h}),h||(ig(t,"ng-animate-queued"),s.onStart(function(){sg(t,"ng-animate-queued")})),s.onDone(function(){var e=o.players.indexOf(s);e>=0&&o.players.splice(e,1);var n=o._engine.playersByElement.get(t);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),c.push(s),s}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var o=0;o=0){for(var r=!1,o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,e)){this._namespaceList.splice(o+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),o=0;o=0&&this.collectedLeaveElements.splice(i,1)}if(t){var s=this._fetchNamespace(t);s&&s.insertNode(e,n)}r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),ig(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),sg(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n){if(tg(e)){var r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[Gm]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,o){return tg(e)?this._fetchNamespace(t).listen(e,n,r,o):function(){}},t.prototype._buildInstruction=function(t,e,n,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,o)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return Cy(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[Gm];if(n&&n.setForRemoval){if(t[Gm]=Km,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;x--)this._namespaceList[x].drainQueuedTransitions(e).forEach(function(t){var e=t.player,i=t.element;if(E.push(e),n.collectedEnterElements.length){var s=i[Gm];if(s&&s.setForMove)return void e.destroy()}var p=!f||!n.driver.containsElement(f,i),h=S.get(i),d=m.get(i),y=n._buildInstruction(t,r,d,h,p);if(y.errors&&y.errors.length)k.push(y);else{if(p)return e.onStart(function(){return tm(i,y.fromStyles)}),e.onDestroy(function(){return Yy(i,y.toStyles)}),void o.push(e);if(t.isFallbackTransition)return e.onStart(function(){return tm(i,y.fromStyles)}),e.onDestroy(function(){return Yy(i,y.toStyles)}),void o.push(e);y.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(i,y.timelines),a.push({instruction:y,player:e,element:i}),y.queriedElements.forEach(function(t){return Iy(u,t,[]).push(e)}),y.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=l.get(e);r||l.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),y.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=c.get(e);r||c.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}});if(k.length){var T=[];k.forEach(function(t){T.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return T.push("- "+t+"\n")})}),E.forEach(function(t){return t.destroy()}),this.reportError(T)}var I=new Map,P=new Map;a.forEach(function(t){var e=t.element;r.has(e)&&(P.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,I))}),o.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){Iy(I,e,[]).push(t),t.destroy()})});var A=v.filter(function(t){return ug(t,l,c)}),N=new Map;ng(N,this.driver,_,c,yy).forEach(function(t){ug(t,l,c)&&A.push(t)});var O=new Map;y.forEach(function(t,e){ng(O,n.driver,new Set(t),l,wy)}),A.forEach(function(t){var e=N.get(t),n=O.get(t);N.set(t,i({},e,n))});var R=[],D=[],M={};a.forEach(function(t){var e=t.element,i=t.player,a=t.instruction;if(r.has(e)){if(h.has(e))return i.onDestroy(function(){return Yy(e,a.toStyles)}),i.disabled=!0,i.overrideTotalTime(a.totalTime),void o.push(i);var u=M;if(P.size>1){for(var l=e,c=[];l=l.parentNode;){var p=P.get(l);if(p){u=p;break}c.push(l)}c.forEach(function(t){return P.set(t,u)})}var f=n._buildAnimation(i.namespaceId,a,I,s,O,N);if(i.setRealPlayer(f),u===M)R.push(i);else{var d=n.playersByElement.get(u);d&&d.length&&(i.parentPlayer=Cy(d)),o.push(i)}}else tm(e,a.fromStyles),i.onDestroy(function(){return Yy(e,a.toStyles)}),D.push(i),h.has(e)&&o.push(i)}),D.forEach(function(t){var e=s.get(t.element);if(e&&e.length){var n=Cy(e);t.setRealPlayer(n)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var j=0;j0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new by(t.duration,t.delay)},t}(),Ym=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new by,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return ky(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){Iy(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function tg(t){return t&&1===t.nodeType}function eg(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function ng(t,e,n,r,o){var i=[];n.forEach(function(t){return i.push(eg(t))});var s=[];r.forEach(function(n,r){var i={};n.forEach(function(t){var n=i[t]=e.computeStyle(r,t,o);n&&0!=n.length||(r[Gm]=Wm,s.push(r))}),t.set(r,i)});var a=0;return n.forEach(function(t){return eg(t,i[a++])}),s}function rg(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),o=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var i=o.get(e);if(i)return i;var s=e.parentNode;return i=n.has(s)?s:r.has(s)?1:t(s),o.set(e,i),i}(t);1!==e&&n.get(e).push(t)}),n}var og="$$classes";function ig(t,e){if(t.classList)t.classList.add(e);else{var n=t[og];n||(n=t[og]={}),n[e]=!0}}function sg(t,e){if(t.classList)t.classList.remove(e);else{var n=t[og];n&&delete n[e]}}function ag(t,e,n){Cy(n).onDone(function(){return t.processLeaveNode(e)})}function ug(t,e,n){var r=n.get(t);if(!r)return!1;var o=e.get(t);return o?r.forEach(function(t){return o.add(t)}):e.set(t,r),n.delete(t),!0}var lg=function(){function t(t,e,n){var r=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Jm(t,e,n),this._timelineEngine=new qm(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,o){var i=t+"-"+r,s=this._triggerCache[i];if(!s){var a=[],u=gm(this._driver,o,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(t,e){return new Hm(t,e)}(r,u),this._triggerCache[i]=s}this._transitionEngine.registerTrigger(e,r,s)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var o=c(Py(n),2);this._timelineEngine.command(o[0],e,o[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,o){if("@"==n.charAt(0)){var i=c(Py(n),2);return this._timelineEngine.listen(i[0],e,i[1],o)}return this._transitionEngine.listen(t,e,n,r,o)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),cg="animation",pg="animationend",hg=function(){function t(t,e,n,r,o,i,s){var a=this;this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=o,this._fillMode=i,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return a._handleCallback(t)}}return t.prototype.apply=function(){var t,e,n;e=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=vg(t=this._element,"").trim()).length&&(function(t,e){for(var n=0;n=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),mg(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(r=yg(n=vg(t=this._element,"").split(","),e))>=0&&(n.splice(r,1),gg(t,"",n.join(","))))},t}();function fg(t,e,n){gg(t,"PlayState",n,dg(t,e))}function dg(t,e){var n=vg(t,"");return n.indexOf(",")>0?yg(n.split(","),e):yg([n],e)}function yg(t,e){for(var n=0;n=0)return n;return-1}function mg(t,e,n){n?t.removeEventListener(pg,e):t.addEventListener(pg,e)}function gg(t,e,n,r){var o=cg+e;if(null!=r){var i=t.style[o];if(i.length){var s=i.split(",");s[r]=n,n=s.join(",")}}t.style[o]=n}function vg(t,e){return t.style[cg+e]}var bg="linear",_g=function(){function t(t,e,n,r,o,i,s){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=o,this._finalStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||bg,this.totalTime=r+o,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new hg(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:pm(t.element,r))})}this.currentSnapshot=e},t}(),wg=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r._startingStyles={},r.__initialized=!1,r._styles=zy(n),r}return o(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,t.prototype.destroy.call(this))},e}(by),Sg=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return Ly(t)},t.prototype.matchesElement=function(t,e){return Uy(t,e)},t.prototype.containsElement=function(t,e){return Vy(t,e)},t.prototype.query=function(t,e,n){return Hy(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){var r="@keyframes "+e+" {\n",o="";(n=n.map(function(t){return zy(t)})).forEach(function(t){o=" ";var e=parseFloat(t.offset);r+=""+o+100*e+"% {\n",o+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=o+"animation-timing-function: "+n+";\n"));default:return void(r+=""+o+e+": "+n+";\n")}}),r+=o+"}\n"}),r+="}\n";var i=document.createElement("style");return i.innerHTML=r,i},t.prototype.animate=function(t,e,n,r,o,i,s){void 0===i&&(i=[]),s&&this._notifyFaultyScrubber();var a=i.filter(function(t){return t instanceof _g}),u={};um(n,r)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})});var l=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=lm(t,e,u));if(0==n)return new wg(t,l);var c="gen_css_kf_"+this._count++,p=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(p);var h=new _g(t,e,c,n,r,o,l);return h.onDestroy(function(){var t;(t=p).parentNode.removeChild(t)}),h},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),Cg=function(){function t(t,e,n){this.element=t,this.keyframes=e,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:pm(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),Eg=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(kg().toString()),this._cssKeyframesDriver=new Sg}return t.prototype.validateStyleProperty=function(t){return Ly(t)},t.prototype.matchesElement=function(t,e){return Uy(t,e)},t.prototype.containsElement=function(t,e){return Vy(t,e)},t.prototype.query=function(t,e,n){return Hy(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,r,o,i,s){if(void 0===i&&(i=[]),!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,o,i);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(a.easing=o);var u={},l=i.filter(function(t){return t instanceof Cg});return um(n,r)&&l.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})}),e=lm(t,e=e.map(function(t){return Xy(t,!1)}),u),new Cg(t,e,a)},t}();function kg(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var xg=function(t){function e(e,n){var r=t.call(this)||this;return r._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:he.None,styles:[],data:{animation:[]}}),r}return o(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?my(t):t;return Pg(this._renderer,null,e,"register",[n]),new Tg(e,this._renderer)},s([a(1,Lt(np))],e)}(dy),Tg=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return o(e,t),e.prototype.create=function(t,e){return new Ig(this._id,t,e||{},this._renderer)},e}(function(){}),Ig=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t=0;n--){var r=e[n];if(r.svgElement){var o=this._extractSvgIconFromSet(r.svgElement,t);if(o)return o}}return null},t.prototype._loadSvgIconFromConfig=function(t){var e=this;return this._fetchUrl(t.url).pipe(J(function(t){return e._createSvgElementForSingleIcon(t)}))},t.prototype._loadSvgIconSetFromConfig=function(t){var e=this;return t.svgElement?Wu(t.svgElement):this._fetchUrl(t.url).pipe(J(function(n){return t.svgElement||(t.svgElement=e._svgElementFromString(n)),t.svgElement}))},t.prototype._createSvgElementForSingleIcon=function(t){var e=this._svgElementFromString(t);return this._setSvgAttributes(e),e},t.prototype._extractSvgIconFromSet=function(t,e){var n=t.querySelector("#"+e);if(!n)return null;var r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r));var o=this._svgElementFromString("");return o.appendChild(r),this._setSvgAttributes(o)},t.prototype._svgElementFromString=function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n},t.prototype._toSvgElement=function(t){for(var e=this._svgElementFromString(""),n=0;n controls are locked!",Wu(t)):!1===t.canControl?(console.log("Player is not yet playing, calling get-track-list..."),o.getTracksService.getTracks(o.folderId)):(o.getTracksService.setPlaylist(t.playlist),o.getTracksService.setStatus(t),o.router.navigate(["/player"],{relativeTo:o.route,skipLocationChange:!0}),Wu(t))};var i="";n.queryParams.subscribe(function(t){var e=t.id;console.log("id param changed to :: "+e+" from "+i),e!==i&&(o.folderId=e,console.log("Attempting to pass to player..."),o.getTracksService.getStatus().pipe(function t(e,n){return"function"==typeof n?function(r){return r.pipe(t(function(t,r){return nt(e(t,r)).pipe(J(function(e,o){return n(t,e,r,o)}))}))}:function(t){return t.lift(new rv(e))}}(o.isPlayerReady)).subscribe(o.processPlaylist,o.handleErrors)),i=e})}return t.prototype.styleObject=function(){if(!this.getStylesService.getStyles())return{border:"none",paddingTop:"1.6rem"}},t.prototype.itemStyleObject=function(){if(!this.getStylesService.getStyles())return{background:"black",marginTop:"0.4em",marginBottom:"0.4em"}},t.prototype.ngOnInit=function(){this.folderId=this.route.snapshot.queryParamMap.get("id"),this.loading=!0},t.prototype.navigateToPlaylist=function(t){console.log("Hack navigation to :: ",t),this.router.navigate(["/tracks"],{relativeTo:this.route,queryParams:{id:t},queryParamsHandling:"merge"})},t}(),sv=lo({encapsulation:0,styles:[[".error[_ngcontent-%COMP%]{width:100%;text-align:center;margin-top:45vh;font-size:2em}.selector-heading[_ngcontent-%COMP%]{font-size:1.7em;padding-bottom:.5em}#mainBox[_ngcontent-%COMP%]{padding-top:2rem;padding-bottom:2em;border:.9em solid #ed028c}#mainBox[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-pack:center;justify-content:center;width:80vw;text-align:center;font-size:2.5em;padding-top:.3em;padding-bottom:.3em}.item[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{text-decoration:none}"]],data:{}});function av(t){return es(0,[(t()(),Lo(0,0,null,null,5,"div",[["id","mainBox"]],null,null,null,null,null)),xi(1,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(2,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Ji(-1,null,["Please wait..."])),(t()(),Lo(4,0,null,null,1,"mat-spinner",[["class","white mat-spinner mat-progress-spinner"],["mode","indeterminate"],["role","progressbar"]],[[2,"_mat-animation-noopable",null],[4,"width","px"],[4,"height","px"]],null,null,zg,Ug)),xi(5,49152,null,0,py,[Mn,Wd,[2,Pl],[2,Fg],cy],null,null)],function(t,e){t(e,1,0,e.component.styleObject())},function(t,e){t(e,4,0,fi(e,5)._noopAnimations,fi(e,5).diameter,fi(e,5).diameter)})}function uv(t){return es(0,[(t()(),Lo(0,0,null,null,6,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==fi(t,1).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),xi(1,671744,null,0,ld,[sd,_f,tl],{routerLink:[0,"routerLink"]},null),Zi(2,2),(t()(),Lo(3,0,null,null,3,"div",[["class","item"]],null,null,null,null,null)),(t()(),Lo(4,0,null,null,2,"div",[["class","text"]],null,null,null,null,null)),(t()(),Ji(5,null,["",""])),Gi(6,1)],function(t,e){t(e,1,0,t(e,2,0,"/player",e.parent.context.$implicit.ID))},function(t,e){t(e,0,0,fi(e,1).target,fi(e,1).href),t(e,5,0,so(e,5,0,t(e,6,0,fi(e.parent.parent.parent,0),e.parent.context.$implicit.Name)))})}function lv(t){return es(0,[(t()(),Lo(0,0,null,null,10,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==fi(t,1).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),xi(1,671744,null,0,ld,[sd,_f,tl],{queryParams:[0,"queryParams"],routerLink:[1,"routerLink"]},null),Xi(2,{id:0}),Zi(3,1),(t()(),Lo(4,0,null,null,6,"div",[["class","item"]],null,null,null,null,null)),(t()(),Lo(5,0,null,null,5,"div",[["class","text"]],null,null,null,null,null)),(t()(),Ji(6,null,[" "," "])),Gi(7,1),(t()(),Lo(8,0,null,null,2,"mat-icon",[["class","mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,ev,tv)),xi(9,638976,null,0,Jg,[Mn,Zg,[8,null]],null,null),(t()(),Ji(-1,0,["arrow_right_alt"]))],function(t,e){t(e,1,0,t(e,2,0,e.parent.context.$implicit.ID),t(e,3,0,"/tracks")),t(e,9,0)},function(t,e){t(e,0,0,fi(e,1).target,fi(e,1).href),t(e,6,0,so(e,6,0,t(e,7,0,fi(e.parent.parent.parent,0),e.parent.context.$implicit.Name))),t(e,8,0,fi(e,9).inline)})}function cv(t){return es(0,[(t()(),Lo(0,0,null,null,4,"div",[],null,null,null,null,null)),xi(1,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Fo(16777216,null,null,1,null,uv)),xi(3,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Fo(0,[["folderLink",2]],null,0,null,lv))],function(t,e){t(e,1,0,e.component.itemStyleObject()),t(e,3,0,!e.context.$implicit.IsDir,fi(e,4))},null)}function pv(t){return es(0,[(t()(),Lo(0,0,null,null,7,"div",[],null,null,null,null,null)),(t()(),Lo(1,0,null,null,6,"div",[["id","mainBox"]],null,null,null,null,null)),xi(2,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(3,0,null,null,1,"div",[["class","selector-heading"]],null,null,null,null,null)),(t()(),Ji(-1,null,["Select treatment:"])),(t()(),Fo(16777216,null,null,2,null,cv)),xi(6,278528,null,0,yl,[Bn,zn,pr],{ngForOf:[0,"ngForOf"]},null),Ti(131072,Tl,[qn])],function(t,e){var n=e.component;t(e,2,0,n.styleObject()),t(e,6,0,so(e,6,0,fi(e,7).transform(n.serverData)))},null)}function hv(t){return es(0,[(t()(),Lo(0,0,null,null,1,"div",[["class","error"]],null,null,null,null,null)),(t()(),Ji(1,null,["",""]))],null,function(t,e){t(e,1,0,e.component.errorResponse.message)})}function fv(t){return es(0,[Ti(0,nv,[]),(t()(),Fo(16777216,null,null,1,null,av)),xi(2,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"]},null),(t()(),Fo(16777216,null,null,1,null,pv)),xi(4,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Fo(0,[["error",2]],null,0,null,hv))],function(t,e){var n=e.component;t(e,2,0,n.loading),t(e,4,0,null!=n.serverData,fi(e,5))},null)}var dv=ni("app-track-selector",iv,function(t){return es(0,[(t()(),Lo(0,0,null,null,1,"app-track-selector",[],null,null,null,fv,sv)),xi(1,114688,null,0,iv,[fc,Ld,_f,sd],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),yv=function(){function t(t,e,n,r){this.route=t,this.getTracksService=e,this.getStylesService=n,this.router=r,this.errorResponse="",this.started=!1,this.playing=!1,this.skipped=!1,this.loading=!1,this.crossfading=!1,this.duration="XX:XX:XX",this.now="00:00:00",this.totalTicks=0,this.ticks=0,this.i_progress=0,this.playlist=null,this.numTracks=0,this.currentTrack=null,this.hrId=0}return t.prototype.pad=function(t){return("0"+t).slice(-2)},t.prototype.hhmmss=function(t){t=Math.floor(t);var e=Math.floor(t/60);t%=60;var n=Math.floor(e/60);return e%=60,this.pad(n)+":"+this.pad(e)+":"+this.pad(t)},t.prototype.isPlaying=function(){return this.playing&&this.ticks0&&this.skipped},t.prototype.styleObject=function(){if(!this.getStylesService.getStyles())return{background:"black"}},t.prototype.styleObjectBorder=function(){if(!this.getStylesService.getStyles())return{border:"none"}},t.prototype.ngOnInit=function(){var t=this;this.playlist=this.getTracksService.getPlaylist(),this.numTracks=this.playlist.length,this.currentTrack=this.playlist[0];var e=this.getTracksService.getInternalStatus();if(console.log("internal status: ",e),e.playerState){var n=this.getTracksService.getInternalStatus();this.totalTicks=n.trackDuration,this.started=!0,this.duration=this.hhmmss(n.trackDuration),this.ticks=n.position,this.playing=!0,this.playing="Playing"===n.playerState,console.log("pl from internal status: ",this.playlist);for(var r=0;r=+t.totalTicks&&0!=t.ticks&&t.playing&&(t.resetProgressBar(),t.next(void 0)),t.i_progress=Math.floor(t.ticks/t.totalTicks*100)},1e3),this.sub=this.route.params.subscribe(function(e){t.id=e.id})},t.prototype.endOfPlaylist=function(){return this.hrId+1===this.playlist.length},t.prototype.resetProgressBar=function(){this.now="00:00:00",this.ticks=0,this.playing=!1,this.skipped=!1,this.duration="XX:XX:XX"},t.prototype.play=function(){var t=this;this.loading=!0,this.started?this.getTracksService.playPause().subscribe(function(e){t.loading=!1,t.playing=!0,t.duration=t.hhmmss(e),console.log(e)}):this.getTracksService.playSingleTrack(this.currentTrack.ID).subscribe(function(e){t.loading=!1,t.duration=t.hhmmss(e),t.started=!0,t.playing=!0,t.totalTicks=Math.floor(+e),console.log(e)})},t.prototype.pause=function(){var t=this;this.playing=!1,this.loading=!0,this.getTracksService.playPause().subscribe(function(e){t.duration=t.hhmmss(e),console.log(e),t.loading=!1})},t.prototype.next=function(t){this.loading||(this.hrId=++this.hrId%this.numTracks,0===this.hrId&&(this.started=!1),this.fadeToTrack(this.hrId,this.playing?t:0))},t.prototype.previous=function(t){this.loading||this.hrId>0&&(this.hrId=--this.hrId%this.numTracks,this.currentTrack=this.playlist[this.hrId],this.fadeToTrack(this.hrId,this.playing?t:0))},t.prototype.fadeToTrack=function(t,e){var n=this;this.playing||this.started||0===e&&"XX:XX:XX"===this.duration&&this.started?(this.crossfading=!0,this.loading=!0,this.skipped=!0,this.playing=!1,this.getTracksService.crossfade(this.playlist[t].ID,e).subscribe(function(e){e>0?(n.loading=!1,n.playing=!0,n.ticks=0,n.duration=n.hhmmss(e),n.currentTrack=n.playlist[t],n.totalTicks=Math.floor(+e),n.skipped=!1,n.crossfading=!1,console.log(e)):console.log("ERROR ON CROSSFADE!")})):this.currentTrack=this.playlist[t]},t.prototype.trackIsMp4=function(){var t=this.currentTrack.Name;return"mp4"===t.substring(t.lastIndexOf(".")+1,t.length)},t.prototype.getClickedProgressBarPercentage=function(t,e,n){return Math.floor((t+e)/n*100)},t.prototype.tapToSeek=function(t,e){var n=this;if(this.started&&this.trackIsMp4()){this.loading=!0;var r=document.getElementById("progress-bar").offsetWidth,o=t.srcElement.offsetWidth,i=o*(t.offsetX/t.srcElement.offsetWidth),s=50;"f"===e?s=this.getClickedProgressBarPercentage(r-o,i,r):"b"===e&&(s=this.getClickedProgressBarPercentage(i,0,r)),100===s&&(s=98),this.getTracksService.tapToSeek(s).subscribe(function(t){n.now=n.hhmmss(t),n.ticks=+t,n.loading=!1})}},t.prototype.stop=function(){var t=this;this.loading=!0,console.log("STOP called!"),this.getTracksService.stopMusic().subscribe(function(e){0===e?(console.log("Stop success!"),t.getTracksService.setStatus({})):console.log("Stop failed... check the logs!"),t.router.navigate(["/tracks"],{relativeTo:t.route,queryParams:{id:null},queryParamsHandling:"merge"})}),this.playing=!1},t}(),mv=lo({encapsulation:0,styles:[['.container[_ngcontent-%COMP%]{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-align:center;align-items:center;width:100%;height:100vh;color:#fff;background:#000;box-sizing:border-box;font-family:"Trebuchet MS",Helvetica,sans-serif;font-weight:700}.container[_ngcontent-%COMP%] .trackNameBox[_ngcontent-%COMP%]{margin-top:2rem;width:80vw;text-align:center;font-size:2.9em;background:#570033}.trackNameBox[_ngcontent-%COMP%] .trackNameText[_ngcontent-%COMP%]{padding:.3em}.container[_ngcontent-%COMP%] .back-button-wrapper[_ngcontent-%COMP%]{margin-top:4em;margin-bottom:2em;width:80%}.container[_ngcontent-%COMP%] .treatment[_ngcontent-%COMP%]{margin-top:3em;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-pack:center;justify-content:center;height:5em;width:80vw;font-size:2.5em;background:#5d0037}.container[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{text-align:center}.text.track-counter[_ngcontent-%COMP%]{font-size:80%}.track-counter[_ngcontent-%COMP%]{margin-bottom:1em}.treatment[_ngcontent-%COMP%] .playback[_ngcontent-%COMP%]{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row}.player-controls[_ngcontent-%COMP%]{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center}.player-controls[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .player-controls[_ngcontent-%COMP%] .mat-spinner.mat-progress-spinner[_ngcontent-%COMP%]{display:block}.player-controls[_ngcontent-%COMP%] .player-control-icon.play-pause[_ngcontent-%COMP%]{background-color:#fff;color:#222;border-radius:100%}.player-control-icon[_ngcontent-%COMP%]{display:block;font-size:1em;width:1em;height:1em;padding:.7em}.mat-icon[_ngcontent-%COMP%]:hover{cursor:pointer}.playback[_ngcontent-%COMP%]{z-index:1000}.playback[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]{margin-top:3em;margin-bottom:1em;height:.3em;width:20vw;background-color:#fff}.playback[_ngcontent-%COMP%] .remaining[_ngcontent-%COMP%]{margin-top:3em;margin-bottom:1em;height:.3em;width:80vw;background-color:#424242}.playback[_ngcontent-%COMP%] .position-slider[_ngcontent-%COMP%]{margin-top:3em;margin-bottom:1em;height:.6em;width:9px;background-color:#fff}.timer[_ngcontent-%COMP%]{display:block;padding-top:3em}']],data:{animation:[{type:7,name:"simpleFadeAnimation",definitions:[{type:0,name:"in",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:0,name:"out",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:1,expr:"out => in",animation:[{type:4,styles:null,timings:"0.4s"}],options:null},{type:1,expr:"in => out",animation:[{type:4,styles:null,timings:"4s"}],options:null}],options:{}}]}});function gv(t){return es(0,[(t()(),Lo(0,0,null,null,2,"div",[["class","player-control-icon play-pause loading"]],null,null,null,null,null)),(t()(),Lo(1,0,null,null,1,"mat-spinner",[["class","mat-spinner mat-progress-spinner"],["mode","indeterminate"],["role","progressbar"]],[[2,"_mat-animation-noopable",null],[4,"width","px"],[4,"height","px"]],null,null,zg,Ug)),xi(2,49152,null,0,py,[Mn,Wd,[2,Pl],[2,Fg],cy],null,null)],null,function(t,e){t(e,1,0,fi(e,2)._noopAnimations,fi(e,2).diameter,fi(e,2).diameter)})}function vv(t){return es(0,[(t()(),Lo(0,0,null,null,2,"mat-icon",[["class","player-control-icon play-pause mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.pause()&&r),r},ev,tv)),xi(1,638976,null,0,Jg,[Mn,Zg,[8,null]],null,null),(t()(),Ji(-1,0,["pause"]))],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,fi(e,1).inline)})}function bv(t){return es(0,[(t()(),Lo(0,0,null,null,2,"mat-icon",[["class","player-control-icon play-pause mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.play()&&r),r},ev,tv)),xi(1,638976,null,0,Jg,[Mn,Zg,[8,null]],null,null),(t()(),Ji(-1,0,["play_arrow "]))],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,fi(e,1).inline)})}function _v(t){return es(0,[(t()(),Fo(16777216,null,null,1,null,vv)),xi(1,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Fo(0,[["notPlaying",2]],null,0,null,bv))],function(t,e){t(e,1,0,e.component.isPlaying(),fi(e,2))},null)}function wv(t){return es(0,[(t()(),Lo(0,0,null,null,36,"div",[],null,null,null,null,null)),(t()(),Lo(1,0,null,null,35,"div",[["class","container"]],null,null,null,null,null)),xi(2,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(3,0,null,null,4,"div",[["class","back-button-wrapper"]],null,null,null,null,null)),(t()(),Lo(4,0,null,null,3,"a",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.stop()&&r),r},null,null)),(t()(),Lo(5,0,null,null,2,"mat-icon",[["class","back mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,ev,tv)),xi(6,638976,null,0,Jg,[Mn,Zg,[8,null]],null,null),(t()(),Ji(-1,0,["arrow_back"])),(t()(),Lo(8,0,null,null,4,"div",[["class","trackNameBox"]],null,null,null,null,null)),xi(9,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(10,0,null,null,2,"div",[["class","trackNameText"]],[[24,"@simpleFadeAnimation",0]],null,null,null,null)),(t()(),Ji(11,null,[" "," "])),Gi(12,1),(t()(),Lo(13,0,null,null,21,"div",[["class","treatment"]],null,null,null,null,null)),xi(14,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(15,0,null,null,1,"div",[["class","text track-counter"]],null,null,null,null,null)),(t()(),Ji(16,null,["Track "," / ",""])),(t()(),Lo(17,0,null,null,9,"div",[["class","player-controls"]],null,null,null,null,null)),(t()(),Lo(18,0,null,null,2,"mat-icon",[["class","player-control-icon prev mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.previous(4)&&r),r},ev,tv)),xi(19,638976,null,0,Jg,[Mn,Zg,[8,null]],null,null),(t()(),Ji(-1,0,["skip_previous"])),(t()(),Fo(16777216,null,null,1,null,gv)),xi(22,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Fo(0,[["notloading",2]],null,0,null,_v)),(t()(),Lo(24,0,null,null,2,"mat-icon",[["class","player-control-icon next mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.next(4)&&r),r},ev,tv)),xi(25,638976,null,0,Jg,[Mn,Zg,[8,null]],null,null),(t()(),Ji(-1,0,["skip_next"])),(t()(),Lo(27,0,null,null,7,"div",[["class","playback"],["id","progress-bar"]],null,null,null,null,null)),(t()(),Lo(28,0,null,null,2,"div",[["class","progress"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.tapToSeek(n,"b")&&r),r},null,null)),xi(29,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),Xi(30,{width:0}),(t()(),Lo(31,0,null,null,0,"div",[["class","position-slider"]],null,null,null,null,null)),(t()(),Lo(32,0,null,null,2,"div",[["class","remaining"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.tapToSeek(n,"f")&&r),r},null,null)),xi(33,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),Xi(34,{width:0}),(t()(),Lo(35,0,null,null,1,"div",[["class","timer"]],null,null,null,null,null)),(t()(),Ji(36,null,[""," / ",""]))],function(t,e){var n=e.component;t(e,2,0,n.styleObjectBorder()),t(e,6,0),t(e,9,0,n.styleObject()),t(e,14,0,n.styleObject()),t(e,19,0),t(e,22,0,n.loading,fi(e,23)),t(e,25,0),t(e,29,0,t(e,30,0,n.i_progress-0+"vw")),t(e,33,0,t(e,34,0,100-n.i_progress-0+"vw"))},function(t,e){var n=e.component;t(e,5,0,fi(e,6).inline),t(e,10,0,n.crossfading?"out":"in"),t(e,11,0,so(e,11,0,t(e,12,0,fi(e.parent,0),n.currentTrack.Name))),t(e,16,0,n.hrId+1,n.numTracks),t(e,18,0,fi(e,19).inline),t(e,24,0,fi(e,25).inline),t(e,36,0,n.now,n.duration)})}function Sv(t){return es(0,[(t()(),Lo(0,0,null,null,10,"div",[["class","container"]],null,null,null,null,null)),xi(1,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(2,0,null,null,4,"div",[["class","back-button-wrapper"]],null,null,null,null,null)),(t()(),Lo(3,0,null,null,3,"a",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.stop()&&r),r},null,null)),(t()(),Lo(4,0,null,null,2,"mat-icon",[["class","back mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,ev,tv)),xi(5,638976,null,0,Jg,[Mn,Zg,[8,null]],null,null),(t()(),Ji(-1,0,["arrow_back"])),(t()(),Lo(7,0,null,null,3,"div",[["class","trackNameBox"]],null,null,null,null,null)),xi(8,278528,null,0,Cl,[hr,Mn,Dn],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(9,0,null,null,1,"div",[["class","trackNameText"]],null,null,null,null,null)),(t()(),Ji(-1,null,["No tracks found..."]))],function(t,e){var n=e.component;t(e,1,0,n.styleObjectBorder()),t(e,5,0),t(e,8,0,n.styleObject())},function(t,e){t(e,4,0,fi(e,5).inline)})}function Cv(t){return es(0,[Ti(0,nv,[]),(t()(),Fo(16777216,null,null,1,null,wv)),xi(2,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Fo(0,[["noTracks",2]],null,0,null,Sv))],function(t,e){t(e,2,0,e.component.numTracks>0,fi(e,3))},null)}var Ev=ni("app-track-control",yv,function(t){return es(0,[(t()(),Lo(0,0,null,null,1,"app-track-control",[],null,null,null,Cv,mv)),xi(1,114688,null,0,yv,[_f,fc,Ld,sd],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),kv="accent",xv="primary",Tv=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Iv=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;i._platform=n,i._focusMonitor=r,i._animationMode=o,i.isRoundButton=i._hasHostAttributes("mat-fab","mat-mini-fab"),i.isIconButton=i._hasHostAttributes("mat-icon-button");for(var s=0,a=Tv;s*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],data:{}});function Nv(t){return es(2,[function(t,e,n){var r=[];for(var o in n)r.push({propName:o,bindingType:n[o]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:402653184,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:1,filterId:Co(1),bindings:r},ngContent:null}}(0,0,{ripple:0}),(t()(),Lo(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),Ki(null,0),(t()(),Lo(3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),xi(4,212992,[[1,4]],0,sy,[Mn,cn,Wd,[2,iy],[2,Fg]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(t()(),Lo(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())},function(t,e){var n=e.component;t(e,3,0,n.isRoundButton||n.isIconButton,fi(e,4).unbounded)})}var Ov=lo({encapsulation:0,styles:[['html[_ngcontent-%COMP%]{background-color:#000}.settings-room-name[_ngcontent-%COMP%]{padding:.6em 0 .6em 10vw;background-color:#000;color:#fff;font-family:"Trebuchet MS",Helvetica,sans-serif;font-size:140%}.home-button[_ngcontent-%COMP%]:hover, .pair-button[_ngcontent-%COMP%]:hover{cursor:pointer}p.slave-prompt[_ngcontent-%COMP%]{padding:.6em 0 .6em 10vw}.pair-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:.3em;font-size:110%}.home-button[_ngcontent-%COMP%]{float:right;padding-right:1em}']],data:{}});function Rv(t){return es(0,[(t()(),Lo(0,0,null,null,3,"span",[["class","pair-button"]],null,[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==(!o.pairingInProgress&&o.pair())&&r),r},null,null)),(t()(),Lo(1,0,null,null,2,"button",[["class","btn"],["mat-stroked-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,Nv,Av)),xi(2,180224,null,0,Iv,[Mn,Wd,Xd,[2,Fg]],null,null),(t()(),Ji(-1,0,["pair"]))],null,function(t,e){t(e,1,0,fi(e,2).disabled||null,"NoopAnimations"===fi(e,2)._animationMode)})}function Dv(t){return es(0,[(t()(),Lo(0,0,null,null,2,"button",[["class","btn"],["mat-stroked-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,Nv,Av)),xi(1,180224,null,0,Iv,[Mn,Wd,Xd,[2,Fg]],null,null),(t()(),Ji(-1,0,[" unpair "]))],null,function(t,e){t(e,0,0,fi(e,1).disabled||null,"NoopAnimations"===fi(e,1)._animationMode)})}function Mv(t){return es(0,[(t()(),Lo(0,0,null,null,1,"span",[["class","pair-button"]],null,null,null,null,null)),(t()(),Ji(-1,null,[" Pairing, please wait... "]))],null,null)}function jv(t){return es(0,[(t()(),Lo(0,0,null,null,1,"span",[["class","pair-button"]],null,null,null,null,null)),(t()(),Ji(-1,null,[" Cancelling pairing, please wait... "]))],null,null)}function Fv(t){return es(0,[(t()(),Lo(0,0,null,null,1,"span",[["class","pair-button"]],null,null,null,null,null)),(t()(),Ji(-1,null,[" Pairing failed "]))],null,null)}function Lv(t){return es(0,[(t()(),Lo(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),xi(1,212992,null,0,fd,[hd,Bn,Ye,[8,null],qn],null,null),(t()(),Fo(0,null,null,0))],function(t,e){t(e,1,0)},null)}function Uv(t){return es(0,[(t()(),Lo(0,0,null,null,1,"p",[["class","slave-prompt"]],null,null,null,null,null)),(t()(),Ji(-1,null,[" Sorry, I'm being controlled by another LushRooms Pi "])),(t()(),Lo(2,0,null,null,2,"p",[["class","slave-prompt"]],null,null,null,null,null)),(t()(),Lo(3,0,null,null,1,"i",[],null,null,null,null,null)),(t()(),Ji(4,null,["(its IP address is ",")"]))],null,function(t,e){t(e,4,0,e.component.masterIp)})}function Vv(t){return es(0,[(t()(),Lo(0,0,null,null,12,"div",[["class","settings-room-name"]],null,null,null,null,null)),(t()(),Ji(1,null,[" "," "])),(t()(),Fo(16777216,null,null,1,null,Rv)),xi(3,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"]},null),(t()(),Lo(4,0,null,null,2,"span",[["class","pair-button"]],null,[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==(!o.unPairingInProgress&&o.unpair())&&r),r},null,null)),(t()(),Fo(16777216,null,null,1,null,Dv)),xi(6,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"]},null),(t()(),Fo(16777216,null,null,1,null,Mv)),xi(8,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"]},null),(t()(),Fo(16777216,null,null,1,null,jv)),xi(10,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"]},null),(t()(),Fo(16777216,null,null,1,null,Fv)),xi(12,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"]},null),(t()(),Fo(16777216,null,null,1,null,Lv)),xi(14,16384,null,0,gl,[Bn,zn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Fo(0,[["slavedPrompt",2]],null,0,null,Uv))],function(t,e){var n=e.component;t(e,3,0,n.slaveIp&&!n.partyModeActive),t(e,6,0,n.partyModeActive),t(e,8,0,n.pairingInProgress),t(e,10,0,n.unPairingInProgress),t(e,12,0,n.pairingError),t(e,14,0,!n.slaved,fi(e,15))},function(t,e){t(e,1,0,e.component.roomName)})}var Hv=ni("app-root",gc,function(t){return es(0,[(t()(),Lo(0,0,null,null,1,"app-root",[],null,null,null,Vv,Ov)),xi(1,114688,null,0,gc,[hc,fc,mc],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),zv=function(){},Bv=function(t,e,n){return new ua(qu,[gc],function(t){return function(t){for(var e={},n=[],r=!1,o=0;o