(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(n,t,e){n.exports=e("zUnb")},crnd:function(n,t){function e(n){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t})}e.keys=function(){return[]},e.resolve=e,n.exports=e,e.id="crnd"},zUnb:function(n,t,e){"use strict";e.r(t);var l=function(n,t){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};function r(n,t){function e(){this.constructor=n}l(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var o=function(){return(o=Object.assign||function(n){for(var t,e=1,l=arguments.length;e=0;u--)(r=n[u])&&(i=(o<3?r(i):o>3?r(t,e,i):r(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}function u(n,t){return function(e,l){t(e,l,n)}}function a(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function s(n){var t="function"==typeof Symbol&&n[Symbol.iterator],e=0;return t?t.call(n):{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}}}function c(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var l,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(l=o.next()).done;)i.push(l.value)}catch(n){r={error:n}}finally{try{l&&!l.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i}function h(){for(var n=[],t=0;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(Y);function sn(n){return n}function cn(n){return void 0===n&&(n=Number.POSITIVE_INFINITY),on(sn,n)}function hn(){for(var n=[],t=0;t1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof r&&(e=n.pop()),null===l&&1===n.length&&n[0]instanceof N?n[0]:cn(e)(ln(n,l))}function pn(){return function(n){return n.lift(new dn(n))}}var dn=function(){function n(n){this.connectable=n}return n.prototype.call=function(n,t){var e=this.connectable;e._refCount++;var l=new fn(n,e),r=t.subscribe(l);return l.closed||(l.connection=e.connect()),r},n}(),fn=function(n){function t(t,e){var l=n.call(this,t)||this;return l.connectable=e,l}return r(t,n),t.prototype._unsubscribe=function(){var n=this.connectable;if(n){this.connectable=null;var t=n._refCount;if(t<=0)this.connection=null;else if(n._refCount=t-1,t>1)this.connection=null;else{var e=this.connection,l=n._connection;this.connection=null,!l||e&&l!==e||l.unsubscribe()}}else this.connection=null},t}(I),gn=function(n){function t(t,e){var l=n.call(this)||this;return l.source=t,l.subjectFactory=e,l._refCount=0,l._isComplete=!1,l}return r(t,n),t.prototype._subscribe=function(n){return this.getSubject().subscribe(n)},t.prototype.getSubject=function(){var n=this._subject;return n&&!n.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var n=this._connection;return n||(this._isComplete=!1,(n=this._connection=new w).add(this.source.subscribe(new yn(this.getSubject(),this))),n.closed?(this._connection=null,n=w.EMPTY):this._connection=n),n},t.prototype.refCount=function(){return pn()(this)},t}(N).prototype,mn={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:gn._subscribe},_isComplete:{value:gn._isComplete,writable:!0},getSubject:{value:gn.getSubject},connect:{value:gn.connect},refCount:{value:gn.refCount}},yn=function(n){function t(t,e){var l=n.call(this,t)||this;return l.connectable=e,l}return r(t,n),t.prototype._error=function(t){this._unsubscribe(),n.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),n.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var n=this.connectable;if(n){this.connectable=null;var t=n._connection;n._refCount=0,n._subject=null,n._connection=null,t&&t.unsubscribe()}},t}(j);function vn(){return new G}function bn(){return function(n){return pn()((t=vn,function(n){var e;e="function"==typeof t?t:function(){return t};var l=Object.create(n,mn);return l.source=n,l.subjectFactory=e,l})(n));var t}}function _n(n){return{providedIn:n.providedIn||null,factory:n.factory,value:void 0}}var wn=function(){function n(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==t?_n({providedIn:t.providedIn||"root",factory:t.factory}):void 0}return n.prototype.toString=function(){return"InjectionToken "+this._desc},n}(),Cn="__parameters__",Sn="__prop__metadata__";function Tn(n){return function(){for(var t=[],e=0;e ");else if("object"==typeof t){var r=[];for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];r.push(o+":"+("string"==typeof i?JSON.stringify(i):jn(i)))}l="{"+r.join(", ")+"}"}return"StaticInjectorError"+(e?"("+e+")":"")+"["+l+"]: "+n.replace(it,"\n ")}function ht(n,t){return new Error(ct(n,t))}var pt=void 0;function dt(n){var t=pt;return pt=n,t}function ft(n,t){if(void 0===t&&(t=0),void 0===pt)throw new Error("inject() must be called from an injection context");if(null===pt){var e=n.ngInjectableDef;if(e&&"root"==e.providedIn)return void 0===e.value?e.value=e.factory():e.value;if(8&t)return null;throw new Error("Injector: NOT_FOUND ["+jn(n)+"]")}return pt.get(n,8&t?null:void 0,t)}function gt(n){for(var t=[],e=0;e0&&(r=setTimeout(function(){l._callbacks=l._callbacks.filter(function(n){return n.timeoutId!==r}),n(l._didWork,l.getPendingTasks())},t)),this._callbacks.push({doneCb:n,timeoutId:r,updateCb:e})},n.prototype.whenStable=function(n,t,e){if(e&&!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(n,t,e),this._runCallbacksIfReady()},n.prototype.getPendingRequestCount=function(){return this._pendingCount},n.prototype.findProviders=function(n,t,e){return[]},n}(),Ce=function(){function n(){this._applications=new Map,Se.addToWindow(this)}return n.prototype.registerApplication=function(n,t){this._applications.set(n,t)},n.prototype.unregisterApplication=function(n){this._applications.delete(n)},n.prototype.unregisterAllApplications=function(){this._applications.clear()},n.prototype.getTestability=function(n){return this._applications.get(n)||null},n.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},n.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},n.prototype.findTestabilityInTree=function(n,t){return void 0===t&&(t=!0),Se.findTestabilityInTree(this,n,t)},i([a("design:paramtypes",[])],n)}(),Se=new(function(){function n(){}return n.prototype.addToWindow=function(n){},n.prototype.findTestabilityInTree=function(n,t,e){return null},n}()),Te=!0,ke=!1,xe=new wn("AllowMultipleToken");function Ee(){return ke=!0,Te}var Ie=function(n,t){this.name=n,this.token=t};function Re(n,t,e){void 0===e&&(e=[]);var l="Platform: "+t,r=new wn(l);return function(t){void 0===t&&(t=[]);var o=Pe();if(!o||o.injector.get(xe,!1))if(n)n(e.concat(t).concat({provide:r,useValue:!0}));else{var i=e.concat(t).concat({provide:r,useValue:!0});!function(n){if(be&&!be.destroyed&&!be.injector.get(xe,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");be=n.get(Oe);var t=n.get(zt,null);t&&t.forEach(function(n){return n()})}(Xn.create({providers:i,name:l}))}return function(n){var t=Pe();if(!t)throw new Error("No platform exists!");if(!t.injector.get(n,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Pe(){return be&&!be.destroyed?be:null}var Oe=function(){function n(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return n.prototype.bootstrapModuleFactory=function(n,t){var e,l=this,r="noop"===(e=t?t.ngZone:void 0)?new _e:("zone.js"===e?void 0:e)||new de({enableLongStackTrace:Ee()}),o=[{provide:de,useValue:r}];return r.run(function(){var t=Xn.create({providers:o,parent:l.injector,name:n.moduleType.name}),e=n.create(t),i=e.injector.get(Tt,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return e.onDestroy(function(){return Ne(l._modules,e)}),r.runOutsideAngular(function(){return r.onError.subscribe({next:function(n){i.handleError(n)}})}),function(n,t,r){try{var o=((i=e.injector.get(jt)).runInitializers(),i.donePromise.then(function(){return l._moduleDoBootstrap(e),e}));return Ht(o)?o.catch(function(e){throw t.runOutsideAngular(function(){return n.handleError(e)}),e}):o}catch(e){throw t.runOutsideAngular(function(){return n.handleError(e)}),e}var i}(i,r)})},n.prototype.bootstrapModule=function(n,t){var e=this;void 0===t&&(t=[]);var l=this.injector.get(Qt),r=De({},t);return l.createCompiler([r]).compileModuleAsync(n).then(function(n){return e.bootstrapModuleFactory(n,r)})},n.prototype._moduleDoBootstrap=function(n){var t=n.injector.get(Ae);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(n){return t.bootstrap(n)});else{if(!n.instance.ngDoBootstrap)throw new Error("The module "+jn(n.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');n.instance.ngDoBootstrap(t)}this._modules.push(n)},n.prototype.onDestroy=function(n){this._destroyListeners.push(n)},Object.defineProperty(n.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),n.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(n){return n.destroy()}),this._destroyListeners.forEach(function(n){return n()}),this._destroyed=!0},Object.defineProperty(n.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),n}();function De(n,t){return Array.isArray(t)?t.reduce(De,n):o({},n,t)}var Ae=function(){function n(n,t,e,l,r,o){var i=this;this._zone=n,this._console=t,this._injector=e,this._exceptionHandler=l,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ee(),this._zone.onMicrotaskEmpty.subscribe({next:function(){i._zone.run(function(){i.tick()})}});var u=new N(function(n){i._stable=i._zone.isStable&&!i._zone.hasPendingMacrotasks&&!i._zone.hasPendingMicrotasks,i._zone.runOutsideAngular(function(){n.next(i._stable),n.complete()})}),a=new N(function(n){var t;i._zone.runOutsideAngular(function(){t=i._zone.onStable.subscribe(function(){de.assertNotInAngularZone(),Ln(function(){i._stable||i._zone.hasPendingMacrotasks||i._zone.hasPendingMicrotasks||(i._stable=!0,n.next(!0))})})});var e=i._zone.onUnstable.subscribe(function(){de.assertInAngularZone(),i._stable&&(i._stable=!1,i._zone.runOutsideAngular(function(){n.next(!1)}))});return function(){t.unsubscribe(),e.unsubscribe()}});this.isStable=hn(u,a.pipe(bn()))}var t;return t=n,n.prototype.bootstrap=function(n,t){var e,l=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.");e=n instanceof Jt?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(e.componentType);var r=e instanceof oe?null:this._injector.get(ie),o=e.create(Xn.NULL,[],t||e.selector,r);o.onDestroy(function(){l._unloadComponent(o)});var i=o.injector.get(we,null);return i&&o.injector.get(Ce).registerApplication(o.location.nativeElement,i),this._loadComponent(o),Ee()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},n.prototype.tick=function(){var n=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var e=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(n){return n.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(n){return n.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return n._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,he(e)}},n.prototype.attachView=function(n){var t=n;this._views.push(t),t.attachToAppRef(this)},n.prototype.detachView=function(n){var t=n;Ne(this._views,t),t.detachFromAppRef()},n.prototype._loadComponent=function(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(qt,[]).concat(this._bootstrapListeners).forEach(function(t){return t(n)})},n.prototype._unloadComponent=function(n){this.detachView(n.hostView),Ne(this.components,n)},n.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(n){return n.destroy()})},Object.defineProperty(n.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),n._tickScope=ce("ApplicationRef#tick()"),n}();function Ne(n,t){var e=n.indexOf(t);e>-1&&n.splice(e,1)}var Me=function(){},He=function(n){return n[n.Important=1]="Important",n[n.DashCase=2]="DashCase",n}({}),Le=function(){},Ve=function(n){this.nativeElement=n},je=function(){},Ge=function(){function n(){this.dirty=!0,this._results=[],this.changes=new pe,this.length=0}return n.prototype.map=function(n){return this._results.map(n)},n.prototype.filter=function(n){return this._results.filter(n)},n.prototype.find=function(n){return this._results.find(n)},n.prototype.reduce=function(n,t){return this._results.reduce(n,t)},n.prototype.forEach=function(n){this._results.forEach(n)},n.prototype.some=function(n){return this._results.some(n)},n.prototype.toArray=function(){return this._results.slice()},n.prototype[Hn()]=function(){return this._results[Hn()]()},n.prototype.toString=function(){return this._results.toString()},n.prototype.reset=function(n){this._results=function n(t){return t.reduce(function(t,e){var l=Array.isArray(e)?n(e):e;return t.concat(l)},[])}(n),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},n.prototype.notifyOnChanges=function(){this.changes.emit(this)},n.prototype.setDirty=function(){this.dirty=!0},n.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},n}(),Fe=function(){},Ue={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ze=function(){function n(n,t){this._compiler=n,this._config=t||Ue}return n.prototype.load=function(n){return this._compiler instanceof Kt?this.loadFactory(n):this.loadAndCompile(n)},n.prototype.loadAndCompile=function(n){var t=this,l=c(n.split("#"),2),r=l[0],o=l[1];return void 0===o&&(o="default"),e("crnd")(r).then(function(n){return n[o]}).then(function(n){return Be(n,r,o)}).then(function(n){return t._compiler.compileModuleAsync(n)})},n.prototype.loadFactory=function(n){var t=c(n.split("#"),2),l=t[0],r=t[1],o="NgFactory";return void 0===r&&(r="default",o=""),e("crnd")(this._config.factoryPathPrefix+l+this._config.factoryPathSuffix).then(function(n){return n[r+o]}).then(function(n){return Be(n,l,r)})},i([u(1,zn())],n)}();function Be(n,t,e){if(!n)throw new Error("Cannot find '"+e+"' in '"+t+"'");return n}var qe=function(){},We=function(){},Ze=function(){},Ke=function(){function n(n,t,e){this._debugContext=e,this.nativeNode=n,t&&t instanceof Qe?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(n.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),n}(),Qe=function(n){function t(t,e,l){var r=n.call(this,t,e,l)||this;return r.properties={},r.attributes={},r.classes={},r.styles={},r.childNodes=[],r.nativeElement=t,r}return r(t,n),t.prototype.addChild=function(n){n&&(this.childNodes.push(n),n.parent=this)},t.prototype.removeChild=function(n){var t=this.childNodes.indexOf(n);-1!==t&&(n.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(n,t){var e,l=this,r=this.childNodes.indexOf(n);-1!==r&&((e=this.childNodes).splice.apply(e,h([r+1,0],t)),t.forEach(function(n){n.parent&&n.parent.removeChild(n),n.parent=l}))},t.prototype.insertBefore=function(n,t){var e=this.childNodes.indexOf(n);-1===e?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(e,0,t))},t.prototype.query=function(n){return this.queryAll(n)[0]||null},t.prototype.queryAll=function(n){var t=[];return function n(t,e,l){t.childNodes.forEach(function(t){t instanceof Qe&&(e(t)&&l.push(t),n(t,e,l))})}(this,n,t),t},t.prototype.queryAllNodes=function(n){var t=[];return function n(t,e,l){t instanceof Qe&&t.childNodes.forEach(function(t){e(t)&&l.push(t),t instanceof Qe&&n(t,e,l)})}(this,n,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(n){return n instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(n,t){this.listeners.forEach(function(e){e.name==n&&e.callback(t)})},t}(Ke),$e=new Map;function Je(n){return $e.get(n)||null}function Xe(n){$e.set(n.nativeNode,n)}function Ye(n,t){var e=el(n),l=el(t);return e&&l?function(n,t,e){for(var l=n[Hn()](),r=t[Hn()]();;){var o=l.next(),i=r.next();if(o.done&&i.done)return!0;if(o.done||i.done)return!1;if(!e(o.value,i.value))return!1}}(n,t,Ye):!(e||!n||"object"!=typeof n&&"function"!=typeof n||l||!t||"object"!=typeof t&&"function"!=typeof t)||Vn(n,t)}var nl=function(){function n(n){this.wrapped=n}return n.wrap=function(t){return new n(t)},n.unwrap=function(t){return n.isWrapped(t)?t.wrapped:t},n.isWrapped=function(t){return t instanceof n},n}(),tl=function(){function n(n,t,e){this.previousValue=n,this.currentValue=t,this.firstChange=e}return n.prototype.isFirstChange=function(){return this.firstChange},n}();function el(n){return!!ll(n)&&(Array.isArray(n)||!(n instanceof Map)&&Hn()in n)}function ll(n){return null!==n&&("function"==typeof n||"object"==typeof n)}var rl=function(){function n(){}return n.prototype.supports=function(n){return el(n)},n.prototype.create=function(n){return new il(n)},n}(),ol=function(n,t){return t},il=function(){function n(n){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=n||ol}return n.prototype.forEachItem=function(n){var t;for(t=this._itHead;null!==t;t=t._next)n(t)},n.prototype.forEachOperation=function(n){for(var t=this._itHead,e=this._removalsHead,l=0,r=null;t||e;){var o=!e||t&&t.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(n){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return n.prototype.getInertBodyElement_XHR=function(n){n=""+n+"";try{n=encodeURI(n)}catch(n){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+n,!1),t.send(null);var e=t.response.body;return e.removeChild(e.firstChild),e},n.prototype.getInertBodyElement_DOMParser=function(n){n=""+n+"";try{var t=(new window.DOMParser).parseFromString(n,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},n.prototype.getInertBodyElement_InertDocument=function(n){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=n,t):(this.inertBodyElement.innerHTML=n,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},n.prototype.stripCustomNsAttrs=function(n){for(var t=n.attributes,e=t.length-1;0")}else this.sanitizedSomething=!0},n.prototype.endElement=function(n){var t=n.nodeName.toLowerCase();Hl.hasOwnProperty(t)&&!Dl.hasOwnProperty(t)&&(this.buf.push(""))},n.prototype.chars=function(n){this.buf.push(zl(n))},n.prototype.checkClobberedElement=function(n,t){if(t&&(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+n.outerHTML);return t},n}(),Fl=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ul=/([^\#-~ |!])/g;function zl(n){return n.replace(/&/g,"&").replace(Fl,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Ul,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}function Bl(n){return"content"in n&&function(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ql=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"),Wl=/^url\(([^)]+)\)$/,Zl=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}({}),Kl=function(){};function Ql(n,t,e){var l=n.state,r=1792&l;return r===t?(n.state=-1793&l|e,n.initIndex=-1,!0):r===e}function $l(n,t,e){return(1792&n.state)===t&&n.initIndex<=e&&(n.initIndex=e+1,!0)}function Jl(n,t){return n.nodes[t]}function Xl(n,t){return n.nodes[t]}function Yl(n,t){return n.nodes[t]}function nr(n,t){return n.nodes[t]}function tr(n,t){return n.nodes[t]}var er={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 lr(n,t,e,l){var r="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+e+"'.";return l&&(r+=" 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(n,t){var e=new Error(n);return rr(e,t),e}(r,n)}function rr(n,t){n[vt]=t,n[_t]=t.logError.bind(t)}function or(n){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+n)}var ir=function(){},ur=new Map;function ar(n){var t=ur.get(n);return t||(t=jn(n)+"_"+ur.size,ur.set(n,t)),t}var sr="$$undefined",cr="$$empty";function hr(n){return{id:sr,styles:n.styles,encapsulation:n.encapsulation,data:n.data}}var pr=0;function dr(n,t,e,l){return!(!(2&n.state)&&Vn(n.oldValues[t.bindingIndex+e],l))}function fr(n,t,e,l){return!!dr(n,t,e,l)&&(n.oldValues[t.bindingIndex+e]=l,!0)}function gr(n,t,e,l){var r=n.oldValues[t.bindingIndex+e];if(1&n.state||!Ye(r,l)){var o=t.bindings[e].name;throw lr(er.createDebugContext(n,t.nodeIndex),o+": "+r,o+": "+l,0!=(1&n.state))}}function mr(n){for(var t=n;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function yr(n,t){for(var e=n;e&&e!==t;)e.state|=64,e=e.viewContainerParent||e.parent}function vr(n,t,e,l){try{return mr(33554432&n.def.nodes[t].flags?Xl(n,t).componentView:n),er.handleEvent(n,t,e,l)}catch(t){n.root.errorHandler.handleError(t)}}function br(n){return n.parent?Xl(n.parent,n.parentNodeDef.nodeIndex):null}function _r(n){return n.parent?n.parentNodeDef.parent:null}function wr(n,t){switch(201347067&t.flags){case 1:return Xl(n,t.nodeIndex).renderElement;case 2:return Jl(n,t.nodeIndex).renderText}}function Cr(n){return!!n.parent&&!!(32768&n.parentNodeDef.flags)}function Sr(n){return!(!n.parent||32768&n.parentNodeDef.flags)}function Tr(n){return 1<-1}(l)||"root"===r.providedIn&&l._def.isRoot))){var s=n._providers.length;return n._def.providersByKey[t.tokenKey]={flags:5120,value:t.token.ngInjectableDef.factory,deps:[],index:s,token:t.token},n._providers[s]=Wr,n._providers[s]=Xr(n,n._def.providersByKey[t.tokenKey])}return 4&t.flags?e:n._parent.get(t.token,e)}finally{dt(o)}}function Xr(n,t){var e;switch(201347067&t.flags){case 512:e=function(n,t,e){var l=e.length;switch(l){case 0:return new t;case 1:return new t(Jr(n,e[0]));case 2:return new t(Jr(n,e[0]),Jr(n,e[1]));case 3:return new t(Jr(n,e[0]),Jr(n,e[1]),Jr(n,e[2]));default:for(var r=new Array(l),o=0;o=e.length)&&(t=e.length-1),t<0)return null;var l=e[t];return l.viewContainerParent=null,lo(e,t),er.dirtyParentQueries(l),to(l),l}function no(n,t,e){var l=t?wr(t,t.def.lastRenderRootNode):n.renderElement;Pr(e,2,e.renderer.parentNode(l),e.renderer.nextSibling(l),void 0)}function to(n){Pr(n,3,null,null,void 0)}function eo(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function lo(n,t){t>=n.length-1?n.pop():n.splice(t,1)}var ro=new Object;function oo(n,t,e,l,r,o){return new io(n,t,e,l,r,o)}var io=function(n){function t(t,e,l,r,o,i){var u=n.call(this)||this;return u.selector=t,u.componentType=e,u._inputs=r,u._outputs=o,u.ngContentSelectors=i,u.viewDefFactory=l,u}return r(t,n),Object.defineProperty(t.prototype,"inputs",{get:function(){var n=[],t=this._inputs;for(var e in t)n.push({propName:e,templateName:t[e]});return n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var n=[];for(var t in this._outputs)n.push({propName:t,templateName:this._outputs[t]});return n},enumerable:!0,configurable:!0}),t.prototype.create=function(n,t,e,l){if(!l)throw new Error("ngModule should be provided");var r=Rr(this.viewDefFactory),o=r.nodes[0].element.componentProvider.nodeIndex,i=er.createRootView(n,t||[],e,r,l,ro),u=Yl(i,o).instance;return e&&i.renderer.setAttribute(Xl(i,0).renderElement,"ng-version",yt.full),new uo(i,new ho(i),u)},t}(Jt),uo=function(n){function t(t,e,l){var r=n.call(this)||this;return r._view=t,r._viewRef=e,r._component=l,r._elDef=r._view.def.nodes[0],r.hostView=e,r.changeDetectorRef=e,r.instance=l,r}return r(t,n),Object.defineProperty(t.prototype,"location",{get:function(){return new Ve(Xl(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new mo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(n){this._viewRef.onDestroy(n)},t}($t);function ao(n,t,e){return new so(n,t,e)}var so=function(){function n(n,t,e){this._view=n,this._elDef=t,this._data=e,this._embeddedViews=[]}return Object.defineProperty(n.prototype,"element",{get:function(){return new Ve(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"injector",{get:function(){return new mo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentInjector",{get:function(){for(var n=this._view,t=this._elDef.parent;!t&&n;)t=_r(n),n=n.parent;return n?new mo(n,t):new mo(this._view,null)},enumerable:!0,configurable:!0}),n.prototype.clear=function(){for(var n=this._embeddedViews.length-1;n>=0;n--){var t=Yr(this._data,n);er.destroyView(t)}},n.prototype.get=function(n){var t=this._embeddedViews[n];if(t){var e=new ho(t);return e.attachToViewContainerRef(this),e}return null},Object.defineProperty(n.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),n.prototype.createEmbeddedView=function(n,t,e){var l=n.createEmbeddedView(t||{});return this.insert(l,e),l},n.prototype.createComponent=function(n,t,e,l,r){var o=e||this.parentInjector;r||n instanceof oe||(r=o.get(ie));var i=n.create(o,l,void 0,r);return this.insert(i.hostView,t),i},n.prototype.insert=function(n,t){if(n.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var e,l,r,o,i=n;return r=i._view,o=(e=this._data).viewContainer._embeddedViews,null!==(l=t)&&void 0!==l||(l=o.length),r.viewContainerParent=this._view,eo(o,l,r),function(n,t){var e=br(t);if(e&&e!==n&&!(16&t.state)){t.state|=16;var l=e.template._projectedViews;l||(l=e.template._projectedViews=[]),l.push(t),function(n,e){if(!(4&e.flags)){t.parent.def.nodeFlags|=4,e.flags|=4;for(var l=e.parent;l;)l.childFlags|=4,l=l.parent}}(0,t.parentNodeDef)}}(e,r),er.dirtyParentQueries(r),no(e,l>0?o[l-1]:null,r),i.attachToViewContainerRef(this),n},n.prototype.move=function(n,t){if(n.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var e,l,r,o,i,u=this._embeddedViews.indexOf(n._view);return r=t,i=(o=(e=this._data).viewContainer._embeddedViews)[l=u],lo(o,l),null==r&&(r=o.length),eo(o,r,i),er.dirtyParentQueries(i),to(i),no(e,r>0?o[r-1]:null,i),n},n.prototype.indexOf=function(n){return this._embeddedViews.indexOf(n._view)},n.prototype.remove=function(n){var t=Yr(this._data,n);t&&er.destroyView(t)},n.prototype.detach=function(n){var t=Yr(this._data,n);return t?new ho(t):null},n}();function co(n){return new ho(n)}var ho=function(){function n(n){this._view=n,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(n.prototype,"rootNodes",{get:function(){return Pr(this._view,0,void 0,void 0,n=[]),n;var n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),n.prototype.markForCheck=function(){mr(this._view)},n.prototype.detach=function(){this._view.state&=-5},n.prototype.detectChanges=function(){var n=this._view.root.rendererFactory;n.begin&&n.begin();try{er.checkAndUpdateView(this._view)}finally{n.end&&n.end()}},n.prototype.checkNoChanges=function(){er.checkNoChangesView(this._view)},n.prototype.reattach=function(){this._view.state|=4},n.prototype.onDestroy=function(n){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(n)},n.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),er.destroyView(this._view)},n.prototype.detachFromAppRef=function(){this._appRef=null,to(this._view),er.dirtyParentQueries(this._view)},n.prototype.attachToAppRef=function(n){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=n},n.prototype.attachToViewContainerRef=function(n){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=n},n}();function po(n,t){return new fo(n,t)}var fo=function(n){function t(t,e){var l=n.call(this)||this;return l._parentView=t,l._def=e,l}return r(t,n),t.prototype.createEmbeddedView=function(n){return new ho(er.createEmbeddedView(this._parentView,this._def,this._def.element.template,n))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Ve(Xl(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(qe);function go(n,t){return new mo(n,t)}var mo=function(){function n(n,t){this.view=n,this.elDef=t}return n.prototype.get=function(n,t){return void 0===t&&(t=Xn.THROW_IF_NOT_FOUND),er.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:n,tokenKey:ar(n)},t)},n}();function yo(n,t){var e=n.def.nodes[t];if(1&e.flags){var l=Xl(n,e.nodeIndex);return e.element.template?l.template:l.renderElement}if(2&e.flags)return Jl(n,e.nodeIndex).renderText;if(20240&e.flags)return Yl(n,e.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function vo(n){return new bo(n.renderer)}var bo=function(){function n(n){this.delegate=n}return n.prototype.selectRootElement=function(n){return this.delegate.selectRootElement(n)},n.prototype.createElement=function(n,t){var e=c(Hr(t),2),l=this.delegate.createElement(e[1],e[0]);return n&&this.delegate.appendChild(n,l),l},n.prototype.createViewRoot=function(n){return n},n.prototype.createTemplateAnchor=function(n){var t=this.delegate.createComment("");return n&&this.delegate.appendChild(n,t),t},n.prototype.createText=function(n,t){var e=this.delegate.createText(t);return n&&this.delegate.appendChild(n,e),e},n.prototype.projectNodes=function(n,t){for(var e=0;e0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var l=0;l0,l=t.provider;switch(201347067&t.flags){case 512:return Vo(n,t.parent,e,l.value,l.deps);case 1024:return function(n,t,e,l,r){var o=r.length;switch(o){case 0:return l();case 1:return l(Go(n,t,e,r[0]));case 2:return l(Go(n,t,e,r[0]),Go(n,t,e,r[1]));case 3:return l(Go(n,t,e,r[0]),Go(n,t,e,r[1]),Go(n,t,e,r[2]));default:for(var i=Array(o),u=0;u0)s=g,oi(g)||(c=g);else for(;s&&f===s.nodeIndex+s.childCount;){var v=s.parent;v&&(v.childFlags|=s.childFlags,v.childMatchedQueries|=s.childMatchedQueries),c=(s=v)&&oi(s)?s.renderParent:s}}return{factory:null,nodeFlags:i,rootNodeFlags:u,nodeMatchedQueries:a,flags:n,nodes:t,updateDirectives:e||ir,updateRenderer:l||ir,handleEvent:function(n,e,l,r){return t[e].element.handleEvent(n,l,r)},bindingCount:r,outputCount:o,lastRenderRootNode:d}}function oi(n){return 0!=(1&n.flags)&&null===n.element.name}function ii(n,t,e){var l=t.element&&t.element.template;if(l){if(!l.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(l.lastRenderRootNode&&16777216&l.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(n?n.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!n||0==(16384&n.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&n)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var r=n?n.nodeIndex+n.childCount:e-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function ui(n,t,e,l){var r=ci(n.root,n.renderer,n,t,e);return hi(r,n.component,l),pi(r),r}function ai(n,t,e){var l=ci(n,n.renderer,null,null,t);return hi(l,e,e),pi(l),l}function si(n,t,e,l){var r,o=t.element.componentRendererType;return r=o?n.root.rendererFactory.createRenderer(l,o):n.root.renderer,ci(n.root,r,n,t.element.componentProvider,e)}function ci(n,t,e,l,r){var o=new Array(r.nodes.length),i=r.outputCount?new Array(r.outputCount):null;return{def:r,parent:e,viewContainerParent:null,parentNodeDef:l,context:null,component:null,nodes:o,state:13,root:n,renderer:t,oldValues:new Array(r.bindingCount),disposables:i,initIndex:-1}}function hi(n,t,e){n.component=t,n.context=e}function pi(n){var t;Cr(n)&&(t=Xl(n.parent,n.parentNodeDef.parent.nodeIndex).renderElement);for(var e=n.def,l=n.nodes,r=0;r0&&qr(n,t,0,e)&&(d=!0),p>1&&qr(n,t,1,l)&&(d=!0),p>2&&qr(n,t,2,r)&&(d=!0),p>3&&qr(n,t,3,o)&&(d=!0),p>4&&qr(n,t,4,i)&&(d=!0),p>5&&qr(n,t,5,u)&&(d=!0),p>6&&qr(n,t,6,a)&&(d=!0),p>7&&qr(n,t,7,s)&&(d=!0),p>8&&qr(n,t,8,c)&&(d=!0),p>9&&qr(n,t,9,h)&&(d=!0),d}(n,t,e,l,r,o,i,u,a,s,c,h);case 2:return function(n,t,e,l,r,o,i,u,a,s,c,h){var p=!1,d=t.bindings,f=d.length;if(f>0&&fr(n,t,0,e)&&(p=!0),f>1&&fr(n,t,1,l)&&(p=!0),f>2&&fr(n,t,2,r)&&(p=!0),f>3&&fr(n,t,3,o)&&(p=!0),f>4&&fr(n,t,4,i)&&(p=!0),f>5&&fr(n,t,5,u)&&(p=!0),f>6&&fr(n,t,6,a)&&(p=!0),f>7&&fr(n,t,7,s)&&(p=!0),f>8&&fr(n,t,8,c)&&(p=!0),f>9&&fr(n,t,9,h)&&(p=!0),p){var g=t.text.prefix;f>0&&(g+=li(e,d[0])),f>1&&(g+=li(l,d[1])),f>2&&(g+=li(r,d[2])),f>3&&(g+=li(o,d[3])),f>4&&(g+=li(i,d[4])),f>5&&(g+=li(u,d[5])),f>6&&(g+=li(a,d[6])),f>7&&(g+=li(s,d[7])),f>8&&(g+=li(c,d[8])),f>9&&(g+=li(h,d[9]));var m=Jl(n,t.nodeIndex).renderText;n.renderer.setValue(m,g)}return p}(n,t,e,l,r,o,i,u,a,s,c,h);case 16384:return function(n,t,e,l,r,o,i,u,a,s,c,h){var p=Yl(n,t.nodeIndex),d=p.instance,f=!1,g=void 0,m=t.bindings.length;return m>0&&dr(n,t,0,e)&&(f=!0,g=Uo(n,p,t,0,e,g)),m>1&&dr(n,t,1,l)&&(f=!0,g=Uo(n,p,t,1,l,g)),m>2&&dr(n,t,2,r)&&(f=!0,g=Uo(n,p,t,2,r,g)),m>3&&dr(n,t,3,o)&&(f=!0,g=Uo(n,p,t,3,o,g)),m>4&&dr(n,t,4,i)&&(f=!0,g=Uo(n,p,t,4,i,g)),m>5&&dr(n,t,5,u)&&(f=!0,g=Uo(n,p,t,5,u,g)),m>6&&dr(n,t,6,a)&&(f=!0,g=Uo(n,p,t,6,a,g)),m>7&&dr(n,t,7,s)&&(f=!0,g=Uo(n,p,t,7,s,g)),m>8&&dr(n,t,8,c)&&(f=!0,g=Uo(n,p,t,8,c,g)),m>9&&dr(n,t,9,h)&&(f=!0,g=Uo(n,p,t,9,h,g)),g&&d.ngOnChanges(g),65536&t.flags&&$l(n,256,t.nodeIndex)&&d.ngOnInit(),262144&t.flags&&d.ngDoCheck(),f}(n,t,e,l,r,o,i,u,a,s,c,h);case 32:case 64:case 128:return function(n,t,e,l,r,o,i,u,a,s,c,h){var p=t.bindings,d=!1,f=p.length;if(f>0&&fr(n,t,0,e)&&(d=!0),f>1&&fr(n,t,1,l)&&(d=!0),f>2&&fr(n,t,2,r)&&(d=!0),f>3&&fr(n,t,3,o)&&(d=!0),f>4&&fr(n,t,4,i)&&(d=!0),f>5&&fr(n,t,5,u)&&(d=!0),f>6&&fr(n,t,6,a)&&(d=!0),f>7&&fr(n,t,7,s)&&(d=!0),f>8&&fr(n,t,8,c)&&(d=!0),f>9&&fr(n,t,9,h)&&(d=!0),d){var g=nr(n,t.nodeIndex),m=void 0;switch(201347067&t.flags){case 32:m=new Array(p.length),f>0&&(m[0]=e),f>1&&(m[1]=l),f>2&&(m[2]=r),f>3&&(m[3]=o),f>4&&(m[4]=i),f>5&&(m[5]=u),f>6&&(m[6]=a),f>7&&(m[7]=s),f>8&&(m[8]=c),f>9&&(m[9]=h);break;case 64:m={},f>0&&(m[p[0].name]=e),f>1&&(m[p[1].name]=l),f>2&&(m[p[2].name]=r),f>3&&(m[p[3].name]=o),f>4&&(m[p[4].name]=i),f>5&&(m[p[5].name]=u),f>6&&(m[p[6].name]=a),f>7&&(m[p[7].name]=s),f>8&&(m[p[8].name]=c),f>9&&(m[p[9].name]=h);break;case 128:var y=e;switch(f){case 1:m=y.transform(e);break;case 2:m=y.transform(l);break;case 3:m=y.transform(l,r);break;case 4:m=y.transform(l,r,o);break;case 5:m=y.transform(l,r,o,i);break;case 6:m=y.transform(l,r,o,i,u);break;case 7:m=y.transform(l,r,o,i,u,a);break;case 8:m=y.transform(l,r,o,i,u,a,s);break;case 9:m=y.transform(l,r,o,i,u,a,s,c);break;case 10:m=y.transform(l,r,o,i,u,a,s,c,h)}}g.value=m}return d}(n,t,e,l,r,o,i,u,a,s,c,h);default:throw"unreachable"}}(n,t,l,r,o,i,u,a,s,c,p,d):function(n,t,e){switch(201347067&t.flags){case 1:return function(n,t,e){for(var l=!1,r=0;r0&&gr(n,t,0,e),p>1&&gr(n,t,1,l),p>2&&gr(n,t,2,r),p>3&&gr(n,t,3,o),p>4&&gr(n,t,4,i),p>5&&gr(n,t,5,u),p>6&&gr(n,t,6,a),p>7&&gr(n,t,7,s),p>8&&gr(n,t,8,c),p>9&&gr(n,t,9,h)}(n,t,l,r,o,i,u,a,s,c,h,p):function(n,t,e){for(var l=0;l0){var o=new Set(n.modules);Ni.forEach(function(t,l){if(o.has(l.ngInjectableDef.providedIn)){var r={token:l,flags:t.flags|(e?4096:0),deps:xr(t.deps),value:t.value,index:n.providers.length};n.providers.push(r),n.providersByKey[ar(l)]=r}})}}(n=n.factory(function(){return ir})),n):n}(l))}var Ai=new Map,Ni=new Map,Mi=new Map;function Hi(n){Ai.set(n.token,n),"function"==typeof n.token&&n.token.ngInjectableDef&&"function"==typeof n.token.ngInjectableDef.providedIn&&Ni.set(n.token,n)}function Li(n,t){var e=Rr(Rr(t.viewDefFactory).nodes[0].element.componentView);Mi.set(n,e)}function Vi(){Ai.clear(),Ni.clear(),Mi.clear()}function ji(n){if(0===Ai.size)return n;var t=function(n){for(var t=[],e=null,l=0;l=p.length){var d=p[h]=wa(t,h,l,r,u,null);if(!$u&&Qu){var f=Qu.tNode;f.next=d,f.dynamicContainerNode&&(f.dynamicContainerNode.next=d)}}c.tNode=p[h],$u&&(Xu=null,(null==Qu.tNode.child&&Qu.view===na||2===Qu.tNode.type)&&(Qu.tNode.child=c.tNode))}if(2==(2&t)&&s){var g=o;g[vu]=c,ua&&(g[du].node=c.tNode)}return Qu=c,$u=!0,c}function fa(n,t,e,l){var r,o=$u,i=Qu;if(null==n.data[fu]&&n.data[Cu]&&!t.template)Ta(n.data[Cu]);else try{$u=!0,Qu=null,r=aa(n.data,n),va(),t.template(l,e),2&l?ca():n.data[du].firstTemplatePass=ua=!1}finally{sa(r,1==(1&l)),$u=o,Qu=i}return n}function ga(n,t,e,l){var r=aa(t,n);try{Ku.begin&&Ku.begin(),l?(va(),l(ma(t),e),ca()):(ia||(Ru(na,Ju,Yu),Pu(ta,Ju.contentHooks,Ju.contentCheckHooks,Yu)),ha(ra),Ca(0,pu))}finally{Ku.end&&Ku.end(),sa(r)}}function ma(n){return 1&n[yu]?3:2}var ya=null;function va(){ya=null}function ba(n,t,e,l,r){return{id:n,template:t,viewQuery:r,node:null,data:oa.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 e?e():e,pipeRegistry:"function"==typeof l?l():l,currentMatches:null}}function _a(n,t){Ku=n;var e=n.createRenderer(null,null);return"string"==typeof t?Mu(e)?e.selectRootElement(t):e.querySelector(t):t}function wa(n,t,e,l,r,o){return{type:n,index:t,flags:0,tagName:e,attrs:l,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:o,next:null,child:null,parent:r,dynamicContainerNode:null,detached:null,stylingTemplate:null,projection:null}}function Ca(n,t){var e=na[t],l=e.data;Sa(l)&&6&l[yu]&&Ea(l,e,ta[n])}function Sa(n){return 8==(8&n[yu])}function Ta(n){for(var t=0;t=pu?t[du].childIndex>-1&&(e=Bu(t)):t[Au].length&&(e=t[Au][0].data),null==e){for(;t&&!t[gu]&&t!==n;)Wu(t),t=qu(t,n);Wu(t||n),e=t&&t[gu]}t=e}}(n),n[yu]|=32},n.prototype.onDestroy=function(n){var t,e;e=n,function(n){return n[wu]||(n[wu]=[])}(t=this._view).push(e),t[du].firstTemplatePass&&function(n){return n[du].cleanup||(n[du].cleanup=[])}(t).push(t[wu].length-1,null)},n.prototype.markForCheck=function(){!function(n){for(var t=n;null!=t[fu];)t[yu]|=4,t=t[fu];var e,l;t[yu]|=4,(e=t[Cu]).clean==la&&(e.clean=new Promise(function(n){return l=n}),e.scheduler(function(){Ta(e),l(null),e.clean=la}))}(this._view)},n.prototype.detach=function(){this._view[yu]&=-9},n.prototype.reattach=function(){this._view[yu]|=8},n.prototype.detectChanges=function(){xa(this.context)},n.prototype.checkNoChanges=function(){!function(n){ia=!0;try{xa(n)}finally{ia=!1}}(this.context)},n.prototype.attachToViewContainerRef=function(n){this._viewContainerRef=n},n.prototype.detachFromAppRef=function(){this._appRef=null},n.prototype.attachToAppRef=function(n){this._appRef=n},n}(),Da=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r(t,n),t.prototype.resolveComponentFactory=function(n){return new Ha(n.ngComponentDef)},t}(le);function Aa(n){var t=[];for(var e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}var Na=new wn("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return Pa(ft(Ma))}}),Ma=new wn("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return requestAnimationFrame.bind(window)}}),Ha=function(n){function t(t){var e=n.call(this)||this;return e.componentDef=t,e.componentType=t.type,e.selector=t.selectors[0][0],e.ngContentSelectors=[],e}return r(t,n),Object.defineProperty(t.prototype,"inputs",{get:function(){return Aa(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){return Aa(this.componentDef.outputs)},enumerable:!0,configurable:!0}),t.prototype.create=function(n,t,e,l){var r,o,i=void 0===e,u=l?l.injector.get(Me):Hu,a=i?(r=this.selector,Mu(o=u.createRenderer(null,this.componentDef.rendererType)||Zu)?o.createElement(r,ya):null===ya?o.createElement(r):o.createElementNS(ya,r)):_a(u,e),s=l&&!i?l.injector.get(Na):Pa(requestAnimationFrame.bind(window)),c=pa(u.createRenderer(a,this.componentDef.rendererType),ba(-1,null,null,null,null),s,this.componentDef.onPush?4:2);c[Su]=l&&l.injector||null;var h,p,d=aa(c,null);try{if(u.begin&&u.begin(),p=function(n,t,e,l){$u=!1,Qu=null;var r,o=da(0,3,t,null,null,pa(Zu,(r=e.template).ngPrivateData||(r.ngPrivateData=ba(-1,r,e.directiveDefs,e.pipeDefs,e.viewQuery)),null,e.onPush?4:2,l));return ua&&(o.tNode.flags=4096,e.diPublic&&e.diPublic(e),Ju.directives=[e]),o}(0,a,this.componentDef),s.components.push(h=function(n,t,e){if(Object.defineProperty(t,ea,{enumerable:!1,value:Qu}),null==ta&&(na[_u]=ta=[]),ta[n]=t,ua){var l=Qu.tNode.flags;0==(4095&l)?Qu.tNode.flags=n<<14|4096&l|1:Qu.tNode.flags++}else{var r=e.diPublic;r&&r(e)}return null!=e.attributes&&3==Qu.tNode.type&&function(n,t){for(var e=Mu(Zu),l=0;l>14,l=e+(4095&n),r=e;r0?t.substring(1):t},t.prototype.prepareExternalUrl=function(n){var t=rs.joinWithSlash(this._baseHref,n);return t.length>0?"#"+t:t},t.prototype.pushState=function(n,t,e,l){var r=this.prepareExternalUrl(e+rs.normalizeQueryParams(l));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(n,t,r)},t.prototype.replaceState=function(n,t,e,l){var r=this.prepareExternalUrl(e+rs.normalizeQueryParams(l));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(n,t,r)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},i([u(1,zn()),u(1,Un(ls))],t)}(es),us=function(n){function t(t,e){var l=n.call(this)||this;if(l._platformLocation=t,null==e&&(e=l._platformLocation.getBaseHrefFromDOM()),null==e)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 l._baseHref=e,l}return r(t,n),t.prototype.onPopState=function(n){this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(n){return rs.joinWithSlash(this._baseHref,n)},t.prototype.path=function(n){void 0===n&&(n=!1);var t=this._platformLocation.pathname+rs.normalizeQueryParams(this._platformLocation.search),e=this._platformLocation.hash;return e&&n?""+t+e:t},t.prototype.pushState=function(n,t,e,l){var r=this.prepareExternalUrl(e+rs.normalizeQueryParams(l));this._platformLocation.pushState(n,t,r)},t.prototype.replaceState=function(n,t,e,l){var r=this.prepareExternalUrl(e+rs.normalizeQueryParams(l));this._platformLocation.replaceState(n,t,r)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},i([u(1,zn()),u(1,Un(ls))],t)}(es),as=void 0,ss=["en",[["a","p"],["AM","PM"],as],[["AM","PM"],as,as],[["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"]],as,[["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"]],as,[["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}",as,"{1} 'at' {0}",as],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(n){var t=Math.floor(Math.abs(n)),e=n.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===e?1:5}],cs={},hs=function(n){return n[n.Zero=0]="Zero",n[n.One=1]="One",n[n.Two=2]="Two",n[n.Few=3]="Few",n[n.Many=4]="Many",n[n.Other=5]="Other",n}({}),ps=new wn("UseV4Plurals"),ds=function(){},fs=function(n){function t(t,e){var l=n.call(this)||this;return l.locale=t,l.deprecatedPluralFn=e,l}return r(t,n),t.prototype.getPluralCategory=function(n,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,n):function(n){return function(n){var t=n.toLowerCase().replace(/_/g,"-"),e=cs[t];if(e)return e;var l=t.split("-")[0];if(e=cs[l])return e;if("en"===l)return ss;throw new Error('Missing locale data for the locale "'+n+'".')}(n)[18]}(t||this.locale)(n)){case hs.Zero:return"zero";case hs.One:return"one";case hs.Two:return"two";case hs.Few:return"few";case hs.Many:return"many";default:return"other"}},i([u(0,Un(_l)),u(1,zn()),u(1,Un(ps))],t)}(ds);function gs(n,t){var e,l;t=encodeURIComponent(t);try{for(var r=s(n.split(";")),o=r.next();!o.done;o=r.next()){var i=o.value,u=i.indexOf("="),a=c(-1==u?[i,""]:[i.slice(0,u),i.slice(u+1)],2),h=a[1];if(a[0].trim()===t)return decodeURIComponent(h)}}catch(n){e={error:n}}finally{try{o&&!o.done&&(l=r.return)&&l.call(r)}finally{if(e)throw e.error}}return null}var ms=function(){function n(n,t,e,l){this.$implicit=n,this.ngForOf=t,this.index=e,this.count=l}return Object.defineProperty(n.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),n}(),ys=function(){function n(n,t,e){this._viewContainer=n,this._template=t,this._differs=e,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(n.prototype,"ngForOf",{set:function(n){this._ngForOf=n,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(n){Ee()&&null!=n&&"function"!=typeof n&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(n)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ngForTemplate",{set:function(n){n&&(this._template=n)},enumerable:!0,configurable:!0}),n.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+n+"' of type '"+((t=n).name||typeof t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var t;if(this._differ){var e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}},n.prototype._applyChanges=function(n){var t=this,e=[];n.forEachOperation(function(n,l,r){if(null==n.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new ms(null,t._ngForOf,-1,-1),r),i=new vs(n,o);e.push(i)}else null==r?t._viewContainer.remove(l):(o=t._viewContainer.get(l),t._viewContainer.move(o,r),i=new vs(n,o),e.push(i))});for(var l=0;l0){var l=n.slice(0,e),r=l.toLowerCase(),o=n.slice(e+1).trim();t.maybeSetNormalizedName(l,r),t.headers.has(r)?t.headers.get(r).push(o):t.headers.set(r,[o])}})}:function(){t.headers=new Map,Object.keys(n).forEach(function(e){var l=n[e],r=e.toLowerCase();"string"==typeof l&&(l=[l]),l.length>0&&(t.headers.set(r,l),t.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return n.prototype.has=function(n){return this.init(),this.headers.has(n.toLowerCase())},n.prototype.get=function(n){this.init();var t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null},n.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},n.prototype.getAll=function(n){return this.init(),this.headers.get(n.toLowerCase())||null},n.prototype.append=function(n,t){return this.clone({name:n,value:t,op:"a"})},n.prototype.set=function(n,t){return this.clone({name:n,value:t,op:"s"})},n.prototype.delete=function(n,t){return this.clone({name:n,value:t,op:"d"})},n.prototype.maybeSetNormalizedName=function(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)},n.prototype.init=function(){var t=this;this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(n){return t.applyUpdate(n)}),this.lazyUpdate=null))},n.prototype.copyFrom=function(n){var t=this;n.init(),Array.from(n.headers.keys()).forEach(function(e){t.headers.set(e,n.headers.get(e)),t.normalizedNames.set(e,n.normalizedNames.get(e))})},n.prototype.clone=function(t){var e=new n;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e},n.prototype.applyUpdate=function(n){var t=n.name.toLowerCase();switch(n.op){case"a":case"s":var e=n.value;if("string"==typeof e&&(e=[e]),0===e.length)return;this.maybeSetNormalizedName(n.name,t);var l=("a"===n.op?this.headers.get(t):void 0)||[];l.push.apply(l,h(e)),this.headers.set(t,l);break;case"d":var r=n.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(n){return-1===r.indexOf(n)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}},n.prototype.forEach=function(n){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(e){return n(t.normalizedNames.get(e),t.headers.get(e))})},n}(),Ds=function(){function n(){}return n.prototype.encodeKey=function(n){return As(n)},n.prototype.encodeValue=function(n){return As(n)},n.prototype.decodeKey=function(n){return decodeURIComponent(n)},n.prototype.decodeValue=function(n){return decodeURIComponent(n)},n}();function As(n){return encodeURIComponent(n).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 Ns=function(){function n(n){void 0===n&&(n={});var t,e,l,r=this;if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Ds,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=n.fromString,e=this.encoder,l=new Map,t.length>0&&t.split("&").forEach(function(n){var t=n.indexOf("="),r=c(-1==t?[e.decodeKey(n),""]:[e.decodeKey(n.slice(0,t)),e.decodeValue(n.slice(t+1))],2),o=r[0],i=r[1],u=l.get(o)||[];u.push(i),l.set(o,u)}),l)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(t){var e=n.fromObject[t];r.map.set(t,Array.isArray(e)?e:[e])})):this.map=null}return n.prototype.has=function(n){return this.init(),this.map.has(n)},n.prototype.get=function(n){this.init();var t=this.map.get(n);return t?t[0]:null},n.prototype.getAll=function(n){return this.init(),this.map.get(n)||null},n.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},n.prototype.append=function(n,t){return this.clone({param:n,value:t,op:"a"})},n.prototype.set=function(n,t){return this.clone({param:n,value:t,op:"s"})},n.prototype.delete=function(n,t){return this.clone({param:n,value:t,op:"d"})},n.prototype.toString=function(){var n=this;return this.init(),this.keys().map(function(t){var e=n.encoder.encodeKey(t);return n.map.get(t).map(function(t){return e+"="+n.encoder.encodeValue(t)}).join("&")}).join("&")},n.prototype.clone=function(t){var e=new n({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e},n.prototype.init=function(){var n=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return n.map.set(t,n.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var e=("a"===t.op?n.map.get(t.param):void 0)||[];e.push(t.value),n.map.set(t.param,e);break;case"d":if(void 0===t.value){n.map.delete(t.param);break}var l=n.map.get(t.param)||[],r=l.indexOf(t.value);-1!==r&&l.splice(r,1),l.length>0?n.map.set(t.param,l):n.map.delete(t.param)}}),this.cloneFrom=null)},n}();function Ms(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function Hs(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Ls(n){return"undefined"!=typeof FormData&&n instanceof FormData}var Vs=function(){function n(n,t,e,l){var r;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||l?(this.body=void 0!==e?e:null,r=l):r=e,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new Os),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var i=t.indexOf("?");this.urlWithParams=t+(-1===i?"?":i=200&&this.status<300}}(),Fs=function(n){function t(t){void 0===t&&(t={});var e=n.call(this,t)||this;return e.type=js.ResponseHeader,e}return r(t,n),t.prototype.clone=function(n){return void 0===n&&(n={}),new t({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})},t}(Gs),Us=function(n){function t(t){void 0===t&&(t={});var e=n.call(this,t)||this;return e.type=js.Response,e.body=void 0!==t.body?t.body:null,e}return r(t,n),t.prototype.clone=function(n){return void 0===n&&(n={}),new t({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})},t}(Gs),zs=function(n){function t(t){var e=n.call(this,t,0,"Unknown Error")||this;return e.name="HttpErrorResponse",e.ok=!1,e.message=e.status>=200&&e.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for "+(t.url||"(unknown url)")+": "+t.status+" "+t.statusText,e.error=t.error||null,e}return r(t,n),t}(Gs);function Bs(n,t){return{body:t,headers:n.headers,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}var qs=function(){function n(n){this.handler=n}return n.prototype.request=function(n,t,e){var l,r=this;if(void 0===e&&(e={}),n instanceof Vs)l=n;else{var o;o=e.headers instanceof Os?e.headers:new Os(e.headers);var i=void 0;e.params&&(i=e.params instanceof Ns?e.params:new Ns({fromObject:e.params})),l=new Vs(n,t,void 0!==e.body?e.body:null,{headers:o,params:i,reportProgress:e.reportProgress,responseType:e.responseType||"json",withCredentials:e.withCredentials})}var u=za(l).pipe($a(function(n){return r.handler.handle(n)}));if(n instanceof Vs||"events"===e.observe)return u;var a=u.pipe(Ja(function(n){return n instanceof Us}));switch(e.observe||"body"){case"body":switch(l.responseType){case"arraybuffer":return a.pipe(nn(function(n){if(null!==n.body&&!(n.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return n.body}));case"blob":return a.pipe(nn(function(n){if(null!==n.body&&!(n.body instanceof Blob))throw new Error("Response is not a Blob.");return n.body}));case"text":return a.pipe(nn(function(n){if(null!==n.body&&"string"!=typeof n.body)throw new Error("Response is not a string.");return n.body}));case"json":default:return a.pipe(nn(function(n){return n.body}))}case"response":return a;default:throw new Error("Unreachable: unhandled observe type "+e.observe+"}")}},n.prototype.delete=function(n,t){return void 0===t&&(t={}),this.request("DELETE",n,t)},n.prototype.get=function(n,t){return void 0===t&&(t={}),this.request("GET",n,t)},n.prototype.head=function(n,t){return void 0===t&&(t={}),this.request("HEAD",n,t)},n.prototype.jsonp=function(n,t){return this.request("JSONP",n,{params:(new Ns).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},n.prototype.options=function(n,t){return void 0===t&&(t={}),this.request("OPTIONS",n,t)},n.prototype.patch=function(n,t,e){return void 0===e&&(e={}),this.request("PATCH",n,Bs(e,t))},n.prototype.post=function(n,t,e){return void 0===e&&(e={}),this.request("POST",n,Bs(e,t))},n.prototype.put=function(n,t,e){return void 0===e&&(e={}),this.request("PUT",n,Bs(e,t))},n}(),Ws=function(){function n(n,t){this.next=n,this.interceptor=t}return n.prototype.handle=function(n){return this.interceptor.intercept(n,this.next)},n}(),Zs=new wn("HTTP_INTERCEPTORS"),Ks=function(){function n(){}return n.prototype.intercept=function(n,t){return t.handle(n)},n}(),Qs=/^\)\]\}',?\n/,$s=function(){},Js=function(){function n(){}return n.prototype.build=function(){return new XMLHttpRequest},n}(),Xs=function(){function n(n){this.xhrFactory=n}return n.prototype.handle=function(n){var t=this;if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new N(function(e){var l=t.xhrFactory.build();if(l.open(n.method,n.urlWithParams),n.withCredentials&&(l.withCredentials=!0),n.headers.forEach(function(n,t){return l.setRequestHeader(n,t.join(","))}),n.headers.has("Accept")||l.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){var r=n.detectContentTypeHeader();null!==r&&l.setRequestHeader("Content-Type",r)}if(n.responseType){var o=n.responseType.toLowerCase();l.responseType="json"!==o?o:"text"}var i=n.serializeBody(),u=null,a=function(){if(null!==u)return u;var t=1223===l.status?204:l.status,e=l.statusText||"OK",r=new Os(l.getAllResponseHeaders()),o=function(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(l)||n.url;return u=new Fs({headers:r,status:t,statusText:e,url:o})},s=function(){var t=a(),r=t.headers,o=t.status,i=t.statusText,u=t.url,s=null;204!==o&&(s=void 0===l.response?l.responseText:l.response),0===o&&(o=s?200:0);var c=o>=200&&o<300;if("json"===n.responseType&&"string"==typeof s){var h=s;s=s.replace(Qs,"");try{s=""!==s?JSON.parse(s):null}catch(n){s=h,c&&(c=!1,s={error:n,text:s})}}c?(e.next(new Us({body:s,headers:r,status:o,statusText:i,url:u||void 0})),e.complete()):e.error(new zs({error:s,headers:r,status:o,statusText:i,url:u||void 0}))},c=function(n){var t=new zs({error:n,status:l.status||0,statusText:l.statusText||"Unknown Error"});e.error(t)},h=!1,p=function(t){h||(e.next(a()),h=!0);var r={type:js.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===n.responseType&&l.responseText&&(r.partialText=l.responseText),e.next(r)},d=function(n){var t={type:js.UploadProgress,loaded:n.loaded};n.lengthComputable&&(t.total=n.total),e.next(t)};return l.addEventListener("load",s),l.addEventListener("error",c),n.reportProgress&&(l.addEventListener("progress",p),null!==i&&l.upload&&l.upload.addEventListener("progress",d)),l.send(i),e.next({type:js.Sent}),function(){l.removeEventListener("error",c),l.removeEventListener("load",s),n.reportProgress&&(l.removeEventListener("progress",p),null!==i&&l.upload&&l.upload.removeEventListener("progress",d)),l.abort()}})},n}(),Ys=new wn("XSRF_COOKIE_NAME"),nc=new wn("XSRF_HEADER_NAME"),tc=function(){},ec=function(){function n(n,t,e){this.doc=n,this.platform=t,this.cookieName=e,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return n.prototype.getToken=function(){if("server"===this.platform)return null;var n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=gs(n,this.cookieName),this.lastCookieString=n),this.lastToken},i([u(0,Un(Ts)),u(1,Un(Bt)),u(2,Un(Ys))],n)}(),lc=function(){function n(n,t){this.tokenService=n,this.headerName=t}return n.prototype.intercept=function(n,t){var e=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||e.startsWith("http://")||e.startsWith("https://"))return t.handle(n);var l=this.tokenService.getToken();return null===l||n.headers.has(this.headerName)||(n=n.clone({headers:n.headers.set(this.headerName,l)})),t.handle(n)},i([u(1,Un(nc))],n)}(),rc=function(){function n(n,t){this.backend=n,this.injector=t,this.chain=null}return n.prototype.handle=function(n){if(null===this.chain){var t=this.injector.get(Zs,[]);this.chain=t.reduceRight(function(n,t){return new Ws(n,t)},this.backend)}return this.chain.handle(n)},n}(),oc=function(){function n(){}var t;return t=n,n.disable=function(){return{ngModule:t,providers:[{provide:lc,useClass:Ks}]}},n.withOptions=function(n){return void 0===n&&(n={}),{ngModule:t,providers:[n.cookieName?{provide:Ys,useValue:n.cookieName}:[],n.headerName?{provide:nc,useValue:n.headerName}:[]]}},n}(),ic=function(){},uc=function(){function n(n){this.http=n,this.url="https://api.saltyzoo.com/v4/pages/"}return n.prototype.getImages=function(n){var t={};return this.isLoggedOn()&&(t={headers:{user:sessionStorage.getItem("user"),Auth:sessionStorage.getItem("Auth")}}),console.log(JSON.stringify(t,null,2)),this.http.get(this.url+n,t).pipe(Ba(function(n){var t=JSON.parse(JSON.stringify(n));t.images={count:n.images?n.images.length:0},console.log("fetched pages "+JSON.stringify(t,null,2))}),Za(this.handleError("getImages",[])))},n.prototype.getPages=function(n){var t={params:{filter:n}};return this.isLoggedOn()&&(t.headers={user:sessionStorage.getItem("user"),Auth:sessionStorage.getItem("Auth")}),console.log(JSON.stringify(t,null,2)),this.http.get(this.url,t).pipe(Ba(function(n){console.log("fetched pages ")}),Za(this.handleError("getPages",[])))},n.prototype.isLoggedOn=function(){return null!=sessionStorage.getItem("Auth")&&""!=sessionStorage.getItem("Auth")},n.prototype.toggleHidden=function(n){var t={};return this.isLoggedOn()&&(t={headers:{user:sessionStorage.getItem("user"),Auth:sessionStorage.getItem("Auth")}}),console.log(JSON.stringify(n,null,2)),n.isHidden={BOOL:!n.isHidden||!n.isHidden.BOOL},console.log(JSON.stringify(n,null,2)),this.http.put(this.url+n.page.S,n,t).pipe(Ba(function(n){console.log("hidden flag toggled"+JSON.stringify(n,null,2))}),Za(this.handleError("toggleHidden",[])))},n.prototype.updateDescription=function(n){var t={};return this.isLoggedOn()&&(t={headers:{user:sessionStorage.getItem("user"),Auth:sessionStorage.getItem("Auth")}}),console.log("PUT "+this.url+n.page.S+" : "+JSON.stringify(n,null,2)),this.http.put(this.url+n.page.S,n,t).pipe(Ba(function(n){console.log("description updated "+JSON.stringify(n,null,2))}),Za(this.handleError("updateDescription",[])))},n.prototype.handleError=function(n,t){return void 0===n&&(n="operation"),function(n){return console.error(n),za(t)}},n.prototype.extractPageName=function(n,t,e){var l=n.get(t);return l?this.extractPageName(n,t+"x",e+=(e?"/":"")+l):e},n.ngInjectableDef=_n({factory:function(){return new n(ft(qs))},token:n,providedIn:"root"}),n}(),ac=function(){function n(n,t){this.pagesService=n,this.router=t,this.title="Salty Zoo"}return n.prototype.ngOnInit=function(){var n=this;this.pagesService.getImages("").subscribe(function(t){return n.gotPages(t)})},n.prototype.gotPages=function(n){this.pages=n.sort(this.pageNameCompare),this.pages.forEach(function(n){n.description||(n.description={S:""})}),console.log("done loading pages")},n.prototype.pageNameCompare=function(n,t){return n.page.St.page.S?1:0},n.prototype.class=function(n){return n.isHidden&&n.isHidden.BOOL?"hidden":"badge"},n.prototype.goHome=function(){this.router.navigateByUrl("/")},n.prototype.saveDescription=function(n){console.log("newDesc = "+JSON.stringify(n,null,2)),this.pagesService.updateDescription(n).subscribe()},n.prototype.toggle=function(n){this.pagesService.toggleHidden(n).subscribe(function(n){return n}),this.router.navigateByUrl("")},n}();function sc(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}sc.prototype=Object.create(Error.prototype);var cc=sc,hc=function(n){function t(t){var e=n.call(this)||this;return e._value=t,e}return r(t,n),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var e=n.prototype._subscribe.call(this,t);return e&&!e.closed&&t.next(this._value),e},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new L;return this._value},t.prototype.next=function(t){n.prototype.next.call(this,this._value=t)},t}(G);function pc(){return cn(1)}function dc(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}dc.prototype=Object.create(Error.prototype);var fc=dc;function gc(n){return function(t){return 0===n?Ua():t.lift(new mc(n))}}var mc=function(){function n(n){if(this.total=n,this.total<0)throw new fc}return n.prototype.call=function(n,t){return t.subscribe(new yc(n,this.total))},n}(),yc=function(n){function t(t,e){var l=n.call(this,t)||this;return l.total=e,l.ring=new Array,l.count=0,l}return r(t,n),t.prototype._next=function(n){var t=this.ring,e=this.total,l=this.count++;t.length0)for(var e=this.count>=this.total?this.total:this.count,l=this.ring,r=0;r=2;return function(l){return l.pipe(n?Ja(function(t,e){return n(t,e,l)}):sn,gc(1),e?_c(t):vc(function(){return new cc}))}}function Tc(n,t){return function(e){return e.lift(new kc(n,t,e))}}var kc=function(){function n(n,t,e){this.predicate=n,this.thisArg=t,this.source=e}return n.prototype.call=function(n,t){return t.subscribe(new xc(n,this.predicate,this.thisArg,this.source))},n}(),xc=function(n){function t(t,e,l,r){var o=n.call(this,t)||this;return o.predicate=e,o.thisArg=l,o.source=r,o.index=0,o.thisArg=l||o,o}return r(t,n),t.prototype.notifyComplete=function(n){this.destination.next(n),this.destination.complete()},t.prototype._next=function(n){var t=!1;try{t=this.predicate.call(this.thisArg,n,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(I);function Ec(n){return function(t){return 0===n?Ua():t.lift(new Ic(n))}}var Ic=function(){function n(n){if(this.total=n,this.total<0)throw new fc}return n.prototype.call=function(n,t){return t.subscribe(new Rc(n,this.total))},n}(),Rc=function(n){function t(t,e){var l=n.call(this,t)||this;return l.total=e,l.count=0,l}return r(t,n),t.prototype._next=function(n){var t=this.total,e=++this.count;e<=t&&(this.destination.next(n),e===t&&(this.destination.complete(),this.unsubscribe()))},t}(I);function Pc(n,t){var e=arguments.length>=2;return function(l){return l.pipe(n?Ja(function(t,e){return n(t,e,l)}):sn,Ec(1),e?_c(t):vc(function(){return new cc}))}}function Oc(n,t){var e=!1;return arguments.length>=2&&(e=!0),function(l){return l.lift(new Dc(n,t,e))}}var Dc=function(){function n(n,t,e){void 0===e&&(e=!1),this.accumulator=n,this.seed=t,this.hasSeed=e}return n.prototype.call=function(n,t){return t.subscribe(new Ac(n,this.accumulator,this.seed,this.hasSeed))},n}(),Ac=function(n){function t(t,e,l,r){var o=n.call(this,t)||this;return o.accumulator=e,o._seed=l,o.hasSeed=r,o.index=0,o}return r(t,n),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(n){this.hasSeed=!0,this._seed=n},enumerable:!0,configurable:!0}),t.prototype._next=function(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)},t.prototype._tryNext=function(n){var t,e=this.index++;try{t=this.accumulator(this.seed,n,e)}catch(n){this.destination.error(n)}this.seed=t,this.destination.next(t)},t}(I),Nc=null;function Mc(){return Nc}var Hc,Lc={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Vc={"\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"};An.Node&&(Hc=An.Node.prototype.contains||function(n){return!!(16&this.compareDocumentPosition(n))});var Gc,Fc=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r(t,n),t.prototype.parse=function(n){throw new Error("parse not implemented")},t.makeCurrent=function(){var n;n=new t,Nc||(Nc=n)},t.prototype.hasProperty=function(n,t){return t in n},t.prototype.setProperty=function(n,t,e){n[t]=e},t.prototype.getProperty=function(n,t){return n[t]},t.prototype.invoke=function(n,t,e){var l;(l=n)[t].apply(l,h(e))},t.prototype.logError=function(n){window.console&&(console.error?console.error(n):console.log(n))},t.prototype.log=function(n){window.console&&window.console.log&&window.console.log(n)},t.prototype.logGroup=function(n){window.console&&window.console.group&&window.console.group(n)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return Lc},enumerable:!0,configurable:!0}),t.prototype.contains=function(n,t){return Hc.call(n,t)},t.prototype.querySelector=function(n,t){return n.querySelector(t)},t.prototype.querySelectorAll=function(n,t){return n.querySelectorAll(t)},t.prototype.on=function(n,t,e){n.addEventListener(t,e,!1)},t.prototype.onAndCancel=function(n,t,e){return n.addEventListener(t,e,!1),function(){n.removeEventListener(t,e,!1)}},t.prototype.dispatchEvent=function(n,t){n.dispatchEvent(t)},t.prototype.createMouseEvent=function(n){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(n,!0,!0),t},t.prototype.createEvent=function(n){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(n,!0,!0),t},t.prototype.preventDefault=function(n){n.preventDefault(),n.returnValue=!1},t.prototype.isPrevented=function(n){return n.defaultPrevented||null!=n.returnValue&&!n.returnValue},t.prototype.getInnerHTML=function(n){return n.innerHTML},t.prototype.getTemplateContent=function(n){return"content"in n&&this.isTemplateElement(n)?n.content:null},t.prototype.getOuterHTML=function(n){return n.outerHTML},t.prototype.nodeName=function(n){return n.nodeName},t.prototype.nodeValue=function(n){return n.nodeValue},t.prototype.type=function(n){return n.type},t.prototype.content=function(n){return this.hasProperty(n,"content")?n.content:n},t.prototype.firstChild=function(n){return n.firstChild},t.prototype.nextSibling=function(n){return n.nextSibling},t.prototype.parentElement=function(n){return n.parentNode},t.prototype.childNodes=function(n){return n.childNodes},t.prototype.childNodesAsList=function(n){for(var t=n.childNodes,e=new Array(t.length),l=0;l0},t.prototype.tagName=function(n){return n.tagName},t.prototype.attributeMap=function(n){for(var t=new Map,e=n.attributes,l=0;l0;i||(i=n[o]=[]);var a=wh(t)?Zone.root:Zone.current;if(0===i.length)i.push({zone:a,handler:r});else{for(var s=!1,c=0;c-1},i([u(0,Un(zc)),u(1,Un(kh)),u(3,zn()),u(3,Un(xh))],t)}(nh),Rh=["alt","control","meta","shift"],Ph={alt:function(n){return n.altKey},control:function(n){return n.ctrlKey},meta:function(n){return n.metaKey},shift:function(n){return n.shiftKey}},Oh=function(n){function t(t){return n.call(this,t)||this}var e;return r(t,n),e=t,t.prototype.supports=function(n){return null!=e.parseEventName(n)},t.prototype.addEventListener=function(n,t,l){var r=e.parseEventName(t),o=e.eventCallback(r.fullKey,l,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Mc().onAndCancel(n,r.domEventName,o)})},t.parseEventName=function(n){var t=n.toLowerCase().split("."),l=t.shift();if(0===t.length||"keydown"!==l&&"keyup"!==l)return null;var r=e._normalizeKey(t.pop()),o="";if(Rh.forEach(function(n){var e=t.indexOf(n);e>-1&&(t.splice(e,1),o+=n+".")}),o+=r,0!=t.length||0===r.length)return null;var i={};return i.domEventName=l,i.fullKey=o,i},t.getEventFullKey=function(n){var t="",e=Mc().getEventKey(n);return" "===(e=e.toLowerCase())?e="space":"."===e&&(e="dot"),Rh.forEach(function(l){l!=e&&(0,Ph[l])(n)&&(t+=l+".")}),t+=e},t.eventCallback=function(n,t,l){return function(r){e.getEventFullKey(r)===n&&l.runGuarded(function(){return t(r)})}},t._normalizeKey=function(n){switch(n){case"esc":return"escape";default:return n}},e=i([u(0,Un(zc))],t)}(nh),Dh=function(){},Ah=function(n){function t(t){var e=n.call(this)||this;return e._doc=t,e}return r(t,n),t.prototype.sanitize=function(n,t){if(null==t)return null;switch(n){case Zl.NONE:return t;case Zl.HTML:return t instanceof Mh?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(n,t){var e=null;try{Ol=Ol||new kl(n);var l=t?String(t):"";e=Ol.getInertBodyElement(l);var r=5,o=l;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,l=o,o=e.innerHTML,e=Ol.getInertBodyElement(l)}while(l!==o);var i=new Gl,u=i.sanitizeChildren(Bl(e)||e);return Ee()&&i.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}finally{if(e)for(var a=Bl(e)||e;a.firstChild;)a.removeChild(a.firstChild)}}(this._doc,String(t)));case Zl.STYLE:return t instanceof Hh?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(n){if(!(n=String(n).trim()))return"";var t=n.match(Wl);return t&&Il(t[1])===t[1]||n.match(ql)&&function(n){for(var t=!0,e=!0,l=0;ln.length)return null;if("full"===e.pathMatch&&(t.hasChildren()||l.length0?n[n.length-1]:null}function bp(n,t){for(var e in n)n.hasOwnProperty(e)&&t(n[e],e)}function _p(n){return n.pipe(cn(),Tc(function(n){return!0===n}))}function wp(n){return Lt(n)?n:Ht(n)?rn(Promise.resolve(n)):za(n)}function Cp(n,t,e){return e?function(n,t){return mp(n,t)}(n.queryParams,t.queryParams)&&function n(t,e){if(!xp(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var l in e.children){if(!t.children[l])return!1;if(!n(t.children[l],e.children[l]))return!1}return!0}(n.root,t.root):function(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(function(e){return t[e]===n[e]})}(n.queryParams,t.queryParams)&&function n(t,e){return function t(e,l,r){if(e.segments.length>r.length)return!!xp(i=e.segments.slice(0,r.length),r)&&!l.hasChildren();if(e.segments.length===r.length){if(!xp(e.segments,r))return!1;for(var o in l.children){if(!e.children[o])return!1;if(!n(e.children[o],l.children[o]))return!1}return!0}var i=r.slice(0,e.segments.length),u=r.slice(e.segments.length);return!!xp(e.segments,i)&&!!e.children[up]&&t(e.children[up],l,u)}(t,e,e.segments)}(n.root,t.root)}var Sp=function(){function n(n,t,e){this.root=n,this.queryParams=t,this.fragment=e}return Object.defineProperty(n.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=sp(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),n.prototype.toString=function(){return Pp.serialize(this)},n}(),Tp=function(){function n(n,t){var e=this;this.segments=n,this.children=t,this.parent=null,bp(t,function(n,t){return n.parent=e})}return n.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(n.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),n.prototype.toString=function(){return Op(this)},n}(),kp=function(){function n(n,t){this.path=n,this.parameters=t}return Object.defineProperty(n.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=sp(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),n.prototype.toString=function(){return Lp(this)},n}();function xp(n,t){return n.length===t.length&&n.every(function(n,e){return n.path===t[e].path})}function Ep(n,t){var e=[];return bp(n.children,function(n,l){l===up&&(e=e.concat(t(n,l)))}),bp(n.children,function(n,l){l!==up&&(e=e.concat(t(n,l)))}),e}var Ip=function(){},Rp=function(){function n(){}return n.prototype.parse=function(n){var t=new Up(n);return new Sp(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},n.prototype.serialize=function(n){var t,e;return"/"+function n(t,e){if(!t.hasChildren())return Op(t);if(e){var l=t.children[up]?n(t.children[up],!1):"",r=[];return bp(t.children,function(t,e){e!==up&&r.push(e+":"+n(t,!1))}),r.length>0?l+"("+r.join("//")+")":l}var o=Ep(t,function(e,l){return l===up?[n(t.children[up],!1)]:[l+":"+n(e,!1)]});return Op(t)+"/("+o.join("//")+")"}(n.root,!0)+(t=n.queryParams,(e=Object.keys(t).map(function(n){var e=t[n];return Array.isArray(e)?e.map(function(t){return Ap(n)+"="+Ap(t)}).join("&"):Ap(n)+"="+Ap(e)})).length?"?"+e.join("&"):"")+("string"==typeof n.fragment?"#"+encodeURI(n.fragment):"")},n}(),Pp=new Rp;function Op(n){return n.segments.map(function(n){return Lp(n)}).join("/")}function Dp(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ap(n){return Dp(n).replace(/%3B/gi,";")}function Np(n){return Dp(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mp(n){return decodeURIComponent(n)}function Hp(n){return Mp(n.replace(/\+/g,"%20"))}function Lp(n){return""+Np(n.path)+(t=n.parameters,Object.keys(t).map(function(n){return";"+Np(n)+"="+Np(t[n])}).join(""));var t}var Vp=/^[^\/()?;=#]+/;function jp(n){var t=n.match(Vp);return t?t[0]:""}var Gp=/^[^=?&#]+/,Fp=/^[^?&#]+/,Up=function(){function n(n){this.url=n,this.remaining=n}return n.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Tp([],{}):new Tp([],this.parseChildren())},n.prototype.parseQueryParams=function(){var n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n},n.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},n.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var e={};return this.peekStartsWith("(")&&(e=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(e[up]=new Tp(n,t)),e},n.prototype.parseSegment=function(){var n=jp(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(n),new kp(Mp(n),this.parseMatrixParams())},n.prototype.parseMatrixParams=function(){for(var n={};this.consumeOptional(";");)this.parseParam(n);return n},n.prototype.parseParam=function(n){var t=jp(this.remaining);if(t){this.capture(t);var e="";if(this.consumeOptional("=")){var l=jp(this.remaining);l&&this.capture(e=l)}n[Mp(t)]=Mp(e)}},n.prototype.parseQueryParam=function(n){var t,e=(t=this.remaining.match(Gp))?t[0]:"";if(e){this.capture(e);var l="";if(this.consumeOptional("=")){var r=function(n){var t=n.match(Fp);return t?t[0]:""}(this.remaining);r&&this.capture(l=r)}var o=Hp(e),i=Hp(l);if(n.hasOwnProperty(o)){var u=n[o];Array.isArray(u)||(n[o]=u=[u]),u.push(i)}else n[o]=i}},n.prototype.parseParens=function(n){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var e=jp(this.remaining),l=this.remaining[e.length];if("/"!==l&&")"!==l&&";"!==l)throw new Error("Cannot parse url '"+this.url+"'");var r=void 0;e.indexOf(":")>-1?(r=e.substr(0,e.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=up);var o=this.parseChildren();t[r]=1===Object.keys(o).length?o[up]:new Tp([],o),this.consumeOptional("//")}return t},n.prototype.peekStartsWith=function(n){return this.remaining.startsWith(n)},n.prototype.consumeOptional=function(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)},n.prototype.capture=function(n){if(!this.consumeOptional(n))throw new Error('Expected "'+n+'".')},n}(),zp=function(n){this.segmentGroup=n||null},Bp=function(n){this.urlTree=n};function qp(n){return new N(function(t){return t.error(new zp(n))})}function Wp(n){return new N(function(t){return t.error(new Bp(n))})}function Zp(n){return new N(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+n+"'"))})}var Kp=function(){function n(n,t,e,l,r){this.configLoader=t,this.urlSerializer=e,this.urlTree=l,this.config=r,this.allowRedirects=!0,this.ngModule=n.get(ie)}return n.prototype.apply=function(){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,up).pipe(nn(function(t){return n.createUrlTree(t,n.urlTree.queryParams,n.urlTree.fragment)})).pipe(Za(function(t){if(t instanceof Bp)return n.allowRedirects=!1,n.match(t.urlTree);if(t instanceof zp)throw n.noMatchError(t);throw t}))},n.prototype.match=function(n){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,n.root,up).pipe(nn(function(e){return t.createUrlTree(e,n.queryParams,n.fragment)})).pipe(Za(function(n){if(n instanceof zp)throw t.noMatchError(n);throw n}))},n.prototype.noMatchError=function(n){return new Error("Cannot match any routes. URL Segment: '"+n.segmentGroup+"'")},n.prototype.createUrlTree=function(n,t,e){var l,r=n.segments.length>0?new Tp([],((l={})[up]=n,l)):n;return new Sp(r,t,e)},n.prototype.expandSegmentGroup=function(n,t,e,l){return 0===e.segments.length&&e.hasChildren()?this.expandChildren(n,t,e).pipe(nn(function(n){return new Tp([],n)})):this.expandSegment(n,e,t,e.segments,l,!0)},n.prototype.expandChildren=function(n,t,e){var l=this;return function(e,r){if(0===Object.keys(e).length)return za({});var o=[],i=[],u={};return bp(e,function(e,r){var a,s,c=(a=r,s=e,l.expandSegmentGroup(n,t,s,a)).pipe(nn(function(n){return u[r]=n}));r===up?o.push(c):i.push(c)}),za.apply(null,o.concat(i)).pipe(pc(),Sc(),nn(function(){return u}))}(e.children)},n.prototype.expandSegment=function(n,t,e,l,r,o){var i=this;return za.apply(void 0,h(e)).pipe(nn(function(u){return i.expandSegmentAgainstRoute(n,t,e,u,l,r,o).pipe(Za(function(n){if(n instanceof zp)return za(null);throw n}))}),pc(),Pc(function(n){return!!n}),Za(function(n,e){if(n instanceof cc||"EmptyError"===n.name){if(i.noLeftoversInUrl(t,l,r))return za(new Tp([],{}));throw new zp(t)}throw n}))},n.prototype.noLeftoversInUrl=function(n,t,e){return 0===t.length&&!n.children[e]},n.prototype.expandSegmentAgainstRoute=function(n,t,e,l,r,o,i){return Xp(l)!==o?qp(t):void 0===l.redirectTo?this.matchSegmentAgainstRoute(n,t,l,r):i&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,t,e,l,r,o):qp(t)},n.prototype.expandSegmentAgainstRouteUsingRedirect=function(n,t,e,l,r,o){return"**"===l.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,l,o):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,e,l,r,o)},n.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(n,t,e,l){var r=this,o=this.applyRedirectCommands([],e.redirectTo,{});return e.redirectTo.startsWith("/")?Wp(o):this.lineralizeSegments(e,o).pipe(on(function(e){var o=new Tp(e,{});return r.expandSegment(n,o,t,e,l,!1)}))},n.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(n,t,e,l,r,o){var i=this,u=Qp(t,l,r),a=u.consumedSegments,s=u.lastChild,c=u.positionalParamSegments;if(!u.matched)return qp(t);var h=this.applyRedirectCommands(a,l.redirectTo,c);return l.redirectTo.startsWith("/")?Wp(h):this.lineralizeSegments(l,h).pipe(on(function(l){return i.expandSegment(n,t,e,l.concat(r.slice(s)),o,!1)}))},n.prototype.matchSegmentAgainstRoute=function(n,t,e,l){var r=this;if("**"===e.path)return e.loadChildren?this.configLoader.load(n.injector,e).pipe(nn(function(n){return e._loadedConfig=n,new Tp(l,{})})):za(new Tp(l,{}));var i=Qp(t,e,l),u=i.consumedSegments,a=i.lastChild;if(!i.matched)return qp(t);var c=l.slice(a);return this.getChildConfig(n,e).pipe(on(function(n){var e=n.module,l=n.routes,i=function(n,t,e,l){return e.length>0&&function(n,t,e){return l.some(function(e){return Jp(n,t,e)&&Xp(e)!==up})}(n,e)?{segmentGroup:$p(new Tp(t,function(n,t){var e,l,r={};r[up]=t;try{for(var o=s(n),i=o.next();!i.done;i=o.next()){var u=i.value;""===u.path&&Xp(u)!==up&&(r[Xp(u)]=new Tp([],{}))}}catch(n){e={error:n}}finally{try{i&&!i.done&&(l=o.return)&&l.call(o)}finally{if(e)throw e.error}}return r}(l,new Tp(e,n.children)))),slicedSegments:[]}:0===e.length&&function(n,t,e){return l.some(function(e){return Jp(n,t,e)})}(n,e)?{segmentGroup:$p(new Tp(n.segments,function(n,t,e,l){var r,i,u={};try{for(var a=s(e),c=a.next();!c.done;c=a.next()){var h=c.value;Jp(n,t,h)&&!l[Xp(h)]&&(u[Xp(h)]=new Tp([],{}))}}catch(n){r={error:n}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o({},l,u)}(n,e,l,n.children))),slicedSegments:e}:{segmentGroup:n,slicedSegments:e}}(t,u,c,l),a=i.segmentGroup,h=i.slicedSegments;return 0===h.length&&a.hasChildren()?r.expandChildren(e,l,a).pipe(nn(function(n){return new Tp(u,n)})):0===l.length&&0===h.length?za(new Tp(u,{})):r.expandSegment(e,a,l,h,up,!0).pipe(nn(function(n){return new Tp(u.concat(n.segments),n.children)}))}))},n.prototype.getChildConfig=function(n,t){var e=this;return t.children?za(new hp(t.children,n)):t.loadChildren?void 0!==t._loadedConfig?za(t._loadedConfig):function(n,t){var e=t.canLoad;return e&&0!==e.length?_p(rn(e).pipe(nn(function(e){var l=n.get(e);return wp(l.canLoad?l.canLoad(t):l(t))}))):za(!0)}(n.injector,t).pipe(on(function(l){return l?e.configLoader.load(n.injector,t).pipe(nn(function(n){return t._loadedConfig=n,n})):function(n){return new N(function(t){return t.error(((e=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+n.path+"'\" returned false")).ngNavigationCancelingError=!0,e));var e})}(t)})):za(new hp([],n))},n.prototype.lineralizeSegments=function(n,t){for(var e=[],l=t.root;;){if(e=e.concat(l.segments),0===l.numberOfChildren)return za(e);if(l.numberOfChildren>1||!l.children[up])return Zp(n.redirectTo);l=l.children[up]}},n.prototype.applyRedirectCommands=function(n,t,e){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),n,e)},n.prototype.applyRedirectCreatreUrlTree=function(n,t,e,l){var r=this.createSegmentGroup(n,t.root,e,l);return new Sp(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},n.prototype.createQueryParams=function(n,t){var e={};return bp(n,function(n,l){if("string"==typeof n&&n.startsWith(":")){var r=n.substring(1);e[l]=t[r]}else e[l]=n}),e},n.prototype.createSegmentGroup=function(n,t,e,l){var r=this,o=this.createSegments(n,t.segments,e,l),i={};return bp(t.children,function(t,o){i[o]=r.createSegmentGroup(n,t,e,l)}),new Tp(o,i)},n.prototype.createSegments=function(n,t,e,l){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(n,t,l):r.findOrReturn(t,e)})},n.prototype.findPosParam=function(n,t,e){var l=e[t.path.substring(1)];if(!l)throw new Error("Cannot redirect to '"+n+"'. Cannot find '"+t.path+"'.");return l},n.prototype.findOrReturn=function(n,t){var e,l,r=0;try{for(var o=s(t),i=o.next();!i.done;i=o.next()){var u=i.value;if(u.path===n.path)return t.splice(r),u;r++}}catch(n){e={error:n}}finally{try{i&&!i.done&&(l=o.return)&&l.call(o)}finally{if(e)throw e.error}}return n},n}();function Qp(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var l=(t.matcher||cp)(e,n,t);return l?{matched:!0,consumedSegments:l.consumed,lastChild:l.consumed.length,positionalParamSegments:l.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function $p(n){if(1===n.numberOfChildren&&n.children[up]){var t=n.children[up];return new Tp(n.segments.concat(t.segments),t.children)}return n}function Jp(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path&&void 0!==e.redirectTo}function Xp(n){return n.outlet||up}var Yp=function(){function n(n){this._root=n}return Object.defineProperty(n.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),n.prototype.parent=function(n){var t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null},n.prototype.children=function(n){var t=nd(n,this._root);return t?t.children.map(function(n){return n.value}):[]},n.prototype.firstChild=function(n){var t=nd(n,this._root);return t&&t.children.length>0?t.children[0].value:null},n.prototype.siblings=function(n){var t=td(n,this._root);return t.length<2?[]:t[t.length-2].children.map(function(n){return n.value}).filter(function(t){return t!==n})},n.prototype.pathFromRoot=function(n){return td(n,this._root).map(function(n){return n.value})},n}();function nd(n,t){var e,l;if(n===t.value)return t;try{for(var r=s(t.children),o=r.next();!o.done;o=r.next()){var i=nd(n,o.value);if(i)return i}}catch(n){e={error:n}}finally{try{o&&!o.done&&(l=r.return)&&l.call(r)}finally{if(e)throw e.error}}return null}function td(n,t){var e,l;if(n===t.value)return[t];try{for(var r=s(t.children),o=r.next();!o.done;o=r.next()){var i=td(n,o.value);if(i.length)return i.unshift(t),i}}catch(n){e={error:n}}finally{try{o&&!o.done&&(l=r.return)&&l.call(r)}finally{if(e)throw e.error}}return[]}var ed=function(){function n(n,t){this.value=n,this.children=t}return n.prototype.toString=function(){return"TreeNode("+this.value+")"},n}();function ld(n){var t={};return n&&n.children.forEach(function(n){return t[n.value.outlet]=n}),t}var rd=function(n){function t(t,e){var l=n.call(this,t)||this;return l.snapshot=e,cd(l,t),l}return r(t,n),t.prototype.toString=function(){return this.snapshot.toString()},t}(Yp);function od(n,t){var e=function(n,t){var e=new ad([],{},{},"",{},up,t,null,n.root,-1,{});return new sd("",new ed(e,[]))}(n,t),l=new hc([new kp("",{})]),r=new hc({}),o=new hc({}),i=new hc({}),u=new hc(""),a=new id(l,r,i,u,o,up,t,e.root);return a.snapshot=e.root,new rd(new ed(a,[]),e)}var id=function(){function n(n,t,e,l,r,o,i,u){this.url=n,this.params=t,this.queryParams=e,this.fragment=l,this.data=r,this.outlet=o,this.component=i,this._futureSnapshot=u}return Object.defineProperty(n.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(nn(function(n){return sp(n)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(nn(function(n){return sp(n)}))),this._queryParamMap},enumerable:!0,configurable:!0}),n.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},n}();function ud(n,t){void 0===t&&(t="emptyOnly");var e=n.pathFromRoot,l=0;if("always"!==t)for(l=e.length-1;l>=1;){var r=e[l],i=e[l-1];if(r.routeConfig&&""===r.routeConfig.path)l--;else{if(i.component)break;l--}}return function(n){return n.reduce(function(n,t){return{params:o({},n.params,t.params),data:o({},n.data,t.data),resolve:o({},n.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}(e.slice(l))}var ad=function(){function n(n,t,e,l,r,o,i,u,a,s,c){this.url=n,this.params=t,this.queryParams=e,this.fragment=l,this.data=r,this.outlet=o,this.component=i,this.routeConfig=u,this._urlSegment=a,this._lastPathIndex=s,this._resolve=c}return Object.defineProperty(n.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=sp(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=sp(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),n.prototype.toString=function(){return"Route(url:'"+this.url.map(function(n){return n.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},n}(),sd=function(n){function t(t,e){var l=n.call(this,e)||this;return l.url=t,cd(l,e),l}return r(t,n),t.prototype.toString=function(){return hd(this._root)},t}(Yp);function cd(n,t){t.value._routerState=n,t.children.forEach(function(t){return cd(n,t)})}function hd(n){var t=n.children.length>0?" { "+n.children.map(hd).join(", ")+" } ":"";return""+n.value+t}function pd(n){if(n.snapshot){var t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,mp(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),mp(t.params,e.params)||n.params.next(e.params),function(n,t){if(n.length!==t.length)return!1;for(var e=0;e0&&fd(e[0]))throw new Error("Root segment cannot have matrix parameters");var l=e.find(function(n){return"object"==typeof n&&null!=n&&n.outlets});if(l&&l!==vp(e))throw new Error("{outlets:{}} has to be the last command")}return n.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},n}(),yd=function(n,t,e){this.segmentGroup=n,this.processChildren=t,this.index=e};function vd(n){return"object"==typeof n&&null!=n&&n.outlets?n.outlets[up]:""+n}function bd(n,t,e){if(n||(n=new Tp([],{})),0===n.segments.length&&n.hasChildren())return _d(n,t,e);var l=function(n,t,e){for(var l=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r=e.length)return o;var i=n.segments[r],u=vd(e[l]),a=l0&&void 0===u)break;if(u&&a&&"object"==typeof a&&void 0===a.outlets){if(!Td(u,a,i))return o;l+=2}else{if(!Td(u,{},i))return o;l++}r++}return{match:!0,pathIndex:r,commandIndex:l}}(n,t,e),r=e.slice(l.commandIndex);if(l.match&&l.pathIndex=2?function(e){return D(Oc(n,t),gc(1),_c(t))(e)}:function(t){return D(Oc(function(t,e,l){return n(t,e,l+1)}),gc(1))(t)}}(function(n,t){return n})):za(null)},n.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},n.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},n.prototype.setupChildRouteGuards=function(n,t,e,l){var r=this,o=ld(t);n.children.forEach(function(n){r.setupRouteGuards(n,o[n.value.outlet],e,l.concat([n.value])),delete o[n.value.outlet]}),bp(o,function(n,t){return r.deactivateRouteAndItsChildren(n,e.getContext(t))})},n.prototype.setupRouteGuards=function(n,t,e,l){var r=n.value,o=t?t.value:null,i=e?e.getContext(n.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){var u=this.shouldRunGuardsAndResolvers(o,r,r.routeConfig.runGuardsAndResolvers);u?this.canActivateChecks.push(new kd(l)):(r.data=o.data,r._resolvedData=o._resolvedData),this.setupChildRouteGuards(n,t,r.component?i?i.children:null:e,l),u&&this.canDeactivateChecks.push(new xd(i.outlet.component,o))}else o&&this.deactivateRouteAndItsChildren(t,i),this.canActivateChecks.push(new kd(l)),this.setupChildRouteGuards(n,null,r.component?i?i.children:null:e,l)},n.prototype.shouldRunGuardsAndResolvers=function(n,t,e){switch(e){case"always":return!0;case"paramsOrQueryParamsChange":return!dd(n,t)||!mp(n.queryParams,t.queryParams);case"paramsChange":default:return!dd(n,t)}},n.prototype.deactivateRouteAndItsChildren=function(n,t){var e=this,l=ld(n),r=n.value;bp(l,function(n,l){e.deactivateRouteAndItsChildren(n,r.component?t?t.children.getContext(l):null:t)}),this.canDeactivateChecks.push(new xd(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))},n.prototype.runCanDeactivateChecks=function(){var n=this;return rn(this.canDeactivateChecks).pipe(on(function(t){return n.runCanDeactivate(t.component,t.route)}),Tc(function(n){return!0===n}))},n.prototype.runCanActivateChecks=function(){var n=this;return rn(this.canActivateChecks).pipe($a(function(t){return _p(rn([n.fireChildActivationStart(t.route.parent),n.fireActivationStart(t.route),n.runCanActivateChild(t.path),n.runCanActivate(t.route)]))}),Tc(function(n){return!0===n}))},n.prototype.fireActivationStart=function(n){return null!==n&&this.forwardEvent&&this.forwardEvent(new lp(n)),za(!0)},n.prototype.fireChildActivationStart=function(n){return null!==n&&this.forwardEvent&&this.forwardEvent(new tp(n)),za(!0)},n.prototype.runCanActivate=function(n){var t=this,e=n.routeConfig?n.routeConfig.canActivate:null;return e&&0!==e.length?_p(rn(e).pipe(nn(function(e){var l=t.getToken(e,n);return wp(l.canActivate?l.canActivate(n,t.future):l(n,t.future)).pipe(Pc())}))):za(!0)},n.prototype.runCanActivateChild=function(n){var t=this,e=n[n.length-1];return _p(rn(n.slice(0,n.length-1).reverse().map(function(n){return t.extractCanActivateChild(n)}).filter(function(n){return null!==n})).pipe(nn(function(n){return _p(rn(n.guards).pipe(nn(function(l){var r=t.getToken(l,n.node);return wp(r.canActivateChild?r.canActivateChild(e,t.future):r(e,t.future)).pipe(Pc())})))})))},n.prototype.extractCanActivateChild=function(n){var t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null},n.prototype.runCanDeactivate=function(n,t){var e=this,l=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return l&&0!==l.length?rn(l).pipe(on(function(l){var r=e.getToken(l,t);return wp(r.canDeactivate?r.canDeactivate(n,t,e.curr,e.future):r(n,t,e.curr,e.future)).pipe(Pc())})).pipe(Tc(function(n){return!0===n})):za(!0)},n.prototype.runResolve=function(n,t){return this.resolveNode(n._resolve,n).pipe(nn(function(e){return n._resolvedData=e,n.data=o({},n.data,ud(n,t).resolve),null}))},n.prototype.resolveNode=function(n,t){var e=this,l=Object.keys(n);if(0===l.length)return za({});if(1===l.length){var r=l[0];return this.getResolver(n[r],t).pipe(nn(function(n){var t;return(t={})[r]=n,t}))}var o={};return rn(l).pipe(on(function(l){return e.getResolver(n[l],t).pipe(nn(function(n){return o[l]=n,n}))})).pipe(Sc(),nn(function(){return o}))},n.prototype.getResolver=function(n,t){var e=this.getToken(n,t);return wp(e.resolve?e.resolve(t,this.future):e(t,this.future))},n.prototype.getToken=function(n,t){var e=function(n){if(!n)return null;for(var t=n.parent;t;t=t.parent){var e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(e?e.module.injector:this.moduleInjector).get(n)},n}(),Id=function(){},Rd=function(){function n(n,t,e,l,r,o){this.rootComponentType=n,this.config=t,this.urlTree=e,this.url=l,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}return n.prototype.recognize=function(){try{var n=Dd(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,n,up),e=new ad([],Object.freeze({}),Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,{},up,this.rootComponentType,null,this.urlTree.root,-1,{}),l=new ed(e,t),r=new sd(this.url,l);return this.inheritParamsAndData(r._root),za(r)}catch(n){return new N(function(t){return t.error(n)})}},n.prototype.inheritParamsAndData=function(n){var t=this,e=n.value,l=ud(e,this.paramsInheritanceStrategy);e.params=Object.freeze(l.params),e.data=Object.freeze(l.data),n.children.forEach(function(n){return t.inheritParamsAndData(n)})},n.prototype.processSegmentGroup=function(n,t,e){return 0===t.segments.length&&t.hasChildren()?this.processChildren(n,t):this.processSegment(n,t,t.segments,e)},n.prototype.processChildren=function(n,t){var e,l=this,r=Ep(t,function(t,e){return l.processSegmentGroup(n,t,e)});return e={},r.forEach(function(n){var t=e[n.value.outlet];if(t){var l=t.url.map(function(n){return n.toString()}).join("/"),r=n.value.url.map(function(n){return n.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+l+"' and '"+r+"'.")}e[n.value.outlet]=n.value}),r.sort(function(n,t){return n.value.outlet===up?-1:t.value.outlet===up?1:n.value.outlet.localeCompare(t.value.outlet)}),r},n.prototype.processSegment=function(n,t,e,l){var r,o;try{for(var i=s(n),u=i.next();!u.done;u=i.next()){var a=u.value;try{return this.processSegmentAgainstRoute(a,t,e,l)}catch(n){if(!(n instanceof Id))throw n}}}catch(n){r={error:n}}finally{try{u&&!u.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}if(this.noLeftoversInUrl(t,e,l))return[];throw new Id},n.prototype.noLeftoversInUrl=function(n,t,e){return 0===t.length&&!n.children[e]},n.prototype.processSegmentAgainstRoute=function(n,t,e,l){if(n.redirectTo)throw new Id;if((n.outlet||up)!==l)throw new Id;var r,i=[],u=[];if("**"===n.path){var a=e.length>0?vp(e).parameters:{};r=new ad(e,a,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,Md(n),l,n.component,n,Pd(t),Od(t)+e.length,Hd(n))}else{var s=function(n,t,e){if(""===t.path){if("full"===t.pathMatch&&(n.hasChildren()||e.length>0))throw new Id;return{consumedSegments:[],lastChild:0,parameters:{}}}var l=(t.matcher||cp)(e,n,t);if(!l)throw new Id;var r={};bp(l.posParams,function(n,t){r[t]=n.path});var i=l.consumed.length>0?o({},r,l.consumed[l.consumed.length-1].parameters):r;return{consumedSegments:l.consumed,lastChild:l.consumed.length,parameters:i}}(t,n,e);i=s.consumedSegments,u=e.slice(s.lastChild),r=new ad(i,s.parameters,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,Md(n),l,n.component,n,Pd(t),Od(t)+i.length,Hd(n))}var c=function(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(n),h=Dd(t,i,u,c,this.relativeLinkResolution),p=h.segmentGroup,d=h.slicedSegments;if(0===d.length&&p.hasChildren()){var f=this.processChildren(c,p);return[new ed(r,f)]}if(0===c.length&&0===d.length)return[new ed(r,[])];var g=this.processSegment(c,p,d,up);return[new ed(r,g)]},n}();function Pd(n){for(var t=n;t._sourceSegment;)t=t._sourceSegment;return t}function Od(n){for(var t=n,e=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)e+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return e-1}function Dd(n,t,e,l,r){if(e.length>0&&function(n,t,e){return l.some(function(e){return Ad(n,t,e)&&Nd(e)!==up})}(n,e)){var i=new Tp(t,function(n,t,e,l){var r,o,i={};i[up]=l,l._sourceSegment=n,l._segmentIndexShift=t.length;try{for(var u=s(e),a=u.next();!a.done;a=u.next()){var c=a.value;if(""===c.path&&Nd(c)!==up){var h=new Tp([],{});h._sourceSegment=n,h._segmentIndexShift=t.length,i[Nd(c)]=h}}}catch(n){r={error:n}}finally{try{a&&!a.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i}(n,t,l,new Tp(e,n.children)));return i._sourceSegment=n,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===e.length&&function(n,t,e){return l.some(function(e){return Ad(n,t,e)})}(n,e)){var u=new Tp(n.segments,function(n,t,e,l,r,i){var u,a,c={};try{for(var h=s(l),p=h.next();!p.done;p=h.next()){var d=p.value;if(Ad(n,e,d)&&!r[Nd(d)]){var f=new Tp([],{});f._sourceSegment=n,f._segmentIndexShift="legacy"===i?n.segments.length:t.length,c[Nd(d)]=f}}}catch(n){u={error:n}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(u)throw u.error}}return o({},r,c)}(n,t,e,l,n.children,r));return u._sourceSegment=n,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:e}}var a=new Tp(n.segments,n.children);return a._sourceSegment=n,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:e}}function Ad(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path&&void 0===e.redirectTo}function Nd(n){return n.outlet||up}function Md(n){return n.data||{}}function Hd(n){return n.resolve||{}}var Ld=function(){},Vd=function(){function n(){}return n.prototype.shouldDetach=function(n){return!1},n.prototype.store=function(n,t){},n.prototype.shouldAttach=function(n){return!1},n.prototype.retrieve=function(n){return null},n.prototype.shouldReuseRoute=function(n,t){return n.routeConfig===t.routeConfig},n}(),jd=new wn("ROUTES"),Gd=function(){function n(n,t,e,l){this.loader=n,this.compiler=t,this.onLoadStartListener=e,this.onLoadEndListener=l}return n.prototype.load=function(n,t){var e=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(nn(function(l){e.onLoadEndListener&&e.onLoadEndListener(t);var r=l.create(n);return new hp(yp(r.injector.get(jd)).map(gp),r)}))},n.prototype.loadModuleFactory=function(n){var t=this;return"string"==typeof n?rn(this.loader.load(n)):wp(n()).pipe(on(function(n){return n instanceof ue?za(n):rn(t.compiler.compileModuleAsync(n))}))},n}(),Fd=function(){},Ud=function(){function n(){}return n.prototype.shouldProcessUrl=function(n){return!0},n.prototype.extract=function(n){return n},n.prototype.merge=function(n,t){return n},n}();function zd(n){throw n}function Bd(n,t,e){return t.parse("/")}function qd(n,t){return za(null)}var Wd=function(){function n(n,t,e,l,r,o,i,u){var a=this;this.rootComponentType=n,this.urlSerializer=t,this.rootContexts=e,this.location=l,this.config=u,this.navigations=new hc(null),this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new G,this.errorHandler=zd,this.malformedUriErrorHandler=Bd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:qd,afterPreactivation:qd},this.urlHandlingStrategy=new Ud,this.routeReuseStrategy=new Vd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=r.get(ie),this.console=r.get(Wt);var s=r.get(de);this.isNgZoneEnabled=s instanceof de,this.resetConfig(u),this.currentUrlTree=new Sp(new Tp([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Gd(o,i,function(n){return a.triggerEvent(new Yh(n))},function(n){return a.triggerEvent(new np(n))}),this.routerState=od(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return n.prototype.resetRootComponentType=function(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType},n.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},n.prototype.setUpLocationChangeListener=function(){var n=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var e=n.parseUrl(t.url),l="popstate"===t.type?"popstate":"hashchange",r=t.state&&t.state.navigationId?{navigationId:t.state.navigationId}:null;setTimeout(function(){n.scheduleNavigation(e,l,r,{replaceUrl:!0})},0)}))},Object.defineProperty(n.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),n.prototype.triggerEvent=function(n){this.events.next(n)},n.prototype.resetConfig=function(n){pp(n),this.config=n.map(gp),this.navigated=!1,this.lastSuccessfulId=-1},n.prototype.ngOnDestroy=function(){this.dispose()},n.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},n.prototype.createUrlTree=function(n,t){void 0===t&&(t={});var e=t.relativeTo,l=t.queryParams,r=t.fragment,i=t.preserveQueryParams,u=t.queryParamsHandling,a=t.preserveFragment;Ee()&&i&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var s=e||this.routerState.root,c=a?this.currentUrlTree.fragment:r,p=null;if(u)switch(u){case"merge":p=o({},this.currentUrlTree.queryParams,l);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=l||null}else p=i?this.currentUrlTree.queryParams:l||null;return null!==p&&(p=this.removeEmptyProps(p)),function(n,t,e,l,r){if(0===e.length)return gd(t.root,t.root,t,l,r);var o=function(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new md(!0,0,n);var t=0,e=!1,l=n.reduce(function(n,l,r){if("object"==typeof l&&null!=l){if(l.outlets){var o={};return bp(l.outlets,function(n,t){o[t]="string"==typeof n?n.split("/"):n}),h(n,[{outlets:o}])}if(l.segmentPath)return h(n,[l.segmentPath])}return"string"!=typeof l?h(n,[l]):0===r?(l.split("/").forEach(function(l,r){0==r&&"."===l||(0==r&&""===l?e=!0:".."===l?t++:""!=l&&n.push(l))}),n):h(n,[l])},[]);return new md(e,t,l)}(e);if(o.toRoot())return gd(t.root,new Tp([],{}),t,l,r);var i=function(n,e,l){if(n.isAbsolute)return new yd(t.root,!0,0);if(-1===l.snapshot._lastPathIndex)return new yd(l.snapshot._urlSegment,!0,0);var r=fd(n.commands[0])?0:1;return function(t,e,o){for(var i=l.snapshot._urlSegment,u=l.snapshot._lastPathIndex+r,a=n.numberOfDoubleDots;a>u;){if(a-=u,!(i=i.parent))throw new Error("Invalid number of '../'");u=i.segments.length}return new yd(i,!1,u-a)}()}(o,0,n),u=i.processChildren?_d(i.segmentGroup,i.index,o.commands):bd(i.segmentGroup,i.index,o.commands);return gd(i.segmentGroup,u,t,l,r)}(s,this.currentUrlTree,n,p,c)},n.prototype.navigateByUrl=function(n,t){void 0===t&&(t={skipLocationChange:!1}),Ee()&&this.isNgZoneEnabled&&!de.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var e=n instanceof Sp?n:this.parseUrl(n),l=this.urlHandlingStrategy.merge(e,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)},n.prototype.navigate=function(n,t){return void 0===t&&(t={skipLocationChange:!1}),function(n){for(var t=0;tn?{max:{max:n,actual:t.value}}:null}},n.required=function(n){return jf(n.value)?{required:!0}:null},n.requiredTrue=function(n){return!0===n.value?null:{required:!0}},n.email=function(n){return jf(n.value)?null:Uf.test(n.value)?null:{email:!0}},n.minLength=function(n){return function(t){if(jf(t.value))return null;var e=t.value?t.value.length:0;return en?{maxlength:{requiredLength:n,actualLength:e}}:null}},n.pattern=function(t){return t?("string"==typeof t?(l="","^"!==t.charAt(0)&&(l+="^"),l+=t,"$"!==t.charAt(t.length-1)&&(l+="$"),e=new RegExp(l)):(l=t.toString(),e=t),function(n){if(jf(n.value))return null;var t=n.value;return e.test(t)?null:{pattern:{requiredPattern:l,actualValue:t}}}):n.nullValidator;var e,l},n.nullValidator=function(n){return null},n.compose=function(n){if(!n)return null;var t=n.filter(Bf);return 0==t.length?null:function(n){return Wf(function(n,e){return t.map(function(t){return t(n)})}(n))}},n.composeAsync=function(n){if(!n)return null;var t=n.filter(Bf);return 0==t.length?null:function(n){return Mf(function(n,e){return t.map(function(t){return t(n)})}(n).map(qf)).pipe(nn(Wf))}},n}();function Bf(n){return null!=n}function qf(n){var t=Ht(n)?rn(n):n;if(!Lt(t))throw new Error("Expected validator to return Promise or Observable.");return t}function Wf(n){var t=n.reduce(function(n,t){return null!=t?o({},n,t):n},{});return 0===Object.keys(t).length?null:t}var Zf=new wn("NgValueAccessor"),Kf=function(){function n(n,t){this._renderer=n,this._elementRef=t,this.onChange=function(n){},this.onTouched=function(){}}return n.prototype.writeValue=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"checked",n)},n.prototype.registerOnChange=function(n){this.onChange=n},n.prototype.registerOnTouched=function(n){this.onTouched=n},n.prototype.setDisabledState=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",n)},n}(),Qf=new wn("CompositionEventMode"),$f=function(){function n(n,t,e){var l;this._renderer=n,this._elementRef=t,this._compositionMode=e,this.onChange=function(n){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(l=Mc()?Mc().getUserAgent():"",!/android (\d+)/.test(l.toLowerCase())))}return n.prototype.writeValue=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==n?"":n)},n.prototype.registerOnChange=function(n){this.onChange=n},n.prototype.registerOnTouched=function(n){this.onTouched=n},n.prototype.setDisabledState=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",n)},n.prototype._handleInput=function(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)},n.prototype._compositionStart=function(){this._composing=!0},n.prototype._compositionEnd=function(n){this._composing=!1,this._compositionMode&&this.onChange(n)},i([u(2,zn()),u(2,Un(Qf))],n)}();function Jf(n){return n.validate?function(t){return n.validate(t)}:n}function Xf(n){return n.validate?function(t){return n.validate(t)}:n}var Yf=function(){function n(n,t){this._renderer=n,this._elementRef=t,this.onChange=function(n){},this.onTouched=function(){}}return n.prototype.writeValue=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==n?"":n)},n.prototype.registerOnChange=function(n){this.onChange=function(t){n(""==t?null:parseFloat(t))}},n.prototype.registerOnTouched=function(n){this.onTouched=n},n.prototype.setDisabledState=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",n)},n}();function ng(){throw new Error("unimplemented")}var tg=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return r(t,n),Object.defineProperty(t.prototype,"validator",{get:function(){return ng()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return ng()},enumerable:!0,configurable:!0}),t}(Lf),eg=function(){function n(){this._accessors=[]}return n.prototype.add=function(n,t){this._accessors.push([n,t])},n.prototype.remove=function(n){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===n)return void this._accessors.splice(t,1)},n.prototype.select=function(n){var t=this;this._accessors.forEach(function(e){t._isSameGroup(e,n)&&e[1]!==n&&e[1].fireUncheck(n.value)})},n.prototype._isSameGroup=function(n,t){return!!n[0].control&&n[0]._parent===t._control._parent&&n[1].name===t.name},n}(),lg=function(){function n(n,t,e,l){this._renderer=n,this._elementRef=t,this._registry=e,this._injector=l,this.onChange=function(){},this.onTouched=function(){}}return n.prototype.ngOnInit=function(){this._control=this._injector.get(tg),this._checkName(),this._registry.add(this._control,this)},n.prototype.ngOnDestroy=function(){this._registry.remove(this)},n.prototype.writeValue=function(n){this._state=n===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},n.prototype.registerOnChange=function(n){var t=this;this._fn=n,this.onChange=function(){n(t.value),t._registry.select(t)}},n.prototype.fireUncheck=function(n){this.writeValue(n)},n.prototype.registerOnTouched=function(n){this.onTouched=n},n.prototype.setDisabledState=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",n)},n.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},n.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},n}(),rg='\n

\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',og='\n
\n
\n \n
\n
';function ig(n,t){return h(t.path,[n])}function ug(n,t){n||sg(t,"Cannot find control with"),t.valueAccessor||sg(t,"No value accessor for form control with"),n.validator=zf.compose([n.validator,t.validator]),n.asyncValidator=zf.composeAsync([n.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(n.value),function(n,t){t.valueAccessor.registerOnChange(function(e){n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&ag(n,t)})}(n,t),function(n,t){n.registerOnChange(function(n,e){t.valueAccessor.writeValue(n),e&&t.viewToModelUpdate(n)})}(n,t),function(n,t){t.valueAccessor.registerOnTouched(function(){n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&ag(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),t.valueAccessor.setDisabledState&&n.registerOnDisabledChange(function(n){t.valueAccessor.setDisabledState(n)}),t._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return n.updateValueAndValidity()})}),t._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return n.updateValueAndValidity()})})}function ag(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function sg(n,t){var e;throw e=n.path.length>1?"path: '"+n.path.join(" -> ")+"'":n.path[0]?"name: '"+n.path+"'":"unspecified name attribute",new Error(t+" "+e)}function cg(n){return null!=n?zf.compose(n.map(Jf)):null}function hg(n){return null!=n?zf.composeAsync(n.map(Xf)):null}var pg=[Kf,function(){function n(n,t){this._renderer=n,this._elementRef=t,this.onChange=function(n){},this.onTouched=function(){}}return n.prototype.writeValue=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(n))},n.prototype.registerOnChange=function(n){this.onChange=function(t){n(""==t?null:parseFloat(t))}},n.prototype.registerOnTouched=function(n){this.onTouched=n},n.prototype.setDisabledState=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",n)},n}(),Yf,function(){function n(n,t){this._renderer=n,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(n){},this.onTouched=function(){},this._compareWith=Vn}return Object.defineProperty(n.prototype,"compareWith",{set:function(n){if("function"!=typeof n)throw new Error("compareWith must be a function, but received "+JSON.stringify(n));this._compareWith=n},enumerable:!0,configurable:!0}),n.prototype.writeValue=function(n){this.value=n;var t=this._getOptionId(n);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var e=function(n,t){return null==n?""+t:(t&&"object"==typeof t&&(t="Object"),(n+": "+t).slice(0,50))}(t,n);this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},n.prototype.registerOnChange=function(n){var t=this;this.onChange=function(e){t.value=t._getOptionValue(e),n(t.value)}},n.prototype.registerOnTouched=function(n){this.onTouched=n},n.prototype.setDisabledState=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",n)},n.prototype._registerOption=function(){return(this._idCounter++).toString()},n.prototype._getOptionId=function(n){var t,e;try{for(var l=s(Array.from(this._optionMap.keys())),r=l.next();!r.done;r=l.next()){var o=r.value;if(this._compareWith(this._optionMap.get(o),n))return o}}catch(n){t={error:n}}finally{try{r&&!r.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}return null},n.prototype._getOptionValue=function(n){var t=function(n){return n.split(":")[0]}(n);return this._optionMap.has(t)?this._optionMap.get(t):n},n}(),function(){function n(n,t){this._renderer=n,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(n){},this.onTouched=function(){},this._compareWith=Vn}return Object.defineProperty(n.prototype,"compareWith",{set:function(n){if("function"!=typeof n)throw new Error("compareWith must be a function, but received "+JSON.stringify(n));this._compareWith=n},enumerable:!0,configurable:!0}),n.prototype.writeValue=function(n){var t,e=this;if(this.value=n,Array.isArray(n)){var l=n.map(function(n){return e._getOptionId(n)});t=function(n,t){n._setSelected(l.indexOf(t.toString())>-1)}}else t=function(n,t){n._setSelected(!1)};this._optionMap.forEach(t)},n.prototype.registerOnChange=function(n){var t=this;this.onChange=function(e){var l=[];if(e.hasOwnProperty("selectedOptions"))for(var r=e.selectedOptions,o=0;o0||this.disabled},t.prototype._checkAllValuesPresent=function(n){this._forEachChild(function(t,e){if(void 0===n[e])throw new Error("Must supply a value for form control with name: '"+e+"'.")})},t}(_g),Sg=function(n){function t(t,e,l){var r=n.call(this,yg(e),vg(l,e))||this;return r.controls=t,r._initObservables(),r._setUpdateStrategy(e),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return r(t,n),t.prototype.at=function(n){return this.controls[n]},t.prototype.push=function(n){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(n,t){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(n){this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),this.controls.splice(n,1),this.updateValueAndValidity()},t.prototype.setControl=function(n,t){this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),this.controls.splice(n,1),t&&(this.controls.splice(n,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(n,t){var e=this;void 0===t&&(t={}),this._checkAllValuesPresent(n),n.forEach(function(n,l){e._throwIfControlMissing(l),e.at(l).setValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(n,t){var e=this;void 0===t&&(t={}),n.forEach(function(n,l){e.at(l)&&e.at(l).patchValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(n,t){void 0===n&&(n=[]),void 0===t&&(t={}),this._forEachChild(function(e,l){e.reset(n[l],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(n){return n instanceof wg?n.value:n.getRawValue()})},t.prototype._syncPendingControls=function(){var n=this.controls.reduce(function(n,t){return!!t._syncPendingControls()||n},!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n},t.prototype._throwIfControlMissing=function(n){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(n))throw new Error("Cannot find form control at index "+n)},t.prototype._forEachChild=function(n){this.controls.forEach(function(t,e){n(t,e)})},t.prototype._updateValue=function(){var n=this;this.value=this.controls.filter(function(t){return t.enabled||n.disabled}).map(function(n){return n.value})},t.prototype._anyControls=function(n){return this.controls.some(function(t){return t.enabled&&n(t)})},t.prototype._setUpControls=function(){var n=this;this._forEachChild(function(t){return n._registerControl(t)})},t.prototype._checkAllValuesPresent=function(n){this._forEachChild(function(t,e){if(void 0===n[e])throw new Error("Must supply a value for form control at index: "+e+".")})},t.prototype._allControlsDisabled=function(){var n,t;try{for(var e=s(this.controls),l=e.next();!l.done;l=e.next())if(l.value.enabled)return!1}catch(t){n={error:t}}finally{try{l&&!l.done&&(t=e.return)&&t.call(e)}finally{if(n)throw n.error}}return this.controls.length>0||this.disabled},t.prototype._registerControl=function(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)},t}(_g),Tg=Promise.resolve(null),kg=function(n){function t(t,e){var l=n.call(this)||this;return l.submitted=!1,l._directives=[],l.ngSubmit=new pe,l.form=new Cg({},cg(t),hg(e)),l}return r(t,n),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(n){var t=this;Tg.then(function(){var e=t._findContainer(n.path);n.control=e.registerControl(n.name,n.control),ug(n.control,n),n.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(n)})},t.prototype.getControl=function(n){return this.form.get(n.path)},t.prototype.removeControl=function(n){var t=this;Tg.then(function(){var e,l,r=t._findContainer(n.path);r&&r.removeControl(n.name),(l=(e=t._directives).indexOf(n))>-1&&e.splice(l,1)})},t.prototype.addFormGroup=function(n){var t=this;Tg.then(function(){var e=t._findContainer(n.path),l=new Cg({});(function(n,t){null==n&&sg(t,"Cannot find control with"),n.validator=zf.compose([n.validator,t.validator]),n.asyncValidator=zf.composeAsync([n.asyncValidator,t.asyncValidator])})(l,n),e.registerControl(n.name,l),l.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(n){var t=this;Tg.then(function(){var e=t._findContainer(n.path);e&&e.removeControl(n.name)})},t.prototype.getFormGroup=function(n){return this.form.get(n.path)},t.prototype.updateModel=function(n,t){var e=this;Tg.then(function(){e.form.get(n.path).setValue(t)})},t.prototype.setValue=function(n){this.control.setValue(n)},t.prototype.onSubmit=function(n){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(function(n){var t=n.control;"submit"===t.updateOn&&t._pendingChange&&(n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(n),!1;var t},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(n){void 0===n&&(n=void 0),this.form.reset(n),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(n){return n.pop(),n.length?this.form.get(n):this.form},i([u(0,zn()),u(0,Bn()),u(0,Un(Gf)),u(1,zn()),u(1,Bn()),u(1,Un(Ff))],t)}(Vf),xg=function(){function n(){}return n.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},n.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+rg+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+og)},n.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},n.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+rg+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+og)},n}(),Eg=function(n){function t(t,e,l){var r=n.call(this)||this;return r._parent=t,r._validators=e,r._asyncValidators=l,r}var e;return r(t,n),e=t,t.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof kg||xg.modelGroupParentException()},e=i([u(0,Wn()),u(0,qn()),u(1,zn()),u(1,Bn()),u(1,Un(Gf)),u(2,zn()),u(2,Bn()),u(2,Un(Ff))],t)}(dg),Ig=Promise.resolve(null),Rg=function(n){function t(t,e,l,r){var o=n.call(this)||this;return o.control=new wg,o._registered=!1,o.update=new pe,o._parent=t,o._rawValidators=e||[],o._rawAsyncValidators=l||[],o.valueAccessor=function(n,t){if(!t)return null;Array.isArray(t)||sg(n,"Value accessor was not provided as an array for form control with");var e=void 0,l=void 0,r=void 0;return t.forEach(function(t){var o;t.constructor===$f?e=t:(o=t,pg.some(function(n){return o.constructor===n})?(l&&sg(n,"More than one built-in value accessor matches form control with"),l=t):(r&&sg(n,"More than one custom value accessor matches form control with"),r=t))}),r||l||e||(sg(n,"No valid value accessor for form control with"),null)}(o,r),o}return r(t,n),t.prototype.ngOnChanges=function(n){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in n&&this._updateDisabled(n),function(n,t){if(!n.hasOwnProperty("model"))return!1;var e=n.model;return!!e.isFirstChange()||!Vn(t,e.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?ig(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return cg(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return hg(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(n){this.viewModel=n,this.update.emit(n)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){ug(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof Eg)&&this._parent instanceof dg?xg.formGroupNameException():this._parent instanceof Eg||this._parent instanceof kg||xg.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||xg.missingNameException()},t.prototype._updateValue=function(n){var t=this;Ig.then(function(){t.control.setValue(n,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(n){var t=this,e=n.isDisabled.currentValue,l=""===e||e&&"false"!==e;Ig.then(function(){l&&!t.control.disabled?t.control.disable():!l&&t.control.disabled&&t.control.enable()})},i([u(0,zn()),u(0,Wn()),u(1,zn()),u(1,Bn()),u(1,Un(Gf)),u(2,zn()),u(2,Bn()),u(2,Un(Ff)),u(3,zn()),u(3,Bn()),u(3,Un(Zf))],t)}(tg),Pg=function(){},Og=function(){},Dg=function(){},Ag=function(){function n(n){this.http=n}return n.prototype.post=function(n){return console.log("url = "+n),this.http.post(n,null).pipe(Ba(function(n){console.log("response = "+JSON.stringify(n,null,2))}),Za(this.handleError("post",[])))},n.prototype.handleError=function(n,t){return void 0===n&&(n="operation"),function(n){return console.error(n),za(t)}},n.ngInjectableDef=_n({factory:function(){return new n(ft(qs))},token:n,providedIn:"root"}),n}(),Ng=function(){function n(n,t){this.route=n,this.calculatorService=t}return n.prototype.ngOnInit=function(){var n=this;this.ppt=this.route.snapshot.queryParamMap.get("ppt"),this.specificGravity=this.route.snapshot.queryParamMap.get("specificGravity"),this.specificGravity?this.calculatorService.post("https://api.saltyzoo.com/v3/saltycalcs/SgPptConv/specificGravity/"+this.specificGravity).subscribe(function(t){return n.convertedSpecificGravity(t)}):(this.ppt=this.ppt?this.ppt:35,this.calculatorService.post("https://api.saltyzoo.com/v3/saltycalcs/SgPptConv/ppt/"+this.ppt).subscribe(function(t){return n.convertedPpt(t)}))},n.prototype.convertPpt=function(){var n=this;this.calculatorService.post("https://api.saltyzoo.com/v3/saltycalcs/SgPptConv/ppt/"+this.ppt).subscribe(function(t){return n.convertedPpt(t)})},n.prototype.convertedPpt=function(n){this.specificGravity=n.specificGravity},n.prototype.convertSpecificGravity=function(){var n=this;this.calculatorService.post("https://api.saltyzoo.com/v3/saltycalcs/SgPptConv/specificGravity/"+this.specificGravity).subscribe(function(t){return n.convertedSpecificGravity(t)})},n.prototype.convertedSpecificGravity=function(n){this.ppt=n.ppt},n}(),Mg=hr({encapsulation:0,styles:[["h2[_ngcontent-%COMP%]{color:#b3ad0d}"]],data:{}});function Hg(n){return ri(0,[(n()(),Fr(0,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(1,0,null,null,1,"h2",[["align","center"]],null,null,null,null,null)),(n()(),ti(-1,null,[" Salinity Conversion (Specific Gravity / PPT) "])),(n()(),Fr(3,0,null,null,39,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,t,e){var l=!0;return"submit"===t&&(l=!1!==yo(n,5).onSubmit(e)&&l),"reset"===t&&(l=!1!==yo(n,5).onReset()&&l),l},null,null)),Po(4,16384,null,0,Pg,[],null,null),Po(5,4210688,[["f",4]],0,kg,[[8,null],[8,null]],null,null),Oo(2048,null,Vf,null,[kg]),Po(7,16384,null,0,mg,[[4,Vf]],null,null),(n()(),Fr(8,0,null,null,34,"TABLE",[["BORDER","0"],["align","center"]],null,null,null,null,null)),(n()(),Fr(9,0,null,null,33,"tbody",[],null,null,null,null,null)),(n()(),Fr(10,0,null,null,6,"TR",[],null,null,null,null,null)),(n()(),Fr(11,0,null,null,0,"TH",[],null,null,null,null,null)),(n()(),Fr(12,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,["Specific Gravity"])),(n()(),Fr(14,0,null,null,0,"th",[],null,null,null,null,null)),(n()(),Fr(15,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,["Parts Per Thousand"])),(n()(),Fr(17,0,null,null,25,"TR",[],null,null,null,null,null)),(n()(),Fr(18,0,null,null,1,"TH",[["align","right"]],null,null,null,null,null)),(n()(),ti(-1,null,["Reading:"])),(n()(),Fr(20,0,null,null,7,"td",[["align","right"]],null,null,null,null,null)),(n()(),Fr(21,0,null,null,6,"div",[["align","center"]],null,null,null,null,null)),(n()(),Fr(22,0,null,null,5,"input",[["name","specificGravity"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,23)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,23).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,23)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,23)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.specificGravity=e)&&l),l},null,null)),Po(23,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(25,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(27,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(28,0,null,null,6,"td",[],null,null,null,null,null)),(n()(),Fr(29,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.convertPpt()&&l),l},null,null)),(n()(),ti(-1,null,["<-- Convert <--"])),(n()(),Fr(31,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(32,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(33,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.convertSpecificGravity()&&l),l},null,null)),(n()(),ti(-1,null,["--\x3e Convert --\x3e"])),(n()(),Fr(35,0,null,null,7,"TD",[["align","right"]],null,null,null,null,null)),(n()(),Fr(36,0,null,null,6,"div",[["align","center"]],null,null,null,null,null)),(n()(),Fr(37,0,null,null,5,"input",[["name","ppt"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,38)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,38).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,38)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,38)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.ppt=e)&&l),l},null,null)),Po(38,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(40,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(42,16384,null,0,gg,[[4,tg]],null,null),(n()(),ti(43,null,[" ",""]))],function(n,t){var e=t.component;n(t,25,0,"specificGravity",e.specificGravity),n(t,40,0,"ppt",e.ppt)},function(n,t){var e=t.component;n(t,3,0,yo(t,7).ngClassUntouched,yo(t,7).ngClassTouched,yo(t,7).ngClassPristine,yo(t,7).ngClassDirty,yo(t,7).ngClassValid,yo(t,7).ngClassInvalid,yo(t,7).ngClassPending),n(t,22,0,yo(t,27).ngClassUntouched,yo(t,27).ngClassTouched,yo(t,27).ngClassPristine,yo(t,27).ngClassDirty,yo(t,27).ngClassValid,yo(t,27).ngClassInvalid,yo(t,27).ngClassPending),n(t,37,0,yo(t,42).ngClassUntouched,yo(t,42).ngClassTouched,yo(t,42).ngClassPristine,yo(t,42).ngClassDirty,yo(t,42).ngClassValid,yo(t,42).ngClassInvalid,yo(t,42).ngClassPending),n(t,43,0,e.errorMsg)})}var Lg=oo("app-sg-ppt-conv",Ng,function(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"app-sg-ppt-conv",[],null,null,null,Hg,Mg)),Po(1,114688,null,0,Ng,[id,Ag],null,null)],function(n,t){n(t,1,0)},null)},{},{},[]),Vg=function(){function n(n,t){this.route=n,this.calculatorService=t}return n.prototype.ngOnInit=function(){this.sysGal=this.route.snapshot.queryParamMap.get("sysGal")?this.route.snapshot.queryParamMap.get("sysGal"):40,this.sal=this.route.snapshot.queryParamMap.get("sal")?this.route.snapshot.queryParamMap.get("sal"):35,this.evapGal=this.route.snapshot.queryParamMap.get("evapGal")?this.route.snapshot.queryParamMap.get("evapGal"):1.5,this.calculate()},n.prototype.calculate=function(){var n=this,t="https://api.saltyzoo.com/v3/saltycalcs/EvapSalinityCalc";t+="/sysGal/"+this.sysGal,t+="/sal/"+this.sal,t+="/evapGal/"+this.evapGal,console.log("url = "+t),this.calculatorService.post(t).subscribe(function(t){return n.calculated(t)})},n.prototype.calculated=function(n){this.ppt=0!=this.sysGal?n.ppt:"",this.specificGravity=0!=this.sysGal?n.specificGravity:""},n}(),jg=hr({encapsulation:0,styles:[["h2[_ngcontent-%COMP%]{color:#b3ad0d}"]],data:{}});function Gg(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"div",[["align","center"]],null,null,null,null,null)),(n()(),Fr(1,0,null,null,1,"h2",[],null,null,null,null,null)),(n()(),ti(-1,null,["Evaporation effects on salinity calculator "])),(n()(),Fr(3,0,null,null,4,"table",[["align","center"],["width","70%"]],null,null,null,null,null)),(n()(),Fr(4,0,null,null,3,"tbody",[],null,null,null,null,null)),(n()(),Fr(5,0,null,null,2,"tr",[],null,null,null,null,null)),(n()(),Fr(6,0,null,null,1,"td",[["align","left"]],null,null,null,null,null)),(n()(),ti(-1,null,["\nThis calculator takes the amount of water in your system, your current salinity, and the amount of water that will evaporate,\nand returns the salinity of the system after the evaporation occurs."])),(n()(),Fr(8,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(9,0,null,null,4,"table",[["align","center"],["width","70%"]],null,null,null,null,null)),(n()(),Fr(10,0,null,null,3,"tbody",[],null,null,null,null,null)),(n()(),Fr(11,0,null,null,2,"tr",[],null,null,null,null,null)),(n()(),Fr(12,0,null,null,1,"td",[["align","left"]],null,null,null,null,null)),(n()(),ti(-1,null,[" For Example, Let's say you are going on vacation for 3 days and want to know if your salinity will rise too high if you\ndon't add makeup water for three days. If you have a 40 Gallon Tank at a salinity of 35ppt and you estimate that .5 gallons\nof water evaporates every day, then you would enter 40 gallons, 35ppt, and 1.5 gallons (.5gallons X 3days = 1.5). The calculator\nwill tell you that your salinity will be approx. 36.4ppt when you get back from vacation."])),(n()(),Fr(14,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(15,0,null,null,53,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,t,e){var l=!0;return"submit"===t&&(l=!1!==yo(n,17).onSubmit(e)&&l),"reset"===t&&(l=!1!==yo(n,17).onReset()&&l),l},null,null)),Po(16,16384,null,0,Pg,[],null,null),Po(17,4210688,[["f",4]],0,kg,[[8,null],[8,null]],null,null),Oo(2048,null,Vf,null,[kg]),Po(19,16384,null,0,mg,[[4,Vf]],null,null),(n()(),Fr(20,0,null,null,42,"div",[["align","center"]],null,null,null,null,null)),(n()(),Fr(21,0,null,null,41,"TABLE",[["border","0"]],null,null,null,null,null)),(n()(),Fr(22,0,null,null,40,"tbody",[],null,null,null,null,null)),(n()(),Fr(23,0,null,null,9,"TR",[],null,null,null,null,null)),(n()(),Fr(24,0,null,null,1,"TH",[["ALIGN","RIGHT"]],null,null,null,null,null)),(n()(),ti(-1,null,["Gallons in system:"])),(n()(),Fr(26,0,null,null,6,"TD",[],null,null,null,null,null)),(n()(),Fr(27,0,null,null,5,"input",[["name","sysGal"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,28)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,28).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,28)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,28)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.sysGal=e)&&l),l},null,null)),Po(28,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(30,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(32,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(33,0,null,null,9,"TR",[],null,null,null,null,null)),(n()(),Fr(34,0,null,null,1,"TH",[["ALIGN","RIGHT"]],null,null,null,null,null)),(n()(),ti(-1,null,["Salinity of system (either SG or ppt is accepted):"])),(n()(),Fr(36,0,null,null,6,"TD",[],null,null,null,null,null)),(n()(),Fr(37,0,null,null,5,"input",[["name","sal"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,38)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,38).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,38)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,38)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.sal=e)&&l),l},null,null)),Po(38,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(40,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(42,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(43,0,null,null,9,"TR",[],null,null,null,null,null)),(n()(),Fr(44,0,null,null,1,"TH",[["ALIGN","RIGHT"]],null,null,null,null,null)),(n()(),ti(-1,null,["Gallons evaporated:"])),(n()(),Fr(46,0,null,null,6,"TD",[],null,null,null,null,null)),(n()(),Fr(47,0,null,null,5,"input",[["name","evapGal"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,48)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,48).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,48)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,48)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.evapGal=e)&&l),l},null,null)),Po(48,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(50,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(52,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(53,0,null,null,4,"TR",[],null,null,null,null,null)),(n()(),Fr(54,0,null,null,1,"TH",[["ALIGN","RIGHT"]],null,null,null,null,null)),(n()(),ti(-1,null,["Resulting Salinity in PPT:"])),(n()(),Fr(56,0,null,null,1,"TD",[],null,null,null,null,null)),(n()(),ti(57,null,[""," "])),(n()(),Fr(58,0,null,null,4,"TR",[],null,null,null,null,null)),(n()(),Fr(59,0,null,null,1,"TH",[["ALIGN","RIGHT"]],null,null,null,null,null)),(n()(),ti(-1,null,["Resulting Salinity in Specific Gravity:"])),(n()(),Fr(61,0,null,null,1,"TD",[],null,null,null,null,null)),(n()(),ti(62,null,[""," "])),(n()(),Fr(63,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(64,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(65,0,null,null,2,"div",[["align","center"]],null,null,null,null,null)),(n()(),Fr(66,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.calculate()&&l),l},null,null)),(n()(),ti(-1,null,["Calculate >"])),(n()(),ti(68,null,[" ","\n"]))],function(n,t){var e=t.component;n(t,30,0,"sysGal",e.sysGal),n(t,40,0,"sal",e.sal),n(t,50,0,"evapGal",e.evapGal)},function(n,t){var e=t.component;n(t,15,0,yo(t,19).ngClassUntouched,yo(t,19).ngClassTouched,yo(t,19).ngClassPristine,yo(t,19).ngClassDirty,yo(t,19).ngClassValid,yo(t,19).ngClassInvalid,yo(t,19).ngClassPending),n(t,27,0,yo(t,32).ngClassUntouched,yo(t,32).ngClassTouched,yo(t,32).ngClassPristine,yo(t,32).ngClassDirty,yo(t,32).ngClassValid,yo(t,32).ngClassInvalid,yo(t,32).ngClassPending),n(t,37,0,yo(t,42).ngClassUntouched,yo(t,42).ngClassTouched,yo(t,42).ngClassPristine,yo(t,42).ngClassDirty,yo(t,42).ngClassValid,yo(t,42).ngClassInvalid,yo(t,42).ngClassPending),n(t,47,0,yo(t,52).ngClassUntouched,yo(t,52).ngClassTouched,yo(t,52).ngClassPristine,yo(t,52).ngClassDirty,yo(t,52).ngClassValid,yo(t,52).ngClassInvalid,yo(t,52).ngClassPending),n(t,57,0,e.ppt),n(t,62,0,e.specificGravity),n(t,68,0,e.errorMsg)})}var Fg=oo("app-evap-salinity",Vg,function(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"app-evap-salinity",[],null,null,null,Gg,jg)),Po(1,114688,null,0,Vg,[id,Ag],null,null)],function(n,t){n(t,1,0)},null)},{},{},[]),Ug=function(){function n(n,t){this.route=n,this.calculatorService=t}return n.prototype.ngOnInit=function(){this.sysGal=this.route.snapshot.queryParamMap.get("sysGal")?this.route.snapshot.queryParamMap.get("sysGal"):40,this.sal=this.route.snapshot.queryParamMap.get("sal")?this.route.snapshot.queryParamMap.get("sal"):35,this.makeupGal=this.route.snapshot.queryParamMap.get("makeupGal")?this.route.snapshot.queryParamMap.get("makeupGal"):1,this.calculate()},n.prototype.calculate=function(){var n=this,t="https://api.saltyzoo.com/v3/saltycalcs/MakeupSalinity";t+="/sysGal/"+this.sysGal,t+="/sal/"+this.sal,t+="/makeupGal/"+this.makeupGal,console.log("url = "+t),this.calculatorService.post(t).subscribe(function(t){return n.calculated(t)})},n.prototype.calculated=function(n){this.ppt=0!=this.sysGal?n.ppt:"",this.specificGravity=0!=this.sysGal?n.specificGravity:""},n}(),zg=hr({encapsulation:0,styles:[["h2[_ngcontent-%COMP%]{color:#b3ad0d}"]],data:{}});function Bg(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"div",[["align","CENTER"]],null,null,null,null,null)),(n()(),Fr(1,0,null,null,1,"h2",[],null,null,null,null,null)),(n()(),ti(-1,null,["Freshwater addition effects on salinity calculator "])),(n()(),Fr(3,0,null,null,4,"table",[["align","center"],["width","70%"]],null,null,null,null,null)),(n()(),Fr(4,0,null,null,3,"tbody",[],null,null,null,null,null)),(n()(),Fr(5,0,null,null,2,"tr",[],null,null,null,null,null)),(n()(),Fr(6,0,null,null,1,"td",[["align","left"]],null,null,null,null,null)),(n()(),ti(-1,null,["This calculator takes the amount of water in your system, your current salinity, and the amount of freshwater you will add.\nIt returns the salinity of the system after the freshwater is added and has mixed with the system."])),(n()(),Fr(8,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(9,0,null,null,4,"table",[["align","center"],["width","70%"]],null,null,null,null,null)),(n()(),Fr(10,0,null,null,3,"tbody",[],null,null,null,null,null)),(n()(),Fr(11,0,null,null,2,"tr",[],null,null,null,null,null)),(n()(),Fr(12,0,null,null,1,"td",[["align","left"]],null,null,null,null,null)),(n()(),ti(-1,null,["For Example, if you have a 40 Gallon Tank at a salinity of 36ppt and you need to add 1 gallons of fresh water, then you\nwould enter 40 gallons, 36ppt, and 1 gallons. The calculator will tell you that your salinity will be approx. 35.1ppt."])),(n()(),Fr(14,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(15,0,null,null,53,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,t,e){var l=!0;return"submit"===t&&(l=!1!==yo(n,17).onSubmit(e)&&l),"reset"===t&&(l=!1!==yo(n,17).onReset()&&l),l},null,null)),Po(16,16384,null,0,Pg,[],null,null),Po(17,4210688,[["f",4]],0,kg,[[8,null],[8,null]],null,null),Oo(2048,null,Vf,null,[kg]),Po(19,16384,null,0,mg,[[4,Vf]],null,null),(n()(),Fr(20,0,null,null,42,"TABLE",[["BORDER","0"],["align","center"]],null,null,null,null,null)),(n()(),Fr(21,0,null,null,41,"tbody",[],null,null,null,null,null)),(n()(),Fr(22,0,null,null,9,"TR",[],null,null,null,null,null)),(n()(),Fr(23,0,null,null,1,"TH",[["ALIGN","RIGHT"]],null,null,null,null,null)),(n()(),ti(-1,null,["Gallons in system:"])),(n()(),Fr(25,0,null,null,6,"TD",[],null,null,null,null,null)),(n()(),Fr(26,0,null,null,5,"input",[["name","sysGal"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,27)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,27).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,27)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,27)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.sysGal=e)&&l),l},null,null)),Po(27,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(29,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(31,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(32,0,null,null,9,"TR",[],null,null,null,null,null)),(n()(),Fr(33,0,null,null,1,"TH",[["ALIGN","RIGHT"]],null,null,null,null,null)),(n()(),ti(-1,null,["Salinity of system (either SG or ppt is accepted):"])),(n()(),Fr(35,0,null,null,6,"TD",[],null,null,null,null,null)),(n()(),Fr(36,0,null,null,5,"input",[["name","sal"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,37)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,37).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,37)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,37)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.sal=e)&&l),l},null,null)),Po(37,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(39,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(41,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(42,0,null,null,9,"TR",[],null,null,null,null,null)),(n()(),Fr(43,0,null,null,1,"TH",[["ALIGN","RIGHT"]],null,null,null,null,null)),(n()(),ti(-1,null,["Gallons of Fresh Water:"])),(n()(),Fr(45,0,null,null,6,"TD",[],null,null,null,null,null)),(n()(),Fr(46,0,null,null,5,"input",[["name","makeupGal"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,47)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,47).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,47)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,47)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.makeupGal=e)&&l),l},null,null)),Po(47,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(49,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(51,16384,null,0,gg,[[4,tg]],null,null),(n()(),ti(52,null,[" "," "])),(n()(),Fr(53,0,null,null,4,"TR",[],null,null,null,null,null)),(n()(),Fr(54,0,null,null,1,"TH",[["ALIGN","RIGHT"]],null,null,null,null,null)),(n()(),ti(-1,null,["Resulting Salinity in PPT:"])),(n()(),Fr(56,0,null,null,1,"TD",[],null,null,null,null,null)),(n()(),ti(57,null,[" ",""])),(n()(),Fr(58,0,null,null,4,"TR",[],null,null,null,null,null)),(n()(),Fr(59,0,null,null,1,"TH",[["ALIGN","RIGHT"]],null,null,null,null,null)),(n()(),ti(-1,null,["Resulting Salinity in Specific Gravity:"])),(n()(),Fr(61,0,null,null,1,"TD",[],null,null,null,null,null)),(n()(),ti(62,null,["",""])),(n()(),Fr(63,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(64,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(65,0,null,null,2,"div",[["align","CENTER"]],null,null,null,null,null)),(n()(),Fr(66,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.calculate()&&l),l},null,null)),(n()(),ti(-1,null,["Calculate >"])),(n()(),ti(68,null,[" ","\n"]))],function(n,t){var e=t.component;n(t,29,0,"sysGal",e.sysGal),n(t,39,0,"sal",e.sal),n(t,49,0,"makeupGal",e.makeupGal)},function(n,t){var e=t.component;n(t,15,0,yo(t,19).ngClassUntouched,yo(t,19).ngClassTouched,yo(t,19).ngClassPristine,yo(t,19).ngClassDirty,yo(t,19).ngClassValid,yo(t,19).ngClassInvalid,yo(t,19).ngClassPending),n(t,26,0,yo(t,31).ngClassUntouched,yo(t,31).ngClassTouched,yo(t,31).ngClassPristine,yo(t,31).ngClassDirty,yo(t,31).ngClassValid,yo(t,31).ngClassInvalid,yo(t,31).ngClassPending),n(t,36,0,yo(t,41).ngClassUntouched,yo(t,41).ngClassTouched,yo(t,41).ngClassPristine,yo(t,41).ngClassDirty,yo(t,41).ngClassValid,yo(t,41).ngClassInvalid,yo(t,41).ngClassPending),n(t,46,0,yo(t,51).ngClassUntouched,yo(t,51).ngClassTouched,yo(t,51).ngClassPristine,yo(t,51).ngClassDirty,yo(t,51).ngClassValid,yo(t,51).ngClassInvalid,yo(t,51).ngClassPending),n(t,52,0,e.resultingSal),n(t,57,0,e.ppt),n(t,62,0,e.specificGravity),n(t,68,0,e.errorMsg)})}var qg=oo("app-makeup-salinity",Ug,function(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"app-makeup-salinity",[],null,null,null,Bg,zg)),Po(1,114688,null,0,Ug,[id,Ag],null,null)],function(n,t){n(t,1,0)},null)},{},{},[]),Wg=function(){function n(n,t){this.route=n,this.calculatorService=t}return n.prototype.ngOnInit=function(){this.sysGal=this.route.snapshot.queryParamMap.get("sysGal")?this.route.snapshot.queryParamMap.get("sysGal"):40,this.curSal=this.route.snapshot.queryParamMap.get("curSal")?this.route.snapshot.queryParamMap.get("curSal"):36,this.targetSal=this.route.snapshot.queryParamMap.get("targetSal")?this.route.snapshot.queryParamMap.get("targetSal"):35,this.maxPptIncr=this.route.snapshot.queryParamMap.get("maxPptIncr")?this.route.snapshot.queryParamMap.get("maxPptIncr"):.5,this.galChange=this.route.snapshot.queryParamMap.get("galChange")?this.route.snapshot.queryParamMap.get("galChange"):2,this.calculate()},n.prototype.calculate=function(){var n=this,t="https://api.saltyzoo.com/v3/saltycalcs/SalinityAdjust";t+="/sysGal/"+this.sysGal,t+="/curSal/"+this.curSal,t+="/targetSal/"+this.targetSal,t+="/maxPptIncr/"+this.maxPptIncr,t+="/galChange/"+this.galChange,console.log("url = "+t),this.calculatorService.post(t).subscribe(function(t){return n.calculated(t)})},n.prototype.calculated=function(n){this.results=n},n}(),Zg=hr({encapsulation:0,styles:[["h2[_ngcontent-%COMP%]{color:#b3ad0d}.strong[_ngcontent-%COMP%]{color:red}"]],data:{}});function Kg(n){return ri(0,[(n()(),Fr(0,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),Fr(1,0,null,null,1,"TD",[],null,null,null,null,null)),(n()(),ti(2,null,["",""])),(n()(),Fr(3,0,null,null,1,"TD",[],null,null,null,null,null)),(n()(),ti(4,null,[""," sg / "," ppt"])),(n()(),Fr(5,0,null,null,1,"TD",[],null,null,null,null,null)),(n()(),ti(6,null,["",""])),(n()(),Fr(7,0,null,null,1,"TD",[],null,null,null,null,null)),(n()(),ti(8,null,[""," sg / "," ppt"])),(n()(),Fr(9,0,null,null,1,"TD",[],null,null,null,null,null)),(n()(),ti(10,null,[""," sg / "," ppt"]))],null,function(n,t){n(t,2,0,t.context.$implicit.num),n(t,4,0,t.context.$implicit.curSal.sg,t.context.$implicit.curSal.ppt),n(t,6,0,t.context.$implicit.galChange),n(t,8,0,t.context.$implicit.salChange.sg,t.context.$implicit.salChange.ppt),n(t,10,0,t.context.$implicit.targetSal.sg,t.context.$implicit.targetSal.ppt)})}function Qg(n){return ri(0,[(n()(),Fr(0,0,null,null,16,"TABLE",[["BORDER","1"]],null,null,null,null,null)),(n()(),Fr(1,0,null,null,15,"tbody",[],null,null,null,null,null)),(n()(),Fr(2,0,null,null,2,"TR",[],null,null,null,null,null)),(n()(),Fr(3,0,null,null,1,"TD",[["ALIGN","CENTER"],["COLSPAN","5"]],null,null,null,null,null)),(n()(),ti(4,null,["This plan calls for "," water changes"])),(n()(),Fr(5,0,null,null,9,"TR",[],null,null,null,null,null)),(n()(),Fr(6,0,null,null,0,"TH",[],null,null,null,null,null)),(n()(),Fr(7,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,["Tank Sal. (BEFORE)"])),(n()(),Fr(9,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,["Gallons"])),(n()(),Fr(11,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,["Salinity"])),(n()(),Fr(13,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,["Tank Sal. (AFTER)"])),(n()(),Gr(16777216,null,null,1,null,Kg)),Po(16,278528,null,0,ys,[We,qe,fl],{ngForOf:[0,"ngForOf"]},null)],function(n,t){n(t,16,0,t.component.results.changes)},function(n,t){n(t,4,0,t.component.results.numChanges)})}function $g(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"div",[["align","CENTER"]],null,null,null,null,null)),(n()(),Fr(1,0,null,null,1,"h2",[],null,null,null,null,null)),(n()(),ti(-1,null,[" Salinity Adjustment Calculator "])),(n()(),Fr(3,0,null,null,19,"table",[["align","center"],["width","70%"]],null,null,null,null,null)),(n()(),Fr(4,0,null,null,18,"tbody",[],null,null,null,null,null)),(n()(),Fr(5,0,null,null,17,"tr",[],null,null,null,null,null)),(n()(),Fr(6,0,null,null,16,"td",[["align","left"]],null,null,null,null,null)),(n()(),ti(-1,null,[" This calculator takes the amount of water in your system, your current salinity, the salinity you'd like to achieve, and the maximum change in salinity that you are willing to risk per water change. It returns the number of gallons and salinity of the water for each change. "])),(n()(),Fr(8,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(9,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),ti(-1,null,[" Notes: "])),(n()(),Fr(11,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),ti(-1,null,[" The maximum salinity per change can only be entered in ppt, this field will NOT accept SG. "])),(n()(),Fr(13,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),ti(-1,null,[" When lowering the salinity, water removed should be discarded and will always be replaced with FW (water with a SG of 1.0 or a ppt of 0) "])),(n()(),Fr(15,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),ti(-1,null,[" When raising the salinity, "])),(n()(),Fr(17,0,null,null,1,"span",[["class","strong"]],null,null,null,null,null)),(n()(),ti(-1,null,["no water should be discarded"])),(n()(),ti(-1,null,[". You should raise the salinity of the water removed to the value shown and then replace the water into the system. "])),(n()(),Fr(20,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(21,0,null,null,1,"h2",[["class","strong"]],null,null,null,null,null)),(n()(),ti(-1,null,[" If any of the results do not make perfect sense to you, DO NOT use them to make changes to your system. "])),(n()(),Fr(23,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(24,0,null,null,66,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,t,e){var l=!0;return"submit"===t&&(l=!1!==yo(n,26).onSubmit(e)&&l),"reset"===t&&(l=!1!==yo(n,26).onReset()&&l),l},null,null)),Po(25,16384,null,0,Pg,[],null,null),Po(26,4210688,[["f",4]],0,kg,[[8,null],[8,null]],null,null),Oo(2048,null,Vf,null,[kg]),Po(28,16384,null,0,mg,[[4,Vf]],null,null),(n()(),Fr(29,0,null,null,60,"div",[["align","CENTER"]],null,null,null,null,null)),(n()(),Fr(30,0,null,null,51,"TABLE",[["BORDER","0"],["width","70%"]],null,null,null,null,null)),(n()(),Fr(31,0,null,null,50,"tbody",[],null,null,null,null,null)),(n()(),Fr(32,0,null,null,9,"TR",[],null,null,null,null,null)),(n()(),Fr(33,0,null,null,1,"TH",[["ALIGN","RIGHT"]],null,null,null,null,null)),(n()(),ti(-1,null,["Gallons in system: "])),(n()(),Fr(35,0,null,null,6,"TD",[],null,null,null,null,null)),(n()(),Fr(36,0,null,null,5,"input",[["name","sysGal"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,37)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,37).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,37)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,37)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.sysGal=e)&&l),l},null,null)),Po(37,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(39,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(41,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(42,0,null,null,9,"TR",[],null,null,null,null,null)),(n()(),Fr(43,0,null,null,1,"TH",[["ALIGN","RIGHT"]],null,null,null,null,null)),(n()(),ti(-1,null,[" Current salinity of system (either SG or ppt is accepted): "])),(n()(),Fr(45,0,null,null,6,"TD",[],null,null,null,null,null)),(n()(),Fr(46,0,null,null,5,"input",[["name","curSal"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,47)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,47).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,47)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,47)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.curSal=e)&&l),l},null,null)),Po(47,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(49,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(51,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(52,0,null,null,9,"TR",[],null,null,null,null,null)),(n()(),Fr(53,0,null,null,1,"TH",[["ALIGN","RIGHT"]],null,null,null,null,null)),(n()(),ti(-1,null,[" Target salinity of system (either SG or ppt is accepted): "])),(n()(),Fr(55,0,null,null,6,"TD",[],null,null,null,null,null)),(n()(),Fr(56,0,null,null,5,"input",[["name","targetSal"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,57)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,57).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,57)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,57)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.targetSal=e)&&l),l},null,null)),Po(57,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(59,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(61,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(62,0,null,null,9,"TR",[],null,null,null,null,null)),(n()(),Fr(63,0,null,null,1,"TH",[["ALIGN","RIGHT"]],null,null,null,null,null)),(n()(),ti(-1,null,[" Maximum PPT Change (Enter the maximum change in ppt you want to risk per change): "])),(n()(),Fr(65,0,null,null,6,"TD",[],null,null,null,null,null)),(n()(),Fr(66,0,null,null,5,"input",[["name","maxPptIncr"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,67)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,67).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,67)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,67)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.maxPptIncr=e)&&l),l},null,null)),Po(67,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(69,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(71,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(72,0,null,null,9,"TR",[],null,null,null,null,null)),(n()(),Fr(73,0,null,null,1,"TH",[["ALIGN","RIGHT"]],null,null,null,null,null)),(n()(),ti(-1,null,[" Number of gallons in water change (Change as much as is convienient. The more water the less radical the adjustment. This number is only used when raising salinity): "])),(n()(),Fr(75,0,null,null,6,"TD",[],null,null,null,null,null)),(n()(),Fr(76,0,null,null,5,"input",[["name","galChange"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,77)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,77).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,77)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,77)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.galChange=e)&&l),l},null,null)),Po(77,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(79,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(81,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(82,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(83,0,null,null,2,"div",[["align","CENTER"]],null,null,null,null,null)),(n()(),Fr(84,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.calculate()&&l),l},null,null)),(n()(),ti(-1,null,["Calculate >"])),(n()(),Fr(86,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(87,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Gr(16777216,null,null,1,null,Qg)),Po(89,16384,null,0,bs,[We,qe],{ngIf:[0,"ngIf"]},null),(n()(),ti(90,null,[" ","\n"])),(n()(),Fr(91,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(92,0,null,null,0,"BR",[],null,null,null,null,null))],function(n,t){var e=t.component;n(t,39,0,"sysGal",e.sysGal),n(t,49,0,"curSal",e.curSal),n(t,59,0,"targetSal",e.targetSal),n(t,69,0,"maxPptIncr",e.maxPptIncr),n(t,79,0,"galChange",e.galChange),n(t,89,0,e.results)},function(n,t){var e=t.component;n(t,24,0,yo(t,28).ngClassUntouched,yo(t,28).ngClassTouched,yo(t,28).ngClassPristine,yo(t,28).ngClassDirty,yo(t,28).ngClassValid,yo(t,28).ngClassInvalid,yo(t,28).ngClassPending),n(t,36,0,yo(t,41).ngClassUntouched,yo(t,41).ngClassTouched,yo(t,41).ngClassPristine,yo(t,41).ngClassDirty,yo(t,41).ngClassValid,yo(t,41).ngClassInvalid,yo(t,41).ngClassPending),n(t,46,0,yo(t,51).ngClassUntouched,yo(t,51).ngClassTouched,yo(t,51).ngClassPristine,yo(t,51).ngClassDirty,yo(t,51).ngClassValid,yo(t,51).ngClassInvalid,yo(t,51).ngClassPending),n(t,56,0,yo(t,61).ngClassUntouched,yo(t,61).ngClassTouched,yo(t,61).ngClassPristine,yo(t,61).ngClassDirty,yo(t,61).ngClassValid,yo(t,61).ngClassInvalid,yo(t,61).ngClassPending),n(t,66,0,yo(t,71).ngClassUntouched,yo(t,71).ngClassTouched,yo(t,71).ngClassPristine,yo(t,71).ngClassDirty,yo(t,71).ngClassValid,yo(t,71).ngClassInvalid,yo(t,71).ngClassPending),n(t,76,0,yo(t,81).ngClassUntouched,yo(t,81).ngClassTouched,yo(t,81).ngClassPristine,yo(t,81).ngClassDirty,yo(t,81).ngClassValid,yo(t,81).ngClassInvalid,yo(t,81).ngClassPending),n(t,90,0,e.errorMsg)})}var Jg=oo("app-salinity-adjust",Wg,function(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"app-salinity-adjust",[],null,null,null,$g,Zg)),Po(1,114688,null,0,Wg,[id,Ag],null,null)],function(n,t){n(t,1,0)},null)},{},{},[]),Xg=function(){function n(n,t){this.route=n,this.calculatorService=t}return n.prototype.ngOnInit=function(){this.meql=this.route.snapshot.queryParamMap.get("meql")?this.route.snapshot.queryParamMap.get("meql"):null,this.dkh=this.route.snapshot.queryParamMap.get("dkh")?this.route.snapshot.queryParamMap.get("dkh"):null,this.ppm=this.route.snapshot.queryParamMap.get("ppm")?this.route.snapshot.queryParamMap.get("ppm"):143,this.convert("PPM")},n.prototype.convert=function(n){var t=this,e="https://api.saltyzoo.com/v3/saltycalcs/AlkConv";switch(n){case"MEQL":e+="/meql/"+this.meql;break;default:case"DKH":e+="/dkh/"+this.dkh;break;case"PPM":e+="/ppm/"+this.ppm}console.log("url = "+e),this.calculatorService.post(e).subscribe(function(n){return t.converted(n)})},n.prototype.converted=function(n){this.dkh=n.dkh,this.meql=n.meql,this.ppm=n.ppm,this.errorMsg=n.errorMsg},n}(),Yg=hr({encapsulation:0,styles:[["h2[_ngcontent-%COMP%]{color:#b3ad0d}.strong[_ngcontent-%COMP%]{color:red}"]],data:{}});function nm(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"div",[["align","CENTER"]],null,null,null,null,null)),(n()(),Fr(1,0,null,null,1,"h2",[],null,null,null,null,null)),(n()(),ti(-1,null,[" Alkalinity Reading Conversion (meq/l / dKH / ppm CaCO3) Utility "])),(n()(),Fr(3,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(4,0,null,null,53,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,t,e){var l=!0;return"submit"===t&&(l=!1!==yo(n,6).onSubmit(e)&&l),"reset"===t&&(l=!1!==yo(n,6).onReset()&&l),l},null,null)),Po(5,16384,null,0,Pg,[],null,null),Po(6,4210688,[["f",4]],0,kg,[[8,null],[8,null]],null,null),Oo(2048,null,Vf,null,[kg]),Po(8,16384,null,0,mg,[[4,Vf]],null,null),(n()(),Fr(9,0,null,null,45,"div",[["align","CENTER"]],null,null,null,null,null)),(n()(),Fr(10,0,null,null,44,"table",[["border","0"]],null,null,null,null,null)),(n()(),Fr(11,0,null,null,43,"tbody",[],null,null,null,null,null)),(n()(),Fr(12,0,null,null,7,"TR",[],null,null,null,null,null)),(n()(),Fr(13,0,null,null,0,"TH",[],null,null,null,null,null)),(n()(),Fr(14,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,[" meq / l "])),(n()(),Fr(16,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,[" dKH "])),(n()(),Fr(18,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,[" ppm "])),(n()(),Fr(20,0,null,null,23,"tr",[],null,null,null,null,null)),(n()(),Fr(21,0,null,null,1,"TH",[["align","right"]],null,null,null,null,null)),(n()(),ti(-1,null,[" Reading: "])),(n()(),Fr(23,0,null,null,6,"td",[["align","right"]],null,null,null,null,null)),(n()(),Fr(24,0,null,null,5,"input",[["name","meql"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,25)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,25).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,25)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,25)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.meql=e)&&l),l},null,null)),Po(25,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(27,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(29,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(30,0,null,null,6,"td",[["align","right"]],null,null,null,null,null)),(n()(),Fr(31,0,null,null,5,"input",[["name","dkh"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,32)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,32).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,32)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,32)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.dkh=e)&&l),l},null,null)),Po(32,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(34,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(36,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(37,0,null,null,6,"td",[["align","right"]],null,null,null,null,null)),(n()(),Fr(38,0,null,null,5,"input",[["name","ppm"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,39)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,39).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,39)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,39)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.ppm=e)&&l),l},null,null)),Po(39,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(41,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(43,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(44,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),Fr(45,0,null,null,0,"TH",[],null,null,null,null,null)),(n()(),Fr(46,0,null,null,2,"td",[["align","CENTER"]],null,null,null,null,null)),(n()(),Fr(47,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.convert("MEQL")&&l),l},null,null)),(n()(),ti(-1,null,["^ Convert from ^"])),(n()(),Fr(49,0,null,null,2,"td",[["align","CENTER"]],null,null,null,null,null)),(n()(),Fr(50,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.convert("DKH")&&l),l},null,null)),(n()(),ti(-1,null,["^ Convert from ^"])),(n()(),Fr(52,0,null,null,2,"td",[["align","center"]],null,null,null,null,null)),(n()(),Fr(53,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.convert("PPM")&&l),l},null,null)),(n()(),ti(-1,null,["^ Convert from ^"])),(n()(),Fr(55,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(56,0,null,null,1,"p",[["align","center"],["class","strong"]],null,null,null,null,null)),(n()(),ti(57,null,["",""]))],function(n,t){var e=t.component;n(t,27,0,"meql",e.meql),n(t,34,0,"dkh",e.dkh),n(t,41,0,"ppm",e.ppm)},function(n,t){var e=t.component;n(t,4,0,yo(t,8).ngClassUntouched,yo(t,8).ngClassTouched,yo(t,8).ngClassPristine,yo(t,8).ngClassDirty,yo(t,8).ngClassValid,yo(t,8).ngClassInvalid,yo(t,8).ngClassPending),n(t,24,0,yo(t,29).ngClassUntouched,yo(t,29).ngClassTouched,yo(t,29).ngClassPristine,yo(t,29).ngClassDirty,yo(t,29).ngClassValid,yo(t,29).ngClassInvalid,yo(t,29).ngClassPending),n(t,31,0,yo(t,36).ngClassUntouched,yo(t,36).ngClassTouched,yo(t,36).ngClassPristine,yo(t,36).ngClassDirty,yo(t,36).ngClassValid,yo(t,36).ngClassInvalid,yo(t,36).ngClassPending),n(t,38,0,yo(t,43).ngClassUntouched,yo(t,43).ngClassTouched,yo(t,43).ngClassPristine,yo(t,43).ngClassDirty,yo(t,43).ngClassValid,yo(t,43).ngClassInvalid,yo(t,43).ngClassPending),n(t,57,0,e.errorMsg)})}var tm=oo("app-alk-conv",Xg,function(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"app-alk-conv",[],null,null,null,nm,Yg)),Po(1,114688,null,0,Xg,[id,Ag],null,null)],function(n,t){n(t,1,0)},null)},{},{},[]),em=function(){function n(n,t){this.route=n,this.calculatorService=t}return n.prototype.ngOnInit=function(){this.mlHr=this.route.snapshot.queryParamMap.get("mlHr")?this.route.snapshot.queryParamMap.get("mlHr"):160,this.galDay=this.route.snapshot.queryParamMap.get("galDay")?this.route.snapshot.queryParamMap.get("galDay"):null,this.galWeek=this.route.snapshot.queryParamMap.get("galWeek")?this.route.snapshot.queryParamMap.get("galWeek"):null,this.convert("ML_HR")},n.prototype.convert=function(n){var t=this,e="https://api.saltyzoo.com/v3/saltycalcs/DosingCalc";switch(n){case"ML_HR":e+="/mlHr/"+this.mlHr;break;default:case"GAL_DAY":e+="/galDay/"+this.galDay;break;case"GAL_WEEK":e+="/galWeek/"+this.galWeek}console.log("url = "+e),this.calculatorService.post(e).subscribe(function(n){return t.converted(n)})},n.prototype.converted=function(n){this.mlHr=n.mlHr,this.galDay=n.galDay,this.galWeek=n.galWeek,this.errorMsg=n.errorMsg},n}(),lm=hr({encapsulation:0,styles:[["h2[_ngcontent-%COMP%]{color:#b3ad0d}.strong[_ngcontent-%COMP%]{color:red}"]],data:{}});function rm(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"div",[["align","CENTER"]],null,null,null,null,null)),(n()(),Fr(1,0,null,null,1,"h2",[],null,null,null,null,null)),(n()(),ti(-1,null,[" Dosing Calculator (mL per hr / Gallons per Day Conversion) Utility "])),(n()(),Fr(3,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(4,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(5,0,null,null,53,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,t,e){var l=!0;return"submit"===t&&(l=!1!==yo(n,7).onSubmit(e)&&l),"reset"===t&&(l=!1!==yo(n,7).onReset()&&l),l},null,null)),Po(6,16384,null,0,Pg,[],null,null),Po(7,4210688,[["f",4]],0,kg,[[8,null],[8,null]],null,null),Oo(2048,null,Vf,null,[kg]),Po(9,16384,null,0,mg,[[4,Vf]],null,null),(n()(),Fr(10,0,null,null,45,"div",[["align","CENTER"]],null,null,null,null,null)),(n()(),Fr(11,0,null,null,44,"table",[["border","0"]],null,null,null,null,null)),(n()(),Fr(12,0,null,null,43,"tbody",[],null,null,null,null,null)),(n()(),Fr(13,0,null,null,7,"TR",[],null,null,null,null,null)),(n()(),Fr(14,0,null,null,0,"TH",[],null,null,null,null,null)),(n()(),Fr(15,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,[" mL / Hr "])),(n()(),Fr(17,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,[" Gal / Day "])),(n()(),Fr(19,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,[" Gal / Week "])),(n()(),Fr(21,0,null,null,23,"tr",[],null,null,null,null,null)),(n()(),Fr(22,0,null,null,1,"TH",[["align","right"]],null,null,null,null,null)),(n()(),ti(-1,null,[" Reading: "])),(n()(),Fr(24,0,null,null,6,"td",[["align","right"]],null,null,null,null,null)),(n()(),Fr(25,0,null,null,5,"input",[["name","mlHr"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,26)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,26).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,26)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,26)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.mlHr=e)&&l),l},null,null)),Po(26,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(28,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(30,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(31,0,null,null,6,"td",[["align","right"]],null,null,null,null,null)),(n()(),Fr(32,0,null,null,5,"input",[["name","galDay"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,33)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,33).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,33)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,33)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.galDay=e)&&l),l},null,null)),Po(33,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(35,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(37,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(38,0,null,null,6,"td",[["align","right"]],null,null,null,null,null)),(n()(),Fr(39,0,null,null,5,"input",[["name","galWeek"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,40)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,40).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,40)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,40)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.galWeek=e)&&l),l},null,null)),Po(40,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(42,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(44,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(45,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),Fr(46,0,null,null,0,"TH",[],null,null,null,null,null)),(n()(),Fr(47,0,null,null,2,"td",[["align","center"]],null,null,null,null,null)),(n()(),Fr(48,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.convert("ML_HR")&&l),l},null,null)),(n()(),ti(-1,null,["^ Convert from ^"])),(n()(),Fr(50,0,null,null,2,"td",[["align","center"]],null,null,null,null,null)),(n()(),Fr(51,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.convert("GAL_DAY")&&l),l},null,null)),(n()(),ti(-1,null,["^ Convert from ^"])),(n()(),Fr(53,0,null,null,2,"td",[["align","center"]],null,null,null,null,null)),(n()(),Fr(54,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.convert("GAL_WEEK")&&l),l},null,null)),(n()(),ti(-1,null,["^ Convert from ^"])),(n()(),Fr(56,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(57,0,null,null,1,"p",[["align","center"],["class","strong"]],null,null,null,null,null)),(n()(),ti(58,null,["",""]))],function(n,t){var e=t.component;n(t,28,0,"mlHr",e.mlHr),n(t,35,0,"galDay",e.galDay),n(t,42,0,"galWeek",e.galWeek)},function(n,t){var e=t.component;n(t,5,0,yo(t,9).ngClassUntouched,yo(t,9).ngClassTouched,yo(t,9).ngClassPristine,yo(t,9).ngClassDirty,yo(t,9).ngClassValid,yo(t,9).ngClassInvalid,yo(t,9).ngClassPending),n(t,25,0,yo(t,30).ngClassUntouched,yo(t,30).ngClassTouched,yo(t,30).ngClassPristine,yo(t,30).ngClassDirty,yo(t,30).ngClassValid,yo(t,30).ngClassInvalid,yo(t,30).ngClassPending),n(t,32,0,yo(t,37).ngClassUntouched,yo(t,37).ngClassTouched,yo(t,37).ngClassPristine,yo(t,37).ngClassDirty,yo(t,37).ngClassValid,yo(t,37).ngClassInvalid,yo(t,37).ngClassPending),n(t,39,0,yo(t,44).ngClassUntouched,yo(t,44).ngClassTouched,yo(t,44).ngClassPristine,yo(t,44).ngClassDirty,yo(t,44).ngClassValid,yo(t,44).ngClassInvalid,yo(t,44).ngClassPending),n(t,58,0,e.errorMsg)})}var om=oo("app-dosing-calculator",em,function(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"app-dosing-calculator",[],null,null,null,rm,lm)),Po(1,114688,null,0,em,[id,Ag],null,null)],function(n,t){n(t,1,0)},null)},{},{},[]),im=function(){function n(n,t){this.route=n,this.calculatorService=t}return n.prototype.ngOnInit=function(){this.length=this.route.snapshot.queryParamMap.get("length")?this.route.snapshot.queryParamMap.get("length"):48,this.width=this.route.snapshot.queryParamMap.get("width")?this.route.snapshot.queryParamMap.get("width"):12,this.height=this.route.snapshot.queryParamMap.get("height")?this.route.snapshot.queryParamMap.get("height"):24,this.gal=this.route.snapshot.queryParamMap.get("gal"),this.calculate("GAL")},n.prototype.calculate=function(n){var t=this,e="https://api.saltyzoo.com/v3/saltycalcs/DimGalConv";switch(n){case"GAL":e+="/height/"+this.height,e+="/width/"+this.width,e+="/length/"+this.length;break;default:case"HEIGHT":e+="/gal/"+this.gal,e+="/width/"+this.width,e+="/length/"+this.length;break;case"WIDTH":e+="/height/"+this.height,e+="/length/"+this.length,e+="/gal/"+this.gal;break;case"LENGTH":e+="/gal/"+this.gal,e+="/height/"+this.height,e+="/width/"+this.width}console.log("url = "+e),this.calculatorService.post(e).subscribe(function(n){return t.calculated(n)})},n.prototype.calculated=function(n){this.gal=n.gal,this.height=n.height,this.width=n.width,this.length=n.length,this.errorMsg=n.errorMsg},n}(),um=hr({encapsulation:0,styles:[["h2[_ngcontent-%COMP%]{color:#b3ad0d}.strong[_ngcontent-%COMP%]{color:red}"]],data:{}});function am(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"div",[["align","CENTER"]],null,null,null,null,null)),(n()(),Fr(1,0,null,null,1,"h2",[],null,null,null,null,null)),(n()(),ti(-1,null,[" SaltyZoo's Aquarium Dimensions / Volume Tool "])),(n()(),Fr(3,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(4,0,null,null,1,"p",[["align","center"]],null,null,null,null,null)),(n()(),ti(-1,null,["Fill in 3 values and hit calculate to get the 4th value"])),(n()(),Fr(6,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(7,0,null,null,65,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,t,e){var l=!0;return"submit"===t&&(l=!1!==yo(n,9).onSubmit(e)&&l),"reset"===t&&(l=!1!==yo(n,9).onReset()&&l),l},null,null)),Po(8,16384,null,0,Pg,[],null,null),Po(9,4210688,[["f",4]],0,kg,[[8,null],[8,null]],null,null),Oo(2048,null,Vf,null,[kg]),Po(11,16384,null,0,mg,[[4,Vf]],null,null),(n()(),Fr(12,0,null,null,57,"div",[["align","CENTER"]],null,null,null,null,null)),(n()(),Fr(13,0,null,null,56,"table",[["border","0"]],null,null,null,null,null)),(n()(),Fr(14,0,null,null,55,"tbody",[],null,null,null,null,null)),(n()(),Fr(15,0,null,null,9,"TR",[],null,null,null,null,null)),(n()(),Fr(16,0,null,null,0,"TH",[],null,null,null,null,null)),(n()(),Fr(17,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,[" Length "])),(n()(),Fr(19,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,[" Width "])),(n()(),Fr(21,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,[" Height "])),(n()(),Fr(23,0,null,null,1,"TH",[],null,null,null,null,null)),(n()(),ti(-1,null,[" Gallons "])),(n()(),Fr(25,0,null,null,30,"tr",[],null,null,null,null,null)),(n()(),Fr(26,0,null,null,1,"TH",[["align","right"]],null,null,null,null,null)),(n()(),ti(-1,null,[" Values: "])),(n()(),Fr(28,0,null,null,6,"td",[["align","right"]],null,null,null,null,null)),(n()(),Fr(29,0,null,null,5,"input",[["name","length"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,30)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,30).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,30)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,30)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.length=e)&&l),l},null,null)),Po(30,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(32,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(34,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(35,0,null,null,6,"td",[["align","right"]],null,null,null,null,null)),(n()(),Fr(36,0,null,null,5,"input",[["name","width"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,37)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,37).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,37)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,37)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.width=e)&&l),l},null,null)),Po(37,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(39,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(41,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(42,0,null,null,6,"td",[["align","right"]],null,null,null,null,null)),(n()(),Fr(43,0,null,null,5,"input",[["name","height"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,44)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,44).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,44)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,44)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.height=e)&&l),l},null,null)),Po(44,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(46,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(48,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(49,0,null,null,6,"td",[["align","right"]],null,null,null,null,null)),(n()(),Fr(50,0,null,null,5,"input",[["name","gal"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,51)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,51).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,51)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,51)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.gal=e)&&l),l},null,null)),Po(51,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(53,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(55,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(56,0,null,null,13,"tr",[],null,null,null,null,null)),(n()(),Fr(57,0,null,null,0,"TH",[],null,null,null,null,null)),(n()(),Fr(58,0,null,null,2,"td",[["align","center"]],null,null,null,null,null)),(n()(),Fr(59,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.calculate("LENGTH")&&l),l},null,null)),(n()(),ti(-1,null,["^ Calculate ^"])),(n()(),Fr(61,0,null,null,2,"td",[["align","center"]],null,null,null,null,null)),(n()(),Fr(62,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.calculate("WIDTH")&&l),l},null,null)),(n()(),ti(-1,null,["^ Calculate ^"])),(n()(),Fr(64,0,null,null,2,"td",[["align","center"]],null,null,null,null,null)),(n()(),Fr(65,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.calculate("HEIGHT")&&l),l},null,null)),(n()(),ti(-1,null,["^ Calculate ^"])),(n()(),Fr(67,0,null,null,2,"td",[["align","center"]],null,null,null,null,null)),(n()(),Fr(68,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.calculate("GAL")&&l),l},null,null)),(n()(),ti(-1,null,["^ Calculate ^"])),(n()(),Fr(70,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(71,0,null,null,1,"p",[["align","center"],["class","strong"]],null,null,null,null,null)),(n()(),ti(72,null,["",""]))],function(n,t){var e=t.component;n(t,32,0,"length",e.length),n(t,39,0,"width",e.width),n(t,46,0,"height",e.height),n(t,53,0,"gal",e.gal)},function(n,t){var e=t.component;n(t,7,0,yo(t,11).ngClassUntouched,yo(t,11).ngClassTouched,yo(t,11).ngClassPristine,yo(t,11).ngClassDirty,yo(t,11).ngClassValid,yo(t,11).ngClassInvalid,yo(t,11).ngClassPending),n(t,29,0,yo(t,34).ngClassUntouched,yo(t,34).ngClassTouched,yo(t,34).ngClassPristine,yo(t,34).ngClassDirty,yo(t,34).ngClassValid,yo(t,34).ngClassInvalid,yo(t,34).ngClassPending),n(t,36,0,yo(t,41).ngClassUntouched,yo(t,41).ngClassTouched,yo(t,41).ngClassPristine,yo(t,41).ngClassDirty,yo(t,41).ngClassValid,yo(t,41).ngClassInvalid,yo(t,41).ngClassPending),n(t,43,0,yo(t,48).ngClassUntouched,yo(t,48).ngClassTouched,yo(t,48).ngClassPristine,yo(t,48).ngClassDirty,yo(t,48).ngClassValid,yo(t,48).ngClassInvalid,yo(t,48).ngClassPending),n(t,50,0,yo(t,55).ngClassUntouched,yo(t,55).ngClassTouched,yo(t,55).ngClassPristine,yo(t,55).ngClassDirty,yo(t,55).ngClassValid,yo(t,55).ngClassInvalid,yo(t,55).ngClassPending),n(t,72,0,e.errorMsg)})}var sm=oo("app-dim-gal-conv",im,function(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"app-dim-gal-conv",[],null,null,null,am,um)),Po(1,114688,null,0,im,[id,Ag],null,null)],function(n,t){n(t,1,0)},null)},{},{},[]),cm=function(){function n(n){this.http=n,this.url="https://api.saltyzoo.com/v4/login/"}return n.prototype.login=function(n,t){return this.http.get(this.url+n,{headers:{secret:t=t||""}}).pipe(Ba(function(n){var t=JSON.parse(JSON.stringify(n));console.log("login "+JSON.stringify(t,null,2))}),Za(this.handleError("login",{})))},n.prototype.handleError=function(n,t){return void 0===n&&(n="operation"),function(n){return 401!=n.status&&console.error(n),za(t)}},n.ngInjectableDef=_n({factory:function(){return new n(ft(qs))},token:n,providedIn:"root"}),n}(),hm=function(){function n(n){this.loginService=n}return n.prototype.ngOnInit=function(){},n.prototype.login=function(){var n=this;console.log("user = "+this.user),console.log("secret = "+this.secret),this.loginService.login(this.user,this.secret).subscribe(function(t){return n.gotLogin(t)})},n.prototype.gotLogin=function(n){console.log("resp = "+JSON.stringify(n,null,2)),n.Authorization?(console.log("Valid"),sessionStorage.setItem("user",this.user),sessionStorage.setItem("Auth",n.Authorization),this.response="Logged in"):(this.response="Login failed",sessionStorage.removeItem("Auth"))},n}(),pm=hr({encapsulation:0,styles:[[""]],data:{}});function dm(n){return ri(0,[(n()(),Fr(0,0,null,null,30,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,t,e){var l=!0;return"submit"===t&&(l=!1!==yo(n,2).onSubmit(e)&&l),"reset"===t&&(l=!1!==yo(n,2).onReset()&&l),l},null,null)),Po(1,16384,null,0,Pg,[],null,null),Po(2,4210688,[["f",4]],0,kg,[[8,null],[8,null]],null,null),Oo(2048,null,Vf,null,[kg]),Po(4,16384,null,0,mg,[[4,Vf]],null,null),(n()(),Fr(5,0,null,null,25,"table",[["align","Center"]],null,null,null,null,null)),(n()(),Fr(6,0,null,null,24,"tbody",[],null,null,null,null,null)),(n()(),Fr(7,0,null,null,9,"tr",[],null,null,null,null,null)),(n()(),Fr(8,0,null,null,1,"td",[],null,null,null,null,null)),(n()(),ti(-1,null,["Username:"])),(n()(),Fr(10,0,null,null,6,"td",[],null,null,null,null,null)),(n()(),Fr(11,0,null,null,5,"input",[["name","user"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,12)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,12).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,12)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,12)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.user=e)&&l),l},null,null)),Po(12,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(14,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(16,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(17,0,null,null,9,"tr",[],null,null,null,null,null)),(n()(),Fr(18,0,null,null,1,"td",[],null,null,null,null,null)),(n()(),ti(-1,null,["Password:"])),(n()(),Fr(20,0,null,null,6,"td",[],null,null,null,null,null)),(n()(),Fr(21,0,null,null,5,"input",[["name","secret"],["type","password"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,22)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,22).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,22)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,22)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.secret=e)&&l),l},null,null)),Po(22,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(24,671744,null,0,Rg,[[2,Vf],[8,null],[8,null],[6,Zf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(26,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(27,0,null,null,3,"tr",[],null,null,null,null,null)),(n()(),Fr(28,0,null,null,2,"td",[["align","center"],["colspan","2"]],null,null,null,null,null)),(n()(),Fr(29,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.login()&&l),l},null,null)),(n()(),ti(-1,null,["Login"])),(n()(),Fr(31,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(32,0,null,null,1,"div",[["align","center"]],null,null,null,null,null)),(n()(),ti(33,null,[" ","\n"]))],function(n,t){var e=t.component;n(t,14,0,"user",e.user),n(t,24,0,"secret",e.secret)},function(n,t){var e=t.component;n(t,0,0,yo(t,4).ngClassUntouched,yo(t,4).ngClassTouched,yo(t,4).ngClassPristine,yo(t,4).ngClassDirty,yo(t,4).ngClassValid,yo(t,4).ngClassInvalid,yo(t,4).ngClassPending),n(t,11,0,yo(t,16).ngClassUntouched,yo(t,16).ngClassTouched,yo(t,16).ngClassPristine,yo(t,16).ngClassDirty,yo(t,16).ngClassValid,yo(t,16).ngClassInvalid,yo(t,16).ngClassPending),n(t,21,0,yo(t,26).ngClassUntouched,yo(t,26).ngClassTouched,yo(t,26).ngClassPristine,yo(t,26).ngClassDirty,yo(t,26).ngClassValid,yo(t,26).ngClassInvalid,yo(t,26).ngClassPending),n(t,33,0,e.response)})}var fm=oo("app-login",hm,function(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"app-login",[],null,null,null,dm,pm)),Po(1,114688,null,0,hm,[cm],null,null)],function(n,t){n(t,1,0)},null)},{},{},[]);function gm(n){return null!=n&&""+n!="false"}function mm(n,t){return void 0===t&&(t=0),ym(n)?Number(n):t}function ym(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}var vm,bm="undefined"!=typeof Intl&&Intl.v8BreakIterator,_m=function(){function n(n){this._platformId=n,this.isBrowser=this._platformId?this._platformId===ks:"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&&!bm)&&"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 n.ngInjectableDef=_n({factory:function(){return new n(ft(Bt,8))},token:n,providedIn:"root"}),n}();function wm(){if(null==vm&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return vm=!0}}))}finally{vm=vm||!1}return vm}var Cm=function(){},Sm=function(n){function t(t,e){var l=n.call(this,t,e)||this;return l.scheduler=t,l.work=e,l.pending=!1,l}return r(t,n),t.prototype.schedule=function(n,t){if(void 0===t&&(t=0),this.closed)return this;this.state=n;var e=this.id,l=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(l,e,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(l,this.id,t),this},t.prototype.requestAsyncId=function(n,t,e){return void 0===e&&(e=0),setInterval(n.flush.bind(n,this),e)},t.prototype.recycleAsyncId=function(n,t,e){if(void 0===e&&(e=0),null!==e&&this.delay===e&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var e=this._execute(n,t);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,t){var e=!1,l=void 0;try{this.work(n)}catch(n){e=!0,l=!!n&&n||new Error(n)}if(e)return this.unsubscribe(),l},t.prototype._unsubscribe=function(){var n=this.id,t=this.scheduler,e=t.actions,l=e.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==l&&e.splice(l,1),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null},t}(function(n){function t(t,e){return n.call(this)||this}return r(t,n),t.prototype.schedule=function(n,t){return void 0===t&&(t=0),this},t}(w)),Tm=function(){function n(t,e){void 0===e&&(e=n.now),this.SchedulerAction=t,this.now=e}return n.prototype.schedule=function(n,t,e){return void 0===t&&(t=0),new this.SchedulerAction(this,n).schedule(e,t)},n.now=function(){return Date.now()},n}(),km=new(function(n){function t(e,l){void 0===l&&(l=Tm.now);var r=n.call(this,e,function(){return t.delegate&&t.delegate!==r?t.delegate.now():l()})||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return r(t,n),t.prototype.schedule=function(e,l,r){return void 0===l&&(l=0),t.delegate&&t.delegate!==this?t.delegate.schedule(e,l,r):n.prototype.schedule.call(this,e,l,r)},t.prototype.flush=function(n){var t=this.actions;if(this.active)t.push(n);else{var e;this.active=!0;do{if(e=n.execute(n.state,n.delay))break}while(n=t.shift());if(this.active=!1,e){for(;n=t.shift();)n.unsubscribe();throw e}}},t}(Tm))(Sm),xm=function(){function n(n,t){this.dueTime=n,this.scheduler=t}return n.prototype.call=function(n,t){return t.subscribe(new Em(n,this.dueTime,this.scheduler))},n}(),Em=function(n){function t(t,e,l){var r=n.call(this,t)||this;return r.dueTime=e,r.scheduler=l,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return r(t,n),t.prototype._next=function(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Im,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var n=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}},t.prototype.clearDebounce=function(){var n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)},t}(I);function Im(n){n.debouncedNext()}var Rm=function(){function n(n,t){this._ngZone=n,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._unregisterGlobalListeners=function(){},this._monitoredElementCount=0}return n.prototype.monitor=function(n,t){var e=this;if(void 0===t&&(t=!1),!this._platform.isBrowser)return za(null);if(this._elementInfo.has(n)){var l=this._elementInfo.get(n);return l.checkChildren=t,l.subject.asObservable()}var r={unlisten:function(){},checkChildren:t,subject:new G};this._elementInfo.set(n,r),this._incrementMonitoredElementCount();var o=function(t){return e._onFocus(t,n)},i=function(t){return e._onBlur(t,n)};return this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",o,!0),n.addEventListener("blur",i,!0)}),r.unlisten=function(){n.removeEventListener("focus",o,!0),n.removeEventListener("blur",i,!0)},r.subject.asObservable()},n.prototype.stopMonitoring=function(n){var t=this._elementInfo.get(n);t&&(t.unlisten(),t.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._decrementMonitoredElementCount())},n.prototype.focusVia=function(n,t,e){this._setOriginForCurrentEventQueue(t),"function"==typeof n.focus&&n.focus(e)},n.prototype.ngOnDestroy=function(){var n=this;this._elementInfo.forEach(function(t,e){return n.stopMonitoring(e)})},n.prototype._registerGlobalListeners=function(){var n=this;if(this._platform.isBrowser){var t=function(){n._lastTouchTarget=null,n._setOriginForCurrentEventQueue("keyboard")},e=function(){n._lastTouchTarget||n._setOriginForCurrentEventQueue("mouse")},l=function(t){null!=n._touchTimeoutId&&clearTimeout(n._touchTimeoutId),n._lastTouchTarget=t.target,n._touchTimeoutId=setTimeout(function(){return n._lastTouchTarget=null},650)},r=function(){n._windowFocused=!0,n._windowFocusTimeoutId=setTimeout(function(){return n._windowFocused=!1})};this._ngZone.runOutsideAngular(function(){document.addEventListener("keydown",t,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",l,!wm()||{passive:!0,capture:!0}),window.addEventListener("focus",r)}),this._unregisterGlobalListeners=function(){document.removeEventListener("keydown",t,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("touchstart",l,!wm()||{passive:!0,capture:!0}),window.removeEventListener("focus",r),clearTimeout(n._windowFocusTimeoutId),clearTimeout(n._touchTimeoutId),clearTimeout(n._originTimeoutId)}}},n.prototype._toggleClass=function(n,t,e){e?n.classList.add(t):n.classList.remove(t)},n.prototype._setClasses=function(n,t){this._elementInfo.get(n)&&(this._toggleClass(n,"cdk-focused",!!t),this._toggleClass(n,"cdk-touch-focused","touch"===t),this._toggleClass(n,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(n,"cdk-mouse-focused","mouse"===t),this._toggleClass(n,"cdk-program-focused","program"===t))},n.prototype._setOriginForCurrentEventQueue=function(n){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=n,t._originTimeoutId=setTimeout(function(){return t._origin=null},1)})},n.prototype._wasCausedByTouch=function(n){var t=n.target;return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))},n.prototype._onFocus=function(n,t){var e=this._elementInfo.get(t);if(e&&(e.checkChildren||t===n.target)){var l=this._origin;l||(l=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(n)?"touch":"program"),this._setClasses(t,l),this._emitOrigin(e.subject,l),this._lastFocusOrigin=l}},n.prototype._onBlur=function(n,t){var e=this._elementInfo.get(t);!e||e.checkChildren&&n.relatedTarget instanceof Node&&t.contains(n.relatedTarget)||(this._setClasses(t),this._emitOrigin(e.subject,null))},n.prototype._emitOrigin=function(n,t){this._ngZone.run(function(){return n.next(t)})},n.prototype._incrementMonitoredElementCount=function(){1==++this._monitoredElementCount&&this._registerGlobalListeners()},n.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(this._unregisterGlobalListeners(),this._unregisterGlobalListeners=function(){})},n.ngInjectableDef=_n({factory:function(){return new n(ft(de),ft(_m))},token:n,providedIn:"root"}),n}(),Pm=new wn("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Om=function(){function n(n){this._sanityChecksEnabled=n,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 n.prototype._areChecksEnabled=function(){return this._sanityChecksEnabled&&Ee()&&!this._isTestEnv()},n.prototype._isTestEnv=function(){return this._window&&(this._window.__karma__||this._window.jasmine)},n.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.")},n.prototype._checkThemeIsPresent=function(){if(this._document&&this._document.body&&"function"==typeof getComputedStyle){var n=this._document.createElement("div");n.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(n);var t=getComputedStyle(n);t&&"none"!==t.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(n)}},n.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)},n}();function Dm(n){return function(n){function t(){for(var t=[],e=0;e1?this.rowCount+n-1:this.rowCount},enumerable:!0,configurable:!0}),n.prototype._trackTile=function(n){var t=this._findMatchingGap(n.colspan);return this._markTilePosition(t,n),this.columnIndex=t+n.colspan,new Wm(this.rowIndex,t)},n.prototype._findMatchingGap=function(n){if(n>this.tracker.length)throw Error("mat-grid-list: tile with colspan "+n+' is wider than grid with cols="'+this.tracker.length+'".');var t=-1,e=-1;do{this.columnIndex+n>this.tracker.length?this._nextRow():-1!=(t=this.tracker.indexOf(0,this.columnIndex))?(e=this._findGapEndIndex(t),this.columnIndex=t+1):this._nextRow()}while(e-t')},n.prototype._checkRowHeight=function(){this._rowHeight||this._setTileStyler("1:1")},n.prototype._setTileStyler=function(n){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===n?new $m:n&&n.indexOf(":")>-1?new Qm(n):new Km(n)},n.prototype._layoutTiles=function(){var n=this,t=new qm(this.cols,this._tiles);this._tileStyler.init(this.gutterSize,t,this.cols,this._dir?this._dir.value:"ltr"),this._tiles.forEach(function(e,l){var r=t.positions[l];n._tileStyler.setStyle(e,r.row,r.col)}),this._setListStyle(this._tileStyler.getComputedHeight())},n.prototype._setListStyle=function(n){n&&(this._element.nativeElement.style[n[0]]=n[1])},n}(),ny=function(){},ty=new wn("cdk-dir-doc",{providedIn:"root",factory:function(){return ft(Ts)}}),ey=function(){function n(n){if(this.value="ltr",this.change=new pe,n){var t=(n.body?n.body.dir:null)||(n.documentElement?n.documentElement.dir:null);this.value="ltr"===t||"rtl"===t?t:"ltr"}}return n.prototype.ngOnDestroy=function(){this.change.complete()},n.ngInjectableDef=_n({factory:function(){return new n(ft(ty,8))},token:n,providedIn:"root"}),n}(),ly=function(){},ry=hr({encapsulation:2,styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-footer,.mat-grid-tile .mat-grid-tile-header{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-footer>*,.mat-grid-tile .mat-grid-tile-header>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-tile-footer.mat-2-line,.mat-grid-tile .mat-grid-tile-header.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}"],data:{}});function oy(n){return ri(2,[(n()(),Fr(0,0,null,null,1,"div",[],null,null,null,null,null)),Jo(null,0)],null,null)}var iy=hr({encapsulation:2,styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-footer,.mat-grid-tile .mat-grid-tile-header{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-footer>*,.mat-grid-tile .mat-grid-tile-header>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-tile-footer.mat-2-line,.mat-grid-tile .mat-grid-tile-header.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}"],data:{}});function uy(n){return ri(2,[(n()(),Fr(0,0,null,null,1,"figure",[["class","mat-figure"]],null,null,null,null,null)),Jo(null,0)],null,null)}var ay=function(){},sy=function(){},cy=function(){},hy=function(){},py=function(){},dy=hr({encapsulation:2,styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:block;position:relative;padding:24px;border-radius:2px}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.mat-card.mat-card-flat{box-shadow:none}@media screen and (-ms-high-contrast:active){.mat-card{outline:solid 1px}}.mat-card-actions,.mat-card-content,.mat-card-subtitle,.mat-card-title{display:block;margin-bottom:16px}.mat-card-actions{margin-left:-16px;margin-right:-16px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 48px);margin:0 -24px 16px -24px}.mat-card-footer{display:block;margin:0 -24px -24px -24px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button{margin:0 4px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header-text{margin:0 8px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0}.mat-card-lg-image,.mat-card-md-image,.mat-card-sm-image,.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px 0}.mat-card-title-group{display:flex;justify-content:space-between;margin:0 -8px}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}@media (max-width:599px){.mat-card{padding:24px 16px}.mat-card-actions{margin-left:-8px;margin-right:-8px}.mat-card-image{width:calc(100% + 32px);margin:16px -16px}.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}.mat-card-header{margin:-8px 0 0 0}.mat-card-footer{margin-left:-16px;margin-right:-16px}}.mat-card-content>:first-child,.mat-card>:first-child{margin-top:0}.mat-card-content>:last-child:not(.mat-card-footer),.mat-card>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-24px}.mat-card>.mat-card-actions:last-child{margin-bottom:-16px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child{margin-left:0;margin-right:0}.mat-card-subtitle:not(:first-child),.mat-card-title:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],data:{}});function fy(n){return ri(2,[Jo(null,0),Jo(null,1)],null,null)}var gy=hr({encapsulation:2,styles:[],data:{}});function my(n){return ri(2,[Jo(null,0),(n()(),Fr(1,0,null,null,1,"div",[["class","mat-card-header-text"]],null,null,null,null,null)),Jo(null,1),Jo(null,2)],null,null)}var yy=function(){function n(n){this.http=n,this.url="https://api.saltyzoo.com/v4/images/"}return n.prototype.toggleHidden=function(n){var t={};return this.isLoggedOn()&&(t={headers:{user:sessionStorage.getItem("user"),Auth:sessionStorage.getItem("Auth")}}),console.log(JSON.stringify(n,null,2)),n.isHidden={BOOL:!n.isHidden||!n.isHidden.BOOL},console.log(JSON.stringify(n,null,2)),this.http.put(this.url+n.page.S+"/"+n.name.S,n,t).pipe(Ba(function(n){console.log("hidden flag toggled"+JSON.stringify(n,null,2))}),Za(this.handleError("toggleHidden",[])))},n.prototype.isLoggedOn=function(){return null!=sessionStorage.getItem("Auth")&&""!=sessionStorage.getItem("Auth")},n.prototype.updateDescription=function(n){var t={};return this.isLoggedOn()&&(t={headers:{user:sessionStorage.getItem("user"),Auth:sessionStorage.getItem("Auth")}}),console.log(JSON.stringify(n,null,2)),this.http.put(this.url+n.page.S+"/"+n.name.S,n,t).pipe(Ba(function(n){console.log("description updated "+JSON.stringify(n,null,2))}),Za(this.handleError("updateDescription",[])))},n.prototype.handleError=function(n,t){return void 0===n&&(n="operation"),function(n){return console.error(n),za(t)}},n.ngInjectableDef=_n({factory:function(){return new n(ft(qs))},token:n,providedIn:"root"}),n}(),vy=function(){function n(n,t,e,l,r){this.pagesService=n,this.location=t,this.route=e,this.imagesService=l,this.router=r}return n.prototype.ngOnInit=function(){this.getPages()},n.prototype.authString=function(n,t){return this.isLoggedOn()&&n.isHidden&&n.isHidden.BOOL?t+"user="+sessionStorage.getItem("user")+"&Auth="+encodeURIComponent(sessionStorage.getItem("Auth")):""},n.prototype.imageURL=function(n,t){return void 0===t&&(t=""),"tn"==t?"https://api.saltyzoo.com/v4/"+n.page.S+"/"+n.name.S+"?tn"+this.authString(n,"&"):"https://api.saltyzoo.com/v4/"+n.page.S+"/"+n.name.S+this.authString(n,"?")},n.prototype.isLoggedOn=function(){return null!=sessionStorage.getItem("Auth")&&""!=sessionStorage.getItem("Auth")},n.prototype.saveDescription=function(n){console.log("newDesc = "+JSON.stringify(n.description,null,2)),this.imagesService.updateDescription(n).subscribe(function(n){console.log("save image description done")})},n.prototype.savePageDescription=function(n){console.log("newDesc = "+JSON.stringify(n.description)),this.pagesService.updateDescription(n).subscribe(function(n){console.log("save page description done")})},n.prototype.getPages=function(){var n=this,t=this.pagesService.extractPageName(this.route.snapshot.paramMap,"id","");t=this.router.url.split("/albums/")[1],console.log("pageName = "+t),this.pagesService.getImages(t).subscribe(function(t){n.imagesLoaded(t)})},n.prototype.imagesLoaded=function(n){this.page=n,n.description||(n.description={S:""}),this.images=n.images.sort(this.imageNameCompare),this.images.forEach(function(n){n.description||(n.description={S:""})}),delete n.images},n.prototype.imageNameCompare=function(n,t){return n.name.St.name.S?1:0},n.prototype.goBack=function(){this.location.back()},n.prototype.toggle=function(n){this.imagesService.toggleHidden(n).subscribe(function(n){console.log("toggle done")})},n.prototype.class=function(n){return n.isHidden&&n.isHidden.BOOL?"hidden":"normal"},n.prototype.toggleButtonLabel=function(n){return n.isHidden&&n.isHidden.BOOL?"show":"hide"},n}(),by=hr({encapsulation:0,styles:[["table[_ngcontent-%COMP%]{width:100%}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{color:#c9c206;text-decoration:none}.normal[_ngcontent-%COMP%]{max-width:350px}.hidden[_ngcontent-%COMP%]{max-width:350px;background:red;color:#fff}.example-header-image[_ngcontent-%COMP%]{background-size:cover}.aligncenter[_ngcontent-%COMP%]{text-align:center}"]],data:{}});function _y(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"h2",[],null,null,null,null,null)),(n()(),ti(1,null,["",""]))],null,function(n,t){n(t,1,0,t.component.page.page.S)})}function wy(n){return ri(0,[(n()(),Fr(0,0,null,null,8,"span",[],null,null,null,null,null)),(n()(),Fr(1,0,null,null,5,"input",[["placeholder","description"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,r=n.component;return"input"===t&&(l=!1!==yo(n,2)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,2).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,2)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,2)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.page.description.S=e)&&l),l},null,null)),Po(2,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(4,671744,null,0,Rg,[[8,null],[8,null],[8,null],[6,Zf]],{model:[0,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(6,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(7,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0,r=n.component;return"click"===t&&(l=!1!==r.savePageDescription(r.page)&&l),l},null,null)),(n()(),ti(-1,null,["Save"]))],function(n,t){n(t,4,0,t.component.page.description.S)},function(n,t){n(t,1,0,yo(t,6).ngClassUntouched,yo(t,6).ngClassTouched,yo(t,6).ngClassPristine,yo(t,6).ngClassDirty,yo(t,6).ngClassValid,yo(t,6).ngClassInvalid,yo(t,6).ngClassPending)})}function Cy(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),Fr(1,0,null,null,1,"h3",[],null,null,null,null,null)),(n()(),ti(2,null,["",""]))],null,function(n,t){n(t,2,0,t.component.page.description.S)})}function Sy(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"p",[["class","aligncenter"]],null,null,null,null,null)),(n()(),Fr(1,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.toggle(n.parent.context.$implicit)&&l),l},null,null)),(n()(),ti(2,null,["",""]))],null,function(n,t){n(t,2,0,t.component.toggleButtonLabel(t.parent.context.$implicit))})}function Ty(n){return ri(0,[(n()(),Fr(0,0,null,null,8,"p",[],null,null,null,null,null)),(n()(),Fr(1,0,null,null,5,"input",[["placeholder","description"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0;return"input"===t&&(l=!1!==yo(n,2)._handleInput(e.target.value)&&l),"blur"===t&&(l=!1!==yo(n,2).onTouched()&&l),"compositionstart"===t&&(l=!1!==yo(n,2)._compositionStart()&&l),"compositionend"===t&&(l=!1!==yo(n,2)._compositionEnd(e.target.value)&&l),"ngModelChange"===t&&(l=!1!==(n.parent.context.$implicit.description.S=e)&&l),l},null,null)),Po(2,16384,null,0,$f,[Le,Ve,[2,Qf]],null,null),Oo(1024,null,Zf,function(n){return[n]},[$f]),Po(4,671744,null,0,Rg,[[8,null],[8,null],[8,null],[6,Zf]],{model:[0,"model"]},{update:"ngModelChange"}),Oo(2048,null,tg,null,[Rg]),Po(6,16384,null,0,gg,[[4,tg]],null,null),(n()(),Fr(7,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.saveDescription(n.parent.context.$implicit)&&l),l},null,null)),(n()(),ti(-1,null,["Save"]))],function(n,t){n(t,4,0,t.parent.context.$implicit.description.S)},function(n,t){n(t,1,0,yo(t,6).ngClassUntouched,yo(t,6).ngClassTouched,yo(t,6).ngClassPristine,yo(t,6).ngClassDirty,yo(t,6).ngClassValid,yo(t,6).ngClassInvalid,yo(t,6).ngClassPending)})}function ky(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"p",[],null,null,null,null,null)),(n()(),ti(1,null,[" "," "]))],null,function(n,t){n(t,1,0,t.parent.context.$implicit.description.S)})}function xy(n){return ri(0,[(n()(),Fr(0,0,null,null,20,"mat-grid-tile",[["class","mat-grid-tile"]],[[4,"background",null]],null,null,uy,iy)),Po(1,49152,[[1,4]],0,Bm,[Ve],{rowspan:[0,"rowspan"],colspan:[1,"colspan"]},null),(n()(),Fr(2,0,null,0,18,"mat-card",[["class","mat-card"]],[[8,"className",0]],null,null,fy,dy)),Po(3,49152,null,0,cy,[],null,null),(n()(),Fr(4,0,null,0,7,"mat-card-header",[["class","mat-card-header"]],null,null,null,my,gy)),Po(5,49152,null,0,hy,[],null,null),(n()(),Fr(6,0,null,1,5,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),Po(7,16384,null,0,sy,[],null,null),(n()(),ti(8,null,[""," "])),(n()(),Fr(9,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Gr(16777216,null,null,1,null,Sy)),Po(11,16384,null,0,bs,[We,qe],{ngIf:[0,"ngIf"]},null),(n()(),Fr(12,0,null,0,2,"p",[["class","aligncenter"]],null,null,null,null,null)),(n()(),Fr(13,0,null,null,1,"a",[],[[8,"href",4]],null,null,null,null)),(n()(),Fr(14,0,null,null,0,"img",[],[[8,"src",4],[8,"alt",0]],null,null,null,null)),(n()(),Fr(15,0,null,0,5,"mat-card-content",[["class","mat-card-content"]],null,null,null,null,null)),Po(16,16384,null,0,ay,[],null,null),(n()(),Gr(16777216,null,null,1,null,Ty)),Po(18,16384,null,0,bs,[We,qe],{ngIf:[0,"ngIf"]},null),(n()(),Gr(16777216,null,null,1,null,ky)),Po(20,16384,null,0,bs,[We,qe],{ngIf:[0,"ngIf"]},null)],function(n,t){var e=t.component;n(t,1,0,1,1),n(t,11,0,e.isLoggedOn()),n(t,18,0,e.isLoggedOn()),n(t,20,0,!e.isLoggedOn())},function(n,t){var e=t.component;n(t,0,0,e.lightblue),n(t,2,0,Vr(1,"",e.class(t.context.$implicit),"")),n(t,8,0,t.context.$implicit.name.S),n(t,13,0,Vr(1,"",e.imageURL(t.context.$implicit),"")),n(t,14,0,Vr(1,"",e.imageURL(t.context.$implicit,"tn"),""),Vr(1,"",t.context.$implicit,""))})}function Ey(n){return ri(0,[(n()(),Fr(0,0,null,null,6,"div",[["align","center"]],null,null,null,null,null)),(n()(),Gr(16777216,null,null,1,null,_y)),Po(2,16384,null,0,bs,[We,qe],{ngIf:[0,"ngIf"]},null),(n()(),Gr(16777216,null,null,1,null,wy)),Po(4,16384,null,0,bs,[We,qe],{ngIf:[0,"ngIf"]},null),(n()(),Gr(16777216,null,null,1,null,Cy)),Po(6,16384,null,0,bs,[We,qe],{ngIf:[0,"ngIf"]},null),(n()(),Fr(7,0,null,null,4,"mat-grid-list",[["class","mat-grid-list"],["cols","3"],["gutterSize","10px"],["rowHeight","350px"]],null,null,null,oy,ry)),Po(8,2211840,null,1,Ym,[Ve,[2,ey]],{cols:[0,"cols"],gutterSize:[1,"gutterSize"],rowHeight:[2,"rowHeight"]},null),Wo(603979776,1,{_tiles:1}),(n()(),Gr(16777216,null,0,1,null,xy)),Po(11,278528,null,0,ys,[We,qe,fl],{ngForOf:[0,"ngForOf"]},null)],function(n,t){var e=t.component;n(t,2,0,e.page&&e.page.page),n(t,4,0,e.isLoggedOn()&&e.page&&e.page.description),n(t,6,0,!e.isLoggedOn()&&e.page&&e.page.description),n(t,8,0,"3","10px","350px"),n(t,11,0,e.images)},null)}var Iy=oo("app-pages",vy,function(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"app-pages",[],null,null,null,Ey,by)),Po(1,114688,null,0,vy,[uc,rs,id,yy,Wd],null,null)],function(n,t){n(t,1,0)},null)},{},{},[]),Ry=function(){},Py=function(){function n(n,t,e){void 0===n&&(n=!1),void 0===e&&(e=!0);var l=this;this._multiple=n,this._emitChanges=e,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=this._emitChanges?new G:null,this.onChange=this.changed,t&&t.length&&(n?t.forEach(function(n){return l._markSelected(n)}):this._markSelected(t[0]),this._selectedToEmit.length=0)}return Object.defineProperty(n.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),n.prototype.select=function(){for(var n=this,t=[],e=0;e1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")},n}();function Oy(n){return function(t){return t.lift(new Dy(n))}}var Dy=function(){function n(n){this.notifier=n}return n.prototype.call=function(n,t){var e=new Ay(n),l=X(e,this.notifier);return l&&!e.seenValue?(e.add(l),t.subscribe(e)):e},n}(),Ay=function(n){function t(t){var e=n.call(this,t)||this;return e.seenValue=!1,e}return r(t,n),t.prototype.notifyNext=function(n,t,e,l,r){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(Y);function Ny(n){return function(n){function t(){for(var t=[],e=0;e0;r--)t[r]&&(e[r]=l,l+=n[r]);return e},n}(),$y=function(n,t){this.viewContainer=n,this.elementRef=t},Jy=function(n,t){this.viewContainer=n,this.elementRef=t},Xy=function(n,t){this.viewContainer=n,this.elementRef=t},Yy=function(){function n(n,t,e,l,r,o,i){this._differs=n,this._changeDetectorRef=t,this._elementRef=e,this._dir=r,this._platform=i,this._onDestroy=new G,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new hc({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return Object.defineProperty(n.prototype,"trackBy",{get:function(){return this._trackByFn},set:function(n){Ee()&&null!=n&&"function"!=typeof n&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(n)+"."),this._trackByFn=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataSource",{get:function(){return this._dataSource},set:function(n){this._dataSource!==n&&this._switchDataSource(n)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"multiTemplateDataRows",{get:function(){return this._multiTemplateDataRows},set:function(n){this._multiTemplateDataRows=gm(n),this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){var n=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,e){return n.trackBy?n.trackBy(e.dataIndex,e.data):e})},n.prototype.ngAfterContentChecked=function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()},n.prototype.ngOnDestroy=function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),this.dataSource instanceof Ry&&this.dataSource.disconnect(this)},n.prototype.renderRows=function(){var n=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var e=this._rowOutlet.viewContainer;t.forEachOperation(function(t,l,r){if(null==t.previousIndex)n._insertRow(t.item,r);else if(null==r)e.remove(l);else{var o=e.get(l);e.move(o,r)}}),this._updateRowIndexContext(),t.forEachIdentityChange(function(n){e.get(n.currentIndex).context.$implicit=n.item.data}),this.updateStickyColumnStyles()}},n.prototype.setHeaderRowDef=function(n){this._customHeaderRowDefs=new Set([n]),this._headerRowDefChanged=!0},n.prototype.setFooterRowDef=function(n){this._customFooterRowDefs=new Set([n]),this._footerRowDefChanged=!0},n.prototype.addColumnDef=function(n){this._customColumnDefs.add(n)},n.prototype.removeColumnDef=function(n){this._customColumnDefs.delete(n)},n.prototype.addRowDef=function(n){this._customRowDefs.add(n)},n.prototype.removeRowDef=function(n){this._customRowDefs.delete(n)},n.prototype.addHeaderRowDef=function(n){this._customHeaderRowDefs.add(n),this._headerRowDefChanged=!0},n.prototype.removeHeaderRowDef=function(n){this._customHeaderRowDefs.delete(n),this._headerRowDefChanged=!0},n.prototype.addFooterRowDef=function(n){this._customFooterRowDefs.add(n),this._footerRowDefChanged=!0},n.prototype.removeFooterRowDef=function(n){this._customFooterRowDefs.delete(n),this._footerRowDefChanged=!0},n.prototype.updateStickyHeaderRowStyles=function(){var n=this._getRenderedRows(this._headerRowOutlet);this._stickyStyler.clearStickyPositioning(n,["top"]);var t=this._headerRowDefs.map(function(n){return n.sticky});this._stickyStyler.stickRows(n,t,"top"),this._headerRowDefs.forEach(function(n){return n.resetStickyChanged()})},n.prototype.updateStickyFooterRowStyles=function(){var n=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning(n,["bottom"]);var t=this._footerRowDefs.map(function(n){return n.sticky});this._stickyStyler.stickRows(n,t,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,t),this._footerRowDefs.forEach(function(n){return n.resetStickyChanged()})},n.prototype.updateStickyColumnStyles=function(){var n=this,t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),l=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning(t.concat(e,l),["left","right"]),t.forEach(function(t,e){n._addStickyColumnStyles([t],n._headerRowDefs[e])}),this._rowDefs.forEach(function(t){for(var l=[],r=0;r1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=n[0]},n.prototype._renderUpdatedColumns=function(){var n=function(n,t){return n||!!t.getColumnsDiff()};this._rowDefs.reduce(n,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(n,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(n,!1)&&this._forceRenderFooterRows()},n.prototype._switchDataSource=function(n){this._data=[],this.dataSource instanceof Ry&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),n||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=n},n.prototype._observeRenderChanges=function(){var n=this;if(this.dataSource){var t;if(this.dataSource.connect instanceof Function?t=this.dataSource.connect(this):this.dataSource instanceof N?t=this.dataSource:Array.isArray(this.dataSource)&&(t=za(this.dataSource)),void 0===t)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=t.pipe(Oy(this._onDestroy)).subscribe(function(t){n._data=t||[],n.renderRows()})}},n.prototype._forceRenderHeaderRows=function(){var n=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,e){return n._renderRow(n._headerRowOutlet,t,e)}),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()},n.prototype._forceRenderFooterRows=function(){var n=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,e){return n._renderRow(n._footerRowOutlet,t,e)}),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()},n.prototype._addStickyColumnStyles=function(n,t){var e=this,l=Array.from(t.columns||[]).map(function(n){return e._columnDefsByName.get(n)}),r=l.map(function(n){return n.sticky}),o=l.map(function(n){return n.stickyEnd});this._stickyStyler.updateStickyColumns(n,r,o)},n.prototype._getRenderedRows=function(n){for(var t=[],e=0;ei?u=1:o0)){var e=Math.ceil(t.paginator.length/t.paginator.pageSize)-1||0;t.paginator.pageIndex=Math.min(t.paginator.pageIndex,e)}})},t.prototype.connect=function(){return this._renderData},t.prototype.disconnect=function(){},t}(Ry),wv=new wn("mat-checkbox-click-action"),Cv=0,Sv=function(){var n={Init:0,Checked:1,Unchecked:2,Indeterminate:3};return n[n.Init]="Init",n[n.Checked]="Checked",n[n.Unchecked]="Unchecked",n[n.Indeterminate]="Indeterminate",n}(),Tv=function(n){function t(t,e,l,r,o,i,u){var a=n.call(this,t)||this;return a._changeDetectorRef=e,a._focusMonitor=l,a._ngZone=r,a._clickAction=i,a._animationMode=u,a.ariaLabel="",a.ariaLabelledby=null,a._uniqueId="mat-checkbox-"+ ++Cv,a.id=a._uniqueId,a.labelPosition="after",a.name=null,a.change=new pe,a.indeterminateChange=new pe,a._onTouched=function(){},a._currentAnimationClass="",a._currentCheckState=Sv.Init,a._controlValueAccessorChangeFn=function(){},a._checked=!1,a._disabled=!1,a._indeterminate=!1,a.tabIndex=parseInt(o)||0,a}return r(t,n),Object.defineProperty(t.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(n){this._required=gm(n)},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var n=this;this._focusMonitor.monitor(this._inputElement.nativeElement).subscribe(function(t){return n._onInputFocusChange(t)})},t.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._inputElement.nativeElement)},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(n){n!=this.checked&&(this._checked=n,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(n){n!=this.disabled&&(this._disabled=n,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indeterminate",{get:function(){return this._indeterminate},set:function(n){var t=n!=this._indeterminate;this._indeterminate=n,t&&(this._transitionCheckState(this._indeterminate?Sv.Indeterminate:this.checked?Sv.Checked:Sv.Unchecked),this.indeterminateChange.emit(this._indeterminate))},enumerable:!0,configurable:!0}),t.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},t.prototype._onLabelTextChange=function(){this._changeDetectorRef.markForCheck()},t.prototype.writeValue=function(n){this.checked=!!n},t.prototype.registerOnChange=function(n){this._controlValueAccessorChangeFn=n},t.prototype.registerOnTouched=function(n){this._onTouched=n},t.prototype.setDisabledState=function(n){this.disabled=n},t.prototype._getAriaChecked=function(){return this.checked?"true":this.indeterminate?"mixed":"false"},t.prototype._transitionCheckState=function(n){var t=this._currentCheckState,e=this._elementRef.nativeElement;if(t!==n&&(this._currentAnimationClass.length>0&&e.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,n),this._currentCheckState=n,this._currentAnimationClass.length>0)){e.classList.add(this._currentAnimationClass);var l=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){e.classList.remove(l)},1e3)})}},t.prototype._emitChangeEvent=function(){var n=new function(){};n.source=this,n.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(n)},t.prototype._onInputFocusChange=function(n){var t=this;this._focusRipple||"keyboard"!==n?n||(this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null),Promise.resolve().then(function(){return t._onTouched()})):this._focusRipple=this.ripple.launch(0,0,{persistent:!0})},t.prototype.toggle=function(){this.checked=!this.checked},t.prototype._onInputClick=function(n){var t=this;n.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(function(){t._indeterminate=!1,t.indeterminateChange.emit(t._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?Sv.Checked:Sv.Unchecked),this._emitChangeEvent())},t.prototype.focus=function(){this._focusMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},t.prototype._onInteractionEvent=function(n){n.stopPropagation()},t.prototype._getAnimationClassForCheckStateTransition=function(n,t){if("NoopAnimations"===this._animationMode)return"";var e="";switch(n){case Sv.Init:if(t===Sv.Checked)e="unchecked-checked";else{if(t!=Sv.Indeterminate)return"";e="unchecked-indeterminate"}break;case Sv.Unchecked:e=t===Sv.Checked?"unchecked-checked":"unchecked-indeterminate";break;case Sv.Checked:e=t===Sv.Unchecked?"checked-unchecked":"checked-indeterminate";break;case Sv.Indeterminate:e=t===Sv.Checked?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+e},t}(Nm(Am(function(n){return function(n){function t(){for(var t=[],e=0;e0&&c&&c>2015&&c<2020&&(g.getTime()>i&&(a=r.push({start:g,startLine:u})),a&&(r[a-1].end=g,r[a-1].length=g.getTime()-r[a-1].start.getTime(),e(r[a-1],d,"maxIas"),e(r[a-1],h,"maxGroundSpeed"),e(r[a-1],p,"maxAltitude"),r[a-1].endLine=u),i=new Date(Date.UTC(c,parseInt(s[1])-1,parseInt(s[2]),parseInt(l[0])+t.hours,parseInt(l[1])+t.minutes,parseInt(l[2])+t.seconds)).getTime())}),r.forEach(function(n){n.length=l(n.length)}),{lines:o,flights:r}},n.prototype.ifMaxSet=function(n,t,e){if(t){var l=parseInt(t);(!n[e]||n[e]&&n[e]36e5){var e=Math.round(n/1e3/60/60);e<10&&(t="0"),t+=e+":",n-=1e3*e*60*60}else t="00:";if(n>6e4){var l=Math.round(n/1e3/60);l<10&&(t+="0"),t+=l+":",n-=1e3*l*60}else t+="00:";var r=Math.round(n/1e3);return r<10&&(t+="0"),t+""+r},n.prototype.ngOnInit=function(){},n.prototype.isAllSelected=function(){return this.selection.selected.length===this.dataSource.data.length},n.prototype.masterToggle=function(){var n=this;this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(function(t){return n.selection.select(t)})},n.prototype.saveFiles=function(){var n=this;console.log("save files"),this.selection.selected.forEach(function(t){n.saveFile(t,"cloudAhoy"),n.saveFile(t,"myFlightLog")})},n.prototype.saveFile=function(n,t){console.log(JSON.stringify(n,null,2));var e=this.formatFileName(n.start,t);console.log("filename = "+e);var l=document.createElement("a");switch(l.setAttribute("download",e),t){case"cloudAhoy":l.href=this.makeTextFile(this.makeCloudAhoyString(n.startLine,n.endLine));break;case"myFlightLog":l.href=this.makeTextFile(this.makeMyFlightLogString(n.startLine,n.endLine))}document.body.appendChild(l),window.requestAnimationFrame(function(){var n=new MouseEvent("click");l.dispatchEvent(n),document.body.removeChild(l)})},n.prototype.makeMyFlightLogString=function(n,t){var e="";e+=this.lines[0]+"\n",e+=this.lines[2]+"\n";for(var l=n;l<=t;l++)e+=this.lines[l]+"\n";return e},n.prototype.makeCloudAhoyString=function(n,t){for(var e="",l=0;l<3;l++)e+=this.lines[l]+"\n";for(l=n;l<=t;l++)e+=this.lines[l]+"\n";return e},n.prototype.makeTextFile=function(n){var t=new Blob([n],{type:"text/plain"});return window.URL.revokeObjectURL(void 0),window.URL.createObjectURL(t)},n.prototype.formatFileName=function(n,t){var e="g5_"+n.getFullYear();return e+=this.pad(n.getMonth()+1),e+=this.pad(n.getDate())+"-",e+=this.pad(n.getHours()),e+=this.pad(n.getMinutes())+"-",(e+=(new Date).toString().match(/([A-Z]+[\+-][0-9]+)/)[1])+"_"+t+".csv"},n.prototype.pad=function(n){return(n<10?"0":"")+n},n}(),Fv=hr({encapsulation:0,styles:[[".mat-column-number[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:64px}.mat-elevation-z8[_ngcontent-%COMP%]{table-layout:auto;width:600px;text-align:center}"]],data:{}});function Uv(n){return ri(0,[(n()(),Fr(0,0,null,null,4,"th",[["class","mat-header-cell"],["mat-header-cell",""],["role","columnheader"]],null,null,null,null,null)),Po(1,16384,null,0,hv,[Ly,Ve],null,null),(n()(),Fr(2,0,null,null,2,"mat-checkbox",[["class","mat-checkbox"]],[[8,"id",0],[2,"mat-checkbox-indeterminate",null],[2,"mat-checkbox-checked",null],[2,"mat-checkbox-disabled",null],[2,"mat-checkbox-label-before",null],[2,"_mat-animation-noopable",null]],[[null,"change"]],function(n,t,e){var l=!0;return"change"===t&&(l=!1!==(e?n.component.masterToggle():null)&&l),l},Av,Dv)),Oo(5120,null,Zf,function(n){return[n]},[Tv]),Po(4,4374528,null,0,Tv,[Ve,Ze,Rm,de,[8,null],[2,wv],[2,Ov]],{checked:[0,"checked"],indeterminate:[1,"indeterminate"]},{change:"change"})],function(n,t){var e=t.component;n(t,4,0,e.selection.hasValue()&&e.isAllSelected(),e.selection.hasValue()&&!e.isAllSelected())},function(n,t){n(t,2,0,yo(t,4).id,yo(t,4).indeterminate,yo(t,4).checked,yo(t,4).disabled,"before"==yo(t,4).labelPosition,"NoopAnimations"===yo(t,4)._animationMode)})}function zv(n){return ri(0,[(n()(),Fr(0,0,null,null,4,"td",[["class","mat-cell"],["mat-cell",""],["role","gridcell"]],null,null,null,null,null)),Po(1,16384,null,0,pv,[Ly,Ve],null,null),(n()(),Fr(2,0,null,null,2,"mat-checkbox",[["class","mat-checkbox"]],[[8,"id",0],[2,"mat-checkbox-indeterminate",null],[2,"mat-checkbox-checked",null],[2,"mat-checkbox-disabled",null],[2,"mat-checkbox-label-before",null],[2,"_mat-animation-noopable",null]],[[null,"click"],[null,"change"]],function(n,t,e){var l=!0,r=n.component;return"click"===t&&(l=!1!==e.stopPropagation()&&l),"change"===t&&(l=!1!==(e?r.selection.toggle(n.context.$implicit):null)&&l),l},Av,Dv)),Oo(5120,null,Zf,function(n){return[n]},[Tv]),Po(4,4374528,null,0,Tv,[Ve,Ze,Rm,de,[8,null],[2,wv],[2,Ov]],{checked:[0,"checked"]},{change:"change"})],function(n,t){n(t,4,0,t.component.selection.isSelected(t.context.$implicit))},function(n,t){n(t,2,0,yo(t,4).id,yo(t,4).indeterminate,yo(t,4).checked,yo(t,4).disabled,"before"==yo(t,4).labelPosition,"NoopAnimations"===yo(t,4)._animationMode)})}function Bv(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"th",[["class","mat-header-cell"],["mat-header-cell",""],["role","columnheader"]],null,null,null,null,null)),Po(1,16384,null,0,hv,[Ly,Ve],null,null),(n()(),ti(-1,null,["Start Time"]))],null,null)}function qv(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"td",[["class","mat-cell"],["mat-cell",""],["role","gridcell"]],null,null,null,null,null)),Po(1,16384,null,0,pv,[Ly,Ve],null,null),(n()(),ti(2,null,[" "," "]))],null,function(n,t){n(t,2,0,t.context.$implicit.start.toString())})}function Wv(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"th",[["class","mat-header-cell"],["mat-header-cell",""],["role","columnheader"]],null,null,null,null,null)),Po(1,16384,null,0,hv,[Ly,Ve],null,null),(n()(),ti(-1,null,[" Length of Flight "]))],null,null)}function Zv(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"td",[["class","mat-cell"],["mat-cell",""],["role","gridcell"]],null,null,null,null,null)),Po(1,16384,null,0,pv,[Ly,Ve],null,null),(n()(),ti(2,null,[" "," "]))],null,function(n,t){n(t,2,0,t.context.$implicit.length)})}function Kv(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"th",[["class","mat-header-cell"],["mat-header-cell",""],["role","columnheader"]],null,null,null,null,null)),Po(1,16384,null,0,hv,[Ly,Ve],null,null),(n()(),ti(-1,null,[" Max IAS "]))],null,null)}function Qv(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"td",[["class","mat-cell"],["mat-cell",""],["role","gridcell"]],null,null,null,null,null)),Po(1,16384,null,0,pv,[Ly,Ve],null,null),(n()(),ti(2,null,[" "," "]))],null,function(n,t){n(t,2,0,t.context.$implicit.maxIas)})}function $v(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"th",[["class","mat-header-cell"],["mat-header-cell",""],["role","columnheader"]],null,null,null,null,null)),Po(1,16384,null,0,hv,[Ly,Ve],null,null),(n()(),ti(-1,null,[" Max Ground Speed "]))],null,null)}function Jv(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"td",[["class","mat-cell"],["mat-cell",""],["role","gridcell"]],null,null,null,null,null)),Po(1,16384,null,0,pv,[Ly,Ve],null,null),(n()(),ti(2,null,[" "," "]))],null,function(n,t){n(t,2,0,t.context.$implicit.maxGroundSpeed)})}function Xv(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"th",[["class","mat-header-cell"],["mat-header-cell",""],["role","columnheader"]],null,null,null,null,null)),Po(1,16384,null,0,hv,[Ly,Ve],null,null),(n()(),ti(-1,null,[" Max Altitude "]))],null,null)}function Yv(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"td",[["class","mat-cell"],["mat-cell",""],["role","gridcell"]],null,null,null,null,null)),Po(1,16384,null,0,pv,[Ly,Ve],null,null),(n()(),ti(2,null,[" "," "]))],null,function(n,t){n(t,2,0,t.context.$implicit.maxAltitude)})}function nb(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"th",[["class","mat-header-cell"],["mat-header-cell",""],["role","columnheader"]],null,null,null,null,null)),Po(1,16384,null,0,hv,[Ly,Ve],null,null),(n()(),ti(-1,null,[" Start Line "]))],null,null)}function tb(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"td",[["class","mat-cell"],["mat-cell",""],["role","gridcell"]],null,null,null,null,null)),Po(1,16384,null,0,pv,[Ly,Ve],null,null),(n()(),ti(2,null,[" "," "]))],null,function(n,t){n(t,2,0,t.context.$implicit.startLine)})}function eb(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"th",[["class","mat-header-cell"],["mat-header-cell",""],["role","columnheader"]],null,null,null,null,null)),Po(1,16384,null,0,hv,[Ly,Ve],null,null),(n()(),ti(-1,null,[" End Line "]))],null,null)}function lb(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"td",[["class","mat-cell"],["mat-cell",""],["role","gridcell"]],null,null,null,null,null)),Po(1,16384,null,0,pv,[Ly,Ve],null,null),(n()(),ti(2,null,[" "," "]))],null,function(n,t){n(t,2,0,t.context.$implicit.endLine)})}function rb(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"tr",[["class","mat-header-row"],["mat-header-row",""],["role","row"]],null,null,null,Lv,Hv)),Oo(6144,null,Wy,null,[mv]),Po(2,49152,null,0,mv,[],null,null)],null,null)}function ob(n){return ri(0,[(n()(),Fr(0,0,null,null,2,"tr",[["class","mat-row"],["mat-row",""],["role","row"]],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.selection.toggle(n.context.$implicit)&&l),l},jv,Vv)),Oo(6144,null,Zy,null,[yv]),Po(2,49152,null,0,yv,[],null,null)],null,null)}function ib(n){return ri(0,[(n()(),Fr(0,0,null,null,108,"table",[["class","mat-elevation-z8 mat-table"],["mat-table",""]],null,null,null,Mv,Nv)),Po(1,2342912,null,4,iv,[fl,Ze,Ve,[8,null],[2,ey],Ts,_m],{dataSource:[0,"dataSource"]},null),Wo(603979776,1,{_contentColumnDefs:1}),Wo(603979776,2,{_contentRowDefs:1}),Wo(603979776,3,{_contentHeaderRowDefs:1}),Wo(603979776,4,{_contentFooterRowDefs:1}),(n()(),Fr(6,0,null,null,11,null,null,null,null,null,null,null)),Po(7,16384,null,3,cv,[],{name:[0,"name"]},null),Wo(335544320,5,{cell:0}),Wo(335544320,6,{headerCell:0}),Wo(335544320,7,{footerCell:0}),Oo(2048,[[1,4]],Ly,null,[cv]),(n()(),Gr(0,null,null,2,null,Uv)),Po(13,16384,null,0,sv,[qe],null,null),Oo(2048,[[6,4]],Hy,null,[sv]),(n()(),Gr(0,null,null,2,null,zv)),Po(16,16384,null,0,av,[qe],null,null),Oo(2048,[[5,4]],My,null,[av]),(n()(),Fr(18,0,null,null,11,null,null,null,null,null,null,null)),Po(19,16384,null,3,cv,[],{name:[0,"name"]},null),Wo(335544320,8,{cell:0}),Wo(335544320,9,{headerCell:0}),Wo(335544320,10,{footerCell:0}),Oo(2048,[[1,4]],Ly,null,[cv]),(n()(),Gr(0,null,null,2,null,Bv)),Po(25,16384,null,0,sv,[qe],null,null),Oo(2048,[[9,4]],Hy,null,[sv]),(n()(),Gr(0,null,null,2,null,qv)),Po(28,16384,null,0,av,[qe],null,null),Oo(2048,[[8,4]],My,null,[av]),(n()(),Fr(30,0,null,null,11,null,null,null,null,null,null,null)),Po(31,16384,null,3,cv,[],{name:[0,"name"]},null),Wo(335544320,11,{cell:0}),Wo(335544320,12,{headerCell:0}),Wo(335544320,13,{footerCell:0}),Oo(2048,[[1,4]],Ly,null,[cv]),(n()(),Gr(0,null,null,2,null,Wv)),Po(37,16384,null,0,sv,[qe],null,null),Oo(2048,[[12,4]],Hy,null,[sv]),(n()(),Gr(0,null,null,2,null,Zv)),Po(40,16384,null,0,av,[qe],null,null),Oo(2048,[[11,4]],My,null,[av]),(n()(),Fr(42,0,null,null,11,null,null,null,null,null,null,null)),Po(43,16384,null,3,cv,[],{name:[0,"name"]},null),Wo(335544320,14,{cell:0}),Wo(335544320,15,{headerCell:0}),Wo(335544320,16,{footerCell:0}),Oo(2048,[[1,4]],Ly,null,[cv]),(n()(),Gr(0,null,null,2,null,Kv)),Po(49,16384,null,0,sv,[qe],null,null),Oo(2048,[[15,4]],Hy,null,[sv]),(n()(),Gr(0,null,null,2,null,Qv)),Po(52,16384,null,0,av,[qe],null,null),Oo(2048,[[14,4]],My,null,[av]),(n()(),Fr(54,0,null,null,11,null,null,null,null,null,null,null)),Po(55,16384,null,3,cv,[],{name:[0,"name"]},null),Wo(335544320,17,{cell:0}),Wo(335544320,18,{headerCell:0}),Wo(335544320,19,{footerCell:0}),Oo(2048,[[1,4]],Ly,null,[cv]),(n()(),Gr(0,null,null,2,null,$v)),Po(61,16384,null,0,sv,[qe],null,null),Oo(2048,[[18,4]],Hy,null,[sv]),(n()(),Gr(0,null,null,2,null,Jv)),Po(64,16384,null,0,av,[qe],null,null),Oo(2048,[[17,4]],My,null,[av]),(n()(),Fr(66,0,null,null,11,null,null,null,null,null,null,null)),Po(67,16384,null,3,cv,[],{name:[0,"name"]},null),Wo(335544320,20,{cell:0}),Wo(335544320,21,{headerCell:0}),Wo(335544320,22,{footerCell:0}),Oo(2048,[[1,4]],Ly,null,[cv]),(n()(),Gr(0,null,null,2,null,Xv)),Po(73,16384,null,0,sv,[qe],null,null),Oo(2048,[[21,4]],Hy,null,[sv]),(n()(),Gr(0,null,null,2,null,Yv)),Po(76,16384,null,0,av,[qe],null,null),Oo(2048,[[20,4]],My,null,[av]),(n()(),Fr(78,0,null,null,11,null,null,null,null,null,null,null)),Po(79,16384,null,3,cv,[],{name:[0,"name"]},null),Wo(335544320,23,{cell:0}),Wo(335544320,24,{headerCell:0}),Wo(335544320,25,{footerCell:0}),Oo(2048,[[1,4]],Ly,null,[cv]),(n()(),Gr(0,null,null,2,null,nb)),Po(85,16384,null,0,sv,[qe],null,null),Oo(2048,[[24,4]],Hy,null,[sv]),(n()(),Gr(0,null,null,2,null,tb)),Po(88,16384,null,0,av,[qe],null,null),Oo(2048,[[23,4]],My,null,[av]),(n()(),Fr(90,0,null,null,11,null,null,null,null,null,null,null)),Po(91,16384,null,3,cv,[],{name:[0,"name"]},null),Wo(335544320,26,{cell:0}),Wo(335544320,27,{headerCell:0}),Wo(335544320,28,{footerCell:0}),Oo(2048,[[1,4]],Ly,null,[cv]),(n()(),Gr(0,null,null,2,null,eb)),Po(97,16384,null,0,sv,[qe],null,null),Oo(2048,[[27,4]],Hy,null,[sv]),(n()(),Gr(0,null,null,2,null,lb)),Po(100,16384,null,0,av,[qe],null,null),Oo(2048,[[26,4]],My,null,[av]),(n()(),Fr(102,0,null,null,6,"tbody",[],null,null,null,null,null)),(n()(),Gr(0,null,null,2,null,rb)),Po(104,540672,null,0,fv,[qe,fl],{columns:[0,"columns"]},null),Oo(2048,[[3,4]],Uy,null,[fv]),(n()(),Gr(0,null,null,2,null,ob)),Po(107,540672,null,0,gv,[qe,fl],{columns:[0,"columns"]},null),Oo(2048,[[2,4]],By,null,[gv])],function(n,t){var e=t.component;n(t,1,0,e.dataSource),n(t,7,0,"select"),n(t,19,0,"start"),n(t,31,0,"length"),n(t,43,0,"maxIas"),n(t,55,0,"maxGroundSpeed"),n(t,67,0,"maxAltitude"),n(t,79,0,"startLine"),n(t,91,0,"endLine"),n(t,104,0,e.displayedColumns),n(t,107,0,e.displayedColumns)},null)}function ub(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.saveFiles()&&l),l},null,null)),(n()(),ti(-1,null,["Save Files"]))],null,null)}function ab(n){return ri(0,[(n()(),Fr(0,0,null,null,10,"div",[["align","center"]],null,null,null,null,null)),(n()(),Fr(1,0,null,null,0,"input",[["accept","text/csv"],["multiple",""],["type","file"]],null,[[null,"change"]],function(n,t,e){var l=!0;return"change"===t&&(l=!1!==n.component.openFile(e)&&l),l},null,null)),(n()(),Fr(2,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(3,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(4,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Gr(16777216,null,null,1,null,ib)),Po(6,16384,null,0,bs,[We,qe],{ngIf:[0,"ngIf"]},null),(n()(),Fr(7,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Fr(8,0,null,null,0,"BR",[],null,null,null,null,null)),(n()(),Gr(16777216,null,null,1,null,ub)),Po(10,16384,null,0,bs,[We,qe],{ngIf:[0,"ngIf"]},null)],function(n,t){var e=t.component;n(t,6,0,e.flights.length>0),n(t,10,0,e.selection.selected.length>0)},null)}var sb=oo("app-g5logs",Gv,function(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"app-g5logs",[],null,null,null,ab,Fv)),Po(1,114688,null,0,Gv,[],null,null)],function(n,t){n(t,1,0)},null)},{},{},[]),cb=function(){function n(){}return n.prototype.ngOnInit=function(){},n}(),hb=hr({encapsulation:0,styles:[["h1[_ngcontent-%COMP%]{color:#c9c206;text-decoration:none}.hidden[_ngcontent-%COMP%]{background:red;color:#fff}.comment[_ngcontent-%COMP%]{color:#c9c206}"]],data:{}});function pb(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"h1",[["align","center"]],null,null,null,null,null)),(n()(),ti(-1,null,["Welcome to SaltyZoo!"])),(n()(),Fr(2,0,null,null,3,"table",[["align","center"],["width","45%"]],null,null,null,null,null)),(n()(),Fr(3,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),Fr(4,0,null,null,1,"h3",[["align","center"],["class","comment"]],null,null,null,null,null)),(n()(),ti(-1,null,[" I'm in the middle of a rewrite of the site using serverless technologies. Not all content is yet available. Keep checking back. "]))],null,null)}var db=oo("app-home",cb,function(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"app-home",[],null,null,null,pb,hb)),Po(1,114688,null,0,cb,[],null,null)],function(n,t){n(t,1,0)},null)},{},{},[]),fb=function(n){function t(t,e){var l=n.call(this)||this;return l.getLevel=t,l.isExpandable=e,l}return r(t,n),t.prototype.getDescendants=function(n){for(var t=[],e=this.dataNodes.indexOf(n)+1;e1)throw Error("There can only be one default row without a when predicate function.");this._defaultNodeDef=n[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()},n.prototype._switchDataSource=function(n){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),n||this._nodeOutlet.viewContainer.clear(),this._dataSource=n,this._nodeDefs&&this._observeRenderChanges()},n.prototype._observeRenderChanges=function(){var n,t=this;if("function"==typeof this._dataSource.connect?n=this._dataSource.connect(this):this._dataSource instanceof N?n=this._dataSource:Array.isArray(this._dataSource)&&(n=za(this._dataSource)),!n)throw Error("A valid data source must be provided.");this._dataSubscription=n.pipe(Oy(this._onDestroy)).subscribe(function(n){return t.renderNodeChanges(n)})},n.prototype.renderNodeChanges=function(n,t,e,l){var r=this;void 0===t&&(t=this._dataDiffer),void 0===e&&(e=this._nodeOutlet.viewContainer);var o=t.diff(n);o&&(o.forEachOperation(function(t,o,i){if(null==t.previousIndex)r.insertNode(n[i],i,e,l);else if(null==i)e.remove(o),r._levels.delete(t.item);else{var u=e.get(o);e.move(u,i)}}),this._changeDetectorRef.detectChanges())},n.prototype._getNodeDef=function(n,t){if(1===this._nodeDefs.length)return this._nodeDefs.first;var e=this._nodeDefs.find(function(e){return e.when&&e.when(t,n)})||this._defaultNodeDef;if(!e)throw Error("Could not find a matching node definition for the provided node data.");return e},n.prototype.insertNode=function(n,t,e,l){var r=this._getNodeDef(n,t),o=new function(n){this.$implicit=n}(n);o.level=this.treeControl.getLevel?this.treeControl.getLevel(n):void 0!==l&&this._levels.has(l)?this._levels.get(l)+1:0,this._levels.set(n,o.level),(e||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,o,t),yb.mostRecentTreeNode&&(yb.mostRecentTreeNode.data=n)},n}(),yb=function(){function n(t,e){this._elementRef=t,this._tree=e,this._destroyed=new G,this.role="treeitem",n.mostRecentTreeNode=this}return Object.defineProperty(n.prototype,"data",{get:function(){return this._data},set:function(n){this._data=n,this._setRoleFromData()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isExpanded",{get:function(){return this._tree.treeControl.isExpanded(this._data)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"level",{get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):0},enumerable:!0,configurable:!0}),n.prototype.ngOnDestroy=function(){n.mostRecentTreeNode===this&&(n.mostRecentTreeNode=null),this._destroyed.next(),this._destroyed.complete()},n.prototype.focus=function(){this._elementRef.nativeElement.focus()},n.prototype._setRoleFromData=function(){var n=this;if(this._tree.treeControl.isExpandable)this.role=this._tree.treeControl.isExpandable(this._data)?"group":"treeitem";else{if(!this._tree.treeControl.getChildren)throw Error("Could not find functions for nested/flat tree in tree control.");var t=this._tree.treeControl.getChildren(this._data);Array.isArray(t)?this._setRoleFromChildren(t):t instanceof N&&t.pipe(Oy(this._destroyed)).subscribe(function(t){return n._setRoleFromChildren(t)})}},n.prototype._setRoleFromChildren=function(n){this.role=n&&n.length?"group":"treeitem"},n.mostRecentTreeNode=null,n}(),vb=function(){function n(n,t,e,l,r){var o=this;this._treeNode=n,this._tree=t,this._renderer=e,this._element=l,this._dir=r,this._destroyed=new G,this._indent=40,this._setPadding(),this._dir&&this._dir.change.pipe(Oy(this._destroyed)).subscribe(function(){return o._setPadding()})}return Object.defineProperty(n.prototype,"level",{get:function(){return this._level},set:function(n){this._level=mm(n),this._setPadding()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"indent",{get:function(){return this._indent},set:function(n){this._indent=mm(n),this._setPadding()},enumerable:!0,configurable:!0}),n.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},n.prototype._paddingIndent=function(){var n=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,t=this._level||n;return t?t*this._indent+"px":null},n.prototype._setPadding=function(){var n=this._paddingIndent();this._renderer.setStyle(this._element.nativeElement,this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",n)},n}(),bb=function(){function n(n,t){this._tree=n,this._treeNode=t,this._recursive=!1}return Object.defineProperty(n.prototype,"recursive",{get:function(){return this._recursive},set:function(n){this._recursive=gm(n)},enumerable:!0,configurable:!0}),n.prototype._toggle=function(n){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),n.stopPropagation()},n}(),_b=function(){},wb=function(n){this.viewContainer=n},Cb=gb,Sb=function(n){function t(t,e,l){var r=n.call(this,t,e)||this;return r._elementRef=t,r._tree=e,r.role="treeitem",r.tabIndex=Number(l)||0,r}return r(t,n),t}(Nm(Dm(yb))),Tb=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r(t,n),t}(Cb),kb=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r(t,n),t}(vb),xb=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r(t,n),t}(mb),Eb=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.recursive=!1,t}return r(t,n),t}(bb),Ib=function(){},Rb=function(){function n(n){this.pagesService=n}return n.prototype.ngOnInit=function(){},n.prototype.isLoggedOn=function(){return null!=sessionStorage.getItem("Auth")&&""!=sessionStorage.getItem("Auth")},n.prototype.toggleHidden=function(n){this.pagesService.toggleHidden(n.page).subscribe(function(n){console.log("toggle hidden done")})},n.prototype.toggleButtonText=function(n){return n.page.isHidden&&n.page.isHidden.BOOL?"show":"hide"},n.prototype.class=function(n){return n.page.isHidden&&n.page.isHidden.BOOL?"hidden":"mat-tree"},n}(),Pb=hr({encapsulation:0,styles:[[".progress-bar[_ngcontent-%COMP%]{margin-left:30px}.mat-tree[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%]{background:#10066d;color:#ebe403}.hidden[_ngcontent-%COMP%]{background:red;color:#fff}.active-link[_ngcontent-%COMP%]{background:#ebe403;color:#10066d}"]],data:{}});function Ob(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"button",[],null,[[null,"click"]],function(n,t,e){var l=!0,r=n.component;return"click"===t&&(l=!1!==r.toggleHidden(r.node)&&l),l},null,null)),(n()(),ti(1,null,["",""]))],null,function(n,t){var e=t.component;n(t,1,0,e.toggleButtonText(e.node))})}function Db(n){return ri(0,[(n()(),Fr(0,0,null,null,8,"span",[],null,null,null,null,null)),(n()(),Fr(1,0,null,null,5,"a",[["routerLinkActive","active-link"]],[[8,"className",0],[1,"target",0],[8,"href",4]],[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==yo(n,2).onClick(e.button,e.ctrlKey,e.metaKey,e.shiftKey)&&l),l},null,null)),Po(2,671744,[[2,4]],0,$d,[Wd,id,es],{routerLink:[0,"routerLink"]},null),Po(3,1720320,null,2,Xd,[Wd,Ve,Le,Ze],{routerLinkActive:[0,"routerLinkActive"]},null),Wo(603979776,1,{links:1}),Wo(603979776,2,{linksWithHrefs:1}),(n()(),ti(6,null,[" "," "])),(n()(),Gr(16777216,null,null,1,null,Ob)),Po(8,16384,null,0,bs,[We,qe],{ngIf:[0,"ngIf"]},null)],function(n,t){var e=t.component;n(t,2,0,Vr(1,"/albums/",e.node.page.page.S,"")),n(t,3,0,"active-link"),n(t,8,0,e.isLoggedOn())},function(n,t){var e=t.component;n(t,1,0,Vr(1,"",e.class(e.node),""),yo(t,2).target,yo(t,2).href),n(t,6,0,e.node.name)})}function Ab(n){return ri(0,[(n()(),Gr(16777216,null,null,1,null,Db)),Po(1,16384,null,0,bs,[We,qe],{ngIf:[0,"ngIf"]},null)],function(n,t){n(t,1,0,t.component.node.page)},null)}var Nb=function(){function n(){}return n.prototype.ngOnInit=function(){},n}(),Mb=hr({encapsulation:0,styles:[[".progress-bar[_ngcontent-%COMP%]{margin-left:30px}.mat-tree[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%]{background:#10066d;color:#ebe403}.hidden[_ngcontent-%COMP%]{background:red;color:#fff}"]],data:{}});function Hb(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"span",[["class","mat-tree"]],null,null,null,null,null)),(n()(),ti(1,null,[" ","\n"]))],null,function(n,t){n(t,1,0,t.component.node.name)})}function Lb(n){return ri(0,[(n()(),Gr(16777216,null,null,1,null,Hb)),Po(1,16384,null,0,bs,[We,qe],{ngIf:[0,"ngIf"]},null)],function(n,t){n(t,1,0,!t.component.node.page)},null)}var Vb=Am(function(n){this._elementRef=n},"primary"),jb=new wn("mat-progress-bar-location",{providedIn:"root",factory:function(){var n=ft(Ts);return{pathname:n&&n.location&&n.location.pathname||""}}}),Gb=0,Fb=function(n){function t(t,e,l){var r=n.call(this,t)||this;r._elementRef=t,r._animationMode=e,r._value=0,r._bufferValue=0,r.mode="determinate",r.progressbarId="mat-progress-bar-"+Gb++;var o=l&&l.pathname?l.pathname.split("#")[0]:"";return r._rectangleFillValue="url('"+o+"#"+r.progressbarId+"')",r}return r(t,n),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(n){this._value=Ub(n||0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bufferValue",{get:function(){return this._bufferValue},set:function(n){this._bufferValue=Ub(n||0)},enumerable:!0,configurable:!0}),t.prototype._primaryTransform=function(){return{transform:"scaleX("+this.value/100+")"}},t.prototype._bufferTransform=function(){if("buffer"===this.mode)return{transform:"scaleX("+this.bufferValue/100+")"}},t}(Vb);function Ub(n,t,e){return void 0===t&&(t=0),void 0===e&&(e=100),Math.max(t,Math.min(e,n))}var zb=function(){},Bb=hr({encapsulation:2,styles:[".mat-progress-bar{display:block;height:5px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}@media screen and (-ms-high-contrast:active){.mat-progress-bar .mat-progress-bar-background{display:none}}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}@media screen and (-ms-high-contrast:active){.mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}@media screen and (-ms-high-contrast:active){.mat-progress-bar .mat-progress-bar-fill{border-top:solid 5px}}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:'';display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2s infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2s infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2s infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2s infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after{animation:none;transition:none}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(.5,0,.70173,.49582);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(.30244,.38135,.55,.95635);transform:translateX(83.67142%)}100%{transform:translateX(200.61106%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(.08)}36.65%{animation-timing-function:cubic-bezier(.33473,.12482,.78584,1);transform:scaleX(.08)}69.15%{animation-timing-function:cubic-bezier(.06,.11,.6,1);transform:scaleX(.66148)}100%{transform:scaleX(.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(.15,0,.51506,.40969);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(.31033,.28406,.8,.73371);transform:translateX(37.65191%)}48.35%{animation-timing-function:cubic-bezier(.4,.62704,.6,.90203);transform:translateX(84.38617%)}100%{transform:translateX(160.27778%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(.15,0,.51506,.40969);transform:scaleX(.08)}19.15%{animation-timing-function:cubic-bezier(.31033,.28406,.8,.73371);transform:scaleX(.4571)}44.15%{animation-timing-function:cubic-bezier(.4,.62704,.6,.90203);transform:scaleX(.72796)}100%{transform:scaleX(.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-10px)}}"],data:{}});function qb(n){return ri(2,[(n()(),Fr(0,0,null,null,4,":svg:svg",[["class","mat-progress-bar-background mat-progress-bar-element"],["focusable","false"],["height","5"],["width","100%"]],null,null,null,null,null)),(n()(),Fr(1,0,null,null,2,":svg:defs",[],null,null,null,null,null)),(n()(),Fr(2,0,null,null,1,":svg:pattern",[["height","5"],["patternUnits","userSpaceOnUse"],["width","10"],["x","5"],["y","0"]],[[8,"id",0]],null,null,null,null)),(n()(),Fr(3,0,null,null,0,":svg:circle",[["cx","2.5"],["cy","2.5"],["r","2.5"]],null,null,null,null,null)),(n()(),Fr(4,0,null,null,0,":svg:rect",[["height","100%"],["width","100%"]],[[1,"fill",0]],null,null,null,null)),(n()(),Fr(5,0,null,null,1,"div",[["class","mat-progress-bar-buffer mat-progress-bar-element"]],null,null,null,null,null)),Po(6,278528,null,0,Cs,[gl,Ve,Le],{ngStyle:[0,"ngStyle"]},null),(n()(),Fr(7,0,null,null,1,"div",[["class","mat-progress-bar-primary mat-progress-bar-fill mat-progress-bar-element"]],null,null,null,null,null)),Po(8,278528,null,0,Cs,[gl,Ve,Le],{ngStyle:[0,"ngStyle"]},null),(n()(),Fr(9,0,null,null,0,"div",[["class","mat-progress-bar-secondary mat-progress-bar-fill mat-progress-bar-element"]],null,null,null,null,null))],function(n,t){var e=t.component;n(t,6,0,e._bufferTransform()),n(t,8,0,e._primaryTransform())},function(n,t){var e=t.component;n(t,2,0,e.progressbarId),n(t,4,0,e._rectangleFillValue)})}var Wb=function(){function n(n){this.callback=n}return n.prototype.call=function(n,t){return t.subscribe(new Zb(n,this.callback))},n}(),Zb=function(n){function t(t,e){var l=n.call(this,t)||this;return l.add(new w(e)),l}return r(t,n),t}(I);function Kb(n){return Error('Unable to find icon with the name "'+n+'"')}function Qb(n){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+n+'".')}function $b(n){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \""+n+'".')}var Jb=function(n){n.nodeName?this.svgElement=n:this.url=n},Xb=function(){function n(n,t,e){this._httpClient=n,this._sanitizer=t,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=e}return n.prototype.addSvgIcon=function(n,t){return this.addSvgIconInNamespace("",n,t)},n.prototype.addSvgIconLiteral=function(n,t){return this.addSvgIconLiteralInNamespace("",n,t)},n.prototype.addSvgIconInNamespace=function(n,t,e){return this._addSvgIconConfig(n,t,new Jb(e))},n.prototype.addSvgIconLiteralInNamespace=function(n,t,e){var l=this._sanitizer.sanitize(Zl.HTML,e);if(!l)throw $b(e);var r=this._createSvgElementForSingleIcon(l);return this._addSvgIconConfig(n,t,new Jb(r))},n.prototype.addSvgIconSet=function(n){return this.addSvgIconSetInNamespace("",n)},n.prototype.addSvgIconSetLiteral=function(n){return this.addSvgIconSetLiteralInNamespace("",n)},n.prototype.addSvgIconSetInNamespace=function(n,t){return this._addSvgIconSetConfig(n,new Jb(t))},n.prototype.addSvgIconSetLiteralInNamespace=function(n,t){var e=this._sanitizer.sanitize(Zl.HTML,t);if(!e)throw $b(t);var l=this._svgElementFromString(e);return this._addSvgIconSetConfig(n,new Jb(l))},n.prototype.registerFontClassAlias=function(n,t){return void 0===t&&(t=n),this._fontCssClassesByAlias.set(n,t),this},n.prototype.classNameForFontAlias=function(n){return this._fontCssClassesByAlias.get(n)||n},n.prototype.setDefaultFontSetClass=function(n){return this._defaultFontSetClass=n,this},n.prototype.getDefaultFontSetClass=function(){return this._defaultFontSetClass},n.prototype.getSvgIconFromUrl=function(n){var t=this,e=this._sanitizer.sanitize(Zl.RESOURCE_URL,n);if(!e)throw Qb(n);var l=this._cachedIconsByUrl.get(e);return l?za(Yb(l)):this._loadSvgIconFromConfig(new Jb(n)).pipe(Ba(function(n){return t._cachedIconsByUrl.set(e,n)}),nn(function(n){return Yb(n)}))},n.prototype.getNamedSvgIcon=function(n,t){void 0===t&&(t="");var e=n_(t,n),l=this._svgIconConfigs.get(e);if(l)return this._getSvgFromConfig(l);var r,o=this._iconSetConfigs.get(t);return o?this._getSvgFromIconSetConfigs(n,o):(r=Kb(e),new N(function(n){return n.error(r)}))},n.prototype._getSvgFromConfig=function(n){return n.svgElement?za(Yb(n.svgElement)):this._loadSvgIconFromConfig(n).pipe(Ba(function(t){return n.svgElement=t}),nn(function(n){return Yb(n)}))},n.prototype._getSvgFromIconSetConfigs=function(n,t){var e=this,l=this._extractIconWithNameFromAnySet(n,t);return l?za(l):Mf(t.filter(function(n){return!n.svgElement}).map(function(n){return e._loadSvgIconSetFromConfig(n).pipe(Za(function(t){var l=e._sanitizer.sanitize(Zl.RESOURCE_URL,n.url);return console.error("Loading icon set URL: "+l+" failed: "+t.message),za(null)}))})).pipe(nn(function(){var l=e._extractIconWithNameFromAnySet(n,t);if(!l)throw Kb(n);return l}))},n.prototype._extractIconWithNameFromAnySet=function(n,t){for(var e=t.length-1;e>=0;e--){var l=t[e];if(l.svgElement){var r=this._extractSvgIconFromSet(l.svgElement,n);if(r)return r}}return null},n.prototype._loadSvgIconFromConfig=function(n){var t=this;return this._fetchUrl(n.url).pipe(nn(function(n){return t._createSvgElementForSingleIcon(n)}))},n.prototype._loadSvgIconSetFromConfig=function(n){var t=this;return n.svgElement?za(n.svgElement):this._fetchUrl(n.url).pipe(nn(function(e){return n.svgElement||(n.svgElement=t._svgElementFromString(e)),n.svgElement}))},n.prototype._createSvgElementForSingleIcon=function(n){var t=this._svgElementFromString(n);return this._setSvgAttributes(t),t},n.prototype._extractSvgIconFromSet=function(n,t){var e=n.querySelector("#"+t);if(!e)return null;var l=e.cloneNode(!0);if(l.removeAttribute("id"),"svg"===l.nodeName.toLowerCase())return this._setSvgAttributes(l);if("symbol"===l.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(l));var r=this._svgElementFromString("");return r.appendChild(l),this._setSvgAttributes(r)},n.prototype._svgElementFromString=function(n){var t=this._document.createElement("DIV");t.innerHTML=n;var e=t.querySelector("svg");if(!e)throw Error(" tag not found");return e},n.prototype._toSvgElement=function(n){for(var t=this._svgElementFromString(""),e=0;en.level;u++,i++);this.data.splice(e+1,i)}this.dataChange.next(this.data),n.isLoading=!1},n}(),s_=function(){function n(n,t){this.pagesService=n,this.router=t,this.getLevel=function(n){return n.level},this.isExpandable=function(n){return n.hasChildren},this.hasChild=function(n,t){return t.hasChildren}}return n.prototype.ngOnInit=function(){var n=this;this.treeControl=new fb(this.getLevel,this.isExpandable),this.dataSource=new a_(this.treeControl,this.pagesService,this.router),this.pagesService.getPages("").subscribe(function(t){n.gotPages(t)})},n.prototype.gotPages=function(n){h_(n,this.router),this.dataSource.data=n.map(function(n){return new u_(n.name,n.fullName,0,n.hasChildren,n.page)}).sort(c_)},n.prototype.isLoggedOn=function(){return null!=sessionStorage.getItem("Auth")&&""!=sessionStorage.getItem("Auth")},n.prototype.class=function(n){return n.page.isHidden&&n.page.isHidden.BOOL?"hidden":"mat-tree"},n.prototype.toggleButtonText=function(n){return n.page.isHidden&&n.page.isHidden.BOOL?"show":"hide"},n}();function c_(n,t){return n.namet.name?1:0}function h_(n,t){var e=t.config,l=[];n.forEach(function(n){return function(n,t){n.page&&n.page.page&&t.push({path:n.page.page.S,component:vy})}(n,l)}),e.forEach(function(n){"albums"==n.path&&(n.children=l.concat(n.children))})}var p_=hr({encapsulation:0,styles:[[".progress-bar[_ngcontent-%COMP%]{margin-left:30px}.mat-tree[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%]{background:#10066d;color:#ebe403}.hidden[_ngcontent-%COMP%]{background:red;color:#fff}"]],data:{}});function d_(n){return ri(0,[(n()(),Fr(0,0,null,null,8,"mat-tree-node",[["class","mat-tree mat-tree-node"],["matTreeNodePadding",""]],[[1,"aria-expanded",0],[1,"aria-level",0],[1,"role",0]],null,null,null,null)),Oo(6144,null,vb,null,[kb]),Po(2,16384,null,0,Sb,[Ve,mb,[8,null]],null,null),Oo(2048,null,yb,null,[Sb]),Po(4,147456,null,0,kb,[yb,mb,Le,Ve,[2,ey]],{level:[0,"level"]},null),(n()(),Fr(5,0,null,null,1,"app-image-node",[],null,null,null,Ab,Pb)),Po(6,114688,null,0,Rb,[uc],{node:[0,"node"]},null),(n()(),Fr(7,0,null,null,1,"app-no-image-node",[],null,null,null,Lb,Mb)),Po(8,114688,null,0,Nb,[],{node:[0,"node"]},null)],function(n,t){n(t,4,0,""),n(t,6,0,t.context.$implicit),n(t,8,0,t.context.$implicit)},function(n,t){n(t,0,0,yo(t,2).isExpanded,"treeitem"===yo(t,2).role?yo(t,2).level:null,yo(t,2).role)})}function f_(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"mat-progress-bar",[["aria-valuemax","100"],["aria-valuemin","0"],["class","progress-bar mat-progress-bar"],["mode","indeterminate"],["role","progressbar"]],[[1,"aria-valuenow",0],[1,"mode",0],[2,"_mat-animation-noopable",null]],null,null,qb,Bb)),Po(1,49152,null,0,Fb,[Ve,[2,Ov],[2,jb]],{mode:[0,"mode"]},null)],function(n,t){n(t,1,0,"indeterminate")},function(n,t){n(t,0,0,yo(t,1).value,yo(t,1).mode,"NoopAnimations"===yo(t,1)._animationMode)})}function g_(n){return ri(0,[(n()(),Fr(0,0,null,null,16,"mat-tree-node",[["class","mat-tree mat-tree-node"],["matTreeNodePadding",""]],[[1,"aria-expanded",0],[1,"aria-level",0],[1,"role",0]],null,null,null,null)),Oo(6144,null,vb,null,[kb]),Po(2,16384,null,0,Sb,[Ve,mb,[8,null]],null,null),Oo(2048,null,yb,null,[Sb]),Po(4,147456,null,0,kb,[yb,mb,Le,Ve,[2,ey]],{level:[0,"level"]},null),(n()(),Fr(5,0,null,null,5,"button",[["class","mat-tree"],["mat-icon-button",""],["matTreeNodeToggle",""]],[[1,"aria-label",0]],[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==yo(n,7)._toggle(e)&&l),l},null,null)),Oo(6144,null,bb,null,[Eb]),Po(7,16384,null,0,Eb,[mb,yb],null,null),(n()(),Fr(8,0,null,null,2,"mat-icon",[["class","mat-icon-rtl-mirror mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,r_,l_)),Po(9,638976,null,0,t_,[Ve,Xb,[8,null]],null,null),(n()(),ti(10,0,[" "," "])),(n()(),Fr(11,0,null,null,1,"app-image-node",[],null,null,null,Ab,Pb)),Po(12,114688,null,0,Rb,[uc],{node:[0,"node"]},null),(n()(),Fr(13,0,null,null,1,"app-no-image-node",[],null,null,null,Lb,Mb)),Po(14,114688,null,0,Nb,[],{node:[0,"node"]},null),(n()(),Gr(16777216,null,null,1,null,f_)),Po(16,16384,null,0,bs,[We,qe],{ngIf:[0,"ngIf"]},null)],function(n,t){n(t,4,0,""),n(t,9,0),n(t,12,0,t.context.$implicit),n(t,14,0,t.context.$implicit),n(t,16,0,t.context.$implicit.isLoading)},function(n,t){var e=t.component;n(t,0,0,yo(t,2).isExpanded,"treeitem"===yo(t,2).role?yo(t,2).level:null,yo(t,2).role),n(t,5,0,"toggle "+t.context.$implicit.filename),n(t,8,0,yo(t,9).inline),n(t,10,0,e.treeControl.isExpanded(t.context.$implicit)?"expand_more":"chevron_right")})}function m_(n){return ri(0,[(n()(),Fr(0,0,null,null,9,"mat-tree",[["class","mat-tree mat-tree"],["role","tree"]],null,null,null,i_,o_)),Oo(6144,null,mb,null,[xb]),Po(2,2342912,null,1,xb,[fl,Ze],{dataSource:[0,"dataSource"],treeControl:[1,"treeControl"]},null),Wo(603979776,1,{_nodeDefs:1}),(n()(),Gr(0,null,null,2,null,d_)),Po(5,16384,null,0,Tb,[qe],null,null),Oo(2048,[[1,4]],gb,null,[Tb]),(n()(),Gr(0,null,null,2,null,g_)),Po(8,16384,null,0,Tb,[qe],{when:[0,"when"]},null),Oo(2048,[[1,4]],gb,null,[Tb])],function(n,t){var e=t.component;n(t,2,0,e.dataSource,e.treeControl),n(t,8,0,e.hasChild)},null)}var y_=hr({encapsulation:0,styles:[["h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{color:#c9c206;text-decoration:none}.normal[_ngcontent-%COMP%]{max-width:350px}.hidden[_ngcontent-%COMP%]{max-width:350px;background:red;color:#fff}.comment[_ngcontent-%COMP%]{color:#c9c206}.albums[_ngcontent-%COMP%]{background:#10066d;color:#ebe403;font-family:Arial,Helvetica,sans-serif;font-size:9pt}.albums[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#c9c206;text-decoration:none}.albums[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:#3e76f0}.albums[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{text-decoration:none}.albums[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{color:#c9c206}.albums-imagetd[_ngcontent-%COMP%]{text-align:center}.albums[_ngcontent-%COMP%] .highslide-image[_ngcontent-%COMP%]{background:gray;border-color:#00f}.albums[_ngcontent-%COMP%] .highslide-caption[_ngcontent-%COMP%]{color:#ebe403;background:#170752}.albums[_ngcontent-%COMP%] .highslide-controls[_ngcontent-%COMP%], .albums[_ngcontent-%COMP%] .highslide-controls[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .albums[_ngcontent-%COMP%] .highslide-controls[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{background-image:url(/highslide/graphics/controlbar-black-border.gif)}.albums-header[_ngcontent-%COMP%]{font-size:24pt;text-align:center}.albums-desc[_ngcontent-%COMP%]{font-size:10pt;text-align:center}.albums-leftheader[_ngcontent-%COMP%]{text-align:left;vertical-align:bottom}.albums-leftheader[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#fff3b1;font-size:8pt}.albums-rightheader[_ngcontent-%COMP%]{text-align:right;vertical-align:bottom}"]],data:{}});function v_(n){return ri(0,[(n()(),Fr(0,0,null,null,3,"div",[["align","center"]],null,null,null,null,null)),(n()(),Fr(1,0,null,null,2,"img",[["border","0"],["src","/assets/images/header.png"]],null,[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==yo(n,2).onClick()&&l),l},null,null)),Po(2,16384,null,0,Qd,[Wd,id,[8,null],Le,Ve],{routerLink:[0,"routerLink"]},null),Yo(3,1),(n()(),Fr(4,0,null,null,0,"br",[],null,null,null,null,null)),(n()(),Fr(5,0,null,null,18,"table",[["class","albums"]],null,null,null,null,null)),(n()(),Fr(6,0,null,null,17,"tbody",[],null,null,null,null,null)),(n()(),Fr(7,0,null,null,16,"tr",[],null,null,null,null,null)),(n()(),Fr(8,0,null,null,12,"td",[["valign","top"],["width","150px"]],null,null,null,null,null)),(n()(),Fr(9,0,null,null,3,"h3",[],null,null,null,null,null)),(n()(),Fr(10,0,null,null,2,"a",[["routerLink","/SaltyCalcs"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==yo(n,11).onClick(e.button,e.ctrlKey,e.metaKey,e.shiftKey)&&l),l},null,null)),Po(11,671744,null,0,$d,[Wd,id,es],{routerLink:[0,"routerLink"]},null),(n()(),ti(-1,null,["Salty Calcs"])),(n()(),Fr(13,0,null,null,3,"h3",[],null,null,null,null,null)),(n()(),Fr(14,0,null,null,2,"a",[["routerLink","/aqua_abbreviations.php"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==yo(n,15).onClick(e.button,e.ctrlKey,e.metaKey,e.shiftKey)&&l),l},null,null)),Po(15,671744,null,0,$d,[Wd,id,es],{routerLink:[0,"routerLink"]},null),(n()(),ti(-1,null,["Aquarium Abbreviation Dictionary"])),(n()(),Fr(17,0,null,null,1,"h3",[],null,null,null,null,null)),(n()(),ti(-1,null,["Image Gallery"])),(n()(),Fr(19,0,null,null,1,"main-nav-tree",[],null,null,null,m_,p_)),Po(20,114688,null,0,s_,[uc,Wd],null,null),(n()(),Fr(21,0,null,null,2,"td",[["width","100%"]],null,null,null,null,null)),(n()(),Fr(22,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),Po(23,212992,null,0,tf,[nf,We,le,[8,null],Ze],null,null),(n()(),Fr(24,0,null,null,10,"table",[["class","albums-trailer"],["width","100%"]],null,null,null,null,null)),(n()(),Fr(25,0,null,null,9,"tbody",[],null,null,null,null,null)),(n()(),Fr(26,0,null,null,8,"tr",[],null,null,null,null,null)),(n()(),Fr(27,0,null,null,0,"td",[],null,null,null,null,null)),(n()(),Fr(28,0,null,null,6,"td",[["align","right"],["width","40%"]],null,null,null,null,null)),(n()(),ti(-1,null,["All content and images \xa9 2018 "])),(n()(),Fr(30,0,null,null,1,"a",[["href","mailto:greg@saltyzoo.com"]],null,null,null,null,null)),(n()(),ti(-1,null,["Gregory S. Taylor"])),(n()(),ti(-1,null,[". "])),(n()(),Fr(33,0,null,null,0,"br",[],null,null,null,null,null)),(n()(),ti(-1,null,[" All Rights Reserved. No part of this site may be reproduced or transmitted in any form or by any electronic or mechanical means, without express permission, in writing."]))],function(n,t){n(t,2,0,n(t,3,0,"/")),n(t,11,0,"/SaltyCalcs"),n(t,15,0,"/aqua_abbreviations.php"),n(t,20,0),n(t,23,0)},function(n,t){n(t,10,0,yo(t,11).target,yo(t,11).href),n(t,14,0,yo(t,15).target,yo(t,15).href)})}var b_=oo("app-root",ac,function(n){return ri(0,[(n()(),Fr(0,0,null,null,1,"app-root",[],null,null,null,v_,y_)),Po(1,114688,null,0,ac,[uc,Wd],null,null)],function(n,t){n(t,1,0)},null)},{},{},[]),__=function(){},w_=function(n,t,e){return new hu(Ga,[ac],function(n){return function(n){for(var t={},e=[],l=!1,r=0;r